@weasel-js/core 1.11.0 → 1.12.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/CHANGELOG.md +611 -0
- package/README.md +1 -1
- package/dist/WeaselProvider.js +1 -1
- package/dist/affordances/pathAnchors.js +10 -6
- package/dist/affordances/pathAnchors.js.map +1 -1
- package/dist/animation/index.js +3 -3
- package/dist/animation/rig/bindRig.js +1 -1
- package/dist/animation/rig/rigNode.js.map +1 -1
- package/dist/barrel/canvas.js +9 -3
- package/dist/barrel/interactions.js +5 -4
- package/dist/barrel/paint.js +4 -4
- package/dist/barrel/paths.js +10 -6
- package/dist/barrel/renderer.js +5 -3
- package/dist/barrel/routing.js +7 -12
- package/dist/barrel/scene.js +9 -5
- package/dist/barrel/text.js +2 -2
- package/dist/barrel/viewport.js +9 -4
- package/dist/canvas/Canvas.js +5 -2
- package/dist/canvas/Canvas.js.map +1 -1
- package/dist/canvas/CanvasView.js +23 -34
- package/dist/canvas/CanvasView.js.map +1 -1
- package/dist/canvas/ModalityHud.js +1 -1
- package/dist/canvas/NodeShape.js +4 -1
- package/dist/canvas/NodeShape.js.map +1 -1
- package/dist/canvas/SceneCanvas/ActionsProviderIfRoot.js +1 -1
- package/dist/canvas/SceneCanvas/DepRegistryProviderIfRoot.js +1 -1
- package/dist/canvas/SceneCanvas/PointerProviderIfRoot.js +1 -1
- package/dist/canvas/SceneCanvas/SceneCanvasInput.js +17 -3
- package/dist/canvas/SceneCanvas/SceneCanvasInput.js.map +1 -1
- package/dist/canvas/SceneCanvas/SurfaceDeclarations.js +23 -0
- package/dist/canvas/SceneCanvas/SurfaceDeclarations.js.map +1 -0
- package/dist/canvas/SceneCanvas/builtinToolSets.js +30 -0
- package/dist/canvas/SceneCanvas/builtinToolSets.js.map +1 -0
- package/dist/canvas/SceneCanvas/canvasPassThrough.js +2 -0
- package/dist/canvas/SceneCanvas/canvasPassThrough.js.map +1 -1
- package/dist/canvas/SceneCanvas/coordTrace.js +5 -16
- package/dist/canvas/SceneCanvas/coordTrace.js.map +1 -1
- package/dist/canvas/SceneCanvas/defaultNodeProperties.js +5 -0
- package/dist/canvas/SceneCanvas/defaultNodeProperties.js.map +1 -1
- package/dist/canvas/SceneCanvas/features.js +45 -5
- package/dist/canvas/SceneCanvas/features.js.map +1 -1
- package/dist/canvas/SceneCanvas/props.js +1 -11
- package/dist/canvas/SceneCanvas/props.js.map +1 -1
- package/dist/canvas/SceneCanvas/scenePointQuery.js +7 -3
- package/dist/canvas/SceneCanvas/scenePointQuery.js.map +1 -1
- package/dist/canvas/SceneCanvas/toolRegistry.js +8 -4
- package/dist/canvas/SceneCanvas/toolRegistry.js.map +1 -1
- package/dist/canvas/SceneCanvas/useActionTunings.js +6 -1
- package/dist/canvas/SceneCanvas/useActionTunings.js.map +1 -1
- package/dist/canvas/SceneCanvas/useActionsPropResolver.js +1 -11
- package/dist/canvas/SceneCanvas/useActionsPropResolver.js.map +1 -1
- package/dist/canvas/SceneCanvas/useBuiltinShapeTools.js.map +1 -1
- package/dist/canvas/SceneCanvas/useBuiltinTools.js +2 -9
- package/dist/canvas/SceneCanvas/useBuiltinTools.js.map +1 -1
- package/dist/canvas/SceneCanvas/useCanvasDevtoolsRoot.js +94 -0
- package/dist/canvas/SceneCanvas/useCanvasDevtoolsRoot.js.map +1 -0
- package/dist/canvas/SceneCanvas/useCanvasSelection.js +7 -2
- package/dist/canvas/SceneCanvas/useCanvasSelection.js.map +1 -1
- package/dist/canvas/SceneCanvas/useCanvasTools.js +15 -10
- package/dist/canvas/SceneCanvas/useCanvasTools.js.map +1 -1
- package/dist/canvas/SceneCanvas/useNodeKinds.js +1 -1
- package/dist/canvas/SceneCanvas/useNodeKinds.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneCanvasHandle.js +9 -3
- package/dist/canvas/SceneCanvas/useSceneCanvasHandle.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneCanvasLayers.js +23 -4
- package/dist/canvas/SceneCanvas/useSceneCanvasLayers.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneCanvasTools.js +2 -3
- package/dist/canvas/SceneCanvas/useSceneCanvasTools.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneChrome.js +6 -7
- package/dist/canvas/SceneCanvas/useSceneChrome.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneGestureDispatcher.js +24 -7
- package/dist/canvas/SceneCanvas/useSceneGestureDispatcher.js.map +1 -1
- package/dist/canvas/SceneCanvas/useScenePicking.js +2 -3
- package/dist/canvas/SceneCanvas/useScenePicking.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneSelectTool.js +2 -1
- package/dist/canvas/SceneCanvas/useSceneSelectTool.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneStandardActions.js +5 -5
- package/dist/canvas/SceneCanvas/useSceneStandardActions.js.map +1 -1
- package/dist/canvas/SceneCanvas.js +27 -24
- package/dist/canvas/SceneCanvas.js.map +1 -1
- package/dist/canvas/SurfaceCanvas.js +5 -22
- package/dist/canvas/SurfaceCanvas.js.map +1 -1
- package/dist/canvas/ViewMarker.js +35 -0
- package/dist/canvas/ViewMarker.js.map +1 -0
- package/dist/canvas/canvasRenderer.js +9 -5
- package/dist/canvas/canvasRenderer.js.map +1 -1
- package/dist/canvas/contextAttributes.js +14 -0
- package/dist/canvas/contextAttributes.js.map +1 -0
- package/dist/canvas/defaultDrawOne.js +2 -0
- package/dist/canvas/defaultDrawOne.js.map +1 -1
- package/dist/canvas/deps/booleans.js +2 -1
- package/dist/canvas/deps/booleans.js.map +1 -1
- package/dist/canvas/deps/editAnchors.js +9 -113
- package/dist/canvas/deps/editAnchors.js.map +1 -1
- package/dist/canvas/deps/hitTestArea.js +2 -2
- package/dist/canvas/deps/hitTestArea.js.map +1 -1
- package/dist/canvas/deps/insert.js +10 -4
- package/dist/canvas/deps/insert.js.map +1 -1
- package/dist/canvas/deps/pathEditCommits.js +189 -0
- package/dist/canvas/deps/pathEditCommits.js.map +1 -0
- package/dist/canvas/deps/snap.js +12 -9
- package/dist/canvas/deps/snap.js.map +1 -1
- package/dist/canvas/deps/transformFollowers.js +20 -0
- package/dist/canvas/deps/transformFollowers.js.map +1 -0
- package/dist/canvas/derivedPath.js +20 -1
- package/dist/canvas/derivedPath.js.map +1 -1
- package/dist/canvas/drawnBounds.js +38 -4
- package/dist/canvas/drawnBounds.js.map +1 -1
- package/dist/canvas/inheritedPaints.js +44 -0
- package/dist/canvas/inheritedPaints.js.map +1 -0
- package/dist/canvas/nodeShapes/derivedPainter.js +23 -16
- package/dist/canvas/nodeShapes/derivedPainter.js.map +1 -1
- package/dist/canvas/nodeShapes/nodePaint.js +13 -34
- package/dist/canvas/nodeShapes/nodePaint.js.map +1 -1
- package/dist/canvas/nodeShapes/pathPainter.js +12 -10
- package/dist/canvas/nodeShapes/pathPainter.js.map +1 -1
- package/dist/canvas/nodeShapes/rectFallbackPainter.js +4 -5
- package/dist/canvas/nodeShapes/rectFallbackPainter.js.map +1 -1
- package/dist/canvas/nodeShapes/shapePainter.js +12 -11
- package/dist/canvas/nodeShapes/shapePainter.js.map +1 -1
- package/dist/canvas/nodeShapes/textPainter.js +13 -12
- package/dist/canvas/nodeShapes/textPainter.js.map +1 -1
- package/dist/canvas/overlayRoleStrokes.js +12 -0
- package/dist/canvas/overlayRoleStrokes.js.map +1 -1
- package/dist/canvas/pathOverlay.js +27 -7
- package/dist/canvas/pathOverlay.js.map +1 -1
- package/dist/canvas/pickReach.js +3 -3
- package/dist/canvas/pickReach.js.map +1 -1
- package/dist/canvas/pickWalk.js +3 -1
- package/dist/canvas/pickWalk.js.map +1 -1
- package/dist/canvas/renderDebugSnapshot.js +1 -0
- package/dist/canvas/renderDebugSnapshot.js.map +1 -1
- package/dist/canvas/renderSceneToPixels.js +7 -6
- package/dist/canvas/renderSceneToPixels.js.map +1 -1
- package/dist/canvas/sceneAdapter.js.map +1 -1
- package/dist/canvas/sceneSlotWiring.js +2 -1
- package/dist/canvas/sceneSlotWiring.js.map +1 -1
- package/dist/canvas/sceneViewRender.js +2 -1
- package/dist/canvas/sceneViewRender.js.map +1 -1
- package/dist/canvas/surfaceContribution.js +12 -8
- package/dist/canvas/surfaceContribution.js.map +1 -1
- package/dist/canvas/useCanvasPaint.js +2 -1
- package/dist/canvas/useCanvasPaint.js.map +1 -1
- package/dist/canvas/useCanvasView.js +4 -2
- package/dist/canvas/useCanvasView.js.map +1 -1
- package/dist/canvas/useInFlightBounds.js +52 -0
- package/dist/canvas/useInFlightBounds.js.map +1 -0
- package/dist/canvas/useLayerStack.js +6 -2
- package/dist/canvas/useLayerStack.js.map +1 -1
- package/dist/canvas/useViewAim.js +121 -0
- package/dist/canvas/useViewAim.js.map +1 -0
- package/dist/canvas/useViewHelpers.js +7 -9
- package/dist/canvas/useViewHelpers.js.map +1 -1
- package/dist/canvas/useViewNesting.js +3 -2
- package/dist/canvas/useViewNesting.js.map +1 -1
- package/dist/canvas/useViewRegistrySurface.js +4 -2
- package/dist/canvas/useViewRegistrySurface.js.map +1 -1
- package/dist/canvas/viewMarkers.js +63 -0
- package/dist/canvas/viewMarkers.js.map +1 -0
- package/dist/canvas/viewRegistry.js +27 -1
- package/dist/canvas/viewRegistry.js.map +1 -1
- package/dist/clipboard.d.ts +3 -2
- package/dist/{clone-DZDrfIlU.d.ts → clone-C3e0OTuF.d.ts} +8 -21
- package/dist/clone.d.ts +4 -3
- package/dist/core/geometry/autoPoseDescriptor.js +1 -1
- package/dist/core/ops/setDependsOn.js +37 -0
- package/dist/core/ops/setDependsOn.js.map +1 -0
- package/dist/core/ops/writtenBy.js +53 -0
- package/dist/core/ops/writtenBy.js.map +1 -0
- package/dist/core/pages/fitViewToPage.js +12 -1
- package/dist/core/pages/fitViewToPage.js.map +1 -1
- package/dist/core/pages/pageEdits.js +163 -0
- package/dist/core/pages/pageEdits.js.map +1 -0
- package/dist/core/pages/pages.js +30 -1
- package/dist/core/pages/pages.js.map +1 -1
- package/dist/core/paint/meshKindLazy.js +59 -2
- package/dist/core/paint/meshKindLazy.js.map +1 -1
- package/dist/core/scene/NodeRouting.js +8 -3
- package/dist/core/scene/NodeRouting.js.map +1 -1
- package/dist/core/scene/arrivalWindow.js.map +1 -1
- package/dist/core/scene/carryDescendants.js +51 -0
- package/dist/core/scene/carryDescendants.js.map +1 -0
- package/dist/core/scene/clipNothing.js +13 -0
- package/dist/core/scene/clipNothing.js.map +1 -0
- package/dist/core/scene/depMemo.js +11 -3
- package/dist/core/scene/depMemo.js.map +1 -1
- package/dist/core/scene/dependents.js +7 -1
- package/dist/core/scene/dependents.js.map +1 -1
- package/dist/core/scene/derivedParts.js +10 -11
- package/dist/core/scene/derivedParts.js.map +1 -1
- package/dist/core/scene/docValues.js +57 -0
- package/dist/core/scene/docValues.js.map +1 -0
- package/dist/core/scene/editPass.js +111 -0
- package/dist/core/scene/editPass.js.map +1 -0
- package/dist/core/scene/effectivePose.js +13 -2
- package/dist/core/scene/effectivePose.js.map +1 -1
- package/dist/core/scene/fieldEdits.js +4 -1
- package/dist/core/scene/fieldEdits.js.map +1 -1
- package/dist/core/scene/fontReads.js +37 -0
- package/dist/core/scene/fontReads.js.map +1 -0
- package/dist/core/scene/historyFacade.js +1 -0
- package/dist/core/scene/historyFacade.js.map +1 -1
- package/dist/core/scene/inheritedPaint.js +75 -0
- package/dist/core/scene/inheritedPaint.js.map +1 -0
- package/dist/core/scene/kitRegistry.js +5 -0
- package/dist/core/scene/kitRegistry.js.map +1 -1
- package/dist/core/scene/layoutPass.js +28 -3
- package/dist/core/scene/layoutPass.js.map +1 -1
- package/dist/core/scene/nodeMemo.js +15 -7
- package/dist/core/scene/nodeMemo.js.map +1 -1
- package/dist/core/scene/pathEffects/blend.js.map +1 -1
- package/dist/core/scene/pathEffects/derive.js +7 -2
- package/dist/core/scene/pathEffects/derive.js.map +1 -1
- package/dist/core/scene/pathEffects/effects.js +3 -1
- package/dist/core/scene/pathEffects/effects.js.map +1 -1
- package/dist/core/scene/pathEffects/textAlong.js +95 -0
- package/dist/core/scene/pathEffects/textAlong.js.map +1 -0
- package/dist/core/scene/recorder.js +28 -19
- package/dist/core/scene/recorder.js.map +1 -1
- package/dist/core/scene/scene.js +15 -9
- package/dist/core/scene/scene.js.map +1 -1
- package/dist/core/scene/sceneChanges.js +13 -0
- package/dist/core/scene/sceneChanges.js.map +1 -0
- package/dist/core/scene/sceneEdits.js +8 -1
- package/dist/core/scene/sceneEdits.js.map +1 -1
- package/dist/core/scene/sceneMutators.js +1 -0
- package/dist/core/scene/sceneMutators.js.map +1 -1
- package/dist/core/scene/sceneRecording.js +20 -3
- package/dist/core/scene/sceneRecording.js.map +1 -1
- package/dist/core/scene/sceneSelection.js +4 -1
- package/dist/core/scene/sceneSelection.js.map +1 -1
- package/dist/core/scene/sceneState.js +11 -5
- package/dist/core/scene/sceneState.js.map +1 -1
- package/dist/core/scene/serialization.js +5 -3
- package/dist/core/scene/serialization.js.map +1 -1
- package/dist/core/scene/types.js.map +1 -1
- package/dist/core/scene/unitScopes.js +19 -1
- package/dist/core/scene/unitScopes.js.map +1 -1
- package/dist/core/selection/usePublishSceneSelection.js +6 -12
- package/dist/core/selection/usePublishSceneSelection.js.map +1 -1
- package/dist/core/shapeKinds.js +25 -11
- package/dist/core/shapeKinds.js.map +1 -1
- package/dist/{cornerHandles-Camw_yeu.d.ts → cornerHandles-p8fDIAKt.d.ts} +3 -2
- package/dist/debug/createDebugOverlayLayer.js +16 -111
- package/dist/debug/createDebugOverlayLayer.js.map +1 -1
- package/dist/debug/createDebugSink.js +2 -1
- package/dist/debug/createDebugSink.js.map +1 -1
- package/dist/debug/defaultTheme.js +4 -2
- package/dist/debug/defaultTheme.js.map +1 -1
- package/dist/debug/features.js +17 -0
- package/dist/debug/features.js.map +1 -0
- package/dist/debug/overlayPanels.js +117 -0
- package/dist/debug/overlayPanels.js.map +1 -0
- package/dist/debug/parseDebugFlags.js +4 -13
- package/dist/debug/parseDebugFlags.js.map +1 -1
- package/dist/{depSchema-Cgfu_G9s.d.ts → depSchema-mG19aEdD.d.ts} +174 -904
- package/dist/devtools/handlers.js +112 -0
- package/dist/devtools/handlers.js.map +1 -0
- package/dist/devtools/history.js +71 -0
- package/dist/devtools/history.js.map +1 -0
- package/dist/devtools/hook.js +74 -0
- package/dist/devtools/hook.js.map +1 -0
- package/dist/devtools/label.js +25 -0
- package/dist/devtools/label.js.map +1 -0
- package/dist/devtools/notices.js +58 -0
- package/dist/devtools/notices.js.map +1 -0
- package/dist/devtools/protocol.js +7 -0
- package/dist/devtools/protocol.js.map +1 -0
- package/dist/devtools/registry.js +90 -0
- package/dist/devtools/registry.js.map +1 -0
- package/dist/devtools/root.js +80 -0
- package/dist/devtools/root.js.map +1 -0
- package/dist/devtools/serialize.js +86 -0
- package/dist/devtools/serialize.js.map +1 -0
- package/dist/devtools/session.js +111 -0
- package/dist/devtools/session.js.map +1 -0
- package/dist/devtools/transport.js +67 -0
- package/dist/devtools/transport.js.map +1 -0
- package/dist/devtools/useDevtoolsRoot.js +81 -0
- package/dist/devtools/useDevtoolsRoot.js.map +1 -0
- package/dist/devtools-protocol.d.ts +435 -0
- package/dist/devtools-protocol.js +7 -0
- package/dist/devtools.d.ts +8 -0
- package/dist/devtools.js +12 -0
- package/dist/devtools.js.map +1 -0
- package/dist/features/chrome-caps/useHoverTracking.js +16 -10
- package/dist/features/chrome-caps/useHoverTracking.js.map +1 -1
- package/dist/features/ingestion/contentHandlers.js +25 -2
- package/dist/features/ingestion/contentHandlers.js.map +1 -1
- package/dist/features/measure/measureCommands.js +7 -5
- package/dist/features/measure/measureCommands.js.map +1 -1
- package/dist/features/measure/measureContribution.js +4 -2
- package/dist/features/measure/measureContribution.js.map +1 -1
- package/dist/features/modes/modeTriggers.js +7 -3
- package/dist/features/modes/modeTriggers.js.map +1 -1
- package/dist/features/pathEffects/effectSources.js +60 -0
- package/dist/features/pathEffects/effectSources.js.map +1 -0
- package/dist/features/pathEffects/readSource.js +17 -1
- package/dist/features/pathEffects/readSource.js.map +1 -1
- package/dist/features/pathEffects/textItems.js +53 -0
- package/dist/features/pathEffects/textItems.js.map +1 -0
- package/dist/features/pathEffects/useEffectSourcesLayer.js +57 -0
- package/dist/features/pathEffects/useEffectSourcesLayer.js.map +1 -0
- package/dist/features/paths/index.js +2 -2
- package/dist/features/paths/pathEditExtension.js.map +1 -1
- package/dist/features/paths/pathEditState.js +5 -2
- package/dist/features/paths/pathEditState.js.map +1 -1
- package/dist/features/paths/pathSnap/pathSnapSource.js +5 -5
- package/dist/features/paths/pathSnap/pathSnapSource.js.map +1 -1
- package/dist/features/paths/pathSnap/sceneIndex.js +10 -3
- package/dist/features/paths/pathSnap/sceneIndex.js.map +1 -1
- package/dist/features/selection/selectionPose.js +4 -1
- package/dist/features/selection/selectionPose.js.map +1 -1
- package/dist/features/snap/gather.js +9 -1
- package/dist/features/snap/gather.js.map +1 -1
- package/dist/features/snap/lazySession.js +17 -0
- package/dist/features/snap/lazySession.js.map +1 -0
- package/dist/features/snap/marks.js.map +1 -1
- package/dist/features/snap/probes2d.js +27 -19
- package/dist/features/snap/probes2d.js.map +1 -1
- package/dist/features/snap/readoutLayer.js.map +1 -1
- package/dist/features/snap/roles.js +2 -1
- package/dist/features/snap/roles.js.map +1 -1
- package/dist/features/snap/rotationSource.js +25 -8
- package/dist/features/snap/rotationSource.js.map +1 -1
- package/dist/features/snap/sceneSession2d.js +6 -4
- package/dist/features/snap/sceneSession2d.js.map +1 -1
- package/dist/features/snap/session2d.js +37 -23
- package/dist/features/snap/session2d.js.map +1 -1
- package/dist/features/snap/spanSnap.js +5 -2
- package/dist/features/snap/spanSnap.js.map +1 -1
- package/dist/features/text/sceneTextDrafts.js +65 -0
- package/dist/features/text/sceneTextDrafts.js.map +1 -0
- package/dist/features/text/textHitAt.js +31 -2
- package/dist/features/text/textHitAt.js.map +1 -1
- package/dist/features/text/useSceneTextEdit.js +22 -18
- package/dist/features/text/useSceneTextEdit.js.map +1 -1
- package/dist/features/viewports/aim.js +105 -0
- package/dist/features/viewports/aim.js.map +1 -0
- package/dist/features/viewports/viewMarker.js +82 -0
- package/dist/features/viewports/viewMarker.js.map +1 -0
- package/dist/features/viewports/viewMarkerDrag.js +55 -0
- package/dist/features/viewports/viewMarkerDrag.js.map +1 -0
- package/dist/icons.table.js +1 -1
- package/dist/icons.table.js.map +1 -1
- package/dist/icons.table.json +0 -10
- package/dist/index.d.ts +1198 -894
- package/dist/index.js +55 -38
- package/dist/interactions/actions/align/action.js +6 -4
- package/dist/interactions/actions/align/action.js.map +1 -1
- package/dist/interactions/actions/align/align.js.map +1 -1
- package/dist/interactions/actions/booleans/action.js +7 -1
- package/dist/interactions/actions/booleans/action.js.map +1 -1
- package/dist/interactions/actions/booleans/booleans.js +2 -1
- package/dist/interactions/actions/booleans/booleans.js.map +1 -1
- package/dist/interactions/actions/booleans/operands.js +6 -5
- package/dist/interactions/actions/booleans/operands.js.map +1 -1
- package/dist/interactions/actions/clipboard/action.js +27 -17
- package/dist/interactions/actions/clipboard/action.js.map +1 -1
- package/dist/interactions/actions/clone/action.js +1 -1
- package/dist/interactions/actions/clone/behaviors.js +4 -4
- package/dist/interactions/actions/clone/behaviors.js.map +1 -1
- package/dist/interactions/actions/defaults/anchorEditing.js +44 -23
- package/dist/interactions/actions/defaults/anchorEditing.js.map +1 -1
- package/dist/interactions/actions/defaults/anchorJoin.js +12 -6
- package/dist/interactions/actions/defaults/anchorJoin.js.map +1 -1
- package/dist/interactions/actions/defaults/bendSegment.js +8 -5
- package/dist/interactions/actions/defaults/bendSegment.js.map +1 -1
- package/dist/interactions/actions/defaults/cancelGesture.js +11 -8
- package/dist/interactions/actions/defaults/cancelGesture.js.map +1 -1
- package/dist/interactions/actions/defaults/contextMenu.js +17 -8
- package/dist/interactions/actions/defaults/contextMenu.js.map +1 -1
- package/dist/interactions/actions/defaults/createPaintAction.js +2 -2
- package/dist/interactions/actions/defaults/createPaintAction.js.map +1 -1
- package/dist/interactions/actions/defaults/delete.js +64 -41
- package/dist/interactions/actions/defaults/delete.js.map +1 -1
- package/dist/interactions/actions/defaults/duplicate.js +12 -9
- package/dist/interactions/actions/defaults/duplicate.js.map +1 -1
- package/dist/interactions/actions/defaults/enterPathEdit.js +19 -9
- package/dist/interactions/actions/defaults/enterPathEdit.js.map +1 -1
- package/dist/interactions/actions/defaults/escape.js +11 -8
- package/dist/interactions/actions/defaults/escape.js.map +1 -1
- package/dist/interactions/actions/defaults/exitPathEdit.js +7 -4
- package/dist/interactions/actions/defaults/exitPathEdit.js.map +1 -1
- package/dist/interactions/actions/defaults/group.js +21 -15
- package/dist/interactions/actions/defaults/group.js.map +1 -1
- package/dist/interactions/actions/defaults/ingest.js +17 -9
- package/dist/interactions/actions/defaults/ingest.js.map +1 -1
- package/dist/interactions/actions/defaults/insertPathAnchor.js +7 -4
- package/dist/interactions/actions/defaults/insertPathAnchor.js.map +1 -1
- package/dist/interactions/actions/defaults/nudge.js +21 -40
- package/dist/interactions/actions/defaults/nudge.js.map +1 -1
- package/dist/interactions/actions/defaults/pathEditTools.js +11 -8
- package/dist/interactions/actions/defaults/pathEditTools.js.map +1 -1
- package/dist/interactions/actions/defaults/pinchZoom.js +7 -4
- package/dist/interactions/actions/defaults/pinchZoom.js.map +1 -1
- package/dist/interactions/actions/defaults/reorder.js +24 -6
- package/dist/interactions/actions/defaults/reorder.js.map +1 -1
- package/dist/interactions/actions/defaults/selectAll.js +8 -5
- package/dist/interactions/actions/defaults/selectAll.js.map +1 -1
- package/dist/interactions/actions/defaults/setFill.js +7 -3
- package/dist/interactions/actions/defaults/setFill.js.map +1 -1
- package/dist/interactions/actions/defaults/setFillOpacity.js +1 -1
- package/dist/interactions/actions/defaults/setStroke.js +12 -11
- package/dist/interactions/actions/defaults/setStroke.js.map +1 -1
- package/dist/interactions/actions/defaults/setStrokeOpacity.js +1 -1
- package/dist/interactions/actions/defaults/toolActivate.js +7 -1
- package/dist/interactions/actions/defaults/toolActivate.js.map +1 -1
- package/dist/interactions/actions/defaults/toolResetToDefault.js +7 -4
- package/dist/interactions/actions/defaults/toolResetToDefault.js.map +1 -1
- package/dist/interactions/actions/defaults/undoRedo.js +19 -13
- package/dist/interactions/actions/defaults/undoRedo.js.map +1 -1
- package/dist/interactions/actions/defaults/viewportWheelPan.js +16 -7
- package/dist/interactions/actions/defaults/viewportWheelPan.js.map +1 -1
- package/dist/interactions/actions/defaults/viewportZoom.js +24 -6
- package/dist/interactions/actions/defaults/viewportZoom.js.map +1 -1
- package/dist/interactions/actions/distribute/action.js +6 -4
- package/dist/interactions/actions/distribute/action.js.map +1 -1
- package/dist/interactions/actions/drawnBoxes.js +2 -1
- package/dist/interactions/actions/drawnBoxes.js.map +1 -1
- package/dist/interactions/actions/edit-anchors/action.js +10 -10
- package/dist/interactions/actions/edit-anchors/action.js.map +1 -1
- package/dist/interactions/actions/edit-anchors/preview.js +41 -8
- package/dist/interactions/actions/edit-anchors/preview.js.map +1 -1
- package/dist/interactions/actions/flip/action.js +14 -6
- package/dist/interactions/actions/flip/action.js.map +1 -1
- package/dist/interactions/actions/gestureLifecycle.js +5 -2
- package/dist/interactions/actions/gestureLifecycle.js.map +1 -1
- package/dist/interactions/actions/insert/action.js +1 -2
- package/dist/interactions/actions/insert/action.js.map +1 -1
- package/dist/interactions/actions/insert/commit.js +1 -1
- package/dist/interactions/actions/insert/parent.js +11 -0
- package/dist/interactions/actions/insert/parent.js.map +1 -0
- package/dist/interactions/actions/insert/placeAction.js +7 -2
- package/dist/interactions/actions/insert/placeAction.js.map +1 -1
- package/dist/interactions/actions/insert/repositionAction.js +2 -1
- package/dist/interactions/actions/insert/repositionAction.js.map +1 -1
- package/dist/interactions/actions/insert/session.js +5 -1
- package/dist/interactions/actions/insert/session.js.map +1 -1
- package/dist/interactions/actions/move/action.js +15 -8
- package/dist/interactions/actions/move/action.js.map +1 -1
- package/dist/interactions/actions/move/behaviors/layoutDrop.js +0 -1
- package/dist/interactions/actions/move/behaviors/layoutDrop.js.map +1 -1
- package/dist/interactions/actions/move/behaviors/snapToContainer.js +1 -1
- package/dist/interactions/actions/move/capture.js +1 -1
- package/dist/interactions/actions/move/commit/index.js +0 -2
- package/dist/interactions/actions/move/commit/index.js.map +1 -1
- package/dist/interactions/actions/move/commit/layoutDrop.js +2 -2
- package/dist/interactions/actions/move/commit/layoutRelease.js +2 -2
- package/dist/interactions/actions/move/commit/reparent.js +11 -5
- package/dist/interactions/actions/move/commit/reparent.js.map +1 -1
- package/dist/interactions/actions/move/frame.js +4 -10
- package/dist/interactions/actions/move/frame.js.map +1 -1
- package/dist/interactions/actions/move/landedDescendants.js +20 -17
- package/dist/interactions/actions/move/landedDescendants.js.map +1 -1
- package/dist/interactions/actions/move/layout/container.js +2 -1
- package/dist/interactions/actions/move/layout/container.js.map +1 -1
- package/dist/interactions/actions/move/layout/dragged.js +1 -1
- package/dist/interactions/actions/move/layout/dropPass.js +18 -1
- package/dist/interactions/actions/move/layout/dropPass.js.map +1 -1
- package/dist/interactions/actions/move/layout/exits.js +5 -5
- package/dist/interactions/actions/move/layout/exits.js.map +1 -1
- package/dist/interactions/actions/move/session.js +14 -3
- package/dist/interactions/actions/move/session.js.map +1 -1
- package/dist/interactions/actions/move/translate.js +8 -37
- package/dist/interactions/actions/move/translate.js.map +1 -1
- package/dist/interactions/actions/moveNodes.js +87 -0
- package/dist/interactions/actions/moveNodes.js.map +1 -0
- package/dist/interactions/actions/outlines/createOutlinesAction.js +8 -5
- package/dist/interactions/actions/outlines/createOutlinesAction.js.map +1 -1
- package/dist/interactions/actions/outlines/outlineStroke.js +5 -3
- package/dist/interactions/actions/outlines/outlineStroke.js.map +1 -1
- package/dist/interactions/actions/pathCommands/cutJoin.js +8 -5
- package/dist/interactions/actions/pathCommands/cutJoin.js.map +1 -1
- package/dist/interactions/actions/planeInput.js.map +1 -1
- package/dist/interactions/actions/resize/action.js +83 -72
- package/dist/interactions/actions/resize/action.js.map +1 -1
- package/dist/interactions/actions/resize/commit.js +2 -1
- package/dist/interactions/actions/resize/commit.js.map +1 -1
- package/dist/interactions/actions/resize/cornerHandles.js +2 -1
- package/dist/interactions/actions/resize/cornerHandles.js.map +1 -1
- package/dist/interactions/actions/resize/session.js +2 -0
- package/dist/interactions/actions/resize/session.js.map +1 -1
- package/dist/interactions/actions/resolvePreviews.js +3 -3
- package/dist/interactions/actions/resolvePreviews.js.map +1 -1
- package/dist/interactions/actions/rotate/action.js +7 -4
- package/dist/interactions/actions/rotate/action.js.map +1 -1
- package/dist/interactions/actions/rotate/commit.js +2 -1
- package/dist/interactions/actions/rotate/commit.js.map +1 -1
- package/dist/interactions/actions/rotate/session.js +2 -0
- package/dist/interactions/actions/rotate/session.js.map +1 -1
- package/dist/interactions/actions/selectionSubtree.js +25 -9
- package/dist/interactions/actions/selectionSubtree.js.map +1 -1
- package/dist/interactions/actions/testUtils.js.map +1 -1
- package/dist/interactions/actions/transform-again/action.js +13 -11
- package/dist/interactions/actions/transform-again/action.js.map +1 -1
- package/dist/interactions/actions/transformFinish.js +106 -0
- package/dist/interactions/actions/transformFinish.js.map +1 -0
- package/dist/json.d.ts +4 -0
- package/dist/json.js +3 -0
- package/dist/kitSettingsSchema.js +8 -5
- package/dist/kitSettingsSchema.js.map +1 -1
- package/dist/{math-CrJULaZI.d.ts → math-B56zxVs5.d.ts} +10 -1
- package/dist/math.d.ts +1 -1
- package/dist/math.js +2 -1
- package/dist/move.d.ts +5 -4
- package/dist/{options-p9GZMXbY.d.ts → options-DBxEryYq.d.ts} +1 -1
- package/dist/resize.d.ts +4 -3
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +2 -2
- package/dist/test-hook/createTestHook.js +1 -1
- package/dist/test-hook/createTestHook.js.map +1 -1
- package/dist/test-hook/useTestHook.js +2 -1
- package/dist/test-hook/useTestHook.js.map +1 -1
- package/dist/test-seams.d.ts +9 -5
- package/dist/tools/builtin/ellipse/useEllipseTool.js +1 -0
- package/dist/tools/builtin/ellipse/useEllipseTool.js.map +1 -1
- package/dist/tools/builtin/eyedropper/useEyedropperTool.js +2 -1
- package/dist/tools/builtin/eyedropper/useEyedropperTool.js.map +1 -1
- package/dist/tools/builtin/hand/dragPanContribution.js +4 -1
- package/dist/tools/builtin/hand/dragPanContribution.js.map +1 -1
- package/dist/tools/builtin/hand/useHandTool.js +7 -4
- package/dist/tools/builtin/hand/useHandTool.js.map +1 -1
- package/dist/tools/builtin/image/useImageTool.js +1 -0
- package/dist/tools/builtin/image/useImageTool.js.map +1 -1
- package/dist/tools/builtin/lasso/useLassoTool.js +1 -0
- package/dist/tools/builtin/lasso/useLassoTool.js.map +1 -1
- package/dist/tools/builtin/line/useLineTool.js +1 -0
- package/dist/tools/builtin/line/useLineTool.js.map +1 -1
- package/dist/tools/builtin/measure/useMeasureTool.js +12 -5
- package/dist/tools/builtin/measure/useMeasureTool.js.map +1 -1
- package/dist/tools/builtin/pen/penHandle.js +3 -5
- package/dist/tools/builtin/pen/penHandle.js.map +1 -1
- package/dist/tools/builtin/pen/usePenTool.js +14 -6
- package/dist/tools/builtin/pen/usePenTool.js.map +1 -1
- package/dist/tools/builtin/pencil/usePencilTool.js +1 -0
- package/dist/tools/builtin/pencil/usePencilTool.js.map +1 -1
- package/dist/tools/builtin/polygon/usePolygonTool.js +13 -4
- package/dist/tools/builtin/polygon/usePolygonTool.js.map +1 -1
- package/dist/tools/builtin/rect/useRectTool.js +1 -0
- package/dist/tools/builtin/rect/useRectTool.js.map +1 -1
- package/dist/tools/builtin/select/adapterPointQuery.js +3 -2
- package/dist/tools/builtin/select/adapterPointQuery.js.map +1 -1
- package/dist/tools/builtin/select/pressDecision.js +32 -0
- package/dist/tools/builtin/select/pressDecision.js.map +1 -0
- package/dist/tools/builtin/select/selectionContributions.js +22 -13
- package/dist/tools/builtin/select/selectionContributions.js.map +1 -1
- package/dist/tools/builtin/select/useSelectTool.js +13 -10
- package/dist/tools/builtin/select/useSelectTool.js.map +1 -1
- package/dist/tools/builtin/slice/useSliceTool.js +22 -8
- package/dist/tools/builtin/slice/useSliceTool.js.map +1 -1
- package/dist/tools/builtin/star/useStarTool.js +13 -4
- package/dist/tools/builtin/star/useStarTool.js.map +1 -1
- package/dist/tools/builtin/sticky/stickyNode.js +4 -1
- package/dist/tools/builtin/sticky/stickyNode.js.map +1 -1
- package/dist/tools/builtin/sticky/useStickyTool.js +10 -5
- package/dist/tools/builtin/sticky/useStickyTool.js.map +1 -1
- package/dist/tools/builtin/text/useTextTool.js +3 -1
- package/dist/tools/builtin/text/useTextTool.js.map +1 -1
- package/dist/tools/index.js +26 -0
- package/dist/{types-CHVXGfYm.d.ts → types-7puAuVD2.d.ts} +3 -262
- package/dist/types-BN9hbdMI.d.ts +184 -0
- package/dist/types-CniVctmk.d.ts +949 -0
- package/dist/types-oFeQ5VjV.d.ts +264 -0
- package/dist/util/paint.js +1 -3
- package/dist/util/paint.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +39 -25
- package/dist/canvas/SceneCanvas/useBuiltinRigTools.js +0 -65
- package/dist/canvas/SceneCanvas/useBuiltinRigTools.js.map +0 -1
- package/dist/tools/builtin/bone/boneActions.js +0 -156
- package/dist/tools/builtin/bone/boneActions.js.map +0 -1
- package/dist/tools/builtin/bone/boneOverlay.js +0 -71
- package/dist/tools/builtin/bone/boneOverlay.js.map +0 -1
- package/dist/tools/builtin/bone/placedRig.js +0 -28
- package/dist/tools/builtin/bone/placedRig.js.map +0 -1
- package/dist/tools/builtin/bone/rigEditState.js +0 -30
- package/dist/tools/builtin/bone/rigEditState.js.map +0 -1
- package/dist/tools/builtin/bone/useBoneTool.js +0 -125
- package/dist/tools/builtin/bone/useBoneTool.js.map +0 -1
- package/dist/tools/builtin/weight/useWeightTool.js +0 -101
- package/dist/tools/builtin/weight/useWeightTool.js.map +0 -1
- package/dist/tools/builtin/weight/weightActions.js +0 -140
- package/dist/tools/builtin/weight/weightActions.js.map +0 -1
- package/dist/tools/builtin/weight/weightOverlay.js +0 -78
- package/dist/tools/builtin/weight/weightOverlay.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -6,6 +6,8 @@ import { DEFAULT_MAX_ZOOM, DEFAULT_MIN_ZOOM, ZOOM_FLOOR, normalizeZoom } from ".
|
|
|
6
6
|
import { normalizeView, viewToTransform, viewZoom } from "./core/viewport/view.js";
|
|
7
7
|
import { createViewportLayer } from "./features/viewports/viewportLayer.js";
|
|
8
8
|
import { createViewResolver } from "./features/viewports/viewResolver.js";
|
|
9
|
+
import { fitViewToBounds } from "./core/viewport/fitViewToBounds.js";
|
|
10
|
+
import { aimSpace2d, isRectAim, rectAim, viewForAim } from "./features/viewports/aim.js";
|
|
9
11
|
import { deriveParallaxView, fromPlane, planeMap, planeMatrix, planeToPlane, rectFromPlane, rectToPlane, toPlane } from "./core/viewport/parallax.js";
|
|
10
12
|
import { usePoseRun } from "./features/poseRun/usePoseRun.js";
|
|
11
13
|
import { watchDevicePixelRatio } from "./core/device/watchDevicePixelRatio.js";
|
|
@@ -13,9 +15,10 @@ import { DeviceProfileProvider, useDeviceProfile } from "./core/device/useDevice
|
|
|
13
15
|
import { useCanvasSize, useElementSize } from "./core/viewport/useCanvasSize.js";
|
|
14
16
|
import { IDENTITY_POSE_COMPOSITION, composeWorldPose, composesFrames, rebaseLocalPose } from "./core/scene/composeFrame.js";
|
|
15
17
|
import { RECT_POSE_COMPOSITION, RIGID_POSE_COMPOSITION, composeRectPose, composeRigidPose, decomposeRectPose, decomposeRigidPose, translateRectPose, worldPoseLookup } from "./core/scene/composePose.js";
|
|
18
|
+
import { noteFontRead } from "./core/scene/fontReads.js";
|
|
16
19
|
import { isPlainObject } from "./core/isPlainObject.js";
|
|
17
|
-
import { derivedPartsOf, pathFromParts } from "./core/scene/derivedParts.js";
|
|
18
|
-
import { definesFrame, derivedDepOf, derivedPose, documentPose, effectivePose } from "./core/scene/effectivePose.js";
|
|
20
|
+
import { derivedPartsOf, pathFromParts, resolvePartPaint } from "./core/scene/derivedParts.js";
|
|
21
|
+
import { definesFrame, derivedDepOf, derivedPose, documentDepOf, documentPose, effectivePose } from "./core/scene/effectivePose.js";
|
|
19
22
|
import { useNodeOverlayFrame } from "./core/viewport/useNodeOverlayFrame.js";
|
|
20
23
|
import { screenToWorld, worldToScreen } from "./core/viewport/viewTransform.js";
|
|
21
24
|
import { stableStringify } from "./core/stableStringify.js";
|
|
@@ -25,10 +28,14 @@ import { startThresholdDrag } from "./interactions/gestures/thresholdDrag/thresh
|
|
|
25
28
|
import { ANCHOR_HIT_BASE_PX, HANDLE_BASE_PX, ROTATION_HANDLE_BASE_PX } from "./core/device/targets.js";
|
|
26
29
|
import { COARSE_TARGET_SCALE, DEFAULT_DEVICE_PROFILE, resolveDeviceProfile } from "./core/device/index.js";
|
|
27
30
|
import { fitToBounds, fitZoom } from "./core/viewport/fitToBounds.js";
|
|
28
|
-
import {
|
|
29
|
-
import { adjacentPage, layoutPages, pageAt, pageOfBounds, pagesBounds } from "./core/pages/pages.js";
|
|
31
|
+
import { adjacentPage, layoutPages, pageAt, pageHolding, pageName, pageOfBounds, pagesBounds } from "./core/pages/pages.js";
|
|
30
32
|
import { pagesLayer } from "./core/pages/pagesLayer.js";
|
|
31
|
-
import { fitViewToPage } from "./core/pages/fitViewToPage.js";
|
|
33
|
+
import { fitViewToPage, pageInView } from "./core/pages/fitViewToPage.js";
|
|
34
|
+
import { axisAlignedBounds, unionAABB, unionBounds } from "./core/geometry/unionBounds.js";
|
|
35
|
+
import { RECT_POSE_DESCRIPTOR, ROTATED_POSE_DESCRIPTOR, poseDescriptorForNode, translatePoseViaDescriptor, visualBoundsViaDescriptor } from "./core/geometry/poseDescriptor.js";
|
|
36
|
+
import { scenePoseAdapter } from "./core/scene/scenePoseAdapter.js";
|
|
37
|
+
import { carriedDescendants, sceneCarrySource } from "./core/scene/carryDescendants.js";
|
|
38
|
+
import { PAGES_DOC_KEY, addPage, movePage, nextPageId, pageMembers, pagesOf, placedPagesOf, removePage, renamePage, resizePage, setPages } from "./core/pages/pageEdits.js";
|
|
32
39
|
import { axisZoomFactor, zoomAt } from "./core/viewport/zoomAt.js";
|
|
33
40
|
import { clampView } from "./core/viewport/clampView.js";
|
|
34
41
|
import { viewportWorldRect } from "./core/viewport/viewportWorldRect.js";
|
|
@@ -43,18 +50,17 @@ import { VIEW_ANIMATION_KEY, useViewAnimation, useViewAnimationOn, viewAxes } fr
|
|
|
43
50
|
import { dlog, dwarn, isDebugEnabled } from "./debug/flag.js";
|
|
44
51
|
import { useSelection } from "./core/selection/useSelection.js";
|
|
45
52
|
import { pathPoseDescriptor } from "./core/geometry/pathPoseDescriptor.js";
|
|
46
|
-
import { axisAlignedBounds, unionAABB, unionBounds } from "./core/geometry/unionBounds.js";
|
|
47
|
-
import { RECT_POSE_DESCRIPTOR, ROTATED_POSE_DESCRIPTOR, poseDescriptorForNode, translatePoseViaDescriptor, visualBoundsViaDescriptor } from "./core/geometry/poseDescriptor.js";
|
|
48
53
|
import { AUTO_POSE_DESCRIPTOR, isPathLike, isRectPose } from "./core/geometry/autoPoseDescriptor.js";
|
|
49
54
|
import { paintsLayer } from "./core/selection/chromeState.js";
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
55
|
+
import { inheritedPaintOf, inheritsPaint, withInheritedPaint } from "./core/scene/inheritedPaint.js";
|
|
56
|
+
import { inheritedPaintIn, paintAbove, withInheritedPaints } from "./canvas/inheritedPaints.js";
|
|
52
57
|
import { pathPaintOf } from "./canvas/nodeShapes/nodePaint.js";
|
|
53
58
|
import { OVERLAY_ROLE_STROKES } from "./canvas/overlayRoleStrokes.js";
|
|
54
59
|
import { measureBetween, measureEndsOf, measureNode, measurePose, measurementOf } from "./features/measure/measurement.js";
|
|
55
60
|
import { textBoxOf } from "./canvas/nodeShapes/textPainter.js";
|
|
56
61
|
import { DEFAULT_INK, findNodeShape, findShapeBounds, findShapeInk, findShapeSilhouette, getNodeShapes, registerNodeShape, shapeCoversPoint } from "./canvas/NodeShape.js";
|
|
57
62
|
import { drawnAABBOf, drawnBoundsOf, findShapeDrawnBounds, inkExtentsOf } from "./canvas/drawnBounds.js";
|
|
63
|
+
import { VIEW_MARKER_DEFAULT_STYLE, VIEW_MARKER_HIT_SLOP_PX, createViewMarkerLayer, grabViewMarker } from "./features/viewports/viewMarker.js";
|
|
58
64
|
import { CORNER_ANCHORS, EDGE_HANDLE_MIN_RADII, RESIZE_HANDLE_ANCHORS, cornerPoint, cornerResizeHandles, fixedCornerOf, handlePoint, hitCornerHandle, isCornerHandle, resizeHandlesFor } from "./interactions/actions/resize/cornerHandles.js";
|
|
59
65
|
import { annulusSemiAxes, hitAffordanceRegions, pointRegionFrame } from "./affordances/hitAffordanceRegions.js";
|
|
60
66
|
import { createCornerResizeAffordance } from "./affordances/cornerResize.js";
|
|
@@ -63,6 +69,9 @@ import { enumerateAnchors, withCoord } from "./interactions/actions/edit-anchors
|
|
|
63
69
|
import { PATH_ANCHOR_CHROME_ID, createPathAnchorAffordances } from "./affordances/pathAnchors.js";
|
|
64
70
|
import { insertPreviewExtent } from "./canvas/insertPreviewExtent.js";
|
|
65
71
|
import { CanvasView } from "./canvas/CanvasView.js";
|
|
72
|
+
import { ViewMarker } from "./canvas/ViewMarker.js";
|
|
73
|
+
import { VIEW_MARKER_DRAG, createViewMarkerContribution, viewMarkerDragAction } from "./features/viewports/viewMarkerDrag.js";
|
|
74
|
+
import { CANVAS_CONTEXT_ATTRIBUTES } from "./canvas/contextAttributes.js";
|
|
66
75
|
import { releaseCanvasRenderer } from "./canvas/canvasRenderer.js";
|
|
67
76
|
import { getPaintKind, listGradientKinds, listPaintKinds, paintKindOf, paintKindRegistry, patternFamily, registerPaintKind, registerPaintKindLoader, seedTile, switchGradientKind } from "./core/paint/paintKinds.js";
|
|
68
77
|
import { rotateAroundAABBCenter } from "./canvas/poseRotation.js";
|
|
@@ -70,6 +79,7 @@ import { isOverChildren, overChildren, splitOverChildren } from "./canvas/overCh
|
|
|
70
79
|
import { asNodeId } from "./core/scene/types.js";
|
|
71
80
|
import { annotationLayerIds, isAnnotationLayer, isAnnotationNode } from "./core/scene/annotation.js";
|
|
72
81
|
import { hidesSubtree, isNodeHidden, isNodeLocked, nodeGates } from "./core/scene/nodeGates.js";
|
|
82
|
+
import { drawnBoundsScene } from "./canvas/derivedPath.js";
|
|
73
83
|
import { applyOpsTo, dispatchApplyBatch } from "./core/applyOps.js";
|
|
74
84
|
import { createPoseTarget, poseAxes, scenePoseTarget } from "./animation/poseTarget.js";
|
|
75
85
|
import { sceneToAdapter } from "./canvas/sceneAdapter.js";
|
|
@@ -100,16 +110,16 @@ import { LONG_PRESS_MS, PointerContextProvider, activatesFocusedControl, createL
|
|
|
100
110
|
import { scenePoseFrame } from "./interactions/actions/poseFrame.js";
|
|
101
111
|
import { contextMenuAction, openContextMenu } from "./interactions/actions/defaults/contextMenu.js";
|
|
102
112
|
import { PATH_GESTURE_TAGS, pathOperationTags } from "./interactions/actions/pathGestureTags.js";
|
|
113
|
+
import { commitOps, defaultCommitAdapter } from "./interactions/actions/defaultCommitAdapter.js";
|
|
103
114
|
import { SceneArrivalRefused } from "./core/scene/arrivals.js";
|
|
104
115
|
import { editingLayer, inPlane, insertLayer, selectionLayer } from "./interactions/actions/planeInput.js";
|
|
105
116
|
import { gesturePlaneReader, gestureViewReader, screenTolerance } from "./interactions/gestures/shared/screenTolerance.js";
|
|
106
117
|
import { opFactoryRegistry, rebuildOp, registerOpFactory, registeredOpNames } from "./core/ops/registry.js";
|
|
107
|
-
import { createReparentOp } from "./core/ops/reparent.js";
|
|
108
118
|
import { createTransformOp } from "./core/ops/transform.js";
|
|
109
|
-
import {
|
|
119
|
+
import { createReparentOp } from "./core/ops/reparent.js";
|
|
110
120
|
import { createSetDataOp } from "./core/ops/setData.js";
|
|
121
|
+
import { MOVE_NODES_REQUIRES, moveNodes, moveNodesOps } from "./interactions/actions/moveNodes.js";
|
|
111
122
|
import { createSetLayerOp } from "./core/ops/setLayer.js";
|
|
112
|
-
import { commitOps, defaultCommitAdapter } from "./interactions/actions/defaultCommitAdapter.js";
|
|
113
123
|
import { SNAP_ANGLE_STEP, SNAP_AXIS_STEP, SNAP_ROLES, snapMods } from "./features/snap/roles.js";
|
|
114
124
|
import { forgetTransform, lastTransform, recordTransform } from "./interactions/actions/transform-again/memory.js";
|
|
115
125
|
import { moveAction } from "./interactions/actions/move/action.js";
|
|
@@ -117,10 +127,10 @@ import { resolveSpatialReference } from "./interactions/actions/spatialReference
|
|
|
117
127
|
import { flipAction } from "./interactions/actions/flip/action.js";
|
|
118
128
|
import { minSizeOf } from "./core/scene/minSize.js";
|
|
119
129
|
import { stepAngles } from "./features/snap/stepAngles.js";
|
|
120
|
-
import { gatherSnapCandidates, resolvedSnapMarks, snapSourcesFor } from "./features/snap/gather.js";
|
|
130
|
+
import { assertSnapSourceIds, gatherSnapCandidates, resolvedSnapMarks, snapSourcesFor } from "./features/snap/gather.js";
|
|
121
131
|
import { createSnapOutcomeStore } from "./features/snap/outcomeStore.js";
|
|
122
132
|
import { DEFAULT_SNAP_PX } from "./features/snap/session2d.js";
|
|
123
|
-
import { resizeAction } from "./interactions/actions/resize/action.js";
|
|
133
|
+
import { createResizeAction, resizeAction } from "./interactions/actions/resize/action.js";
|
|
124
134
|
import { rotateAction } from "./interactions/actions/rotate/action.js";
|
|
125
135
|
import { areaSelectAction } from "./interactions/actions/defaults/areaSelect.js";
|
|
126
136
|
import { KIT_SHAPE_KINDS, SHAPE_KINDS } from "./core/shapeKinds.js";
|
|
@@ -137,7 +147,7 @@ import { makeViewportZoomAction, viewportZoomAction } from "./interactions/actio
|
|
|
137
147
|
import { makeViewportWheelPanAction, viewportWheelPanAction } from "./interactions/actions/defaults/viewportWheelPan.js";
|
|
138
148
|
import { HANDLE_LOCK_ROLES, locksInForce } from "./interactions/actions/edit-anchors/handleDrag.js";
|
|
139
149
|
import { classifyPathStorage, hasEditablePath, pathEditPathOf, resolveEditablePathOf, storeEditablePath } from "./features/paths/editablePath.js";
|
|
140
|
-
import { pathEditPreview } from "./interactions/actions/edit-anchors/preview.js";
|
|
150
|
+
import { finishPathEditFrame, pathEditPreview } from "./interactions/actions/edit-anchors/preview.js";
|
|
141
151
|
import { editedPathSymmetries } from "./interactions/actions/edit-anchors/symmetry.js";
|
|
142
152
|
import { editAnchorsAction } from "./interactions/actions/edit-anchors/action.js";
|
|
143
153
|
import { deleteSelectedMark, editTargetOf, markUnder } from "./interactions/actions/defaults/pathEditMarks.js";
|
|
@@ -146,8 +156,13 @@ import { createSetSelectionOp } from "./core/ops/select.js";
|
|
|
146
156
|
import { selectFromLasso } from "./interactions/actions/lasso-select/behaviors/selectFromLasso.js";
|
|
147
157
|
import { lassoSelectAction } from "./interactions/actions/lasso-select/action.js";
|
|
148
158
|
import { sliceAction } from "./interactions/actions/defaults/slice.js";
|
|
159
|
+
import { textAlongParts } from "./core/scene/pathEffects/textAlong.js";
|
|
160
|
+
import { PATH_EFFECT, createPathEffectDerivations, pathEffectNode, pathEffectOf, pathEffectParts, registeredPathEffects } from "./core/scene/pathEffects/derive.js";
|
|
161
|
+
import { effectSourceFor, hiddenSourcesTakenWith } from "./features/pathEffects/effectSources.js";
|
|
162
|
+
import { commitDeleteToScene, createDeleteAction, deleteAction, hiddenSourceDeleteOps } from "./interactions/actions/defaults/delete.js";
|
|
149
163
|
import { makePinchZoomAction, pinchZoomAction } from "./interactions/actions/defaults/pinchZoom.js";
|
|
150
164
|
import { WEASEL_CLIPBOARD_MIME, WEASEL_CLIPBOARD_MIME_WEB, buildWeaselClipboardText, embedWeaselMetadataInSvg, extractWeaselClipboardFromSvg, parseWeaselClipboardText, sniffWeaselClipboardText } from "./interactions/actions/clipboard/wireFormat.js";
|
|
165
|
+
import { DEBUG_FEATURES } from "./debug/features.js";
|
|
151
166
|
import { parseDebugFlags } from "./debug/parseDebugFlags.js";
|
|
152
167
|
import { createDebugSink } from "./debug/createDebugSink.js";
|
|
153
168
|
import { registerContentHandler } from "./features/ingestion/contentHandlers.js";
|
|
@@ -158,7 +173,10 @@ import { canBringForward, canSendBackward } from "./core/ops/reorder/algorithms.
|
|
|
158
173
|
import { createSetChildOrderOp } from "./core/ops/reorder/setChildOrder.js";
|
|
159
174
|
import { createMoveToIndexOp, createReorderOp } from "./core/ops/reorder/index.js";
|
|
160
175
|
import { arrangePreset } from "./canvas/SceneCanvas/presets/arrange.js";
|
|
176
|
+
import { CLIP_NOTHING, clipNothing } from "./core/scene/clipNothing.js";
|
|
161
177
|
import { UNION_OF_CHILDREN, unionOfChildren } from "./core/scene/kitRegistry.js";
|
|
178
|
+
import { getAlpha01, mergeAlphaFromPrev, toHex8, withAlpha01 } from "./util/color.js";
|
|
179
|
+
import { DEFAULT_FILL_COLOR, DEFAULT_PALETTE, DEFAULT_STROKE_COLOR, GHOST_STROKE, cycleFill, paintAlpha, paintWithAlpha, paintWithColor, solid, strokeOf, strokeWith } from "./util/paint.js";
|
|
162
180
|
import { editPreset } from "./canvas/SceneCanvas/presets/edit.js";
|
|
163
181
|
import { ingestPreset } from "./canvas/SceneCanvas/presets/ingest.js";
|
|
164
182
|
import { makeHandleCommand } from "./interactions/actions/defaults/anchorHandles.js";
|
|
@@ -196,17 +214,6 @@ import { DRAG_PAN_ID, dragPanContribution } from "./tools/builtin/hand/dragPanCo
|
|
|
196
214
|
import { useTextTool } from "./tools/builtin/text/useTextTool.js";
|
|
197
215
|
import { STICKY_DEFAULTS, stickyData, stickyNodeFactory } from "./tools/builtin/sticky/stickyNode.js";
|
|
198
216
|
import { useStickyTool } from "./tools/builtin/sticky/useStickyTool.js";
|
|
199
|
-
import { dataRestPath } from "./animation/rig/skinBinding.js";
|
|
200
|
-
import { bindRig, rigidRigApply } from "./animation/rig/bindRig.js";
|
|
201
|
-
import { useRig } from "./animation/rig/useRig.js";
|
|
202
|
-
import { placeSkeleton, rigFromNode, unplaceSkeleton, useRigNode } from "./animation/rig/rigNode.js";
|
|
203
|
-
import { placedRig } from "./tools/builtin/bone/placedRig.js";
|
|
204
|
-
import { createBoneOverlay } from "./tools/builtin/bone/boneOverlay.js";
|
|
205
|
-
import { createRigEditState } from "./tools/builtin/bone/rigEditState.js";
|
|
206
|
-
import { useBoneTool } from "./tools/builtin/bone/useBoneTool.js";
|
|
207
|
-
import { weighedPaths } from "./tools/builtin/weight/weightActions.js";
|
|
208
|
-
import { createWeightOverlay } from "./tools/builtin/weight/weightOverlay.js";
|
|
209
|
-
import { useWeightTool } from "./tools/builtin/weight/useWeightTool.js";
|
|
210
217
|
import { createPenPreviewLayer } from "./features/paths/penPreviewLayer.js";
|
|
211
218
|
import { pointSnap } from "./features/snap/pointSnap.js";
|
|
212
219
|
import { createPointerFollower } from "./tools/builtin/shared/pointerFollower.js";
|
|
@@ -225,7 +232,8 @@ import { createMeasurements, currentMeasureId, measureIds } from "./features/mea
|
|
|
225
232
|
import { measureAt, measureEndSource } from "./features/measure/measureHit.js";
|
|
226
233
|
import { MEASURE_ACTION_IDS } from "./features/measure/actionIds.js";
|
|
227
234
|
import { useMeasureTool } from "./tools/builtin/measure/useMeasureTool.js";
|
|
228
|
-
import {
|
|
235
|
+
import { isToolSet, toolIdsOf, toolSet, toolSetHas, withoutTools } from "./tools/index.js";
|
|
236
|
+
import { ActionDisabledReason, ActionsProvider, ActiveToolContextProvider, ActiveToolContextProviderIfRoot, DepRegistryProvider, InputScope, Yoke, actionBindings, actionCursor, actionItemTitle, actionItems, actionSettingsParams, actionShortcuts, actionsTagged, bindingId, bodyPredicate, buildDepsFromRequires, createDepRegistry, createDispatcher, deleteScratch, evaluateActive, evaluateEnabled, getScratch, heldKeySpec, hitPredicate, keySpecShortcut, keysHeld, matchActionItem, overlaysOf, readActionSettings, resolveBindingOverrides, resolveParams, resolveSchemaMenu, roleReader, scratchKey, setScratch, specificity, taggedActionItems, tuneAction, useAction, useActionsRegistry, useActiveToolContext, useCommand, useDepRegistry, useDepSource, useGestureDispatcher, useLatest, useMenuHost, useMenus, useOngoingAction, useOpenKeymap, useOptionalActiveToolContext, useOptionalDepRegistry, useYoke } from "./barrel/routing.js";
|
|
229
237
|
import { PAINTED_CURSOR_LAYER_ID, createPaintedCursorLayer } from "./canvas/paintedCursorLayer.js";
|
|
230
238
|
import { hostAnchorCss, hostAnchorRect } from "./canvas/hostAnchor.js";
|
|
231
239
|
import { useHostAnchor } from "./canvas/useHostAnchor.js";
|
|
@@ -235,6 +243,9 @@ import { useSnapSource } from "./features/snap/registry.js";
|
|
|
235
243
|
import { IconRegistryProvider, IconRegistryProviderIfRoot, useIconRegistry } from "./iconRegistry/IconRegistryProvider.js";
|
|
236
244
|
import { useIconGlyph } from "./iconRegistry/useIconGlyph.js";
|
|
237
245
|
import { useIconVariant } from "./iconRegistry/useIconVariant.js";
|
|
246
|
+
import { dataRestPath } from "./animation/rig/skinBinding.js";
|
|
247
|
+
import { writtenBy } from "./core/ops/writtenBy.js";
|
|
248
|
+
import { useTransformFollower } from "./canvas/deps/transformFollowers.js";
|
|
238
249
|
import { paletteInsertPaint } from "./canvas/deps/insert.js";
|
|
239
250
|
import { PATH_SNAP_LABELS, pathSnapGlyph } from "./features/paths/pathSnap/glyphs.js";
|
|
240
251
|
import { nodeOutline } from "./features/paths/strokeOutline.js";
|
|
@@ -242,6 +253,8 @@ import { pathSnapSource } from "./features/paths/pathSnap/pathSnapSource.js";
|
|
|
242
253
|
import { AUTO_ORIGIN_PROJECTION, RECT_ORIGIN_PROJECTION } from "./interactions/gestures/shared/originProjection.js";
|
|
243
254
|
import { rotationSnapSource } from "./features/snap/rotationSource.js";
|
|
244
255
|
import { PATH_OVERLAY_ROLES, createPathOverlay } from "./canvas/pathOverlay.js";
|
|
256
|
+
import { DevtoolsLabel, useDevtoolsLabel } from "./devtools/label.js";
|
|
257
|
+
import { defaultNodeRouting, groupNodeRouting, inferredNodeRouting } from "./canvas/SceneCanvas/defaultNodeRouting.js";
|
|
245
258
|
import { KIT_VERSIONS, checkRequirements, satisfiesRange } from "./canvas/kitRequirements.js";
|
|
246
259
|
import { createPoseOverrides } from "./core/scene/poseOverrides.js";
|
|
247
260
|
import { createArrangeOp } from "./core/ops/arrange.js";
|
|
@@ -251,11 +264,14 @@ import { sceneSelectionStore } from "./core/scene/sceneSelection.js";
|
|
|
251
264
|
import { createScene, sceneFromJSON } from "./core/scene/scene.js";
|
|
252
265
|
import { actionIs, always, and, canHover, capabilityAll, capabilityIn, capabilityIs, capabilityNot, coarsePointer, cond, editingAnchors, focused, gesturing, hovering, hoveringSelected, modeIn, modeIs, modeNot, modifierHeld, multiActive, never, not, or, selectionAtLeast, selectionEmpty, selectionIs, when, zoomAtLeast } from "./features/chrome-caps/conditions.js";
|
|
253
266
|
import { SCENE_CANVAS_FEATURES } from "./canvas/SceneCanvas/features.js";
|
|
254
|
-
import { BUILTIN_TOOL_IDS,
|
|
267
|
+
import { BUILTIN_TOOLS, BUILTIN_TOOL_IDS, DRAW_TOOLS, PAGE_TOOLS, SELECT_TOOLS, SHAPE_TOOLS, TYPE_TOOLS, VIEW_TOOLS } from "./canvas/SceneCanvas/builtinToolSets.js";
|
|
268
|
+
import { DEFAULT_HANDLE_SIZE } from "./canvas/SceneCanvas/props.js";
|
|
255
269
|
import { DEFAULT_OVERLAY_STYLE } from "./features/paths/anchorMarkers.js";
|
|
256
270
|
import { createPathEditingOverlayLayer } from "./features/paths/pathEditingOverlayLayer.js";
|
|
257
271
|
import { resolveOverlays } from "./interactions/actions/resolveOverlays.js";
|
|
258
272
|
import { flattenPreviews, resolvePreviews } from "./interactions/actions/resolvePreviews.js";
|
|
273
|
+
import { readEffectSource } from "./features/pathEffects/readSource.js";
|
|
274
|
+
import { useEffectSourcesLayer } from "./features/pathEffects/useEffectSourcesLayer.js";
|
|
259
275
|
import { createDepartures } from "./animation/departures.js";
|
|
260
276
|
import { bindPoseTransition, glidesByDefault, usePoseTransition } from "./animation/poseTransition.js";
|
|
261
277
|
import { composeSelectionPose } from "./features/selection/selectionPose.js";
|
|
@@ -269,8 +285,7 @@ import { buildChromeCtx } from "./features/chrome-caps/buildChromeCtx.js";
|
|
|
269
285
|
import { useHoverTracking } from "./features/chrome-caps/useHoverTracking.js";
|
|
270
286
|
import { ALWAYS, DEFAULT_ALLOWED_CAPABILITIES, NEVER, buildRuleCtx, describeRule, evaluate } from "./features/chrome-caps/index.js";
|
|
271
287
|
import { useSceneAdapter } from "./canvas/useSceneAdapter.js";
|
|
272
|
-
import { createNodeRouting } from "./core/scene/NodeRouting.js";
|
|
273
|
-
import { defaultNodeRouting, groupNodeRouting, inferredNodeRouting } from "./canvas/SceneCanvas/defaultNodeRouting.js";
|
|
288
|
+
import { createNodeRouting, routeKind } from "./core/scene/NodeRouting.js";
|
|
274
289
|
import { SceneCanvas } from "./canvas/SceneCanvas.js";
|
|
275
290
|
import { LeanSceneCanvas } from "./canvas/LeanSceneCanvas.js";
|
|
276
291
|
import { createNodeProperties } from "./core/scene/NodeProperties.js";
|
|
@@ -288,11 +303,12 @@ import { createTextLayer } from "./features/text/textLayer.js";
|
|
|
288
303
|
import { useSceneTextEdit } from "./features/text/useSceneTextEdit.js";
|
|
289
304
|
import { TEXT_EDIT_FONT_HOLD, TextOutlinesError, charOffsetToDomPosition, domPositionToCharOffset, domToRuns, loadTextOutlines, runsToDom, textCommand, textCommandFromPose, textCommandFromRuns, textToPath, textToPathsByPaint, useTextEdit } from "./features/text/index.js";
|
|
290
305
|
import { useCreateOutlinesAdapter } from "./interactions/actions/outlines/useCreateOutlinesAdapter.js";
|
|
291
|
-
import { DEFAULT_DECORATION_METRICS, DEFAULT_TEXT_STYLE, MARKDOWN_RUN_GRAMMAR, SCRIPT_METRICS, SMALL_CAPS_SCALE, applyStyleToRange, cachedLayoutRuns, cachedPaintRuns, caretIndexAt, createMarkdownRenderer, decorationMetrics, defaultLabelTextRenderer, effectiveRangeStyle, fitTextPose, fontString, isBoldWeight, isSmallCapsLetter, isTextData, layoutMarkdown, layoutRuns, layoutTextPose, markdownToRuns, measureText, measureTextBounds, measuredWidth, nodeHasFlag, numericWeight, paintRuns, paragraphDirection, patchRangeStyle, pointInTextPose, rangeWeight, registerBidi, renderLabel, resolveAlign, resolveRunFace, resolveRuns, resolveTextStyle, runsToMarkdown, runsToPlainText, scriptMetrics, scriptMetricsFor, setFlagOverRange, smallCapsScale, smallCapsScaleFor, smallCapsText, styleAtRange, textLineBoxes, textPoseLayoutInput, toRuns, transformRunTexts, unboldPatch, verticalAlignOffset } from "./barrel/text.js";
|
|
306
|
+
import { DEFAULT_DECORATION_METRICS, DEFAULT_TEXT_FILL, DEFAULT_TEXT_STYLE, MARKDOWN_RUN_GRAMMAR, SCRIPT_METRICS, SMALL_CAPS_SCALE, applyStyleToRange, cachedLayoutRuns, cachedPaintRuns, caretIndexAt, createMarkdownRenderer, decorationMetrics, defaultLabelTextRenderer, effectiveRangeStyle, fitTextPose, fontString, isBoldWeight, isSmallCapsLetter, isTextData, layoutMarkdown, layoutRuns, layoutTextPose, markdownToRuns, measureText, measureTextBounds, measuredWidth, nodeHasFlag, numericWeight, paintRuns, paragraphDirection, patchRangeStyle, pointInTextPose, rangeWeight, registerBidi, renderLabel, resolveAlign, resolveRunFace, resolveRuns, resolveTextStyle, runsToMarkdown, runsToPlainText, scriptMetrics, scriptMetricsFor, setFlagOverRange, smallCapsScale, smallCapsScaleFor, smallCapsText, styleAtRange, textLineBoxes, textPoseLayoutInput, toRuns, transformRunTexts, unboldPatch, verticalAlignOffset } from "./barrel/text.js";
|
|
292
307
|
import { asPaint } from "./core/paint/paintKindEntry.js";
|
|
293
308
|
import { useGradientKinds, usePaintKind, usePaintKinds } from "./core/usePaintKinds.js";
|
|
294
|
-
import { BUILTIN_MARKERS, STROKE_DASH_RATIOS, TILE_KINDS, alignedStrokeRect, commandFill, commandPaint, commandStroke, composePatternTransform, contrastLineColor, createTilePattern, dashForStrokeStyle, decomposePatternTransform, fillInPoseFrame, fillToBoundsFrame, getMarker, gradientForBounds, gradientGeometry, hexToRgbBytes, hexToRgba, isGradientPaint, isPaintKindKnown, isPatternPaint, isSolidPaint, isTileKind, isTilePaint, lerpFill, lerpPaint, lerpStroke, listMarkers, markerInset, markerKeyOf, markerRegistry, markerSites, normalizeHex, parseColor, parseColorToRgba255, parseHexBytes, patternPlacementOf, registerMarker, resolveColor, resolveFillPattern, resolveMarkerSize, resolvePatternSpec, resolveScreenLength, resolveStrokeWidth, rgbaToHex, sampleGradientStops, scaleVertexWidth, strokeDashStyleOf, strokeInsets, tileSpecOf, trimPolyline, vertexHalfWidths, vertexWidthFromSides, warmPaintKinds, widestHalfWidth, withGradientKind } from "./barrel/paint.js";
|
|
309
|
+
import { BUILTIN_MARKERS, INHERIT, STROKE_DASH_RATIOS, TILE_KINDS, alignedStrokeRect, commandFill, commandPaint, commandStroke, composePatternTransform, contrastLineColor, contrastRatio, createTilePattern, dashForStrokeStyle, decomposePatternTransform, fillInPoseFrame, fillToBoundsFrame, getMarker, gradientForBounds, gradientGeometry, hexToRgbBytes, hexToRgba, isGradientPaint, isPaintKindKnown, isPatternPaint, isSolidPaint, isTileKind, isTilePaint, lerpFill, lerpPaint, lerpStroke, listMarkers, markerInset, markerKeyOf, markerRegistry, markerSites, normalizeHex, parseColor, parseColorToRgba255, parseHexBytes, patternPlacementOf, registerMarker, resolveColor, resolveFill, resolveFillPattern, resolveMarkerSize, resolvePatternSpec, resolveScreenLength, resolveStroke, resolveStrokeWidth, rgbaToHex, sampleGradientStops, scaleVertexWidth, strokeDashStyleOf, strokeInsets, tileSpecOf, trimPolyline, vertexHalfWidths, vertexWidthFromSides, warmPaintKinds, wcagLevels, widestHalfWidth, withGradientKind } from "./barrel/paint.js";
|
|
295
310
|
import { createSetTextOp } from "./core/ops/setText.js";
|
|
311
|
+
import { createSetDependsOnOp } from "./core/ops/setDependsOn.js";
|
|
296
312
|
import { createSetHiddenOp, createSetLockedOp } from "./core/ops/nodeFlags.js";
|
|
297
313
|
import { createSetLayoutOp } from "./core/ops/setLayout.js";
|
|
298
314
|
import { createSetPathOp } from "./core/ops/setPath.js";
|
|
@@ -300,17 +316,15 @@ import { nestedHitTester } from "./core/scene/nestedHit.js";
|
|
|
300
316
|
import { unionOfChildrenVia } from "./core/scene/unionOfChildren.js";
|
|
301
317
|
import { useScene } from "./core/scene/useScene.js";
|
|
302
318
|
import { reconcileSpecs } from "./core/scene/reconcileSpecs.js";
|
|
303
|
-
import { sceneUnitScopes } from "./core/scene/unitScopes.js";
|
|
319
|
+
import { sceneSharedUnitScopes, sceneUnitScopes } from "./core/scene/unitScopes.js";
|
|
304
320
|
import { createPoseFeed } from "./core/scene/poseFeed.js";
|
|
305
321
|
import { MEASURE_AFFORDANCE_KIND, MEASURE_LAYER_ID } from "./features/measure/measureLayer.js";
|
|
306
322
|
import { measurementsContribution } from "./features/measure/measureContribution.js";
|
|
307
323
|
import { MIXED, swapOp } from "./barrel/scene.js";
|
|
308
324
|
import { createPathLayer } from "./features/paths/pathLayer.js";
|
|
309
325
|
import { pathOriginProjection } from "./features/paths/originProjection.js";
|
|
310
|
-
import { CORNER_FIT_TOLERANCE, CORNER_KEYWORDS, DEFAULT_FLATTEN_TOLERANCE, PATH_C, PATH_CMD_LENGTHS, PATH_L, PATH_M, PATH_Q, PATH_SNAP_KINDS, PATH_Z, PathBuilder, asPolygonPath, averageAnchorsAt, bendAlongPath, blendPaths, boundsOfPath, circlePath, composePath, cornerAt, cornerFrameAt, cornerFrames, cornerKeywordOf, cornerShapeK, cornerShapePieces, cornerSpecAt, countPathAnchors, createPathSnapIndex, decomposePath, ellipsePath, extendToMeet, findPathSnap, flattenCubic, flattenCubicWithArcLen, flattenQuadratic, flattenQuadraticWithArcLen, hasCorners, hasOpenSubpath, intersectSegments, isCornerShape, joinAnchorsAt, lengthenOpenEnd, linePath, measurePath, nextCornerShape, offsetPath, openEndRay, openPathEnds, pathCommandCoordCount, pathContainsPoint, pathContainsPolygon, pathContainsRect, pathCrossings, pathDistanceToPoint, pathDivide, pathExclude, pathFromD, pathInPoseFrame, pathInWorld, pathIntersect, pathIntersectsPolygon, pathIntersectsRect, pathSegments, pathSignedArea, pathSubtract, pathThroughPoseFrame, pathToAnchors, pathUnion, pointAlongPath, pointInPath, polygonFromPoints, polylineFromPoints, poseFrameInverseOf, poseFrameOf, poseLinearOf, poseRotationOf, prepareBlend, rectMarkerPath, rectPath, regularPolygonPath, remapPerAnchor, repeatAlongPath, resolveCorners, resolveCornersWithSources, reversePath, rotatePathAround, roundRectPath, scalePathToBounds, simplifyAnchorsAt, simplifyPath, smudgePath, snipPathByPolyline, snipPathsAtCrossings, splitByClosure, splitPathByPolyline, splitPathBySegment, splitSubpaths, squarePath, starPath, stationsAlongPath, strokeToPath, transformPath, translatePath, trianglesToPath, trimPathAt, unionBoundsPath, withCorner, withoutCorners, worldEditToStorage } from "./features/paths/index.js";
|
|
326
|
+
import { CORNER_FIT_TOLERANCE, CORNER_KEYWORDS, DEFAULT_FLATTEN_TOLERANCE, PATH_C, PATH_CMD_LENGTHS, PATH_L, PATH_M, PATH_Q, PATH_SNAP_KINDS, PATH_Z, PathBuilder, asPolygonPath, averageAnchorsAt, bendAlongPath, blendPaths, boundsOfPath, circlePath, composePath, cornerAt, cornerFrameAt, cornerFrames, cornerKeywordOf, cornerShapeK, cornerShapePieces, cornerSpecAt, countPathAnchors, createPathSnapIndex, decomposePath, ellipsePath, extendToMeet, findPathSnap, flattenCubic, flattenCubicWithArcLen, flattenQuadratic, flattenQuadraticWithArcLen, hasCorners, hasOpenSubpath, intersectSegments, isCornerShape, joinAnchorsAt, lengthenOpenEnd, linePath, measurePath, nextCornerShape, offsetPath, openEndRay, openPathEnds, pathCommandCoordCount, pathContainsPoint, pathContainsPolygon, pathContainsRect, pathCrossings, pathDistanceToPoint, pathDivide, pathExclude, pathFromD, pathInPoseFrame, pathInWorld, pathIntersect, pathIntersectsPolygon, pathIntersectsRect, pathSegments, pathSignedArea, pathSubtract, pathThroughPoseFrame, pathToAnchors, pathToD, pathUnion, pointAlongPath, pointInPath, polygonFromPoints, polylineFromPoints, poseFrameInverseOf, poseFrameOf, poseLinearOf, poseRotationOf, prepareBlend, rectMarkerPath, rectPath, regularPolygonPath, remapPerAnchor, repeatAlongPath, resolveCorners, resolveCornersWithSources, reversePath, rotatePathAround, roundRectPath, scalePathToBounds, simplifyAnchorsAt, simplifyPath, smudgePath, snipPathByPolyline, snipPathsAtCrossings, splitByClosure, splitPathByPolyline, splitPathBySegment, splitSubpaths, squarePath, starPath, stationsAlongPath, strokeToPath, transformPath, translatePath, trianglesToPath, trimPathAt, unionBoundsPath, withCorner, withoutCorners, worldEditToStorage } from "./features/paths/index.js";
|
|
311
327
|
import { useAnchorFields } from "./features/paths/useAnchorFields.js";
|
|
312
|
-
import { PATH_EFFECT, createPathEffectDerivations, pathEffectNode, pathEffectOf, pathEffectParts, registeredPathEffects } from "./core/scene/pathEffects/derive.js";
|
|
313
|
-
import { readEffectSource } from "./features/pathEffects/readSource.js";
|
|
314
328
|
import { PATH_EFFECT_DERIVATIONS, withPathEffectsRegistry } from "./features/pathEffects/index.js";
|
|
315
329
|
import { useBooleans } from "./interactions/actions/booleans/useBooleans.js";
|
|
316
330
|
import { useBooleansAdapter } from "./interactions/actions/booleans/useBooleansAdapter.js";
|
|
@@ -330,11 +344,14 @@ import { animateOnSetPose } from "./animation/wrappers/animateOnSetPose.js";
|
|
|
330
344
|
import { animateLifecycle } from "./animation/wrappers/animateLifecycle.js";
|
|
331
345
|
import { createReflowTransition, useAnimatedReflow } from "./animation/reflow.js";
|
|
332
346
|
import { momentum } from "./animation/behaviors/momentum.js";
|
|
347
|
+
import { bindRig, rigidRigApply } from "./animation/rig/bindRig.js";
|
|
348
|
+
import { useRig } from "./animation/rig/useRig.js";
|
|
349
|
+
import { placeSkeleton, rigFromNode, unplaceSkeleton, useRigNode } from "./animation/rig/rigNode.js";
|
|
333
350
|
import { EASINGS, SPRING_PRESETS, cubicBezierEasing, easeIn, easeInBack, easeInBounce, easeInCirc, easeInCubic, easeInElastic, easeInExpo, easeInOut, easeInOutBack, easeInOutBounce, easeInOutCirc, easeInOutCubic, easeInOutElastic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeOut, easeOutBack, easeOutBounce, easeOutCirc, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, hexToOklchDeg, hslToSrgb, interpolateSrgb, lerpColorArray, lerpOklab, lerpOklch, linear, linearSrgbToOklab, linearToSrgb, oklabToLinearSrgb, oklabToOklch, oklabToSrgbU8, oklchDegToHex, oklchToOklab, resolveEasing, srgbFloatToOklab, srgbToHsl, srgbToLinear, srgbU8ToOklab } from "./animation/index.js";
|
|
334
351
|
import { CONTROL_SELECTOR, DRAG_THRESHOLD_PX, isInControlWithin, openPointerSession, pastDragThreshold, startCarry } from "./barrel/interactions.js";
|
|
335
352
|
import { toIconRef } from "./barrel/icons.js";
|
|
336
353
|
import { mergeContributions } from "./canvas/surfaceContribution.js";
|
|
337
|
-
import { CURSOR_ANGLE_STEPS, CURSOR_MAX_CSS_PX, SPRITE_STRIDE, assembleEntries, bakeCursor, blur, canQueryLocalFonts, createCursorSink, createPaintedCursorState, createReflectable, cssFamilyName, cssFontFamily, cssFontFamilyLoading, cullDrawCommands, cursorFor, enableLocalFontOutlines, fontOutlineRegistry, fontRegistry, frameRect, hasFontOutlines, isCanvasFont, listFontOutlines, liveScope, loadFontOutlines, mat3, modeShortcutSpec, modeShortcuts, outlineStatus, refreshCanvasFont, registerCanvasFont, registerEffect, registerFont, registerFontOutlines, resolveCursor, resolveCursorTier, scopeBindings, subscribeGlyphReady, unregisterCanvasFont, unregisterFontOutlines, viewToMat3, vignette, warmFonts } from "./barrel/renderer.js";
|
|
354
|
+
import { CURSOR_ANGLE_STEPS, CURSOR_MAX_CSS_PX, KEYMAP_HOLD, SPRITE_STRIDE, assembleEntries, bakeCursor, bindingSpec, blur, canQueryLocalFonts, captureGesture, captureKey, createCursorSink, createKeymapStack, createPaintedCursorState, createReflectable, cssFamilyName, cssFontFamily, cssFontFamilyLoading, cullDrawCommands, cursorFor, describeKeymap, enableLocalFontOutlines, fontOutlineRegistry, fontRegistry, frameRect, hasFontOutlines, held, isCanvasFont, key, keySpecRoute, keymapContribution, keymapLeaderBindingId, keymapLeaderId, keymapShortcuts, listFontOutlines, liveScope, loadFontOutlines, mat3, modeShortcutSpec, modeShortcuts, outlineStatus, refreshCanvasFont, registerCanvasFont, registerEffect, registerFont, registerFontOutlines, resolveCursor, resolveCursorTier, scopeBindings, subscribeGlyphReady, unbound, unregisterCanvasFont, unregisterFontOutlines, viewToMat3, vignette, warmFonts } from "./barrel/renderer.js";
|
|
338
355
|
import { coreKitSettingsSchema } from "./kitSettingsSchema.js";
|
|
339
356
|
|
|
340
|
-
export { ALWAYS, ANCHOR_HIT_BASE_PX, ANGLE_RADIANS, AREA_SELECT_ID, AUTO_ORIGIN_PROJECTION, AUTO_POSE_DESCRIPTOR, ActionDisabledReason, ActionsProvider, ActionsProviderIfRoot, ActiveToolContextProvider, ActiveToolContextProviderIfRoot, BUILTIN_MARKERS, BUILTIN_TOOL_IDS, COARSE_TARGET_SCALE, COMPOSITE_FEATURES, CONSTRAINT_TOLERANCE, CONTROL_SELECTOR, CORNER_ANCHORS, CORNER_FIT_TOLERANCE, CORNER_KEYWORDS, CURSOR_ANGLE_STEPS, CURSOR_MAX_CSS_PX, CURVE_REPS, CanvasView, CursorCoordsHud, DEFAULT_ALLOWED_CAPABILITIES, DEFAULT_ALPHA_DECAY, DEFAULT_ALPHA_MIN, DEFAULT_DEBUG_STROKES, DEFAULT_DEBUG_THEME, DEFAULT_DECORATION_METRICS, DEFAULT_DEVICE_PROFILE, DEFAULT_FILL_COLOR, DEFAULT_FLATTEN_TOLERANCE, DEFAULT_HANDLE_SIZE, DEFAULT_INK, DEFAULT_LAYER_RETAIN, DEFAULT_MAX_ZOOM, DEFAULT_MIN_ZOOM, DEFAULT_OVERLAY_STYLE, DEFAULT_PALETTE, DEFAULT_ROTATION_HANDLE_DISTANCE, DEFAULT_SHAPE_FILL, DEFAULT_SIMPLIFY_TOLERANCE, DEFAULT_SNAP_PX, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_STYLE, DEFAULT_VELOCITY_DECAY, DRAG_PAN_ID, DRAG_THRESHOLD_PX, DepRegistryProvider, DepRegistryProviderIfRoot, DeviceProfileProvider, DrawCanvas, EASINGS, EDGE_HANDLE_MIN_RADII, FALLBACK_ACCENT, FEATURE_ACTION_IDS, GEOMETRY_BOUND_DATA, GHOST_STROKE, HANDLE_BASE_PX, HANDLE_LOCK_ROLES, IDENTITY_POSE_COMPOSITION, IMPERIAL_INCHES, INSERT_REPOSITION_BINDING, IconRegistryProvider, IconRegistryProviderIfRoot, InputScope, KIT_SHAPE_KINDS, KIT_STANDARD_ACTION_IDS, KIT_VERSIONS, LONG_PRESS_FEEDBACK_ID, LONG_PRESS_MS, LeanSceneCanvas, MARKDOWN_RUN_GRAMMAR, MEASURE_ACTION_IDS, MEASURE_AFFORDANCE_KIND, MEASURE_LAYER_ID, METRIC_MM, MIXED, NEVER, OVERLAY_ROLE_STROKES, PAINTED_CURSOR_LAYER_ID, PATHFINDER_STROKES, PATH_ANCHOR_CHROME_ID, PATH_C, PATH_CMD_LENGTHS, PATH_EFFECT, PATH_EFFECT_DERIVATIONS, PATH_GESTURE_TAGS, PATH_L, PATH_M, PATH_OVERLAY_ROLES, PATH_Q, PATH_SNAP_KINDS, PATH_SNAP_LABELS, PATH_Z, PIXELS, PathBuilder, PickHud, PointerContextProvider, PointerProviderIfRoot, RECT_ORIGIN_PROJECTION, RECT_POSE_COMPOSITION, RECT_POSE_DESCRIPTOR, RESIZE_HANDLE_ANCHORS, RIGID_POSE_COMPOSITION, ROTATED_POSE_DESCRIPTOR, ROTATION_HANDLE_BASE_PX, SCENE_CANVAS_FEATURES, SCENE_HISTORY_FORM, SCRIPT_METRICS, SELECTION_MOVE_ID, SELECTION_RESIZE_ID, SELECTION_ROTATE_ID, SELECTION_TRANSFORM_ID, SHAPE_COUNT_RANGE, SHAPE_KINDS, SMALL_CAPS_SCALE, SNAP_ANGLE_STEP, SNAP_AXIS_STEP, SNAP_ROLES, SPRING_PRESETS, SPRITE_STRIDE, STAR_RATIO_RANGE, STICKY_DEFAULTS, STROKE_DASH_RATIOS, SceneArrivalRefused, SceneCanvas, SceneViewCanvas, SelectionContextProvider, SelectionContextProviderIfRoot, TEXT_EDIT_FONT_HOLD, TILE_KINDS, TOOL_DRIVEN_ACTION_IDS, TextOutlinesError, UNION_OF_CHILDREN, VERSION, VIEW_ANIMATION_KEY, WEASEL_CLIPBOARD_MIME, WEASEL_CLIPBOARD_MIME_WEB, WHEEL_ZOOM_STEP, WeaselProvider, Yoke, ZOOM_FLOOR, aabbCenter, accentColorOf, actionBindings, actionCursor, actionIs, actionItemTitle, actionItems, actionShortcuts, actionsTagged, activatesFocusedControl, adjacentPage, alignDeltaFor, alignTargetBounds, alignedStrokeRect, always, anchorEditWouldChange, and, animateLifecycle, animateOnSetPose, annotationLayerIds, annulusSemiAxes, applyBooleanOp, applyCreateOutlines, applyOpsTo, applyOutlineStroke, applyStyleToRange, areaSelectAction, areaSelectContribution, arrangePreset, asNodeId, asPaint, asPolygonPath, assembleEntries, averageAnchorsAt, axisAlignedBounds, axisUnits, axisZoomFactor, bakeCursor, bendAlongPath, bezierCubic, bezierQuadratic, bindPoseTransition, bindRig, bitmapSrc, blendPaths, blur, bodyPredicate, boundsOfPath, buildChromeCtx, buildDebugOverlayCommands, buildDepsFromRequires, buildRuleCtx, buildSceneViewCommands, buildWeaselClipboardText, cachedLayoutRuns, cachedPaintRuns, canBringForward, canHover, canQueryLocalFonts, canSendBackward, capabilityAll, capabilityIn, capabilityIs, capabilityNot, caretIndexAt, charOffsetToDomPosition, checkRequirements, circlePath, clampShapeGenerator, clampView, classifyPathStorage, clearSelectionAction, clientToCanvas, clipboardCopyAction, clipboardCutAction, clipboardPasteAction, clipboardPasteEventAction, cloneAction, coarsePointer, commandFill, commandPaint, commandStroke, commitAnchorEdit, commitBooleanPieces, commitOps, composeAffordanceLayer, composePath, composePatternTransform, composeRectPose, composeRigidPose, composeSelectionPose, composeWorldPose, composesFrames, computeFitViewport, computeSliceOps, computeWheelAction, cond, constrainPathEdit, constraintAnchors, contextMenuAction, contrastLineColor, coreKitSettingsSchema, cornerAt, cornerFrameAt, cornerFrames, cornerKeywordOf, cornerPoint, cornerResizeHandles, cornerShapeK, cornerShapePieces, cornerSpecAt, countPathAnchors, createArrangeOp, createBoneOverlay, createChildrenLayer, createCornerResizeAffordance, createCursorSink, createDebugOverlayLayer, createDebugSink, createDeleteOp, createDepRegistry, createDepartures, createDispatcher, createHistory, createInsertOp, createKeyState, createLongPressFeedbackContribution, createLongPressStore, createMarkdownRenderer, createMeasurements, createMoveToIndexOp, createNodeProperties, createNodeRouting, createPaintedCursorLayer, createPaintedCursorState, createPathAnchorAffordances, createPathEditingOverlayLayer, createPathEffectDerivations, createPathLayer, createPathOverlay, createPathSnapIndex, createPenPreviewLayer, createPointerFollower, createPointerStore, createPoseFeed, createPoseOverrides, createPoseTarget, createRasterSession, createReflectable, createReflowTransition, createReorderOp, createReparentOp, createRigEditState, createRotationAffordance, createScene, createSelectionHandlesLayer, createSelectionOutlineLayer, createSelectionOverlayLayer, createSetChildOrderOp, createSetDataOp, createSetHiddenOp, createSetLayerOp, createSetLayoutOp, createSetLockedOp, createSetPathOp, createSetSelectionOp, createSetTextOp, createSimulation, createSnapOutcomeStore, createSnapReadoutLayer, createTextLayer, createTilePattern, createTransformOp, createVelocityTracker, createViewResolver, createViewportLayer, createWeightOverlay, createWrittenPoseTarget, cssFamilyName, cssFontFamily, cssFontFamilyLoading, cubicBezierEasing, cullDrawCommands, currentMeasureId, cursorFor, cycleFill, dashForStrokeStyle, dataRestPath, debugSnapshotArgs, decomposePath, decomposePatternTransform, decomposeRectPose, decomposeRigidPose, decorationMetrics, defaultCommitAdapter, defaultDrawOne, defaultLabelTextRenderer, defaultNodeProperties, defaultNodeRouting, defaultPaintBounds, defaultVisibilityRules, defineTool, definesFrame, deleteAnchorsAction, deleteNode, deleteScratch, deleteSelectedMark, depOf, depsUnchanged, deriveParallaxView, derivedDepOf, derivedPartsOf, derivedPose, describeRule, dispatchApplyBatch, dlog, documentPose, domPositionToCharOffset, domToRuns, dragPanContribution, dragPointOf, drawLayers, drawOneLayer, drawnAABBOf, drawnBoundsOf, dwarn, easeIn, easeInBack, easeInBounce, easeInCirc, easeInCubic, easeInElastic, easeInExpo, easeInOut, easeInOutBack, easeInOutBounce, easeInOutCirc, easeInOutCubic, easeInOutElastic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeOut, easeOutBack, easeOutBounce, easeOutCirc, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, editAnchorsAction, editPreset, editTargetOf, editedPathSymmetries, editingAnchors, editingLayer, effectivePose, effectiveRangeStyle, ellipsePath, embedWeaselMetadataInSvg, enableLocalFontOutlines, enterTextEditAction, enumerateAnchors, evaluate, evaluateActive, evaluateEnabled, exitPathEditToolAction, extendToMeet, extractWeaselClipboardFromSvg, fillInPoseFrame, fillToBoundsFrame, findNodeShape, findPathSnap, findShapeBounds, findShapeDrawnBounds, findShapeInk, findShapeSilhouette, fitTextPose, fitToBounds, fitViewToBounds, fitViewToPage, fitZoom, fixedCornerOf, flattenCubic, flattenCubicWithArcLen, flattenPreviews, flattenQuadratic, flattenQuadraticWithArcLen, flipAction, focused, focusedControlOwnsKey, fontOutlineRegistry, fontRegistry, fontString, forEachCoalesced, forgetTransform, formatAxes, formatScoped, formatUnit, frameRect, fromPlane, fromRoot, gateLayer, gatherSnapCandidates, gesturePlaneReader, gestureViewReader, gesturing, getAlpha01, getImageBitmap, getMarker, getNodeShapes, getPaintKind, getScratch, getStylusData, glidesByDefault, gradientForBounds, gradientGeometry, groupNodeRouting, handlePoint, hasCorners, hasEditablePath, hasFontOutlines, hasOpenSubpath, heldKeySpec, hexToOklchDeg, hexToRgbBytes, hexToRgba, hidesSubtree, historyKey, hitAffordanceRegions, hitAnchor, hitCornerHandle, hitPredicate, hitRotationHandle, hostAnchorCss, hostAnchorRect, hovering, hoveringSelected, hslToSrgb, imageStatus, inPlane, inferredNodeProperties, inferredNodeRouting, ingestPreset, inkExtentsOf, insertAction, insertAt, insertLayer, insertPreviewExtent, insertRepositionAction, interpolateSrgb, interpolateView, intersectSegments, isAnnotationLayer, isAnnotationNode, isBoldWeight, isCanvasFont, isCornerHandle, isCornerShape, isDebugEnabled, isEditableTarget, isGradientPaint, isInControlWithin, isLayerPainted, isLayerVisible, isNodeHidden, isNodeLocked, isOverChildren, isPaintKindKnown, isPathLike, isPatternPaint, isPlainObject, isRectPose, isShapeGenerator, isSmallCapsLetter, isSolidPaint, isTextData, isTileKind, isTilePaint, isVectorImageSrc, joinAnchorsAt, joinPathsCommand, joinSelectedAnchors, keySpecShortcut, keysHeld, kitTextHandler, lassoSelectAction, lastTransform, layoutMarkdown, layoutPages, layoutRuns, layoutTextPose, lengthenOpenEnd, lerpColorArray, lerpFill, lerpOklab, lerpOklch, lerpPaint, lerpStroke, linePath, linear, linearSrgbToOklab, linearToSrgb, listFontOutlines, listGradientKinds, listMarkers, listPaintKinds, livePathEdit, liveScope, loadFontOutlines, loadTextOutlines, locksInForce, makeHandleCommand, makePinchZoomAction, makeViewportWheelPanAction, makeViewportZoomAction, markUnder, markdownToRuns, markerInset, markerKeyOf, markerRegistry, markerSites, mat3, matchActionItem, matchesKeyBinding, meanScale, measureAt, measureBetween, measureEndSource, measureEndsOf, measureIds, measureNode, measurePath, measurePose, measureText, measureTextBounds, measuredSegmentCommands, measuredWidth, measurementOf, measurementsContribution, mergeAlphaFromPrev, mergeContributions, minSizeOf, modeDecorationLayer, modeIn, modeIs, modeNot, modeShortcutSpec, modeShortcuts, modeTriggers, modifierHeld, momentum, moveAction, movePreset, multiActive, nestedHitTester, never, nextCornerShape, nodeGates, nodeHasFlag, nodeOutline, normalizeHex, normalizeView, normalizeZoom, not, nudgeAnchorsDownAction, nudgeAnchorsLeftAction, nudgeAnchorsRightAction, nudgeAnchorsUpAction, numericWeight, nurbs, offsetPath, oklabToLinearSrgb, oklabToOklch, oklabToSrgbU8, oklchDegToHex, oklchToOklab, onEmptyCanvas, opFactoryRegistry, openContextMenu, openEndRay, openFilePicker, openPathEnds, openPointerSession, or, outlinePreset, outlineStatus, overChildren, overlaysOf, pageAt, pageOfBounds, pagesBounds, pagesLayer, paintAlpha, paintKindOf, paintKindRegistry, paintRuns, paintWithAlpha, paintWithColor, paintedLayers, paintsLayer, paletteInsertPaint, paragraphDirection, parseColor, parseColorToRgba255, parseDebugFlags, parseHexBytes, parseUnitExpr, parseWeaselClipboardText, pastDragThreshold, patchRangeStyle, pathAnchorPoints, pathCommandCoordCount, pathContainsPoint, pathContainsPolygon, pathContainsRect, pathCopy, pathCrossings, pathDistanceToPoint, pathDivide, pathEditPathOf, pathEditPreview, pathEditToolAction, pathEditToolActive, pathEffectNode, pathEffectOf, pathEffectParts, pathExclude, pathFromD, pathFromParts, pathInPoseFrame, pathInWorld, pathIntersect, pathIntersectsPolygon, pathIntersectsRect, pathNodesOf, pathOperationTags, pathOriginProjection, pathPaintOf, pathPoseDescriptor, pathSegments, pathSignedArea, pathSnapGlyph, pathSnapSource, pathSubtract, pathThroughPoseFrame, pathToAnchors, pathUnion, pathsPreset, patternFamily, patternPlacementOf, pickTopMostHit, pillCommands, pinchZoomAction, placeAction, placeSkeleton, placedRig, planJoin, planPixelRender, planeMap, planeMatrix, planeToPlane, pointAlongPath, pointInPath, pointInRotatedRect, pointInTextPose, pointRegionFrame, pointSnap, polygonFromPoints, polylineFromPoints, poseAxes, poseDescriptorForNode, poseFrameInverseOf, poseFrameOf, poseLinearOf, poseRotationOf, prepareBlend, pressureToWidth, previewBooleanOp, pxExtent, rangeWeight, rasterToPng, readEffectSource, rebaseLocalPose, rebuildOp, reconcileSpecs, recordTransform, rectCorners, rectFromPlane, rectMarkerPath, rectPath, rectToPlane, refreshCanvasFont, regenerateShape, registerBidi, registerCanvasFont, registerContentHandler, registerEffect, registerFont, registerFontOutlines, registerMarker, registerNodeShape, registerOpFactory, registerPaintKind, registerPaintKindLoader, registeredOpNames, registeredPathEffects, regularPolygonPath, releaseCanvasRenderer, releaseImage, remapPerAnchor, renderDebugSnapshot, renderLabel, renderNeeds, renderSceneToCanvas, renderSceneToPixels, repeatAlongPath, requiresAnchorSelection, reshapeOps, reshapeTo, resizeAction, resizeHandlesFor, resizePreset, resolveAlign, resolveAxes, resolveBooleanOperands, resolveColor, resolveCorners, resolveCornersWithSources, resolveCursor, resolveCursorTier, resolveDeviceProfile, resolveEasing, resolveEditablePathOf, resolveFillPattern, resolveMarkerSize, resolveOverlays, resolveParams, resolvePatternSpec, resolvePreviews, resolveRunFace, resolveRuns, resolveSchemaMenu, resolveScoped, resolveScreenLength, resolveSpatialReference, resolveStrokeWidth, resolveTextStyle, resolveUnit, resolveUnitExpr, resolveVisibility, resolvedSnapMarks, retryImage, reversePath, rgbaToHex, rigFromNode, rigidRigApply, roleReader, rotateAction, rotateAroundAABBCenter, rotatePathAround, rotatePoint, rotatePreset, rotatedRectCorners, rotationDegreesUnit, rotationHandle, rotationSnapSource, roundRectPath, runsToDom, runsToMarkdown, runsToPlainText, sampleGradientStops, satisfiesRange, scaleDelta, scalePathToBounds, scaleVertexWidth, sceneClipTargets, sceneFromJSON, sceneNodeClientRect, scenePoseAdapter, scenePoseFrame, scenePoseTarget, sceneSelectionStore, sceneToAdapter, sceneUnitScopes, scopeBindings, scopesOf, scratchKey, screenAngleOf, screenToWorld, screenTolerance, scriptMetrics, scriptMetricsFor, seedTile, segmentUnder, selectAnchorAction, selectFromLasso, selectPreset, selectedPathNodes, selectionAtLeast, selectionEmpty, selectionIs, selectionLayer, selectionMoveBindings, selectionMoveContribution, selectionResizeBindings, selectionResizeContribution, selectionRotateBindings, selectionRotateContribution, selectionTransformBindings, selectionTransformContribution, setFlagOverRange, setImageCacheBudget, setScratch, settleShapeGenerator, shapeCoversPoint, shapeGeneratorOf, shapeGeneratorPath, simplifyAnchorsAt, simplifyPath, sliceAction, slotOf, smallCapsScale, smallCapsScaleFor, smallCapsText, smudgePath, snapMods, snapSourcesFor, sniffWeaselClipboardText, snipPathByPolyline, snipPathsAtCrossings, solid, solveConstraints, solvePathConstraints, specificity, spiro, splitByClosure, splitOverChildren, splitPathByPolyline, splitPathBySegment, splitSubpaths, springPose, squarePath, srgbFloatToOklab, srgbToHsl, srgbToLinear, srgbU8ToOklab, stableStringify, staggerSpringPose, standoff, starPath, startCarry, startThresholdDrag, stationsAlongPath, stepAngles, stickyData, stickyNodeFactory, storeEditablePath, strokeDashStyleOf, strokeInsets, strokeOf, strokeRegion, strokeToPath, strokeWith, styleAtRange, subscribeGlyphReady, subscribeImageReady, subscribeToSources, swapOp, switchGradientKind, taggedActionItems, textBoxOf, textCommand, textCommandFromPose, textCommandFromRuns, textLineBoxes, textPoseLayoutInput, textToPath, textToPathsByPaint, tickedSegment, tileSpecOf, toHex8, toIconRef, toPlane, toRoot, toRuns, transformPath, transformRunTexts, translatePath, translatePoseViaDescriptor, translateRectPose, trianglesToPath, trimPathAt, trimPolyline, tuneAction, tweenPose, unboldPatch, unionAABB, unionBounds, unionBoundsPath, unionOfChildren, unionOfChildrenVia, unitScale, unplaceSkeleton, unregisterCanvasFont, unregisterFontOutlines, unsatisfiedConstraints, useAction, useActionsRegistry, useActiveToolContext, useAlign, useAnchorFields, useAnimatedReflow, useAutoCenter, useBoneTool, useBooleans, useBooleansAdapter, useBooleansAdapterSource, useCanvasFocus, useCanvasSize, useClipboardOps, useCommand, useCreateOutlinesAdapter, useDecayLoop, useDepRegistry, useDepSource, useDeviceProfile, useDistribute, useDragGesture, useDragHandle, useDragRadial, useDragRect, useDropZone, useElementSize, useEllipseTool, useEyedropperTool, useFrameClock, useGestureDispatcher, useGradientKinds, useHandTool, useHandleDrag, useHostAnchor, useHoverTracking, useIconGlyph, useIconRegistry, useIconVariant, useImageTool, useKeyModifiers, useKeyState, useKeybindings, useLassoTool, useLatest, useLineTool, useMeasureTool, useMenuHost, useMenus, useNodeOverlayFrame, useOngoingAction, useOptionalActiveToolContext, useOptionalDepRegistry, usePaintKind, usePaintKinds, usePenTool, usePencilTool, usePointerContext, usePointerPosition, usePointerStylus, usePolygonTool, usePoseDescriptorDepSource, usePoseRun, usePoseTransition, usePublishSelection, useRectTool, useResizePolicy, useRig, useRigNode, useScene, useSceneAdapter, useSceneTextEdit, useSelectTool, useSelection, useSelectionContext, useSimulation, useSliceDep, useSliceDepSource, useSliceTool, useSnapSource, useStandardActions, useStarTool, useStickyTool, useTextEdit, useTextTool, useTools, useVelocityTracker, useViewAnimation, useViewAnimationOn, useVisibleRaf, useWeightTool, useYoke, vertexHalfWidths, vertexWidthFromSides, verticalAlignOffset, viewAxes, viewPreset, viewToMat3, viewToTransform, viewZoom, viewportDragPanAction, viewportWheelPanAction, viewportWorldRect, viewportZoomAction, vignette, visualBoundsViaDescriptor, warmFonts, warmPaintKinds, warmRender, watchDevicePixelRatio, weighedPaths, wheelPan, wheelZoom, wheelZoomFactor, when, widestHalfWidth, withAlpha01, withCoord, withCorner, withGradientKind, withPath, withPathEffectsRegistry, withinPxBox, withinPxRadius, withoutCorners, withoutGeometryBoundData, withoutShapeGenerator, workspaceTintLayer, worldEditToStorage, worldPoseLookup, worldToScreen, zoomAt, zoomAtLeast };
|
|
357
|
+
export { ALWAYS, ANCHOR_HIT_BASE_PX, ANGLE_RADIANS, AREA_SELECT_ID, AUTO_ORIGIN_PROJECTION, AUTO_POSE_DESCRIPTOR, ActionDisabledReason, ActionsProvider, ActionsProviderIfRoot, ActiveToolContextProvider, ActiveToolContextProviderIfRoot, BUILTIN_MARKERS, BUILTIN_TOOLS, BUILTIN_TOOL_IDS, CANVAS_CONTEXT_ATTRIBUTES, CLIP_NOTHING, COARSE_TARGET_SCALE, COMPOSITE_FEATURES, CONSTRAINT_TOLERANCE, CONTROL_SELECTOR, CORNER_ANCHORS, CORNER_FIT_TOLERANCE, CORNER_KEYWORDS, CURSOR_ANGLE_STEPS, CURSOR_MAX_CSS_PX, CURVE_REPS, CanvasView, CursorCoordsHud, DEBUG_FEATURES, DEFAULT_ALLOWED_CAPABILITIES, DEFAULT_ALPHA_DECAY, DEFAULT_ALPHA_MIN, DEFAULT_DEBUG_STROKES, DEFAULT_DEBUG_THEME, DEFAULT_DECORATION_METRICS, DEFAULT_DEVICE_PROFILE, DEFAULT_FILL_COLOR, DEFAULT_FLATTEN_TOLERANCE, DEFAULT_HANDLE_SIZE, DEFAULT_INK, DEFAULT_LAYER_RETAIN, DEFAULT_MAX_ZOOM, DEFAULT_MIN_ZOOM, DEFAULT_OVERLAY_STYLE, DEFAULT_PALETTE, DEFAULT_ROTATION_HANDLE_DISTANCE, DEFAULT_SIMPLIFY_TOLERANCE, DEFAULT_SNAP_PX, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_FILL, DEFAULT_TEXT_STYLE, DEFAULT_VELOCITY_DECAY, DRAG_PAN_ID, DRAG_THRESHOLD_PX, DRAW_TOOLS, DepRegistryProvider, DepRegistryProviderIfRoot, DeviceProfileProvider, DevtoolsLabel, DrawCanvas, EASINGS, EDGE_HANDLE_MIN_RADII, FALLBACK_ACCENT, FEATURE_ACTION_IDS, GEOMETRY_BOUND_DATA, GHOST_STROKE, HANDLE_BASE_PX, HANDLE_LOCK_ROLES, IDENTITY_POSE_COMPOSITION, IMPERIAL_INCHES, INHERIT, INSERT_REPOSITION_BINDING, IconRegistryProvider, IconRegistryProviderIfRoot, InputScope, KEYMAP_HOLD, KIT_SHAPE_KINDS, KIT_STANDARD_ACTION_IDS, KIT_VERSIONS, LONG_PRESS_FEEDBACK_ID, LONG_PRESS_MS, LeanSceneCanvas, MARKDOWN_RUN_GRAMMAR, MEASURE_ACTION_IDS, MEASURE_AFFORDANCE_KIND, MEASURE_LAYER_ID, METRIC_MM, MIXED, MOVE_NODES_REQUIRES, NEVER, OVERLAY_ROLE_STROKES, PAGES_DOC_KEY, PAGE_TOOLS, PAINTED_CURSOR_LAYER_ID, PATHFINDER_STROKES, PATH_ANCHOR_CHROME_ID, PATH_C, PATH_CMD_LENGTHS, PATH_EFFECT, PATH_EFFECT_DERIVATIONS, PATH_GESTURE_TAGS, PATH_L, PATH_M, PATH_OVERLAY_ROLES, PATH_Q, PATH_SNAP_KINDS, PATH_SNAP_LABELS, PATH_Z, PIXELS, PathBuilder, PickHud, PointerContextProvider, PointerProviderIfRoot, RECT_ORIGIN_PROJECTION, RECT_POSE_COMPOSITION, RECT_POSE_DESCRIPTOR, RESIZE_HANDLE_ANCHORS, RIGID_POSE_COMPOSITION, ROTATED_POSE_DESCRIPTOR, ROTATION_HANDLE_BASE_PX, SCENE_CANVAS_FEATURES, SCENE_HISTORY_FORM, SCRIPT_METRICS, SELECTION_MOVE_ID, SELECTION_RESIZE_ID, SELECTION_ROTATE_ID, SELECTION_TRANSFORM_ID, SELECT_TOOLS, SHAPE_COUNT_RANGE, SHAPE_KINDS, SHAPE_TOOLS, SMALL_CAPS_SCALE, SNAP_ANGLE_STEP, SNAP_AXIS_STEP, SNAP_ROLES, SPRING_PRESETS, SPRITE_STRIDE, STAR_RATIO_RANGE, STICKY_DEFAULTS, STROKE_DASH_RATIOS, SceneArrivalRefused, SceneCanvas, SceneViewCanvas, SelectionContextProvider, SelectionContextProviderIfRoot, TEXT_EDIT_FONT_HOLD, TILE_KINDS, TOOL_DRIVEN_ACTION_IDS, TYPE_TOOLS, TextOutlinesError, UNION_OF_CHILDREN, VERSION, VIEW_ANIMATION_KEY, VIEW_MARKER_DEFAULT_STYLE, VIEW_MARKER_DRAG, VIEW_MARKER_HIT_SLOP_PX, VIEW_TOOLS, ViewMarker, WEASEL_CLIPBOARD_MIME, WEASEL_CLIPBOARD_MIME_WEB, WHEEL_ZOOM_STEP, WeaselProvider, Yoke, ZOOM_FLOOR, aabbCenter, accentColorOf, actionBindings, actionCursor, actionIs, actionItemTitle, actionItems, actionSettingsParams, actionShortcuts, actionsTagged, activatesFocusedControl, addPage, adjacentPage, aimSpace2d, alignDeltaFor, alignTargetBounds, alignedStrokeRect, always, anchorEditWouldChange, and, animateLifecycle, animateOnSetPose, annotationLayerIds, annulusSemiAxes, applyBooleanOp, applyCreateOutlines, applyOpsTo, applyOutlineStroke, applyStyleToRange, areaSelectAction, areaSelectContribution, arrangePreset, asNodeId, asPaint, asPolygonPath, assembleEntries, assertSnapSourceIds, averageAnchorsAt, axisAlignedBounds, axisUnits, axisZoomFactor, bakeCursor, bendAlongPath, bezierCubic, bezierQuadratic, bindPoseTransition, bindRig, bindingId, bindingSpec, bitmapSrc, blendPaths, blur, bodyPredicate, boundsOfPath, buildChromeCtx, buildDebugOverlayCommands, buildDepsFromRequires, buildRuleCtx, buildSceneViewCommands, buildWeaselClipboardText, cachedLayoutRuns, cachedPaintRuns, canBringForward, canHover, canQueryLocalFonts, canSendBackward, capabilityAll, capabilityIn, capabilityIs, capabilityNot, captureGesture, captureKey, caretIndexAt, carriedDescendants, charOffsetToDomPosition, checkRequirements, circlePath, clampShapeGenerator, clampView, classifyPathStorage, clearSelectionAction, clientToCanvas, clipNothing, clipboardCopyAction, clipboardCutAction, clipboardPasteAction, clipboardPasteEventAction, cloneAction, coarsePointer, commandFill, commandPaint, commandStroke, commitAnchorEdit, commitBooleanPieces, commitDeleteToScene, commitOps, composeAffordanceLayer, composePath, composePatternTransform, composeRectPose, composeRigidPose, composeSelectionPose, composeWorldPose, composesFrames, computeFitViewport, computeSliceOps, computeWheelAction, cond, constrainPathEdit, constraintAnchors, contextMenuAction, contrastLineColor, contrastRatio, coreKitSettingsSchema, cornerAt, cornerFrameAt, cornerFrames, cornerKeywordOf, cornerPoint, cornerResizeHandles, cornerShapeK, cornerShapePieces, cornerSpecAt, countPathAnchors, createArrangeOp, createChildrenLayer, createCornerResizeAffordance, createCursorSink, createDebugOverlayLayer, createDebugSink, createDeleteAction, createDeleteOp, createDepRegistry, createDepartures, createDispatcher, createHistory, createInsertOp, createKeyState, createKeymapStack, createLongPressFeedbackContribution, createLongPressStore, createMarkdownRenderer, createMeasurements, createMoveToIndexOp, createNodeProperties, createNodeRouting, createPaintedCursorLayer, createPaintedCursorState, createPathAnchorAffordances, createPathEditingOverlayLayer, createPathEffectDerivations, createPathLayer, createPathOverlay, createPathSnapIndex, createPenPreviewLayer, createPointerFollower, createPointerStore, createPoseFeed, createPoseOverrides, createPoseTarget, createRasterSession, createReflectable, createReflowTransition, createReorderOp, createReparentOp, createResizeAction, createRotationAffordance, createScene, createSelectionHandlesLayer, createSelectionOutlineLayer, createSelectionOverlayLayer, createSetChildOrderOp, createSetDataOp, createSetDependsOnOp, createSetHiddenOp, createSetLayerOp, createSetLayoutOp, createSetLockedOp, createSetPathOp, createSetSelectionOp, createSetTextOp, createSimulation, createSnapOutcomeStore, createSnapReadoutLayer, createTextLayer, createTilePattern, createTransformOp, createVelocityTracker, createViewMarkerContribution, createViewMarkerLayer, createViewResolver, createViewportLayer, createWrittenPoseTarget, cssFamilyName, cssFontFamily, cssFontFamilyLoading, cubicBezierEasing, cullDrawCommands, currentMeasureId, cursorFor, cycleFill, dashForStrokeStyle, dataRestPath, debugSnapshotArgs, decomposePath, decomposePatternTransform, decomposeRectPose, decomposeRigidPose, decorationMetrics, defaultCommitAdapter, defaultDrawOne, defaultLabelTextRenderer, defaultNodeProperties, defaultNodeRouting, defaultPaintBounds, defaultVisibilityRules, defineTool, definesFrame, deleteAction, deleteAnchorsAction, deleteNode, deleteScratch, deleteSelectedMark, depOf, depsUnchanged, deriveParallaxView, derivedDepOf, derivedPartsOf, derivedPose, describeKeymap, describeRule, dispatchApplyBatch, dlog, documentDepOf, documentPose, domPositionToCharOffset, domToRuns, dragPanContribution, dragPointOf, drawLayers, drawOneLayer, drawnAABBOf, drawnBoundsOf, drawnBoundsScene, dwarn, easeIn, easeInBack, easeInBounce, easeInCirc, easeInCubic, easeInElastic, easeInExpo, easeInOut, easeInOutBack, easeInOutBounce, easeInOutCirc, easeInOutCubic, easeInOutElastic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeOut, easeOutBack, easeOutBounce, easeOutCirc, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, editAnchorsAction, editPreset, editTargetOf, editedPathSymmetries, editingAnchors, editingLayer, effectSourceFor, effectivePose, effectiveRangeStyle, ellipsePath, embedWeaselMetadataInSvg, enableLocalFontOutlines, enterTextEditAction, enumerateAnchors, evaluate, evaluateActive, evaluateEnabled, exitPathEditToolAction, extendToMeet, extractWeaselClipboardFromSvg, fillInPoseFrame, fillToBoundsFrame, findNodeShape, findPathSnap, findShapeBounds, findShapeDrawnBounds, findShapeInk, findShapeSilhouette, finishPathEditFrame, fitTextPose, fitToBounds, fitViewToBounds, fitViewToPage, fitZoom, fixedCornerOf, flattenCubic, flattenCubicWithArcLen, flattenPreviews, flattenQuadratic, flattenQuadraticWithArcLen, flipAction, focused, focusedControlOwnsKey, fontOutlineRegistry, fontRegistry, fontString, forEachCoalesced, forgetTransform, formatAxes, formatScoped, formatUnit, frameRect, fromPlane, fromRoot, gateLayer, gatherSnapCandidates, gesturePlaneReader, gestureViewReader, gesturing, getAlpha01, getImageBitmap, getMarker, getNodeShapes, getPaintKind, getScratch, getStylusData, glidesByDefault, grabViewMarker, gradientForBounds, gradientGeometry, groupNodeRouting, handlePoint, hasCorners, hasEditablePath, hasFontOutlines, hasOpenSubpath, held, heldKeySpec, hexToOklchDeg, hexToRgbBytes, hexToRgba, hiddenSourceDeleteOps, hiddenSourcesTakenWith, hidesSubtree, historyKey, hitAffordanceRegions, hitAnchor, hitCornerHandle, hitPredicate, hitRotationHandle, hostAnchorCss, hostAnchorRect, hovering, hoveringSelected, hslToSrgb, imageStatus, inPlane, inferredNodeProperties, inferredNodeRouting, ingestPreset, inheritedPaintIn, inheritedPaintOf, inheritsPaint, inkExtentsOf, insertAction, insertAt, insertLayer, insertPreviewExtent, insertRepositionAction, interpolateSrgb, interpolateView, intersectSegments, isAnnotationLayer, isAnnotationNode, isBoldWeight, isCanvasFont, isCornerHandle, isCornerShape, isDebugEnabled, isEditableTarget, isGradientPaint, isInControlWithin, isLayerPainted, isLayerVisible, isNodeHidden, isNodeLocked, isOverChildren, isPaintKindKnown, isPathLike, isPatternPaint, isPlainObject, isRectAim, isRectPose, isShapeGenerator, isSmallCapsLetter, isSolidPaint, isTextData, isTileKind, isTilePaint, isToolSet, isVectorImageSrc, joinAnchorsAt, joinPathsCommand, joinSelectedAnchors, key, keySpecRoute, keySpecShortcut, keymapContribution, keymapLeaderBindingId, keymapLeaderId, keymapShortcuts, keysHeld, kitTextHandler, lassoSelectAction, lastTransform, layoutMarkdown, layoutPages, layoutRuns, layoutTextPose, lengthenOpenEnd, lerpColorArray, lerpFill, lerpOklab, lerpOklch, lerpPaint, lerpStroke, linePath, linear, linearSrgbToOklab, linearToSrgb, listFontOutlines, listGradientKinds, listMarkers, listPaintKinds, livePathEdit, liveScope, loadFontOutlines, loadTextOutlines, locksInForce, makeHandleCommand, makePinchZoomAction, makeViewportWheelPanAction, makeViewportZoomAction, markUnder, markdownToRuns, markerInset, markerKeyOf, markerRegistry, markerSites, mat3, matchActionItem, matchesKeyBinding, meanScale, measureAt, measureBetween, measureEndSource, measureEndsOf, measureIds, measureNode, measurePath, measurePose, measureText, measureTextBounds, measuredSegmentCommands, measuredWidth, measurementOf, measurementsContribution, mergeAlphaFromPrev, mergeContributions, minSizeOf, modeDecorationLayer, modeIn, modeIs, modeNot, modeShortcutSpec, modeShortcuts, modeTriggers, modifierHeld, momentum, moveAction, moveNodes, moveNodesOps, movePage, movePreset, multiActive, nestedHitTester, never, nextCornerShape, nextPageId, nodeGates, nodeHasFlag, nodeOutline, normalizeHex, normalizeView, normalizeZoom, not, noteFontRead, nudgeAnchorsDownAction, nudgeAnchorsLeftAction, nudgeAnchorsRightAction, nudgeAnchorsUpAction, numericWeight, nurbs, offsetPath, oklabToLinearSrgb, oklabToOklch, oklabToSrgbU8, oklchDegToHex, oklchToOklab, onEmptyCanvas, opFactoryRegistry, openContextMenu, openEndRay, openFilePicker, openPathEnds, openPointerSession, or, outlinePreset, outlineStatus, overChildren, overlaysOf, pageAt, pageHolding, pageInView, pageMembers, pageName, pageOfBounds, pagesBounds, pagesLayer, pagesOf, paintAbove, paintAlpha, paintKindOf, paintKindRegistry, paintRuns, paintWithAlpha, paintWithColor, paintedLayers, paintsLayer, paletteInsertPaint, paragraphDirection, parseColor, parseColorToRgba255, parseDebugFlags, parseHexBytes, parseUnitExpr, parseWeaselClipboardText, pastDragThreshold, patchRangeStyle, pathAnchorPoints, pathCommandCoordCount, pathContainsPoint, pathContainsPolygon, pathContainsRect, pathCopy, pathCrossings, pathDistanceToPoint, pathDivide, pathEditPathOf, pathEditPreview, pathEditToolAction, pathEditToolActive, pathEffectNode, pathEffectOf, pathEffectParts, pathExclude, pathFromD, pathFromParts, pathInPoseFrame, pathInWorld, pathIntersect, pathIntersectsPolygon, pathIntersectsRect, pathNodesOf, pathOperationTags, pathOriginProjection, pathPaintOf, pathPoseDescriptor, pathSegments, pathSignedArea, pathSnapGlyph, pathSnapSource, pathSubtract, pathThroughPoseFrame, pathToAnchors, pathToD, pathUnion, pathsPreset, patternFamily, patternPlacementOf, pickTopMostHit, pillCommands, pinchZoomAction, placeAction, placeSkeleton, placedPagesOf, planJoin, planPixelRender, planeMap, planeMatrix, planeToPlane, pointAlongPath, pointInPath, pointInRotatedRect, pointInTextPose, pointRegionFrame, pointSnap, polygonFromPoints, polylineFromPoints, poseAxes, poseDescriptorForNode, poseFrameInverseOf, poseFrameOf, poseLinearOf, poseRotationOf, prepareBlend, pressureToWidth, previewBooleanOp, pxExtent, rangeWeight, rasterToPng, readActionSettings, readEffectSource, rebaseLocalPose, rebuildOp, reconcileSpecs, recordTransform, rectAim, rectCorners, rectFromPlane, rectMarkerPath, rectPath, rectToPlane, refreshCanvasFont, regenerateShape, registerBidi, registerCanvasFont, registerContentHandler, registerEffect, registerFont, registerFontOutlines, registerMarker, registerNodeShape, registerOpFactory, registerPaintKind, registerPaintKindLoader, registeredOpNames, registeredPathEffects, regularPolygonPath, releaseCanvasRenderer, releaseImage, remapPerAnchor, removePage, renamePage, renderDebugSnapshot, renderLabel, renderNeeds, renderSceneToCanvas, renderSceneToPixels, repeatAlongPath, requiresAnchorSelection, reshapeOps, reshapeTo, resizeAction, resizeHandlesFor, resizePage, resizePreset, resolveAlign, resolveAxes, resolveBindingOverrides, resolveBooleanOperands, resolveColor, resolveCorners, resolveCornersWithSources, resolveCursor, resolveCursorTier, resolveDeviceProfile, resolveEasing, resolveEditablePathOf, resolveFill, resolveFillPattern, resolveMarkerSize, resolveOverlays, resolveParams, resolvePartPaint, resolvePatternSpec, resolvePreviews, resolveRunFace, resolveRuns, resolveSchemaMenu, resolveScoped, resolveScreenLength, resolveSpatialReference, resolveStroke, resolveStrokeWidth, resolveTextStyle, resolveUnit, resolveUnitExpr, resolveVisibility, resolvedSnapMarks, retryImage, reversePath, rgbaToHex, rigFromNode, rigidRigApply, roleReader, rotateAction, rotateAroundAABBCenter, rotatePathAround, rotatePoint, rotatePreset, rotatedRectCorners, rotationDegreesUnit, rotationHandle, rotationSnapSource, roundRectPath, routeKind, runsToDom, runsToMarkdown, runsToPlainText, sampleGradientStops, satisfiesRange, scaleDelta, scalePathToBounds, scaleVertexWidth, sceneCarrySource, sceneClipTargets, sceneFromJSON, sceneNodeClientRect, scenePoseAdapter, scenePoseFrame, scenePoseTarget, sceneSelectionStore, sceneSharedUnitScopes, sceneToAdapter, sceneUnitScopes, scopeBindings, scopesOf, scratchKey, screenAngleOf, screenToWorld, screenTolerance, scriptMetrics, scriptMetricsFor, seedTile, segmentUnder, selectAnchorAction, selectFromLasso, selectPreset, selectedPathNodes, selectionAtLeast, selectionEmpty, selectionIs, selectionLayer, selectionMoveBindings, selectionMoveContribution, selectionResizeBindings, selectionResizeContribution, selectionRotateBindings, selectionRotateContribution, selectionTransformBindings, selectionTransformContribution, setFlagOverRange, setImageCacheBudget, setPages, setScratch, settleShapeGenerator, shapeCoversPoint, shapeGeneratorOf, shapeGeneratorPath, simplifyAnchorsAt, simplifyPath, sliceAction, slotOf, smallCapsScale, smallCapsScaleFor, smallCapsText, smudgePath, snapMods, snapSourcesFor, sniffWeaselClipboardText, snipPathByPolyline, snipPathsAtCrossings, solid, solveConstraints, solvePathConstraints, specificity, spiro, splitByClosure, splitOverChildren, splitPathByPolyline, splitPathBySegment, splitSubpaths, springPose, squarePath, srgbFloatToOklab, srgbToHsl, srgbToLinear, srgbU8ToOklab, stableStringify, staggerSpringPose, standoff, starPath, startCarry, startThresholdDrag, stationsAlongPath, stepAngles, stickyData, stickyNodeFactory, storeEditablePath, strokeDashStyleOf, strokeInsets, strokeOf, strokeRegion, strokeToPath, strokeWith, styleAtRange, subscribeGlyphReady, subscribeImageReady, subscribeToSources, swapOp, switchGradientKind, taggedActionItems, textAlongParts, textBoxOf, textCommand, textCommandFromPose, textCommandFromRuns, textLineBoxes, textPoseLayoutInput, textToPath, textToPathsByPaint, tickedSegment, tileSpecOf, toHex8, toIconRef, toPlane, toRoot, toRuns, toolIdsOf, toolSet, toolSetHas, transformPath, transformRunTexts, translatePath, translatePoseViaDescriptor, translateRectPose, trianglesToPath, trimPathAt, trimPolyline, tuneAction, tweenPose, unboldPatch, unbound, unionAABB, unionBounds, unionBoundsPath, unionOfChildren, unionOfChildrenVia, unitScale, unplaceSkeleton, unregisterCanvasFont, unregisterFontOutlines, unsatisfiedConstraints, useAction, useActionsRegistry, useActiveToolContext, useAlign, useAnchorFields, useAnimatedReflow, useAutoCenter, useBooleans, useBooleansAdapter, useBooleansAdapterSource, useCanvasFocus, useCanvasSize, useClipboardOps, useCommand, useCreateOutlinesAdapter, useDecayLoop, useDepRegistry, useDepSource, useDeviceProfile, useDevtoolsLabel, useDistribute, useDragGesture, useDragHandle, useDragRadial, useDragRect, useDropZone, useEffectSourcesLayer, useElementSize, useEllipseTool, useEyedropperTool, useFrameClock, useGestureDispatcher, useGradientKinds, useHandTool, useHandleDrag, useHostAnchor, useHoverTracking, useIconGlyph, useIconRegistry, useIconVariant, useImageTool, useKeyModifiers, useKeyState, useKeybindings, useLassoTool, useLatest, useLineTool, useMeasureTool, useMenuHost, useMenus, useNodeOverlayFrame, useOngoingAction, useOpenKeymap, useOptionalActiveToolContext, useOptionalDepRegistry, usePaintKind, usePaintKinds, usePenTool, usePencilTool, usePointerContext, usePointerPosition, usePointerStylus, usePolygonTool, usePoseDescriptorDepSource, usePoseRun, usePoseTransition, usePublishSelection, useRectTool, useResizePolicy, useRig, useRigNode, useScene, useSceneAdapter, useSceneTextEdit, useSelectTool, useSelection, useSelectionContext, useSimulation, useSliceDep, useSliceDepSource, useSliceTool, useSnapSource, useStandardActions, useStarTool, useStickyTool, useTextEdit, useTextTool, useTools, useTransformFollower, useVelocityTracker, useViewAnimation, useViewAnimationOn, useVisibleRaf, useYoke, vertexHalfWidths, vertexWidthFromSides, verticalAlignOffset, viewAxes, viewForAim, viewMarkerDragAction, viewPreset, viewToMat3, viewToTransform, viewZoom, viewportDragPanAction, viewportWheelPanAction, viewportWorldRect, viewportZoomAction, vignette, visualBoundsViaDescriptor, warmFonts, warmPaintKinds, warmRender, watchDevicePixelRatio, wcagLevels, wheelPan, wheelZoom, wheelZoomFactor, when, widestHalfWidth, withAlpha01, withCoord, withCorner, withGradientKind, withInheritedPaint, withInheritedPaints, withPath, withPathEffectsRegistry, withinPxBox, withinPxRadius, withoutCorners, withoutGeometryBoundData, withoutShapeGenerator, withoutTools, workspaceTintLayer, worldEditToStorage, worldPoseLookup, worldToScreen, writtenBy, zoomAt, zoomAtLeast };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { scenePoseFrame } from "../poseFrame.js";
|
|
2
2
|
import { poseDescriptorOf } from "../poseDescriptorDep.js";
|
|
3
|
+
import { transformFinisher } from "../transformFinish.js";
|
|
3
4
|
import { translateEach } from "../selectionSubtree.js";
|
|
4
5
|
import { drawnBoxes } from "../drawnBoxes.js";
|
|
5
6
|
import { actionReferenceSources } from "../spatialReference.js";
|
|
@@ -40,7 +41,7 @@ var ICON_FOR = {
|
|
|
40
41
|
* and translated in world and each result is stored back in its own parent's
|
|
41
42
|
* frame.
|
|
42
43
|
*/
|
|
43
|
-
function alignSelection(selection, scene, edge, geom, params, pointer, boxesOver) {
|
|
44
|
+
function alignSelection(selection, scene, edge, geom, params, pointer, boxesOver, finish) {
|
|
44
45
|
const ids = selection.get();
|
|
45
46
|
const frame = scenePoseFrame(scene);
|
|
46
47
|
const boxes = boxesOver(frame);
|
|
@@ -51,7 +52,7 @@ function alignSelection(selection, scene, edge, geom, params, pointer, boxesOver
|
|
|
51
52
|
id,
|
|
52
53
|
...alignDeltaFor(bounds[i], target, edge)
|
|
53
54
|
}));
|
|
54
|
-
scene.batch("Align", () => translateEach(scene, frame, geom, moves));
|
|
55
|
+
scene.batch("Align", () => translateEach(scene, frame, geom, moves, finish, "Align"));
|
|
55
56
|
}
|
|
56
57
|
function makeAlignAction(edge) {
|
|
57
58
|
return {
|
|
@@ -66,7 +67,8 @@ function makeAlignAction(edge) {
|
|
|
66
67
|
"poseDescriptor",
|
|
67
68
|
"pointer",
|
|
68
69
|
"view",
|
|
69
|
-
"boundsIncludeStroke"
|
|
70
|
+
"boundsIncludeStroke",
|
|
71
|
+
"transformFollowers"
|
|
70
72
|
],
|
|
71
73
|
invoker: {
|
|
72
74
|
timing: "immediate",
|
|
@@ -74,7 +76,7 @@ function makeAlignAction(edge) {
|
|
|
74
76
|
const selection = deps.selection;
|
|
75
77
|
const scene = deps.scene;
|
|
76
78
|
if (!selection || !scene) return;
|
|
77
|
-
alignSelection(selection, scene, edge, poseDescriptorOf(deps.poseDescriptor), params, deps.pointer, (frame) => drawnBoxes(deps, frame));
|
|
79
|
+
alignSelection(selection, scene, edge, poseDescriptorOf(deps.poseDescriptor), params, deps.pointer, (frame) => drawnBoxes(deps, frame), transformFinisher(deps));
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
enabled: (deps) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","names":[],"sources":["../../../../src/interactions/actions/align/action.tsx"],"sourcesContent":["import type { IconRef } from '@weasel-js/icons';\nimport type { Scene } from 'core/scene/types';\nimport type { PoseDescriptor } from '../resize/geometry';\nimport { poseDescriptorOf } from '../poseDescriptorDep';\nimport {\n alignDeltaFor,\n alignTargetBounds,\n type AlignEdge,\n type AlignReference,\n} from './align';\nimport { actionReferenceSources } from '../spatialReference';\nimport type { PointerContextValue } from '@weasel-js/routing/react';\nimport { scenePoseFrame, type PoseFrame } from '../poseFrame';\nimport { drawnBoxes, type DrawnBoxes } from '../drawnBoxes';\nimport { translateEach } from '../selectionSubtree';\nimport type { Action } from '@weasel-js/routing';\nimport { ActionDisabledReason } from '@weasel-js/routing';\nimport type { SelectionApi } from 'core/selection/useSelection';\nimport type { ImmediateInvoker } from '@weasel-js/routing';\nimport { icon } from '../../../icons.gen';\nconst ID_FOR: Record<AlignEdge, string> = {\n 'left': 'align.left',\n 'right': 'align.right',\n 'top': 'align.top',\n 'bottom': 'align.bottom',\n 'center-x': 'align.centerX',\n 'center-y': 'align.centerY',\n};\nconst LABEL_FOR: Record<AlignEdge, string> = {\n 'left': 'Align Left',\n 'right': 'Align Right',\n 'top': 'Align Top',\n 'bottom': 'Align Bottom',\n 'center-x': 'Align Centers Horizontally',\n 'center-y': 'Align Centers Vertically',\n};\nconst ICON_FOR: Record<AlignEdge, IconRef> = {\n 'left': icon('alignLeft'),\n 'right': icon('alignRight'),\n 'top': icon('alignTop'),\n 'bottom': icon('alignBottom'),\n 'center-x': icon('alignCenterX'),\n 'center-y': icon('alignCenterY'),\n};\n\n// ---------------------------------------------------------------------------\n// Shared helper for descriptor invokers\n// ---------------------------------------------------------------------------\n\n/**\n * Apply an align operation to the current selection via the Scene API.\n * Reads poses through the `poseDescriptor` dep; what the selection aligns to\n * comes from `params.to` (an `AlignReference`, default `'union'`).\n *\n * The edge every member lines up on is a world edge, so the bounds are read\n * and translated in world and each result is stored back in its own parent's\n * frame.\n */\nfunction alignSelection(\n selection: SelectionApi,\n scene: Scene<unknown, string, unknown>,\n edge: AlignEdge,\n geom: PoseDescriptor<unknown>,\n params: Record<string, unknown> | undefined,\n pointer: PointerContextValue | undefined,\n boxesOver: (frame: PoseFrame<unknown>) => DrawnBoxes,\n): void {\n const ids = selection.get();\n const frame = scenePoseFrame(scene);\n const boxes = boxesOver(frame);\n const poses = ids.map((id) => frame.world(id));\n const bounds = poses.map((p, i) => boxes.aabb(ids[i]!, p));\n const target = alignTargetBounds(\n bounds,\n params?.to as AlignReference | undefined,\n actionReferenceSources(params, pointer, scene, frame, boxes),\n );\n if (target === null) return;\n const moves = ids.map((id, i) => ({ id, ...alignDeltaFor(bounds[i], target, edge) }));\n scene.batch('Align', () => translateEach(scene, frame, geom, moves));\n}\n\n// ---------------------------------------------------------------------------\n// Static descriptors\n// ---------------------------------------------------------------------------\n\nfunction makeAlignAction(edge: AlignEdge): Action {\n return {\n id: ID_FOR[edge],\n label: LABEL_FOR[edge],\n icon: ICON_FOR[edge],\n group: 'align',\n eligible: { capability: 'transforms-selection' },\n requires: ['selection', 'scene', 'poseDescriptor', 'pointer', 'view', 'boundsIncludeStroke'],\n // No default keybindings — six edges/centers don't fit a clean default\n // chord set. Wire bindings explicitly via the actions registry override map.\n invoker: {\n timing: 'immediate',\n run: (deps, params) => {\n const selection = deps.selection;\n const scene = deps.scene;\n if (!selection || !scene) return;\n alignSelection(\n selection, scene, edge, poseDescriptorOf(deps.poseDescriptor),\n params, deps.pointer, (frame) => drawnBoxes(deps, frame),\n );\n },\n } satisfies ImmediateInvoker,\n // One item is enough: `enabled` cannot see the binding's `to`, and every\n // reference but `'union'` aligns a single item. Deps-aware, since a\n // constant disabled reason greys the entry out forever (see\n // `requiresSelection`).\n enabled: (deps) => {\n const selection = deps?.selection;\n const count = selection?.get().length ?? 0;\n return count >= 1 ? true : ActionDisabledReason.SelectionRequired;\n },\n };\n}\n\n/** Static descriptor for align-left. */\nexport const alignLeftAction = makeAlignAction('left');\n/** Static descriptor for align-right. */\nexport const alignRightAction = makeAlignAction('right');\n/** Static descriptor for align-top. */\nexport const alignTopAction = makeAlignAction('top');\n/** Static descriptor for align-bottom. */\nexport const alignBottomAction = makeAlignAction('bottom');\n/** Static descriptor for align-center-x. */\nexport const alignCenterXAction = makeAlignAction('center-x');\n/** Static descriptor for align-center-y. */\nexport const alignCenterYAction = makeAlignAction('center-y');\n\n"],"mappings":";;;;;;;;;AAoBA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoC;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,C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CAAA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA;;AAE1D,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA;;AAE5D,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"action.js","names":[],"sources":["../../../../src/interactions/actions/align/action.tsx"],"sourcesContent":["import type { IconRef } from '@weasel-js/icons';\nimport type { Scene } from 'core/scene/types';\nimport type { PoseDescriptor } from '../resize/geometry';\nimport { poseDescriptorOf } from '../poseDescriptorDep';\nimport {\n alignDeltaFor,\n alignTargetBounds,\n type AlignEdge,\n type AlignReference,\n} from './align';\nimport { actionReferenceSources } from '../spatialReference';\nimport type { PointerContextValue } from '@weasel-js/routing/react';\nimport { scenePoseFrame, type PoseFrame } from '../poseFrame';\nimport { drawnBoxes, type DrawnBoxes } from '../drawnBoxes';\nimport { translateEach } from '../selectionSubtree';\nimport { transformFinisher, type TransformFinisher } from '../transformFinish';\nimport type { Action } from '@weasel-js/routing';\nimport { ActionDisabledReason } from '@weasel-js/routing';\nimport type { SelectionApi } from 'core/selection/useSelection';\nimport type { ImmediateInvoker } from '@weasel-js/routing';\nimport { icon } from '../../../icons.gen';\nconst ID_FOR: Record<AlignEdge, string> = {\n 'left': 'align.left',\n 'right': 'align.right',\n 'top': 'align.top',\n 'bottom': 'align.bottom',\n 'center-x': 'align.centerX',\n 'center-y': 'align.centerY',\n};\nconst LABEL_FOR: Record<AlignEdge, string> = {\n 'left': 'Align Left',\n 'right': 'Align Right',\n 'top': 'Align Top',\n 'bottom': 'Align Bottom',\n 'center-x': 'Align Centers Horizontally',\n 'center-y': 'Align Centers Vertically',\n};\nconst ICON_FOR: Record<AlignEdge, IconRef> = {\n 'left': icon('alignLeft'),\n 'right': icon('alignRight'),\n 'top': icon('alignTop'),\n 'bottom': icon('alignBottom'),\n 'center-x': icon('alignCenterX'),\n 'center-y': icon('alignCenterY'),\n};\n\n// ---------------------------------------------------------------------------\n// Shared helper for descriptor invokers\n// ---------------------------------------------------------------------------\n\n/**\n * Apply an align operation to the current selection via the Scene API.\n * Reads poses through the `poseDescriptor` dep; what the selection aligns to\n * comes from `params.to` (an `AlignReference`, default `'union'`).\n *\n * The edge every member lines up on is a world edge, so the bounds are read\n * and translated in world and each result is stored back in its own parent's\n * frame.\n */\nfunction alignSelection(\n selection: SelectionApi,\n scene: Scene<unknown, string, unknown>,\n edge: AlignEdge,\n geom: PoseDescriptor<unknown>,\n params: Record<string, unknown> | undefined,\n pointer: PointerContextValue | undefined,\n boxesOver: (frame: PoseFrame<unknown>) => DrawnBoxes,\n finish?: TransformFinisher,\n): void {\n const ids = selection.get();\n const frame = scenePoseFrame(scene);\n const boxes = boxesOver(frame);\n const poses = ids.map((id) => frame.world(id));\n const bounds = poses.map((p, i) => boxes.aabb(ids[i]!, p));\n const target = alignTargetBounds(\n bounds,\n params?.to as AlignReference | undefined,\n actionReferenceSources(params, pointer, scene, frame, boxes),\n );\n if (target === null) return;\n const moves = ids.map((id, i) => ({ id, ...alignDeltaFor(bounds[i], target, edge) }));\n scene.batch('Align', () => translateEach(scene, frame, geom, moves, finish, 'Align'));\n}\n\n// ---------------------------------------------------------------------------\n// Static descriptors\n// ---------------------------------------------------------------------------\n\nfunction makeAlignAction(edge: AlignEdge): Action {\n return {\n id: ID_FOR[edge],\n label: LABEL_FOR[edge],\n icon: ICON_FOR[edge],\n group: 'align',\n eligible: { capability: 'transforms-selection' },\n requires: ['selection', 'scene', 'poseDescriptor', 'pointer', 'view', 'boundsIncludeStroke', 'transformFollowers'],\n // No default keybindings — six edges/centers don't fit a clean default\n // chord set. Wire bindings explicitly via the actions registry override map.\n invoker: {\n timing: 'immediate',\n run: (deps, params) => {\n const selection = deps.selection;\n const scene = deps.scene;\n if (!selection || !scene) return;\n alignSelection(\n selection, scene, edge, poseDescriptorOf(deps.poseDescriptor),\n params, deps.pointer, (frame) => drawnBoxes(deps, frame), transformFinisher(deps),\n );\n },\n } satisfies ImmediateInvoker,\n // One item is enough: `enabled` cannot see the binding's `to`, and every\n // reference but `'union'` aligns a single item. Deps-aware, since a\n // constant disabled reason greys the entry out forever (see\n // `requiresSelection`).\n enabled: (deps) => {\n const selection = deps?.selection;\n const count = selection?.get().length ?? 0;\n return count >= 1 ? true : ActionDisabledReason.SelectionRequired;\n },\n };\n}\n\n/** Static descriptor for align-left. */\nexport const alignLeftAction = makeAlignAction('left');\n/** Static descriptor for align-right. */\nexport const alignRightAction = makeAlignAction('right');\n/** Static descriptor for align-top. */\nexport const alignTopAction = makeAlignAction('top');\n/** Static descriptor for align-bottom. */\nexport const alignBottomAction = makeAlignAction('bottom');\n/** Static descriptor for align-center-x. */\nexport const alignCenterXAction = makeAlignAction('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ourcesContent":["import { useCallback } from 'react';\nimport { useLatest } from '@weasel-js/react';\nimport { createTransformOp } from 'core/ops/transform';\nimport type { Op } from 'core/ops/types';\nimport { dispatchApplyBatch } from 'core/applyOps';\nimport type { NodeId } from 'core/scene/types';\nimport { RECT_POSE_DESCRIPTOR, type PoseDescriptor } from '../resize/geometry';\nimport type { Bounds } from 'core/viewport/fitViewToBounds';\nimport { unionAABB } from 'core/geometry/unionBounds';\nimport { poseFrame } from '../poseFrame';\nimport { IDENTITY_POSE_COMPOSITION, type PoseComposition } from 'core/scene/composePose';\nimport { usePointerContext } from '@weasel-js/routing/react';\nimport type { Scale2 } from '@weasel-js/geom';\nimport { drawnAABBOf, type DrawnBoundsOptions, type DrawnBoundsScene } from 'canvas/drawnBounds';\nimport { resolveSpatialReference, type SpatialReference, type SpatialReferenceSources } from '../spatialReference';\n\nexport { visualBoundsViaDescriptor, translatePoseViaDescriptor } from '../resize/geometry';\nimport { visualBoundsViaDescriptor, translatePoseViaDescriptor } from '../resize/geometry';\n\n/** Edge or center the selection should align to within the reference's\n * bounds (rotated members contribute their ink extent). */\nexport type AlignEdge = 'left' | 'right' | 'top' | 'bottom' | 'center-x' | 'center-y';\n\n/** What the selection aligns to: `'union'` — the selection's\n * own visual union AABB, the default — or a {@link SpatialReference}. */\nexport type AlignReference = 'union' | SpatialReference;\n\n/** The bounds each member of `bounds` aligns to under `to`, or\n * `null` when there is nothing to align: a union of fewer than two members,\n * an empty selection, or a reference that names nothing right now. */\nexport function alignTargetBounds(\n bounds: readonly Bounds[],\n to: AlignReference | undefined,\n src: SpatialReferenceSources,\n): Bounds | null {\n if (to === undefined || to === 'union') return bounds.length < 2 ? null : unionAABB([...bounds]);\n if (bounds.length === 0) return null;\n return resolveSpatialReference(to, src);\n}\n\n/** Adapter for `useAlign`. */\nexport interface AlignAdapter<TPose> {\n getSelection(): NodeId[];\n /** The pose as stored — local to the node's parent. */\n getPose(id: NodeId): TPose;\n /** The node's container, `null` for a root: the chain a pose is composed\n * through when container poses define a frame. */\n getParent(id: NodeId): NodeId | null;\n applyOps?(ops: Op[], label?: string): void;\n}\n\n/** Options for `useAlign`. */\nexport interface UseAlignOptions<TPose> {\n /** Projection between `TPose` and bounds. Defaults to `RECT_POSE_DESCRIPTOR`\n * for `{x,y,width,height}` poses. Pass `pathPoseDescriptor` for `Path`\n * poses so polygon coords translate correctly. */\n geometry?: PoseDescriptor<TPose>;\n /** Label passed to applyOps. Default 'Align'. */\n label?: string;\n /** How local poses fold up to world. Default IDENTITY, where the two are\n * the same value and the alignment runs entirely in stored coordinates. */\n composition?: PoseComposition<TPose>;\n /** The nodes behind the adapter's ids. With it, a stroked node aligns by\n * the box it is drawn with (`drawnBoundsOf`); without, by its pose box. */\n scene?: DrawnBoundsScene;\n /** View scale a screen-pixel stroke is resolved at. Default 1. */\n viewScale?: () => number | Scale2;\n}\n\n/** Return shape of `useAlign`. */\nexport interface UseAlignReturn {\n /** Imperative trigger. `to` defaults to `'union'`, which needs two items;\n * any other reference aligns a single item too. `'pointer'` reads the\n * surrounding `<PointerContextProvider>`. */\n align(edge: AlignEdge, to?: AlignReference): void;\n}\n\n/** Compute the (dx, dy) translation that moves AABB `b` so that the requested\n * `edge`/center matches the corresponding feature of the union AABB `u`. */\nexport function alignDeltaFor(b: Bounds, u: Bounds, edge: AlignEdge): { dx: number; dy: number } {\n switch (edge) {\n case 'left': return { dx: u.x - b.x, dy: 0 };\n case 'right': return { dx: (u.x + u.width) - (b.x + b.width), dy: 0 };\n case 'top': return { dx: 0, dy: u.y - b.y };\n case 'bottom': return { dx: 0, dy: (u.y + u.height) - (b.y + b.height) };\n case 'center-x': return { dx: (u.x + u.width / 2) - (b.x + b.width / 2), dy: 0 };\n case 'center-y': return { dx: 0, dy: (u.y + u.height / 2) - (b.y + b.height / 2) };\n }\n}\n\n/** The axis-aligned box `useAlign` measures an id at a world pose by. */\nfunction alignBoxReader<TPose>(\n o: UseAlignOptions<TPose>,\n geom: PoseDescriptor<TPose>,\n worldPoseOf: (id: NodeId) => TPose,\n): (id: string, pose: TPose) => Bounds {\n const scene = o.scene;\n if (!scene) return (_id, pose) => visualBoundsViaDescriptor(pose, geom);\n const scale = o.viewScale?.();\n const opts: DrawnBoundsOptions = {\n descriptor: geom as PoseDescriptor<unknown>,\n worldPoseOf: (id) => worldPoseOf(id),\n ...(scale !== undefined ? { scale } : {}),\n };\n return (id, pose) => drawnAABBOf(scene, id as NodeId, pose, opts);\n}\n\n/** Align the current selection to a shared edge or center of the selection's\n * union AABB, or of another reference. Single batch — one undo step.\n *\n * The edge is a world edge: bounds are measured and translated in world, and\n * each result is stored back in its own parent's frame. */\nexport function useAlign<TPose>(\n adapter: AlignAdapter<TPose>,\n options: UseAlignOptions<TPose> = {},\n): UseAlignReturn {\n const adapterRef = useLatest(adapter);\n const optsRef = useLatest(options);\n const pointer = usePointerContext();\n const pointerRef = useLatest(pointer);\n\n const align = useCallback((edge: AlignEdge, to?: AlignReference): void => {\n const a = adapterRef.current;\n const o = optsRef.current;\n const sel = a.getSelection();\n const geom =\n o.geometry ??\n (RECT_POSE_DESCRIPTOR as unknown as PoseDescriptor<TPose>);\n const frame = poseFrame<TPose>(\n {\n getPose: (id) => a.getPose(id as NodeId),\n getParent: (id) => a.getParent(id as NodeId) as string | null,\n },\n o.composition ?? (IDENTITY_POSE_COMPOSITION as PoseComposition<TPose>),\n );\n const boxOf = alignBoxReader(o, geom, frame.world);\n const poses = sel.map((id) => frame.world(id));\n const bounds = poses.map((p, i) => boxOf(sel[i]!, p));\n const target = alignTargetBounds(bounds, to, {\n pointer: () => {\n const p = pointerRef.current?.get();\n return p ? { x: p.worldX, y: p.worldY } : null;\n },\n nodeBounds: (id) => boxOf(id, frame.world(id)),\n });\n if (target === null) return;\n const ops: Op[] = [];\n for (let i = 0; i < sel.length; i++) {\n const { dx, dy } = alignDeltaFor(bounds[i], target, edge);\n if (dx === 0 && dy === 0) continue;\n const to = translatePoseViaDescriptor(poses[i], dx, dy, geom);\n ops.push(createTransformOp<TPose>({\n id: sel[i],\n from: a.getPose(sel[i]),\n to: frame.local(sel[i], to),\n }));\n }\n if (ops.length === 0) return;\n dispatchApplyBatch(a, ops, o.label ?? 'Align');\n }, [adapterRef, optsRef, pointerRef]);\n\n return { align };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA8BA,SAAgB,kBACd,QACA,IACA,KACe;CACf,IAAI,OAAO,UAAa,OAAO,SAAS,OAAO,OAAO,SAAS,IAAI,OAAO,UAAU,CAAC,GAAG,MAAM,CAAC;CAC/F,IAAI,OAAO,WAAW,GAAG,OAAO;CAChC,OAAO,wBAAwB,IAAI,GAAG;AACxC;;;
|
|
1
|
+
{"version":3,"file":"align.js","names":[],"sources":["../../../../src/interactions/actions/align/align.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { useLatest } from '@weasel-js/react';\nimport { createTransformOp } from 'core/ops/transform';\nimport type { Op } from 'core/ops/types';\nimport { dispatchApplyBatch } from 'core/applyOps';\nimport type { NodeId } from 'core/scene/types';\nimport { RECT_POSE_DESCRIPTOR, type PoseDescriptor } from '../resize/geometry';\nimport type { Bounds } from 'core/viewport/fitViewToBounds';\nimport { unionAABB } from 'core/geometry/unionBounds';\nimport { poseFrame } from '../poseFrame';\nimport { IDENTITY_POSE_COMPOSITION, type PoseComposition } from 'core/scene/composePose';\nimport { usePointerContext } from '@weasel-js/routing/react';\nimport type { Scale2 } from '@weasel-js/geom';\nimport { drawnAABBOf, type DrawnBoundsOptions, type DrawnBoundsScene } from 'canvas/drawnBounds';\nimport { resolveSpatialReference, type SpatialReference, type SpatialReferenceSources } from '../spatialReference';\n\nexport { visualBoundsViaDescriptor, translatePoseViaDescriptor } from '../resize/geometry';\nimport { visualBoundsViaDescriptor, translatePoseViaDescriptor } from '../resize/geometry';\n\n/** Edge or center the selection should align to within the reference's\n * bounds (rotated members contribute their ink extent). */\nexport type AlignEdge = 'left' | 'right' | 'top' | 'bottom' | 'center-x' | 'center-y';\n\n/** What the selection aligns to: `'union'` — the selection's\n * own visual union AABB, the default — or a {@link SpatialReference}. */\nexport type AlignReference = 'union' | SpatialReference;\n\n/** The bounds each member of `bounds` aligns to under `to`, or\n * `null` when there is nothing to align: a union of fewer than two members,\n * an empty selection, or a reference that names nothing right now. */\nexport function alignTargetBounds(\n bounds: readonly Bounds[],\n to: AlignReference | undefined,\n src: SpatialReferenceSources,\n): Bounds | null {\n if (to === undefined || to === 'union') return bounds.length < 2 ? null : unionAABB([...bounds]);\n if (bounds.length === 0) return null;\n return resolveSpatialReference(to, src);\n}\n\n/** Adapter for `useAlign`. */\nexport interface AlignAdapter<TPose> {\n getSelection(): NodeId[];\n /** The pose as stored — local to the node's parent. */\n getPose(id: NodeId): TPose;\n /** The node's container, `null` for a root: the chain a pose is composed\n * through when container poses define a frame. */\n getParent(id: NodeId): NodeId | null;\n applyOps?(ops: Op[], label?: string): void;\n}\n\n/** Options for `useAlign`. */\nexport interface UseAlignOptions<TPose> {\n /** Projection between `TPose` and bounds. Defaults to `RECT_POSE_DESCRIPTOR`\n * for `{x,y,width,height}` poses. Pass `pathPoseDescriptor` for `Path`\n * poses so polygon coords translate correctly. */\n geometry?: PoseDescriptor<TPose>;\n /** Label passed to applyOps. Default 'Align'. */\n label?: string;\n /** How local poses fold up to world. Default IDENTITY, where the two are\n * the same value and the alignment runs entirely in stored coordinates. */\n composition?: PoseComposition<TPose>;\n /** The nodes behind the adapter's ids. With it, a stroked node aligns by\n * the box it is drawn with (`drawnBoundsOf`); without, by its pose box.\n * Pass a `Scene` through `drawnBoundsScene` so a path-derived node is\n * boxed by its path. */\n scene?: DrawnBoundsScene;\n /** View scale a screen-pixel stroke is resolved at. Default 1. */\n viewScale?: () => number | Scale2;\n}\n\n/** Return shape of `useAlign`. */\nexport interface UseAlignReturn {\n /** Imperative trigger. `to` defaults to `'union'`, which needs two items;\n * any other reference aligns a single item too. `'pointer'` reads the\n * surrounding `<PointerContextProvider>`. */\n align(edge: AlignEdge, to?: AlignReference): void;\n}\n\n/** Compute the (dx, dy) translation that moves AABB `b` so that the requested\n * `edge`/center matches the corresponding feature of the union AABB `u`. */\nexport function alignDeltaFor(b: Bounds, u: Bounds, edge: AlignEdge): { dx: number; dy: number } {\n switch (edge) {\n case 'left': return { dx: u.x - b.x, dy: 0 };\n case 'right': return { dx: (u.x + u.width) - (b.x + b.width), dy: 0 };\n case 'top': return { dx: 0, dy: u.y - b.y };\n case 'bottom': return { dx: 0, dy: (u.y + u.height) - (b.y + b.height) };\n case 'center-x': return { dx: (u.x + u.width / 2) - (b.x + b.width / 2), dy: 0 };\n case 'center-y': return { dx: 0, dy: (u.y + u.height / 2) - (b.y + b.height / 2) };\n }\n}\n\n/** The axis-aligned box `useAlign` measures an id at a world pose by. */\nfunction alignBoxReader<TPose>(\n o: UseAlignOptions<TPose>,\n geom: PoseDescriptor<TPose>,\n worldPoseOf: (id: NodeId) => TPose,\n): (id: string, pose: TPose) => Bounds {\n const scene = o.scene;\n if (!scene) return (_id, pose) => visualBoundsViaDescriptor(pose, geom);\n const scale = o.viewScale?.();\n const opts: DrawnBoundsOptions = {\n descriptor: geom as PoseDescriptor<unknown>,\n worldPoseOf: (id) => worldPoseOf(id),\n ...(scale !== undefined ? { scale } : {}),\n };\n return (id, pose) => drawnAABBOf(scene, id as NodeId, pose, opts);\n}\n\n/** Align the current selection to a shared edge or center of the selection's\n * union AABB, or of another reference. Single batch — one undo step.\n *\n * The edge is a world edge: bounds are measured and translated in world, and\n * each result is stored back in its own parent's frame. */\nexport function useAlign<TPose>(\n adapter: AlignAdapter<TPose>,\n options: UseAlignOptions<TPose> = {},\n): UseAlignReturn {\n const adapterRef = useLatest(adapter);\n const optsRef = useLatest(options);\n const pointer = usePointerContext();\n const pointerRef = useLatest(pointer);\n\n const align = useCallback((edge: AlignEdge, to?: AlignReference): void => {\n const a = adapterRef.current;\n const o = optsRef.current;\n const sel = a.getSelection();\n const geom =\n o.geometry ??\n (RECT_POSE_DESCRIPTOR as unknown as PoseDescriptor<TPose>);\n const frame = poseFrame<TPose>(\n {\n getPose: (id) => a.getPose(id as NodeId),\n getParent: (id) => a.getParent(id as NodeId) as string | null,\n },\n o.composition ?? (IDENTITY_POSE_COMPOSITION as PoseComposition<TPose>),\n );\n const boxOf = alignBoxReader(o, geom, frame.world);\n const poses = sel.map((id) => frame.world(id));\n const bounds = poses.map((p, i) => boxOf(sel[i]!, p));\n const target = alignTargetBounds(bounds, to, {\n pointer: () => {\n const p = pointerRef.current?.get();\n return p ? { x: p.worldX, y: p.worldY } : null;\n },\n nodeBounds: (id) => boxOf(id, frame.world(id)),\n });\n if (target === null) return;\n const ops: Op[] = [];\n for (let i = 0; i < sel.length; i++) {\n const { dx, dy } = alignDeltaFor(bounds[i], target, edge);\n if (dx === 0 && dy === 0) continue;\n const to = translatePoseViaDescriptor(poses[i], dx, dy, geom);\n ops.push(createTransformOp<TPose>({\n id: sel[i],\n from: a.getPose(sel[i]),\n to: frame.local(sel[i], to),\n }));\n }\n if (ops.length === 0) return;\n dispatchApplyBatch(a, ops, o.label ?? 'Align');\n }, [adapterRef, optsRef, pointerRef]);\n\n return { align };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA8BA,SAAgB,kBACd,QACA,IACA,KACe;CACf,IAAI,OAAO,UAAa,OAAO,SAAS,OAAO,OAAO,SAAS,IAAI,OAAO,UAAU,CAAC,GAAG,MAAM,CAAC;CAC/F,IAAI,OAAO,WAAW,GAAG,OAAO;CAChC,OAAO,wBAAwB,IAAI,GAAG;AACxC;;;AA2CA,SAAgB,cAAc,GAAW,GAAW,MAA6C;CAC/F,QAAQ,MAAR;EACE,KAAK,QAAY,OAAO;GAAE,IAAI,EAAE,IAAI,EAAE;GAAG,IAAI;EAAE;EAC/C,KAAK,SAAY,OAAO;GAAE,IAAK,EAAE,IAAI,EAAE,SAAU,EAAE,IAAI,EAAE;GAAQ,IAAI;EAAE;EACvE,KAAK,OAAY,OAAO;GAAE,IAAI;GAAG,IAAI,EAAE,IAAI,EAAE;EAAE;EAC/C,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S,MAAM,KAAK,GAAG,MAAM,MAAM,IAAI,IAAK,CAAC,CAAC;EACpD,MAAM,SAAS,kBAAkB,QAAQ,IAAI;GAC3C,eAAe;IACb,MAAM,IAAI,WAAW,SAAS,IAAI;IAClC,OAAO,IAAI;KAAE,GAAG,EAAE;KAAQ,GAAG,EAAE;IAAO,IAAI;GAC5C;GACA,aAAa,OAAO,MAAM,IAAI,MAAM,MAAM,EAAE,CAAC;EAC/C,CAAC;EACD,IAAI,WAAW,MAAM;EACrB,MAAM,MAAY,CAAC;EACnB,KAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;GACnC,MAAM,EAAE,IAAI,OAAO,cAAc,OAAO,IAAI,QAAQ,IAAI;GACxD,IAAI,OAAO,KAAK,OAAO,GAAG;GAC1B,MAAM,KAAK,2BAA2B,MAAM,IAAI,IAAI,IAAI,IAAI;GAC5D,IAAI,KAAK,kBAAyB;IAChC,IAAI,IAAI;IACR,MAAM,EAAE,QAAQ,IAAI,EAAE;IACtB,IAAI,MAAM,MAAM,IAAI,IAAI,EAAE;GAC5B,CAAC,CAAC;EACJ;EACA,IAAI,IAAI,WAAW,GAAG;EACtB,mBAAmB,GAAG,KAAK,EAAE,SAAS,OAAO;CAC/C,GAAG;EAAC;EAAY;EAAS;CAAU,CAE1B,EAAM;AACjB"}
|
|
@@ -70,7 +70,13 @@ function makePathfinderAction(op) {
|
|
|
70
70
|
if (!adapter || !paths) return;
|
|
71
71
|
const result = previewBooleanOp(adapter, op, opOptions(deps));
|
|
72
72
|
if (result.kind !== "pieces") return;
|
|
73
|
-
return paths.show(result.pieces.map((piece) =>
|
|
73
|
+
return paths.show(result.pieces.map((piece) => {
|
|
74
|
+
const paint = piece.paint ?? adapter.getPaint?.(piece.sourceId);
|
|
75
|
+
return paint ? {
|
|
76
|
+
path: piece.path,
|
|
77
|
+
paint
|
|
78
|
+
} : { path: piece.path };
|
|
79
|
+
}));
|
|
74
80
|
},
|
|
75
81
|
enabled: (deps) => {
|
|
76
82
|
return ((deps?.selection)?.get().length ?? 0) >= 2 ? true : ActionDisabledReason.SelectionRequired;
|