@weasel-js/core 1.14.2 → 1.15.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 +251 -0
- package/dist/WeaselProvider.js +4 -5
- package/dist/affordances/composeAffordanceLayer.js +1 -2
- package/dist/affordances/cornerResize.js +4 -5
- package/dist/affordances/hitAffordanceRegions.js +1 -2
- package/dist/affordances/pathAnchors.js +1 -3
- package/dist/affordances/pathAnchors.js.map +1 -1
- package/dist/affordances/rotateCursor.js +1 -2
- package/dist/affordances/rotationHandle.js +2 -3
- package/dist/animation/behaviors/coast.js +1 -2
- package/dist/animation/behaviors/coastByWrite.js +2 -3
- package/dist/animation/behaviors/coastOnTargets.js +2 -3
- package/dist/animation/behaviors/momentum.js +1 -2
- package/dist/animation/clipTargets.js +1 -2
- package/dist/animation/departures.js +2 -3
- package/dist/animation/poseHelpers.js +2 -3
- package/dist/animation/poseTarget.js +2 -3
- package/dist/animation/poseTransition.js +1 -2
- package/dist/animation/reflow.js +2 -3
- package/dist/animation/rewind.js +1 -2
- package/dist/animation/rig/bindRig.js +2 -3
- package/dist/animation/rig/rigNode.js +1 -2
- package/dist/animation/rig/rigSeat.js +1 -2
- package/dist/animation/rig/skinBinding.js +1 -2
- package/dist/animation/rig/useRig.js +2 -3
- package/dist/animation/wrappers/animateLifecycle.js +1 -2
- package/dist/animation/wrappers/animateOnSetPose.js +1 -2
- package/dist/animation/wrappers/instantPose.js +1 -2
- package/dist/animation/writtenPoseTarget.js +1 -2
- package/dist/barrel/interactions.js +2 -1
- package/dist/barrel/paths.js +1 -1
- package/dist/barrel/renderer.js +2 -2
- package/dist/barrel/routing.js +6 -4
- package/dist/barrel/scene.js +2 -2
- package/dist/barrel/text.js +5 -3
- package/dist/canvas/Canvas.js +10 -7
- package/dist/canvas/Canvas.js.map +1 -1
- package/dist/canvas/CanvasView.js +6 -7
- package/dist/canvas/CursorCoordsHud.js +2 -3
- package/dist/canvas/DrawCanvas.js +8 -5
- package/dist/canvas/DrawCanvas.js.map +1 -1
- package/dist/canvas/GestureReason.js +1 -2
- package/dist/canvas/GestureReason.module.js +1 -2
- package/dist/canvas/LeanSceneCanvas.js +2 -3
- package/dist/canvas/ModalityHud.js +2 -3
- package/dist/canvas/NodeShape.js +3 -4
- package/dist/canvas/PickHud.js +2 -3
- package/dist/canvas/SceneCanvas/ActionsProviderIfRoot.js +1 -2
- package/dist/canvas/SceneCanvas/CanvasKitProviders.js +3 -4
- package/dist/canvas/SceneCanvas/DepRegistryProviderIfRoot.js +1 -2
- package/dist/canvas/SceneCanvas/DevHuds.js +1 -2
- package/dist/canvas/SceneCanvas/PointerProviderIfRoot.js +1 -2
- package/dist/canvas/SceneCanvas/SceneCanvasInput.js +8 -5
- package/dist/canvas/SceneCanvas/SceneCanvasInput.js.map +1 -1
- package/dist/canvas/SceneCanvas/SurfaceDeclarations.js +1 -2
- package/dist/canvas/SceneCanvas/brushOverlay.js +1 -2
- package/dist/canvas/SceneCanvas/builtinToolSets.js +7 -5
- package/dist/canvas/SceneCanvas/builtinToolSets.js.map +1 -1
- package/dist/canvas/SceneCanvas/canvasPassThrough.js +1 -2
- package/dist/canvas/SceneCanvas/contributionFrameHooks.js +1 -2
- package/dist/canvas/SceneCanvas/coordTrace.js +1 -2
- package/dist/canvas/SceneCanvas/defaultNodeProperties.js +4 -5
- package/dist/canvas/SceneCanvas/defaultNodeRouting.js +1 -2
- package/dist/canvas/SceneCanvas/defaultTextEditor.js +4 -5
- package/dist/canvas/SceneCanvas/describePresets.js +1 -2
- package/dist/canvas/SceneCanvas/dispatcherGestureBounds.js +1 -2
- package/dist/canvas/SceneCanvas/features.js +1 -2
- package/dist/canvas/SceneCanvas/insertPreviewCommands.js +1 -2
- package/dist/canvas/SceneCanvas/mergeLayers.js +1 -2
- package/dist/canvas/SceneCanvas/namedPresets.js +5 -6
- package/dist/canvas/SceneCanvas/poseGeometry.js +1 -2
- package/dist/canvas/SceneCanvas/poseRegistrars.js +1 -2
- package/dist/canvas/SceneCanvas/presets/arrange.js +2 -3
- package/dist/canvas/SceneCanvas/presets/baseline.js +1 -2
- package/dist/canvas/SceneCanvas/presets/chrome.js +1 -2
- package/dist/canvas/SceneCanvas/presets/composites.js +1 -2
- package/dist/canvas/SceneCanvas/presets/edit.js +4 -5
- package/dist/canvas/SceneCanvas/presets/ingest.js +1 -2
- package/dist/canvas/SceneCanvas/presets/paths.js +9 -10
- package/dist/canvas/SceneCanvas/presets/paths.js.map +1 -1
- package/dist/canvas/SceneCanvas/presets/select.js +1 -2
- package/dist/canvas/SceneCanvas/presets/toolDriven.js +2 -3
- package/dist/canvas/SceneCanvas/presets/tools.js +1 -2
- package/dist/canvas/SceneCanvas/presets/transform.js +2 -3
- package/dist/canvas/SceneCanvas/presets/view.js +2 -3
- package/dist/canvas/SceneCanvas/props.js +1 -2
- package/dist/canvas/SceneCanvas/scenePointQuery.js +2 -3
- package/dist/canvas/SceneCanvas/shapeGeneratorProperties.js +2 -3
- package/dist/canvas/SceneCanvas/shapeGeneratorProperties.js.map +1 -1
- package/dist/canvas/SceneCanvas/toolRegistry.js +2 -3
- package/dist/canvas/SceneCanvas/useActionTunings.js +1 -2
- package/dist/canvas/SceneCanvas/useActionsPropResolver.js +1 -2
- package/dist/canvas/SceneCanvas/useBakedScene.js +2 -3
- package/dist/canvas/SceneCanvas/useBuiltinShapeTools.js +7 -8
- package/dist/canvas/SceneCanvas/useBuiltinTools.js +3 -2
- package/dist/canvas/SceneCanvas/useBuiltinTools.js.map +1 -1
- package/dist/canvas/SceneCanvas/useCanvasCamera.js +2 -3
- package/dist/canvas/SceneCanvas/useCanvasDevtoolsRoot.js +1 -2
- package/dist/canvas/SceneCanvas/useCanvasDispatcher.js +1 -2
- package/dist/canvas/SceneCanvas/useCanvasSelection.js +8 -6
- package/dist/canvas/SceneCanvas/useCanvasSelection.js.map +1 -1
- package/dist/canvas/SceneCanvas/useCanvasTools.js +2 -3
- package/dist/canvas/SceneCanvas/useChromeAffordances.js +2 -3
- package/dist/canvas/SceneCanvas/useContributionRoles.js +3 -2
- package/dist/canvas/SceneCanvas/useContributionRoles.js.map +1 -1
- package/dist/canvas/SceneCanvas/useDepartureGhostLayer.js +4 -5
- package/dist/canvas/SceneCanvas/useDispatcherOverlayLayer.js +2 -3
- package/dist/canvas/SceneCanvas/useHeldModifiers.js +1 -2
- package/dist/canvas/SceneCanvas/useMagnificationCheck.js +41 -0
- package/dist/canvas/SceneCanvas/useMagnificationCheck.js.map +1 -0
- package/dist/canvas/SceneCanvas/useNodeAtPoint.js +1 -2
- package/dist/canvas/SceneCanvas/useNodeKinds.js +2 -3
- package/dist/canvas/SceneCanvas/usePreviewGhostLayer.js +10 -11
- package/dist/canvas/SceneCanvas/useSceneCanvasHandle.js +1 -2
- package/dist/canvas/SceneCanvas/useSceneCanvasLayers.js +6 -7
- package/dist/canvas/SceneCanvas/useSceneCanvasPathEdit.js +1 -2
- package/dist/canvas/SceneCanvas/useSceneCanvasTools.js +1 -2
- package/dist/canvas/SceneCanvas/useSceneChrome.js +22 -11
- package/dist/canvas/SceneCanvas/useSceneChrome.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSceneGestureDispatcher.js +6 -7
- package/dist/canvas/SceneCanvas/useScenePicking.js +5 -6
- package/dist/canvas/SceneCanvas/useSceneRedrawSources.js +1 -2
- package/dist/canvas/SceneCanvas/useSceneSelectTool.js +7 -8
- package/dist/canvas/SceneCanvas/useSceneSlotLayers.js +2 -3
- package/dist/canvas/SceneCanvas/useSceneStandardActions.js +28 -17
- package/dist/canvas/SceneCanvas/useSceneStandardActions.js.map +1 -1
- package/dist/canvas/SceneCanvas/useSelectionOverlayLayer.js +2 -3
- package/dist/canvas/SceneCanvas/useSurfaceRouting.js +1 -2
- package/dist/canvas/SceneCanvas/useSurfaceViewInputs.js +1 -2
- package/dist/canvas/SceneCanvas/useToolKeybindings.js +1 -2
- package/dist/canvas/SceneCanvas/useViewportActions.js +3 -4
- package/dist/canvas/SceneCanvas/worldPointAt.js +1 -2
- package/dist/canvas/SceneCanvas.js +22 -20
- package/dist/canvas/SceneCanvas.js.map +1 -1
- package/dist/canvas/SceneViewCanvas.js +7 -4
- package/dist/canvas/SceneViewCanvas.js.map +1 -1
- package/dist/canvas/SurfaceCanvas.js +1 -2
- package/dist/canvas/ViewMarker.js +1 -2
- package/dist/canvas/accentColor.js +1 -2
- package/dist/canvas/adapterDerivedPath.js +2 -3
- package/dist/canvas/adapterPickSource.js +1 -2
- package/dist/canvas/affordanceAt.js +2 -4
- package/dist/canvas/affordanceAt.js.map +1 -1
- package/dist/canvas/buildSceneLayer.js +4 -5
- package/dist/canvas/buildSceneTree.js +4 -5
- package/dist/canvas/canvasRenderer.js +1 -2
- package/dist/canvas/colorOverrides.js +1 -2
- package/dist/canvas/contextAttributes.js +1 -2
- package/dist/canvas/copiesAbove.js +1 -2
- package/dist/canvas/defaultDrawOne.js +1 -2
- package/dist/canvas/deps/areaSelect.js +5 -3
- package/dist/canvas/deps/areaSelect.js.map +1 -1
- package/dist/canvas/deps/booleans.js +5 -6
- package/dist/canvas/deps/changes.js +1 -2
- package/dist/canvas/deps/chromeRules.js +36 -0
- package/dist/canvas/deps/chromeRules.js.map +1 -0
- package/dist/canvas/deps/debug.js +1 -2
- package/dist/canvas/deps/dispatchSources.js +1 -2
- package/dist/canvas/deps/dispatcher.js +1 -2
- package/dist/canvas/deps/editAnchors.js +3 -10
- package/dist/canvas/deps/editAnchors.js.map +1 -1
- package/dist/canvas/deps/enteredGroup.js +1 -2
- package/dist/canvas/deps/geometryProjection.js +1 -2
- package/dist/canvas/deps/hitTestArea.js +6 -5
- package/dist/canvas/deps/hitTestArea.js.map +1 -1
- package/dist/canvas/deps/ingestion.js +1 -2
- package/dist/canvas/deps/insert.js +3 -4
- package/dist/canvas/deps/insertSite.js +3 -4
- package/dist/canvas/deps/kitSettings.js +1 -2
- package/dist/canvas/deps/lassoSelect.js +5 -3
- package/dist/canvas/deps/lassoSelect.js.map +1 -1
- package/dist/canvas/deps/layout.js +1 -2
- package/dist/canvas/deps/modeDefaultTool.js +22 -0
- package/dist/canvas/deps/modeDefaultTool.js.map +1 -0
- package/dist/canvas/deps/nodeAtPoint.js +1 -2
- package/dist/canvas/deps/pathEditCommits.js +3 -4
- package/dist/canvas/deps/pathLeaf.js +1 -2
- package/dist/canvas/deps/pathLeafDeps.js +2 -3
- package/dist/canvas/deps/poseDescriptor.js +1 -2
- package/dist/canvas/deps/previewPaths.js +1 -2
- package/dist/canvas/deps/resizePolicy.js +1 -2
- package/dist/canvas/deps/selectionSnapshot.js +22 -0
- package/dist/canvas/deps/selectionSnapshot.js.map +1 -0
- package/dist/canvas/deps/slice.js +5 -6
- package/dist/canvas/deps/snap.js +4 -4
- package/dist/canvas/deps/snap.js.map +1 -1
- package/dist/canvas/deps/surface.js +1 -2
- package/dist/canvas/deps/textEdit.js +1 -2
- package/dist/canvas/deps/transformFollowers.js +1 -2
- package/dist/canvas/deps/view.js +1 -2
- package/dist/canvas/derivedPath.js +6 -7
- package/dist/canvas/doubleClickTarget.js +1 -2
- package/dist/canvas/drawEnvelope.js +1 -2
- package/dist/canvas/drawnBounds.js +4 -5
- package/dist/canvas/getNodeAtPoint.js +1 -2
- package/dist/canvas/hostAnchor.js +1 -2
- package/dist/canvas/hud.module.js +1 -2
- package/dist/canvas/inheritedPaints.js +1 -2
- package/dist/canvas/insertPreviewExtent.js +1 -2
- package/dist/canvas/kitRequirements.js +1 -2
- package/dist/canvas/layerHover.js +1 -2
- package/dist/canvas/layerOrder.js +1 -2
- package/dist/canvas/layerSlots.js +1 -2
- package/dist/canvas/mountedCanvases.js +1 -2
- package/dist/canvas/nodeShapes/derivedPainter.js +2 -3
- package/dist/canvas/nodeShapes/imagePainter.js +1 -2
- package/dist/canvas/nodeShapes/measurePainter.js +2 -3
- package/dist/canvas/nodeShapes/memo.js +1 -2
- package/dist/canvas/nodeShapes/nodePaint.js +1 -2
- package/dist/canvas/nodeShapes/pathPainter.js +3 -4
- package/dist/canvas/nodeShapes/poseBox.js +1 -2
- package/dist/canvas/nodeShapes/rectFallbackPainter.js +1 -2
- package/dist/canvas/nodeShapes/shapePainter.js +2 -3
- package/dist/canvas/nodeShapes/strokedBounds.js +1 -2
- package/dist/canvas/nodeShapes/textPainter.js +1 -2
- package/dist/canvas/overChildren.js +1 -2
- package/dist/canvas/overlayRoleStrokes.js +1 -2
- package/dist/canvas/ownClip.js +1 -2
- package/dist/canvas/paintCull.js +1 -2
- package/dist/canvas/paintedCursorLayer.js +1 -2
- package/dist/canvas/pathOverlay.js +1 -2
- package/dist/canvas/pickIndex/nodeBroadBox.js +3 -4
- package/dist/canvas/pickIndex/scenePickIndex.js +3 -4
- package/dist/canvas/pickReach.js +13 -10
- package/dist/canvas/pickReach.js.map +1 -1
- package/dist/canvas/pickWalk.js +9 -8
- package/dist/canvas/pickWalk.js.map +1 -1
- package/dist/canvas/planeClips.js +1 -2
- package/dist/canvas/poseRotation.js +1 -2
- package/dist/canvas/publishPreviews.js +1 -2
- package/dist/canvas/rasterReadback.js +1 -2
- package/dist/canvas/rasterToPng.js +1 -2
- package/dist/canvas/renderDebugSnapshot.js +1 -2
- package/dist/canvas/renderNeeds.js +1 -2
- package/dist/canvas/renderSceneToPixels.js +5 -6
- package/dist/canvas/sceneAdapter.js +37 -27
- package/dist/canvas/sceneAdapter.js.map +1 -1
- package/dist/canvas/sceneClipboard.js +19 -7
- package/dist/canvas/sceneClipboard.js.map +1 -1
- package/dist/canvas/sceneLayerPaint.js +1 -2
- package/dist/canvas/scenePickReads.js +1 -2
- package/dist/canvas/scenePickSource.js +7 -8
- package/dist/canvas/scenePickSource.js.map +1 -1
- package/dist/canvas/sceneSlotWiring.js +2 -3
- package/dist/canvas/sceneViewRender.js +5 -6
- package/dist/canvas/shownNodes.js +1 -2
- package/dist/canvas/slopsDebugLayer.js +1 -2
- package/dist/canvas/surfaceContribution.js +1 -2
- package/dist/canvas/useCanvasElements.js +1 -2
- package/dist/canvas/useCanvasHandle.js +1 -2
- package/dist/canvas/useCanvasPaint.js +2 -3
- package/dist/canvas/useCanvasRenderer.js +1 -2
- package/dist/canvas/useCanvasSurface.js +22 -5
- package/dist/canvas/useCanvasSurface.js.map +1 -1
- package/dist/canvas/useCanvasView.js +2 -3
- package/dist/canvas/useClientToWorld.js +1 -2
- package/dist/canvas/useExtraLayers.js +1 -2
- package/dist/canvas/useFrameLoop.js +7 -9
- package/dist/canvas/useFrameLoop.js.map +1 -1
- package/dist/canvas/useHitObserver.js +1 -2
- package/dist/canvas/useHostAnchor.js +1 -2
- package/dist/canvas/useInFlightBounds.js +6 -6
- package/dist/canvas/useInFlightBounds.js.map +1 -1
- package/dist/canvas/useLateContentRedraw.js +1 -2
- package/dist/canvas/useLayerStack.js +2 -3
- package/dist/canvas/usePaintedCursor.js +1 -2
- package/dist/canvas/useRedrawOn.js +1 -2
- package/dist/canvas/useSceneAdapter.js +1 -2
- package/dist/canvas/useSceneLayerList.js +1 -2
- package/dist/canvas/useSurfaceInput.js +1 -2
- package/dist/canvas/useSurfaceSize.js +5 -5
- package/dist/canvas/useSurfaceSize.js.map +1 -1
- package/dist/canvas/useToolCursor.js +1 -2
- package/dist/canvas/useViewAim.js +2 -3
- package/dist/canvas/useViewHelpers.js +5 -4
- package/dist/canvas/useViewHelpers.js.map +1 -1
- package/dist/canvas/useViewLayerGate.js +1 -2
- package/dist/canvas/useViewNesting.js +1 -2
- package/dist/canvas/useViewRegistrySurface.js +1 -2
- package/dist/canvas/viewInputs.js +1 -2
- package/dist/canvas/viewMarkers.js +1 -2
- package/dist/canvas/viewRegistry.js +1 -2
- package/dist/canvas/viewSnap.js +1 -2
- package/dist/canvas/watchElementMove.js +1 -2
- package/dist/canvas/wrapNodeOutput.js +1 -2
- package/dist/core/adapters/testing/rootsTree.js +1 -2
- package/dist/core/applyOps.js +1 -2
- package/dist/core/device/targets.js +1 -2
- package/dist/core/device/useDeviceProfile.js +1 -2
- package/dist/core/device/useTargetBasePx.js +1 -2
- package/dist/core/device/watchDevicePixelRatio.js +1 -2
- package/dist/core/geometry/autoPoseDescriptor.js +2 -3
- package/dist/core/geometry/booleanOfPaths.js +1 -2
- package/dist/core/geometry/inkExtents.js +1 -2
- package/dist/core/geometry/pathPoseDescriptor.js +1 -2
- package/dist/core/geometry/poseDescriptor.js +1 -2
- package/dist/core/geometry/regionHit.js +36 -18
- package/dist/core/geometry/regionHit.js.map +1 -1
- package/dist/core/geometry/targetFrame.js +1 -2
- package/dist/core/geometry/unionBounds.js +1 -2
- package/dist/core/layers/backgroundFill.js +1 -2
- package/dist/core/layers/children.js +1 -2
- package/dist/core/layers/gateLayer.js +1 -2
- package/dist/core/layers/layerGroup.js +1 -2
- package/dist/core/layers/redrawSource.js +1 -2
- package/dist/core/layers/render.js +1 -2
- package/dist/core/layers/retain.js +1 -2
- package/dist/core/ops/arrange.js +1 -2
- package/dist/core/ops/create.js +2 -3
- package/dist/core/ops/createHistory.js +2 -3
- package/dist/core/ops/delete.js +2 -3
- package/dist/core/ops/nodeFlags.js +1 -2
- package/dist/core/ops/registry.js +1 -2
- package/dist/core/ops/reorder/algorithms.js +1 -2
- package/dist/core/ops/reorder/index.js +1 -2
- package/dist/core/ops/reorder/setChildOrder.js +1 -2
- package/dist/core/ops/reparent.js +1 -2
- package/dist/core/ops/select.js +1 -2
- package/dist/core/ops/setData.js +1 -2
- package/dist/core/ops/setDependsOn.js +1 -2
- package/dist/core/ops/setLayer.js +1 -2
- package/dist/core/ops/setLayout.js +1 -2
- package/dist/core/ops/setPath.js +1 -2
- package/dist/core/ops/setText.js +1 -2
- package/dist/core/ops/slot.js +1 -2
- package/dist/core/ops/transform.js +1 -2
- package/dist/core/ops/writtenBy.js +1 -2
- package/dist/core/pages/fitViewToPage.js +1 -2
- package/dist/core/pages/pageEdits.js +3 -4
- package/dist/core/pages/pages.js +1 -2
- package/dist/core/pages/pages.js.map +1 -1
- package/dist/core/pages/pagesLayer.js +1 -2
- package/dist/core/paint/meshKind.js +1 -2
- package/dist/core/paint/meshKindLazy.js +9 -18
- package/dist/core/paint/meshKindLazy.js.map +1 -1
- package/dist/core/paint/paintKindEntry.js +1 -2
- package/dist/core/paint/paintKinds.js +1 -2
- package/dist/core/paint/registerMesh.js +1 -2
- package/dist/core/scene/NodeProperties.js +1 -2
- package/dist/core/scene/NodeRouting.js +1 -2
- package/dist/core/scene/annotation.js +1 -2
- package/dist/core/scene/appliedLog.js +1 -2
- package/dist/core/scene/arrivalWindow.js +2 -3
- package/dist/core/scene/arrivals.js +1 -2
- package/dist/core/scene/booleanGroup.js +1 -2
- package/dist/core/scene/booleanOfChildren.js +1 -2
- package/dist/core/scene/boundOps.js +1 -2
- package/dist/core/scene/carryDescendants.js +2 -3
- package/dist/core/scene/clipNothing.js +1 -2
- package/dist/core/scene/composeFrame.js +1 -2
- package/dist/core/scene/composePose.js +1 -2
- package/dist/core/scene/declaredFieldSetters.js +1 -2
- package/dist/core/scene/depFrame.js +1 -2
- package/dist/core/scene/depMemo.js +1 -2
- package/dist/core/scene/dependents.js +1 -2
- package/dist/core/scene/derivedParts.js +1 -2
- package/dist/core/scene/derivedPath.js +2 -3
- package/dist/core/scene/docValues.js +1 -2
- package/dist/core/scene/documentOf.js +1 -2
- package/dist/core/scene/editMode.js +5 -3
- package/dist/core/scene/editMode.js.map +1 -1
- package/dist/core/scene/editPass.js +1 -2
- package/dist/core/scene/effectivePose.js +3 -4
- package/dist/core/scene/fieldEdits.js +1 -2
- package/dist/core/scene/fontReads.js +1 -2
- package/dist/core/scene/historyFacade.js +8 -52
- package/dist/core/scene/historyFacade.js.map +1 -1
- package/dist/core/scene/historyForm.js +1 -2
- package/dist/core/scene/inheritedPaint.js +1 -2
- package/dist/core/scene/kitOps.js +16 -15
- package/dist/core/scene/kitOps.js.map +1 -1
- package/dist/core/scene/kitRegistry.js +2 -3
- package/dist/core/scene/layerOps.js +1 -2
- package/dist/core/scene/layerStack.js +1 -2
- package/dist/core/scene/layoutPass.js +4 -5
- package/dist/core/scene/lockGuard.js +1 -2
- package/dist/core/scene/minSize.js +1 -2
- package/dist/core/scene/nestedHit.js +1 -2
- package/dist/core/scene/nodeAsShown.js +1 -2
- package/dist/core/scene/nodeFlags.js +1 -2
- package/dist/core/scene/nodeFnFields.js +1 -2
- package/dist/core/scene/nodeGates.js +3 -4
- package/dist/core/scene/nodeGates.js.map +1 -1
- package/dist/core/scene/nodeMemo.js +1 -2
- package/dist/core/scene/nodeStore.js +2 -3
- package/dist/core/scene/notifier.js +1 -2
- package/dist/core/scene/opTable.js +9 -10
- package/dist/core/scene/opTable.js.map +1 -1
- package/dist/core/scene/outerOps.js +3 -4
- package/dist/core/scene/outerOps.js.map +1 -1
- package/dist/core/scene/pathEffects/blend.js +1 -2
- package/dist/core/scene/pathEffects/derive.js +2 -3
- package/dist/core/scene/pathEffects/effects.js +1 -2
- package/dist/core/scene/pathEffects/foundHidden.js +1 -2
- package/dist/core/scene/pathEffects/textAlong.js +1 -2
- package/dist/core/scene/pathEffects/textAlongBands.js +1 -2
- package/dist/core/scene/plyStacks.js +1 -2
- package/dist/core/scene/poseFeed.js +1 -2
- package/dist/core/scene/poseHold.js +1 -2
- package/dist/core/scene/poseOverrides.js +1 -2
- package/dist/core/scene/posePlies.js +1 -2
- package/dist/core/scene/poseRemovals.js +1 -2
- package/dist/core/scene/poseSnapshot.js +1 -2
- package/dist/core/scene/poseWrites.js +17 -17
- package/dist/core/scene/poseWrites.js.map +1 -1
- package/dist/core/scene/reconcileSpecs.js +26 -3
- package/dist/core/scene/reconcileSpecs.js.map +1 -1
- package/dist/core/scene/recorder.js +1 -2
- package/dist/core/scene/renderOrder.js +1 -2
- package/dist/core/scene/sameValue.js +1 -2
- package/dist/core/scene/scene.js +11 -12
- package/dist/core/scene/scene.js.map +1 -1
- package/dist/core/scene/sceneChanges.js +1 -2
- package/dist/core/scene/sceneEdits.js +1 -2
- package/dist/core/scene/sceneJournals.js +77 -0
- package/dist/core/scene/sceneJournals.js.map +1 -0
- package/dist/core/scene/sceneMutators.js +2 -3
- package/dist/core/scene/scenePoseAdapter.js +1 -2
- package/dist/core/scene/sceneRecording.js +4 -4
- package/dist/core/scene/sceneRecording.js.map +1 -1
- package/dist/core/scene/sceneSelection.js +8 -5
- package/dist/core/scene/sceneSelection.js.map +1 -1
- package/dist/core/scene/sceneState.js +3 -4
- package/dist/core/scene/scrollOffsets.js +1 -2
- package/dist/core/scene/serialization.js +2 -3
- package/dist/core/scene/staleReplay.js +1 -2
- package/dist/core/scene/statedFields.js +1 -2
- package/dist/core/scene/strategyView.js +1 -2
- package/dist/core/scene/treeEdits.js +2 -3
- package/dist/core/scene/treeOrder.js +1 -2
- package/dist/core/scene/treeReads.js +1 -2
- package/dist/core/scene/treeShape.js +1 -2
- package/dist/core/scene/types.js +1 -2
- package/dist/core/scene/types.js.map +1 -1
- package/dist/core/scene/unionOfChildren.js +1 -2
- package/dist/core/scene/unitScopes.js +20 -4
- package/dist/core/scene/unitScopes.js.map +1 -1
- package/dist/core/scene/useScene.js +2 -3
- package/dist/core/scene/worldSave.js +2 -3
- package/dist/core/selection/chromeState.js +1 -2
- package/dist/core/selection/outermostSelection.js +56 -0
- package/dist/core/selection/outermostSelection.js.map +1 -0
- package/dist/core/selection/readOnlySelection.js +1 -2
- package/dist/core/selection/selectionTarget.js +1 -2
- package/dist/core/selection/usePublishSceneSelection.js +1 -2
- package/dist/core/selection/useSelection.js +1 -2
- package/dist/core/shapeKinds.js +1 -2
- package/dist/core/stableStringify.js +1 -2
- package/dist/core/stylus/stylus.js +1 -2
- package/dist/core/stylus/usePointerStylus.js +1 -2
- package/dist/core/usePaintKinds.js +1 -2
- package/dist/core/viewport/clampView.js +1 -2
- package/dist/core/viewport/clientToWorld.js +1 -2
- package/dist/core/viewport/createVelocityTracker.js +1 -2
- package/dist/core/viewport/fitToBounds.js +1 -2
- package/dist/core/viewport/fitViewToBounds.js +1 -2
- package/dist/core/viewport/interpolateView.js +1 -2
- package/dist/core/viewport/parallax.js +1 -2
- package/dist/core/viewport/sceneNodeClientRect.js +1 -2
- package/dist/core/viewport/screenSlop.js +1 -2
- package/dist/core/viewport/useAutoCenter.js +1 -2
- package/dist/core/viewport/useCanvasSize.js +48 -28
- package/dist/core/viewport/useCanvasSize.js.map +1 -1
- package/dist/core/viewport/useDecayLoop.js +1 -2
- package/dist/core/viewport/useNodeOverlayFrame.js +1 -2
- package/dist/core/viewport/useVelocityTracker.js +1 -2
- package/dist/core/viewport/useViewAnimation.js +3 -4
- package/dist/core/viewport/view.js +1 -2
- package/dist/core/viewport/viewTransform.js +1 -2
- package/dist/core/viewport/viewportWorldRect.js +1 -2
- package/dist/core/viewport/wheelHandler.js +1 -2
- package/dist/core/viewport/zoomAt.js +2 -3
- package/dist/core/viewport/zoomBounds.js +1 -2
- package/dist/debug/createDebugOverlayLayer.js +1 -2
- package/dist/debug/createDebugSink.js +1 -2
- package/dist/debug/defaultTheme.js +1 -2
- package/dist/debug/features.js +1 -2
- package/dist/debug/frameStats.js +1 -2
- package/dist/debug/overlayPanels.js +1 -2
- package/dist/debug/parseDebugFlags.js +1 -2
- package/dist/debug/useDebugSink.js +2 -3
- package/dist/{depSchema-DD9H89gX.d.ts → depSchema-C7a_OMt-.d.ts} +101 -65
- package/dist/devtools/handlers.js +1 -2
- package/dist/devtools/history.js +1 -2
- package/dist/devtools/hook.js +1 -2
- package/dist/devtools/label.js +1 -2
- package/dist/devtools/notices.js +1 -2
- package/dist/devtools/protocol.js +1 -2
- package/dist/devtools/registry.js +1 -2
- package/dist/devtools/root.js +1 -2
- package/dist/devtools/serialize.js +1 -2
- package/dist/devtools/session.js +2 -3
- package/dist/devtools/transport.js +1 -2
- package/dist/devtools/useDevtoolsRoot.js +1 -2
- package/dist/devtools-protocol.d.ts +1 -1
- package/dist/devtools-protocol.js +2 -2
- package/dist/devtools.d.ts +1 -1
- package/dist/devtools.js +1 -2
- package/dist/domains/chrome-caps/buildChromeCtx.js +1 -2
- package/dist/domains/chrome-caps/conditions.js +1 -2
- package/dist/domains/chrome-caps/defaults.js +1 -2
- package/dist/domains/chrome-caps/resolve.js +3 -3
- package/dist/domains/chrome-caps/resolve.js.map +1 -1
- package/dist/domains/chrome-caps/useChromeCaps.js +5 -4
- package/dist/domains/chrome-caps/useChromeCaps.js.map +1 -1
- package/dist/domains/chrome-caps/useHoverTracking.js +1 -2
- package/dist/domains/ingestion/contentHandlers.js +1 -2
- package/dist/domains/ingestion/ghost.js +2 -3
- package/dist/domains/ingestion/imageHandler.js +1 -2
- package/dist/domains/ingestion/kitHandlers.js +2 -3
- package/dist/domains/ingestion/openFilePicker.js +1 -2
- package/dist/domains/ingestion/placement.js +1 -2
- package/dist/domains/ingestion/svgHandler.js +1 -2
- package/dist/domains/ingestion/textHandler.js +1 -2
- package/dist/domains/ingestion/useCanvasIngestion.js +1 -2
- package/dist/domains/ingestion/weaselJsonHandler.js +2 -3
- package/dist/domains/longPress/longPressFeedback.js +1 -2
- package/dist/domains/measure/actionIds.js +1 -2
- package/dist/domains/measure/measureCommands.js +6 -7
- package/dist/domains/measure/measureContribution.js +3 -4
- package/dist/domains/measure/measureEdits.js +3 -4
- package/dist/domains/measure/measureGestures.js +2 -3
- package/dist/domains/measure/measureHit.js +3 -4
- package/dist/domains/measure/measureLayer.js +3 -4
- package/dist/domains/measure/measurement.js +1 -2
- package/dist/domains/measure/measurements.js +1 -2
- package/dist/domains/modes/modeLayers.js +1 -2
- package/dist/domains/modes/modeTriggers.js +1 -2
- package/dist/domains/pathEffects/effectSources.js +2 -3
- package/dist/domains/pathEffects/index.js +1 -2
- package/dist/domains/pathEffects/readSource.js +3 -4
- package/dist/domains/pathEffects/textItems.js +1 -2
- package/dist/domains/pathEffects/useEffectSourcesLayer.js +3 -4
- package/dist/domains/paths/anchorData.js +1 -2
- package/dist/domains/paths/anchorMarkers.js +1 -2
- package/dist/domains/paths/editablePath.js +3 -4
- package/dist/domains/paths/originProjection.js +1 -2
- package/dist/domains/paths/pathEditExtension.js +1 -2
- package/dist/domains/paths/pathEditState.js +1 -26
- package/dist/domains/paths/pathEditState.js.map +1 -1
- package/dist/domains/paths/pathEditingOverlayLayer.js +2 -3
- package/dist/domains/paths/pathLayer.js +1 -2
- package/dist/domains/paths/pathRepresentation.js +1 -2
- package/dist/domains/paths/pathSnap/glyphs.js +1 -2
- package/dist/domains/paths/pathSnap/pathSnapSource.js +1 -2
- package/dist/domains/paths/pathSnap/sceneIndex.js +1 -2
- package/dist/domains/paths/pathSnap/snapGeometry.js +2 -3
- package/dist/domains/paths/penPreviewLayer.js +1 -2
- package/dist/domains/paths/shapeGenerator.js +1 -2
- package/dist/domains/paths/strokeOutline.js +2 -3
- package/dist/domains/paths/useAnchorFields.js +1 -2
- package/dist/domains/paths/usePathEdit.js +2 -3
- package/dist/domains/poseRun/usePoseRun.js +1 -2
- package/dist/domains/selection/enteredGroupFrame.js +1 -2
- package/dist/domains/selection/enteredGroupScope.js +1 -2
- package/dist/domains/selection/enteredOperands.js +1 -2
- package/dist/domains/selection/handleCommands.js +2 -3
- package/dist/domains/selection/overlay.js +6 -7
- package/dist/domains/selection/selectionPose.js +2 -3
- package/dist/domains/snap/angle2d.js +1 -2
- package/dist/domains/snap/debugCandidates.js +1 -2
- package/dist/domains/snap/gather.js +1 -2
- package/dist/domains/snap/inputSubspace.js +2 -3
- package/dist/domains/snap/lazySession.js +1 -2
- package/dist/domains/snap/marks.js +1 -2
- package/dist/domains/snap/outcomeStore.js +1 -2
- package/dist/domains/snap/pointSnap.js +1 -2
- package/dist/domains/snap/probes2d.js +6 -2
- package/dist/domains/snap/probes2d.js.map +1 -1
- package/dist/domains/snap/readoutDraw.js +1 -2
- package/dist/domains/snap/readoutLayer.js +1 -2
- package/dist/domains/snap/registry.js +1 -2
- package/dist/domains/snap/resizeBox.js +1 -2
- package/dist/domains/snap/roles.js +1 -2
- package/dist/domains/snap/rotationSource.js +1 -2
- package/dist/domains/snap/sceneReads.js +13 -4
- package/dist/domains/snap/sceneReads.js.map +1 -1
- package/dist/domains/snap/sceneSession2d.js +6 -5
- package/dist/domains/snap/sceneSession2d.js.map +1 -1
- package/dist/domains/snap/screen.js +2 -3
- package/dist/domains/snap/session2d.js +4 -5
- package/dist/domains/snap/spanSnap.js +1 -2
- package/dist/domains/snap/stepAngles.js +1 -2
- package/dist/domains/text/editingDrawOne.js +1 -2
- package/dist/domains/text/hostTextEditors.js +1 -2
- package/dist/domains/text/index.js +2 -2
- package/dist/domains/text/sceneTextDrafts.js +1 -2
- package/dist/domains/text/textHitAt.js +4 -5
- package/dist/domains/text/textLayer.js +12 -2
- package/dist/domains/text/textLayer.js.map +1 -1
- package/dist/domains/text/useSceneTextEdit.js +4 -5
- package/dist/domains/viewports/aim.js +3 -4
- package/dist/domains/viewports/viewMarker.js +1 -2
- package/dist/domains/viewports/viewMarkerDrag.js +1 -2
- package/dist/domains/viewports/viewResolver.js +1 -2
- package/dist/domains/viewports/viewportLayer.js +1 -2
- package/dist/iconRegistry/IconRegistryProvider.js +1 -2
- package/dist/iconRegistry/useIconGlyph.js +1 -2
- package/dist/iconRegistry/useIconVariant.js +1 -2
- package/dist/icons.table.js +2 -3
- package/dist/icons.table.js.map +1 -1
- package/dist/icons.table.json +5 -0
- package/dist/icons2.table.js +1 -2
- package/dist/index.d.ts +160 -64
- package/dist/index.js +14 -9
- package/dist/input/keyState.js +1 -2
- package/dist/input/useKeyModifiers.js +1 -2
- package/dist/input/useKeyState.js +1 -2
- package/dist/interactions/actions/admitsChild.js +1 -2
- package/dist/interactions/actions/align/action.js +6 -7
- package/dist/interactions/actions/align/align.js +6 -7
- package/dist/interactions/actions/booleans/action.js +5 -4
- package/dist/interactions/actions/booleans/action.js.map +1 -1
- package/dist/interactions/actions/booleans/booleanGroupAction.js +2 -3
- package/dist/interactions/actions/booleans/booleans.js +1 -2
- package/dist/interactions/actions/booleans/commit.js +4 -5
- package/dist/interactions/actions/booleans/custom.js +2 -3
- package/dist/interactions/actions/booleans/keymap.js +1 -2
- package/dist/interactions/actions/booleans/operands.js +1 -2
- package/dist/interactions/actions/booleans/pieces.js +1 -2
- package/dist/interactions/actions/booleans/placement.js +1 -2
- package/dist/interactions/actions/booleans/useBooleans.js +1 -2
- package/dist/interactions/actions/booleans/useBooleansAdapter.js +1 -2
- package/dist/interactions/actions/clipboard/action.js +2 -3
- package/dist/interactions/actions/clipboard/clipboardOps.js +2 -3
- package/dist/interactions/actions/clipboard/materializePaste.js +1 -2
- package/dist/interactions/actions/clipboard/wireFormat.js +1 -2
- package/dist/interactions/actions/clone/action.js +7 -8
- package/dist/interactions/actions/clone/behaviors.js +4 -5
- package/dist/interactions/actions/defaultCommitAdapter.js +2 -3
- package/dist/interactions/actions/defaults/anchorEditing.js +6 -10
- package/dist/interactions/actions/defaults/anchorEditing.js.map +1 -1
- package/dist/interactions/actions/defaults/anchorFields.js +1 -2
- package/dist/interactions/actions/defaults/anchorHandles.js +2 -3
- package/dist/interactions/actions/defaults/anchorJoin.js +2 -3
- package/dist/interactions/actions/defaults/areaSelect.js +6 -6
- package/dist/interactions/actions/defaults/areaSelect.js.map +1 -1
- package/dist/interactions/actions/defaults/bendSegment.js +4 -6
- package/dist/interactions/actions/defaults/bendSegment.js.map +1 -1
- package/dist/interactions/actions/defaults/cancelGesture.js +1 -2
- package/dist/interactions/actions/defaults/clearSelection.js +1 -2
- package/dist/interactions/actions/defaults/containerScroll.js +4 -5
- package/dist/interactions/actions/defaults/contextMenu.js +6 -7
- package/dist/interactions/actions/defaults/copySubtree.js +2 -3
- package/dist/interactions/actions/defaults/createPaintAction.js +3 -4
- package/dist/interactions/actions/defaults/delete.js +2 -3
- package/dist/interactions/actions/defaults/duplicate.js +5 -6
- package/dist/interactions/actions/defaults/enterGroup.js +2 -3
- package/dist/interactions/actions/defaults/enterPathEdit.js +1 -2
- package/dist/interactions/actions/defaults/enterTextEdit.js +1 -2
- package/dist/interactions/actions/defaults/escape.js +1 -2
- package/dist/interactions/actions/defaults/exitPathEdit.js +18 -3
- package/dist/interactions/actions/defaults/exitPathEdit.js.map +1 -1
- package/dist/interactions/actions/defaults/group.js +6 -7
- package/dist/interactions/actions/defaults/ingest.js +3 -4
- package/dist/interactions/actions/defaults/insertPathAnchor.js +2 -3
- package/dist/interactions/actions/defaults/nudge.js +3 -4
- package/dist/interactions/actions/defaults/nudgeSteps.js +2 -3
- package/dist/interactions/actions/defaults/nudgeSteps.js.map +1 -1
- package/dist/interactions/actions/defaults/pathEditMarks.js +1 -2
- package/dist/interactions/actions/defaults/pinchZoom.js +3 -4
- package/dist/interactions/actions/defaults/reorder.js +2 -3
- package/dist/interactions/actions/defaults/requiresSelection.js +1 -2
- package/dist/interactions/actions/defaults/segmentUnder.js +1 -2
- package/dist/interactions/actions/defaults/selectAll.js +1 -2
- package/dist/interactions/actions/defaults/selectDeep.js +1 -2
- package/dist/interactions/actions/defaults/setFill.js +1 -2
- package/dist/interactions/actions/defaults/setFillOpacity.js +1 -2
- package/dist/interactions/actions/defaults/setStroke.js +1 -2
- package/dist/interactions/actions/defaults/setStrokeOpacity.js +1 -2
- package/dist/interactions/actions/defaults/slice.js +1 -2
- package/dist/interactions/actions/defaults/sliceOps.js +1 -2
- package/dist/interactions/actions/defaults/toolActivate.js +1 -2
- package/dist/interactions/actions/defaults/toolResetToDefault.js +1 -2
- package/dist/interactions/actions/defaults/undoRedo.js +1 -2
- package/dist/interactions/actions/defaults/viewportDragPan.js +1 -2
- package/dist/interactions/actions/defaults/viewportWheelPan.js +1 -2
- package/dist/interactions/actions/defaults/viewportZoom.js +3 -4
- package/dist/interactions/actions/distribute/action.js +4 -5
- package/dist/interactions/actions/distribute/distribute.js +5 -6
- package/dist/interactions/actions/distribute/plan.js +1 -2
- package/dist/interactions/actions/drawnBoxes.js +4 -5
- package/dist/interactions/actions/dropVerdict.js +1 -2
- package/dist/interactions/actions/edit-anchors/action.js +7 -9
- package/dist/interactions/actions/edit-anchors/action.js.map +1 -1
- package/dist/interactions/actions/edit-anchors/extensionDrags.js +1 -2
- package/dist/interactions/actions/edit-anchors/geometry.js +1 -2
- package/dist/interactions/actions/edit-anchors/handleDrag.js +1 -2
- package/dist/interactions/actions/edit-anchors/handles.js +1 -2
- package/dist/interactions/actions/edit-anchors/params.js +1 -2
- package/dist/interactions/actions/edit-anchors/preview.js +1 -2
- package/dist/interactions/actions/edit-anchors/symmetry.js +1 -2
- package/dist/interactions/actions/flip/action.js +8 -9
- package/dist/interactions/actions/flip/helpers.js +1 -2
- package/dist/interactions/actions/geometryProjection.js +1 -2
- package/dist/interactions/actions/gestureFrames.js +3 -4
- package/dist/interactions/actions/gestureLifecycle.js +1 -2
- package/dist/interactions/actions/hitSelection.js +7 -3
- package/dist/interactions/actions/hitSelection.js.map +1 -1
- package/dist/interactions/actions/insert/action.js +27 -9
- package/dist/interactions/actions/insert/action.js.map +1 -1
- package/dist/interactions/actions/insert/commit.js +2 -3
- package/dist/interactions/actions/insert/extras.js +1 -2
- package/dist/interactions/actions/insert/frame.js +1 -2
- package/dist/interactions/actions/insert/geometry.js +1 -2
- package/dist/interactions/actions/insert/params.js +42 -0
- package/dist/interactions/actions/insert/params.js.map +1 -0
- package/dist/interactions/actions/insert/parent.js +1 -2
- package/dist/interactions/actions/insert/placeAction.js +5 -6
- package/dist/interactions/actions/insert/repositionAction.js +1 -2
- package/dist/interactions/actions/insert/rotateAction.js +1 -2
- package/dist/interactions/actions/insert/session.js +5 -6
- package/dist/interactions/actions/insert/shape.js +2 -3
- package/dist/interactions/actions/lasso-select/action.js +9 -9
- package/dist/interactions/actions/lasso-select/action.js.map +1 -1
- package/dist/interactions/actions/lasso-select/behaviors/selectFromLasso.js +2 -3
- package/dist/interactions/actions/magnification.js +37 -0
- package/dist/interactions/actions/magnification.js.map +1 -0
- package/dist/interactions/actions/move/action.js +2 -3
- package/dist/interactions/actions/move/behaviors/layoutDrop.js +2 -3
- package/dist/interactions/actions/move/behaviors/reparentOnDrop.js +2 -3
- package/dist/interactions/actions/move/behaviors/snapBackOrDelete.js +1 -2
- package/dist/interactions/actions/move/behaviors/snapToContainer.js +2 -3
- package/dist/interactions/actions/move/capture.js +6 -7
- package/dist/interactions/actions/move/commit/index.js +2 -3
- package/dist/interactions/actions/move/commit/layoutDrop.js +4 -5
- package/dist/interactions/actions/move/commit/layoutRelease.js +7 -8
- package/dist/interactions/actions/move/commit/rebase.js +2 -3
- package/dist/interactions/actions/move/commit/reparent.js +5 -6
- package/dist/interactions/actions/move/delta.js +2 -3
- package/dist/interactions/actions/move/frame.js +2 -3
- package/dist/interactions/actions/move/gestureAdapter.js +1 -2
- package/dist/interactions/actions/move/landedDescendants.js +2 -3
- package/dist/interactions/actions/move/layout/container.js +3 -4
- package/dist/interactions/actions/move/layout/dragged.js +2 -3
- package/dist/interactions/actions/move/layout/dropPass.js +5 -6
- package/dist/interactions/actions/move/layout/exits.js +2 -3
- package/dist/interactions/actions/move/layout/glide.js +2 -3
- package/dist/interactions/actions/move/layout/view.js +1 -2
- package/dist/interactions/actions/move/refusal.js +2 -3
- package/dist/interactions/actions/move/session.js +4 -5
- package/dist/interactions/actions/move/translate.js +2 -3
- package/dist/interactions/actions/moveNodes.js +5 -6
- package/dist/interactions/actions/notices.js +16 -0
- package/dist/interactions/actions/notices.js.map +1 -0
- package/dist/interactions/actions/outlines/createOutlines.js +9 -8
- package/dist/interactions/actions/outlines/createOutlines.js.map +1 -1
- package/dist/interactions/actions/outlines/createOutlinesAction.js +14 -10
- package/dist/interactions/actions/outlines/createOutlinesAction.js.map +1 -1
- package/dist/interactions/actions/outlines/outlineStroke.js +2 -3
- package/dist/interactions/actions/outlines/outlineStrokeAction.js +5 -5
- package/dist/interactions/actions/outlines/outlineStrokeAction.js.map +1 -1
- package/dist/interactions/actions/outlines/replaceWithPaths.js +5 -6
- package/dist/interactions/actions/outlines/strokeRegion.js +1 -2
- package/dist/interactions/actions/outlines/useCreateOutlinesAdapter.js +1 -2
- package/dist/interactions/actions/pathCommands/cutJoin.js +3 -4
- package/dist/interactions/actions/pathCommands/livePathEdit.js +3 -4
- package/dist/interactions/actions/pathCommands/pathNodes.js +2 -3
- package/dist/interactions/actions/pathCommands/simplifyOffset.js +2 -3
- package/dist/interactions/actions/pathGestureTags.js +1 -2
- package/dist/interactions/actions/planeInput.js +2 -3
- package/dist/interactions/actions/pointerState.js +1 -2
- package/dist/interactions/actions/poseDescriptorDep.js +1 -2
- package/dist/interactions/actions/poseFrame.js +3 -4
- package/dist/interactions/actions/resize/action.js +3 -4
- package/dist/interactions/actions/resize/aspect.js +1 -2
- package/dist/interactions/actions/resize/behaviors/clampMinSize.js +1 -2
- package/dist/interactions/actions/resize/boxFrame.js +1 -2
- package/dist/interactions/actions/resize/capture.js +7 -8
- package/dist/interactions/actions/resize/commit.js +3 -4
- package/dist/interactions/actions/resize/cornerHandles.js +1 -2
- package/dist/interactions/actions/resize/frame.js +7 -8
- package/dist/interactions/actions/resize/held.js +2 -3
- package/dist/interactions/actions/resize/minimum.js +1 -2
- package/dist/interactions/actions/resize/replay.js +1 -2
- package/dist/interactions/actions/resize/ruleBounds.js +1 -2
- package/dist/interactions/actions/resize/session.js +9 -10
- package/dist/interactions/actions/resolveOverlays.js +1 -2
- package/dist/interactions/actions/resolvePreviews.js +3 -4
- package/dist/interactions/actions/rotate/action.js +5 -6
- package/dist/interactions/actions/rotate/commit.js +2 -3
- package/dist/interactions/actions/rotate/frame.js +3 -4
- package/dist/interactions/actions/rotate/geometry.js +1 -2
- package/dist/interactions/actions/rotate/handle.js +2 -3
- package/dist/interactions/actions/rotate/replay.js +2 -3
- package/dist/interactions/actions/rotate/session.js +10 -11
- package/dist/interactions/actions/selectionSubtree.js +7 -22
- package/dist/interactions/actions/selectionSubtree.js.map +1 -1
- package/dist/interactions/actions/spatialReference.js +1 -2
- package/dist/interactions/actions/testUtils.js +1 -9
- package/dist/interactions/actions/testUtils.js.map +1 -1
- package/dist/interactions/actions/transform-again/action.js +5 -6
- package/dist/interactions/actions/transform-again/memory.js +1 -2
- package/dist/interactions/actions/transformFinish.js +1 -2
- package/dist/interactions/actions/useActionSet.js +1 -2
- package/dist/interactions/actions/useNotices.js +12 -0
- package/dist/interactions/actions/useNotices.js.map +1 -0
- package/dist/interactions/actions/useStandardActions.js +1 -2
- package/dist/interactions/gestures/dragGesture/dragGesture.js +1 -2
- package/dist/interactions/gestures/dragGesture/dragPointOf.js +1 -2
- package/dist/interactions/gestures/dragRadial/dragRadial.js +2 -3
- package/dist/interactions/gestures/dragRect/dragRect.js +2 -3
- package/dist/interactions/gestures/handleDrag/handleDrag.js +1 -2
- package/dist/interactions/gestures/pointerDrag/pointerDrag.js +1 -2
- package/dist/interactions/gestures/shared/originProjection.js +1 -2
- package/dist/interactions/gestures/shared/screenTolerance.js +1 -2
- package/dist/interactions/gestures/thresholdDrag/thresholdDrag.js +1 -2
- package/dist/kitSettingsSchema.js +4 -5
- package/dist/test-hook/createTestHook.js +1 -2
- package/dist/test-hook/install.js +1 -2
- package/dist/test-hook/useTestHook.js +1 -2
- package/dist/test-seams.d.ts +7 -14
- package/dist/test-seams.js +2 -2
- package/dist/tools/builtin/anchors/anchorsTool.js +30 -0
- package/dist/tools/builtin/anchors/anchorsTool.js.map +1 -0
- package/dist/tools/builtin/ellipse/useEllipseTool.js +2 -3
- package/dist/tools/builtin/eyedropper/useEyedropperTool.js +1 -2
- package/dist/tools/builtin/hand/dragPanContribution.js +1 -2
- package/dist/tools/builtin/hand/useHandTool.js +1 -2
- package/dist/tools/builtin/image/useImageTool.js +1 -2
- package/dist/tools/builtin/lasso/useLassoTool.js +1 -2
- package/dist/tools/builtin/line/useLineTool.js +2 -3
- package/dist/tools/builtin/measure/useMeasureTool.js +2 -3
- package/dist/tools/builtin/pen/penHandle.js +1 -2
- package/dist/tools/builtin/pen/usePenTool.js +6 -7
- package/dist/tools/builtin/pencil/usePencilTool.js +1 -2
- package/dist/tools/builtin/pickTopMostHit.js +1 -2
- package/dist/tools/builtin/polygon/usePolygonTool.js +2 -3
- package/dist/tools/builtin/pressTarget.js +1 -2
- package/dist/tools/builtin/rect/useRectTool.js +2 -3
- package/dist/tools/builtin/select/adapterPointQuery.js +3 -4
- package/dist/tools/builtin/select/collapseDeferred.js +1 -2
- package/dist/tools/builtin/select/groupEntry.js +2 -3
- package/dist/tools/builtin/select/pressDecision.js +3 -4
- package/dist/tools/builtin/select/pressDecision.js.map +1 -1
- package/dist/tools/builtin/select/selectionContributions.js +1 -2
- package/dist/tools/builtin/select/useSelectTool.js +5 -6
- package/dist/tools/builtin/shared/insertToolOptions.js +1 -2
- package/dist/tools/builtin/shared/pointerFollower.js +1 -2
- package/dist/tools/builtin/slice/useSliceTool.js +5 -6
- package/dist/tools/builtin/star/useStarTool.js +2 -3
- package/dist/tools/builtin/sticky/stickyNode.js +1 -2
- package/dist/tools/builtin/sticky/useStickyTool.js +2 -3
- package/dist/tools/builtin/text/useTextTool.js +1 -2
- package/dist/tools/index.js +4 -2
- package/dist/tools/overlayBinding.js +1 -2
- package/dist/tools/toolOptions.js +60 -0
- package/dist/tools/toolOptions.js.map +1 -0
- package/dist/tools/useKeybindings.js +1 -2
- package/dist/{types-DW14eu9B.d.ts → types-BUvUXZe5.d.ts} +3 -3
- package/dist/util/color.js +1 -2
- package/dist/util/paint.js +1 -2
- package/dist/version.js +2 -3
- package/package.json +27 -27
- package/dist/interactions/actions/defaults/pathEditTools.js +0 -60
- package/dist/interactions/actions/defaults/pathEditTools.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resizePolicyOptions, useResizePolicy } from "../deps/resizePolicy.js";
|
|
2
2
|
import { useGeometryProjection } from "../deps/geometryProjection.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/canvas/SceneCanvas/poseRegistrars.tsx
|
|
5
5
|
/** Subcomponent so we can conditionally render (and thus conditionally
|
|
6
6
|
* call) `useResizePolicy`. See parent's comment for why this
|
|
7
7
|
* must be gated rather than always-on. */
|
|
@@ -18,6 +18,5 @@ function GeometryProjectionRegistrar({ projection }) {
|
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { GeometryProjectionRegistrar, ResizePolicyRegistrar };
|
|
23
22
|
//# sourceMappingURL=poseRegistrars.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { flipAction } from "../../../interactions/actions/flip/action.js";
|
|
2
1
|
import { alignBottomAction, alignCenterXAction, alignCenterYAction, alignLeftAction, alignRightAction, alignTopAction } from "../../../interactions/actions/align/action.js";
|
|
3
2
|
import { reorderBackwardAction, reorderForwardAction } from "../../../interactions/actions/defaults/reorder.js";
|
|
4
3
|
import { distributeHorizontalAction, distributeVerticalAction } from "../../../interactions/actions/distribute/action.js";
|
|
4
|
+
import { flipAction } from "../../../interactions/actions/flip/action.js";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/canvas/SceneCanvas/presets/arrange.ts
|
|
7
7
|
/** Flipping the selection. */
|
|
8
8
|
var flipPreset = {
|
|
9
9
|
id: "flip",
|
|
@@ -47,6 +47,5 @@ var arrangePreset = {
|
|
|
47
47
|
]
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
//#endregion
|
|
51
50
|
export { alignPreset, arrangePreset, distributePreset, flipPreset, reorderPreset };
|
|
52
51
|
//# sourceMappingURL=arrange.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { redoAction, undoAction } from "../../../interactions/actions/defaults/undoRedo.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/canvas/SceneCanvas/presets/baseline.ts
|
|
4
4
|
/** Undo and redo, which every canvas registers whatever its presets. */
|
|
5
5
|
var BASELINE_ACTIONS = [undoAction, redoAction];
|
|
6
6
|
|
|
7
|
-
//#endregion
|
|
8
7
|
export { BASELINE_ACTIONS };
|
|
9
8
|
//# sourceMappingURL=baseline.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/canvas/SceneCanvas/presets/chrome.ts
|
|
2
2
|
/** The selection chrome each core preset owns. Apart from the presets, so
|
|
3
3
|
* hiding a preset's chrome does not load its actions. */
|
|
4
4
|
var PRESET_CHROME = {
|
|
@@ -9,6 +9,5 @@ var PRESET_CHROME = {
|
|
|
9
9
|
/** Every chrome id a core preset owns. */
|
|
10
10
|
var PRESET_OWNED_CHROME = Object.values(PRESET_CHROME).flat();
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
export { PRESET_CHROME, PRESET_OWNED_CHROME };
|
|
14
13
|
//# sourceMappingURL=chrome.js.map
|
|
@@ -6,7 +6,7 @@ import { selectPreset } from "./select.js";
|
|
|
6
6
|
import { movePreset, outlinePreset, resizePreset, rotatePreset } from "./transform.js";
|
|
7
7
|
import { viewPreset } from "./view.js";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/canvas/SceneCanvas/presets/composites.ts
|
|
10
10
|
/** Select, and the selection's outline. */
|
|
11
11
|
var pickPreset = {
|
|
12
12
|
id: "pick",
|
|
@@ -38,6 +38,5 @@ var drawPreset = {
|
|
|
38
38
|
]
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { drawPreset, pickPreset, transformPreset };
|
|
43
42
|
//# sourceMappingURL=composites.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { contextMenuAction } from "../../../interactions/actions/defaults/contextMenu.js";
|
|
2
|
-
import { deleteAction } from "../../../interactions/actions/defaults/delete.js";
|
|
3
|
-
import { clipboardCopyAction, clipboardCutAction, clipboardPasteAction, clipboardPasteEventAction } from "../../../interactions/actions/clipboard/action.js";
|
|
4
1
|
import { cancelGestureAction } from "../../../interactions/actions/defaults/cancelGesture.js";
|
|
2
|
+
import { deleteAction } from "../../../interactions/actions/defaults/delete.js";
|
|
5
3
|
import { duplicateAction } from "../../../interactions/actions/defaults/duplicate.js";
|
|
6
4
|
import { escapeAction } from "../../../interactions/actions/defaults/escape.js";
|
|
5
|
+
import { contextMenuAction } from "../../../interactions/actions/defaults/contextMenu.js";
|
|
7
6
|
import { groupAction, ungroupAction } from "../../../interactions/actions/defaults/group.js";
|
|
8
7
|
import { nudgeDownAction, nudgeLeftAction, nudgeRightAction, nudgeUpAction } from "../../../interactions/actions/defaults/nudge.js";
|
|
9
8
|
import { selectAllAction } from "../../../interactions/actions/defaults/selectAll.js";
|
|
@@ -11,9 +10,10 @@ import { setFillAction } from "../../../interactions/actions/defaults/setFill.js
|
|
|
11
10
|
import { setFillOpacityAction } from "../../../interactions/actions/defaults/setFillOpacity.js";
|
|
12
11
|
import { setStrokeAction } from "../../../interactions/actions/defaults/setStroke.js";
|
|
13
12
|
import { setStrokeOpacityAction } from "../../../interactions/actions/defaults/setStrokeOpacity.js";
|
|
13
|
+
import { clipboardCopyAction, clipboardCutAction, clipboardPasteAction, clipboardPasteEventAction } from "../../../interactions/actions/clipboard/action.js";
|
|
14
14
|
import { transformAgainAction } from "../../../interactions/actions/transform-again/action.js";
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// src/canvas/SceneCanvas/presets/edit.ts
|
|
17
17
|
/** Escape, and canceling the gesture in flight. */
|
|
18
18
|
var escapePreset = {
|
|
19
19
|
id: "escape",
|
|
@@ -107,6 +107,5 @@ var editPreset = {
|
|
|
107
107
|
]
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
//#endregion
|
|
111
110
|
export { clipboardPreset, contextMenuPreset, deletePreset, duplicatePreset, editPreset, escapePreset, groupPreset, nudgePreset, selectAllPreset, stylePreset };
|
|
112
111
|
//# sourceMappingURL=edit.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ingestAction } from "../../../interactions/actions/defaults/ingest.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/canvas/SceneCanvas/presets/ingest.ts
|
|
4
4
|
/** Dropped and pasted content: images, SVG, files, and whatever
|
|
5
5
|
* `ingestion.handlers` accept, on Cmd/Ctrl+V or an OS drop. */
|
|
6
6
|
var ingestPreset = {
|
|
@@ -9,6 +9,5 @@ var ingestPreset = {
|
|
|
9
9
|
actions: [ingestAction]
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
export { ingestPreset };
|
|
14
13
|
//# sourceMappingURL=ingest.js.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { exitPathEditToolAction } from "../../../interactions/actions/defaults/pathEditTools.js";
|
|
2
|
-
import { editAnchorsAction } from "../../../interactions/actions/edit-anchors/action.js";
|
|
3
1
|
import { cutPathAtAnchorAction, deleteAnchorsAction, marqueeAnchorsAction, nudgeAnchorsDownAction, nudgeAnchorsLeftAction, nudgeAnchorsRightAction, nudgeAnchorsUpAction, selectAnchorAction } from "../../../interactions/actions/defaults/anchorEditing.js";
|
|
4
2
|
import { makeHandlesSymmetricAction, retractHandlesAction } from "../../../interactions/actions/defaults/anchorHandles.js";
|
|
5
3
|
import { setAnchorFieldAction } from "../../../interactions/actions/defaults/anchorFields.js";
|
|
@@ -7,19 +5,20 @@ import { averageAnchorsAction, joinAnchorsAction } from "../../../interactions/a
|
|
|
7
5
|
import { bendSegmentAction } from "../../../interactions/actions/defaults/bendSegment.js";
|
|
8
6
|
import { enterPathEditAction } from "../../../interactions/actions/defaults/enterPathEdit.js";
|
|
9
7
|
import { exitPathEditAction } from "../../../interactions/actions/defaults/exitPathEdit.js";
|
|
8
|
+
import { editAnchorsAction } from "../../../interactions/actions/edit-anchors/action.js";
|
|
10
9
|
import { insertPathAnchorAction } from "../../../interactions/actions/defaults/insertPathAnchor.js";
|
|
11
10
|
import { pathfinderCropAction, pathfinderDivideAction, pathfinderExcludeAction, pathfinderIntersectAction, pathfinderMergeAction, pathfinderSubtractAction, pathfinderTrimAction, pathfinderUnionAction } from "../../../interactions/actions/booleans/action.js";
|
|
12
11
|
import { makeBooleanGroupAction } from "../../../interactions/actions/booleans/booleanGroupAction.js";
|
|
13
12
|
import { createOutlinesAction } from "../../../interactions/actions/outlines/createOutlinesAction.js";
|
|
14
13
|
import { outlineStrokeAction } from "../../../interactions/actions/outlines/outlineStrokeAction.js";
|
|
15
|
-
import { offsetPathAction, simplifyPathAction } from "../../../interactions/actions/pathCommands/simplifyOffset.js";
|
|
16
14
|
import { joinPathsAction, snipAtCrossingsAction } from "../../../interactions/actions/pathCommands/cutJoin.js";
|
|
15
|
+
import { offsetPathAction, simplifyPathAction } from "../../../interactions/actions/pathCommands/simplifyOffset.js";
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
// src/canvas/SceneCanvas/presets/paths.ts
|
|
19
18
|
/**
|
|
20
19
|
* The path-edit keys that share a key with a node-level action: anchor nudging
|
|
21
|
-
* and deleting, and Escape out of path edit
|
|
22
|
-
*
|
|
20
|
+
* and deleting, and Escape out of path edit. Each is tried ahead of its twin,
|
|
21
|
+
* which is enabled whenever anything is selected.
|
|
23
22
|
*/
|
|
24
23
|
var anchorKeysPreset = {
|
|
25
24
|
id: "anchorKeys",
|
|
@@ -35,8 +34,7 @@ var anchorKeysPreset = {
|
|
|
35
34
|
nudgeAnchorsLeftAction,
|
|
36
35
|
nudgeAnchorsRightAction,
|
|
37
36
|
deleteAnchorsAction,
|
|
38
|
-
exitPathEditAction
|
|
39
|
-
exitPathEditToolAction
|
|
37
|
+
exitPathEditAction
|
|
40
38
|
]
|
|
41
39
|
};
|
|
42
40
|
/** The pathfinder booleans, and the live boolean group. */
|
|
@@ -61,10 +59,12 @@ var outlinesPreset = {
|
|
|
61
59
|
label: "Outlines",
|
|
62
60
|
actions: [createOutlinesAction, outlineStrokeAction]
|
|
63
61
|
};
|
|
64
|
-
/** Entering path edit, and editing anchors, handles, and segments in it
|
|
62
|
+
/** Entering path edit, and editing anchors, handles, and segments in it, with
|
|
63
|
+
* the `anchors` tool path edit starts on. */
|
|
65
64
|
var pathEditPreset = {
|
|
66
65
|
id: "pathEdit",
|
|
67
66
|
label: "Path edit",
|
|
67
|
+
tools: ["anchors"],
|
|
68
68
|
actions: [
|
|
69
69
|
editAnchorsAction,
|
|
70
70
|
enterPathEditAction,
|
|
@@ -104,6 +104,5 @@ var pathsPreset = {
|
|
|
104
104
|
]
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
//#endregion
|
|
108
107
|
export { anchorKeysPreset, outlinesPreset, pathCommandsPreset, pathEditPreset, pathfinderPreset, pathsPreset };
|
|
109
108
|
//# sourceMappingURL=paths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","names":[],"sources":["../../../../src/canvas/SceneCanvas/presets/paths.ts"],"sourcesContent":["import {\n cutPathAtAnchorAction, deleteAnchorsAction, marqueeAnchorsAction,\n nudgeAnchorsDownAction, nudgeAnchorsLeftAction, nudgeAnchorsRightAction, nudgeAnchorsUpAction,\n selectAnchorAction,\n} from 'interactions/actions/defaults/anchorEditing';\nimport { makeHandlesSymmetricAction, retractHandlesAction } from 'interactions/actions/defaults/anchorHandles';\nimport { setAnchorFieldAction } from 'interactions/actions/defaults/anchorFields';\nimport { averageAnchorsAction, joinAnchorsAction } from 'interactions/actions/defaults/anchorJoin';\nimport { bendSegmentAction } from 'interactions/actions/defaults/bendSegment';\nimport { enterPathEditAction } from 'interactions/actions/defaults/enterPathEdit';\nimport { exitPathEditAction } from 'interactions/actions/defaults/exitPathEdit';\nimport { editAnchorsAction } from 'interactions/actions/edit-anchors/action';\nimport { insertPathAnchorAction } from 'interactions/actions/defaults/insertPathAnchor';\nimport {
|
|
1
|
+
{"version":3,"file":"paths.js","names":[],"sources":["../../../../src/canvas/SceneCanvas/presets/paths.ts"],"sourcesContent":["import {\n cutPathAtAnchorAction, deleteAnchorsAction, marqueeAnchorsAction,\n nudgeAnchorsDownAction, nudgeAnchorsLeftAction, nudgeAnchorsRightAction, nudgeAnchorsUpAction,\n selectAnchorAction,\n} from 'interactions/actions/defaults/anchorEditing';\nimport { makeHandlesSymmetricAction, retractHandlesAction } from 'interactions/actions/defaults/anchorHandles';\nimport { setAnchorFieldAction } from 'interactions/actions/defaults/anchorFields';\nimport { averageAnchorsAction, joinAnchorsAction } from 'interactions/actions/defaults/anchorJoin';\nimport { bendSegmentAction } from 'interactions/actions/defaults/bendSegment';\nimport { enterPathEditAction } from 'interactions/actions/defaults/enterPathEdit';\nimport { exitPathEditAction } from 'interactions/actions/defaults/exitPathEdit';\nimport { editAnchorsAction } from 'interactions/actions/edit-anchors/action';\nimport { insertPathAnchorAction } from 'interactions/actions/defaults/insertPathAnchor';\nimport {\n pathfinderCropAction, pathfinderDivideAction, pathfinderExcludeAction, pathfinderIntersectAction,\n pathfinderMergeAction, pathfinderSubtractAction, pathfinderTrimAction, pathfinderUnionAction,\n} from 'interactions/actions/booleans/action';\nimport { makeBooleanGroupAction } from 'interactions/actions/booleans/booleanGroupAction';\nimport { createOutlinesAction } from 'interactions/actions/outlines/createOutlinesAction';\nimport { outlineStrokeAction } from 'interactions/actions/outlines/outlineStrokeAction';\nimport {\n joinPathsAction, offsetPathAction, simplifyPathAction, snipAtCrossingsAction,\n} from 'interactions/actions/pathCommands';\nimport type { FeaturePreset } from '../features';\n\n/**\n * The path-edit keys that share a key with a node-level action: anchor nudging\n * and deleting, and Escape out of path edit. Each is tried ahead of its twin,\n * which is enabled whenever anything is selected.\n */\nexport const anchorKeysPreset: FeaturePreset = {\n id: 'anchorKeys',\n label: 'Anchor keys',\n refines: ['nudge', 'delete', 'escape'],\n actions: [\n nudgeAnchorsUpAction, nudgeAnchorsDownAction, nudgeAnchorsLeftAction, nudgeAnchorsRightAction,\n deleteAnchorsAction, exitPathEditAction,\n ],\n};\n\n/** The pathfinder booleans, and the live boolean group. */\nexport const pathfinderPreset: FeaturePreset = {\n id: 'pathfinder',\n label: 'Pathfinder',\n actions: [\n pathfinderUnionAction, pathfinderSubtractAction, pathfinderIntersectAction, pathfinderExcludeAction,\n pathfinderDivideAction, pathfinderCropAction, pathfinderTrimAction, pathfinderMergeAction,\n makeBooleanGroupAction,\n ],\n};\n\n/** Text and strokes to paths. */\nexport const outlinesPreset: FeaturePreset = {\n id: 'outlines', label: 'Outlines', actions: [createOutlinesAction, outlineStrokeAction],\n};\n\n/** Entering path edit, and editing anchors, handles, and segments in it, with\n * the `anchors` tool path edit starts on. */\nexport const pathEditPreset: FeaturePreset = {\n id: 'pathEdit',\n label: 'Path edit',\n tools: ['anchors'],\n actions: [\n editAnchorsAction, enterPathEditAction, insertPathAnchorAction, bendSegmentAction, cutPathAtAnchorAction,\n retractHandlesAction, makeHandlesSymmetricAction, averageAnchorsAction, joinAnchorsAction, setAnchorFieldAction,\n marqueeAnchorsAction, selectAnchorAction,\n ],\n};\n\n/** Simplify, offset, snip at crossings, and join paths. */\nexport const pathCommandsPreset: FeaturePreset = {\n id: 'pathCommands',\n label: 'Path commands',\n actions: [simplifyPathAction, offsetPathAction, snipAtCrossingsAction, joinPathsAction],\n};\n\n/** Pathfinder operations, path-edit entry, and anchor editing. */\nexport const pathsPreset: FeaturePreset = {\n id: 'paths',\n label: 'Paths',\n includes: [anchorKeysPreset, pathfinderPreset, outlinesPreset, pathEditPreset, pathCommandsPreset],\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8BA,IAAa,mBAAkC;CAC7C,IAAI;CACJ,OAAO;CACP,SAAS;EAAC;EAAS;EAAU;CAAQ;CACrC,SAAS;EACP;EAAsB;EAAwB;EAAwB;EACtE;EAAqB;CACvB;AACF;;AAGA,IAAa,mBAAkC;CAC7C,IAAI;CACJ,OAAO;CACP,SAAS;EACP;EAAuB;EAA0B;EAA2B;EAC5E;EAAwB;EAAsB;EAAsB;EACpE;CACF;AACF;;AAGA,IAAa,iBAAgC;CAC3C,IAAI;CAAY,OAAO;CAAY,SAAS,CAAC,sBAAsB,mBAAmB;AACxF;;;AAIA,IAAa,iBAAgC;CAC3C,IAAI;CACJ,OAAO;CACP,OAAO,CAAC,SAAS;CACjB,SAAS;EACP;EAAmB;EAAqB;EAAwB;EAAmB;EACnF;EAAsB;EAA4B;EAAsB;EAAmB;EAC3F;EAAsB;CACxB;AACF;;AAGA,IAAa,qBAAoC;CAC/C,IAAI;CACJ,OAAO;CACP,SAAS;EAAC;EAAoB;EAAkB;EAAuB;CAAe;AACxF;;AAGA,IAAa,cAA6B;CACxC,IAAI;CACJ,OAAO;CACP,UAAU;EAAC;EAAkB;EAAkB;EAAgB;EAAgB;CAAkB;AACnG"}
|
|
@@ -3,7 +3,7 @@ import { clearSelectionAction } from "../../../interactions/actions/defaults/cle
|
|
|
3
3
|
import { lassoSelectAction } from "../../../interactions/actions/lasso-select/action.js";
|
|
4
4
|
import { selectToolsPreset } from "./tools.js";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/canvas/SceneCanvas/presets/select.ts
|
|
7
7
|
/** The select and lasso tools: click, marquee, lasso, and clearing on an empty click. */
|
|
8
8
|
var selectPreset = {
|
|
9
9
|
id: "select",
|
|
@@ -16,6 +16,5 @@ var selectPreset = {
|
|
|
16
16
|
includes: [selectToolsPreset]
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
//#endregion
|
|
20
19
|
export { selectPreset };
|
|
21
20
|
//# sourceMappingURL=select.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { enterTextEditAction } from "../../../interactions/actions/defaults/enterTextEdit.js";
|
|
1
2
|
import { insertAction } from "../../../interactions/actions/insert/action.js";
|
|
2
3
|
import { placeAction } from "../../../interactions/actions/insert/placeAction.js";
|
|
3
4
|
import { insertRepositionAction } from "../../../interactions/actions/insert/repositionAction.js";
|
|
4
|
-
import { enterTextEditAction } from "../../../interactions/actions/defaults/enterTextEdit.js";
|
|
5
5
|
import { insertRotateAction } from "../../../interactions/actions/insert/rotateAction.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/canvas/SceneCanvas/presets/toolDriven.ts
|
|
8
8
|
/** Kit actions the built-in tools bind and no preset registers. A canvas
|
|
9
9
|
* registers one whenever a tool it carries binds it. */
|
|
10
10
|
var toolDrivenActions = [
|
|
@@ -15,6 +15,5 @@ var toolDrivenActions = [
|
|
|
15
15
|
enterTextEditAction
|
|
16
16
|
];
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
export { toolDrivenActions };
|
|
20
19
|
//# sourceMappingURL=toolDriven.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DRAW_TOOLS, PAGE_TOOLS, SELECT_TOOLS, SHAPE_TOOLS, TYPE_TOOLS, VIEW_TOOLS } from "../builtinToolSets.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/canvas/SceneCanvas/presets/tools.ts
|
|
4
4
|
var toolsOf = (set, label) => ({
|
|
5
5
|
id: `tools:${set.id}`,
|
|
6
6
|
label,
|
|
@@ -19,6 +19,5 @@ var typeToolsPreset = toolsOf(TYPE_TOOLS, "Text tools");
|
|
|
19
19
|
/** The page slicer. */
|
|
20
20
|
var pageToolsPreset = toolsOf(PAGE_TOOLS, "Page tools");
|
|
21
21
|
|
|
22
|
-
//#endregion
|
|
23
22
|
export { drawToolsPreset, pageToolsPreset, selectToolsPreset, shapeToolsPreset, typeToolsPreset, viewToolsPreset };
|
|
24
23
|
//# sourceMappingURL=tools.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { cloneAction } from "../../../interactions/actions/clone/action.js";
|
|
1
2
|
import { moveAction } from "../../../interactions/actions/move/action.js";
|
|
2
3
|
import { resizeAction } from "../../../interactions/actions/resize/action.js";
|
|
3
4
|
import { rotateAction } from "../../../interactions/actions/rotate/action.js";
|
|
4
|
-
import { cloneAction } from "../../../interactions/actions/clone/action.js";
|
|
5
5
|
import { selectionMoveContribution, selectionResizeContribution, selectionRotateContribution } from "../../../tools/builtin/select/selectionContributions.js";
|
|
6
6
|
import { PRESET_CHROME } from "./chrome.js";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/canvas/SceneCanvas/presets/transform.ts
|
|
9
9
|
/** The selection outline, drawn only while this is on. */
|
|
10
10
|
var outlinePreset = {
|
|
11
11
|
id: "outline",
|
|
@@ -40,6 +40,5 @@ var movePreset = {
|
|
|
40
40
|
ambient: ({ move }) => selectionMoveContribution({ move })
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
//#endregion
|
|
44
43
|
export { movePreset, outlinePreset, resizePreset, rotatePreset };
|
|
45
44
|
//# sourceMappingURL=transform.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { viewportDragPanAction } from "../../../interactions/actions/defaults/viewportDragPan.js";
|
|
2
1
|
import { pinchZoomAction } from "../../../interactions/actions/defaults/pinchZoom.js";
|
|
2
|
+
import { viewportDragPanAction } from "../../../interactions/actions/defaults/viewportDragPan.js";
|
|
3
3
|
import { viewToolsPreset } from "./tools.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/canvas/SceneCanvas/presets/view.ts
|
|
6
6
|
/** Pan and zoom: the hand tool, drag-pan, and pinch. */
|
|
7
7
|
var viewPreset = {
|
|
8
8
|
id: "view",
|
|
@@ -11,6 +11,5 @@ var viewPreset = {
|
|
|
11
11
|
includes: [viewToolsPreset]
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
//#endregion
|
|
15
14
|
export { viewPreset };
|
|
16
15
|
//# sourceMappingURL=view.js.map
|
|
@@ -2,12 +2,11 @@ import { HANDLE_BASE_PX } from "../../core/device/targets.js";
|
|
|
2
2
|
import { BUILTIN_TOOL_IDS } from "./builtinToolSets.js";
|
|
3
3
|
import "@weasel-js/routing/react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/canvas/SceneCanvas/props.ts
|
|
6
6
|
/** Default size in CSS pixels for selection corner-handles AND their
|
|
7
7
|
* hit-test radius, at `targetScale = 1`. Deliberately unscaled; kit-internal
|
|
8
8
|
* use sites multiply by `DeviceProfile.targetScale`. */
|
|
9
9
|
var DEFAULT_HANDLE_SIZE = HANDLE_BASE_PX;
|
|
10
10
|
|
|
11
|
-
//#endregion
|
|
12
11
|
export { BUILTIN_TOOL_IDS, DEFAULT_HANDLE_SIZE };
|
|
13
12
|
//# sourceMappingURL=props.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { toPlane } from "../../core/viewport/parallax.js";
|
|
2
1
|
import { findShapeInk, shapeCoversPoint } from "../NodeShape.js";
|
|
2
|
+
import { toPlane } from "../../core/viewport/parallax.js";
|
|
3
3
|
import { poseContains, poseContainsRotated } from "./poseGeometry.js";
|
|
4
4
|
import { applyToPoint, meanScale, pathContainsPoint } from "@weasel-js/geom";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/canvas/SceneCanvas/scenePointQuery.ts
|
|
7
7
|
/** The point query `<SceneCanvas>`'s default pick asks: a world point with
|
|
8
8
|
* `pickTolerancePx` of screen slop, refined to the painter's ink when
|
|
9
9
|
* `shapePicking` is on. */
|
|
@@ -75,6 +75,5 @@ function pointBroad(px, py, s, tolerancePx) {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
//#endregion
|
|
79
78
|
export { scenePointQuery };
|
|
80
79
|
//# sourceMappingURL=scenePointQuery.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SHAPE_COUNT_RANGE, STAR_RATIO_RANGE } from "../../domains/paths/shapeGenerator.js";
|
|
2
2
|
import { decimal } from "@weasel-js/quantity";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/canvas/SceneCanvas/shapeGeneratorProperties.ts
|
|
5
5
|
var WHOLE = decimal({
|
|
6
6
|
maxPlaces: 2,
|
|
7
7
|
grouping: false
|
|
@@ -42,7 +42,7 @@ var SHAPE_GENERATOR_SECTIONS = {
|
|
|
42
42
|
},
|
|
43
43
|
"data.generator.innerRadiusRatio": {
|
|
44
44
|
kind: "number",
|
|
45
|
-
name: "Inner",
|
|
45
|
+
name: "Inner radius",
|
|
46
46
|
description: "Inner radius as a fraction of the outer one.",
|
|
47
47
|
default: .5,
|
|
48
48
|
min: STAR_RATIO_RANGE.min,
|
|
@@ -54,6 +54,5 @@ var SHAPE_GENERATOR_SECTIONS = {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
//#endregion
|
|
58
57
|
export { SHAPE_GENERATOR_SECTIONS };
|
|
59
58
|
//# sourceMappingURL=shapeGeneratorProperties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shapeGeneratorProperties.js","names":[],"sources":["../../../src/canvas/SceneCanvas/shapeGeneratorProperties.ts"],"sourcesContent":["import type { PrefSection } from '@weasel-js/prefs';\nimport { decimal } from '@weasel-js/quantity';\nimport { SHAPE_COUNT_RANGE, STAR_RATIO_RANGE } from 'domains/paths/shapeGenerator';\n\nconst WHOLE = decimal({ maxPlaces: 2, grouping: false });\n\n/**\n * The rows that edit a polygon's or a star's `data.generator`, each shown only\n * on a node holding that kind's generator. A write to one regenerates the\n * shape through the entry's `settle` (`settleShapeGenerator`).\n */\nexport const SHAPE_GENERATOR_SECTIONS: Record<string, PrefSection> = {\n polygon: {\n name: 'Polygon',\n showIf: { path: 'data.generator.sides' },\n members: {\n 'data.generator.sides': {\n kind: 'number', display: WHOLE, name: 'Sides', description: 'Number of sides.',\n default: 6, min: SHAPE_COUNT_RANGE.min, max: SHAPE_COUNT_RANGE.max, step: 1,\n },\n },\n },\n star: {\n name: 'Star',\n showIf: { path: 'data.generator.points' },\n members: {\n 'data.generator.points': {\n kind: 'number', display: WHOLE, name: 'Points', description: 'Number of points.',\n default: 5, min: SHAPE_COUNT_RANGE.min, max: SHAPE_COUNT_RANGE.max, step: 1,\n },\n 'data.generator.innerRadiusRatio': {\n kind: 'number', name: 'Inner', description: 'Inner radius as a fraction of the outer one.',\n default: 0.5, min: STAR_RATIO_RANGE.min, max: STAR_RATIO_RANGE.max, step: 0.01, control: 'slider',\n },\n },\n },\n};\n"],"mappings":";;;;AAIA,IAAM,QAAQ,QAAQ;CAAE,WAAW;CAAG,UAAU;AAAM,CAAC;;;;;;AAOvD,IAAa,2BAAwD;CACnE,SAAS;EACP,MAAM;EACN,QAAQ,EAAE,MAAM,uBAAuB;EACvC,SAAS,EACP,wBAAwB;GACtB,MAAM;GAAU,SAAS;GAAO,MAAM;GAAS,aAAa;GAC5D,SAAS;GAAG,KAAK,kBAAkB;GAAK,KAAK,kBAAkB;GAAK,MAAM;EAC5E,EACF;CACF;CACA,MAAM;EACJ,MAAM;EACN,QAAQ,EAAE,MAAM,wBAAwB;EACxC,SAAS;GACP,yBAAyB;IACvB,MAAM;IAAU,SAAS;IAAO,MAAM;IAAU,aAAa;IAC7D,SAAS;IAAG,KAAK,kBAAkB;IAAK,KAAK,kBAAkB;IAAK,MAAM;GAC5E;GACA,mCAAmC;IACjC,MAAM;IAAU,MAAM;
|
|
1
|
+
{"version":3,"file":"shapeGeneratorProperties.js","names":[],"sources":["../../../src/canvas/SceneCanvas/shapeGeneratorProperties.ts"],"sourcesContent":["import type { PrefSection } from '@weasel-js/prefs';\nimport { decimal } from '@weasel-js/quantity';\nimport { SHAPE_COUNT_RANGE, STAR_RATIO_RANGE } from 'domains/paths/shapeGenerator';\n\nconst WHOLE = decimal({ maxPlaces: 2, grouping: false });\n\n/**\n * The rows that edit a polygon's or a star's `data.generator`, each shown only\n * on a node holding that kind's generator. A write to one regenerates the\n * shape through the entry's `settle` (`settleShapeGenerator`).\n */\nexport const SHAPE_GENERATOR_SECTIONS: Record<string, PrefSection> = {\n polygon: {\n name: 'Polygon',\n showIf: { path: 'data.generator.sides' },\n members: {\n 'data.generator.sides': {\n kind: 'number', display: WHOLE, name: 'Sides', description: 'Number of sides.',\n default: 6, min: SHAPE_COUNT_RANGE.min, max: SHAPE_COUNT_RANGE.max, step: 1,\n },\n },\n },\n star: {\n name: 'Star',\n showIf: { path: 'data.generator.points' },\n members: {\n 'data.generator.points': {\n kind: 'number', display: WHOLE, name: 'Points', description: 'Number of points.',\n default: 5, min: SHAPE_COUNT_RANGE.min, max: SHAPE_COUNT_RANGE.max, step: 1,\n },\n 'data.generator.innerRadiusRatio': {\n kind: 'number', name: 'Inner radius', description: 'Inner radius as a fraction of the outer one.',\n default: 0.5, min: STAR_RATIO_RANGE.min, max: STAR_RATIO_RANGE.max, step: 0.01, control: 'slider',\n },\n },\n },\n};\n"],"mappings":";;;;AAIA,IAAM,QAAQ,QAAQ;CAAE,WAAW;CAAG,UAAU;AAAM,CAAC;;;;;;AAOvD,IAAa,2BAAwD;CACnE,SAAS;EACP,MAAM;EACN,QAAQ,EAAE,MAAM,uBAAuB;EACvC,SAAS,EACP,wBAAwB;GACtB,MAAM;GAAU,SAAS;GAAO,MAAM;GAAS,aAAa;GAC5D,SAAS;GAAG,KAAK,kBAAkB;GAAK,KAAK,kBAAkB;GAAK,MAAM;EAC5E,EACF;CACF;CACA,MAAM;EACJ,MAAM;EACN,QAAQ,EAAE,MAAM,wBAAwB;EACxC,SAAS;GACP,yBAAyB;IACvB,MAAM;IAAU,SAAS;IAAO,MAAM;IAAU,aAAa;IAC7D,SAAS;IAAG,KAAK,kBAAkB;IAAK,KAAK,kBAAkB;IAAK,MAAM;GAC5E;GACA,mCAAmC;IACjC,MAAM;IAAU,MAAM;IAAgB,aAAa;IACnD,SAAS;IAAK,KAAK,iBAAiB;IAAK,KAAK,iBAAiB;IAAK,MAAM;IAAM,SAAS;GAC3F;EACF;CACF;AACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BUILTIN_TOOL_IDS } from "./builtinToolSets.js";
|
|
2
1
|
import { presetBuiltinTools, presetOwnTools } from "./features.js";
|
|
2
|
+
import { BUILTIN_TOOL_IDS } from "./builtinToolSets.js";
|
|
3
3
|
import { isDev } from "@weasel-js/react";
|
|
4
4
|
import { toolIdsOf } from "@weasel-js/routing";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/canvas/SceneCanvas/toolRegistry.ts
|
|
7
7
|
/**
|
|
8
8
|
* The tool registry a canvas mounts when it is not handed a whole `ToolsApi`.
|
|
9
9
|
*
|
|
@@ -38,6 +38,5 @@ function resolveToolRegistry(args) {
|
|
|
38
38
|
return registry;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { resolveToolRegistry };
|
|
43
42
|
//# sourceMappingURL=toolRegistry.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
2
|
import { useActionsRegistry } from "@weasel-js/routing/react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/canvas/SceneCanvas/useActionTunings.ts
|
|
5
5
|
/** Hold `tune`'s tunings on the registry in scope for as long as the object
|
|
6
6
|
* is the same one. */
|
|
7
7
|
function useActionTunings(tune) {
|
|
@@ -20,6 +20,5 @@ function useBindingOverrides(overrides) {
|
|
|
20
20
|
useEffect(() => reg && overrides ? reg.overrideBindings(overrides) : void 0, [reg, overrides]);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
//#endregion
|
|
24
23
|
export { useActionTunings, useBindingOverrides };
|
|
25
24
|
//# sourceMappingURL=useActionTunings.js.map
|
|
@@ -2,7 +2,7 @@ import { useEffect } from "react";
|
|
|
2
2
|
import { useLatest } from "@weasel-js/react";
|
|
3
3
|
import { useActionsRegistry } from "@weasel-js/routing/react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/canvas/SceneCanvas/useActionsPropResolver.ts
|
|
6
6
|
/**
|
|
7
7
|
* Applies the `actions` prop overrides on top of whatever is already
|
|
8
8
|
* registered, so the caller mounts this hook last.
|
|
@@ -71,6 +71,5 @@ function useActionsPropResolver(actions, rev) {
|
|
|
71
71
|
]);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
//#endregion
|
|
75
74
|
export { useActionsPropResolver };
|
|
76
75
|
//# sourceMappingURL=useActionsPropResolver.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isSerializedScene } from "../../core/scene/serialization.js";
|
|
2
1
|
import { sceneFromJSON } from "../../core/scene/scene.js";
|
|
2
|
+
import { isSerializedScene } from "../../core/scene/serialization.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/canvas/SceneCanvas/useBakedScene.ts
|
|
6
6
|
/**
|
|
7
7
|
* `scene` accepts either a live `Scene` or a `SerializedScene` JSON object. JSON is baked
|
|
8
8
|
* once; later prop changes are ignored (use a `key` on `<SceneCanvas>` to force a fresh canvas).
|
|
@@ -12,6 +12,5 @@ function useBakedScene(sceneInput) {
|
|
|
12
12
|
return bakedScene ?? sceneInput;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
//#endregion
|
|
16
15
|
export { useBakedScene };
|
|
17
16
|
//# sourceMappingURL=useBakedScene.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { KIT_SHAPE_KINDS } from "../../core/shapeKinds.js";
|
|
2
|
-
import { useTextTool } from "../../tools/builtin/text/useTextTool.js";
|
|
3
|
-
import { useStickyTool } from "../../tools/builtin/sticky/useStickyTool.js";
|
|
4
|
-
import { usePenTool } from "../../tools/builtin/pen/usePenTool.js";
|
|
5
|
-
import { useRectTool } from "../../tools/builtin/rect/useRectTool.js";
|
|
6
2
|
import { useEllipseTool } from "../../tools/builtin/ellipse/useEllipseTool.js";
|
|
7
|
-
import { useLineTool } from "../../tools/builtin/line/useLineTool.js";
|
|
8
3
|
import { useLassoTool } from "../../tools/builtin/lasso/useLassoTool.js";
|
|
4
|
+
import { useLineTool } from "../../tools/builtin/line/useLineTool.js";
|
|
5
|
+
import { usePencilTool } from "../../tools/builtin/pencil/usePencilTool.js";
|
|
6
|
+
import { usePenTool } from "../../tools/builtin/pen/usePenTool.js";
|
|
9
7
|
import { usePolygonTool } from "../../tools/builtin/polygon/usePolygonTool.js";
|
|
8
|
+
import { useRectTool } from "../../tools/builtin/rect/useRectTool.js";
|
|
10
9
|
import { useStarTool } from "../../tools/builtin/star/useStarTool.js";
|
|
11
|
-
import {
|
|
10
|
+
import { useTextTool } from "../../tools/builtin/text/useTextTool.js";
|
|
11
|
+
import { useStickyTool } from "../../tools/builtin/sticky/useStickyTool.js";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/canvas/SceneCanvas/useBuiltinShapeTools.tsx
|
|
14
14
|
/**
|
|
15
15
|
* Shape-tool synthesis for `<SceneCanvas>` — calls the kit's per-shape tool
|
|
16
16
|
* hooks; the `insert` dep mints each tool's node. Lets consumers opt into
|
|
@@ -48,6 +48,5 @@ function useBuiltinShapeTools(args = {}) {
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
//#endregion
|
|
52
51
|
export { useBuiltinShapeTools };
|
|
53
52
|
//# sourceMappingURL=useBuiltinShapeTools.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { anchorsTool } from "../../tools/builtin/anchors/anchorsTool.js";
|
|
1
2
|
import { useHandTool } from "../../tools/builtin/hand/useHandTool.js";
|
|
2
3
|
import { useSliceTool } from "../../tools/builtin/slice/useSliceTool.js";
|
|
3
4
|
import { resolveToolRegistry } from "./toolRegistry.js";
|
|
4
5
|
import { useBuiltinShapeTools } from "./useBuiltinShapeTools.js";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
// src/canvas/SceneCanvas/useBuiltinTools.ts
|
|
7
8
|
/** The registry of tools `<SceneCanvas>` mounts for itself. Every built-in's
|
|
8
9
|
* hook runs on every render; `resolveToolRegistry` decides which are in. */
|
|
9
10
|
function useBuiltinTools(args) {
|
|
@@ -14,6 +15,7 @@ function useBuiltinTools(args) {
|
|
|
14
15
|
return resolveToolRegistry({
|
|
15
16
|
builtins: {
|
|
16
17
|
select,
|
|
18
|
+
anchors: anchorsTool,
|
|
17
19
|
hand,
|
|
18
20
|
...shapes,
|
|
19
21
|
slice
|
|
@@ -24,6 +26,5 @@ function useBuiltinTools(args) {
|
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
//#endregion
|
|
28
29
|
export { useBuiltinTools };
|
|
29
30
|
//# sourceMappingURL=useBuiltinTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBuiltinTools.js","names":[],"sources":["../../../src/canvas/SceneCanvas/useBuiltinTools.ts"],"sourcesContent":["import type { InertiaConfig } from 'core/viewport/useDecayLoop';\nimport { useHandTool } from 'tools/builtin/hand';\nimport { useSliceTool } from 'tools/builtin/slice';\nimport type { Tool } from 'tools/overlayBinding';\nimport type { EnabledPresets } from './features';\nimport type { BuiltinToolId } from './props';\nimport type { ToolEntry } from '@weasel-js/routing';\nimport { resolveToolRegistry, type ToolsPatch } from './toolRegistry';\nimport { useBuiltinShapeTools, type BuiltinToolOptions } from './useBuiltinShapeTools';\n\nexport interface UseBuiltinToolsArgs {\n /** The canvas's select tool, which is built from its scene and pickers. */\n select: Tool;\n enabled: EnabledPresets;\n defaultTools?: readonly ToolEntry<BuiltinToolId>[];\n patch: ToolsPatch | null;\n toolOptions?: BuiltinToolOptions;\n /** `viewport.inertia`, which is the hand tool's. */\n inertia?: boolean | InertiaConfig;\n}\n\n/** The registry of tools `<SceneCanvas>` mounts for itself. Every built-in's\n * hook runs on every render; `resolveToolRegistry` decides which are in. */\nexport function useBuiltinTools(args: UseBuiltinToolsArgs): Record<string, Tool> {\n const { select, enabled, defaultTools, patch, toolOptions, inertia } = args;\n const hand = useHandTool({ inertia });\n const shapes = useBuiltinShapeTools({ options: toolOptions });\n const slice = useSliceTool(toolOptions?.slice);\n return resolveToolRegistry({\n builtins: { select, hand, ...shapes, slice },\n defaultTools,\n enabled,\n patch,\n });\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBuiltinTools.js","names":[],"sources":["../../../src/canvas/SceneCanvas/useBuiltinTools.ts"],"sourcesContent":["import type { InertiaConfig } from 'core/viewport/useDecayLoop';\nimport { anchorsTool } from 'tools/builtin/anchors';\nimport { useHandTool } from 'tools/builtin/hand';\nimport { useSliceTool } from 'tools/builtin/slice';\nimport type { Tool } from 'tools/overlayBinding';\nimport type { EnabledPresets } from './features';\nimport type { BuiltinToolId } from './props';\nimport type { ToolEntry } from '@weasel-js/routing';\nimport { resolveToolRegistry, type ToolsPatch } from './toolRegistry';\nimport { useBuiltinShapeTools, type BuiltinToolOptions } from './useBuiltinShapeTools';\n\nexport interface UseBuiltinToolsArgs {\n /** The canvas's select tool, which is built from its scene and pickers. */\n select: Tool;\n enabled: EnabledPresets;\n defaultTools?: readonly ToolEntry<BuiltinToolId>[];\n patch: ToolsPatch | null;\n toolOptions?: BuiltinToolOptions;\n /** `viewport.inertia`, which is the hand tool's. */\n inertia?: boolean | InertiaConfig;\n}\n\n/** The registry of tools `<SceneCanvas>` mounts for itself. Every built-in's\n * hook runs on every render; `resolveToolRegistry` decides which are in. */\nexport function useBuiltinTools(args: UseBuiltinToolsArgs): Record<string, Tool> {\n const { select, enabled, defaultTools, patch, toolOptions, inertia } = args;\n const hand = useHandTool({ inertia });\n const shapes = useBuiltinShapeTools({ options: toolOptions });\n const slice = useSliceTool(toolOptions?.slice);\n return resolveToolRegistry({\n builtins: { select, anchors: anchorsTool, hand, ...shapes, slice },\n defaultTools,\n enabled,\n patch,\n });\n}\n"],"mappings":";;;;;;;;;AAwBA,SAAgB,gBAAgB,MAAiD;CAC/E,MAAM,EAAE,QAAQ,SAAS,cAAc,OAAO,aAAa,YAAY;CACvE,MAAM,OAAO,YAAY,EAAE,QAAQ,CAAC;CACpC,MAAM,SAAS,qBAAqB,EAAE,SAAS,YAAY,CAAC;CAC5D,MAAM,QAAQ,aAAa,aAAa,KAAK;CAC7C,OAAO,oBAAoB;EACzB,UAAU;GAAE;GAAQ,SAAS;GAAa;GAAM,GAAG;GAAQ;EAAM;EACjE;EACA;EACA;CACF,CAAC;AACH"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { sameView } from "../../core/viewport/view.js";
|
|
2
1
|
import { useViewAnimationOn } from "../../core/viewport/useViewAnimation.js";
|
|
2
|
+
import { sameView } from "../../core/viewport/view.js";
|
|
3
3
|
import { useCanvasView } from "../useCanvasView.js";
|
|
4
4
|
import { useInsertionEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { useAnimator } from "@weasel-js/animator/react";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/canvas/SceneCanvas/useCanvasCamera.ts
|
|
8
8
|
/**
|
|
9
9
|
* The canvas's camera: the view `<Canvas>` looks through, the runner behind
|
|
10
10
|
* `animateView`, and the target and animator it runs on.
|
|
@@ -56,6 +56,5 @@ function useCanvasCamera(opts) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
//#endregion
|
|
60
59
|
export { useCanvasCamera };
|
|
61
60
|
//# sourceMappingURL=useCanvasCamera.js.map
|
|
@@ -8,7 +8,7 @@ import { useEffect, useState } from "react";
|
|
|
8
8
|
import { createDispatchTrace, createTraceRing } from "@weasel-js/routing";
|
|
9
9
|
import { useActionsRegistry, useDepRegistry } from "@weasel-js/routing/react";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/canvas/SceneCanvas/useCanvasDevtoolsRoot.ts
|
|
12
12
|
function resolved(debug) {
|
|
13
13
|
if (debug === false) return null;
|
|
14
14
|
if (debug !== void 0) return debug;
|
|
@@ -89,6 +89,5 @@ function useCanvasDevtoolsRoot(c) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
//#endregion
|
|
93
92
|
export { useCanvasDevtoolsRoot };
|
|
94
93
|
//# sourceMappingURL=useCanvasDevtoolsRoot.js.map
|
|
@@ -3,7 +3,7 @@ import { useRef, useState } from "react";
|
|
|
3
3
|
import { useLatest } from "@weasel-js/react";
|
|
4
4
|
import { createDispatcher } from "@weasel-js/routing";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/canvas/SceneCanvas/useCanvasDispatcher.ts
|
|
7
7
|
/**
|
|
8
8
|
* One `Dispatcher` for the life of a `<SceneCanvas>`, shared by the gesture
|
|
9
9
|
* mounter that pumps input into it and the layers that walk its in-flight
|
|
@@ -25,6 +25,5 @@ function useCanvasDispatcher(registry) {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
export { useCanvasDispatcher };
|
|
30
29
|
//# sourceMappingURL=useCanvasDispatcher.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { outermostSelection } from "../../core/selection/outermostSelection.js";
|
|
2
2
|
import { readOnlySelection } from "../../core/selection/readOnlySelection.js";
|
|
3
3
|
import { usePublishSceneSelection } from "../../core/selection/usePublishSceneSelection.js";
|
|
4
|
+
import { useSelection } from "../../core/selection/useSelection.js";
|
|
4
5
|
import { useMemo } from "react";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
// src/canvas/SceneCanvas/useCanvasSelection.ts
|
|
7
8
|
/**
|
|
8
9
|
* The canvas's selection, published to any surrounding selection context.
|
|
9
10
|
*
|
|
@@ -13,8 +14,9 @@ import { useMemo } from "react";
|
|
|
13
14
|
*
|
|
14
15
|
* Everything the kit writes selection through (the `selection` dep, the
|
|
15
16
|
* adapter's `setSelection`, ops committed through either) reads the returned
|
|
16
|
-
* api, so on an unselectable canvas every write path here is closed
|
|
17
|
-
* caller's
|
|
17
|
+
* api, so on an unselectable canvas every write path here is closed, and a
|
|
18
|
+
* caller's api kept off the scene still holds only outermost ids. The caller's
|
|
19
|
+
* own api is not changed and still writes as it did.
|
|
18
20
|
*/
|
|
19
21
|
function useCanvasSelection(args) {
|
|
20
22
|
const { scene, selectable, kindOf } = args;
|
|
@@ -28,12 +30,12 @@ function useCanvasSelection(args) {
|
|
|
28
30
|
...options ?? {}
|
|
29
31
|
}), [scene, options]);
|
|
30
32
|
const internal = useSelection(derivedOptions);
|
|
31
|
-
const
|
|
33
|
+
const parentOf = useMemo(() => (id) => scene.get(id)?.parent, [scene]);
|
|
34
|
+
const base = supplied ? outermostSelection(supplied, parentOf) : internal;
|
|
32
35
|
const selection = selectable ? base : readOnlySelection(base);
|
|
33
36
|
usePublishSceneSelection(scene, selection.current, describe);
|
|
34
37
|
return selection;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
//#endregion
|
|
38
40
|
export { useCanvasSelection };
|
|
39
41
|
//# sourceMappingURL=useCanvasSelection.js.map
|