@weasel-js/core 1.9.4 → 1.10.1
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 +918 -0
- package/README.md +38 -3
- package/dist/WeaselProvider.js +5 -7
- package/dist/WeaselProvider.js.map +1 -1
- package/dist/affordances/composeAffordanceLayer.js +92 -84
- package/dist/affordances/composeAffordanceLayer.js.map +1 -1
- package/dist/affordances/cornerResize.js +3 -2
- package/dist/affordances/cornerResize.js.map +1 -1
- package/dist/affordances/hitAffordanceRegions.js +71 -101
- package/dist/affordances/hitAffordanceRegions.js.map +1 -1
- package/dist/affordances/pathAnchors.js +50 -28
- package/dist/affordances/pathAnchors.js.map +1 -1
- package/dist/affordances/rotateCursor.js +12 -0
- package/dist/affordances/rotateCursor.js.map +1 -0
- package/dist/affordances/rotationHandle.js +44 -46
- package/dist/affordances/rotationHandle.js.map +1 -1
- package/dist/animation/behaviors/coast.js +21 -0
- package/dist/animation/behaviors/coast.js.map +1 -0
- package/dist/animation/behaviors/coastByWrite.js +107 -0
- package/dist/animation/behaviors/coastByWrite.js.map +1 -0
- package/dist/animation/behaviors/coastOnTargets.js +94 -0
- package/dist/animation/behaviors/coastOnTargets.js.map +1 -0
- package/dist/animation/behaviors/momentum.js +48 -136
- package/dist/animation/behaviors/momentum.js.map +1 -1
- package/dist/animation/clipTargets.js +12 -0
- package/dist/animation/clipTargets.js.map +1 -0
- package/dist/animation/index.js +15 -20
- package/dist/animation/poseHelpers.js +112 -33
- package/dist/animation/poseHelpers.js.map +1 -1
- package/dist/animation/poseTarget.js +115 -0
- package/dist/animation/poseTarget.js.map +1 -0
- package/dist/animation/reflow.js +113 -83
- package/dist/animation/reflow.js.map +1 -1
- package/dist/animation/rewind.js +66 -0
- package/dist/animation/rewind.js.map +1 -0
- package/dist/animation/rig/bindRig.js +85 -53
- package/dist/animation/rig/bindRig.js.map +1 -1
- package/dist/animation/rig/rigNode.js +99 -0
- package/dist/animation/rig/rigNode.js.map +1 -0
- package/dist/animation/rig/rigSeat.js +59 -0
- package/dist/animation/rig/rigSeat.js.map +1 -0
- package/dist/animation/rig/skinBinding.js +64 -0
- package/dist/animation/rig/skinBinding.js.map +1 -0
- package/dist/animation/rig/useRig.js +31 -16
- package/dist/animation/rig/useRig.js.map +1 -1
- package/dist/animation/wrappers/animateLifecycle.js +8 -7
- package/dist/animation/wrappers/animateLifecycle.js.map +1 -1
- package/dist/animation/wrappers/animateOnSetPose.js +31 -31
- package/dist/animation/wrappers/animateOnSetPose.js.map +1 -1
- package/dist/animation/wrappers/instantPose.js.map +1 -1
- package/dist/animation/writtenPoseTarget.js +33 -0
- package/dist/animation/writtenPoseTarget.js.map +1 -0
- package/dist/autoPoseDescriptor-DHg5KqaJ.d.ts +27 -0
- package/dist/barrel/canvas.js +32 -0
- package/dist/barrel/chrome.js +10 -10
- package/dist/barrel/input.js +16 -17
- package/dist/barrel/interactions.js +34 -37
- package/dist/barrel/paint.js +11 -18
- package/dist/barrel/paths.js +13 -19
- package/dist/barrel/renderer.js +14 -20
- package/dist/barrel/routing.js +54 -47
- package/dist/barrel/scene.js +37 -0
- package/dist/barrel/text.js +9 -18
- package/dist/barrel/viewport.js +44 -51
- package/dist/canvas/Canvas.js +270 -475
- package/dist/canvas/Canvas.js.map +1 -1
- package/dist/canvas/CanvasView.js +168 -190
- package/dist/canvas/CanvasView.js.map +1 -1
- package/dist/canvas/CursorCoordsHud.js +24 -25
- package/dist/canvas/CursorCoordsHud.js.map +1 -1
- package/dist/canvas/DrawCanvas.js +39 -56
- package/dist/canvas/DrawCanvas.js.map +1 -1
- package/dist/canvas/ModalityHud.js.map +1 -1
- package/dist/canvas/NodeShape.js +28 -29
- package/dist/canvas/NodeShape.js.map +1 -1
- package/dist/canvas/PickHud.js.map +1 -1
- package/dist/canvas/SceneCanvas/DevHuds.js +40 -0
- package/dist/canvas/SceneCanvas/DevHuds.js.map +1 -0
- package/dist/canvas/SceneCanvas/GestureDispatcherMounter.js +66 -107
- package/dist/canvas/SceneCanvas/GestureDispatcherMounter.js.map +1 -1
- package/dist/canvas/SceneCanvas/PointerProviderIfRoot.js +33 -36
- package/dist/canvas/SceneCanvas/PointerProviderIfRoot.js.map +1 -1
- package/dist/canvas/SceneCanvas/StandardActionsRegistrar.js +38 -50
- package/dist/canvas/SceneCanvas/StandardActionsRegistrar.js.map +1 -1
- package/dist/canvas/SceneCanvas/ToolKeybindingsMounter.js +3 -3
- package/dist/canvas/SceneCanvas/ToolKeybindingsMounter.js.map +1 -1
- package/dist/canvas/SceneCanvas/coordTrace.js +37 -1
- package/dist/canvas/SceneCanvas/coordTrace.js.map +1 -1
- package/dist/canvas/SceneCanvas/defaultNodeProperties.js +319 -270
- package/dist/canvas/SceneCanvas/defaultNodeProperties.js.map +1 -1
- package/dist/canvas/SceneCanvas/defaultNodeRouting.js +1 -1
- package/dist/canvas/SceneCanvas/defaultNodeRouting.js.map +1 -1
- package/dist/canvas/SceneCanvas/dispatcherGestureBounds.js.map +1 -1
- package/dist/canvas/SceneCanvas/features.js +71 -62
- package/dist/canvas/SceneCanvas/features.js.map +1 -1
- package/dist/canvas/SceneCanvas/insertPreviewCommands.js +97 -0
- package/dist/canvas/SceneCanvas/insertPreviewCommands.js.map +1 -0
- package/dist/canvas/SceneCanvas/isDev.js.map +1 -1
- package/dist/canvas/SceneCanvas/poseGeometry.js +33 -37
- package/dist/canvas/SceneCanvas/poseGeometry.js.map +1 -1
- package/dist/canvas/SceneCanvas/props.js +15 -14
- package/dist/canvas/SceneCanvas/props.js.map +1 -1
- package/dist/canvas/SceneCanvas/scenePointQuery.js +50 -0
- package/dist/canvas/SceneCanvas/scenePointQuery.js.map +1 -0
- package/dist/canvas/SceneCanvas/shapeGeneratorProperties.js +52 -0
- package/dist/canvas/SceneCanvas/shapeGeneratorProperties.js.map +1 -0
- package/dist/canvas/SceneCanvas/toolRegistry.js +23 -0
- package/dist/canvas/SceneCanvas/toolRegistry.js.map +1 -0
- package/dist/canvas/SceneCanvas/useActionTunings.js +17 -0
- package/dist/canvas/SceneCanvas/useActionTunings.js.map +1 -0
- package/dist/canvas/SceneCanvas/useActionsPropResolver.js +6 -1
- package/dist/canvas/SceneCanvas/useActionsPropResolver.js.map +1 -1
- package/dist/canvas/SceneCanvas/useBuiltinShapeTools.js.map +1 -1
- package/dist/canvas/SceneCanvas/useBuiltinTools.js +21 -0
- package/dist/canvas/SceneCanvas/useBuiltinTools.js.map +1 -0
- package/dist/canvas/SceneCanvas/useCanvasCamera.js +46 -0
- package/dist/canvas/SceneCanvas/useCanvasCamera.js.map +1 -0
- package/dist/canvas/SceneCanvas/useCanvasDispatcher.js +20 -0
- package/dist/canvas/SceneCanvas/useCanvasDispatcher.js.map +1 -0
- package/dist/canvas/SceneCanvas/useCanvasSelection.js +16 -0
- package/dist/canvas/SceneCanvas/useCanvasSelection.js.map +1 -0
- package/dist/canvas/SceneCanvas/useCanvasTools.js +67 -0
- package/dist/canvas/SceneCanvas/useCanvasTools.js.map +1 -0
- package/dist/canvas/SceneCanvas/useDispatcherOverlayLayer.js +49 -113
- package/dist/canvas/SceneCanvas/useDispatcherOverlayLayer.js.map +1 -1
- package/dist/canvas/SceneCanvas/useHeldModifiers.js +20 -0
- package/dist/canvas/SceneCanvas/useHeldModifiers.js.map +1 -0
- package/dist/canvas/SceneCanvas/useNodeAtPoint.js +26 -0
- package/dist/canvas/SceneCanvas/useNodeAtPoint.js.map +1 -0
- package/dist/canvas/SceneCanvas/useNodeKinds.js +26 -0
- package/dist/canvas/SceneCanvas/useNodeKinds.js.map +1 -0
- package/dist/canvas/SceneCanvas/usePreviewGhostLayer.js +51 -41
- package/dist/canvas/SceneCanvas/usePreviewGhostLayer.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneCanvasHandle.js +47 -0
- package/dist/canvas/SceneCanvas/useSceneCanvasHandle.js.map +1 -0
- package/dist/canvas/SceneCanvas/useSceneCanvasLayers.js +66 -0
- package/dist/canvas/SceneCanvas/useSceneCanvasLayers.js.map +1 -0
- package/dist/canvas/SceneCanvas/useSceneChrome.js +59 -0
- package/dist/canvas/SceneCanvas/useSceneChrome.js.map +1 -0
- package/dist/canvas/SceneCanvas/useSceneRedrawSources.js +23 -0
- package/dist/canvas/SceneCanvas/useSceneRedrawSources.js.map +1 -0
- package/dist/canvas/SceneCanvas/useSceneSelectTool.js +65 -101
- package/dist/canvas/SceneCanvas/useSceneSelectTool.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneSlotLayers.js +37 -0
- package/dist/canvas/SceneCanvas/useSceneSlotLayers.js.map +1 -0
- package/dist/canvas/SceneCanvas/useSelectionOverlayLayer.js +38 -0
- package/dist/canvas/SceneCanvas/useSelectionOverlayLayer.js.map +1 -0
- package/dist/canvas/SceneCanvas/useViewLayerGate.js +20 -0
- package/dist/canvas/SceneCanvas/useViewLayerGate.js.map +1 -0
- package/dist/canvas/SceneCanvas/useViewportActions.js +9 -1
- package/dist/canvas/SceneCanvas/useViewportActions.js.map +1 -1
- package/dist/canvas/SceneCanvas/worldPointAt.js +8 -0
- package/dist/canvas/SceneCanvas/worldPointAt.js.map +1 -0
- package/dist/canvas/SceneCanvas.js +301 -708
- package/dist/canvas/SceneCanvas.js.map +1 -1
- package/dist/canvas/SceneViewCanvas.js +41 -47
- package/dist/canvas/SceneViewCanvas.js.map +1 -1
- package/dist/canvas/SurfaceCanvas.js +40 -0
- package/dist/canvas/SurfaceCanvas.js.map +1 -0
- package/dist/canvas/adapterDerivedPath.js +26 -0
- package/dist/canvas/adapterDerivedPath.js.map +1 -0
- package/dist/canvas/adapterPickSource.js +34 -0
- package/dist/canvas/adapterPickSource.js.map +1 -0
- package/dist/canvas/affordanceAt.js +12 -2
- package/dist/canvas/affordanceAt.js.map +1 -1
- package/dist/canvas/buildSceneLayer.js +81 -61
- package/dist/canvas/buildSceneLayer.js.map +1 -1
- package/dist/canvas/buildSceneTree.js +56 -34
- package/dist/canvas/buildSceneTree.js.map +1 -1
- package/dist/canvas/canvasRenderer.js +40 -44
- package/dist/canvas/canvasRenderer.js.map +1 -1
- package/dist/canvas/colorOverrides.js.map +1 -1
- package/dist/canvas/copiesAbove.js +27 -0
- package/dist/canvas/copiesAbove.js.map +1 -0
- package/dist/canvas/defaultDrawOne.js +25 -24
- package/dist/canvas/defaultDrawOne.js.map +1 -1
- package/dist/canvas/deps/areaSelect.js +4 -4
- package/dist/canvas/deps/areaSelect.js.map +1 -1
- package/dist/canvas/deps/debug.js.map +1 -1
- package/dist/canvas/deps/editAnchors.js +47 -71
- package/dist/canvas/deps/editAnchors.js.map +1 -1
- package/dist/canvas/deps/geometryProjection.js.map +1 -1
- package/dist/canvas/deps/hitTestArea.js +45 -25
- package/dist/canvas/deps/hitTestArea.js.map +1 -1
- package/dist/canvas/deps/insert.js +149 -104
- package/dist/canvas/deps/insert.js.map +1 -1
- package/dist/canvas/deps/lassoSelect.js +5 -5
- package/dist/canvas/deps/lassoSelect.js.map +1 -1
- package/dist/canvas/deps/layout.js +9 -15
- package/dist/canvas/deps/layout.js.map +1 -1
- package/dist/canvas/deps/poseDescriptor.js +1 -1
- package/dist/canvas/deps/poseDescriptor.js.map +1 -1
- package/dist/canvas/deps/resizePolicy.js.map +1 -1
- package/dist/canvas/deps/slice.js +44 -45
- package/dist/canvas/deps/slice.js.map +1 -1
- package/dist/canvas/deps/textEdit.js +8 -8
- package/dist/canvas/deps/textEdit.js.map +1 -1
- package/dist/canvas/deps/view.js.map +1 -1
- package/dist/canvas/derivedPath.js +69 -43
- package/dist/canvas/derivedPath.js.map +1 -1
- package/dist/canvas/drawEnvelope.js +8 -4
- package/dist/canvas/drawEnvelope.js.map +1 -1
- package/dist/canvas/getNodeAtPoint.js +2 -6
- package/dist/canvas/getNodeAtPoint.js.map +1 -1
- package/dist/canvas/hud.module.js.map +1 -1
- package/dist/canvas/insertPreviewExtent.js +33 -31
- package/dist/canvas/insertPreviewExtent.js.map +1 -1
- package/dist/canvas/layerOrder.js.map +1 -1
- package/dist/canvas/layerSlots.js +6 -1
- package/dist/canvas/layerSlots.js.map +1 -1
- package/dist/canvas/nodeShapes/derivedPainter.js +12 -12
- package/dist/canvas/nodeShapes/derivedPainter.js.map +1 -1
- package/dist/canvas/nodeShapes/imagePainter.js +10 -10
- package/dist/canvas/nodeShapes/imagePainter.js.map +1 -1
- package/dist/canvas/nodeShapes/memo.js.map +1 -1
- package/dist/canvas/nodeShapes/nodePaint.js +34 -23
- package/dist/canvas/nodeShapes/nodePaint.js.map +1 -1
- package/dist/canvas/nodeShapes/pathPainter.js +23 -22
- package/dist/canvas/nodeShapes/pathPainter.js.map +1 -1
- package/dist/canvas/nodeShapes/poseBox.js +6 -6
- package/dist/canvas/nodeShapes/poseBox.js.map +1 -1
- package/dist/canvas/nodeShapes/rectFallbackPainter.js +8 -8
- package/dist/canvas/nodeShapes/rectFallbackPainter.js.map +1 -1
- package/dist/canvas/nodeShapes/shapePainter.js +16 -16
- package/dist/canvas/nodeShapes/shapePainter.js.map +1 -1
- package/dist/canvas/nodeShapes/textPainter.js +1 -1
- package/dist/canvas/nodeShapes/textPainter.js.map +1 -1
- package/dist/canvas/overChildren.js +29 -0
- package/dist/canvas/overChildren.js.map +1 -0
- package/dist/canvas/overlayRoleStrokes.js.map +1 -1
- package/dist/canvas/paintCull.js +6 -8
- package/dist/canvas/paintCull.js.map +1 -1
- package/dist/{features/cursor → canvas}/paintedCursorLayer.js +2 -2
- package/dist/canvas/paintedCursorLayer.js.map +1 -0
- package/dist/canvas/pickReach.js +23 -0
- package/dist/canvas/pickReach.js.map +1 -0
- package/dist/canvas/pickWalk.js +43 -70
- package/dist/canvas/pickWalk.js.map +1 -1
- package/dist/canvas/planeClips.js +18 -19
- package/dist/canvas/planeClips.js.map +1 -1
- package/dist/canvas/poseCascade.js +41 -0
- package/dist/canvas/poseCascade.js.map +1 -0
- package/dist/canvas/poseRotation.js +1 -3
- package/dist/canvas/poseRotation.js.map +1 -1
- package/dist/canvas/rasterReadback.js +22 -0
- package/dist/canvas/rasterReadback.js.map +1 -0
- package/dist/canvas/renderDebugSnapshot.js +12 -12
- package/dist/canvas/renderDebugSnapshot.js.map +1 -1
- package/dist/canvas/renderNeeds.js +3 -3
- package/dist/canvas/renderNeeds.js.map +1 -1
- package/dist/canvas/renderSceneToPixels.js +64 -83
- package/dist/canvas/renderSceneToPixels.js.map +1 -1
- package/dist/canvas/sceneAdapter.js +59 -144
- package/dist/canvas/sceneAdapter.js.map +1 -1
- package/dist/canvas/sceneClipboard.js +1 -1
- package/dist/canvas/sceneClipboard.js.map +1 -1
- package/dist/canvas/sceneLayerPaint.js +4 -4
- package/dist/canvas/sceneLayerPaint.js.map +1 -1
- package/dist/canvas/sceneSlotWiring.js +10 -9
- package/dist/canvas/sceneSlotWiring.js.map +1 -1
- package/dist/canvas/sceneViewRender.js +37 -42
- package/dist/canvas/sceneViewRender.js.map +1 -1
- package/dist/canvas/slopsDebugLayer.js +4 -4
- package/dist/canvas/slopsDebugLayer.js.map +1 -1
- package/dist/canvas/useCanvasRenderer.js +23 -11
- package/dist/canvas/useCanvasRenderer.js.map +1 -1
- package/dist/canvas/useCanvasSurface.js +31 -0
- package/dist/canvas/useCanvasSurface.js.map +1 -0
- package/dist/canvas/useCanvasView.js +51 -44
- package/dist/canvas/useCanvasView.js.map +1 -1
- package/dist/canvas/useFrameLoop.js +11 -12
- package/dist/canvas/useFrameLoop.js.map +1 -1
- package/dist/canvas/useHostAnchor.js +35 -33
- package/dist/canvas/useHostAnchor.js.map +1 -1
- package/dist/canvas/useLateContentRedraw.js +8 -8
- package/dist/canvas/useLateContentRedraw.js.map +1 -1
- package/dist/canvas/useSceneAdapter.js +22 -0
- package/dist/canvas/useSceneAdapter.js.map +1 -0
- package/dist/canvas/useSceneLayerList.js +4 -14
- package/dist/canvas/useSceneLayerList.js.map +1 -1
- package/dist/canvas/useSurfaceInput.js +39 -0
- package/dist/canvas/useSurfaceInput.js.map +1 -0
- package/dist/canvas/useToolCursor.js +29 -0
- package/dist/canvas/useToolCursor.js.map +1 -0
- package/dist/canvas/useViewHelpers.js +46 -85
- package/dist/canvas/useViewHelpers.js.map +1 -1
- package/dist/canvas/viewInputs.js.map +1 -1
- package/dist/canvas/viewRegistry.js +40 -34
- package/dist/canvas/viewRegistry.js.map +1 -1
- package/dist/canvas/watchElementMove.js +43 -0
- package/dist/canvas/watchElementMove.js.map +1 -0
- package/dist/canvas/wrapNodeOutput.js +7 -2
- package/dist/canvas/wrapNodeOutput.js.map +1 -1
- package/dist/clipboard.d.ts +7 -14
- package/dist/{types-B4iJRHC3.d.ts → clone-C0eADtS0.d.ts} +129 -84
- package/dist/clone.d.ts +4 -8
- package/dist/clone.js +0 -2
- package/dist/core/device/targets.js.map +1 -1
- package/dist/core/device/useDeviceProfile.js +13 -13
- package/dist/core/device/useDeviceProfile.js.map +1 -1
- package/dist/{interactions/actions/resize → core/geometry}/autoPoseDescriptor.js +8 -7
- package/dist/core/geometry/autoPoseDescriptor.js.map +1 -0
- package/dist/core/geometry/pathPoseDescriptor.js +88 -0
- package/dist/core/geometry/pathPoseDescriptor.js.map +1 -0
- package/dist/core/geometry/poseDescriptor.js +102 -29
- package/dist/core/geometry/poseDescriptor.js.map +1 -1
- package/dist/core/geometry/regionHit.js +35 -37
- package/dist/core/geometry/regionHit.js.map +1 -1
- package/dist/core/geometry/targetFrame.js +94 -0
- package/dist/core/geometry/targetFrame.js.map +1 -0
- package/dist/core/geometry/unionBounds.js +4 -5
- package/dist/core/geometry/unionBounds.js.map +1 -1
- package/dist/core/layers/backgroundFill.js +31 -0
- package/dist/core/layers/backgroundFill.js.map +1 -0
- package/dist/{features/groups → core/layers}/children.js +2 -4
- package/dist/core/layers/children.js.map +1 -0
- package/dist/{features/focus → core/layers}/gateLayer.js +2 -2
- package/dist/core/layers/gateLayer.js.map +1 -0
- package/dist/core/layers/layerGroup.js +40 -0
- package/dist/core/layers/layerGroup.js.map +1 -0
- package/dist/core/layers/render.js +50 -76
- package/dist/core/layers/render.js.map +1 -1
- package/dist/core/ops/create.js +2 -2
- package/dist/core/ops/create.js.map +1 -1
- package/dist/core/ops/createHistory.js +9 -9
- package/dist/core/ops/createHistory.js.map +1 -1
- package/dist/core/ops/delete.js +19 -23
- package/dist/core/ops/delete.js.map +1 -1
- package/dist/core/ops/reorder/index.js +3 -7
- package/dist/core/ops/reorder/index.js.map +1 -1
- package/dist/core/ops/reorder/setChildOrder.js +2 -4
- package/dist/core/ops/reorder/setChildOrder.js.map +1 -1
- package/dist/core/ops/reparent.js +0 -1
- package/dist/core/ops/reparent.js.map +1 -1
- package/dist/core/ops/slot.js +3 -6
- package/dist/core/ops/slot.js.map +1 -1
- package/dist/core/pages/fitViewToPage.js +15 -0
- package/dist/core/pages/fitViewToPage.js.map +1 -0
- package/dist/core/pages/pages.js +65 -0
- package/dist/core/pages/pages.js.map +1 -0
- package/dist/core/pages/pagesLayer.js +27 -0
- package/dist/core/pages/pagesLayer.js.map +1 -0
- package/dist/core/paint/meshKind.js +16 -0
- package/dist/core/paint/meshKind.js.map +1 -0
- package/dist/{features/meshPaint/lazyKind.js → core/paint/meshKindLazy.js} +104 -93
- package/dist/core/paint/meshKindLazy.js.map +1 -0
- package/dist/core/paint/paintKindEntry.js +8 -0
- package/dist/core/paint/paintKindEntry.js.map +1 -0
- package/dist/core/paint/paintKinds.js +144 -0
- package/dist/core/paint/paintKinds.js.map +1 -0
- package/dist/core/paint/registerMesh.js +7 -0
- package/dist/core/paint/registerMesh.js.map +1 -0
- package/dist/core/scene/NodeProperties.js.map +1 -1
- package/dist/core/scene/NodeRouting.js.map +1 -1
- package/dist/core/scene/arrivalWindow.js +65 -64
- package/dist/core/scene/arrivalWindow.js.map +1 -1
- package/dist/core/scene/boundOps.js +40 -0
- package/dist/core/scene/boundOps.js.map +1 -0
- package/dist/core/scene/composeFrame.js +9 -6
- package/dist/core/scene/composeFrame.js.map +1 -1
- package/dist/core/scene/composePose.js +105 -0
- package/dist/core/scene/composePose.js.map +1 -0
- package/dist/core/scene/depMemo.js +31 -6
- package/dist/core/scene/depMemo.js.map +1 -1
- package/dist/core/scene/derivedPath.js +19 -20
- package/dist/core/scene/derivedPath.js.map +1 -1
- package/dist/core/scene/editMode.js +26 -0
- package/dist/core/scene/editMode.js.map +1 -0
- package/dist/core/scene/effectivePose.js +42 -39
- package/dist/core/scene/effectivePose.js.map +1 -1
- package/dist/core/scene/fieldEdits.js +98 -0
- package/dist/core/scene/fieldEdits.js.map +1 -0
- package/dist/core/scene/historyFacade.js +122 -70
- package/dist/core/scene/historyFacade.js.map +1 -1
- package/dist/core/scene/historyForm.js +6 -0
- package/dist/core/scene/historyForm.js.map +1 -0
- package/dist/core/scene/kitOps.js +83 -71
- package/dist/core/scene/kitOps.js.map +1 -1
- package/dist/core/scene/kitRegistry.js.map +1 -1
- package/dist/core/scene/layerStack.js +105 -12
- package/dist/core/scene/layerStack.js.map +1 -1
- package/dist/core/scene/layoutPass.js +58 -59
- package/dist/core/scene/layoutPass.js.map +1 -1
- package/dist/{features/groups → core/scene}/nestedHit.js +3 -3
- package/dist/core/scene/nestedHit.js.map +1 -0
- package/dist/core/scene/nodeFnFields.js +16 -9
- package/dist/core/scene/nodeFnFields.js.map +1 -1
- package/dist/core/scene/nodeMemo.js.map +1 -1
- package/dist/core/scene/nodeStore.js +72 -71
- package/dist/core/scene/nodeStore.js.map +1 -1
- package/dist/core/scene/notifier.js +37 -0
- package/dist/core/scene/notifier.js.map +1 -0
- package/dist/core/scene/opTable.js +50 -0
- package/dist/core/scene/opTable.js.map +1 -0
- package/dist/core/scene/outerOps.js +67 -0
- package/dist/core/scene/outerOps.js.map +1 -0
- package/dist/core/scene/poseHold.js +39 -0
- package/dist/core/scene/poseHold.js.map +1 -0
- package/dist/core/scene/poseOverrides.js +44 -36
- package/dist/core/scene/poseOverrides.js.map +1 -1
- package/dist/core/scene/poseSnapshot.js.map +1 -1
- package/dist/core/scene/reconcileSpecs.js +4 -3
- package/dist/core/scene/reconcileSpecs.js.map +1 -1
- package/dist/core/scene/recorder.js +86 -0
- package/dist/core/scene/recorder.js.map +1 -0
- package/dist/core/scene/renderOrder.js.map +1 -1
- package/dist/core/scene/scene.js +81 -690
- package/dist/core/scene/scene.js.map +1 -1
- package/dist/core/scene/sceneEdits.js +58 -0
- package/dist/core/scene/sceneEdits.js.map +1 -0
- package/dist/core/scene/sceneMutators.js +49 -0
- package/dist/core/scene/sceneMutators.js.map +1 -0
- package/dist/core/scene/scenePoseAdapter.js +16 -0
- package/dist/core/scene/scenePoseAdapter.js.map +1 -0
- package/dist/core/scene/sceneRecording.js +91 -0
- package/dist/core/scene/sceneRecording.js.map +1 -0
- package/dist/core/scene/sceneSelection.js +28 -0
- package/dist/core/scene/sceneSelection.js.map +1 -0
- package/dist/core/scene/sceneState.js +49 -0
- package/dist/core/scene/sceneState.js.map +1 -0
- package/dist/core/scene/serialization.js +8 -5
- package/dist/core/scene/serialization.js.map +1 -1
- package/dist/core/scene/staleReplay.js +51 -0
- package/dist/core/scene/staleReplay.js.map +1 -0
- package/dist/core/scene/statedFields.js +9 -0
- package/dist/core/scene/statedFields.js.map +1 -0
- package/dist/core/scene/treeEdits.js +127 -0
- package/dist/core/scene/treeEdits.js.map +1 -0
- package/dist/core/scene/treeReads.js +26 -0
- package/dist/core/scene/treeReads.js.map +1 -0
- package/dist/core/scene/types.js.map +1 -1
- package/dist/{features/groups → core/scene}/unionOfChildren.js +3 -3
- package/dist/core/scene/unionOfChildren.js.map +1 -0
- package/dist/core/scene/unitScopes.js +13 -0
- package/dist/core/scene/unitScopes.js.map +1 -0
- package/dist/core/scene/useScene.js.map +1 -1
- package/dist/core/selection/readOnlySelection.js +32 -0
- package/dist/core/selection/readOnlySelection.js.map +1 -0
- package/dist/core/selection/usePublishSceneSelection.js +26 -0
- package/dist/core/selection/usePublishSceneSelection.js.map +1 -0
- package/dist/core/selection/useSelection.js +34 -25
- package/dist/core/selection/useSelection.js.map +1 -1
- package/dist/core/shapeKinds.js.map +1 -1
- package/dist/core/stylus/stylus.js.map +1 -1
- package/dist/core/stylus/usePointerStylus.js.map +1 -1
- package/dist/core/usePaintKinds.js +1 -1
- package/dist/core/usePaintKinds.js.map +1 -1
- package/dist/core/viewport/clientToWorld.js.map +1 -1
- package/dist/core/viewport/fitViewToBounds.js.map +1 -1
- package/dist/core/viewport/parallax.js.map +1 -1
- package/dist/core/viewport/screenSlop.js +11 -11
- package/dist/core/viewport/screenSlop.js.map +1 -1
- package/dist/core/viewport/useCanvasSize.js.map +1 -1
- package/dist/core/viewport/useDecayLoop.js +31 -33
- package/dist/core/viewport/useDecayLoop.js.map +1 -1
- package/dist/core/viewport/useNodeOverlayFrame.js +84 -0
- package/dist/core/viewport/useNodeOverlayFrame.js.map +1 -0
- package/dist/core/viewport/useViewAnimation.js +113 -53
- package/dist/core/viewport/useViewAnimation.js.map +1 -1
- package/dist/core/viewport/view.js +14 -11
- package/dist/core/viewport/view.js.map +1 -1
- package/dist/core/viewport/wheelHandler.js.map +1 -1
- package/dist/core/viewport/zoomAt.js +11 -2
- package/dist/core/viewport/zoomAt.js.map +1 -1
- package/dist/{cornerHandles-CtCb8a3G.d.ts → cornerHandles-BSKbyuvQ.d.ts} +11 -24
- package/dist/debug/createDebugOverlayLayer.js +100 -100
- package/dist/debug/createDebugOverlayLayer.js.map +1 -1
- package/dist/debug/createDebugSink.js.map +1 -1
- package/dist/debug/frameStats.js.map +1 -1
- package/dist/debug/useDebugSink.js +52 -0
- package/dist/debug/useDebugSink.js.map +1 -0
- package/dist/features/chrome-caps/buildChromeCtx.js.map +1 -1
- package/dist/features/chrome-caps/conditions.js.map +1 -1
- package/dist/features/chrome-caps/defaults.js.map +1 -1
- package/dist/features/chrome-caps/resolve.js.map +1 -1
- package/dist/features/chrome-caps/useChromeCaps.js +54 -0
- package/dist/features/chrome-caps/useChromeCaps.js.map +1 -0
- package/dist/features/chrome-caps/useHoverTracking.js.map +1 -1
- package/dist/features/ingestion/contentHandlers.js +25 -19
- package/dist/features/ingestion/contentHandlers.js.map +1 -1
- package/dist/features/ingestion/imageHandler.js +21 -24
- package/dist/features/ingestion/imageHandler.js.map +1 -1
- package/dist/features/ingestion/openFilePicker.js.map +1 -1
- package/dist/features/ingestion/placement.js +16 -0
- package/dist/features/ingestion/placement.js.map +1 -0
- package/dist/features/ingestion/svgHandler.js +5 -0
- package/dist/features/ingestion/svgHandler.js.map +1 -1
- package/dist/features/ingestion/textHandler.js +28 -0
- package/dist/features/ingestion/textHandler.js.map +1 -0
- package/dist/features/ingestion/useCanvasIngestion.js +48 -0
- package/dist/features/ingestion/useCanvasIngestion.js.map +1 -0
- package/dist/features/ingestion/weaselJsonHandler.js +5 -0
- package/dist/features/ingestion/weaselJsonHandler.js.map +1 -1
- package/dist/features/longPress/longPressFeedback.js.map +1 -1
- package/dist/features/modes/modeLayers.js +7 -7
- package/dist/features/modes/modeLayers.js.map +1 -1
- package/dist/features/paths/editablePath.js +63 -0
- package/dist/features/paths/editablePath.js.map +1 -0
- package/dist/features/paths/index.js +9 -16
- package/dist/features/paths/pathEditState.js +41 -0
- package/dist/features/paths/pathEditState.js.map +1 -0
- package/dist/features/paths/pathEditingOverlayLayer.js +36 -38
- package/dist/features/paths/pathEditingOverlayLayer.js.map +1 -1
- package/dist/features/paths/pathLayer.js +3 -2
- package/dist/features/paths/pathLayer.js.map +1 -1
- package/dist/features/paths/penPreviewLayer.js +86 -88
- package/dist/features/paths/penPreviewLayer.js.map +1 -1
- package/dist/features/paths/shapeGenerator.js +89 -0
- package/dist/features/paths/shapeGenerator.js.map +1 -0
- package/dist/features/paths/usePathEdit.js +34 -0
- package/dist/features/paths/usePathEdit.js.map +1 -0
- package/dist/features/poseRun/usePoseRun.js +44 -57
- package/dist/features/poseRun/usePoseRun.js.map +1 -1
- package/dist/features/selection/overlay.js +170 -178
- package/dist/features/selection/overlay.js.map +1 -1
- package/dist/features/text/index.js +6 -0
- package/dist/features/text/textLayer.js +1 -1
- package/dist/features/text/textLayer.js.map +1 -1
- package/dist/features/text/useSceneTextEdit.js +119 -88
- package/dist/features/text/useSceneTextEdit.js.map +1 -1
- package/dist/features/viewports/viewResolver.js +28 -24
- package/dist/features/viewports/viewResolver.js.map +1 -1
- package/dist/features/viewports/viewportLayer.js +25 -36
- package/dist/features/viewports/viewportLayer.js.map +1 -1
- package/dist/icons/SliceIcon.js +24 -0
- package/dist/icons/SliceIcon.js.map +1 -0
- package/dist/index.d.ts +5200 -8777
- package/dist/index.js +284 -320
- package/dist/input/keyState.js +14 -14
- package/dist/interactions/actions/actionShortcuts.js.map +1 -1
- package/dist/interactions/actions/{defaults/align.js → align/action.js} +15 -16
- package/dist/interactions/actions/align/action.js.map +1 -0
- package/dist/interactions/actions/align/align.js +24 -24
- package/dist/interactions/actions/align/align.js.map +1 -1
- package/dist/interactions/actions/booleans/action.js +65 -0
- package/dist/interactions/actions/booleans/action.js.map +1 -0
- package/dist/interactions/actions/booleans/booleans.js +74 -83
- package/dist/interactions/actions/booleans/booleans.js.map +1 -1
- package/dist/interactions/actions/booleans/operands.js +40 -0
- package/dist/interactions/actions/booleans/operands.js.map +1 -0
- package/dist/interactions/actions/booleans/pieces.js +45 -0
- package/dist/interactions/actions/booleans/pieces.js.map +1 -0
- package/dist/interactions/actions/booleans/placement.js +24 -0
- package/dist/interactions/actions/booleans/placement.js.map +1 -0
- package/dist/interactions/actions/booleans/useBooleans.js +11 -9
- package/dist/interactions/actions/booleans/useBooleans.js.map +1 -1
- package/dist/interactions/actions/booleans/useBooleansAdapter.js.map +1 -1
- package/dist/interactions/actions/{defaults/clipboard.js → clipboard/action.js} +19 -19
- package/dist/interactions/actions/clipboard/action.js.map +1 -0
- package/dist/interactions/actions/clipboard/clipboardOps.js +15 -15
- package/dist/interactions/actions/clipboard/clipboardOps.js.map +1 -1
- package/dist/interactions/actions/clipboard/wireFormat.js.map +1 -1
- package/dist/interactions/actions/clone/action.js +103 -0
- package/dist/interactions/actions/clone/action.js.map +1 -0
- package/dist/interactions/actions/clone/behaviors.js +52 -0
- package/dist/interactions/actions/clone/behaviors.js.map +1 -0
- package/dist/interactions/actions/defaultCommitAdapter.js +10 -37
- package/dist/interactions/actions/defaultCommitAdapter.js.map +1 -1
- package/dist/interactions/actions/defaults/anchorEditing.js +69 -74
- package/dist/interactions/actions/defaults/anchorEditing.js.map +1 -1
- package/dist/interactions/actions/defaults/anchorHandles.js +42 -0
- package/dist/interactions/actions/defaults/anchorHandles.js.map +1 -0
- package/dist/interactions/actions/defaults/anchorJoin.js +92 -0
- package/dist/interactions/actions/defaults/anchorJoin.js.map +1 -0
- package/dist/interactions/actions/defaults/areaSelect.js.map +1 -1
- package/dist/interactions/actions/defaults/bendSegment.js +46 -0
- package/dist/interactions/actions/defaults/bendSegment.js.map +1 -0
- package/dist/interactions/actions/defaults/cancelGesture.js.map +1 -1
- package/dist/interactions/actions/defaults/clearSelection.js.map +1 -1
- package/dist/interactions/actions/defaults/copySubtree.js +1 -1
- package/dist/interactions/actions/defaults/copySubtree.js.map +1 -1
- package/dist/interactions/actions/defaults/createPaintAction.js.map +1 -1
- package/dist/interactions/actions/defaults/delete.js.map +1 -1
- package/dist/interactions/actions/defaults/duplicate.js +36 -21
- package/dist/interactions/actions/defaults/duplicate.js.map +1 -1
- package/dist/interactions/actions/defaults/enterPathEdit.js +19 -7
- package/dist/interactions/actions/defaults/enterPathEdit.js.map +1 -1
- package/dist/interactions/actions/defaults/enterTextEdit.js.map +1 -1
- package/dist/interactions/actions/defaults/group.js +35 -40
- package/dist/interactions/actions/defaults/group.js.map +1 -1
- package/dist/interactions/actions/defaults/icons/anchorIcons.js +75 -0
- package/dist/interactions/actions/defaults/icons/anchorIcons.js.map +1 -0
- package/dist/interactions/actions/defaults/icons/booleanIcons.js +24 -1
- package/dist/interactions/actions/defaults/icons/booleanIcons.js.map +1 -1
- package/dist/interactions/actions/defaults/icons/editIcons.js +35 -8
- package/dist/interactions/actions/defaults/icons/editIcons.js.map +1 -1
- package/dist/interactions/actions/defaults/icons/outlineIcons.js +39 -1
- package/dist/interactions/actions/defaults/icons/outlineIcons.js.map +1 -1
- package/dist/interactions/actions/defaults/ingest.js +19 -15
- package/dist/interactions/actions/defaults/ingest.js.map +1 -1
- package/dist/interactions/actions/defaults/insertPathAnchor.js +18 -34
- package/dist/interactions/actions/defaults/insertPathAnchor.js.map +1 -1
- package/dist/interactions/actions/defaults/nudge.js +43 -39
- package/dist/interactions/actions/defaults/nudge.js.map +1 -1
- package/dist/interactions/actions/defaults/pinchZoom.js +29 -29
- package/dist/interactions/actions/defaults/pinchZoom.js.map +1 -1
- package/dist/interactions/actions/defaults/requiresSelection.js.map +1 -1
- package/dist/interactions/actions/defaults/segmentUnder.js +22 -0
- package/dist/interactions/actions/defaults/segmentUnder.js.map +1 -0
- package/dist/interactions/actions/defaults/setFill.js +9 -3
- package/dist/interactions/actions/defaults/setFill.js.map +1 -1
- package/dist/interactions/actions/defaults/setFillOpacity.js +4 -1
- package/dist/interactions/actions/defaults/setFillOpacity.js.map +1 -1
- package/dist/interactions/actions/defaults/setStroke.js.map +1 -1
- package/dist/interactions/actions/defaults/sliceOps.js +20 -22
- package/dist/interactions/actions/defaults/sliceOps.js.map +1 -1
- package/dist/interactions/actions/defaults/toolActivate.js.map +1 -1
- package/dist/interactions/actions/defaults/toolResetToDefault.js.map +1 -1
- package/dist/interactions/actions/defaults/viewportDragPan.js +1 -1
- package/dist/interactions/actions/defaults/viewportDragPan.js.map +1 -1
- package/dist/interactions/actions/defaults/viewportWheelPan.js.map +1 -1
- package/dist/interactions/actions/defaults/viewportZoom.js +82 -79
- package/dist/interactions/actions/defaults/viewportZoom.js.map +1 -1
- package/dist/interactions/actions/{defaults/distribute.js → distribute/action.js} +18 -19
- package/dist/interactions/actions/distribute/action.js.map +1 -0
- package/dist/interactions/actions/distribute/distribute.js +15 -15
- package/dist/interactions/actions/distribute/distribute.js.map +1 -1
- package/dist/interactions/actions/edit-anchors/action.js +101 -0
- package/dist/interactions/actions/edit-anchors/action.js.map +1 -0
- package/dist/interactions/actions/edit-anchors/geometry.js +2 -4
- package/dist/interactions/actions/edit-anchors/geometry.js.map +1 -1
- package/dist/interactions/actions/edit-anchors/preview.js +26 -0
- package/dist/interactions/actions/edit-anchors/preview.js.map +1 -0
- package/dist/interactions/actions/edit-anchors/symmetry.js +11 -0
- package/dist/interactions/actions/edit-anchors/symmetry.js.map +1 -0
- package/dist/interactions/actions/flip/action.js +124 -0
- package/dist/interactions/actions/flip/action.js.map +1 -0
- package/dist/interactions/actions/flip/helpers.js +1 -1
- package/dist/interactions/actions/flip/helpers.js.map +1 -1
- package/dist/interactions/actions/geometryProjection.js.map +1 -1
- package/dist/interactions/actions/gestureFrames.js +18 -0
- package/dist/interactions/actions/gestureFrames.js.map +1 -0
- package/dist/interactions/actions/gestureLifecycle.js +47 -20
- package/dist/interactions/actions/gestureLifecycle.js.map +1 -1
- package/dist/interactions/actions/insert/action.js +79 -0
- package/dist/interactions/actions/insert/action.js.map +1 -0
- package/dist/interactions/actions/insert/commit.js +28 -0
- package/dist/interactions/actions/insert/commit.js.map +1 -0
- package/dist/interactions/actions/insert/extras.js +65 -0
- package/dist/interactions/actions/insert/extras.js.map +1 -0
- package/dist/interactions/actions/insert/frame.js +55 -0
- package/dist/interactions/actions/insert/frame.js.map +1 -0
- package/dist/interactions/actions/insert/geometry.js +35 -0
- package/dist/interactions/actions/insert/geometry.js.map +1 -0
- package/dist/interactions/actions/insert/repositionAction.js +31 -0
- package/dist/interactions/actions/insert/repositionAction.js.map +1 -0
- package/dist/interactions/actions/insert/rotateAction.js +21 -0
- package/dist/interactions/actions/insert/rotateAction.js.map +1 -0
- package/dist/interactions/actions/insert/session.js +59 -0
- package/dist/interactions/actions/insert/session.js.map +1 -0
- package/dist/interactions/actions/insert/shape.js +34 -0
- package/dist/interactions/actions/insert/shape.js.map +1 -0
- package/dist/interactions/actions/lasso-select/action.js +143 -0
- package/dist/interactions/actions/lasso-select/action.js.map +1 -0
- package/dist/interactions/actions/move/action.js +91 -0
- package/dist/interactions/actions/move/action.js.map +1 -0
- package/dist/interactions/actions/move/behaviors/layoutDrop.js +51 -0
- package/dist/interactions/actions/move/behaviors/layoutDrop.js.map +1 -0
- package/dist/interactions/actions/move/behaviors/reparentOnDrop.js +15 -0
- package/dist/interactions/actions/move/behaviors/reparentOnDrop.js.map +1 -0
- package/dist/interactions/actions/move/behaviors/snapToContainer.js +35 -28
- package/dist/interactions/actions/move/behaviors/snapToContainer.js.map +1 -1
- package/dist/interactions/actions/move/capture.js +108 -0
- package/dist/interactions/actions/move/capture.js.map +1 -0
- package/dist/interactions/actions/move/commit/index.js +41 -0
- package/dist/interactions/actions/move/commit/index.js.map +1 -0
- package/dist/interactions/actions/move/commit/layoutDrop.js +44 -0
- package/dist/interactions/actions/move/commit/layoutDrop.js.map +1 -0
- package/dist/interactions/actions/move/commit/layoutRelease.js +100 -0
- package/dist/interactions/actions/move/commit/layoutRelease.js.map +1 -0
- package/dist/interactions/actions/move/commit/rebase.js +18 -0
- package/dist/interactions/actions/move/commit/rebase.js.map +1 -0
- package/dist/interactions/actions/move/commit/reparent.js +65 -0
- package/dist/interactions/actions/move/commit/reparent.js.map +1 -0
- package/dist/interactions/actions/move/delta.js +51 -0
- package/dist/interactions/actions/move/delta.js.map +1 -0
- package/dist/interactions/actions/move/frame.js +47 -0
- package/dist/interactions/actions/move/frame.js.map +1 -0
- package/dist/interactions/actions/move/gestureAdapter.js +15 -40
- package/dist/interactions/actions/move/gestureAdapter.js.map +1 -1
- package/dist/interactions/actions/move/landedDescendants.js +8 -8
- package/dist/interactions/actions/move/layout/container.js +94 -0
- package/dist/interactions/actions/move/layout/container.js.map +1 -0
- package/dist/interactions/actions/move/layout/dragged.js +58 -0
- package/dist/interactions/actions/move/layout/dragged.js.map +1 -0
- package/dist/interactions/actions/move/layout/dropPass.js +122 -0
- package/dist/interactions/actions/move/layout/dropPass.js.map +1 -0
- package/dist/interactions/actions/move/layout/exits.js +38 -0
- package/dist/interactions/actions/move/layout/exits.js.map +1 -0
- package/dist/interactions/actions/move/layout/glide.js +48 -0
- package/dist/interactions/actions/move/layout/glide.js.map +1 -0
- package/dist/interactions/actions/move/session.js +63 -0
- package/dist/interactions/actions/move/session.js.map +1 -0
- package/dist/interactions/actions/move/translate.js +61 -0
- package/dist/interactions/actions/move/translate.js.map +1 -0
- package/dist/interactions/actions/outlines/createOutlines.js +17 -64
- package/dist/interactions/actions/outlines/createOutlines.js.map +1 -1
- package/dist/interactions/actions/outlines/createOutlinesAction.js +51 -0
- package/dist/interactions/actions/outlines/createOutlinesAction.js.map +1 -0
- package/dist/interactions/actions/outlines/outlineStroke.js +72 -0
- package/dist/interactions/actions/outlines/outlineStroke.js.map +1 -0
- package/dist/interactions/actions/outlines/outlineStrokeAction.js +37 -0
- package/dist/interactions/actions/outlines/outlineStrokeAction.js.map +1 -0
- package/dist/interactions/actions/outlines/replaceWithPaths.js +54 -0
- package/dist/interactions/actions/outlines/replaceWithPaths.js.map +1 -0
- package/dist/interactions/actions/outlines/strokeRegion.js +27 -0
- package/dist/interactions/actions/outlines/strokeRegion.js.map +1 -0
- package/dist/interactions/actions/pathCommands/cutJoin.js +102 -0
- package/dist/interactions/actions/pathCommands/cutJoin.js.map +1 -0
- package/dist/interactions/actions/pathCommands/livePathEdit.js +64 -0
- package/dist/interactions/actions/pathCommands/livePathEdit.js.map +1 -0
- package/dist/interactions/actions/pathCommands/pathNodes.js +99 -0
- package/dist/interactions/actions/pathCommands/pathNodes.js.map +1 -0
- package/dist/interactions/actions/pathCommands/simplifyOffset.js +42 -0
- package/dist/interactions/actions/pathCommands/simplifyOffset.js.map +1 -0
- package/dist/interactions/actions/planeInput.js.map +1 -1
- package/dist/interactions/actions/pointerState.js +12 -0
- package/dist/interactions/actions/pointerState.js.map +1 -0
- package/dist/interactions/actions/poseDescriptorDep.js +1 -1
- package/dist/interactions/actions/poseDescriptorDep.js.map +1 -1
- package/dist/interactions/actions/poseFrame.js +26 -26
- package/dist/interactions/actions/poseFrame.js.map +1 -1
- package/dist/interactions/actions/resize/action.js +66 -0
- package/dist/interactions/actions/resize/action.js.map +1 -0
- package/dist/interactions/actions/resize/behaviors/lockAspect.js.map +1 -1
- package/dist/interactions/actions/resize/boxFrame.js +16 -0
- package/dist/interactions/actions/resize/boxFrame.js.map +1 -0
- package/dist/interactions/actions/resize/capture.js +85 -0
- package/dist/interactions/actions/resize/capture.js.map +1 -0
- package/dist/interactions/actions/resize/commit.js +69 -0
- package/dist/interactions/actions/resize/commit.js.map +1 -0
- package/dist/interactions/actions/resize/frame.js +88 -0
- package/dist/interactions/actions/resize/frame.js.map +1 -0
- package/dist/interactions/actions/resize/pointSnap.js +111 -0
- package/dist/interactions/actions/resize/pointSnap.js.map +1 -0
- package/dist/interactions/actions/resize/replay.js +47 -0
- package/dist/interactions/actions/resize/replay.js.map +1 -0
- package/dist/interactions/actions/resize/ruleBounds.js +9 -0
- package/dist/interactions/actions/resize/ruleBounds.js.map +1 -0
- package/dist/interactions/actions/resize/session.js +63 -0
- package/dist/interactions/actions/resize/session.js.map +1 -0
- package/dist/interactions/actions/resolveOverlays.js +2 -1
- package/dist/interactions/actions/resolveOverlays.js.map +1 -1
- package/dist/interactions/actions/resolvePreviews.js.map +1 -1
- package/dist/interactions/actions/rotate/action.js +71 -0
- package/dist/interactions/actions/rotate/action.js.map +1 -0
- package/dist/interactions/actions/rotate/behaviors/index.js +7 -0
- package/dist/interactions/actions/rotate/behaviors/index.js.map +1 -0
- package/dist/interactions/actions/rotate/behaviors/snapRotation.js +12 -0
- package/dist/interactions/actions/rotate/behaviors/snapRotation.js.map +1 -0
- package/dist/interactions/actions/rotate/commit.js +40 -0
- package/dist/interactions/actions/rotate/commit.js.map +1 -0
- package/dist/interactions/actions/rotate/frame.js +65 -0
- package/dist/interactions/actions/rotate/frame.js.map +1 -0
- package/dist/interactions/actions/rotate/handle.js +12 -12
- package/dist/interactions/actions/rotate/handle.js.map +1 -1
- package/dist/interactions/actions/rotate/replay.js +22 -0
- package/dist/interactions/actions/rotate/replay.js.map +1 -0
- package/dist/interactions/actions/rotate/session.js +102 -0
- package/dist/interactions/actions/rotate/session.js.map +1 -0
- package/dist/interactions/actions/spatialReference.js.map +1 -1
- package/dist/interactions/actions/transform-again/action.js +63 -0
- package/dist/interactions/actions/transform-again/action.js.map +1 -0
- package/dist/interactions/actions/transform-again/memory.js +35 -0
- package/dist/interactions/actions/transform-again/memory.js.map +1 -0
- package/dist/interactions/actions/useStandardActions.js +84 -61
- package/dist/interactions/actions/useStandardActions.js.map +1 -1
- package/dist/interactions/gestures/pointerDrag/pointerDrag.js +61 -42
- package/dist/interactions/gestures/pointerDrag/pointerDrag.js.map +1 -1
- package/dist/interactions/gestures/shared/originProjection.js +1 -1
- package/dist/interactions/gestures/shared/originProjection.js.map +1 -1
- package/dist/interactions/gestures/shared/screenTolerance.js +8 -2
- package/dist/interactions/gestures/shared/screenTolerance.js.map +1 -1
- package/dist/interactions/gestures/shared/snap.js.map +1 -1
- package/dist/math-CYUjoyyU.d.ts +33 -0
- package/dist/math.d.ts +5 -2
- package/dist/math.js +6 -6
- package/dist/mesh.d.ts +4 -268
- package/dist/mesh.js +3 -7
- package/dist/move.d.ts +6 -4
- package/dist/{originProjection-gHnOup4e.d.ts → originProjection-CoNVpITV.d.ts} +1 -1
- package/dist/patterns-builtin.d.ts +1 -118
- package/dist/patterns-builtin.js +2 -3
- package/dist/poseDescriptor-Bqk-11Rl.d.ts +73 -0
- package/dist/renderer.d.ts +1 -92
- package/dist/renderer.js +2 -19
- package/dist/resize.d.ts +11 -22
- package/dist/resize.js +1 -1
- package/dist/style.css +1 -1
- package/dist/test-hook/install.js.map +1 -1
- package/dist/test-hook/useTestHook.js +22 -0
- package/dist/test-hook/useTestHook.js.map +1 -0
- package/dist/test-seams-D0pyV3pR.d.ts +149 -0
- package/dist/test-seams.d.ts +4 -4
- package/dist/test-seams.js +2 -2
- package/dist/tools/builtin/bone/boneActions.js +130 -0
- package/dist/tools/builtin/bone/boneActions.js.map +1 -0
- package/dist/tools/builtin/bone/boneOverlay.js +58 -0
- package/dist/tools/builtin/bone/boneOverlay.js.map +1 -0
- package/dist/tools/builtin/bone/placedRig.js +24 -0
- package/dist/tools/builtin/bone/placedRig.js.map +1 -0
- package/dist/tools/builtin/bone/rigEditState.js +21 -0
- package/dist/tools/builtin/bone/rigEditState.js.map +1 -0
- package/dist/tools/builtin/bone/useBoneTool.js +98 -0
- package/dist/tools/builtin/bone/useBoneTool.js.map +1 -0
- package/dist/tools/builtin/ellipse/useEllipseTool.js +16 -15
- package/dist/tools/builtin/ellipse/useEllipseTool.js.map +1 -1
- package/dist/tools/builtin/eyedropper/useEyedropperTool.js.map +1 -1
- package/dist/tools/builtin/hand/useHandTool.js.map +1 -1
- package/dist/tools/builtin/image/useImageTool.js.map +1 -1
- package/dist/tools/builtin/lasso/useLassoTool.js.map +1 -1
- package/dist/tools/builtin/line/useLineTool.js +16 -15
- package/dist/tools/builtin/line/useLineTool.js.map +1 -1
- package/dist/tools/builtin/pen/usePenTool.js +162 -164
- package/dist/tools/builtin/pen/usePenTool.js.map +1 -1
- package/dist/tools/builtin/pencil/usePencilTool.js.map +1 -1
- package/dist/tools/builtin/pickTopMostHit.js +11 -14
- package/dist/tools/builtin/pickTopMostHit.js.map +1 -1
- package/dist/tools/builtin/polygon/usePolygonTool.js +17 -15
- package/dist/tools/builtin/polygon/usePolygonTool.js.map +1 -1
- package/dist/tools/builtin/rect/useRectTool.js +15 -14
- package/dist/tools/builtin/rect/useRectTool.js.map +1 -1
- package/dist/tools/builtin/select/adapterPointQuery.js +40 -0
- package/dist/tools/builtin/select/adapterPointQuery.js.map +1 -0
- package/dist/tools/builtin/select/selectionContributions.js +5 -5
- package/dist/tools/builtin/select/selectionContributions.js.map +1 -1
- package/dist/tools/builtin/select/useSelectTool.js +44 -71
- package/dist/tools/builtin/select/useSelectTool.js.map +1 -1
- package/dist/tools/builtin/shared/pointerFollower.js.map +1 -1
- package/dist/tools/builtin/slice/useSliceTool.js +69 -72
- package/dist/tools/builtin/slice/useSliceTool.js.map +1 -1
- package/dist/tools/builtin/star/useStarTool.js +18 -16
- package/dist/tools/builtin/star/useStarTool.js.map +1 -1
- package/dist/tools/builtin/text/useTextTool.js +10 -2
- package/dist/tools/builtin/text/useTextTool.js.map +1 -1
- package/dist/tools/builtin/weight/useWeightTool.js +77 -0
- package/dist/tools/builtin/weight/useWeightTool.js.map +1 -0
- package/dist/tools/builtin/weight/weightActions.js +112 -0
- package/dist/tools/builtin/weight/weightActions.js.map +1 -0
- package/dist/tools/builtin/weight/weightOverlay.js +61 -0
- package/dist/tools/builtin/weight/weightOverlay.js.map +1 -0
- package/dist/tools/overlayBinding.js.map +1 -1
- package/dist/tools/useKeybindings.js +20 -14
- package/dist/tools/useKeybindings.js.map +1 -1
- package/dist/{types-k-5Oqh-U.d.ts → types-DBbbCy0i.d.ts} +103 -176
- package/dist/util/paint.js +1 -1
- package/dist/util/paint.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +26 -21
- package/dist/animation/colorHelpers.js +0 -135
- package/dist/animation/colorHelpers.js.map +0 -1
- package/dist/animation/colorRegistry.js +0 -37
- package/dist/animation/colorRegistry.js.map +0 -1
- package/dist/animation/engine/axes.js +0 -36
- package/dist/animation/engine/axes.js.map +0 -1
- package/dist/animation/engine/codec.js +0 -170
- package/dist/animation/engine/codec.js.map +0 -1
- package/dist/animation/engine/integrator.js +0 -12
- package/dist/animation/engine/integrator.js.map +0 -1
- package/dist/animation/loop.js +0 -60
- package/dist/animation/loop.js.map +0 -1
- package/dist/animation/observe.js +0 -23
- package/dist/animation/observe.js.map +0 -1
- package/dist/animation/rig/blendPoses.js +0 -43
- package/dist/animation/rig/blendPoses.js.map +0 -1
- package/dist/animation/rig/mirrorPose.js +0 -19
- package/dist/animation/rig/mirrorPose.js.map +0 -1
- package/dist/animation/rig/resolveSkeleton.js +0 -33
- package/dist/animation/rig/resolveSkeleton.js.map +0 -1
- package/dist/animation/rig/solveIk.js +0 -103
- package/dist/animation/rig/solveIk.js.map +0 -1
- package/dist/animation/rig/types.js +0 -12
- package/dist/animation/rig/types.js.map +0 -1
- package/dist/animation/slew.js +0 -27
- package/dist/animation/slew.js.map +0 -1
- package/dist/animation/stagger.js +0 -146
- package/dist/animation/stagger.js.map +0 -1
- package/dist/animation/timeline/booking.js +0 -114
- package/dist/animation/timeline/booking.js.map +0 -1
- package/dist/animation/timeline/createTimeline.js +0 -125
- package/dist/animation/timeline/createTimeline.js.map +0 -1
- package/dist/animation/timeline/sampleTrack.js +0 -79
- package/dist/animation/timeline/sampleTrack.js.map +0 -1
- package/dist/animation/useAnimator.js +0 -388
- package/dist/animation/useAnimator.js.map +0 -1
- package/dist/autoPoseDescriptor-Ct7yqivU.d.ts +0 -108
- package/dist/builtins-DPcdghtB.d.ts +0 -1223
- package/dist/canvas/MinimapCanvas.js +0 -140
- package/dist/canvas/MinimapCanvas.js.map +0 -1
- package/dist/canvas/deps/poseComposition.js +0 -11
- package/dist/canvas/deps/poseComposition.js.map +0 -1
- package/dist/canvas/minimapMath.js +0 -82
- package/dist/canvas/minimapMath.js.map +0 -1
- package/dist/canvas/toolPreview.js +0 -39
- package/dist/canvas/toolPreview.js.map +0 -1
- package/dist/core/adapters/arrayAdapter.js +0 -94
- package/dist/core/adapters/arrayAdapter.js.map +0 -1
- package/dist/core/adapters/useArrayAdapter.js +0 -13
- package/dist/core/adapters/useArrayAdapter.js.map +0 -1
- package/dist/core/fillInPoseFrame.js +0 -102
- package/dist/core/fillInPoseFrame.js.map +0 -1
- package/dist/core/geometry/poseFrame.js +0 -44
- package/dist/core/geometry/poseFrame.js.map +0 -1
- package/dist/core/geometry/poseRotation.js +0 -58
- package/dist/core/geometry/poseRotation.js.map +0 -1
- package/dist/core/gradient.js +0 -136
- package/dist/core/gradient.js.map +0 -1
- package/dist/core/markerInset.js +0 -24
- package/dist/core/markerInset.js.map +0 -1
- package/dist/core/mixed.js +0 -6
- package/dist/core/mixed.js.map +0 -1
- package/dist/core/paintKinds.js +0 -156
- package/dist/core/paintKinds.js.map +0 -1
- package/dist/core/scene/pickability.js +0 -6
- package/dist/core/scene/pickability.js.map +0 -1
- package/dist/core/strokeMarkerShapes.js +0 -139
- package/dist/core/strokeMarkerShapes.js.map +0 -1
- package/dist/core/strokeMarkers.js +0 -28
- package/dist/core/strokeMarkers.js.map +0 -1
- package/dist/core/viewport/meanScale.js +0 -8
- package/dist/core/viewport/meanScale.js.map +0 -1
- package/dist/core/viewport/pxExtent.js +0 -42
- package/dist/core/viewport/pxExtent.js.map +0 -1
- package/dist/features/cursor/paintedCursorLayer.js.map +0 -1
- package/dist/features/focus/gateLayer.js.map +0 -1
- package/dist/features/focus/useCanvasFocus.js +0 -29
- package/dist/features/focus/useCanvasFocus.js.map +0 -1
- package/dist/features/groups/children.js.map +0 -1
- package/dist/features/groups/composePose.js +0 -67
- package/dist/features/groups/composePose.js.map +0 -1
- package/dist/features/groups/nestedHit.js.map +0 -1
- package/dist/features/groups/unionOfChildren.js.map +0 -1
- package/dist/features/images/imageCache.js +0 -104
- package/dist/features/images/imageCache.js.map +0 -1
- package/dist/features/ingestion/index.js +0 -8
- package/dist/features/meshPaint/bake.js +0 -79
- package/dist/features/meshPaint/bake.js.map +0 -1
- package/dist/features/meshPaint/bakeCache.js +0 -59
- package/dist/features/meshPaint/bakeCache.js.map +0 -1
- package/dist/features/meshPaint/handles.js +0 -86
- package/dist/features/meshPaint/handles.js.map +0 -1
- package/dist/features/meshPaint/lazyKind.js.map +0 -1
- package/dist/features/meshPaint/meshPaint.js +0 -239
- package/dist/features/meshPaint/meshPaint.js.map +0 -1
- package/dist/features/meshPaint/meshShader.js +0 -6
- package/dist/features/meshPaint/meshShader.js.map +0 -1
- package/dist/features/meshPaint/register.js +0 -7
- package/dist/features/meshPaint/register.js.map +0 -1
- package/dist/features/meshPaint/surface.js +0 -110
- package/dist/features/meshPaint/surface.js.map +0 -1
- package/dist/features/minimap/actions.js +0 -53
- package/dist/features/minimap/actions.js.map +0 -1
- package/dist/features/minimap/createMinimapContribution.js +0 -96
- package/dist/features/minimap/createMinimapContribution.js.map +0 -1
- package/dist/features/minimap/layers.js +0 -85
- package/dist/features/minimap/layers.js.map +0 -1
- package/dist/features/overlays/useNodeOverlayFrame.js +0 -103
- package/dist/features/overlays/useNodeOverlayFrame.js.map +0 -1
- package/dist/features/parallax/createParallaxLayer.js +0 -26
- package/dist/features/parallax/createParallaxLayer.js.map +0 -1
- package/dist/features/parallax/createParallaxPlane.js +0 -22
- package/dist/features/parallax/createParallaxPlane.js.map +0 -1
- package/dist/features/paths/anchorEdits.js +0 -167
- package/dist/features/paths/anchorEdits.js.map +0 -1
- package/dist/features/paths/anchors.js +0 -159
- package/dist/features/paths/anchors.js.map +0 -1
- package/dist/features/paths/booleans.js +0 -2
- package/dist/features/paths/markerCommands.js +0 -149
- package/dist/features/paths/markerCommands.js.map +0 -1
- package/dist/features/paths/markerSites.js +0 -59
- package/dist/features/paths/markerSites.js.map +0 -1
- package/dist/features/paths/markers.js +0 -95
- package/dist/features/paths/markers.js.map +0 -1
- package/dist/features/paths/nearestAnchor.js +0 -36
- package/dist/features/paths/nearestAnchor.js.map +0 -1
- package/dist/features/paths/pathInWorld.js +0 -41
- package/dist/features/paths/pathInWorld.js.map +0 -1
- package/dist/features/paths/poseDescriptor.js +0 -39
- package/dist/features/paths/poseDescriptor.js.map +0 -1
- package/dist/features/paths/strokeToPath.js +0 -40
- package/dist/features/paths/strokeToPath.js.map +0 -1
- package/dist/features/paths/tessellate/dash.js +0 -52
- package/dist/features/paths/tessellate/dash.js.map +0 -1
- package/dist/features/paths/tessellate/insets.js +0 -32
- package/dist/features/paths/tessellate/insets.js.map +0 -1
- package/dist/features/paths/tessellate/metric.js +0 -72
- package/dist/features/paths/tessellate/metric.js.map +0 -1
- package/dist/features/paths/tessellate/stroke.js +0 -170
- package/dist/features/paths/tessellate/stroke.js.map +0 -1
- package/dist/features/paths/tessellate/vertexWidths.js +0 -32
- package/dist/features/paths/tessellate/vertexWidths.js.map +0 -1
- package/dist/features/patterns/commandPaint.js +0 -18
- package/dist/features/patterns/commandPaint.js.map +0 -1
- package/dist/features/patterns/index.js +0 -11
- package/dist/features/patterns/index.js.map +0 -1
- package/dist/features/patterns/patterns-builtin.js +0 -38
- package/dist/features/patterns/patterns-builtin.js.map +0 -1
- package/dist/features/patterns/rasterizeTile.js +0 -17
- package/dist/features/patterns/rasterizeTile.js.map +0 -1
- package/dist/features/patterns/resolveSpec.js +0 -65
- package/dist/features/patterns/resolveSpec.js.map +0 -1
- package/dist/features/patterns/tileGeometry.js +0 -158
- package/dist/features/patterns/tileGeometry.js.map +0 -1
- package/dist/features/pointer/PointerContext.js +0 -45
- package/dist/features/pointer/PointerContext.js.map +0 -1
- package/dist/features/selection/SelectionContext.js +0 -51
- package/dist/features/selection/SelectionContext.js.map +0 -1
- package/dist/features/simulation/createSimulation.js +0 -61
- package/dist/features/simulation/createSimulation.js.map +0 -1
- package/dist/features/simulation/types.js +0 -6
- package/dist/features/simulation/types.js.map +0 -1
- package/dist/features/simulation/useSimulation.js +0 -74
- package/dist/features/simulation/useSimulation.js.map +0 -1
- package/dist/features/text/domOffsets.js +0 -82
- package/dist/features/text/domOffsets.js.map +0 -1
- package/dist/features/text/domRuns.js +0 -230
- package/dist/features/text/domRuns.js.map +0 -1
- package/dist/features/text/fitTextPose.js +0 -38
- package/dist/features/text/fitTextPose.js.map +0 -1
- package/dist/features/text/hitTest.js +0 -48
- package/dist/features/text/hitTest.js.map +0 -1
- package/dist/features/text/isTextData.js +0 -8
- package/dist/features/text/isTextData.js.map +0 -1
- package/dist/features/text/overlayDirection.js +0 -15
- package/dist/features/text/overlayDirection.js.map +0 -1
- package/dist/features/text/renderLabel.js +0 -14
- package/dist/features/text/renderLabel.js.map +0 -1
- package/dist/features/text/runs/effectiveRangeStyle.js +0 -66
- package/dist/features/text/runs/effectiveRangeStyle.js.map +0 -1
- package/dist/features/text/runs/flagRange.js +0 -53
- package/dist/features/text/runs/flagRange.js.map +0 -1
- package/dist/features/text/runs/rangeStyle.js +0 -133
- package/dist/features/text/runs/rangeStyle.js.map +0 -1
- package/dist/features/text/textCommand.js +0 -60
- package/dist/features/text/textCommand.js.map +0 -1
- package/dist/features/text/textToPath.js +0 -181
- package/dist/features/text/textToPath.js.map +0 -1
- package/dist/features/text/useTextEdit.js +0 -491
- package/dist/features/text/useTextEdit.js.map +0 -1
- package/dist/features/tiling/createTiledLayer.js +0 -65
- package/dist/features/tiling/createTiledLayer.js.map +0 -1
- package/dist/features/tiling/tiledProject.js +0 -14
- package/dist/features/tiling/tiledProject.js.map +0 -1
- package/dist/interactions/actions/clone/behaviors/cloneByAltDrag.js +0 -26
- package/dist/interactions/actions/clone/behaviors/cloneByAltDrag.js.map +0 -1
- package/dist/interactions/actions/defaults/align.js.map +0 -1
- package/dist/interactions/actions/defaults/booleans.js +0 -52
- package/dist/interactions/actions/defaults/booleans.js.map +0 -1
- package/dist/interactions/actions/defaults/clipboard.js.map +0 -1
- package/dist/interactions/actions/defaults/clone.js +0 -91
- package/dist/interactions/actions/defaults/clone.js.map +0 -1
- package/dist/interactions/actions/defaults/createOutlines.js +0 -47
- package/dist/interactions/actions/defaults/createOutlines.js.map +0 -1
- package/dist/interactions/actions/defaults/distribute.js.map +0 -1
- package/dist/interactions/actions/defaults/editAnchors.js +0 -100
- package/dist/interactions/actions/defaults/editAnchors.js.map +0 -1
- package/dist/interactions/actions/defaults/flip.js +0 -125
- package/dist/interactions/actions/defaults/flip.js.map +0 -1
- package/dist/interactions/actions/defaults/insert.js +0 -287
- package/dist/interactions/actions/defaults/insert.js.map +0 -1
- package/dist/interactions/actions/defaults/lassoSelect.js +0 -153
- package/dist/interactions/actions/defaults/lassoSelect.js.map +0 -1
- package/dist/interactions/actions/defaults/move.js +0 -778
- package/dist/interactions/actions/defaults/move.js.map +0 -1
- package/dist/interactions/actions/defaults/resize.js +0 -341
- package/dist/interactions/actions/defaults/resize.js.map +0 -1
- package/dist/interactions/actions/defaults/rotate.js +0 -185
- package/dist/interactions/actions/defaults/rotate.js.map +0 -1
- package/dist/interactions/actions/previewOverrides.js +0 -25
- package/dist/interactions/actions/previewOverrides.js.map +0 -1
- package/dist/interactions/actions/resize/autoPoseDescriptor.js.map +0 -1
- package/dist/layout/arrivals.js +0 -36
- package/dist/layout/arrivals.js.map +0 -1
- package/dist/math-J-ACHyEg.d.ts +0 -159
- package/dist/registerProgram-T9S_PfAX.d.ts +0 -208
- package/dist/renderer/DrawCommand.js +0 -6
- package/dist/renderer/DrawCommand.js.map +0 -1
- package/dist/renderer/WeaselRenderer.js +0 -333
- package/dist/renderer/WeaselRenderer.js.map +0 -1
- package/dist/renderer/batchClip.js +0 -46
- package/dist/renderer/batchClip.js.map +0 -1
- package/dist/renderer/cache/GLImageCache.js +0 -74
- package/dist/renderer/cache/GLImageCache.js.map +0 -1
- package/dist/renderer/cache/GLMeshCache.js +0 -102
- package/dist/renderer/cache/GLMeshCache.js.map +0 -1
- package/dist/renderer/cache/GLTextureCache.js +0 -68
- package/dist/renderer/cache/GLTextureCache.js.map +0 -1
- package/dist/renderer/cache/GradientRampAtlas.js +0 -82
- package/dist/renderer/cache/GradientRampAtlas.js.map +0 -1
- package/dist/renderer/cache/cache.js +0 -13
- package/dist/renderer/cache/cache.js.map +0 -1
- package/dist/renderer/cache/markerCommandCache.js +0 -63
- package/dist/renderer/cache/markerCommandCache.js.map +0 -1
- package/dist/renderer/cache/outlineMeshCache.js +0 -15
- package/dist/renderer/cache/outlineMeshCache.js.map +0 -1
- package/dist/renderer/cache/outlineStrokeMeshCache.js +0 -36
- package/dist/renderer/cache/outlineStrokeMeshCache.js.map +0 -1
- package/dist/renderer/cache/strokeMeshCache.js +0 -55
- package/dist/renderer/cache/strokeMeshCache.js.map +0 -1
- package/dist/renderer/cullDrawCommands.js +0 -90
- package/dist/renderer/cullDrawCommands.js.map +0 -1
- package/dist/renderer/draw/batch.js +0 -133
- package/dist/renderer/draw/batch.js.map +0 -1
- package/dist/renderer/draw/clip.js +0 -89
- package/dist/renderer/draw/clip.js.map +0 -1
- package/dist/renderer/draw/customShader.js +0 -230
- package/dist/renderer/draw/customShader.js.map +0 -1
- package/dist/renderer/draw/drawTriangles.js +0 -8
- package/dist/renderer/draw/drawTriangles.js.map +0 -1
- package/dist/renderer/draw/effects.js +0 -28
- package/dist/renderer/draw/effects.js.map +0 -1
- package/dist/renderer/draw/flushBatch.js +0 -35
- package/dist/renderer/draw/flushBatch.js.map +0 -1
- package/dist/renderer/draw/gradient.js +0 -90
- package/dist/renderer/draw/gradient.js.map +0 -1
- package/dist/renderer/draw/image.js +0 -38
- package/dist/renderer/draw/image.js.map +0 -1
- package/dist/renderer/draw/mesh.js +0 -16
- package/dist/renderer/draw/mesh.js.map +0 -1
- package/dist/renderer/draw/paintBind.js +0 -70
- package/dist/renderer/draw/paintBind.js.map +0 -1
- package/dist/renderer/draw/pathPaint.js +0 -142
- package/dist/renderer/draw/pathPaint.js.map +0 -1
- package/dist/renderer/draw/scratchPass.js +0 -83
- package/dist/renderer/draw/scratchPass.js.map +0 -1
- package/dist/renderer/draw/stencil.js +0 -28
- package/dist/renderer/draw/stencil.js.map +0 -1
- package/dist/renderer/draw/text.js +0 -167
- package/dist/renderer/draw/text.js.map +0 -1
- package/dist/renderer/draw/uniforms.js +0 -77
- package/dist/renderer/draw/uniforms.js.map +0 -1
- package/dist/renderer/draw.js +0 -79
- package/dist/renderer/draw.js.map +0 -1
- package/dist/renderer/drawBatch.js +0 -198
- package/dist/renderer/drawBatch.js.map +0 -1
- package/dist/renderer/effects/EffectTargets.js +0 -48
- package/dist/renderer/effects/EffectTargets.js.map +0 -1
- package/dist/renderer/effects/builtins.js +0 -31
- package/dist/renderer/effects/builtins.js.map +0 -1
- package/dist/renderer/effects/composite.js +0 -11
- package/dist/renderer/effects/composite.js.map +0 -1
- package/dist/renderer/effects/effectPrelude.js +0 -10
- package/dist/renderer/effects/effectPrelude.js.map +0 -1
- package/dist/renderer/effects/types.js +0 -10
- package/dist/renderer/effects/types.js.map +0 -1
- package/dist/renderer/glyphOutlineMesh.js +0 -67
- package/dist/renderer/glyphOutlineMesh.js.map +0 -1
- package/dist/renderer/index.js +0 -20
- package/dist/renderer/math/color.js +0 -321
- package/dist/renderer/math/color.js.map +0 -1
- package/dist/renderer/math/mat3.js +0 -80
- package/dist/renderer/math/mat3.js.map +0 -1
- package/dist/renderer/math/patternSpace.js +0 -22
- package/dist/renderer/math/patternSpace.js.map +0 -1
- package/dist/renderer/math/viewToMat3.js +0 -19
- package/dist/renderer/math/viewToMat3.js.map +0 -1
- package/dist/renderer/paintResources.js +0 -18
- package/dist/renderer/paintResources.js.map +0 -1
- package/dist/renderer/paintScratch.js +0 -37
- package/dist/renderer/paintScratch.js.map +0 -1
- package/dist/renderer/shaders/ShaderProgram.js +0 -74
- package/dist/renderer/shaders/ShaderProgram.js.map +0 -1
- package/dist/renderer/shaders/batchFill.js +0 -119
- package/dist/renderer/shaders/batchFill.js.map +0 -1
- package/dist/renderer/shaders/customPrelude.js +0 -34
- package/dist/renderer/shaders/customPrelude.js.map +0 -1
- package/dist/renderer/shaders/extractUniformNames.js +0 -184
- package/dist/renderer/shaders/extractUniformNames.js.map +0 -1
- package/dist/renderer/shaders/glyphPaint.js +0 -61
- package/dist/renderer/shaders/glyphPaint.js.map +0 -1
- package/dist/renderer/shaders/gradFill.js +0 -31
- package/dist/renderer/shaders/gradFill.js.map +0 -1
- package/dist/renderer/shaders/pathFill.js +0 -14
- package/dist/renderer/shaders/pathFill.js.map +0 -1
- package/dist/renderer/shaders/patternFill.js +0 -25
- package/dist/renderer/shaders/patternFill.js.map +0 -1
- package/dist/renderer/shaders/registerProgram.js +0 -18
- package/dist/renderer/shaders/registerProgram.js.map +0 -1
- package/dist/renderer/spriteSheet.js +0 -14
- package/dist/renderer/spriteSheet.js.map +0 -1
- package/dist/renderer/state/GroupState.js +0 -77
- package/dist/renderer/state/GroupState.js.map +0 -1
- package/dist/renderer/strokeLengths.js +0 -50
- package/dist/renderer/strokeLengths.js.map +0 -1
- package/dist/renderer/syntheticItalic.js +0 -6
- package/dist/renderer/syntheticItalic.js.map +0 -1
- package/dist/renderer/textures/registerTexture.js +0 -34
- package/dist/renderer/textures/registerTexture.js.map +0 -1
- package/dist/scheduling/useVisibleRaf.js +0 -69
- package/dist/scheduling/useVisibleRaf.js.map +0 -1
- package/dist/test-seams-DM2B87-g.d.ts +0 -356
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
import "../interactions/gestures/handleDrag/handleDrag.js";
|
|
2
2
|
import "../interactions/gestures/thresholdDrag/thresholdDrag.js";
|
|
3
3
|
import { RECT_POSE_DESCRIPTOR as e, ROTATED_POSE_DESCRIPTOR as t, poseDescriptorForNode as n, translatePoseViaDescriptor as r, visualBoundsViaDescriptor as i } from "../core/geometry/poseDescriptor.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { WEASEL_CLIPBOARD_MIME as
|
|
14
|
-
import { resolveSpatialReference as
|
|
15
|
-
import { alignDeltaFor as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { bindRig as me, rigidRigApply as he } from "../animation/rig/bindRig.js";
|
|
38
|
-
import { solveIk as ge } from "../animation/rig/solveIk.js";
|
|
39
|
-
import { useRig as _e } from "../animation/rig/useRig.js";
|
|
4
|
+
import { AUTO_POSE_DESCRIPTOR as a, isPathLike as o, isRectPose as s } from "../core/geometry/autoPoseDescriptor.js";
|
|
5
|
+
import { cornerResizeHandles as c, fixedCornerOf as l, hitCornerHandle as u } from "../interactions/actions/resize/cornerHandles.js";
|
|
6
|
+
import { enumerateAnchors as d, withCoord as f } from "../interactions/actions/edit-anchors/geometry.js";
|
|
7
|
+
import { createPoseTarget as p, poseAxes as m, scenePoseTarget as h } from "../animation/poseTarget.js";
|
|
8
|
+
import { aabbCenter as g, pointInRotatedRect as _, rectCorners as v, rotatePoint as y, rotatedRectCorners as b } from "../interactions/actions/rotate/geometry.js";
|
|
9
|
+
import { gesturePlaneReader as x, gestureViewReader as S, screenTolerance as C } from "../interactions/gestures/shared/screenTolerance.js";
|
|
10
|
+
import { forgetTransform as w, lastTransform as T, recordTransform as E } from "../interactions/actions/transform-again/memory.js";
|
|
11
|
+
import { DEFAULT_ROTATION_SNAP_STEP as D, snapRotationWithModifier as O } from "../interactions/actions/rotate/behaviors/snapRotation.js";
|
|
12
|
+
import { DEFAULT_ROTATE_BEHAVIORS as k } from "../interactions/actions/rotate/behaviors/index.js";
|
|
13
|
+
import { WEASEL_CLIPBOARD_MIME as A, WEASEL_CLIPBOARD_MIME_WEB as j, buildWeaselClipboardText as M, embedWeaselMetadataInSvg as N, extractWeaselClipboardFromSvg as P, parseWeaselClipboardText as F, sniffWeaselClipboardText as I } from "../interactions/actions/clipboard/wireFormat.js";
|
|
14
|
+
import { resolveSpatialReference as L } from "../interactions/actions/spatialReference.js";
|
|
15
|
+
import { alignDeltaFor as R, alignTargetBounds as z, useAlign as B } from "../interactions/actions/align/align.js";
|
|
16
|
+
import { dataRestPath as V } from "../animation/rig/skinBinding.js";
|
|
17
|
+
import { bindRig as H, rigidRigApply as U } from "../animation/rig/bindRig.js";
|
|
18
|
+
import { useRig as W } from "../animation/rig/useRig.js";
|
|
19
|
+
import { placeSkeleton as G, rigFromNode as K, unplaceSkeleton as q, useRigNode as J } from "../animation/rig/rigNode.js";
|
|
20
|
+
import { DEFAULT_ROTATION_HANDLE_DISTANCE as Y, hitRotationHandle as X, rotationHandle as Z } from "../interactions/actions/rotate/handle.js";
|
|
21
|
+
import { AUTO_ORIGIN_PROJECTION as Q, RECT_ORIGIN_PROJECTION as $ } from "../interactions/gestures/shared/originProjection.js";
|
|
22
|
+
import { snap as ee } from "../interactions/gestures/shared/snap.js";
|
|
23
|
+
import { useDragGesture as te } from "../interactions/gestures/dragGesture/dragGesture.js";
|
|
24
|
+
import { dragPointOf as ne } from "../interactions/gestures/dragGesture/dragPointOf.js";
|
|
25
|
+
import { useDragRect as re } from "../interactions/gestures/dragRect/dragRect.js";
|
|
26
|
+
import { useDragRadial as ie } from "../interactions/gestures/dragRadial/dragRadial.js";
|
|
27
|
+
import { hitAnchor as ae } from "../interactions/actions/edit-anchors/handles.js";
|
|
28
|
+
import { useClipboardOps as oe } from "../interactions/actions/clipboard/clipboardOps.js";
|
|
29
|
+
import { useDistribute as se } from "../interactions/actions/distribute/distribute.js";
|
|
30
|
+
import { createWrittenPoseTarget as ce } from "../animation/writtenPoseTarget.js";
|
|
31
|
+
import { sceneClipTargets as le } from "../animation/clipTargets.js";
|
|
32
|
+
import { springPose as ue, staggerSpringPose as de, tweenPose as fe } from "../animation/poseHelpers.js";
|
|
33
|
+
import { animateOnSetPose as pe } from "../animation/wrappers/animateOnSetPose.js";
|
|
34
|
+
import { animateLifecycle as me } from "../animation/wrappers/animateLifecycle.js";
|
|
35
|
+
import { createReflowTransition as he, useAnimatedReflow as ge } from "../animation/reflow.js";
|
|
36
|
+
import { momentum as _e } from "../animation/behaviors/momentum.js";
|
|
40
37
|
import { EASINGS as ve, SPRING_PRESETS as ye, cubicBezierEasing as be, easeIn as xe, easeInBack as Se, easeInBounce as Ce, easeInCirc as we, easeInCubic as Te, easeInElastic as Ee, easeInExpo as De, easeInOut as Oe, easeInOutBack as ke, easeInOutBounce as Ae, easeInOutCirc as je, easeInOutCubic as Me, easeInOutElastic as Ne, easeInOutExpo as Pe, easeInOutQuad as Fe, easeInOutQuart as Ie, easeInOutQuint as Le, easeInOutSine as Re, easeInQuad as ze, easeInQuart as Be, easeInQuint as Ve, easeInSine as He, easeOut as Ue, easeOutBack as We, easeOutBounce as Ge, easeOutCirc as Ke, easeOutCubic as qe, easeOutElastic as Je, easeOutExpo as Ye, easeOutQuad as Xe, easeOutQuart as Ze, easeOutQuint as Qe, easeOutSine as $e, hexToOklchDeg as et, hslToSrgb as tt, interpolateSrgb as nt, lerpColorArray as rt, lerpOklab as it, lerpOklch as at, linear as ot, linearSrgbToOklab as st, linearToSrgb as ct, oklabToLinearSrgb as lt, oklabToOklch as ut, oklabToSrgbU8 as dt, oklchDegToHex as ft, oklchToOklab as pt, resolveEasing as mt, srgbFloatToOklab as ht, srgbToHsl as gt, srgbToLinear as _t, srgbU8ToOklab as vt } from "../animation/index.js";
|
|
41
38
|
import { CONTROL_SELECTOR as yt, DRAG_THRESHOLD_PX as bt, isInControlWithin as xt, openPointerSession as St, pastDragThreshold as Ct } from "@weasel-js/routing";
|
|
42
|
-
export {
|
|
39
|
+
export { Q as AUTO_ORIGIN_PROJECTION, a as AUTO_POSE_DESCRIPTOR, yt as CONTROL_SELECTOR, k as DEFAULT_ROTATE_BEHAVIORS, Y as DEFAULT_ROTATION_HANDLE_DISTANCE, D as DEFAULT_ROTATION_SNAP_STEP, bt as DRAG_THRESHOLD_PX, ve as EASINGS, $ as RECT_ORIGIN_PROJECTION, e as RECT_POSE_DESCRIPTOR, t as ROTATED_POSE_DESCRIPTOR, ye as SPRING_PRESETS, A as WEASEL_CLIPBOARD_MIME, j as WEASEL_CLIPBOARD_MIME_WEB, g as aabbCenter, R as alignDeltaFor, z as alignTargetBounds, me as animateLifecycle, pe as animateOnSetPose, H as bindRig, M as buildWeaselClipboardText, c as cornerResizeHandles, p as createPoseTarget, he as createReflowTransition, ce as createWrittenPoseTarget, be as cubicBezierEasing, V as dataRestPath, ne as dragPointOf, xe as easeIn, Se as easeInBack, Ce as easeInBounce, we as easeInCirc, Te as easeInCubic, Ee as easeInElastic, De as easeInExpo, Oe as easeInOut, ke as easeInOutBack, Ae as easeInOutBounce, je as easeInOutCirc, Me as easeInOutCubic, Ne as easeInOutElastic, Pe as easeInOutExpo, Fe as easeInOutQuad, Ie as easeInOutQuart, Le as easeInOutQuint, Re as easeInOutSine, ze as easeInQuad, Be as easeInQuart, Ve as easeInQuint, He as easeInSine, Ue as easeOut, We as easeOutBack, Ge as easeOutBounce, Ke as easeOutCirc, qe as easeOutCubic, Je as easeOutElastic, Ye as easeOutExpo, Xe as easeOutQuad, Ze as easeOutQuart, Qe as easeOutQuint, $e as easeOutSine, N as embedWeaselMetadataInSvg, d as enumerateAnchors, P as extractWeaselClipboardFromSvg, l as fixedCornerOf, w as forgetTransform, x as gesturePlaneReader, S as gestureViewReader, et as hexToOklchDeg, ae as hitAnchor, u as hitCornerHandle, X as hitRotationHandle, tt as hslToSrgb, nt as interpolateSrgb, xt as isInControlWithin, o as isPathLike, s as isRectPose, T as lastTransform, rt as lerpColorArray, it as lerpOklab, at as lerpOklch, ot as linear, st as linearSrgbToOklab, ct as linearToSrgb, _e as momentum, lt as oklabToLinearSrgb, ut as oklabToOklch, dt as oklabToSrgbU8, ft as oklchDegToHex, pt as oklchToOklab, St as openPointerSession, F as parseWeaselClipboardText, Ct as pastDragThreshold, G as placeSkeleton, _ as pointInRotatedRect, m as poseAxes, n as poseDescriptorForNode, E as recordTransform, v as rectCorners, mt as resolveEasing, L as resolveSpatialReference, K as rigFromNode, U as rigidRigApply, y as rotatePoint, b as rotatedRectCorners, Z as rotationHandle, le as sceneClipTargets, h as scenePoseTarget, C as screenTolerance, ee as snap, O as snapRotationWithModifier, I as sniffWeaselClipboardText, ue as springPose, ht as srgbFloatToOklab, gt as srgbToHsl, _t as srgbToLinear, vt as srgbU8ToOklab, de as staggerSpringPose, r as translatePoseViaDescriptor, fe as tweenPose, q as unplaceSkeleton, B as useAlign, ge as useAnimatedReflow, oe as useClipboardOps, se as useDistribute, te as useDragGesture, ie as useDragRadial, re as useDragRect, W as useRig, J as useRigNode, i as visualBoundsViaDescriptor, f as withCoord };
|
package/dist/barrel/paint.js
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import { getAlpha01 as B, mergeAlphaFromPrev as V, toHex8 as H, withAlpha01 as U } from "../util/color.js";
|
|
13
|
-
import { DEFAULT_FILL_COLOR as W, DEFAULT_PALETTE as G, DEFAULT_SHAPE_FILL as K, DEFAULT_STROKE_COLOR as q, GHOST_STROKE as J, cycleFill as Y, paintAlpha as X, paintWithAlpha as Z, paintWithColor as Q, solid as $, strokeOf as ee, strokeWith as te } from "../util/paint.js";
|
|
14
|
-
import { createTilePattern as ne } from "../features/patterns/index.js";
|
|
15
|
-
import { useGradientKinds as re, usePaintKind as ie, usePaintKinds as ae } from "../core/usePaintKinds.js";
|
|
16
|
-
import { STROKE_DASH_RATIOS as oe, alignedStrokeRect as se, composePatternTransform as ce, contrastLineColor as le, dashForStrokeStyle as ue, decomposePatternTransform as de, hexToRgbBytes as fe, parseHexBytes as pe, resolveScreenLength as me, strokeDashStyleOf as he } from "@weasel-js/paint";
|
|
17
|
-
import { trimPolyline as ge } from "@weasel-js/geom/tessellate";
|
|
18
|
-
export { C as BUILTIN_MARKERS, W as DEFAULT_FILL_COLOR, G as DEFAULT_PALETTE, K as DEFAULT_SHAPE_FILL, q as DEFAULT_STROKE_COLOR, J as GHOST_STROKE, oe as STROKE_DASH_RATIOS, se as alignedStrokeRect, d as asPaint, R as commandFill, z as commandStroke, ce as composePatternTransform, le as contrastLineColor, ne as createTilePattern, Y as cycleFill, ue as dashForStrokeStyle, de as decomposePatternTransform, N as fillInPoseFrame, P as fillToBoundsFrame, B as getAlpha01, w as getMarker, f as getPaintKind, o as gradientForBounds, s as gradientGeometry, fe as hexToRgbBytes, e as hexToRgba, c as isGradientFill, p as isPaintKindKnown, F as isPatternSpec, m as listGradientKinds, T as listMarkers, h as listPaintKinds, O as markerInset, k as markerKeyOf, E as markerRegistry, M as markerSites, V as mergeAlphaFromPrev, t as normalizeHex, X as paintAlpha, g as paintKindOf, _ as paintKindRegistry, Z as paintWithAlpha, Q as paintWithColor, n as parseColor, r as parseColorToRgba255, pe as parseHexBytes, D as registerMarker, v as registerPaintKind, y as registerPaintKindLoader, i as resolveColor, I as resolveFillPattern, A as resolveMarkerSize, L as resolvePatternSpec, me as resolveScreenLength, S as resolveStrokeWidth, a as rgbaToHex, l as sampleGradientStops, $ as solid, he as strokeDashStyleOf, j as strokeInsets, ee as strokeOf, te as strokeWith, b as switchGradientKind, H as toHex8, ge as trimPolyline, re as useGradientKinds, ie as usePaintKind, ae as usePaintKinds, x as warmPaintKinds, U as withAlpha01, u as withGradientKind };
|
|
1
|
+
import { getPaintKind as e, listGradientKinds as t, listPaintKinds as n, paintKindOf as r, paintKindRegistry as i, patternFamily as a, registerPaintKind as o, registerPaintKindLoader as s, seedTile as c, switchGradientKind as l } from "../core/paint/paintKinds.js";
|
|
2
|
+
import { getAlpha01 as u, mergeAlphaFromPrev as d, toHex8 as f, withAlpha01 as p } from "../util/color.js";
|
|
3
|
+
import { DEFAULT_FILL_COLOR as m, DEFAULT_PALETTE as h, DEFAULT_SHAPE_FILL as g, DEFAULT_STROKE_COLOR as _, GHOST_STROKE as v, cycleFill as y, paintAlpha as b, paintWithAlpha as x, paintWithColor as S, solid as C, strokeOf as w, strokeWith as T } from "../util/paint.js";
|
|
4
|
+
import { pathPaintOf as E } from "../canvas/nodeShapes/nodePaint.js";
|
|
5
|
+
import { asPaint as D } from "../core/paint/paintKindEntry.js";
|
|
6
|
+
import { useGradientKinds as O, usePaintKind as k, usePaintKinds as A } from "../core/usePaintKinds.js";
|
|
7
|
+
import { commandFill as j, commandPaint as M, commandStroke as N, createTilePattern as P, fillInPoseFrame as F, fillToBoundsFrame as I, isPaintKindKnown as L, resolveFillPattern as R, resolvePatternSpec as z, warmPaintKinds as B } from "@weasel-js/renderer";
|
|
8
|
+
import { STROKE_DASH_RATIOS as V, TILE_KINDS as H, alignedStrokeRect as U, composePatternTransform as W, contrastLineColor as G, dashForStrokeStyle as K, decomposePatternTransform as q, gradientForBounds as J, gradientGeometry as Y, hexToRgbBytes as X, hexToRgba as Z, isGradientPaint as Q, isPatternPaint as $, isSolidPaint as ee, isTileKind as te, isTilePaint as ne, normalizeHex as re, parseColor as ie, parseColorToRgba255 as ae, parseHexBytes as oe, patternPlacementOf as se, resolveColor as ce, resolveScreenLength as le, rgbaToHex as ue, sampleGradientStops as de, strokeDashStyleOf as fe, tileSpecOf as pe, withGradientKind as me } from "@weasel-js/paint";
|
|
9
|
+
import { BUILTIN_MARKERS as he, getMarker as ge, listMarkers as _e, markerInset as ve, markerKeyOf as ye, markerRegistry as be, markerSites as xe, registerMarker as Se, resolveMarkerSize as Ce, resolveStrokeWidth as we, strokeInsets as Te } from "@weasel-js/stroke";
|
|
10
|
+
import { trimPolyline as Ee } from "@weasel-js/geom/tessellate";
|
|
11
|
+
export { he as BUILTIN_MARKERS, m as DEFAULT_FILL_COLOR, h as DEFAULT_PALETTE, g as DEFAULT_SHAPE_FILL, _ as DEFAULT_STROKE_COLOR, v as GHOST_STROKE, V as STROKE_DASH_RATIOS, H as TILE_KINDS, U as alignedStrokeRect, D as asPaint, j as commandFill, M as commandPaint, N as commandStroke, W as composePatternTransform, G as contrastLineColor, P as createTilePattern, y as cycleFill, K as dashForStrokeStyle, q as decomposePatternTransform, F as fillInPoseFrame, I as fillToBoundsFrame, u as getAlpha01, ge as getMarker, e as getPaintKind, J as gradientForBounds, Y as gradientGeometry, X as hexToRgbBytes, Z as hexToRgba, Q as isGradientPaint, L as isPaintKindKnown, $ as isPatternPaint, ee as isSolidPaint, te as isTileKind, ne as isTilePaint, t as listGradientKinds, _e as listMarkers, n as listPaintKinds, ve as markerInset, ye as markerKeyOf, be as markerRegistry, xe as markerSites, d as mergeAlphaFromPrev, re as normalizeHex, b as paintAlpha, r as paintKindOf, i as paintKindRegistry, x as paintWithAlpha, S as paintWithColor, ie as parseColor, ae as parseColorToRgba255, oe as parseHexBytes, E as pathPaintOf, a as patternFamily, se as patternPlacementOf, Se as registerMarker, o as registerPaintKind, s as registerPaintKindLoader, ce as resolveColor, R as resolveFillPattern, Ce as resolveMarkerSize, z as resolvePatternSpec, le as resolveScreenLength, we as resolveStrokeWidth, ue as rgbaToHex, de as sampleGradientStops, c as seedTile, C as solid, fe as strokeDashStyleOf, Te as strokeInsets, w as strokeOf, T as strokeWith, l as switchGradientKind, pe as tileSpecOf, f as toHex8, Ee as trimPolyline, O as useGradientKinds, k as usePaintKind, A as usePaintKinds, B as warmPaintKinds, p as withAlpha01, me as withGradientKind };
|
package/dist/barrel/paths.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import { strokeToPath as O } from "../features/paths/strokeToPath.js";
|
|
15
|
-
import { DEFAULT_FLATTEN_TOLERANCE as k, PATH_C as A, PATH_CMD_LENGTHS as j, PATH_L as M, PATH_M as N, PATH_Q as P, PATH_Z as F, PathBuilder as I, boundsOfPath as L, composePath as R, decomposePath as z, ellipsePath as B, flattenCubic as V, flattenCubicWithArcLen as H, flattenQuadratic as U, flattenQuadraticWithArcLen as W, linePath as G, pathCommandCoordCount as K, pathContainsPoint as q, pathContainsPolygon as J, pathContainsRect as Y, pathDistanceToPoint as X, pathFromD as Z, pathIntersectsPolygon as Q, pathIntersectsRect as $, pathSignedArea as ee, pointAlongPath as te, pointInPath as ne, polygonFromPoints as re, polylineFromPoints as ie, rectPath as ae, regularPolygonPath as oe, reversePath as se, scalePathToBounds as ce, snipPathByPolyline as le, splitPathByPolyline as ue, splitPathBySegment as de, splitSubpaths as fe, starPath as pe, transformPath as me, translatePath as he, unionBoundsPath as ge } from "../features/paths/index.js";
|
|
16
|
-
import { useBooleans as _e } from "../interactions/actions/booleans/useBooleans.js";
|
|
17
|
-
import { useBooleansAdapter as ve } from "../interactions/actions/booleans/useBooleansAdapter.js";
|
|
18
|
-
import { CURVE_REPS as ye, bezierCubic as be, bezierQuadratic as xe, nurbs as Se, spiro as Ce } from "@weasel-js/geom/curves";
|
|
19
|
-
export { ye as CURVE_REPS, k as DEFAULT_FLATTEN_TOLERANCE, A as PATH_C, j as PATH_CMD_LENGTHS, M as PATH_L, N as PATH_M, P as PATH_Q, F as PATH_Z, I as PathBuilder, v as applyBooleanOp, be as bezierCubic, xe as bezierQuadratic, L as boundsOfPath, b as circlePath, R as composePath, y as constrainTo45, s as countPathAnchors, w as createPathEditingOverlayLayer, E as createPathLayer, T as createPenPreviewLayer, z as decomposePath, B as ellipsePath, V as flattenCubic, H as flattenCubicWithArcLen, U as flattenQuadratic, W as flattenQuadraticWithArcLen, G as linePath, Se as nurbs, K as pathCommandCoordCount, q as pathContainsPoint, J as pathContainsPolygon, Y as pathContainsRect, X as pathDistanceToPoint, f as pathDivide, p as pathExclude, Z as pathFromD, l as pathInPoseFrame, u as pathInWorld, m as pathIntersect, Q as pathIntersectsPolygon, $ as pathIntersectsRect, D as pathOriginProjection, o as pathPoseDescriptor, ee as pathSignedArea, h as pathSubtract, n as pathThroughPoseFrame, c as pathToAnchors, g as pathUnion, te as pointAlongPath, ne as pointInPath, re as polygonFromPoints, ie as polylineFromPoints, r as poseFrameInverseOf, i as poseFrameOf, a as poseLinearOf, e as poseRotationOf, x as rectMarkerPath, ae as rectPath, oe as regularPolygonPath, se as reversePath, t as rotatePathAround, S as roundRectPath, ce as scalePathToBounds, le as snipPathByPolyline, Ce as spiro, ue as splitPathByPolyline, de as splitPathBySegment, fe as splitSubpaths, C as squarePath, pe as starPath, O as strokeToPath, me as transformPath, he as translatePath, _ as trianglesToPath, ge as unionBoundsPath, _e as useBooleans, ve as useBooleansAdapter, d as worldEditToStorage };
|
|
1
|
+
import { pathPoseDescriptor as e } from "../core/geometry/pathPoseDescriptor.js";
|
|
2
|
+
import { applyBooleanOp as t, previewBooleanOp as n } from "../interactions/actions/booleans/booleans.js";
|
|
3
|
+
import { SHAPE_COUNT_RANGE as r, STAR_RATIO_RANGE as i, clampShapeGenerator as a, isShapeGenerator as o, regenerateShape as s, settleShapeGenerator as c, shapeGeneratorOf as l, shapeGeneratorPath as u, withoutShapeGenerator as d } from "../features/paths/shapeGenerator.js";
|
|
4
|
+
import { createPenPreviewLayer as f } from "../features/paths/penPreviewLayer.js";
|
|
5
|
+
import { constrainTo45 as p } from "../util/constrainTo45.js";
|
|
6
|
+
import { createPathEditingOverlayLayer as m } from "../features/paths/pathEditingOverlayLayer.js";
|
|
7
|
+
import { createPathLayer as h } from "../features/paths/pathLayer.js";
|
|
8
|
+
import { pathOriginProjection as g } from "../features/paths/originProjection.js";
|
|
9
|
+
import { DEFAULT_FLATTEN_TOLERANCE as _, PATH_C as v, PATH_CMD_LENGTHS as y, PATH_L as b, PATH_M as x, PATH_Q as S, PATH_Z as C, PathBuilder as w, averageAnchorsAt as T, boundsOfPath as E, circlePath as D, composePath as O, countPathAnchors as k, decomposePath as A, ellipsePath as j, flattenCubic as M, flattenCubicWithArcLen as N, flattenQuadratic as P, flattenQuadraticWithArcLen as F, hasOpenSubpath as I, joinAnchorsAt as L, linePath as R, offsetPath as z, pathCommandCoordCount as B, pathContainsPoint as V, pathContainsPolygon as H, pathContainsRect as U, pathDistanceToPoint as W, pathDivide as G, pathExclude as K, pathFromD as q, pathInPoseFrame as J, pathInWorld as Y, pathIntersect as X, pathIntersectsPolygon as Z, pathIntersectsRect as Q, pathSignedArea as $, pathSubtract as ee, pathThroughPoseFrame as te, pathToAnchors as ne, pathUnion as re, pointAlongPath as ie, pointInPath as ae, polygonFromPoints as oe, polylineFromPoints as se, poseFrameInverseOf as ce, poseFrameOf as le, poseLinearOf as ue, poseRotationOf as de, rectMarkerPath as fe, rectPath as pe, regularPolygonPath as me, reversePath as he, rotatePathAround as ge, roundRectPath as _e, scalePathToBounds as ve, simplifyPath as ye, snipPathByPolyline as be, snipPathsAtCrossings as xe, splitByClosure as Se, splitPathByPolyline as Ce, splitPathBySegment as we, splitSubpaths as Te, squarePath as Ee, starPath as De, strokeToPath as Oe, transformPath as ke, translatePath as Ae, trianglesToPath as je, unionBoundsPath as Me, worldEditToStorage as Ne } from "../features/paths/index.js";
|
|
10
|
+
import { useBooleans as Pe } from "../interactions/actions/booleans/useBooleans.js";
|
|
11
|
+
import { useBooleansAdapter as Fe } from "../interactions/actions/booleans/useBooleansAdapter.js";
|
|
12
|
+
import { CURVE_REPS as Ie, bezierCubic as Le, bezierQuadratic as Re, nurbs as ze, spiro as Be } from "@weasel-js/geom/curves";
|
|
13
|
+
export { Ie as CURVE_REPS, _ as DEFAULT_FLATTEN_TOLERANCE, v as PATH_C, y as PATH_CMD_LENGTHS, b as PATH_L, x as PATH_M, S as PATH_Q, C as PATH_Z, w as PathBuilder, r as SHAPE_COUNT_RANGE, i as STAR_RATIO_RANGE, t as applyBooleanOp, T as averageAnchorsAt, Le as bezierCubic, Re as bezierQuadratic, E as boundsOfPath, D as circlePath, a as clampShapeGenerator, O as composePath, p as constrainTo45, k as countPathAnchors, m as createPathEditingOverlayLayer, h as createPathLayer, f as createPenPreviewLayer, A as decomposePath, j as ellipsePath, M as flattenCubic, N as flattenCubicWithArcLen, P as flattenQuadratic, F as flattenQuadraticWithArcLen, I as hasOpenSubpath, o as isShapeGenerator, L as joinAnchorsAt, R as linePath, ze as nurbs, z as offsetPath, B as pathCommandCoordCount, V as pathContainsPoint, H as pathContainsPolygon, U as pathContainsRect, W as pathDistanceToPoint, G as pathDivide, K as pathExclude, q as pathFromD, J as pathInPoseFrame, Y as pathInWorld, X as pathIntersect, Z as pathIntersectsPolygon, Q as pathIntersectsRect, g as pathOriginProjection, e as pathPoseDescriptor, $ as pathSignedArea, ee as pathSubtract, te as pathThroughPoseFrame, ne as pathToAnchors, re as pathUnion, ie as pointAlongPath, ae as pointInPath, oe as polygonFromPoints, se as polylineFromPoints, ce as poseFrameInverseOf, le as poseFrameOf, ue as poseLinearOf, de as poseRotationOf, n as previewBooleanOp, fe as rectMarkerPath, pe as rectPath, s as regenerateShape, me as regularPolygonPath, he as reversePath, ge as rotatePathAround, _e as roundRectPath, ve as scalePathToBounds, c as settleShapeGenerator, l as shapeGeneratorOf, u as shapeGeneratorPath, ye as simplifyPath, be as snipPathByPolyline, xe as snipPathsAtCrossings, Be as spiro, Se as splitByClosure, Ce as splitPathByPolyline, we as splitPathBySegment, Te as splitSubpaths, Ee as squarePath, De as starPath, Oe as strokeToPath, ke as transformPath, Ae as translatePath, je as trianglesToPath, Me as unionBoundsPath, Pe as useBooleans, Fe as useBooleansAdapter, d as withoutShapeGenerator, Ne as worldEditToStorage };
|
package/dist/barrel/renderer.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
import { mergeContributions as S } from "../canvas/surfaceContribution.js";
|
|
16
|
-
import { canQueryLocalFonts as C, cssFamilyName as w, cssFontFamily as T, cssFontFamilyLoading as E, enableLocalFontOutlines as D, fontOutlineRegistry as O, fontRegistry as k, hasFontOutlines as A, isCanvasFont as j, listFontOutlines as M, loadFontOutlines as N, outlineStatus as P, registerCanvasFont as F, registerFont as I, registerFontOutlines as L, subscribeGlyphReady as R, unregisterCanvasFont as z, unregisterFontOutlines as B, warmFonts as V } from "@weasel-js/font";
|
|
17
|
-
import { createReflectable as H } from "@weasel-js/registry";
|
|
18
|
-
import { assembleEntries as U, liveScope as W, modeShortcutSpec as G, modeShortcuts as K, scopeBindings as q } from "@weasel-js/routing";
|
|
19
|
-
import { CURSOR_ANGLE_STEPS as J, CURSOR_MAX_CSS_PX as Y, bakeCursor as X, createPaintedCursorState as Z, cursorFor as Q, resolveCursor as $, resolveCursorTier as ee } from "@weasel-js/cursor";
|
|
20
|
-
export { x as BUILTIN_TOOL_IDS, _ as COMPOSITE_FEATURES, J as CURSOR_ANGLE_STEPS, Y as CURSOR_MAX_CSS_PX, v as FEATURE_ACTION_IDS, l as KIT_SHAPE_KINDS, m as KIT_VERSIONS, d as PAINTED_CURSOR_LAYER_ID, y as SCENE_CANVAS_FEATURES, u as SHAPE_KINDS, t as SPRITE_STRIDE, b as TOOL_DRIVEN_ACTION_IDS, U as assembleEntries, X as bakeCursor, o as blur, C as canQueryLocalFonts, h as checkRequirements, f as createPaintedCursorLayer, Z as createPaintedCursorState, H as createReflectable, w as cssFamilyName, T as cssFontFamily, E as cssFontFamilyLoading, i as cullDrawCommands, Q as cursorFor, D as enableLocalFontOutlines, O as fontOutlineRegistry, k as fontRegistry, n as frameRect, A as hasFontOutlines, j as isCanvasFont, M as listFontOutlines, W as liveScope, N as loadFontOutlines, e as mat3, S as mergeContributions, G as modeShortcutSpec, K as modeShortcuts, P as outlineStatus, p as paletteInsertPaint, F as registerCanvasFont, a as registerEffect, I as registerFont, L as registerFontOutlines, $ as resolveCursor, ee as resolveCursorTier, c as rotateAroundAABBCenter, g as satisfiesRange, q as scopeBindings, R as subscribeGlyphReady, z as unregisterCanvasFont, B as unregisterFontOutlines, r as viewToMat3, s as vignette, V as warmFonts };
|
|
1
|
+
import { rotateAroundAABBCenter as e } from "../canvas/poseRotation.js";
|
|
2
|
+
import { KIT_SHAPE_KINDS as t, SHAPE_KINDS as n } from "../core/shapeKinds.js";
|
|
3
|
+
import { PAINTED_CURSOR_LAYER_ID as r, createPaintedCursorLayer as i } from "../canvas/paintedCursorLayer.js";
|
|
4
|
+
import { paletteInsertPaint as a } from "../canvas/deps/insert.js";
|
|
5
|
+
import { KIT_VERSIONS as o, checkRequirements as s, satisfiesRange as c } from "../canvas/kitRequirements.js";
|
|
6
|
+
import { COMPOSITE_FEATURES as l, FEATURE_ACTION_IDS as u, SCENE_CANVAS_FEATURES as d, TOOL_DRIVEN_ACTION_IDS as f } from "../canvas/SceneCanvas/features.js";
|
|
7
|
+
import { BUILTIN_TOOL_IDS as p } from "../canvas/SceneCanvas/props.js";
|
|
8
|
+
import { mergeContributions as m } from "../canvas/surfaceContribution.js";
|
|
9
|
+
import { SPRITE_STRIDE as h, blur as g, cullDrawCommands as _, frameRect as v, mat3 as y, registerEffect as b, viewToMat3 as x, vignette as S } from "@weasel-js/renderer";
|
|
10
|
+
import { assembleEntries as C, liveScope as w, modeShortcutSpec as T, modeShortcuts as E, scopeBindings as D } from "@weasel-js/routing";
|
|
11
|
+
import { createReflectable as O } from "@weasel-js/registry";
|
|
12
|
+
import { canQueryLocalFonts as k, cssFamilyName as A, cssFontFamily as j, cssFontFamilyLoading as M, enableLocalFontOutlines as N, fontOutlineRegistry as P, fontRegistry as F, hasFontOutlines as I, isCanvasFont as L, listFontOutlines as R, loadFontOutlines as z, outlineStatus as B, refreshCanvasFont as V, registerCanvasFont as H, registerFont as U, registerFontOutlines as W, subscribeGlyphReady as G, unregisterCanvasFont as K, unregisterFontOutlines as q, warmFonts as J } from "@weasel-js/font";
|
|
13
|
+
import { CURSOR_ANGLE_STEPS as Y, CURSOR_MAX_CSS_PX as X, bakeCursor as Z, createCursorSink as Q, createPaintedCursorState as $, cursorFor as ee, resolveCursor as te, resolveCursorTier as ne } from "@weasel-js/cursor";
|
|
14
|
+
export { p as BUILTIN_TOOL_IDS, l as COMPOSITE_FEATURES, Y as CURSOR_ANGLE_STEPS, X as CURSOR_MAX_CSS_PX, u as FEATURE_ACTION_IDS, t as KIT_SHAPE_KINDS, o as KIT_VERSIONS, r as PAINTED_CURSOR_LAYER_ID, d as SCENE_CANVAS_FEATURES, n as SHAPE_KINDS, h as SPRITE_STRIDE, f as TOOL_DRIVEN_ACTION_IDS, C as assembleEntries, Z as bakeCursor, g as blur, k as canQueryLocalFonts, s as checkRequirements, Q as createCursorSink, i as createPaintedCursorLayer, $ as createPaintedCursorState, O as createReflectable, A as cssFamilyName, j as cssFontFamily, M as cssFontFamilyLoading, _ as cullDrawCommands, ee as cursorFor, N as enableLocalFontOutlines, P as fontOutlineRegistry, F as fontRegistry, v as frameRect, I as hasFontOutlines, L as isCanvasFont, R as listFontOutlines, w as liveScope, z as loadFontOutlines, y as mat3, m as mergeContributions, T as modeShortcutSpec, E as modeShortcuts, B as outlineStatus, a as paletteInsertPaint, V as refreshCanvasFont, H as registerCanvasFont, b as registerEffect, U as registerFont, W as registerFontOutlines, te as resolveCursor, ne as resolveCursorTier, e as rotateAroundAABBCenter, c as satisfiesRange, D as scopeBindings, G as subscribeGlyphReady, K as unregisterCanvasFont, q as unregisterFontOutlines, x as viewToMat3, S as vignette, J as warmFonts };
|
package/dist/barrel/routing.js
CHANGED
|
@@ -1,51 +1,58 @@
|
|
|
1
1
|
import { CORNER_ANCHORS as e, cornerPoint as t } from "../interactions/actions/resize/cornerHandles.js";
|
|
2
2
|
import { actionShortcuts as n, keySpecShortcut as r } from "../interactions/actions/actionShortcuts.js";
|
|
3
3
|
import { editingLayer as i, inPlane as a, insertLayer as o, selectionLayer as s } from "../interactions/actions/planeInput.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { resizeAction as u } from "../interactions/actions/
|
|
7
|
-
import { rotateAction as d } from "../interactions/actions/
|
|
4
|
+
import { defaultCommitAdapter as c } from "../interactions/actions/defaultCommitAdapter.js";
|
|
5
|
+
import { moveAction as l } from "../interactions/actions/move/action.js";
|
|
6
|
+
import { resizeAction as u } from "../interactions/actions/resize/action.js";
|
|
7
|
+
import { rotateAction as d } from "../interactions/actions/rotate/action.js";
|
|
8
8
|
import { areaSelectAction as f } from "../interactions/actions/defaults/areaSelect.js";
|
|
9
|
-
import { insertAction as p } from "../interactions/actions/
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { computeSliceOps as
|
|
27
|
-
import { useSliceDep as
|
|
28
|
-
import { defineTool as
|
|
29
|
-
import { useKeybindings as
|
|
30
|
-
import { pickTopMostHit as
|
|
31
|
-
import { AREA_SELECT_ID as
|
|
32
|
-
import { useSelectTool as
|
|
33
|
-
import { useHandTool as
|
|
34
|
-
import { DRAG_PAN_ID as
|
|
35
|
-
import { useTextTool as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
|
|
9
|
+
import { insertAction as p } from "../interactions/actions/insert/action.js";
|
|
10
|
+
import { INSERT_REPOSITION_BINDING as m, insertRepositionAction as h } from "../interactions/actions/insert/repositionAction.js";
|
|
11
|
+
import { clearSelectionAction as g } from "../interactions/actions/defaults/clearSelection.js";
|
|
12
|
+
import { cloneAction as _ } from "../interactions/actions/clone/action.js";
|
|
13
|
+
import { viewportDragPanAction as v } from "../interactions/actions/defaults/viewportDragPan.js";
|
|
14
|
+
import { makeViewportZoomAction as y, viewportZoomAction as b } from "../interactions/actions/defaults/viewportZoom.js";
|
|
15
|
+
import { makeViewportWheelPanAction as x, viewportWheelPanAction as S } from "../interactions/actions/defaults/viewportWheelPan.js";
|
|
16
|
+
import { editAnchorsAction as C } from "../interactions/actions/edit-anchors/action.js";
|
|
17
|
+
import { selectFromLasso as w } from "../interactions/actions/lasso-select/behaviors/selectFromLasso.js";
|
|
18
|
+
import { lassoSelectAction as T } from "../interactions/actions/lasso-select/action.js";
|
|
19
|
+
import { sliceAction as E } from "../interactions/actions/defaults/slice.js";
|
|
20
|
+
import { makePinchZoomAction as D, pinchZoomAction as O } from "../interactions/actions/defaults/pinchZoom.js";
|
|
21
|
+
import { clipboardCopyAction as k, clipboardCutAction as A, clipboardPasteAction as j, clipboardPasteEventAction as M } from "../interactions/actions/clipboard/action.js";
|
|
22
|
+
import { enterTextEditAction as N } from "../interactions/actions/defaults/enterTextEdit.js";
|
|
23
|
+
import { KIT_STANDARD_ACTION_IDS as P, useStandardActions as F } from "../interactions/actions/useStandardActions.js";
|
|
24
|
+
import { useResizePolicy as I } from "../canvas/deps/resizePolicy.js";
|
|
25
|
+
import { usePoseDescriptorDepSource as L } from "../canvas/deps/poseDescriptor.js";
|
|
26
|
+
import { computeSliceOps as R } from "../interactions/actions/defaults/sliceOps.js";
|
|
27
|
+
import { useSliceDep as z, useSliceDepSource as B } from "../canvas/deps/slice.js";
|
|
28
|
+
import { defineTool as V, useTools as H } from "../tools/overlayBinding.js";
|
|
29
|
+
import { useKeybindings as U } from "../tools/useKeybindings.js";
|
|
30
|
+
import { pickTopMostHit as W } from "../tools/builtin/pickTopMostHit.js";
|
|
31
|
+
import { AREA_SELECT_ID as G, SELECTION_MOVE_ID as K, SELECTION_RESIZE_ID as q, SELECTION_ROTATE_ID as J, SELECTION_TRANSFORM_ID as Y, areaSelectContribution as X, onEmptyCanvas as Z, selectionMoveBindings as Q, selectionMoveContribution as $, selectionResizeBindings as ee, selectionResizeContribution as te, selectionRotateBindings as ne, selectionRotateContribution as re, selectionTransformBindings as ie, selectionTransformContribution as ae } from "../tools/builtin/select/selectionContributions.js";
|
|
32
|
+
import { useSelectTool as oe } from "../tools/builtin/select/useSelectTool.js";
|
|
33
|
+
import { useHandTool as se } from "../tools/builtin/hand/useHandTool.js";
|
|
34
|
+
import { DRAG_PAN_ID as ce, dragPanContribution as le } from "../tools/builtin/hand/dragPanContribution.js";
|
|
35
|
+
import { useTextTool as ue } from "../tools/builtin/text/useTextTool.js";
|
|
36
|
+
import { placedRig as de } from "../tools/builtin/bone/placedRig.js";
|
|
37
|
+
import { createBoneOverlay as fe } from "../tools/builtin/bone/boneOverlay.js";
|
|
38
|
+
import { createRigEditState as pe } from "../tools/builtin/bone/rigEditState.js";
|
|
39
|
+
import { useBoneTool as me } from "../tools/builtin/bone/useBoneTool.js";
|
|
40
|
+
import { weighedPaths as he } from "../tools/builtin/weight/weightActions.js";
|
|
41
|
+
import { createWeightOverlay as ge } from "../tools/builtin/weight/weightOverlay.js";
|
|
42
|
+
import { useWeightTool as _e } from "../tools/builtin/weight/useWeightTool.js";
|
|
43
|
+
import { usePenTool as ve } from "../tools/builtin/pen/usePenTool.js";
|
|
44
|
+
import { useRectTool as ye } from "../tools/builtin/rect/useRectTool.js";
|
|
45
|
+
import { useEllipseTool as be } from "../tools/builtin/ellipse/useEllipseTool.js";
|
|
46
|
+
import { useImageTool as xe } from "../tools/builtin/image/useImageTool.js";
|
|
47
|
+
import { useEyedropperTool as Se } from "../tools/builtin/eyedropper/useEyedropperTool.js";
|
|
48
|
+
import { useLineTool as Ce } from "../tools/builtin/line/useLineTool.js";
|
|
49
|
+
import { useLassoTool as we } from "../tools/builtin/lasso/useLassoTool.js";
|
|
50
|
+
import { usePolygonTool as Te } from "../tools/builtin/polygon/usePolygonTool.js";
|
|
51
|
+
import { useStarTool as Ee } from "../tools/builtin/star/useStarTool.js";
|
|
52
|
+
import { usePencilTool as De } from "../tools/builtin/pencil/usePencilTool.js";
|
|
53
|
+
import { useSliceTool as Oe } from "../tools/builtin/slice/useSliceTool.js";
|
|
54
|
+
import { useLatest as ke } from "@weasel-js/react";
|
|
55
|
+
import { ActionDisabledReason as Ae, actionBindings as je, actionItems as Me, buildDepsFromRequires as Ne, createDepRegistry as Pe, createDispatcher as Fe, deleteScratch as Ie, evaluateActive as Le, evaluateEnabled as Re, getScratch as ze, heldKeySpec as Be, resolveParams as Ve, scratchKey as He, setScratch as Ue, specificity as We, tuneAction as Ge } from "@weasel-js/routing";
|
|
56
|
+
import { bodyPredicate as Ke, hitPredicate as qe } from "@weasel-js/gestures";
|
|
57
|
+
import { ActionsProvider as Je, ActiveToolContextProvider as Ye, ActiveToolContextProviderIfRoot as Xe, DepRegistryProvider as Ze, InputScope as Qe, Yoke as $e, useAction as et, useActionsRegistry as tt, useActiveToolContext as nt, useDepRegistry as rt, useDepSource as it, useGestureDispatcher as at, useOngoingAction as ot, useOptionalActiveToolContext as st, useOptionalDepRegistry as ct, useYoke as lt } from "@weasel-js/routing/react";
|
|
58
|
+
export { G as AREA_SELECT_ID, Ae as ActionDisabledReason, Je as ActionsProvider, Ye as ActiveToolContextProvider, Xe as ActiveToolContextProviderIfRoot, e as CORNER_ANCHORS, ce as DRAG_PAN_ID, Ze as DepRegistryProvider, m as INSERT_REPOSITION_BINDING, Qe as InputScope, P as KIT_STANDARD_ACTION_IDS, K as SELECTION_MOVE_ID, q as SELECTION_RESIZE_ID, J as SELECTION_ROTATE_ID, Y as SELECTION_TRANSFORM_ID, $e as Yoke, je as actionBindings, Me as actionItems, n as actionShortcuts, f as areaSelectAction, X as areaSelectContribution, Ke as bodyPredicate, Ne as buildDepsFromRequires, g as clearSelectionAction, k as clipboardCopyAction, A as clipboardCutAction, j as clipboardPasteAction, M as clipboardPasteEventAction, _ as cloneAction, R as computeSliceOps, t as cornerPoint, fe as createBoneOverlay, Pe as createDepRegistry, Fe as createDispatcher, pe as createRigEditState, ge as createWeightOverlay, c as defaultCommitAdapter, V as defineTool, Ie as deleteScratch, le as dragPanContribution, C as editAnchorsAction, i as editingLayer, N as enterTextEditAction, Le as evaluateActive, Re as evaluateEnabled, ze as getScratch, Be as heldKeySpec, qe as hitPredicate, a as inPlane, p as insertAction, o as insertLayer, h as insertRepositionAction, r as keySpecShortcut, T as lassoSelectAction, D as makePinchZoomAction, x as makeViewportWheelPanAction, y as makeViewportZoomAction, l as moveAction, Z as onEmptyCanvas, W as pickTopMostHit, O as pinchZoomAction, de as placedRig, u as resizeAction, Ve as resolveParams, d as rotateAction, He as scratchKey, w as selectFromLasso, s as selectionLayer, Q as selectionMoveBindings, $ as selectionMoveContribution, ee as selectionResizeBindings, te as selectionResizeContribution, ne as selectionRotateBindings, re as selectionRotateContribution, ie as selectionTransformBindings, ae as selectionTransformContribution, Ue as setScratch, E as sliceAction, We as specificity, Ge as tuneAction, et as useAction, tt as useActionsRegistry, nt as useActiveToolContext, me as useBoneTool, rt as useDepRegistry, it as useDepSource, be as useEllipseTool, Se as useEyedropperTool, at as useGestureDispatcher, se as useHandTool, xe as useImageTool, U as useKeybindings, we as useLassoTool, ke as useLatest, Ce as useLineTool, ot as useOngoingAction, st as useOptionalActiveToolContext, ct as useOptionalDepRegistry, ve as usePenTool, De as usePencilTool, Te as usePolygonTool, L as usePoseDescriptorDepSource, ye as useRectTool, I as useResizePolicy, oe as useSelectTool, z as useSliceDep, B as useSliceDepSource, Oe as useSliceTool, F as useStandardActions, Ee as useStarTool, ue as useTextTool, H as useTools, _e as useWeightTool, lt as useYoke, v as viewportDragPanAction, S as viewportWheelPanAction, b as viewportZoomAction, he as weighedPaths };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IDENTITY_POSE_COMPOSITION as e, composeWorldPose as t, composesFrames as n, rebaseLocalPose as r } from "../core/scene/composeFrame.js";
|
|
2
|
+
import { RECT_POSE_COMPOSITION as i, RIGID_POSE_COMPOSITION as a, composeRectPose as o, composeRigidPose as s, decomposeRectPose as c, decomposeRigidPose as l, translateRectPose as u, worldPoseLookup as d } from "../core/scene/composePose.js";
|
|
3
|
+
import { definesFrame as f, derivedDepOf as p, derivedPose as m, documentPose as h, effectivePose as g } from "../core/scene/effectivePose.js";
|
|
4
|
+
import { axisAlignedBounds as _, unionAABB as v, unionBounds as y } from "../core/geometry/unionBounds.js";
|
|
5
|
+
import { asNodeId as b } from "../core/scene/types.js";
|
|
6
|
+
import { applyOpsTo as x, dispatchApplyBatch as S } from "../core/applyOps.js";
|
|
7
|
+
import { SceneArrivalRefused as C } from "../core/scene/arrivals.js";
|
|
8
|
+
import { opFactoryRegistry as w, rebuildOp as T, registerOpFactory as E, registeredOpNames as D } from "../core/ops/registry.js";
|
|
9
|
+
import { createReparentOp as O } from "../core/ops/reparent.js";
|
|
10
|
+
import { createTransformOp as k } from "../core/ops/transform.js";
|
|
11
|
+
import { createSetDataOp as A } from "../core/ops/setData.js";
|
|
12
|
+
import { createSetLayerOp as j } from "../core/ops/setLayer.js";
|
|
13
|
+
import { createDeleteOp as M } from "../core/ops/delete.js";
|
|
14
|
+
import { createInsertOp as N } from "../core/ops/create.js";
|
|
15
|
+
import { createSetSelectionOp as P } from "../core/ops/select.js";
|
|
16
|
+
import { UNION_OF_CHILDREN as F, unionOfChildren as I } from "../core/scene/kitRegistry.js";
|
|
17
|
+
import { canBringForward as L, canSendBackward as R } from "../core/ops/reorder/algorithms.js";
|
|
18
|
+
import { createSetChildOrderOp as z } from "../core/ops/reorder/setChildOrder.js";
|
|
19
|
+
import { createMoveToIndexOp as B, createReorderOp as V } from "../core/ops/reorder/index.js";
|
|
20
|
+
import { createPoseOverrides as H } from "../core/scene/poseOverrides.js";
|
|
21
|
+
import { createArrangeOp as U } from "../core/ops/arrange.js";
|
|
22
|
+
import { createHistory as W } from "../core/ops/createHistory.js";
|
|
23
|
+
import { SCENE_HISTORY_FORM as G } from "../core/scene/historyForm.js";
|
|
24
|
+
import { sceneSelectionStore as K } from "../core/scene/sceneSelection.js";
|
|
25
|
+
import { createScene as q, sceneFromJSON as J } from "../core/scene/scene.js";
|
|
26
|
+
import { createSetTextOp as Y } from "../core/ops/setText.js";
|
|
27
|
+
import { createSetLayoutOp as X } from "../core/ops/setLayout.js";
|
|
28
|
+
import { createSetPathOp as Z } from "../core/ops/setPath.js";
|
|
29
|
+
import { nestedHitTester as Q } from "../core/scene/nestedHit.js";
|
|
30
|
+
import { unionOfChildrenVia as $ } from "../core/scene/unionOfChildren.js";
|
|
31
|
+
import { useScene as ee } from "../core/scene/useScene.js";
|
|
32
|
+
import { reconcileSpecs as te } from "../core/scene/reconcileSpecs.js";
|
|
33
|
+
import { sceneUnitScopes as ne } from "../core/scene/unitScopes.js";
|
|
34
|
+
import { createPoseFeed as re } from "../core/scene/poseFeed.js";
|
|
35
|
+
import { MIXED as ie } from "@weasel-js/registry";
|
|
36
|
+
import { swapOp as ae } from "@weasel-js/history";
|
|
37
|
+
export { e as IDENTITY_POSE_COMPOSITION, ie as MIXED, i as RECT_POSE_COMPOSITION, a as RIGID_POSE_COMPOSITION, G as SCENE_HISTORY_FORM, C as SceneArrivalRefused, F as UNION_OF_CHILDREN, x as applyOpsTo, b as asNodeId, _ as axisAlignedBounds, L as canBringForward, R as canSendBackward, o as composeRectPose, s as composeRigidPose, t as composeWorldPose, n as composesFrames, U as createArrangeOp, M as createDeleteOp, W as createHistory, N as createInsertOp, B as createMoveToIndexOp, re as createPoseFeed, H as createPoseOverrides, V as createReorderOp, O as createReparentOp, q as createScene, z as createSetChildOrderOp, A as createSetDataOp, j as createSetLayerOp, X as createSetLayoutOp, Z as createSetPathOp, P as createSetSelectionOp, Y as createSetTextOp, k as createTransformOp, c as decomposeRectPose, l as decomposeRigidPose, f as definesFrame, p as derivedDepOf, m as derivedPose, S as dispatchApplyBatch, h as documentPose, g as effectivePose, Q as nestedHitTester, w as opFactoryRegistry, r as rebaseLocalPose, T as rebuildOp, te as reconcileSpecs, E as registerOpFactory, D as registeredOpNames, J as sceneFromJSON, K as sceneSelectionStore, ne as sceneUnitScopes, ae as swapOp, u as translateRectPose, v as unionAABB, y as unionBounds, I as unionOfChildren, $ as unionOfChildrenVia, ee as useScene, d as worldPoseLookup };
|
package/dist/barrel/text.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { fitTextPose as
|
|
9
|
-
|
|
10
|
-
import { domToRuns as _, runsToDom as v } from "../features/text/domRuns.js";
|
|
11
|
-
import { applyStyleToRange as y, patchRangeStyle as b, styleAtRange as x } from "../features/text/runs/rangeStyle.js";
|
|
12
|
-
import { nodeHasFlag as S, setFlagOverRange as C, unboldPatch as w } from "../features/text/runs/flagRange.js";
|
|
13
|
-
import { effectiveRangeStyle as T, rangeWeight as E } from "../features/text/runs/effectiveRangeStyle.js";
|
|
14
|
-
import { TEXT_EDIT_FONT_HOLD as D, useTextEdit as O } from "../features/text/useTextEdit.js";
|
|
15
|
-
import { useSceneTextEdit as k } from "../features/text/useSceneTextEdit.js";
|
|
16
|
-
import { useCreateOutlinesAdapter as A } from "../interactions/actions/outlines/useCreateOutlinesAdapter.js";
|
|
17
|
-
import { DEFAULT_DECORATION_METRICS as j, DEFAULT_TEXT_STYLE as M, MARKDOWN_RUN_GRAMMAR as N, SCRIPT_METRICS as P, SMALL_CAPS_SCALE as F, cachedLayoutRuns as I, createMarkdownRenderer as L, decorationMetrics as R, fontString as z, isBoldWeight as B, isSmallCapsLetter as V, layoutMarkdown as H, layoutRuns as U, layoutTextPose as W, markdownToRuns as G, measureText as K, measureTextBounds as q, measuredWidth as J, numericWeight as Y, paragraphDirection as X, registerBidi as Z, resolveAlign as Q, resolveRunFace as $, resolveRuns as ee, resolveTextStyle as te, runsToMarkdown as ne, runsToPlainText as re, scriptMetrics as ie, scriptMetricsFor as ae, smallCapsScale as oe, smallCapsScaleFor as se, smallCapsText as ce, textLineBoxes as le, textPoseLayoutInput as ue, toRuns as de, transformRunTexts as fe, verticalAlignOffset as pe } from "@weasel-js/text";
|
|
18
|
-
export { j as DEFAULT_DECORATION_METRICS, M as DEFAULT_TEXT_STYLE, N as MARKDOWN_RUN_GRAMMAR, P as SCRIPT_METRICS, F as SMALL_CAPS_SCALE, D as TEXT_EDIT_FONT_HOLD, r as TextOutlinesError, s as applyCreateOutlines, y as applyStyleToRange, I as cachedLayoutRuns, f as caretIndexAt, h as charOffsetToDomPosition, L as createMarkdownRenderer, d as createTextLayer, R as decorationMetrics, l as defaultLabelTextRenderer, g as domPositionToCharOffset, _ as domToRuns, T as effectiveRangeStyle, m as fitTextPose, z as fontString, B as isBoldWeight, V as isSmallCapsLetter, c as isTextData, H as layoutMarkdown, U as layoutRuns, W as layoutTextPose, i as loadTextOutlines, G as markdownToRuns, K as measureText, q as measureTextBounds, J as measuredWidth, S as nodeHasFlag, Y as numericWeight, X as paragraphDirection, b as patchRangeStyle, p as pointInTextPose, E as rangeWeight, Z as registerBidi, u as renderLabel, Q as resolveAlign, $ as resolveRunFace, ee as resolveRuns, te as resolveTextStyle, v as runsToDom, ne as runsToMarkdown, re as runsToPlainText, ie as scriptMetrics, ae as scriptMetricsFor, C as setFlagOverRange, oe as smallCapsScale, se as smallCapsScaleFor, ce as smallCapsText, x as styleAtRange, e as textCommand, t as textCommandFromPose, n as textCommandFromRuns, le as textLineBoxes, ue as textPoseLayoutInput, a as textToPath, o as textToPathsByPaint, de as toRuns, fe as transformRunTexts, w as unboldPatch, A as useCreateOutlinesAdapter, k as useSceneTextEdit, O as useTextEdit, pe as verticalAlignOffset };
|
|
1
|
+
import { strokeRegion as e } from "../interactions/actions/outlines/strokeRegion.js";
|
|
2
|
+
import { applyCreateOutlines as t } from "../interactions/actions/outlines/createOutlines.js";
|
|
3
|
+
import { applyOutlineStroke as n } from "../interactions/actions/outlines/outlineStroke.js";
|
|
4
|
+
import { createTextLayer as r } from "../features/text/textLayer.js";
|
|
5
|
+
import { useSceneTextEdit as i } from "../features/text/useSceneTextEdit.js";
|
|
6
|
+
import { TEXT_EDIT_FONT_HOLD as a, TextOutlinesError as o, charOffsetToDomPosition as s, domPositionToCharOffset as c, domToRuns as l, loadTextOutlines as u, runsToDom as d, textCommand as f, textCommandFromPose as p, textCommandFromRuns as m, textToPath as h, textToPathsByPaint as g, useTextEdit as _ } from "../features/text/index.js";
|
|
7
|
+
import { useCreateOutlinesAdapter as v } from "../interactions/actions/outlines/useCreateOutlinesAdapter.js";
|
|
8
|
+
import { DEFAULT_DECORATION_METRICS as y, DEFAULT_TEXT_STYLE as b, MARKDOWN_RUN_GRAMMAR as x, SCRIPT_METRICS as S, SMALL_CAPS_SCALE as C, applyStyleToRange as w, cachedLayoutRuns as T, cachedPaintRuns as E, caretIndexAt as D, createMarkdownRenderer as O, decorationMetrics as k, defaultLabelTextRenderer as A, effectiveRangeStyle as j, fitTextPose as M, fontString as N, isBoldWeight as P, isSmallCapsLetter as F, isTextData as I, layoutMarkdown as L, layoutRuns as R, layoutTextPose as z, markdownToRuns as B, measureText as V, measureTextBounds as H, measuredWidth as U, nodeHasFlag as W, numericWeight as G, paintRuns as K, paragraphDirection as q, patchRangeStyle as J, pointInTextPose as Y, rangeWeight as X, registerBidi as Z, renderLabel as Q, resolveAlign as $, resolveRunFace as ee, resolveRuns as te, resolveTextStyle as ne, runsToMarkdown as re, runsToPlainText as ie, scriptMetrics as ae, scriptMetricsFor as oe, setFlagOverRange as se, smallCapsScale as ce, smallCapsScaleFor as le, smallCapsText as ue, styleAtRange as de, textLineBoxes as fe, textPoseLayoutInput as pe, toRuns as me, transformRunTexts as he, unboldPatch as ge, verticalAlignOffset as _e } from "@weasel-js/text";
|
|
9
|
+
export { y as DEFAULT_DECORATION_METRICS, b as DEFAULT_TEXT_STYLE, x as MARKDOWN_RUN_GRAMMAR, S as SCRIPT_METRICS, C as SMALL_CAPS_SCALE, a as TEXT_EDIT_FONT_HOLD, o as TextOutlinesError, t as applyCreateOutlines, n as applyOutlineStroke, w as applyStyleToRange, T as cachedLayoutRuns, E as cachedPaintRuns, D as caretIndexAt, s as charOffsetToDomPosition, O as createMarkdownRenderer, r as createTextLayer, k as decorationMetrics, A as defaultLabelTextRenderer, c as domPositionToCharOffset, l as domToRuns, j as effectiveRangeStyle, M as fitTextPose, N as fontString, P as isBoldWeight, F as isSmallCapsLetter, I as isTextData, L as layoutMarkdown, R as layoutRuns, z as layoutTextPose, u as loadTextOutlines, B as markdownToRuns, V as measureText, H as measureTextBounds, U as measuredWidth, W as nodeHasFlag, G as numericWeight, K as paintRuns, q as paragraphDirection, J as patchRangeStyle, Y as pointInTextPose, X as rangeWeight, Z as registerBidi, Q as renderLabel, $ as resolveAlign, ee as resolveRunFace, te as resolveRuns, ne as resolveTextStyle, d as runsToDom, re as runsToMarkdown, ie as runsToPlainText, ae as scriptMetrics, oe as scriptMetricsFor, se as setFlagOverRange, ce as smallCapsScale, le as smallCapsScaleFor, ue as smallCapsText, e as strokeRegion, de as styleAtRange, f as textCommand, p as textCommandFromPose, m as textCommandFromRuns, fe as textLineBoxes, pe as textPoseLayoutInput, h as textToPath, g as textToPathsByPaint, me as toRuns, he as transformRunTexts, ge as unboldPatch, v as useCreateOutlinesAdapter, i as useSceneTextEdit, _ as useTextEdit, _e as verticalAlignOffset };
|