@pygmalionjs/pygmalion 0.18.0 → 0.20.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 +81 -4
- package/dist-lib/{CameraLayer-Clqgdcjb.js → CameraLayer-DXeRJvoy.js} +1 -1
- package/dist-lib/pygmalion.js +16601 -15855
- package/dist-lib/{runtime-B8Qu1ung.js → runtime-DcPbR8PS.js} +3391 -3224
- package/dist-lib/style.css +1 -1
- package/dist-lib/testing.js +5 -5
- package/dist-lib/types/editor/conditionAxes.d.ts +60 -0
- package/dist-lib/types/editor/declarations.d.ts +22 -5
- package/dist-lib/types/editor/designImport.d.ts +12 -0
- package/dist-lib/types/editor/revisionCatalog.d.ts +3 -0
- package/dist-lib/types/editor/revisionCatalogInstall.d.ts +2 -0
- package/dist-lib/types/editor/store.d.ts +6 -0
- package/dist-lib/types/editor/storyboardEnvironment.d.ts +5 -0
- package/dist-lib/types/lib.d.ts +9 -0
- package/dist-lib/types/token-library/bindings.d.ts +44 -0
- package/dist-lib/types/workspace/WorkspaceConditions.d.ts +1 -1
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DataProjection } from '../../binding/preview.js';
|
|
2
2
|
import type { DesignDocument, DocumentDiagnostic, DocumentMatrix, DocumentNode, DocumentNodePatch, DocumentTransaction } from '../../document/contracts.js';
|
|
3
3
|
import { booleanVectorPrecision, type VectorAnchor, type VectorAnchorAddress, type VectorBooleanOperation, type VectorFillRule, type VectorPoint, type VectorProperties, type VectorShape, type VectorStroke } from '../../document/vector.js';
|
|
4
|
-
import { type LayerGeometry } from './geometryHandles.js';
|
|
5
|
-
import type
|
|
4
|
+
import { type LayerGeometry, type SnapCandidateOptions } from './geometryHandles.js';
|
|
5
|
+
import { type ProjectedDocumentNode } from './projection.js';
|
|
6
6
|
/**
|
|
7
7
|
* Pure editing model for `vector` layers. The document stores path data under
|
|
8
8
|
* `node.properties.vector` in the layer's own space; the layer box is the geometry's
|
|
@@ -91,7 +91,9 @@ export declare function vectorGeometryPatch(node: DocumentNode, next: VectorProp
|
|
|
91
91
|
/** Changes paint and corner keys without touching geometry; an `undefined` value removes the key. */
|
|
92
92
|
export declare function vectorStylePatch(node: DocumentNode, style: Partial<VectorStyle>): DocumentNodePatch;
|
|
93
93
|
/** Canvas placement of a layer: the world transform with the root's own transform removed, as the canvas renders it. */
|
|
94
|
-
export declare function renderedWorldTransform(document: DesignDocument, nodeId: string
|
|
94
|
+
export declare function renderedWorldTransform(document: DesignDocument, nodeId: string, options?: SnapCandidateOptions & {
|
|
95
|
+
projection?: DataProjection | null;
|
|
96
|
+
}): DocumentMatrix;
|
|
95
97
|
/** New layers join the selected container, or the root; the rule matches text insertion. */
|
|
96
98
|
export declare function vectorInsertParent(document: DesignDocument, selection: readonly string[]): string;
|
|
97
99
|
/** A default-sized shape placed inside the parent, offset by the number of existing children so repeated inserts stay visible. */
|
|
@@ -105,13 +107,15 @@ export declare function penPathNode(points: readonly VectorAnchor[], closed: boo
|
|
|
105
107
|
* selection handles use, so an auto layout child, a source layout fragment, or a repeated
|
|
106
108
|
* row is refused with the same diagnostic instead of a guessed box.
|
|
107
109
|
*/
|
|
108
|
-
export declare function planVectorEdit(document: DesignDocument, selection: readonly string[], projection: DataProjection | null): VectorEditPlan;
|
|
110
|
+
export declare function planVectorEdit(document: DesignDocument, selection: readonly string[], projection: DataProjection | null, options?: SnapCandidateOptions): VectorEditPlan;
|
|
109
111
|
/** Anchor operations the current anchor selection allows. */
|
|
110
112
|
export declare function vectorAnchorActions(vector: VectorProperties, anchors: readonly VectorAnchorAddress[]): VectorAnchorActions;
|
|
111
113
|
/** Applies one anchor action to the box geometry; the caller commits the result as one transaction. */
|
|
112
114
|
export declare function applyVectorAnchorAction(vector: VectorProperties, anchors: readonly VectorAnchorAddress[], action: VectorAnchorAction): VectorAnchorActionResult;
|
|
113
115
|
/** Two vector layers sharing a parent; the lower layer (earlier in the parent order) is the base of a subtraction. */
|
|
114
|
-
export declare function planVectorBoolean(document: DesignDocument, selection: readonly string[]
|
|
116
|
+
export declare function planVectorBoolean(document: DesignDocument, selection: readonly string[], options?: SnapCandidateOptions & {
|
|
117
|
+
projection?: DataProjection | null;
|
|
118
|
+
}): VectorBooleanPlan;
|
|
115
119
|
/** The combined layer, in the parent's space, with the lower layer's paint. Throws when the result has no shape. */
|
|
116
120
|
export declare function vectorBooleanNode(plan: Extract<VectorBooleanPlan, {
|
|
117
121
|
status: 'ready';
|