[K4] Leistung: id-Suche indiziert (Kern-Index, Treffer-Positionen für applyOps), Commit ohne Kopie (Verlauf nur inverse Ops), Dach-Firsthöhe nach Inhalt gemerkt, Polylinien-Punkttyp im Kern
Objekt-Info und Griffe suchen über den Positions-Index des Dokuments (Lookup), TS-applyOps übernimmt die vom Kern getroffenen Positionen (doc_last_hits). Commit verschiebt die Ops ins Dokument; Redo entsteht beim Rückgängigmachen als Inverse der Inversen. setPolylineVertexType rechnet polyline_vertex.rs (bitgleich, 143 880 Fälle), TS-withVertexType gelöscht.
This commit is contained in:
22 files changed
+1168
-538
No files matched your search
@@ -234,7 +234,7 @@ export class ProjectDocument {
|
||||
}
|
||||
return { problems };
|
||||
}
|
||||
const project = applyOps(base, ops);
|
||||
const project = applyOps(base, ops, core().doc_last_hits(this.handle));
|
||||
this.mirror = project;
|
||||
return { project };
|
||||
}
|
||||
@@ -253,7 +253,7 @@ export class ProjectDocument {
|
||||
const r = fromMarkedJson<{ ops: CoreOp[]; notice?: string } | { problems: string[] }>(out);
|
||||
if ("problems" in r) return r;
|
||||
if (r.ops.length === 0) return { project: base, ops: r.ops, notice: r.notice };
|
||||
const project = applyOps(base, r.ops);
|
||||
const project = applyOps(base, r.ops, core().doc_last_hits(this.handle));
|
||||
this.mirror = project;
|
||||
return { project, ops: r.ops, notice: r.notice };
|
||||
}
|
||||
@@ -294,7 +294,7 @@ export class ProjectDocument {
|
||||
}
|
||||
const json = core()[fn](this.handle);
|
||||
if (!json) return null;
|
||||
const project = applyOps(base, JSON.parse(json) as CoreOp[]);
|
||||
const project = applyOps(base, JSON.parse(json) as CoreOp[], core().doc_last_hits(this.handle));
|
||||
this.mirror = project;
|
||||
return project;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user