[K4] Projektdatei-Format (Parser, Migration, Serialisierung) in Rust (project_format.rs); projectFormat.ts nur noch Fassade
This commit is contained in:
1 parent
96a5c219ec
commit
e02c01d3a5
9 files changed
+317
-120
No files matched your search
@@ -94,6 +94,11 @@ export class ProjectDocument {
|
||||
return out;
|
||||
}
|
||||
|
||||
/** Datei-Text des Projekts (Formatversion vorn, Einrückung 2). */
|
||||
serialize(): string {
|
||||
return this.handle ? core().doc_serialize(this.handle) : "";
|
||||
}
|
||||
|
||||
/** Boden-Spuren der 2D-Zeichnungen als LineList-Vertices `[px, py, pz, r, g, b]`. */
|
||||
drawingLineVerts(): Float32Array {
|
||||
return this.handle ? core().doc_drawing_line_verts(this.handle) : new Float32Array(0);
|
||||
|
||||
Reference in new issue
Block a user