开发:避免使用ts-ignore

pull/975/head
ChenX 4 years ago
parent e99c2e7a2a
commit babb032cba

@ -113,7 +113,9 @@ export abstract class CADObject
//-------------------------isErase End-------------------------
// -------------------------id-------------------------
protected objectId: ObjectId;
//操作这个需要谨慎!
objectId: ObjectId;
get Id(): ObjectId
{

@ -228,10 +228,9 @@ export class TemplateManage extends React.Component<{ store?: TempalteEditorStor
if (ptRes.Status === PromptStatus.Keyword)
{
app.Editor.GetPointServices.snapServices.FilterErase = false;
//@ts-ignore 给个id保证能被捕捉
//给个id保证能被捕捉
for (let e of nens) e.objectId = app.Database.ModelSpace.Id;
let baseRes = await app.Editor.GetPoint({ Msg: "点取新基点:" });
//@ts-ignore
for (let e of nens) e.objectId = undefined;
app.Editor.GetPointServices.snapServices.FilterErase = true;
if (baseRes.Status === PromptStatus.OK)

Loading…
Cancel
Save