mirror of https://gitee.com/cf-fz/WebCAD.git
parent
c86057936d
commit
62573bea7a
@ -0,0 +1,23 @@
|
||||
import { DeepCloneFiler } from "./DeepCloneFiler";
|
||||
import { ObjectId } from "./ObjectId";
|
||||
|
||||
export class WblockCloneFiler extends DeepCloneFiler
|
||||
{
|
||||
hardMaping = new Map<number, ObjectId>();
|
||||
ReadHardId()
|
||||
{
|
||||
let index = this.Read();
|
||||
if (index <= 0) return;
|
||||
|
||||
let id = this.idMaping.get(index);
|
||||
if (id) return id;
|
||||
|
||||
id = new ObjectId();
|
||||
this.idMaping.set(index, id);
|
||||
|
||||
if (index > 100)
|
||||
this.hardMaping.set(index, id);
|
||||
|
||||
return id;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue