fix:修复外部指针问题
This commit is contained in:
parent
a297a38adc
commit
7d25ea01b4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
node_modules
|
||||
test
|
||||
dist
|
||||
资料
|
@ -16,7 +16,6 @@ export class SVNode extends SVModel {
|
||||
};
|
||||
|
||||
private label: string | string[];
|
||||
private disable: boolean;
|
||||
public appendages: { [key: string]: SVNodeAppendage[] };
|
||||
|
||||
constructor(
|
||||
|
@ -196,6 +196,7 @@ export class SVMarker extends SVNodeAppendage {
|
||||
label: this.label,
|
||||
style: Util.objectClone<Style>(options.style),
|
||||
labelCfg: Util.objectClone<NodeLabelOption>(options.labelOptions),
|
||||
targetSourceNode: this.target.sourceNode
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -415,7 +415,9 @@ export class Reconcile {
|
||||
const leakModels: SVModel[] = isDiffLeak ? [] : this.getLeakModels(layoutGroupTable, prevModelList, modelList);
|
||||
const appendModels: SVModel[] = this.getAppendModels(prevModelList, modelList, accumulateLeakModels);
|
||||
const removeModels: SVModel[] = this.getRemoveModels(prevModelList, modelList, accumulateLeakModels);
|
||||
const updateModels: SVModel[] = hasTriggerLastStep ? [...this.getModelsById(this.prevUpdate.pop(), modelList)]: [
|
||||
const updateModels: SVModel[] = hasTriggerLastStep
|
||||
? [...this.getModelsById(this.prevUpdate.pop(), modelList)]
|
||||
: [
|
||||
...this.getReTargetMarkers(prevModelList, modelList),
|
||||
...this.getLabelChangeModels(prevModelList, modelList),
|
||||
...this.filterUnChangeModelsOfAppend(appendModels, prevModelList),
|
||||
@ -427,8 +429,6 @@ export class Reconcile {
|
||||
UpdateModelsId.push(model.id);
|
||||
}
|
||||
this.prevUpdate?.push(UpdateModelsId);
|
||||
console.log(this.prevUpdate);
|
||||
|
||||
|
||||
const freedModels: SVNode[] = this.getFreedModels(prevModelList, modelList);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user