@pygmalionjs/pygmalion 0.18.0 → 0.19.0
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/README.md +25 -4
- package/dist-lib/{CameraLayer-Clqgdcjb.js → CameraLayer-Bv1TqRim.js} +1 -1
- package/dist-lib/pygmalion.js +16354 -15692
- package/dist-lib/{runtime-B8Qu1ung.js → runtime-DlZpODq8.js} +45 -45
- package/dist-lib/testing.js +5 -5
- package/dist-lib/types/token-library/bindings.d.ts +44 -0
- package/dist-lib/types/workspace/edit/ArrangeLayers.d.ts +5 -1
- package/dist-lib/types/workspace/edit/CanvasGuides.d.ts +5 -1
- package/dist-lib/types/workspace/edit/PrototypeWiring.d.ts +4 -0
- package/dist-lib/types/workspace/edit/SelectionHandles.d.ts +10 -2
- package/dist-lib/types/workspace/edit/VectorEditor.d.ts +12 -1
- package/dist-lib/types/workspace/edit/editorCanvas.d.ts +6 -1
- package/dist-lib/types/workspace/edit/geometryHandles.d.ts +13 -1
- package/dist-lib/types/workspace/edit/layerArrangement.d.ts +4 -1
- package/dist-lib/types/workspace/edit/projection.d.ts +23 -1
- package/dist-lib/types/workspace/edit/prototypeWiringModel.d.ts +2 -1
- package/dist-lib/types/workspace/edit/textLayoutProjection.d.ts +28 -0
- package/dist-lib/types/workspace/edit/useTextLayout.d.ts +19 -0
- package/dist-lib/types/workspace/edit/vectorTools.d.ts +9 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -574,10 +574,31 @@ entries use a bounded cache. Dispose the runtime when its font environment ends.
|
|
|
574
574
|
Mixed text, bidi, connected/repeated content, unresolved typography and
|
|
575
575
|
source-rendered text return named diagnostics in this first measurement API.
|
|
576
576
|
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
577
|
+
When both font capabilities are supplied, Workspace shares a disposable measured
|
|
578
|
+
scene between the canvas, selection handles, snapping, guides, alignment and
|
|
579
|
+
prototype wiring. Auto-height text keeps its authored minimum height when its
|
|
580
|
+
width changes; auto-width text owns both dimensions. Inspector sizes follow the
|
|
581
|
+
measured scene and derived dimensions cannot be overwritten by resize controls.
|
|
582
|
+
Pending or unavailable derived bounds stay unavailable to geometry commands.
|
|
583
|
+
Changing the document, page, source, mode or font registration cancels stale
|
|
584
|
+
geometry work and gestures. Late measurements never reset a camera the user moved.
|
|
585
|
+
|
|
586
|
+
This integration supports plain text under the existing bounded layout solver.
|
|
587
|
+
Non-start constraints under text-resized ancestors, mixed text and dynamic
|
|
588
|
+
prototype playback still need additional geometry integration. The built-in
|
|
589
|
+
multiline exporter is also separate work. Measurement never rewrites canonical
|
|
590
|
+
width/height, adds an undo entry or changes source files.
|
|
591
|
+
|
|
592
|
+
### Inspect an existing variable binding
|
|
593
|
+
|
|
594
|
+
`resolveVariableModeForNode` and `resolveVariableModeForInstance` return the
|
|
595
|
+
requested collection mode and the scope that supplied it. Instance addresses
|
|
596
|
+
use the existing opaque override address; consumers do not reconstruct paths.
|
|
597
|
+
`planVariableOccurrence` captures one actual bound occurrence, its token
|
|
598
|
+
resolution (including the authored mode), scalar value and literal patch without
|
|
599
|
+
refreshing unrelated nodes. `projectVariableScalar` exposes the same validation
|
|
600
|
+
and own-node or sparse-override projection used by refresh. These reads do not
|
|
601
|
+
write either document or enable variable-library clipboard transfer.
|
|
581
602
|
|
|
582
603
|
## Local development
|
|
583
604
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { n as C, R as g, aM as P, ck as R, cl as k, Y as E, cm as I, a7 as m, a4 as b } from "./runtime-
|
|
2
|
+
import { n as C, R as g, aM as P, ck as R, cl as k, Y as E, cm as I, a7 as m, a4 as b } from "./runtime-DlZpODq8.js";
|
|
3
3
|
import { useRef as L, useLayoutEffect as h } from "react";
|
|
4
4
|
function v(n) {
|
|
5
5
|
return `translate(${n.panX}px, ${n.panY}px) scale(${n.zoom})`;
|