@pygmalionjs/pygmalion 0.5.20 → 0.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{FrozenRoutePreview-DdLO8y9P.js → FrozenRoutePreview-DM1a_TC-.js} +14 -2
- package/dist-lib/pygmalion.js +4565 -4457
- package/dist-lib/style.css +1 -1
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/editor/canvasTree.d.ts +58 -0
- package/dist-lib/types/editor/store.d.ts +12 -0
- package/package.json +1 -1
|
@@ -7664,6 +7664,18 @@ class If {
|
|
|
7664
7664
|
/** Multi-page — each page has an independent tree. */
|
|
7665
7665
|
b(this, "pages");
|
|
7666
7666
|
b(this, "activePageId");
|
|
7667
|
+
/**
|
|
7668
|
+
* Whether the active frame is one the reader chose.
|
|
7669
|
+
*
|
|
7670
|
+
* Switching canvases activates that canvas's first frame so the canvas is
|
|
7671
|
+
* never empty-handed, and nothing about that frame was asked for. Warming
|
|
7672
|
+
* reads activation as "these states are about to be explored" and boots an
|
|
7673
|
+
* application instance for it — which is right for a frame someone clicked
|
|
7674
|
+
* and pure cost for one they passed through. Lane canvases made the
|
|
7675
|
+
* difference visible: twenty-seven canvases walked meant twenty-five boots
|
|
7676
|
+
* and most of a gigabyte of heap, all of it evicted on the next switch.
|
|
7677
|
+
*/
|
|
7678
|
+
b(this, "activationIntent", "incidental");
|
|
7667
7679
|
/** Multiple selection — Last element is primary (targeted in the Properties panel). */
|
|
7668
7680
|
b(this, "selectedIds", []);
|
|
7669
7681
|
/** Frames and sections are selected as canvas objects separate from internal nodes. */
|
|
@@ -7849,7 +7861,7 @@ ${e}`;
|
|
|
7849
7861
|
const n = Pi(this.canvasViews[e]);
|
|
7850
7862
|
this.panX = n.panX, this.panY = n.panY, this.zoom = n.zoom;
|
|
7851
7863
|
const r = this.canvasPages[0];
|
|
7852
|
-
r && (this.activePageId = r.id), this.selectedIds = [], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null;
|
|
7864
|
+
r && (this.activePageId = r.id, this.activationIntent = "incidental"), this.selectedIds = [], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null;
|
|
7853
7865
|
}
|
|
7854
7866
|
setPan(e, n) {
|
|
7855
7867
|
this.panX = e, this.panY = n;
|
|
@@ -8113,7 +8125,7 @@ ${e}`;
|
|
|
8113
8125
|
const o = Pi(this.canvasViews[i]);
|
|
8114
8126
|
this.panX = o.panX, this.panY = o.panY, this.zoom = o.zoom;
|
|
8115
8127
|
}
|
|
8116
|
-
this.previewOpen && !n.fromHistory && this.previewHistory.push(this.activePageId), this.activePageId = e, this.selectedIds = [], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null;
|
|
8128
|
+
this.previewOpen && !n.fromHistory && this.previewHistory.push(this.activePageId), this.activePageId = e, this.activationIntent = "chosen", this.selectedIds = [], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null;
|
|
8117
8129
|
}
|
|
8118
8130
|
renamePage(e, n) {
|
|
8119
8131
|
const r = this.pages.find((i) => i.id === e);
|