@weasel-js/core 1.15.0 → 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 +84 -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 -2
- 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/routing.js +2 -2
- package/dist/barrel/scene.js +2 -2
- package/dist/canvas/Canvas.js +5 -6
- package/dist/canvas/CanvasView.js +6 -7
- package/dist/canvas/CursorCoordsHud.js +2 -3
- package/dist/canvas/DrawCanvas.js +3 -4
- 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 +4 -5
- package/dist/canvas/SceneCanvas/SurfaceDeclarations.js +1 -2
- package/dist/canvas/SceneCanvas/brushOverlay.js +1 -2
- package/dist/canvas/SceneCanvas/builtinToolSets.js +1 -2
- 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 +3 -4
- 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 +3 -4
- 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 +1 -2
- 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 +2 -3
- 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 +1 -2
- 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 +5 -6
- 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 +26 -18
- 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 +18 -17
- package/dist/canvas/SceneCanvas.js.map +1 -1
- package/dist/canvas/SceneViewCanvas.js +2 -3
- 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 -3
- 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 +1 -2
- 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 -4
- package/dist/canvas/deps/enteredGroup.js +1 -2
- package/dist/canvas/deps/geometryProjection.js +1 -2
- package/dist/canvas/deps/hitTestArea.js +4 -5
- 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 +1 -2
- package/dist/canvas/deps/nodeAtPoint.js +1 -2
- package/dist/canvas/deps/pathEditCommits.js +4 -5
- 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 +1 -2
- package/dist/canvas/deps/slice.js +5 -6
- package/dist/canvas/deps/snap.js +3 -4
- 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 +1 -2
- package/dist/canvas/pickWalk.js +2 -3
- 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 +5 -6
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/core/scene/outerOps.js +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/core/scene/sceneMutators.js +2 -3
- package/dist/core/scene/scenePoseAdapter.js +1 -2
- package/dist/core/scene/sceneRecording.js +1 -2
- 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 +1 -2
- 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-ChQPzEkW.d.ts → depSchema-C7a_OMt-.d.ts} +61 -52
- 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 +2 -3
- package/dist/domains/chrome-caps/useChromeCaps.js +1 -2
- 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 -2
- 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 +1 -2
- 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 +2 -3
- package/dist/domains/snap/sceneSession2d.js +2 -3
- 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/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 +1 -2
- package/dist/icons2.table.js +1 -2
- package/dist/index.d.ts +51 -7
- package/dist/index.js +3 -2
- 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 +1 -2
- 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 +3 -4
- 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 +3 -4
- 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 +1 -2
- 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 +4 -5
- 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 +6 -7
- 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 +2 -3
- 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 +1 -2
- package/dist/interactions/actions/outlines/createOutlines.js +1 -2
- package/dist/interactions/actions/outlines/createOutlinesAction.js +2 -3
- package/dist/interactions/actions/outlines/outlineStroke.js +2 -3
- package/dist/interactions/actions/outlines/outlineStrokeAction.js +2 -3
- 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 +3 -4
- 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 -2
- 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 +1 -2
- 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 +4 -4
- package/dist/test-seams.js +2 -2
- package/dist/tools/builtin/anchors/anchorsTool.js +1 -2
- 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 +3 -4
- 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 +3 -4
- 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 +2 -2
- package/dist/tools/overlayBinding.js +1 -2
- package/dist/tools/toolOptions.js +17 -4
- package/dist/tools/toolOptions.js.map +1 -1
- 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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { alignPreset, arrangePreset, distributePreset, flipPreset, reorderPreset } from "./presets/arrange.js";
|
|
2
|
+
import { drawPreset, pickPreset, transformPreset } from "./presets/composites.js";
|
|
2
3
|
import { clipboardPreset, contextMenuPreset, deletePreset, duplicatePreset, editPreset, escapePreset, groupPreset, nudgePreset, selectAllPreset, stylePreset } from "./presets/edit.js";
|
|
3
4
|
import { ingestPreset } from "./presets/ingest.js";
|
|
4
5
|
import { anchorKeysPreset, outlinesPreset, pathCommandsPreset, pathEditPreset, pathfinderPreset, pathsPreset } from "./presets/paths.js";
|
|
5
|
-
import { drawToolsPreset, pageToolsPreset, selectToolsPreset, shapeToolsPreset, typeToolsPreset, viewToolsPreset } from "./presets/tools.js";
|
|
6
6
|
import { selectPreset } from "./presets/select.js";
|
|
7
|
-
import { movePreset, outlinePreset, resizePreset, rotatePreset } from "./presets/transform.js";
|
|
8
|
-
import { viewPreset } from "./presets/view.js";
|
|
9
|
-
import { drawPreset, pickPreset, transformPreset } from "./presets/composites.js";
|
|
10
7
|
import { toolDrivenActions } from "./presets/toolDriven.js";
|
|
8
|
+
import { drawToolsPreset, pageToolsPreset, selectToolsPreset, shapeToolsPreset, typeToolsPreset, viewToolsPreset } from "./presets/tools.js";
|
|
11
9
|
import { BASELINE_ACTIONS } from "./presets/baseline.js";
|
|
10
|
+
import { movePreset, outlinePreset, resizePreset, rotatePreset } from "./presets/transform.js";
|
|
11
|
+
import { viewPreset } from "./presets/view.js";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/canvas/SceneCanvas/namedPresets.ts
|
|
14
14
|
/** Each core preset by name, in the order `SCENE_CANVAS_FEATURES` lists them. */
|
|
15
15
|
var FEATURE_PRESETS = {
|
|
16
16
|
"tools:select": selectToolsPreset,
|
|
@@ -79,6 +79,5 @@ var CORE_PRESET_SOURCE = {
|
|
|
79
79
|
baseline: BASELINE_ACTIONS
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
//#endregion
|
|
83
82
|
export { BASELINE_ACTION_IDS, CORE_NAMED_PRESETS, CORE_PRESET_SOURCE, FEATURE_ACTION_IDS, FEATURE_PRESETS, KIT_STANDARD_ACTIONS, TOOL_DRIVEN_ACTION_IDS };
|
|
84
83
|
//# sourceMappingURL=namedPresets.js.map
|
|
@@ -3,7 +3,7 @@ import { AUTO_POSE_DESCRIPTOR, isPathLike } from "../../core/geometry/autoPoseDe
|
|
|
3
3
|
import { hasSlop, slopForStrokeHit } from "../../core/viewport/screenSlop.js";
|
|
4
4
|
import { applyToPoint, pointInPath, poseFrameInverseOf, poseFrameOf, poseLinearOf, strokeHitTest } from "@weasel-js/geom";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/canvas/SceneCanvas/poseGeometry.ts
|
|
7
7
|
function aabbOfPose(pose, descriptor = AUTO_POSE_DESCRIPTOR) {
|
|
8
8
|
return descriptor.getBounds(pose);
|
|
9
9
|
}
|
|
@@ -73,6 +73,5 @@ function containsInFrame(pose, x, y, tolerance, descriptor, frame, stretched) {
|
|
|
73
73
|
return hasSlop(screen) && strokeHitTest(grown, x, y, 0, opts);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
//#endregion
|
|
77
76
|
export { aabbOfPose, isPathLike, poseContains, poseContainsRotated };
|
|
78
77
|
//# sourceMappingURL=poseGeometry.js.map
|
|
@@ -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,4 +1,3 @@
|
|
|
1
|
-
import { editAnchorsAction } from "../../../interactions/actions/edit-anchors/action.js";
|
|
2
1
|
import { cutPathAtAnchorAction, deleteAnchorsAction, marqueeAnchorsAction, nudgeAnchorsDownAction, nudgeAnchorsLeftAction, nudgeAnchorsRightAction, nudgeAnchorsUpAction, selectAnchorAction } from "../../../interactions/actions/defaults/anchorEditing.js";
|
|
3
2
|
import { makeHandlesSymmetricAction, retractHandlesAction } from "../../../interactions/actions/defaults/anchorHandles.js";
|
|
4
3
|
import { setAnchorFieldAction } from "../../../interactions/actions/defaults/anchorFields.js";
|
|
@@ -6,15 +5,16 @@ import { averageAnchorsAction, joinAnchorsAction } from "../../../interactions/a
|
|
|
6
5
|
import { bendSegmentAction } from "../../../interactions/actions/defaults/bendSegment.js";
|
|
7
6
|
import { enterPathEditAction } from "../../../interactions/actions/defaults/enterPathEdit.js";
|
|
8
7
|
import { exitPathEditAction } from "../../../interactions/actions/defaults/exitPathEdit.js";
|
|
8
|
+
import { editAnchorsAction } from "../../../interactions/actions/edit-anchors/action.js";
|
|
9
9
|
import { insertPathAnchorAction } from "../../../interactions/actions/defaults/insertPathAnchor.js";
|
|
10
10
|
import { pathfinderCropAction, pathfinderDivideAction, pathfinderExcludeAction, pathfinderIntersectAction, pathfinderMergeAction, pathfinderSubtractAction, pathfinderTrimAction, pathfinderUnionAction } from "../../../interactions/actions/booleans/action.js";
|
|
11
11
|
import { makeBooleanGroupAction } from "../../../interactions/actions/booleans/booleanGroupAction.js";
|
|
12
12
|
import { createOutlinesAction } from "../../../interactions/actions/outlines/createOutlinesAction.js";
|
|
13
13
|
import { outlineStrokeAction } from "../../../interactions/actions/outlines/outlineStrokeAction.js";
|
|
14
|
-
import { offsetPathAction, simplifyPathAction } from "../../../interactions/actions/pathCommands/simplifyOffset.js";
|
|
15
14
|
import { joinPathsAction, snipAtCrossingsAction } from "../../../interactions/actions/pathCommands/cutJoin.js";
|
|
15
|
+
import { offsetPathAction, simplifyPathAction } from "../../../interactions/actions/pathCommands/simplifyOffset.js";
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// src/canvas/SceneCanvas/presets/paths.ts
|
|
18
18
|
/**
|
|
19
19
|
* The path-edit keys that share a key with a node-level action: anchor nudging
|
|
20
20
|
* and deleting, and Escape out of path edit. Each is tried ahead of its twin,
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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,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,10 +1,10 @@
|
|
|
1
|
-
import { useHandTool } from "../../tools/builtin/hand/useHandTool.js";
|
|
2
1
|
import { anchorsTool } from "../../tools/builtin/anchors/anchorsTool.js";
|
|
2
|
+
import { useHandTool } from "../../tools/builtin/hand/useHandTool.js";
|
|
3
3
|
import { useSliceTool } from "../../tools/builtin/slice/useSliceTool.js";
|
|
4
4
|
import { resolveToolRegistry } from "./toolRegistry.js";
|
|
5
5
|
import { useBuiltinShapeTools } from "./useBuiltinShapeTools.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/canvas/SceneCanvas/useBuiltinTools.ts
|
|
8
8
|
/** The registry of tools `<SceneCanvas>` mounts for itself. Every built-in's
|
|
9
9
|
* hook runs on every render; `resolveToolRegistry` decides which are in. */
|
|
10
10
|
function useBuiltinTools(args) {
|
|
@@ -26,6 +26,5 @@ function useBuiltinTools(args) {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { useBuiltinTools };
|
|
31
30
|
//# sourceMappingURL=useBuiltinTools.js.map
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCanvasSelection.js","names":[],"sources":["../../../src/canvas/SceneCanvas/useCanvasSelection.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport type { Node, NodeId, Scene } from 'core/scene/types';\nimport { readOnlySelection } from 'core/selection/readOnlySelection';\nimport { usePublishSceneSelection } from 'core/selection/usePublishSceneSelection';\nimport { useSelection, type SelectionApi, type UseSelectionOptions } from 'core/selection/useSelection';\nimport type { SceneCanvasProps } from './props';\n\n/**\n * The canvas's selection, published to any surrounding selection context.\n *\n * A caller-supplied api wins, and the one built here is then unused. The\n * built one is bound to the scene, so the selection an edit was made under\n * rides on the scene's history entries and undo can put it back.\n *\n * Everything the kit writes selection through (the `selection` dep, the\n * adapter's `setSelection`, ops committed through either) reads the returned\n * api, so on an unselectable canvas every write path here is closed
|
|
1
|
+
{"version":3,"file":"useCanvasSelection.js","names":[],"sources":["../../../src/canvas/SceneCanvas/useCanvasSelection.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport type { Node, NodeId, Scene } from 'core/scene/types';\nimport { outermostSelection } from 'core/selection/outermostSelection';\nimport { readOnlySelection } from 'core/selection/readOnlySelection';\nimport { usePublishSceneSelection } from 'core/selection/usePublishSceneSelection';\nimport { useSelection, type SelectionApi, type UseSelectionOptions } from 'core/selection/useSelection';\nimport type { SceneCanvasProps } from './props';\n\n/**\n * The canvas's selection, published to any surrounding selection context.\n *\n * A caller-supplied api wins, and the one built here is then unused. The\n * built one is bound to the scene, so the selection an edit was made under\n * rides on the scene's history entries and undo can put it back.\n *\n * Everything the kit writes selection through (the `selection` dep, the\n * adapter's `setSelection`, ops committed through either) reads the returned\n * api, so on an unselectable canvas every write path here is closed, and a\n * caller's api kept off the scene still holds only outermost ids. The caller's\n * own api is not changed and still writes as it did.\n */\nexport function useCanvasSelection<TData, TLayer extends string, TPose>(args: {\n scene: Scene<TData, TLayer, TPose>;\n props: Pick<SceneCanvasProps<TData, TLayer, TPose>, 'selection' | 'selectionOptions' | 'describeKind'>;\n selectable: boolean;\n /** The canvas's routing kind, published for each node unless `describeKind` is given. */\n kindOf: ((node: { kind: string; data: TData }) => string) | undefined;\n}): SelectionApi {\n const { scene, selectable, kindOf } = args;\n const { selection: supplied, selectionOptions: options, describeKind } = args.props;\n const describe = useMemo(() => describeKind ?? (kindOf && ((node: Node<TData, TLayer, TPose>) => {\n const kind = kindOf(node);\n return kind === 'unknown' ? undefined : kind;\n })), [describeKind, kindOf]);\n const derivedOptions = useMemo<UseSelectionOptions>(\n () => ({ scene, ...(options ?? {}) }),\n [scene, options],\n );\n const internal = useSelection(derivedOptions);\n const parentOf = useMemo(() => (id: NodeId) => scene.get(id)?.parent, [scene]);\n const base = supplied ? outermostSelection(supplied, parentOf) : internal;\n const selection = selectable ? base : readOnlySelection(base);\n usePublishSceneSelection(scene, selection.current as readonly NodeId[], describe);\n return selection;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,mBAAwD,MAMvD;CACf,MAAM,EAAE,OAAO,YAAY,WAAW;CACtC,MAAM,EAAE,WAAW,UAAU,kBAAkB,SAAS,iBAAiB,KAAK;CAC9E,MAAM,WAAW,cAAc,iBAAiB,YAAY,SAAqC;EAC/F,MAAM,OAAO,OAAO,IAAI;EACxB,OAAO,SAAS,YAAY,SAAY;CAC1C,KAAK,CAAC,cAAc,MAAM,CAAC;CAC3B,MAAM,iBAAiB,eACd;EAAE;EAAO,GAAI,WAAW,CAAC;CAAG,IACnC,CAAC,OAAO,OAAO,CACjB;CACA,MAAM,WAAW,aAAa,cAAc;CAC5C,MAAM,WAAW,eAAe,OAAe,MAAM,IAAI,EAAE,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;CAC7E,MAAM,OAAO,WAAW,mBAAmB,UAAU,QAAQ,IAAI;CACjE,MAAM,YAAY,aAAa,OAAO,kBAAkB,IAAI;CAC5D,yBAAyB,OAAO,UAAU,SAA8B,QAAQ;CAChF,OAAO;AACT"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { createViewMarkerContribution } from "../../domains/viewports/viewMarkerDrag.js";
|
|
2
1
|
import { createLongPressFeedbackContribution } from "../../domains/longPress/longPressFeedback.js";
|
|
2
|
+
import { createViewMarkerContribution } from "../../domains/viewports/viewMarkerDrag.js";
|
|
3
3
|
import { useTools } from "../../tools/overlayBinding.js";
|
|
4
4
|
import { presetActions, presetAmbient, presetContributions, resolveFeatures } from "./features.js";
|
|
5
5
|
import { useBuiltinTools } from "./useBuiltinTools.js";
|
|
6
6
|
import { useEffect, useMemo } from "react";
|
|
7
7
|
import { useLatest } from "@weasel-js/react";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/canvas/SceneCanvas/useCanvasTools.ts
|
|
10
10
|
/** Discriminate the polymorphic `tools` prop: `ToolsApi` has `setActive`
|
|
11
11
|
* / `active` / `registry`; the patch record shape has none of those. */
|
|
12
12
|
function isToolsApi(tools) {
|
|
@@ -145,6 +145,5 @@ function useFeatureBindings(args) {
|
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
//#endregion
|
|
149
148
|
export { useCanvasTools, useEnabledFeatures, useFeatureBindings };
|
|
150
149
|
//# sourceMappingURL=useCanvasTools.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { targetSizesPx } from "../../core/device/targets.js";
|
|
2
|
-
import { chromeAffordances } from "../affordanceAt.js";
|
|
3
2
|
import { useTargetBasePx } from "../../core/device/useTargetBasePx.js";
|
|
3
|
+
import { chromeAffordances } from "../affordanceAt.js";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/canvas/SceneCanvas/useChromeAffordances.ts
|
|
7
7
|
/** {@link chromeAffordances} sized by the device scale on the `targets` kit settings; an explicit `handleHitRadius` wins. */
|
|
8
8
|
function useChromeAffordances(opts) {
|
|
9
9
|
const { targetScale, handleHitRadius, rotationBadge, getAnchorState, edgeHandles } = opts;
|
|
@@ -26,6 +26,5 @@ function useChromeAffordances(opts) {
|
|
|
26
26
|
]);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { useChromeAffordances };
|
|
31
30
|
//# sourceMappingURL=useChromeAffordances.js.map
|