You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/.vscode/CADFiler.code-snippets

27 lines
912 B

{
"CAD文件序列化": {
"prefix": "file",
"body": [
" //#region -------------------------File-------------------------",
" //对象从文件中读取数据,初始化自身",
" protected override _ReadFile(file: CADFiler)",
" {",
" let ver = file.Read();",
" super._ReadFile(file);",
" }",
" //对象将自身数据写入到文件.",
" override WriteFile(file: CADFiler)",
" {",
" file.Write(1);",
" super.WriteFile(file);",
" }",
" //局部撤销",
" override ApplyPartialUndo(undoData: CADObject)",
" {",
" super.ApplyPartialUndo(undoData);",
" }",
" //#endregion"
]
},
}