@pairdraw/vue 0.21.1 → 0.22.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/dist/canvas/index.d.ts +2 -1
- package/dist/canvas/index.js +2 -1
- package/dist/canvas/pointer/drag-move.js +2 -2
- package/dist/canvas/pointer/drag-move.js.map +1 -1
- package/dist/canvas/surface/color-space.d.ts.map +1 -1
- package/dist/canvas/surface/color-space.js +3 -19
- package/dist/canvas/surface/color-space.js.map +1 -1
- package/dist/canvas/surface/kit-loader.d.ts +10 -0
- package/dist/canvas/surface/kit-loader.d.ts.map +1 -0
- package/dist/canvas/surface/kit-loader.js +11 -2
- package/dist/canvas/surface/kit-loader.js.map +1 -1
- package/dist/canvas/tools/registry.js +1 -0
- package/dist/canvas/tools/registry.js.map +1 -1
- package/dist/canvas/useCanvasInput.d.ts +420 -0
- package/dist/controls/layout/helpers.js +28 -9
- package/dist/controls/layout/helpers.js.map +1 -1
- package/dist/controls/layout/use.d.ts +2 -0
- package/dist/controls/layout/use.d.ts.map +1 -1
- package/dist/controls/layout/use.js +3 -1
- package/dist/controls/layout/use.js.map +1 -1
- package/dist/controls/node-props/helpers.d.ts.map +1 -1
- package/dist/controls/node-props/helpers.js +1 -1
- package/dist/controls/node-props/helpers.js.map +1 -1
- package/dist/controls/number-variable-binding/index.d.ts +2 -2
- package/dist/controls/number-variable-binding/index.js +2 -2
- package/dist/controls/number-variable-binding/use.d.ts +7 -2
- package/dist/controls/number-variable-binding/use.d.ts.map +1 -1
- package/dist/controls/number-variable-binding/use.js +9 -1
- package/dist/controls/number-variable-binding/use.js.map +1 -1
- package/dist/controls/position/use.d.ts +1 -1
- package/dist/controls/typography/arrivals.js +35 -0
- package/dist/controls/typography/arrivals.js.map +1 -0
- package/dist/controls/typography/axes.d.ts.map +1 -1
- package/dist/controls/typography/axes.js +3 -0
- package/dist/controls/typography/axes.js.map +1 -1
- package/dist/controls/typography/faces.js +4 -15
- package/dist/controls/typography/faces.js.map +1 -1
- package/dist/controls/typography/features.d.ts.map +1 -1
- package/dist/controls/typography/features.js +3 -17
- package/dist/controls/typography/features.js.map +1 -1
- package/dist/editor/commands/actions.d.ts +10 -0
- package/dist/editor/commands/actions.d.ts.map +1 -0
- package/dist/editor/commands/actions.js +9 -1
- package/dist/editor/commands/actions.js.map +1 -1
- package/dist/editor/commands/index.d.ts +3 -1
- package/dist/editor/commands/index.js +3 -1
- package/dist/editor/commands/refusals.d.ts +18 -0
- package/dist/editor/commands/refusals.d.ts.map +1 -0
- package/dist/editor/commands/refusals.js +16 -0
- package/dist/editor/commands/refusals.js.map +1 -0
- package/dist/editor/commands/registry.d.ts +4 -1
- package/dist/editor/commands/registry.d.ts.map +1 -1
- package/dist/editor/commands/registry.js +2 -1
- package/dist/editor/commands/registry.js.map +1 -1
- package/dist/editor/commands/selection.js +11 -0
- package/dist/editor/commands/selection.js.map +1 -1
- package/dist/editor/commands/types.d.ts +1 -1
- package/dist/editor/commands/types.d.ts.map +1 -1
- package/dist/editor/selection-capabilities/use.d.ts +2 -0
- package/dist/editor/selection-capabilities/use.d.ts.map +1 -1
- package/dist/editor/selection-capabilities/use.js +38 -11
- package/dist/editor/selection-capabilities/use.js.map +1 -1
- package/dist/editor/selection-state/use.js +1 -5
- package/dist/editor/selection-state/use.js.map +1 -1
- package/dist/editor/tool-cursor/index.d.ts.map +1 -1
- package/dist/editor/tool-cursor/index.js +1 -0
- package/dist/editor/tool-cursor/index.js.map +1 -1
- package/dist/i18n/locales/de/ai.json.js +4 -11
- package/dist/i18n/locales/de/commands.json.js +4 -2
- package/dist/i18n/locales/de/files.json.js +21 -1
- package/dist/i18n/locales/de/menu.json.js +2 -0
- package/dist/i18n/locales/de/panels.json.js +77 -2
- package/dist/i18n/locales/de/tools.json.js +1 -0
- package/dist/i18n/locales/es/ai.json.js +4 -11
- package/dist/i18n/locales/es/commands.json.js +4 -2
- package/dist/i18n/locales/es/files.json.js +21 -1
- package/dist/i18n/locales/es/menu.json.js +2 -0
- package/dist/i18n/locales/es/panels.json.js +77 -2
- package/dist/i18n/locales/es/tools.json.js +1 -0
- package/dist/i18n/locales/fr/ai.json.js +4 -11
- package/dist/i18n/locales/fr/commands.json.js +4 -2
- package/dist/i18n/locales/fr/files.json.js +21 -1
- package/dist/i18n/locales/fr/menu.json.js +2 -0
- package/dist/i18n/locales/fr/panels.json.js +77 -2
- package/dist/i18n/locales/fr/tools.json.js +1 -0
- package/dist/i18n/locales/id/ai.json.js +4 -11
- package/dist/i18n/locales/id/commands.json.js +4 -2
- package/dist/i18n/locales/id/files.json.js +21 -1
- package/dist/i18n/locales/id/menu.json.js +2 -0
- package/dist/i18n/locales/id/panels.json.js +77 -2
- package/dist/i18n/locales/id/tools.json.js +1 -0
- package/dist/i18n/locales/it/ai.json.js +4 -11
- package/dist/i18n/locales/it/commands.json.js +4 -2
- package/dist/i18n/locales/it/files.json.js +21 -1
- package/dist/i18n/locales/it/menu.json.js +2 -0
- package/dist/i18n/locales/it/panels.json.js +77 -2
- package/dist/i18n/locales/it/tools.json.js +1 -0
- package/dist/i18n/locales/ja/ai.json.js +4 -11
- package/dist/i18n/locales/ja/commands.json.js +4 -2
- package/dist/i18n/locales/ja/files.json.js +21 -1
- package/dist/i18n/locales/ja/menu.json.js +2 -0
- package/dist/i18n/locales/ja/panels.json.js +77 -2
- package/dist/i18n/locales/ja/tools.json.js +1 -0
- package/dist/i18n/locales/pl/ai.json.js +4 -11
- package/dist/i18n/locales/pl/commands.json.js +4 -2
- package/dist/i18n/locales/pl/files.json.js +21 -1
- package/dist/i18n/locales/pl/menu.json.js +2 -0
- package/dist/i18n/locales/pl/panels.json.js +77 -2
- package/dist/i18n/locales/pl/tools.json.js +1 -0
- package/dist/i18n/locales/ru/ai.json.js +4 -11
- package/dist/i18n/locales/ru/commands.json.js +4 -2
- package/dist/i18n/locales/ru/files.json.js +21 -1
- package/dist/i18n/locales/ru/menu.json.js +2 -0
- package/dist/i18n/locales/ru/panels.json.js +77 -2
- package/dist/i18n/locales/ru/tools.json.js +1 -0
- package/dist/i18n/locales/zh-cn/ai.json.js +4 -11
- package/dist/i18n/locales/zh-cn/commands.json.js +4 -2
- package/dist/i18n/locales/zh-cn/files.json.js +21 -1
- package/dist/i18n/locales/zh-cn/menu.json.js +2 -0
- package/dist/i18n/locales/zh-cn/panels.json.js +77 -2
- package/dist/i18n/locales/zh-cn/tools.json.js +1 -0
- package/dist/i18n/messages/ai.d.ts +10 -11
- package/dist/i18n/messages/ai.js +4 -11
- package/dist/i18n/messages/ai.js.map +1 -1
- package/dist/i18n/messages/commands.d.ts +3 -1
- package/dist/i18n/messages/commands.d.ts.map +1 -1
- package/dist/i18n/messages/commands.js +3 -1
- package/dist/i18n/messages/commands.js.map +1 -1
- package/dist/i18n/messages/files.d.ts +34 -0
- package/dist/i18n/messages/files.d.ts.map +1 -1
- package/dist/i18n/messages/files.js +20 -0
- package/dist/i18n/messages/files.js.map +1 -1
- package/dist/i18n/messages/menu.d.ts +2 -0
- package/dist/i18n/messages/menu.d.ts.map +1 -1
- package/dist/i18n/messages/menu.js +2 -0
- package/dist/i18n/messages/menu.js.map +1 -1
- package/dist/i18n/messages/panels.d.ts +77 -0
- package/dist/i18n/messages/panels.d.ts.map +1 -1
- package/dist/i18n/messages/panels.js +75 -0
- package/dist/i18n/messages/panels.js.map +1 -1
- package/dist/i18n/messages/tools.d.ts +1 -0
- package/dist/i18n/messages/tools.d.ts.map +1 -1
- package/dist/i18n/messages/tools.js +1 -0
- package/dist/i18n/messages/tools.js.map +1 -1
- package/dist/i18n/messages.d.ts +127 -12
- package/dist/i18n/useI18n.d.ts +508 -48
- package/dist/i18n/useI18n.d.ts.map +1 -1
- package/dist/primitives/LayerTree/LayerTreeRoot.vue.d.ts +1 -1
- package/dist/primitives/LayoutControls/LayoutControlsRoot.vue.d.ts.map +1 -1
- package/dist/primitives/LayoutControls/LayoutControlsRoot.vue.js +2 -0
- package/dist/primitives/LayoutControls/LayoutControlsRoot.vue.js.map +1 -1
- package/dist/shared/input/resize.js +28 -12
- package/dist/shared/input/resize.js.map +1 -1
- package/dist/shared/input/types.js +1 -0
- package/dist/shared/input/types.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../src/i18n/useI18n.ts"],"mappings":";;;;iBAiDgB,iBAAiB,sBAAsB,OAAO,UAAU,gBACzC,IAAI,WAAW;cAGjC,wBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAChB,qBAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;EA2BgB,QAAA,IAAI"}
|
|
@@ -21,9 +21,9 @@ declare var __VLS_8: {
|
|
|
21
21
|
shapeWithTextType?: import("@pairdraw/scene-graph/shape-with-text").ShapeWithTextType | undefined;
|
|
22
22
|
outline?: {
|
|
23
23
|
type: import("@pairdraw/scene-graph").NodeType;
|
|
24
|
-
rotation: number;
|
|
25
24
|
width: number;
|
|
26
25
|
height: number;
|
|
26
|
+
rotation: number;
|
|
27
27
|
cornerRadius: number;
|
|
28
28
|
topLeftRadius: number;
|
|
29
29
|
topRightRadius: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutControlsRoot.vue.d.ts","names":[],"sources":["../../../src/primitives/LayoutControls/LayoutControlsRoot.vue"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"LayoutControlsRoot.vue.d.ts","names":[],"sources":["../../../src/primitives/LayoutControls/LayoutControlsRoot.vue"],"mappings":";;KA8EK,cAAc;cA2Eb,0BAAU,kDAAA,qCAAA,iDAAA,aAAA,eAAA,oDAAA;cAEV,cAAqB,uBAAuB,YAAY;cACzC,iBAAO;KACvB,gBAAgB,GAAG,KAAK;;IAE3B,QAAQ"}
|
|
@@ -36,11 +36,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
36
|
return renderSlot(_ctx.$slots, "default", {
|
|
37
37
|
editor: unref(ctx).editor,
|
|
38
38
|
node: unref(ctx).node.value,
|
|
39
|
+
isMulti: unref(ctx).isMulti.value,
|
|
39
40
|
resizes: unref(ctx).resizes.value,
|
|
40
41
|
layoutDirection: unref(ctx).layoutDirection.value,
|
|
41
42
|
gapAuto: unref(ctx).gapAuto.value,
|
|
42
43
|
isInAutoLayout: unref(ctx).isInAutoLayout.value,
|
|
43
44
|
isGrid: unref(ctx).isGrid.value,
|
|
45
|
+
isGridChild: unref(ctx).isGridChild.value,
|
|
44
46
|
isFlex: unref(ctx).isFlex.value,
|
|
45
47
|
widthSizing: unref(ctx).widthSizing.value,
|
|
46
48
|
heightSizing: unref(ctx).heightSizing.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutControlsRoot.vue.js","names":[],"sources":["../../../src/primitives/LayoutControls/LayoutControlsRoot.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { proxyRefs } from 'vue'\n\nimport { useLayout } from '#vue/controls/layout/use'\nimport { provideLayoutControls } from '#vue/primitives/LayoutControls/context'\nimport type { LayoutControlsRootSlots } from '#vue/primitives/LayoutControls/types'\n\nconst ctx = useLayout()\ndefineSlots<LayoutControlsRootSlots>()\nconst actions = {\n cancelPreview: ctx.cancelPreview,\n updateProp: ctx.updateProp,\n updateSizeLimit: ctx.updateSizeLimit,\n setSizeLimitToCurrent: ctx.setSizeLimitToCurrent,\n commitSizeLimit: ctx.commitSizeLimit,\n addSizeLimit: ctx.addSizeLimit,\n removeSizeLimit: ctx.removeSizeLimit,\n commitProp: ctx.commitProp,\n setAxisSizing: ctx.setAxisSizing,\n updateAxisSize: ctx.updateAxisSize,\n commitAxisSize: ctx.commitAxisSize,\n toggleAspectRatioLock: ctx.toggleAspectRatioLock,\n setHorizontalPadding: ctx.setHorizontalPadding,\n commitHorizontalPadding: ctx.commitHorizontalPadding,\n setVerticalPadding: ctx.setVerticalPadding,\n commitVerticalPadding: ctx.commitVerticalPadding,\n setAlignment: ctx.setAlignment,\n setGapAuto: ctx.setGapAuto,\n setLayoutDirection: ctx.setLayoutDirection,\n updateGridTrack: ctx.updateGridTrack,\n addTrack: ctx.addTrack,\n removeTrack: ctx.removeTrack,\n toggleIndividualPadding: ctx.toggleIndividualPadding\n}\nprovideLayoutControls(\n proxyRefs(ctx) as ReturnType<typeof proxyRefs<typeof ctx>> & {\n node: NonNullable<typeof ctx.node.value>\n }\n)\n</script>\n\n<template>\n <slot\n :editor=\"ctx.editor\"\n :node=\"ctx.node.value\"\n :resizes=\"ctx.resizes.value\"\n :layout-direction=\"ctx.layoutDirection.value\"\n :gap-auto=\"ctx.gapAuto.value\"\n :is-in-auto-layout=\"ctx.isInAutoLayout.value\"\n :is-grid=\"ctx.isGrid.value\"\n :is-flex=\"ctx.isFlex.value\"\n :width-sizing=\"ctx.widthSizing.value\"\n :height-sizing=\"ctx.heightSizing.value\"\n :width-sizing-options=\"ctx.widthSizingOptions.value\"\n :height-sizing-options=\"ctx.heightSizingOptions.value\"\n :aspect-ratio-locked=\"ctx.aspectRatioLocked.value\"\n :aspect-ratio-lockable=\"ctx.aspectRatioLockable.value\"\n :align-grid=\"ctx.alignGrid.value\"\n :show-individual-padding=\"ctx.showIndividualPadding.value\"\n :has-uniform-padding=\"ctx.hasUniformPadding.value\"\n :has-symmetric-padding=\"ctx.hasSymmetricPadding.value\"\n :track-sizing-options=\"ctx.trackSizingOptions\"\n :track-label=\"ctx.trackLabel\"\n :actions=\"actions\"\n />\n</template>\n"],"mappings":";;;;;;;EAOA,MAAM,MAAM,UAAU;EAEtB,MAAM,UAAU;GACd,eAAe,IAAI;GACnB,YAAY,IAAI;GAChB,iBAAiB,IAAI;GACrB,uBAAuB,IAAI;GAC3B,iBAAiB,IAAI;GACrB,cAAc,IAAI;GAClB,iBAAiB,IAAI;GACrB,YAAY,IAAI;GAChB,eAAe,IAAI;GACnB,gBAAgB,IAAI;GACpB,gBAAgB,IAAI;GACpB,uBAAuB,IAAI;GAC3B,sBAAsB,IAAI;GAC1B,yBAAyB,IAAI;GAC7B,oBAAoB,IAAI;GACxB,uBAAuB,IAAI;GAC3B,cAAc,IAAI;GAClB,YAAY,IAAI;GAChB,oBAAoB,IAAI;GACxB,iBAAiB,IAAI;GACrB,UAAU,IAAI;GACd,aAAa,IAAI;GACjB,yBAAyB,IAAI;EAC/B;EACA,sBACE,UAAU,GAAG,CAGf;;GAIE,OAAA,
|
|
1
|
+
{"version":3,"file":"LayoutControlsRoot.vue.js","names":[],"sources":["../../../src/primitives/LayoutControls/LayoutControlsRoot.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { proxyRefs } from 'vue'\n\nimport { useLayout } from '#vue/controls/layout/use'\nimport { provideLayoutControls } from '#vue/primitives/LayoutControls/context'\nimport type { LayoutControlsRootSlots } from '#vue/primitives/LayoutControls/types'\n\nconst ctx = useLayout()\ndefineSlots<LayoutControlsRootSlots>()\nconst actions = {\n cancelPreview: ctx.cancelPreview,\n updateProp: ctx.updateProp,\n updateSizeLimit: ctx.updateSizeLimit,\n setSizeLimitToCurrent: ctx.setSizeLimitToCurrent,\n commitSizeLimit: ctx.commitSizeLimit,\n addSizeLimit: ctx.addSizeLimit,\n removeSizeLimit: ctx.removeSizeLimit,\n commitProp: ctx.commitProp,\n setAxisSizing: ctx.setAxisSizing,\n updateAxisSize: ctx.updateAxisSize,\n commitAxisSize: ctx.commitAxisSize,\n toggleAspectRatioLock: ctx.toggleAspectRatioLock,\n setHorizontalPadding: ctx.setHorizontalPadding,\n commitHorizontalPadding: ctx.commitHorizontalPadding,\n setVerticalPadding: ctx.setVerticalPadding,\n commitVerticalPadding: ctx.commitVerticalPadding,\n setAlignment: ctx.setAlignment,\n setGapAuto: ctx.setGapAuto,\n setLayoutDirection: ctx.setLayoutDirection,\n updateGridTrack: ctx.updateGridTrack,\n addTrack: ctx.addTrack,\n removeTrack: ctx.removeTrack,\n toggleIndividualPadding: ctx.toggleIndividualPadding\n}\nprovideLayoutControls(\n proxyRefs(ctx) as ReturnType<typeof proxyRefs<typeof ctx>> & {\n node: NonNullable<typeof ctx.node.value>\n }\n)\n</script>\n\n<template>\n <slot\n :editor=\"ctx.editor\"\n :node=\"ctx.node.value\"\n :is-multi=\"ctx.isMulti.value\"\n :resizes=\"ctx.resizes.value\"\n :layout-direction=\"ctx.layoutDirection.value\"\n :gap-auto=\"ctx.gapAuto.value\"\n :is-in-auto-layout=\"ctx.isInAutoLayout.value\"\n :is-grid=\"ctx.isGrid.value\"\n :is-grid-child=\"ctx.isGridChild.value\"\n :is-flex=\"ctx.isFlex.value\"\n :width-sizing=\"ctx.widthSizing.value\"\n :height-sizing=\"ctx.heightSizing.value\"\n :width-sizing-options=\"ctx.widthSizingOptions.value\"\n :height-sizing-options=\"ctx.heightSizingOptions.value\"\n :aspect-ratio-locked=\"ctx.aspectRatioLocked.value\"\n :aspect-ratio-lockable=\"ctx.aspectRatioLockable.value\"\n :align-grid=\"ctx.alignGrid.value\"\n :show-individual-padding=\"ctx.showIndividualPadding.value\"\n :has-uniform-padding=\"ctx.hasUniformPadding.value\"\n :has-symmetric-padding=\"ctx.hasSymmetricPadding.value\"\n :track-sizing-options=\"ctx.trackSizingOptions\"\n :track-label=\"ctx.trackLabel\"\n :actions=\"actions\"\n />\n</template>\n"],"mappings":";;;;;;;EAOA,MAAM,MAAM,UAAU;EAEtB,MAAM,UAAU;GACd,eAAe,IAAI;GACnB,YAAY,IAAI;GAChB,iBAAiB,IAAI;GACrB,uBAAuB,IAAI;GAC3B,iBAAiB,IAAI;GACrB,cAAc,IAAI;GAClB,iBAAiB,IAAI;GACrB,YAAY,IAAI;GAChB,eAAe,IAAI;GACnB,gBAAgB,IAAI;GACpB,gBAAgB,IAAI;GACpB,uBAAuB,IAAI;GAC3B,sBAAsB,IAAI;GAC1B,yBAAyB,IAAI;GAC7B,oBAAoB,IAAI;GACxB,uBAAuB,IAAI;GAC3B,cAAc,IAAI;GAClB,YAAY,IAAI;GAChB,oBAAoB,IAAI;GACxB,iBAAiB,IAAI;GACrB,UAAU,IAAI;GACd,aAAa,IAAI;GACjB,yBAAyB,IAAI;EAC/B;EACA,sBACE,UAAU,GAAG,CAGf;;GAIE,OAAA,WAwBE,KAAA,QAAA,WAAA;IAvBC,QAAQ,MAAA,GAAA,CAAG,CAAC;IACZ,MAAM,MAAA,GAAA,CAAG,CAAC,KAAK;IACf,SAAU,MAAA,GAAA,CAAG,CAAC,QAAQ;IACtB,SAAS,MAAA,GAAA,CAAG,CAAC,QAAQ;IACrB,iBAAkB,MAAA,GAAA,CAAG,CAAC,gBAAgB;IACtC,SAAU,MAAA,GAAA,CAAG,CAAC,QAAQ;IACtB,gBAAmB,MAAA,GAAA,CAAG,CAAC,eAAe;IACtC,QAAS,MAAA,GAAA,CAAG,CAAC,OAAO;IACpB,aAAe,MAAA,GAAA,CAAG,CAAC,YAAY;IAC/B,QAAS,MAAA,GAAA,CAAG,CAAC,OAAO;IACpB,aAAc,MAAA,GAAA,CAAG,CAAC,YAAY;IAC9B,cAAe,MAAA,GAAA,CAAG,CAAC,aAAa;IAChC,oBAAsB,MAAA,GAAA,CAAG,CAAC,mBAAmB;IAC7C,qBAAuB,MAAA,GAAA,CAAG,CAAC,oBAAoB;IAC/C,mBAAqB,MAAA,GAAA,CAAG,CAAC,kBAAkB;IAC3C,qBAAuB,MAAA,GAAA,CAAG,CAAC,oBAAoB;IAC/C,WAAY,MAAA,GAAA,CAAG,CAAC,UAAU;IAC1B,uBAAyB,MAAA,GAAA,CAAG,CAAC,sBAAsB;IACnD,mBAAqB,MAAA,GAAA,CAAG,CAAC,kBAAkB;IAC3C,qBAAuB,MAAA,GAAA,CAAG,CAAC,oBAAoB;IAC/C,oBAAsB,MAAA,GAAA,CAAG,CAAC;IAC1B,YAAa,MAAA,GAAA,CAAG,CAAC;IACR"}
|
|
@@ -61,12 +61,12 @@ function keptAspectRatio(d, shiftKey, ctrlKey) {
|
|
|
61
61
|
const { width, height } = d.origRect;
|
|
62
62
|
return shiftKey && width > 0 && height > 0 ? width / height : null;
|
|
63
63
|
}
|
|
64
|
-
function resizeChanges(d, type, cx, cy, shiftKey, editor,
|
|
64
|
+
function resizeChanges(d, type, cx, cy, shiftKey, editor, primaryModifier) {
|
|
65
65
|
const { origRect } = d;
|
|
66
|
-
const aspect = keptAspectRatio(d, shiftKey,
|
|
67
|
-
d.freesLock = d.lockedAspectRatio !== null &&
|
|
66
|
+
const aspect = keptAspectRatio(d, shiftKey, primaryModifier);
|
|
67
|
+
d.freesLock = d.lockedAspectRatio !== null && primaryModifier;
|
|
68
68
|
const calculatedRect = calculateResizeRect(d.handle, origRect, cx - d.startX, cy - d.startY, aspect);
|
|
69
|
-
const newRect = aspect !== null ? calculatedRect : applyResizeSnap(d, calculatedRect, editor,
|
|
69
|
+
const newRect = aspect !== null ? calculatedRect : applyResizeSnap(d, calculatedRect, editor, primaryModifier);
|
|
70
70
|
return {
|
|
71
71
|
changes: {
|
|
72
72
|
...newRect,
|
|
@@ -90,8 +90,8 @@ function resizeChanges(d, type, cx, cy, shiftKey, editor, ctrlKey) {
|
|
|
90
90
|
* box, and path text must re-place glyphs along its path rather than scale as a
|
|
91
91
|
* blob (see reflowedPathTextChanges).
|
|
92
92
|
*/
|
|
93
|
-
function applyConstrainedChildren(d, newRect, editor) {
|
|
94
|
-
if (!d.origChildren || d.origRect.width <= 0 || d.origRect.height <= 0) return;
|
|
93
|
+
function applyConstrainedChildren(d, newRect, editor, ignoringConstraints) {
|
|
94
|
+
if (ignoringConstraints || !d.origChildren || d.origRect.width <= 0 || d.origRect.height <= 0) return;
|
|
95
95
|
const changes = computeConstrainedResizeChanges(editor.graph, d.nodeId, d.origRect, newRect, d.origChildren);
|
|
96
96
|
for (const [childId, childChanges] of changes) {
|
|
97
97
|
const orig = d.origChildren.get(childId);
|
|
@@ -105,12 +105,28 @@ function applyConstrainedChildren(d, newRect, editor) {
|
|
|
105
105
|
editor.renderer?.invalidateVectorPath(childId);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
/**
|
|
109
|
-
|
|
108
|
+
/**
|
|
109
|
+
* The primary modifier: Control on Windows, Command on macOS, as Figma ignores constraints.
|
|
110
|
+
*/
|
|
111
|
+
function ignoresConstraints(event) {
|
|
112
|
+
return event.ctrlKey || event.metaKey;
|
|
113
|
+
}
|
|
114
|
+
/** The modifier both frees a locked ratio and turns snapping off, as in Figma. */
|
|
115
|
+
function applyResize(dragState, cx, cy, shiftKey, editor, primaryModifier = false, altKey = false) {
|
|
110
116
|
const d = toRaw(dragState);
|
|
111
117
|
const node = editor.graph.getNode(d.nodeId);
|
|
112
118
|
if (!node) return;
|
|
113
|
-
const { changes, newRect } = resizeChanges(d, node.type, cx, cy, shiftKey, editor,
|
|
119
|
+
const { changes, newRect: draggedRect } = resizeChanges(d, node.type, cx, cy, shiftKey, editor, primaryModifier);
|
|
120
|
+
const newRect = altKey ? {
|
|
121
|
+
x: d.origRect.x + (d.origRect.width - draggedRect.width) / 2,
|
|
122
|
+
y: d.origRect.y + (d.origRect.height - draggedRect.height) / 2,
|
|
123
|
+
width: draggedRect.width,
|
|
124
|
+
height: draggedRect.height
|
|
125
|
+
} : draggedRect;
|
|
126
|
+
if (altKey) Object.assign(changes, {
|
|
127
|
+
x: newRect.x,
|
|
128
|
+
y: newRect.y
|
|
129
|
+
});
|
|
114
130
|
d.appliedRect = { ...newRect };
|
|
115
131
|
d.origSizing ??= layerSizing(node);
|
|
116
132
|
d.appliedSizing = draggedSizing(editor.graph, node, d.origSizing, d.origRect, newRect);
|
|
@@ -127,9 +143,9 @@ function applyResize(dragState, cx, cy, shiftKey, editor, ctrlKey = false) {
|
|
|
127
143
|
}
|
|
128
144
|
editor.graph.updateNodePreview(d.nodeId, changes);
|
|
129
145
|
if (changes.fillGeometry || changes.strokeGeometry || changes.vectorNetwork) editor.renderer?.invalidateVectorPath(d.nodeId);
|
|
130
|
-
applyConstrainedChildren(d, newRect, editor);
|
|
146
|
+
applyConstrainedChildren(d, newRect, editor, primaryModifier);
|
|
131
147
|
editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId));
|
|
132
|
-
applyConstrainedChildren(d, newRect, editor);
|
|
148
|
+
applyConstrainedChildren(d, newRect, editor, primaryModifier);
|
|
133
149
|
editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId));
|
|
134
150
|
editor.requestRepaint();
|
|
135
151
|
}
|
|
@@ -311,6 +327,6 @@ function commitResizeGeometry(d, editor) {
|
|
|
311
327
|
}
|
|
312
328
|
}
|
|
313
329
|
//#endregion
|
|
314
|
-
export { applyResize, cancelResizePreview, commitResizePreview, tryStartResize };
|
|
330
|
+
export { applyResize, cancelResizePreview, commitResizePreview, ignoresConstraints, tryStartResize };
|
|
315
331
|
|
|
316
332
|
//# sourceMappingURL=resize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize.js","names":[],"sources":["../../../src/shared/input/resize.ts"],"sourcesContent":["export { tryStartResize } from '#vue/shared/input/resize/start'\nimport { isEqual } from 'es-toolkit'\nimport { toRaw } from 'vue'\n\nimport { resizedPathTextGlyphs, type Editor } from '@pairdraw/core'\nimport { computeAllLayouts } from '@pairdraw/core/layout'\nimport { calibratePathTextLayout, reflowPathTextGlyphs } from '@pairdraw/core/text'\nimport type { SceneNode, DerivedTextGlyph, TextPathData } from '@pairdraw/scene-graph'\nimport { copyDerivedGlyphs, copyGeometryPaths, copyStrokes } from '@pairdraw/scene-graph/copy'\nimport { findInstanceAncestor, recordInstanceOverride } from '@pairdraw/scene-graph/instances'\nimport {\n cloneInstanceOverrideState,\n type InstanceOverrideState\n} from '@pairdraw/scene-graph/instances/overrides'\nimport { recapturedAspectRatio } from '@pairdraw/scene-graph/layout'\nimport type { Rect } from '@pairdraw/scene-graph/primitives'\nimport {\n computeConstrainedResizeChanges,\n scaledGeometryChanges,\n type ResizeSnapshot\n} from '@pairdraw/scene-graph/resize'\nimport { markSourceFieldsEdited } from '@pairdraw/scene-graph/source-metadata'\nimport { cloneVectorNetwork } from '@pairdraw/scene-graph/vector-network'\n\nimport { calculateResizeRect } from '#vue/shared/input/resize/rect'\nimport { draggedSizing, layerSizing } from '#vue/shared/input/resize/sizing'\nimport { applyResizeSnap } from '#vue/shared/input/resize/snap'\nimport { optionalEditorState } from '#vue/shared/input/snap'\nimport type { DragResize } from '#vue/shared/input/types'\n\n/**\n * Resize path-text glyphs without baking anisotropic scale into fontSize.\n * commandsBlob stays in font units; paint multiplies by fontSize then scaleX/Y.\n * Accumulating scaleX/Y (not fontSize *= avg) keeps non-uniform stretch correct\n * under rotation — see drawDerivedText transform order.\n */\n/**\n * Figma resize semantics for imported text-on-path: constant font size,\n * text laid out again along the scaled path (resizedPathTextGlyphs). Used\n * instead of geometric glyph/silhouette scaling whenever the node still has\n * its layout path. Baked node-level silhouettes cannot follow re-placed\n * glyphs, so strokeGeometry is cleared — the renderer rebuilds silhouettes\n * per glyph — and stroke weight stays constant like the font size.\n */\nfunction reflowedPathTextChanges(\n node: SceneNode | undefined,\n orig: Pick<ResizeSnapshot, 'textPathData' | 'textPathBox' | 'derivedTextGlyphs' | 'strokes'>,\n sx: number,\n sy: number\n): Partial<SceneNode> | null {\n if (!orig.textPathData || !orig.textPathBox || !orig.derivedTextGlyphs?.length) return null\n const box = {\n x: orig.textPathBox.x * sx,\n y: orig.textPathBox.y * sy,\n width: orig.textPathBox.width * sx,\n height: orig.textPathBox.height * sy\n }\n const glyphs =\n (node && resizedPathTextGlyphs(node, orig.derivedTextGlyphs, orig.textPathBox, box)) ??\n movedPathTextGlyphs(orig.derivedTextGlyphs, orig.textPathData, orig.textPathBox, box)\n if (!glyphs) return null\n return {\n derivedTextGlyphs: glyphs,\n textPathBox: box,\n strokeGeometry: [],\n strokes: copyStrokes(orig.strokes)\n }\n}\n\n/** Without the font, the old glyphs move along the path, keeping their spacing. */\nfunction movedPathTextGlyphs(\n glyphs: DerivedTextGlyph[],\n data: TextPathData,\n origBox: Rect,\n box: Rect\n): DerivedTextGlyph[] | null {\n const layout = calibratePathTextLayout(glyphs, data, origBox)\n return layout ? reflowPathTextGlyphs(glyphs, data, layout, box) : null\n}\n\n/**\n * The ratio a drag keeps, as Figma's handles keep it: a locked layer keeps its own unless Control\n * frees it, and Shift keeps the ratio the drag started from.\n */\nfunction keptAspectRatio(d: DragResize, shiftKey: boolean, ctrlKey: boolean): number | null {\n if (d.lockedAspectRatio !== null && !ctrlKey) return d.lockedAspectRatio\n const { width, height } = d.origRect\n return shiftKey && width > 0 && height > 0 ? width / height : null\n}\n\nfunction resizeChanges(\n d: DragResize,\n type: SceneNode['type'],\n cx: number,\n cy: number,\n shiftKey: boolean,\n editor: Editor,\n ctrlKey: boolean\n) {\n const { origRect } = d\n const aspect = keptAspectRatio(d, shiftKey, ctrlKey)\n // Control sets a lock aside even when Shift keeps the same ratio; the commit stores the size.\n d.freesLock = d.lockedAspectRatio !== null && ctrlKey\n const calculatedRect = calculateResizeRect(\n d.handle,\n origRect,\n cx - d.startX,\n cy - d.startY,\n aspect\n )\n const newRect =\n aspect !== null ? calculatedRect : applyResizeSnap(d, calculatedRect, editor, ctrlKey)\n\n const changes: Partial<SceneNode> = {\n ...newRect,\n ...scaledGeometryChanges(\n {\n type,\n vectorNetwork: d.origVectorNetwork,\n fillGeometry: d.origFillGeometry,\n strokeGeometry: d.origStrokeGeometry,\n derivedTextGlyphs: d.origDerivedTextGlyphs,\n strokes: d.origStrokes,\n textPathData: d.origTextPathData,\n textPathBox: d.origTextPathBox\n },\n origRect.width,\n origRect.height,\n newRect.width,\n newRect.height\n )\n }\n return { changes, newRect }\n}\n\n/**\n * Re-apply the root resize to descendants through the constraint engine, then\n * layer path-text reflow on top: constrained children get their own before/after\n * box, and path text must re-place glyphs along its path rather than scale as a\n * blob (see reflowedPathTextChanges).\n */\nfunction applyConstrainedChildren(\n d: DragResize,\n newRect: Pick<SceneNode, 'width' | 'height'>,\n editor: Editor\n) {\n if (!d.origChildren || d.origRect.width <= 0 || d.origRect.height <= 0) return\n const changes = computeConstrainedResizeChanges(\n editor.graph,\n d.nodeId,\n d.origRect,\n newRect,\n d.origChildren\n )\n for (const [childId, childChanges] of changes) {\n const orig = d.origChildren.get(childId)\n if (orig && orig.width > 0 && orig.height > 0) {\n const width = childChanges.width ?? orig.width\n const height = childChanges.height ?? orig.height\n const reflow = reflowedPathTextChanges(\n editor.graph.getNode(childId),\n orig,\n width / orig.width,\n height / orig.height\n )\n if (reflow) Object.assign(childChanges, reflow)\n }\n editor.graph.updateNodePreview(childId, childChanges)\n editor.renderer?.invalidateVectorPath(childId)\n }\n}\n\n/** Control both frees a locked ratio and turns snapping off, as in Figma. */\nexport function applyResize(\n dragState: DragResize,\n cx: number,\n cy: number,\n shiftKey: boolean,\n editor: Editor,\n ctrlKey = false\n) {\n // Drag state lives in Vue-reactive input state; nested arrays read through\n // it are reactive proxies. Writing those into the graph poisons it for\n // structuredClone consumers (export subgraph clone, undo snapshots) with\n // DataCloneError. Unwrap once — also keeps the drag hot path off proxies.\n const d = toRaw(dragState)\n const node = editor.graph.getNode(d.nodeId)\n if (!node) return\n const { changes, newRect } = resizeChanges(d, node.type, cx, cy, shiftKey, editor, ctrlKey)\n d.appliedRect = { ...newRect }\n d.origSizing ??= layerSizing(node)\n d.appliedSizing = draggedSizing(editor.graph, node, d.origSizing, d.origRect, newRect)\n Object.assign(changes, d.appliedSizing)\n markResized(d, newRect, editor)\n if (d.origRect.width > 0 && d.origRect.height > 0) {\n const reflow = reflowedPathTextChanges(\n node,\n {\n textPathData: d.origTextPathData,\n textPathBox: d.origTextPathBox,\n derivedTextGlyphs: d.origDerivedTextGlyphs,\n strokes: d.origStrokes\n },\n newRect.width / d.origRect.width,\n newRect.height / d.origRect.height\n )\n if (reflow) Object.assign(changes, reflow)\n }\n editor.graph.updateNodePreview(d.nodeId, changes)\n if (changes.fillGeometry || changes.strokeGeometry || changes.vectorNetwork) {\n editor.renderer?.invalidateVectorPath(d.nodeId)\n }\n\n // Two passes around the layout run: the first sizes children so Yoga can\n // resolve HUG/FILL, the second re-applies against the settled boxes.\n applyConstrainedChildren(d, newRect, editor)\n editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId))\n applyConstrainedChildren(d, newRect, editor)\n editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId))\n editor.requestRepaint()\n}\n\n/**\n * Deep-copy geometry read back from a previewed node — preview values can\n * be reactivity-wrapped, and storing proxies breaks structuredClone snapshots\n * (delete/undo would throw DataCloneError).\n */\nfunction snapshotResizeFinal(node: SceneNode, hadStrokeGeometry: boolean): Partial<SceneNode> {\n const final: Partial<SceneNode> = {\n x: node.x,\n y: node.y,\n width: node.width,\n height: node.height\n }\n if (node.vectorNetwork) final.vectorNetwork = cloneVectorNetwork(node.vectorNetwork)\n if (node.fillGeometry.length > 0) final.fillGeometry = copyGeometryPaths(node.fillGeometry)\n // Path-text reflow and a resize that redraws a stroke at its weight legitimately EMPTY\n // strokeGeometry — commit it so the pre-resize outlines don't resurrect. A node that had none\n // keeps the length guard: a spurious strokeGeometry key would clear its raw Figma payload.\n if (node.strokeGeometry.length > 0 || node.textPathBox || hadStrokeGeometry) {\n final.strokeGeometry = copyGeometryPaths(node.strokeGeometry)\n }\n if (node.derivedTextGlyphs?.length) {\n final.derivedTextGlyphs = copyDerivedGlyphs(node.derivedTextGlyphs)\n }\n if (node.textPathBox) final.textPathBox = { ...node.textPathBox }\n if (node.textPathData) final.textPathData = structuredClone(node.textPathData)\n if (node.strokes.length > 0) final.strokes = copyStrokes(node.strokes)\n return final\n}\n\n/**\n * Resize commits run inside preserveSourceMetadataDuring so the raw Figma\n * payload (vectorData, textPathStart, effects, ...) survives — but the\n * geometry-derived raw fields are now stale and export PREFERS them over\n * node values (rawSize would resurrect the pre-resize dimensions in the\n * exported file). Invalidate exactly those.\n */\nfunction clearResizedRawGeometry(editor: Editor, nodeId: string): void {\n const node = editor.graph.getNode(nodeId)\n if (!node) return\n node.source.fig.rawSize = null\n node.source.fig.rawTransform = null\n const raw = node.source.fig.rawNodeFields\n delete raw.fillGeometry\n delete raw.strokeGeometry\n delete raw.strokeWeight\n // vectorData is dual-use: for VECTOR nodes it gates nodeForGeometryExport —\n // leaving it makes export pair stale raw vectorData with styleID-less\n // explicit paths (multi-color icons turn gray). For TEXT it is the\n // TEXT_PATH layout path and must survive or reflow dies.\n if (node.type !== 'TEXT') delete raw.vectorData\n}\n\nconst RECT_FIELDS = ['x', 'y', 'width', 'height'] as const\n\nfunction sameRect(a: Rect, b: Rect): boolean {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height\n}\n\n/**\n * Resizing keeps the raw payload a file gave the layer but not its size, so once the drag\n * changes the rect, layout lays out a resized frame from a .fig again, during the drag too,\n * instead of keeping the sizes it saved.\n */\nfunction markResized(d: DragResize, rect: Rect, editor: Editor) {\n const node = editor.graph.getNode(d.nodeId)\n if (!node || d.origEditedFields || sameRect(rect, d.origRect)) return\n d.origEditedFields = [...node.source.editedFields]\n markSourceFieldsEdited(node, ['width', 'height'])\n}\n\n/** A drag that ends where it began, or is cancelled, leaves the layer's edits as they were. */\nfunction restoreEditedFields(d: DragResize, editor: Editor) {\n const node = editor.graph.getNode(d.nodeId)\n if (node && d.origEditedFields) node.source.editedFields = d.origEditedFields\n d.origEditedFields = undefined\n}\n\nfunction restoreResizePreview(d: DragResize, editor: Editor) {\n editor.graph.updateNodePreview(d.nodeId, d.origRect)\n for (const [childId, orig] of d.origChildren ?? []) {\n editor.graph.updateNodePreview(childId, {\n x: orig.x,\n y: orig.y,\n width: orig.width,\n height: orig.height,\n vectorNetwork: orig.vectorNetwork,\n fillGeometry: orig.fillGeometry,\n strokeGeometry: orig.strokeGeometry,\n derivedTextGlyphs: orig.derivedTextGlyphs,\n strokes: orig.strokes,\n textPathData: orig.textPathData,\n textPathBox: orig.textPathBox\n })\n }\n}\n\n/** Puts a resize the pointer abandoned back where it started. */\nexport function cancelResizePreview(dragState: DragResize, editor: Editor) {\n const d = toRaw(dragState)\n optionalEditorState(editor)?.snapGuides.splice(0)\n restoreResizePreview(d, editor)\n // The preview scaled the layer's own geometry too, which a commit would have replaced.\n editor.graph.updateNodePreview(d.nodeId, {\n vectorNetwork: d.origVectorNetwork,\n fillGeometry: d.origFillGeometry,\n strokeGeometry: d.origStrokeGeometry,\n derivedTextGlyphs: d.origDerivedTextGlyphs,\n strokes: d.origStrokes,\n textPathData: d.origTextPathData,\n textPathBox: d.origTextPathBox\n })\n if (d.origSizing) editor.graph.updateNodePreview(d.nodeId, d.origSizing)\n editor.renderer?.invalidateVectorPath(d.nodeId)\n restoreEditedFields(d, editor)\n editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId))\n editor.requestRender()\n}\n\nexport function commitResizePreview(dragState: DragResize, editor: Editor) {\n // See applyResize — reactive drag state must not leak into graph writes.\n const d = toRaw(dragState)\n const node = editor.graph.getNode(d.nodeId)\n // A section resized over layers takes in the ones it now covers, a lock that Control set aside\n // takes the new size, and an axis that stopped hugging or filling stays fixed, in one undo step.\n const adoptsLayers = node?.type === 'SECTION'\n const recaptured = node && d.freesLock ? recapturedAspectRatio(node, node.width, node.height) : {}\n const fixesSizing =\n d.origSizing !== undefined &&\n d.appliedSizing !== undefined &&\n !isEqual(d.origSizing, d.appliedSizing)\n if (!adoptsLayers && !recaptured.targetAspectRatio && !fixesSizing) {\n commitResizeGeometry(d, editor)\n return\n }\n editor.undo.runBatch('Resize', () => {\n // Recorded from the sizing the layer started with, so undo puts it back.\n if (fixesSizing && d.origSizing && d.appliedSizing) {\n editor.graph.updateNodePreview(d.nodeId, d.origSizing)\n editor.updateNodeWithUndo(d.nodeId, d.appliedSizing, 'Resize')\n }\n commitResizeGeometry(d, editor)\n if (recaptured.targetAspectRatio) editor.updateNodeWithUndo(d.nodeId, recaptured, 'Resize')\n if (adoptsLayers) editor.adoptCoveredLayers(d.nodeId)\n })\n}\n\n/**\n * Runs a resize that moves layers by their constraints while recording only the box fields the\n * resize changed on the resized layer as an instance override: in Figma a layer inside an instance that its constraints\n * place keeps following the component, so a later component edit still reaches it.\n */\nfunction keepingOnlyOwnOverrides(\n editor: Editor,\n nodeId: string,\n ownFields: readonly string[],\n placedIds: readonly string[],\n commit: () => void\n) {\n const owners = new Map<string, InstanceOverrideState>()\n for (const id of [nodeId, ...placedIds]) {\n const owner = findInstanceAncestor(editor.graph, id)\n if (owner && !owners.has(owner.id))\n owners.set(owner.id, cloneInstanceOverrideState(owner.instanceOverrides))\n }\n commit()\n for (const [id, state] of owners) editor.graph.updateNode(id, { instanceOverrides: state })\n if (owners.size > 0) recordInstanceOverride(editor.graph, nodeId, ownFields)\n}\n\nfunction commitResizeGeometry(d: DragResize, editor: Editor) {\n optionalEditorState(editor)?.snapGuides.splice(0)\n const node = editor.graph.getNode(d.nodeId)\n if (!node) return\n if (!d.appliedRect || sameRect(d.appliedRect, d.origRect)) restoreEditedFields(d, editor)\n const finalChanges = snapshotResizeFinal(node, d.origStrokeGeometry.length > 0)\n\n if (d.origChildren) {\n const finalChildren = new Map<string, Partial<SceneNode>>()\n for (const [childId, original] of d.origChildren) {\n const child = editor.graph.getNode(childId)\n if (!child) continue\n finalChildren.set(childId, snapshotResizeFinal(child, original.strokeGeometry.length > 0))\n }\n restoreResizePreview(d, editor)\n // Resize is geometric — the raw Figma import payload (vectorData,\n // textPathStart, effects, ...) must survive or path-text reflow works\n // exactly once and export fidelity degrades.\n keepingOnlyOwnOverrides(\n editor,\n d.nodeId,\n RECT_FIELDS.filter((key) => finalChanges[key] !== d.origRect[key]),\n [...finalChildren.keys()],\n () => {\n editor.graph.preserveSourceMetadataDuring(() => {\n editor.updateNode(d.nodeId, finalChanges)\n for (const [childId, final] of finalChildren) {\n editor.updateNode(childId, final)\n }\n })\n }\n )\n clearResizedRawGeometry(editor, d.nodeId)\n for (const [childId] of finalChildren) clearResizedRawGeometry(editor, childId)\n editor.commitGroupResize(d.nodeId, d.origRect, d.origChildren)\n editor.requestRepaint()\n } else {\n editor.graph.updateNodePreview(d.nodeId, d.origRect)\n // See the group branch — raw import payload survives geometric commits.\n editor.graph.preserveSourceMetadataDuring(() => {\n editor.updateNode(d.nodeId, finalChanges)\n })\n clearResizedRawGeometry(editor, d.nodeId)\n const original: Parameters<typeof editor.commitResize>[1] = { ...d.origRect }\n if (d.origVectorNetwork || node.vectorNetwork) original.vectorNetwork = d.origVectorNetwork\n if (d.origFillGeometry.length > 0) original.fillGeometry = d.origFillGeometry\n if (d.origStrokeGeometry.length > 0) original.strokeGeometry = d.origStrokeGeometry\n if (d.origDerivedTextGlyphs?.length) original.derivedTextGlyphs = d.origDerivedTextGlyphs\n if (d.origStrokes.length > 0) original.strokes = d.origStrokes\n if (d.origTextPathData) original.textPathData = d.origTextPathData\n if (d.origTextPathBox) original.textPathBox = d.origTextPathBox\n editor.commitResize(d.nodeId, original)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAS,wBACP,MACA,MACA,IACA,IAC2B;CAC3B,IAAI,CAAC,KAAK,gBAAgB,CAAC,KAAK,eAAe,CAAC,KAAK,mBAAmB,QAAQ,OAAO;CACvF,MAAM,MAAM;EACV,GAAG,KAAK,YAAY,IAAI;EACxB,GAAG,KAAK,YAAY,IAAI;EACxB,OAAO,KAAK,YAAY,QAAQ;EAChC,QAAQ,KAAK,YAAY,SAAS;CACpC;CACA,MAAM,UACH,QAAQ,sBAAsB,MAAM,KAAK,mBAAmB,KAAK,aAAa,GAAG,MAClF,oBAAoB,KAAK,mBAAmB,KAAK,cAAc,KAAK,aAAa,GAAG;CACtF,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO;EACL,mBAAmB;EACnB,aAAa;EACb,gBAAgB,CAAC;EACjB,SAAS,YAAY,KAAK,OAAO;CACnC;AACF;;AAGA,SAAS,oBACP,QACA,MACA,SACA,KAC2B;CAC3B,MAAM,SAAS,wBAAwB,QAAQ,MAAM,OAAO;CAC5D,OAAO,SAAS,qBAAqB,QAAQ,MAAM,QAAQ,GAAG,IAAI;AACpE;;;;;AAMA,SAAS,gBAAgB,GAAe,UAAmB,SAAiC;CAC1F,IAAI,EAAE,sBAAsB,QAAQ,CAAC,SAAS,OAAO,EAAE;CACvD,MAAM,EAAE,OAAO,WAAW,EAAE;CAC5B,OAAO,YAAY,QAAQ,KAAK,SAAS,IAAI,QAAQ,SAAS;AAChE;AAEA,SAAS,cACP,GACA,MACA,IACA,IACA,UACA,QACA,SACA;CACA,MAAM,EAAE,aAAa;CACrB,MAAM,SAAS,gBAAgB,GAAG,UAAU,OAAO;CAEnD,EAAE,YAAY,EAAE,sBAAsB,QAAQ;CAC9C,MAAM,iBAAiB,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,SAAS,oBAAoB,EAAE;EACpE,IAAI,EAAE,YAAY,SAAS,GAAG,SAAS,UAAU,EAAE;EACnD,IAAI,EAAE,kBAAkB,SAAS,eAAe,EAAE;EAClD,IAAI,EAAE,iBAAiB,SAAS,cAAc,EAAE;EAChD,OAAO,aAAa,EAAE,QAAQ,QAAQ;CACxC;AACF"}
|
|
1
|
+
{"version":3,"file":"resize.js","names":[],"sources":["../../../src/shared/input/resize.ts"],"sourcesContent":["export { tryStartResize } from '#vue/shared/input/resize/start'\nimport { isEqual } from 'es-toolkit'\nimport { toRaw } from 'vue'\n\nimport { resizedPathTextGlyphs, type Editor } from '@pairdraw/core'\nimport { computeAllLayouts } from '@pairdraw/core/layout'\nimport { calibratePathTextLayout, reflowPathTextGlyphs } from '@pairdraw/core/text'\nimport type { SceneNode, DerivedTextGlyph, TextPathData } from '@pairdraw/scene-graph'\nimport { copyDerivedGlyphs, copyGeometryPaths, copyStrokes } from '@pairdraw/scene-graph/copy'\nimport { findInstanceAncestor, recordInstanceOverride } from '@pairdraw/scene-graph/instances'\nimport {\n cloneInstanceOverrideState,\n type InstanceOverrideState\n} from '@pairdraw/scene-graph/instances/overrides'\nimport { recapturedAspectRatio } from '@pairdraw/scene-graph/layout'\nimport type { Rect } from '@pairdraw/scene-graph/primitives'\nimport {\n computeConstrainedResizeChanges,\n scaledGeometryChanges,\n type ResizeSnapshot\n} from '@pairdraw/scene-graph/resize'\nimport { markSourceFieldsEdited } from '@pairdraw/scene-graph/source-metadata'\nimport { cloneVectorNetwork } from '@pairdraw/scene-graph/vector-network'\n\nimport { calculateResizeRect } from '#vue/shared/input/resize/rect'\nimport { draggedSizing, layerSizing } from '#vue/shared/input/resize/sizing'\nimport { applyResizeSnap } from '#vue/shared/input/resize/snap'\nimport { optionalEditorState } from '#vue/shared/input/snap'\nimport type { DragResize } from '#vue/shared/input/types'\n\n/**\n * Resize path-text glyphs without baking anisotropic scale into fontSize.\n * commandsBlob stays in font units; paint multiplies by fontSize then scaleX/Y.\n * Accumulating scaleX/Y (not fontSize *= avg) keeps non-uniform stretch correct\n * under rotation — see drawDerivedText transform order.\n */\n/**\n * Figma resize semantics for imported text-on-path: constant font size,\n * text laid out again along the scaled path (resizedPathTextGlyphs). Used\n * instead of geometric glyph/silhouette scaling whenever the node still has\n * its layout path. Baked node-level silhouettes cannot follow re-placed\n * glyphs, so strokeGeometry is cleared — the renderer rebuilds silhouettes\n * per glyph — and stroke weight stays constant like the font size.\n */\nfunction reflowedPathTextChanges(\n node: SceneNode | undefined,\n orig: Pick<ResizeSnapshot, 'textPathData' | 'textPathBox' | 'derivedTextGlyphs' | 'strokes'>,\n sx: number,\n sy: number\n): Partial<SceneNode> | null {\n if (!orig.textPathData || !orig.textPathBox || !orig.derivedTextGlyphs?.length) return null\n const box = {\n x: orig.textPathBox.x * sx,\n y: orig.textPathBox.y * sy,\n width: orig.textPathBox.width * sx,\n height: orig.textPathBox.height * sy\n }\n const glyphs =\n (node && resizedPathTextGlyphs(node, orig.derivedTextGlyphs, orig.textPathBox, box)) ??\n movedPathTextGlyphs(orig.derivedTextGlyphs, orig.textPathData, orig.textPathBox, box)\n if (!glyphs) return null\n return {\n derivedTextGlyphs: glyphs,\n textPathBox: box,\n strokeGeometry: [],\n strokes: copyStrokes(orig.strokes)\n }\n}\n\n/** Without the font, the old glyphs move along the path, keeping their spacing. */\nfunction movedPathTextGlyphs(\n glyphs: DerivedTextGlyph[],\n data: TextPathData,\n origBox: Rect,\n box: Rect\n): DerivedTextGlyph[] | null {\n const layout = calibratePathTextLayout(glyphs, data, origBox)\n return layout ? reflowPathTextGlyphs(glyphs, data, layout, box) : null\n}\n\n/**\n * The ratio a drag keeps, as Figma's handles keep it: a locked layer keeps its own unless Control\n * frees it, and Shift keeps the ratio the drag started from.\n */\nfunction keptAspectRatio(d: DragResize, shiftKey: boolean, ctrlKey: boolean): number | null {\n if (d.lockedAspectRatio !== null && !ctrlKey) return d.lockedAspectRatio\n const { width, height } = d.origRect\n return shiftKey && width > 0 && height > 0 ? width / height : null\n}\n\nfunction resizeChanges(\n d: DragResize,\n type: SceneNode['type'],\n cx: number,\n cy: number,\n shiftKey: boolean,\n editor: Editor,\n primaryModifier: boolean\n) {\n const { origRect } = d\n const aspect = keptAspectRatio(d, shiftKey, primaryModifier)\n // Control sets a lock aside even when Shift keeps the same ratio; the commit stores the size.\n d.freesLock = d.lockedAspectRatio !== null && primaryModifier\n const calculatedRect = calculateResizeRect(\n d.handle,\n origRect,\n cx - d.startX,\n cy - d.startY,\n aspect\n )\n const newRect =\n aspect !== null ? calculatedRect : applyResizeSnap(d, calculatedRect, editor, primaryModifier)\n\n const changes: Partial<SceneNode> = {\n ...newRect,\n ...scaledGeometryChanges(\n {\n type,\n vectorNetwork: d.origVectorNetwork,\n fillGeometry: d.origFillGeometry,\n strokeGeometry: d.origStrokeGeometry,\n derivedTextGlyphs: d.origDerivedTextGlyphs,\n strokes: d.origStrokes,\n textPathData: d.origTextPathData,\n textPathBox: d.origTextPathBox\n },\n origRect.width,\n origRect.height,\n newRect.width,\n newRect.height\n )\n }\n return { changes, newRect }\n}\n\n/**\n * Re-apply the root resize to descendants through the constraint engine, then\n * layer path-text reflow on top: constrained children get their own before/after\n * box, and path text must re-place glyphs along its path rather than scale as a\n * blob (see reflowedPathTextChanges).\n */\nfunction applyConstrainedChildren(\n d: DragResize,\n newRect: Pick<SceneNode, 'width' | 'height'>,\n editor: Editor,\n ignoringConstraints: boolean\n) {\n if (ignoringConstraints || !d.origChildren || d.origRect.width <= 0 || d.origRect.height <= 0)\n return\n const changes = computeConstrainedResizeChanges(\n editor.graph,\n d.nodeId,\n d.origRect,\n newRect,\n d.origChildren\n )\n for (const [childId, childChanges] of changes) {\n const orig = d.origChildren.get(childId)\n if (orig && orig.width > 0 && orig.height > 0) {\n const width = childChanges.width ?? orig.width\n const height = childChanges.height ?? orig.height\n const reflow = reflowedPathTextChanges(\n editor.graph.getNode(childId),\n orig,\n width / orig.width,\n height / orig.height\n )\n if (reflow) Object.assign(childChanges, reflow)\n }\n editor.graph.updateNodePreview(childId, childChanges)\n editor.renderer?.invalidateVectorPath(childId)\n }\n}\n\n/**\n * The primary modifier: Control on Windows, Command on macOS, as Figma ignores constraints.\n */\nexport function ignoresConstraints(event: Pick<MouseEvent, 'ctrlKey' | 'metaKey'>): boolean {\n return event.ctrlKey || event.metaKey\n}\n\n/** The modifier both frees a locked ratio and turns snapping off, as in Figma. */\nexport function applyResize(\n dragState: DragResize,\n cx: number,\n cy: number,\n shiftKey: boolean,\n editor: Editor,\n primaryModifier = false,\n altKey = false\n) {\n // Drag state lives in Vue-reactive input state; nested arrays read through\n // it are reactive proxies. Writing those into the graph poisons it for\n // structuredClone consumers (export subgraph clone, undo snapshots) with\n // DataCloneError. Unwrap once — also keeps the drag hot path off proxies.\n const d = toRaw(dragState)\n const node = editor.graph.getNode(d.nodeId)\n if (!node) return\n const { changes, newRect: draggedRect } = resizeChanges(\n d,\n node.type,\n cx,\n cy,\n shiftKey,\n editor,\n primaryModifier\n )\n // Alt drags the opposite edge along, around the layer's centre, as Figma's modifier does.\n const newRect = altKey\n ? {\n x: d.origRect.x + (d.origRect.width - draggedRect.width) / 2,\n y: d.origRect.y + (d.origRect.height - draggedRect.height) / 2,\n width: draggedRect.width,\n height: draggedRect.height\n }\n : draggedRect\n if (altKey) Object.assign(changes, { x: newRect.x, y: newRect.y })\n d.appliedRect = { ...newRect }\n d.origSizing ??= layerSizing(node)\n d.appliedSizing = draggedSizing(editor.graph, node, d.origSizing, d.origRect, newRect)\n Object.assign(changes, d.appliedSizing)\n markResized(d, newRect, editor)\n if (d.origRect.width > 0 && d.origRect.height > 0) {\n const reflow = reflowedPathTextChanges(\n node,\n {\n textPathData: d.origTextPathData,\n textPathBox: d.origTextPathBox,\n derivedTextGlyphs: d.origDerivedTextGlyphs,\n strokes: d.origStrokes\n },\n newRect.width / d.origRect.width,\n newRect.height / d.origRect.height\n )\n if (reflow) Object.assign(changes, reflow)\n }\n editor.graph.updateNodePreview(d.nodeId, changes)\n if (changes.fillGeometry || changes.strokeGeometry || changes.vectorNetwork) {\n editor.renderer?.invalidateVectorPath(d.nodeId)\n }\n\n // Two passes around the layout run: the first sizes children so Yoga can\n // resolve HUG/FILL, the second re-applies against the settled boxes.\n // Control sets constraints aside while the drag runs, as Figma's modifier does.\n applyConstrainedChildren(d, newRect, editor, primaryModifier)\n editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId))\n applyConstrainedChildren(d, newRect, editor, primaryModifier)\n editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId))\n editor.requestRepaint()\n}\n\n/**\n * Deep-copy geometry read back from a previewed node — preview values can\n * be reactivity-wrapped, and storing proxies breaks structuredClone snapshots\n * (delete/undo would throw DataCloneError).\n */\nfunction snapshotResizeFinal(node: SceneNode, hadStrokeGeometry: boolean): Partial<SceneNode> {\n const final: Partial<SceneNode> = {\n x: node.x,\n y: node.y,\n width: node.width,\n height: node.height\n }\n if (node.vectorNetwork) final.vectorNetwork = cloneVectorNetwork(node.vectorNetwork)\n if (node.fillGeometry.length > 0) final.fillGeometry = copyGeometryPaths(node.fillGeometry)\n // Path-text reflow and a resize that redraws a stroke at its weight legitimately EMPTY\n // strokeGeometry — commit it so the pre-resize outlines don't resurrect. A node that had none\n // keeps the length guard: a spurious strokeGeometry key would clear its raw Figma payload.\n if (node.strokeGeometry.length > 0 || node.textPathBox || hadStrokeGeometry) {\n final.strokeGeometry = copyGeometryPaths(node.strokeGeometry)\n }\n if (node.derivedTextGlyphs?.length) {\n final.derivedTextGlyphs = copyDerivedGlyphs(node.derivedTextGlyphs)\n }\n if (node.textPathBox) final.textPathBox = { ...node.textPathBox }\n if (node.textPathData) final.textPathData = structuredClone(node.textPathData)\n if (node.strokes.length > 0) final.strokes = copyStrokes(node.strokes)\n return final\n}\n\n/**\n * Resize commits run inside preserveSourceMetadataDuring so the raw Figma\n * payload (vectorData, textPathStart, effects, ...) survives — but the\n * geometry-derived raw fields are now stale and export PREFERS them over\n * node values (rawSize would resurrect the pre-resize dimensions in the\n * exported file). Invalidate exactly those.\n */\nfunction clearResizedRawGeometry(editor: Editor, nodeId: string): void {\n const node = editor.graph.getNode(nodeId)\n if (!node) return\n node.source.fig.rawSize = null\n node.source.fig.rawTransform = null\n const raw = node.source.fig.rawNodeFields\n delete raw.fillGeometry\n delete raw.strokeGeometry\n delete raw.strokeWeight\n // vectorData is dual-use: for VECTOR nodes it gates nodeForGeometryExport —\n // leaving it makes export pair stale raw vectorData with styleID-less\n // explicit paths (multi-color icons turn gray). For TEXT it is the\n // TEXT_PATH layout path and must survive or reflow dies.\n if (node.type !== 'TEXT') delete raw.vectorData\n}\n\nconst RECT_FIELDS = ['x', 'y', 'width', 'height'] as const\n\nfunction sameRect(a: Rect, b: Rect): boolean {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height\n}\n\n/**\n * Resizing keeps the raw payload a file gave the layer but not its size, so once the drag\n * changes the rect, layout lays out a resized frame from a .fig again, during the drag too,\n * instead of keeping the sizes it saved.\n */\nfunction markResized(d: DragResize, rect: Rect, editor: Editor) {\n const node = editor.graph.getNode(d.nodeId)\n if (!node || d.origEditedFields || sameRect(rect, d.origRect)) return\n d.origEditedFields = [...node.source.editedFields]\n markSourceFieldsEdited(node, ['width', 'height'])\n}\n\n/** A drag that ends where it began, or is cancelled, leaves the layer's edits as they were. */\nfunction restoreEditedFields(d: DragResize, editor: Editor) {\n const node = editor.graph.getNode(d.nodeId)\n if (node && d.origEditedFields) node.source.editedFields = d.origEditedFields\n d.origEditedFields = undefined\n}\n\nfunction restoreResizePreview(d: DragResize, editor: Editor) {\n editor.graph.updateNodePreview(d.nodeId, d.origRect)\n for (const [childId, orig] of d.origChildren ?? []) {\n editor.graph.updateNodePreview(childId, {\n x: orig.x,\n y: orig.y,\n width: orig.width,\n height: orig.height,\n vectorNetwork: orig.vectorNetwork,\n fillGeometry: orig.fillGeometry,\n strokeGeometry: orig.strokeGeometry,\n derivedTextGlyphs: orig.derivedTextGlyphs,\n strokes: orig.strokes,\n textPathData: orig.textPathData,\n textPathBox: orig.textPathBox\n })\n }\n}\n\n/** Puts a resize the pointer abandoned back where it started. */\nexport function cancelResizePreview(dragState: DragResize, editor: Editor) {\n const d = toRaw(dragState)\n optionalEditorState(editor)?.snapGuides.splice(0)\n restoreResizePreview(d, editor)\n // The preview scaled the layer's own geometry too, which a commit would have replaced.\n editor.graph.updateNodePreview(d.nodeId, {\n vectorNetwork: d.origVectorNetwork,\n fillGeometry: d.origFillGeometry,\n strokeGeometry: d.origStrokeGeometry,\n derivedTextGlyphs: d.origDerivedTextGlyphs,\n strokes: d.origStrokes,\n textPathData: d.origTextPathData,\n textPathBox: d.origTextPathBox\n })\n if (d.origSizing) editor.graph.updateNodePreview(d.nodeId, d.origSizing)\n editor.renderer?.invalidateVectorPath(d.nodeId)\n restoreEditedFields(d, editor)\n editor.graph.runPreviewUpdates(() => computeAllLayouts(editor.graph, d.nodeId))\n editor.requestRender()\n}\n\nexport function commitResizePreview(dragState: DragResize, editor: Editor) {\n // See applyResize — reactive drag state must not leak into graph writes.\n const d = toRaw(dragState)\n const node = editor.graph.getNode(d.nodeId)\n // A section resized over layers takes in the ones it now covers, a lock that Control set aside\n // takes the new size, and an axis that stopped hugging or filling stays fixed, in one undo step.\n const adoptsLayers = node?.type === 'SECTION'\n const recaptured = node && d.freesLock ? recapturedAspectRatio(node, node.width, node.height) : {}\n const fixesSizing =\n d.origSizing !== undefined &&\n d.appliedSizing !== undefined &&\n !isEqual(d.origSizing, d.appliedSizing)\n if (!adoptsLayers && !recaptured.targetAspectRatio && !fixesSizing) {\n commitResizeGeometry(d, editor)\n return\n }\n editor.undo.runBatch('Resize', () => {\n // Recorded from the sizing the layer started with, so undo puts it back.\n if (fixesSizing && d.origSizing && d.appliedSizing) {\n editor.graph.updateNodePreview(d.nodeId, d.origSizing)\n editor.updateNodeWithUndo(d.nodeId, d.appliedSizing, 'Resize')\n }\n commitResizeGeometry(d, editor)\n if (recaptured.targetAspectRatio) editor.updateNodeWithUndo(d.nodeId, recaptured, 'Resize')\n if (adoptsLayers) editor.adoptCoveredLayers(d.nodeId)\n })\n}\n\n/**\n * Runs a resize that moves layers by their constraints while recording only the box fields the\n * resize changed on the resized layer as an instance override: in Figma a layer inside an instance that its constraints\n * place keeps following the component, so a later component edit still reaches it.\n */\nfunction keepingOnlyOwnOverrides(\n editor: Editor,\n nodeId: string,\n ownFields: readonly string[],\n placedIds: readonly string[],\n commit: () => void\n) {\n const owners = new Map<string, InstanceOverrideState>()\n for (const id of [nodeId, ...placedIds]) {\n const owner = findInstanceAncestor(editor.graph, id)\n if (owner && !owners.has(owner.id))\n owners.set(owner.id, cloneInstanceOverrideState(owner.instanceOverrides))\n }\n commit()\n for (const [id, state] of owners) editor.graph.updateNode(id, { instanceOverrides: state })\n if (owners.size > 0) recordInstanceOverride(editor.graph, nodeId, ownFields)\n}\n\nfunction commitResizeGeometry(d: DragResize, editor: Editor) {\n optionalEditorState(editor)?.snapGuides.splice(0)\n const node = editor.graph.getNode(d.nodeId)\n if (!node) return\n if (!d.appliedRect || sameRect(d.appliedRect, d.origRect)) restoreEditedFields(d, editor)\n const finalChanges = snapshotResizeFinal(node, d.origStrokeGeometry.length > 0)\n\n if (d.origChildren) {\n const finalChildren = new Map<string, Partial<SceneNode>>()\n for (const [childId, original] of d.origChildren) {\n const child = editor.graph.getNode(childId)\n if (!child) continue\n finalChildren.set(childId, snapshotResizeFinal(child, original.strokeGeometry.length > 0))\n }\n restoreResizePreview(d, editor)\n // Resize is geometric — the raw Figma import payload (vectorData,\n // textPathStart, effects, ...) must survive or path-text reflow works\n // exactly once and export fidelity degrades.\n keepingOnlyOwnOverrides(\n editor,\n d.nodeId,\n RECT_FIELDS.filter((key) => finalChanges[key] !== d.origRect[key]),\n [...finalChildren.keys()],\n () => {\n editor.graph.preserveSourceMetadataDuring(() => {\n editor.updateNode(d.nodeId, finalChanges)\n for (const [childId, final] of finalChildren) {\n editor.updateNode(childId, final)\n }\n })\n }\n )\n clearResizedRawGeometry(editor, d.nodeId)\n for (const [childId] of finalChildren) clearResizedRawGeometry(editor, childId)\n editor.commitGroupResize(d.nodeId, d.origRect, d.origChildren)\n editor.requestRepaint()\n } else {\n editor.graph.updateNodePreview(d.nodeId, d.origRect)\n // See the group branch — raw import payload survives geometric commits.\n editor.graph.preserveSourceMetadataDuring(() => {\n editor.updateNode(d.nodeId, finalChanges)\n })\n clearResizedRawGeometry(editor, d.nodeId)\n const original: Parameters<typeof editor.commitResize>[1] = { ...d.origRect }\n if (d.origVectorNetwork || node.vectorNetwork) original.vectorNetwork = d.origVectorNetwork\n if (d.origFillGeometry.length > 0) original.fillGeometry = d.origFillGeometry\n if (d.origStrokeGeometry.length > 0) original.strokeGeometry = d.origStrokeGeometry\n if (d.origDerivedTextGlyphs?.length) original.derivedTextGlyphs = d.origDerivedTextGlyphs\n if (d.origStrokes.length > 0) original.strokes = d.origStrokes\n if (d.origTextPathData) original.textPathData = d.origTextPathData\n if (d.origTextPathBox) original.textPathBox = d.origTextPathBox\n editor.commitResize(d.nodeId, original)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,SAAS,wBACP,MACA,MACA,IACA,IAC2B;CAC3B,IAAI,CAAC,KAAK,gBAAgB,CAAC,KAAK,eAAe,CAAC,KAAK,mBAAmB,QAAQ,OAAO;CACvF,MAAM,MAAM;EACV,GAAG,KAAK,YAAY,IAAI;EACxB,GAAG,KAAK,YAAY,IAAI;EACxB,OAAO,KAAK,YAAY,QAAQ;EAChC,QAAQ,KAAK,YAAY,SAAS;CACpC;CACA,MAAM,UACH,QAAQ,sBAAsB,MAAM,KAAK,mBAAmB,KAAK,aAAa,GAAG,MAClF,oBAAoB,KAAK,mBAAmB,KAAK,cAAc,KAAK,aAAa,GAAG;CACtF,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO;EACL,mBAAmB;EACnB,aAAa;EACb,gBAAgB,CAAC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,"file":"types.js","names":[],"sources":["../../../src/shared/input/types.ts"],"sourcesContent":["import type { AttachModifiers, MovePlace, Tool } from '@pairdraw/core'\nimport type { HandlePosition, TransformZone } from '@pairdraw/core/geometry'\nimport type {\n DerivedTextGlyph,\n GeometryPath,\n NodeType,\n SceneNode,\n Stroke,\n TextPathData,\n VectorNetwork\n} from '@pairdraw/scene-graph'\nimport type { Rect, Vector } from '@pairdraw/scene-graph/primitives'\nimport type { ResizeSnapshot } from '@pairdraw/scene-graph/resize'\n\nimport type { FlowDrag } from '#vue/shared/input/flow-reorder'\nimport type { LayerSizing } from '#vue/shared/input/resize/sizing'\n\nexport interface DragDraw {\n type: 'draw'\n /** Start point in the parent's axes. */\n startX: number\n startY: number\n /** Maps a canvas point into the parent's axes. */\n toLocal: (x: number, y: number) => Vector\n /** A line is drawn by its length and angle, as in Figma, not as a box. */\n line?: boolean\n /** Lands a coordinate on the pixel grid while Snap to pixel grid is on. */\n snap: (value: number) => number\n nodeId: string\n update: (changes: Partial<SceneNode>) => void\n commit: () => void\n cancel: () => void\n}\n\n/**\n * A connector drawn with the connector tool, from the press to the release or from one click to\n * the next. Positions are screen pixels, to tell a click from a drag.\n */\nexport interface DragConnectorDraw {\n type: 'connector-draw'\n startSX: number\n startSY: number\n moved: boolean\n /** Where the pointer is, in canvas coordinates. */\n x: number\n y: number\n /** The keys held at the last move, which the release attaches by. */\n modifiers: AttachModifiers\n commit: () => void\n cancel: () => void\n}\n\n/** An end of a selected connector dragged to another layer or point. */\ninterface DragConnectorEnd {\n type: 'connector-end'\n commit: () => void\n cancel: () => void\n}\n\n/** An elbow segment or the curve of a selected connector dragged into place. */\ninterface DragConnectorLine {\n type: 'connector-line'\n commit: () => void\n cancel: () => void\n}\n\n/** An end of a selected line or arrow dragged to aim it. */\ninterface DragLineEnd {\n type: 'line-end'\n commit: () => void\n cancel: () => void\n}\n\n/** A sticky note being drawn: it grows from the press corner with the drag, as a frame does. */\nexport interface DragStickyDraw {\n type: 'sticky-draw'\n /** Grows the note to the pointer, in canvas coordinates. */\n move: (cx: number, cy: number) => void\n commit: () => void\n cancel: () => void\n}\n\n/**\n * A sticky note's handle dragged: a corner, top, or bottom scales the whole note, a side switches\n * it between square and wide, as in FigJam.\n */\nexport interface DragStickyScale {\n type: 'sticky-scale'\n mode: 'scale' | 'wide'\n handle: HandlePosition\n startX: number\n startY: number\n nodeId: string\n origRect: Rect\n /** The note and its sublayers as the drag found them. */\n originals: Map<string, SceneNode>\n /** The scale and top-left the latest step reached. */\n scale: number\n position: Vector\n /** Whether a side drag has reached the wide width. */\n wide: boolean\n commit: () => void\n cancel: () => void\n}\n\nexport interface DragMove {\n type: 'move'\n startX: number\n startY: number\n currentX: number\n currentY: number\n appliedDx: number\n appliedDy: number\n startScreenX: number\n startScreenY: number\n dragStarted: boolean\n originals: Map<string, MovePlace>\n duplicated?: boolean\n duplicatedPreviousSelection?: Set<string>\n autoLayoutParentId?: string\n brokeFromAutoLayout?: boolean\n /** The auto layout flows the moved layers are dragged along, as blocks. */\n flows?: FlowDrag[]\n /** Each flow's slot for the block where the drag has reached. */\n flowSlots?: number[]\n /** Space is held: layers keep their parents wherever they are dropped. */\n keepParents?: boolean\n /** Control is held: auto layout frames take the layers as absolute-positioned children. */\n ignoreAutoLayout?: boolean\n /** Selected instead if the press ends as a click without dragging. */\n selectOnClick?: string\n /** Where Control drops layers among an auto layout frame's children. */\n absoluteInsertIndex?: number\n /** A selected layer a Shift-press on it deselects when it ends without a drag. */\n clickDeselectsId?: string\n}\n\nexport interface DragPan {\n type: 'pan'\n startScreenX: number\n startScreenY: number\n startPanX: number\n startPanY: number\n}\n\nexport interface DragResize {\n type: 'resize'\n handle: HandlePosition\n startX: number\n startY: number\n origRect: Rect\n nodeId: string\n origVectorNetwork: VectorNetwork | null\n origFillGeometry: GeometryPath[]\n /** Path-text OUTSIDE outlines / vector stroke blobs — must scale with the node. */\n origStrokeGeometry: GeometryPath[]\n origDerivedTextGlyphs: DerivedTextGlyph[] | null\n origStrokes: Stroke[]\n origTextPathData: TextPathData | null\n origTextPathBox: Rect | null\n origChildren: Map<string, ResizeSnapshot> | null\n /** The ratio the layer is locked to, kept unless Control frees it. */\n lockedAspectRatio: number | null\n /** Whether the latest step set the lock aside, so the commit stores the new size. */\n freesLock?: boolean\n appliedRect?: Rect\n /** The layer's edited fields before the drag marked its size, to put back if it changes nothing. */\n origEditedFields?: string[]\n /** The layer's sizing before the drag, taken on its first step. */\n origSizing?: LayerSizing\n /** The sizing the latest step left, which the commit keeps. */\n appliedSizing?: LayerSizing\n}\n\nexport interface DragMarquee {\n type: 'marquee'\n startX: number\n startY: number\n /** The open frame or section the marquee started in, whose layers it selects. */\n containerId?: string\n /** Selected instead if the press ends as a click without dragging. */\n selectOnClick?: string\n}\n\nexport interface DragRotate {\n type: 'rotate'\n nodeId: string\n centerX: number\n centerY: number\n startAngle: number\n origRotation: number\n rotationDirection: 1 | -1\n}\n\ninterface DragPen {\n type: 'pen-drag'\n startX: number\n startY: number\n modifierMode: 'default' | 'continuous' | 'independent'\n frozenOppositeTangent: Vector | null\n spaceDown: boolean\n spaceStartX: number\n spaceStartY: number\n knotStartX: number\n knotStartY: number\n}\n\ninterface DragPencil {\n type: 'pencil-drag'\n}\n\ninterface DragTextSelect {\n type: 'text-select'\n startX: number\n startY: number\n}\n\nexport interface DragEditNode {\n type: 'edit-node'\n startX: number\n startY: number\n origPositions: Map<number, Vector>\n /**\n * A selected segment or region that was pressed: releasing without a drag selects only it, or\n * with Shift takes it out of the selection.\n */\n click?: { part: 'segment' | 'region'; index: number; deselect: boolean }\n /**\n * ⌥/Alt was held on the press: once the pointer moves past the drag threshold the selection is\n * copied and the copies drag instead; `false` once copied.\n */\n duplicate?: boolean\n}\n\nexport interface DragEditHandle {\n type: 'edit-handle'\n segmentIndex: number\n tangentField: 'tangentStart' | 'tangentEnd'\n vertexIndex: number\n startX: number\n startY: number\n initialTangent: Vector | null\n}\n\n/** A drag over empty space while editing a path: selects the points and segments it encloses. */\nexport interface DragEditMarquee {\n type: 'edit-marquee'\n startX: number\n startY: number\n /** Points kept selected alongside the enclosed ones, as with Shift held. */\n baseSelection: Set<number>\n /** Segments kept selected alongside the enclosed ones, as with Shift held. */\n baseSegments: Set<number>\n}\n\ninterface DragBendHandle {\n type: 'bend-handle'\n vertexIndex: number\n startX: number\n startY: number\n lockedMode: 'symmetric' | 'independent' | null\n dragSamples: Vector[]\n targetSegmentIndex: number | null\n targetTangentField: 'tangentStart' | 'tangentEnd' | null\n}\n\n/**\n * A ⌘/Ctrl drag on a segment of the path being edited: bends the segment so the pressed point on it\n * follows the pointer, or with ⌥/Alt too, without turning the handles of the segments beside it.\n */\nexport interface DragBendSegment {\n type: 'bend-segment'\n segmentIndex: number\n /** Where along the segment it was pressed, as a share of it. */\n t: number\n startX: number\n startY: number\n /** The path as the press found it; each move bends from it. */\n origin: VectorNetwork\n}\n\n/** A drag on the transform box around selected points: scales them from a handle or turns them. */\nexport interface DragEditTransform {\n type: 'edit-transform'\n zone: TransformZone\n /** The selected points, and the box around them as the press found it. */\n points: number[]\n box: Rect\n startX: number\n startY: number\n /** The path as the press found it; each move transforms from it. */\n origin: VectorNetwork\n}\n\nexport interface DragGuide {\n type: 'guide'\n axis: 'x' | 'y'\n ownerId: string\n position: number\n startScreenX: number\n startScreenY: number\n currentScreenX: number\n currentScreenY: number\n dragStarted: boolean\n duplicate?: boolean\n guideId?: string\n originalOwnerId?: string\n originalPosition?: number\n}\n\n/** Dragging a handle or stop of the gradient whose picker is open. */\nexport interface DragGradient {\n type: 'gradient'\n /** Moves the dragged handle or stop to a screen point. */\n update: (screenX: number, screenY: number, shiftKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/** Dragging a crop handle, an image corner, or the image itself in image edit mode. */\nexport interface DragImageCrop {\n type: 'image-crop'\n /** Applies the drag up to a screen point; Shift keeps proportions or an axis, Alt the centre. */\n update: (screenX: number, screenY: number, modifiers: { shift: boolean; alt: boolean }) => void\n commit: () => void\n cancel: () => void\n}\n\n/** A zoom tool press: a click zooms in or out on the pointer, a drag frames an area to zoom to. */\nexport interface DragZoom {\n type: 'zoom'\n /** Follows the pointer, in canvas and screen coordinates; ⌥ or Alt zooms out. */\n update: (cx: number, cy: number, sx: number, sy: number, altKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/**\n * A Scale tool handle drag: the selection scales with its contents from the opposite handle, or\n * from its center while ⌥ or Alt is held.\n */\nexport interface DragScale {\n type: 'scale'\n /** The resize cursor the drag keeps. */\n cursor: string\n update: (cx: number, cy: number, sx: number, sy: number, altKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/** Dragging a radius, point count, or ratio handle of the selected rectangle, polygon, or star. */\nexport interface DragShapeHandle {\n type: 'shape-handle'\n /** Sets the value under a screen point; Shift rounds a radius to tens. */\n update: (screenX: number, screenY: number, shiftKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/** Dragging a padding edge or an item gap of the selected auto layout frame. */\nexport interface DragAutoLayout {\n type: 'auto-layout'\n /** Sets the padding or gap so far; Alt edits the opposite side (with Shift, all sides), Shift the large nudge. */\n update: (screenX: number, screenY: number, altKey: boolean, shiftKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\nexport type DragState =\n | DragAutoLayout\n | DragShapeHandle\n | DragDraw\n | DragStickyDraw\n | DragConnectorDraw\n | DragConnectorEnd\n | DragConnectorLine\n | DragLineEnd\n | DragGradient\n | DragImageCrop\n | DragMove\n | DragPan\n | DragResize\n | DragStickyScale\n | DragZoom\n | DragScale\n | DragMarquee\n | DragRotate\n | DragPen\n | DragPencil\n | DragTextSelect\n | DragEditNode\n | DragEditHandle\n | DragEditMarquee\n | DragBendHandle\n | DragBendSegment\n | DragEditTransform\n | DragGuide\n\nexport const TOOL_TO_NODE: Partial<Record<Tool, NodeType>> = {\n FRAME: 'FRAME',\n SECTION: 'SECTION',\n RECTANGLE: 'RECTANGLE',\n ELLIPSE: 'ELLIPSE',\n LINE: 'LINE',\n POLYGON: 'POLYGON',\n STAR: 'STAR',\n TEXT: 'TEXT',\n SHAPE_WITH_TEXT: 'SHAPE_WITH_TEXT'\n}\n"],"mappings":";AA8YA,MAAa,eAAgD;CAC3D,OAAO;CACP,SAAS;CACT,WAAW;CACX,SAAS;CACT,MAAM;CACN,SAAS;CACT,MAAM;CACN,MAAM;CACN,iBAAiB;AACnB"}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/shared/input/types.ts"],"sourcesContent":["import type { AttachModifiers, MovePlace, Tool } from '@pairdraw/core'\nimport type { HandlePosition, TransformZone } from '@pairdraw/core/geometry'\nimport type {\n DerivedTextGlyph,\n GeometryPath,\n NodeType,\n SceneNode,\n Stroke,\n TextPathData,\n VectorNetwork\n} from '@pairdraw/scene-graph'\nimport type { Rect, Vector } from '@pairdraw/scene-graph/primitives'\nimport type { ResizeSnapshot } from '@pairdraw/scene-graph/resize'\n\nimport type { FlowDrag } from '#vue/shared/input/flow-reorder'\nimport type { LayerSizing } from '#vue/shared/input/resize/sizing'\n\nexport interface DragDraw {\n type: 'draw'\n /** Start point in the parent's axes. */\n startX: number\n startY: number\n /** Maps a canvas point into the parent's axes. */\n toLocal: (x: number, y: number) => Vector\n /** A line is drawn by its length and angle, as in Figma, not as a box. */\n line?: boolean\n /** Lands a coordinate on the pixel grid while Snap to pixel grid is on. */\n snap: (value: number) => number\n nodeId: string\n update: (changes: Partial<SceneNode>) => void\n commit: () => void\n cancel: () => void\n}\n\n/**\n * A connector drawn with the connector tool, from the press to the release or from one click to\n * the next. Positions are screen pixels, to tell a click from a drag.\n */\nexport interface DragConnectorDraw {\n type: 'connector-draw'\n startSX: number\n startSY: number\n moved: boolean\n /** Where the pointer is, in canvas coordinates. */\n x: number\n y: number\n /** The keys held at the last move, which the release attaches by. */\n modifiers: AttachModifiers\n commit: () => void\n cancel: () => void\n}\n\n/** An end of a selected connector dragged to another layer or point. */\ninterface DragConnectorEnd {\n type: 'connector-end'\n commit: () => void\n cancel: () => void\n}\n\n/** An elbow segment or the curve of a selected connector dragged into place. */\ninterface DragConnectorLine {\n type: 'connector-line'\n commit: () => void\n cancel: () => void\n}\n\n/** An end of a selected line or arrow dragged to aim it. */\ninterface DragLineEnd {\n type: 'line-end'\n commit: () => void\n cancel: () => void\n}\n\n/** A sticky note being drawn: it grows from the press corner with the drag, as a frame does. */\nexport interface DragStickyDraw {\n type: 'sticky-draw'\n /** Grows the note to the pointer, in canvas coordinates. */\n move: (cx: number, cy: number) => void\n commit: () => void\n cancel: () => void\n}\n\n/**\n * A sticky note's handle dragged: a corner, top, or bottom scales the whole note, a side switches\n * it between square and wide, as in FigJam.\n */\nexport interface DragStickyScale {\n type: 'sticky-scale'\n mode: 'scale' | 'wide'\n handle: HandlePosition\n startX: number\n startY: number\n nodeId: string\n origRect: Rect\n /** The note and its sublayers as the drag found them. */\n originals: Map<string, SceneNode>\n /** The scale and top-left the latest step reached. */\n scale: number\n position: Vector\n /** Whether a side drag has reached the wide width. */\n wide: boolean\n commit: () => void\n cancel: () => void\n}\n\nexport interface DragMove {\n type: 'move'\n startX: number\n startY: number\n currentX: number\n currentY: number\n appliedDx: number\n appliedDy: number\n startScreenX: number\n startScreenY: number\n dragStarted: boolean\n originals: Map<string, MovePlace>\n duplicated?: boolean\n duplicatedPreviousSelection?: Set<string>\n autoLayoutParentId?: string\n brokeFromAutoLayout?: boolean\n /** The auto layout flows the moved layers are dragged along, as blocks. */\n flows?: FlowDrag[]\n /** Each flow's slot for the block where the drag has reached. */\n flowSlots?: number[]\n /** Space is held: layers keep their parents wherever they are dropped. */\n keepParents?: boolean\n /** Control is held: auto layout frames take the layers as absolute-positioned children. */\n ignoreAutoLayout?: boolean\n /** Selected instead if the press ends as a click without dragging. */\n selectOnClick?: string\n /** Where Control drops layers among an auto layout frame's children. */\n absoluteInsertIndex?: number\n /** A selected layer a Shift-press on it deselects when it ends without a drag. */\n clickDeselectsId?: string\n}\n\nexport interface DragPan {\n type: 'pan'\n startScreenX: number\n startScreenY: number\n startPanX: number\n startPanY: number\n}\n\nexport interface DragResize {\n type: 'resize'\n handle: HandlePosition\n startX: number\n startY: number\n origRect: Rect\n nodeId: string\n origVectorNetwork: VectorNetwork | null\n origFillGeometry: GeometryPath[]\n /** Path-text OUTSIDE outlines / vector stroke blobs — must scale with the node. */\n origStrokeGeometry: GeometryPath[]\n origDerivedTextGlyphs: DerivedTextGlyph[] | null\n origStrokes: Stroke[]\n origTextPathData: TextPathData | null\n origTextPathBox: Rect | null\n origChildren: Map<string, ResizeSnapshot> | null\n /** The ratio the layer is locked to, kept unless Control frees it. */\n lockedAspectRatio: number | null\n /** Whether the latest step set the lock aside, so the commit stores the new size. */\n freesLock?: boolean\n appliedRect?: Rect\n /** The layer's edited fields before the drag marked its size, to put back if it changes nothing. */\n origEditedFields?: string[]\n /** The layer's sizing before the drag, taken on its first step. */\n origSizing?: LayerSizing\n /** The sizing the latest step left, which the commit keeps. */\n appliedSizing?: LayerSizing\n}\n\nexport interface DragMarquee {\n type: 'marquee'\n startX: number\n startY: number\n /** The open frame or section the marquee started in, whose layers it selects. */\n containerId?: string\n /** Selected instead if the press ends as a click without dragging. */\n selectOnClick?: string\n}\n\nexport interface DragRotate {\n type: 'rotate'\n nodeId: string\n centerX: number\n centerY: number\n startAngle: number\n origRotation: number\n rotationDirection: 1 | -1\n}\n\ninterface DragPen {\n type: 'pen-drag'\n startX: number\n startY: number\n modifierMode: 'default' | 'continuous' | 'independent'\n frozenOppositeTangent: Vector | null\n spaceDown: boolean\n spaceStartX: number\n spaceStartY: number\n knotStartX: number\n knotStartY: number\n}\n\ninterface DragPencil {\n type: 'pencil-drag'\n}\n\ninterface DragTextSelect {\n type: 'text-select'\n startX: number\n startY: number\n}\n\nexport interface DragEditNode {\n type: 'edit-node'\n startX: number\n startY: number\n origPositions: Map<number, Vector>\n /**\n * A selected segment or region that was pressed: releasing without a drag selects only it, or\n * with Shift takes it out of the selection.\n */\n click?: { part: 'segment' | 'region'; index: number; deselect: boolean }\n /**\n * ⌥/Alt was held on the press: once the pointer moves past the drag threshold the selection is\n * copied and the copies drag instead; `false` once copied.\n */\n duplicate?: boolean\n}\n\nexport interface DragEditHandle {\n type: 'edit-handle'\n segmentIndex: number\n tangentField: 'tangentStart' | 'tangentEnd'\n vertexIndex: number\n startX: number\n startY: number\n initialTangent: Vector | null\n}\n\n/** A drag over empty space while editing a path: selects the points and segments it encloses. */\nexport interface DragEditMarquee {\n type: 'edit-marquee'\n startX: number\n startY: number\n /** Points kept selected alongside the enclosed ones, as with Shift held. */\n baseSelection: Set<number>\n /** Segments kept selected alongside the enclosed ones, as with Shift held. */\n baseSegments: Set<number>\n}\n\ninterface DragBendHandle {\n type: 'bend-handle'\n vertexIndex: number\n startX: number\n startY: number\n lockedMode: 'symmetric' | 'independent' | null\n dragSamples: Vector[]\n targetSegmentIndex: number | null\n targetTangentField: 'tangentStart' | 'tangentEnd' | null\n}\n\n/**\n * A ⌘/Ctrl drag on a segment of the path being edited: bends the segment so the pressed point on it\n * follows the pointer, or with ⌥/Alt too, without turning the handles of the segments beside it.\n */\nexport interface DragBendSegment {\n type: 'bend-segment'\n segmentIndex: number\n /** Where along the segment it was pressed, as a share of it. */\n t: number\n startX: number\n startY: number\n /** The path as the press found it; each move bends from it. */\n origin: VectorNetwork\n}\n\n/** A drag on the transform box around selected points: scales them from a handle or turns them. */\nexport interface DragEditTransform {\n type: 'edit-transform'\n zone: TransformZone\n /** The selected points, and the box around them as the press found it. */\n points: number[]\n box: Rect\n startX: number\n startY: number\n /** The path as the press found it; each move transforms from it. */\n origin: VectorNetwork\n}\n\nexport interface DragGuide {\n type: 'guide'\n axis: 'x' | 'y'\n ownerId: string\n position: number\n startScreenX: number\n startScreenY: number\n currentScreenX: number\n currentScreenY: number\n dragStarted: boolean\n duplicate?: boolean\n guideId?: string\n originalOwnerId?: string\n originalPosition?: number\n}\n\n/** Dragging a handle or stop of the gradient whose picker is open. */\nexport interface DragGradient {\n type: 'gradient'\n /** Moves the dragged handle or stop to a screen point. */\n update: (screenX: number, screenY: number, shiftKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/** Dragging a crop handle, an image corner, or the image itself in image edit mode. */\nexport interface DragImageCrop {\n type: 'image-crop'\n /** Applies the drag up to a screen point; Shift keeps proportions or an axis, Alt the centre. */\n update: (screenX: number, screenY: number, modifiers: { shift: boolean; alt: boolean }) => void\n commit: () => void\n cancel: () => void\n}\n\n/** A zoom tool press: a click zooms in or out on the pointer, a drag frames an area to zoom to. */\nexport interface DragZoom {\n type: 'zoom'\n /** Follows the pointer, in canvas and screen coordinates; ⌥ or Alt zooms out. */\n update: (cx: number, cy: number, sx: number, sy: number, altKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/**\n * A Scale tool handle drag: the selection scales with its contents from the opposite handle, or\n * from its center while ⌥ or Alt is held.\n */\nexport interface DragScale {\n type: 'scale'\n /** The resize cursor the drag keeps. */\n cursor: string\n update: (cx: number, cy: number, sx: number, sy: number, altKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/** Dragging a radius, point count, or ratio handle of the selected rectangle, polygon, or star. */\nexport interface DragShapeHandle {\n type: 'shape-handle'\n /** Sets the value under a screen point; Shift rounds a radius to tens. */\n update: (screenX: number, screenY: number, shiftKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\n/** Dragging a padding edge or an item gap of the selected auto layout frame. */\nexport interface DragAutoLayout {\n type: 'auto-layout'\n /** Sets the padding or gap so far; Alt edits the opposite side (with Shift, all sides), Shift the large nudge. */\n update: (screenX: number, screenY: number, altKey: boolean, shiftKey: boolean) => void\n commit: () => void\n cancel: () => void\n}\n\nexport type DragState =\n | DragAutoLayout\n | DragShapeHandle\n | DragDraw\n | DragStickyDraw\n | DragConnectorDraw\n | DragConnectorEnd\n | DragConnectorLine\n | DragLineEnd\n | DragGradient\n | DragImageCrop\n | DragMove\n | DragPan\n | DragResize\n | DragStickyScale\n | DragZoom\n | DragScale\n | DragMarquee\n | DragRotate\n | DragPen\n | DragPencil\n | DragTextSelect\n | DragEditNode\n | DragEditHandle\n | DragEditMarquee\n | DragBendHandle\n | DragBendSegment\n | DragEditTransform\n | DragGuide\n\nexport const TOOL_TO_NODE: Partial<Record<Tool, NodeType>> = {\n FRAME: 'FRAME',\n SECTION: 'SECTION',\n SLICE: 'SLICE',\n RECTANGLE: 'RECTANGLE',\n ELLIPSE: 'ELLIPSE',\n LINE: 'LINE',\n POLYGON: 'POLYGON',\n STAR: 'STAR',\n TEXT: 'TEXT',\n SHAPE_WITH_TEXT: 'SHAPE_WITH_TEXT'\n}\n"],"mappings":";AA8YA,MAAa,eAAgD;CAC3D,OAAO;CACP,SAAS;CACT,OAAO;CACP,WAAW;CACX,SAAS;CACT,MAAM;CACN,SAAS;CACT,MAAM;CACN,MAAM;CACN,iBAAiB;AACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pairdraw/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.2.0",
|
|
14
14
|
"@nanostores/i18n": "^1.3.3",
|
|
15
15
|
"@nanostores/vue": "^1.1.0",
|
|
16
|
-
"@pairdraw/dom-css": "^0.
|
|
17
|
-
"@pairdraw/scene-graph": "^0.
|
|
16
|
+
"@pairdraw/dom-css": "^0.22.0",
|
|
17
|
+
"@pairdraw/scene-graph": "^0.22.0",
|
|
18
18
|
"@vueuse/core": "^14.4.0",
|
|
19
19
|
"es-toolkit": "^1.52.0",
|
|
20
20
|
"fuse.js": "^7.5.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"valibot": "^1.5.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@pairdraw/core": "^0.
|
|
27
|
+
"@pairdraw/core": "^0.22.0",
|
|
28
28
|
"canvaskit-wasm": ">=0.41.1",
|
|
29
29
|
"vue": "^3.5.41"
|
|
30
30
|
},
|