@weasel-js/core 1.15.0 → 1.15.2
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 +199 -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 +5 -6
- package/dist/animation/poseTarget.js.map +1 -1
- package/dist/animation/poseTransition.js +1 -2
- package/dist/animation/reflow.js +9 -10
- package/dist/animation/reflow.js.map +1 -1
- package/dist/animation/rewind.js +1 -2
- package/dist/animation/rig/bindRig.js +2 -3
- package/dist/animation/rig/rigNode.js +3 -4
- package/dist/animation/rig/rigNode.js.map +1 -1
- 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/input.js +2 -1
- package/dist/barrel/interactions.js +2 -1
- package/dist/barrel/paint.js +2 -2
- package/dist/barrel/routing.js +2 -2
- package/dist/barrel/scene.js +2 -2
- package/dist/barrel/viewport.js +3 -3
- 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 +18 -66
- package/dist/canvas/SceneCanvas/PointerProviderIfRoot.js.map +1 -1
- 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 +4 -5
- package/dist/canvas/accentColor.js.map +1 -1
- 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 +6 -6
- package/dist/canvas/deps/enteredGroup.js.map +1 -1
- 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 +8 -4
- package/dist/canvas/deps/selectionSnapshot.js.map +1 -1
- 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 +9 -4
- package/dist/canvas/slopsDebugLayer.js.map +1 -1
- 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 +7 -5
- package/dist/canvas/useViewRegistrySurface.js.map +1 -1
- package/dist/canvas/viewInputs.js +1 -2
- package/dist/canvas/viewMarkers.js +1 -2
- package/dist/canvas/viewRegistry.js +6 -7
- package/dist/canvas/viewRegistry.js.map +1 -1
- 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 +3 -8
- package/dist/core/ops/reorder/index.js.map +1 -1
- 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 +3 -9
- package/dist/core/pages/fitViewToPage.js.map +1 -1
- package/dist/core/pages/pageEdits.js +3 -4
- package/dist/core/pages/pages.js +4 -11
- 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 +18 -23
- 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 +3 -4
- package/dist/core/scene/pathEffects/blend.js.map +1 -1
- 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 +6 -6
- package/dist/core/scene/pathEffects/textAlong.js.map +1 -1
- 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 +23 -13
- 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 +8 -3
- package/dist/core/viewport/clientToWorld.js.map +1 -1
- 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 +7 -8
- package/dist/core/viewport/zoomAt.js.map +1 -1
- 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 +12 -6
- package/dist/devtools/root.js.map +1 -1
- package/dist/devtools/serialize.js +1 -2
- package/dist/devtools/session.js +2 -3
- package/dist/devtools/transport.js +13 -18
- package/dist/devtools/transport.js.map +1 -1
- package/dist/devtools/useDevtoolsRoot.js +1 -2
- package/dist/devtools-protocol.d.ts +1 -12
- 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 +5 -12
- package/dist/domains/measure/measureHit.js.map +1 -1
- 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 +6 -13
- package/dist/domains/paths/anchorMarkers.js.map +1 -1
- 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 +7 -12
- package/dist/domains/paths/pathEditingOverlayLayer.js.map +1 -1
- 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 +10 -14
- package/dist/domains/paths/penPreviewLayer.js.map +1 -1
- package/dist/domains/paths/shapeGenerator.js +2 -4
- package/dist/domains/paths/shapeGenerator.js.map +1 -1
- 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 +3 -3
- package/dist/domains/snap/angle2d.js.map +1 -1
- 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 +6 -10
- package/dist/domains/snap/outcomeStore.js.map +1 -1
- 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 +13 -9
- package/dist/domains/text/useSceneTextEdit.js.map +1 -1
- package/dist/domains/viewports/aim.js +6 -12
- package/dist/domains/viewports/aim.js.map +1 -1
- package/dist/domains/viewports/viewMarker.js +1 -2
- package/dist/domains/viewports/viewMarkerDrag.js +1 -2
- package/dist/domains/viewports/viewResolver.js +6 -5
- package/dist/domains/viewports/viewResolver.js.map +1 -1
- 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 +70 -27
- package/dist/index.js +7 -5
- package/dist/input/keyState.js +1 -2
- package/dist/input/useKeyModifiers.js +1 -2
- package/dist/input/useKeyState.js +1 -2
- package/dist/input/usePublishPointer.js +59 -0
- package/dist/input/usePublishPointer.js.map +1 -0
- 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 +13 -8
- package/dist/interactions/actions/defaults/containerScroll.js.map +1 -1
- 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 +5 -6
- package/dist/interactions/actions/defaults/enterGroup.js.map +1 -1
- 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 +3 -7
- package/dist/interactions/actions/defaults/pathEditMarks.js.map +1 -1
- 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 +5 -9
- package/dist/interactions/actions/edit-anchors/handleDrag.js.map +1 -1
- 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/clampMove.js +42 -0
- package/dist/interactions/actions/move/behaviors/clampMove.js.map +1 -0
- 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 +6 -10
- package/dist/interactions/actions/move/layout/container.js.map +1 -1
- 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 +4 -5
- package/dist/interactions/actions/move/layout/exits.js.map +1 -1
- 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 +3 -4
- package/dist/interactions/actions/transform-again/memory.js.map +1 -1
- 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/move.d.ts +18 -3
- package/dist/move.js +2 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
import { pathToAnchors, segmentAt } from "@weasel-js/geom";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/defaults/segmentUnder.ts
|
|
4
4
|
/** Screen-px reach of a segment, and the radius around each anchor that
|
|
5
5
|
* stays the anchor's. Matches the path-anchor affordance's default hit
|
|
6
6
|
* radius, so the two regions meet without a gap. */
|
|
@@ -25,6 +25,5 @@ function segmentUnder(deps, x, y) {
|
|
|
25
25
|
} : null;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
export { SEGMENT_HIT_PX, segmentUnder };
|
|
30
29
|
//# sourceMappingURL=segmentUnder.js.map
|
|
@@ -2,7 +2,7 @@ import { isAnnotationLayer } from "../../../core/scene/annotation.js";
|
|
|
2
2
|
import { nodeGates } from "../../../core/scene/nodeGates.js";
|
|
3
3
|
import { reachableInGroup } from "../../../canvas/deps/enteredGroup.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/interactions/actions/defaults/selectAll.ts
|
|
6
6
|
/**
|
|
7
7
|
* Static descriptor for the `selectAll` Action. Selects every scene node the
|
|
8
8
|
* user can see and reach — hidden and locked nodes (`nodeGates`), and nodes on
|
|
@@ -43,6 +43,5 @@ var selectAllAction = {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
//#endregion
|
|
47
46
|
export { selectAllAction };
|
|
48
47
|
//# sourceMappingURL=selectAll.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/interactions/actions/defaults/selectDeep.ts
|
|
2
2
|
/**
|
|
3
3
|
* `select.deep` — selects the node under the point itself, not the outermost
|
|
4
4
|
* group above it; with Shift it adds that node. Bound to Cmd-press by
|
|
@@ -30,6 +30,5 @@ function createSelectDeepAction(opts) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
//#endregion
|
|
34
33
|
export { createSelectDeepAction };
|
|
35
34
|
//# sourceMappingURL=selectDeep.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createPaintAction } from "./createPaintAction.js";
|
|
2
2
|
import { DEFAULT_FILL_COLOR, paintWithColor } from "../../../util/paint.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/defaults/setFill.ts
|
|
5
5
|
/** Repaint a node's fill, keeping whatever else the fill carries. None is
|
|
6
6
|
* that record without its `paint`. */
|
|
7
7
|
function repaint(prev, state) {
|
|
@@ -48,6 +48,5 @@ var setFillAction = createPaintAction({
|
|
|
48
48
|
merge: repaint
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
//#endregion
|
|
52
51
|
export { setFillAction };
|
|
53
52
|
//# sourceMappingURL=setFill.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createPaintAction } from "./createPaintAction.js";
|
|
2
2
|
import { DEFAULT_FILL_COLOR, paintWithAlpha, solid } from "../../../util/paint.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/defaults/setFillOpacity.ts
|
|
5
5
|
/**
|
|
6
6
|
* Static descriptor for the `setFillOpacity` Action.
|
|
7
7
|
*
|
|
@@ -22,6 +22,5 @@ var setFillOpacityAction = createPaintAction({
|
|
|
22
22
|
})
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
//#endregion
|
|
26
25
|
export { setFillOpacityAction };
|
|
27
26
|
//# sourceMappingURL=setFillOpacity.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createPaintAction } from "./createPaintAction.js";
|
|
2
2
|
import { DEFAULT_STROKE_COLOR, paintWithColor } from "../../../util/paint.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/defaults/setStroke.ts
|
|
5
5
|
/** Repaint a node's stroke, keeping its width, cap, join, dash and align, so
|
|
6
6
|
* picking a paint does not discard the rest of the stroke, and None keeps
|
|
7
7
|
* them for the next paint. A node with no stroke yet gets a hairline one. */
|
|
@@ -53,6 +53,5 @@ var setStrokeAction = createPaintAction({
|
|
|
53
53
|
merge: repaint
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
//#endregion
|
|
57
56
|
export { setStrokeAction };
|
|
58
57
|
//# sourceMappingURL=setStroke.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createPaintAction } from "./createPaintAction.js";
|
|
2
2
|
import { DEFAULT_STROKE_COLOR, paintWithAlpha, solid, strokeOf } from "../../../util/paint.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/defaults/setStrokeOpacity.ts
|
|
5
5
|
/**
|
|
6
6
|
* Static descriptor for the `setStrokeOpacity` Action.
|
|
7
7
|
*
|
|
@@ -24,6 +24,5 @@ var setStrokeOpacityAction = createPaintAction({
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
//#endregion
|
|
28
27
|
export { setStrokeOpacityAction };
|
|
29
28
|
//# sourceMappingURL=setStrokeOpacity.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pathOperationTags } from "../pathGestureTags.js";
|
|
2
2
|
import { ActionDisabledReason, resolveParams } from "@weasel-js/routing";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/defaults/slice.ts
|
|
5
5
|
/**
|
|
6
6
|
* Static descriptor for the `slice` Action.
|
|
7
7
|
*
|
|
@@ -59,6 +59,5 @@ var sliceAction = {
|
|
|
59
59
|
enabled: (deps) => deps?.["slice"] ? true : ActionDisabledReason.NotApplicable
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
//#endregion
|
|
63
62
|
export { sliceAction };
|
|
64
63
|
//# sourceMappingURL=slice.js.map
|
|
@@ -3,7 +3,7 @@ import { createInsertOp } from "../../../core/ops/create.js";
|
|
|
3
3
|
import { boundsOfPath, hasOpenSubpath } from "@weasel-js/geom";
|
|
4
4
|
import { snipPathByPolyline, splitPathByPolyline } from "@weasel-js/geom/booleans";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/interactions/actions/defaults/sliceOps.ts
|
|
7
7
|
/**
|
|
8
8
|
* Cut `leaves` along `cut` and return the ops that swap each crossed leaf for
|
|
9
9
|
* its pieces.
|
|
@@ -74,6 +74,5 @@ function piecePose(source, b) {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
//#endregion
|
|
78
77
|
export { computeSliceOps };
|
|
79
78
|
//# sourceMappingURL=sliceOps.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/interactions/actions/defaults/toolActivate.ts
|
|
2
2
|
/** Canonical id of the consolidated tool-activation action. One descriptor
|
|
3
3
|
* serves every tool; the matched binding (or imperative caller) supplies
|
|
4
4
|
* `params.toolId` to select which tool to activate. */
|
|
@@ -54,6 +54,5 @@ function makeToolActivateAction(bindings, isEligible) {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
//#endregion
|
|
58
57
|
export { TOOL_ACTIVATE_ID, buildToolActivateBindings, makeToolActivateAction };
|
|
59
58
|
//# sourceMappingURL=toolActivate.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionDisabledReason } from "@weasel-js/routing";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/defaults/toolResetToDefault.ts
|
|
4
4
|
/** Canonical id of the "Escape returns to the default tool" action. */
|
|
5
5
|
var TOOL_RESET_TO_DEFAULT_ID = "tool.resetToDefault";
|
|
6
6
|
/**
|
|
@@ -43,6 +43,5 @@ function makeToolResetToDefaultAction(getTarget) {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
//#endregion
|
|
47
46
|
export { TOOL_RESET_TO_DEFAULT_ID, makeToolResetToDefaultAction };
|
|
48
47
|
//# sourceMappingURL=toolResetToDefault.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionDisabledReason } from "@weasel-js/routing";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/defaults/undoRedo.ts
|
|
4
4
|
function historyCan(deps, which) {
|
|
5
5
|
return deps?.history?.[which]?.() ? true : ActionDisabledReason.NotApplicable;
|
|
6
6
|
}
|
|
@@ -58,6 +58,5 @@ var redoAction = {
|
|
|
58
58
|
enabled: (deps) => historyCan(deps, "canRedo")
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
//#endregion
|
|
62
61
|
export { redoAction, undoAction };
|
|
63
62
|
//# sourceMappingURL=undoRedo.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createVelocityTracker } from "../../../core/viewport/createVelocityTracker.js";
|
|
2
2
|
import { resolveParams } from "@weasel-js/routing";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/defaults/viewportDragPan.ts
|
|
5
5
|
/**
|
|
6
6
|
* Rebuild the client-pixel drag delta from the world one, for an event source
|
|
7
7
|
* that supplied no `clientX`/`clientY`.
|
|
@@ -127,6 +127,5 @@ var viewportDragPanAction = {
|
|
|
127
127
|
enabled: () => true
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
//#endregion
|
|
131
130
|
export { viewportDragPanAction };
|
|
132
131
|
//# sourceMappingURL=viewportDragPan.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { wheelPan } from "../../../core/viewport/wheelHandler.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/defaults/viewportWheelPan.ts
|
|
4
4
|
/**
|
|
5
5
|
* Wheel and trackpad pan. Shift+wheel pans horizontally, by routing deltaY
|
|
6
6
|
* into the x axis (`params.swapAxis`). `params.axis` locks the pan to one
|
|
@@ -80,6 +80,5 @@ function makeViewportWheelPanAction(opts = {}) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
//#endregion
|
|
84
83
|
export { makeViewportWheelPanAction, viewportWheelPanAction };
|
|
85
84
|
//# sourceMappingURL=viewportWheelPan.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { axisZoomFactor, zoomAt } from "../../../core/viewport/zoomAt.js";
|
|
2
|
+
import { wheelZoomFactor } from "../../../core/viewport/wheelHandler.js";
|
|
1
3
|
import { DEFAULT_MAX_ZOOM, DEFAULT_MIN_ZOOM } from "../../../core/viewport/zoomBounds.js";
|
|
2
4
|
import { viewToTransform } from "../../../core/viewport/view.js";
|
|
3
5
|
import { screenToWorld } from "../../../core/viewport/viewTransform.js";
|
|
4
|
-
import { axisZoomFactor, zoomAt } from "../../../core/viewport/zoomAt.js";
|
|
5
|
-
import { wheelZoomFactor } from "../../../core/viewport/wheelHandler.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/interactions/actions/defaults/viewportZoom.ts
|
|
8
8
|
var KEY_STEP = 1.25;
|
|
9
9
|
/** Keyboard-zoom anchor: the host center when the view dep can measure it,
|
|
10
10
|
* else the canvas top-left origin. */
|
|
@@ -207,6 +207,5 @@ function makeViewportZoomAction(opts = {}) {
|
|
|
207
207
|
*/
|
|
208
208
|
var viewportZoomAction = makeViewportZoomAction();
|
|
209
209
|
|
|
210
|
-
//#endregion
|
|
211
210
|
export { makeViewportZoomAction, viewportZoomAction };
|
|
212
211
|
//# sourceMappingURL=viewportZoom.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { scenePoseFrame } from "../poseFrame.js";
|
|
2
1
|
import { poseDescriptorOf } from "../poseDescriptorDep.js";
|
|
3
|
-
import { transformFinisher } from "../transformFinish.js";
|
|
4
|
-
import { translateEach } from "../selectionSubtree.js";
|
|
5
2
|
import { drawnBoxes } from "../drawnBoxes.js";
|
|
6
3
|
import { planDistribute } from "./plan.js";
|
|
4
|
+
import { scenePoseFrame } from "../poseFrame.js";
|
|
5
|
+
import { translateEach } from "../selectionSubtree.js";
|
|
6
|
+
import { transformFinisher } from "../transformFinish.js";
|
|
7
7
|
import { ActionDisabledReason } from "@weasel-js/routing";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/interactions/actions/distribute/action.tsx
|
|
10
10
|
var ID_FOR = {
|
|
11
11
|
x: "distribute.horizontal",
|
|
12
12
|
y: "distribute.vertical"
|
|
@@ -86,6 +86,5 @@ var distributeHorizontalAction = makeDistributeAction("x");
|
|
|
86
86
|
/** Static descriptor for distribute-vertical. */
|
|
87
87
|
var distributeVerticalAction = makeDistributeAction("y");
|
|
88
88
|
|
|
89
|
-
//#endregion
|
|
90
89
|
export { distributeHorizontalAction, distributeVerticalAction };
|
|
91
90
|
//# sourceMappingURL=action.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IDENTITY_POSE_COMPOSITION } from "../../../core/scene/composeFrame.js";
|
|
2
|
-
import { RECT_POSE_DESCRIPTOR, translatePoseViaDescriptor, visualBoundsViaDescriptor } from "../../../core/geometry/poseDescriptor.js";
|
|
3
|
-
import { dispatchApplyBatch } from "../../../core/applyOps.js";
|
|
4
|
-
import { poseFrame } from "../poseFrame.js";
|
|
5
1
|
import { createTransformOp } from "../../../core/ops/transform.js";
|
|
2
|
+
import { dispatchApplyBatch } from "../../../core/applyOps.js";
|
|
3
|
+
import { RECT_POSE_DESCRIPTOR, translatePoseViaDescriptor, visualBoundsViaDescriptor } from "../../../core/geometry/poseDescriptor.js";
|
|
6
4
|
import { planDistribute } from "./plan.js";
|
|
5
|
+
import { poseFrame } from "../poseFrame.js";
|
|
6
|
+
import { IDENTITY_POSE_COMPOSITION } from "../../../core/scene/composeFrame.js";
|
|
7
7
|
import { useCallback } from "react";
|
|
8
8
|
import { useLatest } from "@weasel-js/react";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/interactions/actions/distribute/distribute.ts
|
|
11
11
|
/** Distribute the current multi-selection along `axis`. Requires ≥3 items;
|
|
12
12
|
* no-op otherwise. Endpoints (min and max along the axis) stay put; the
|
|
13
13
|
* remaining items are repositioned. Single batch — one undo step.
|
|
@@ -56,6 +56,5 @@ function useDistribute(adapter, options = {}) {
|
|
|
56
56
|
}, [adapterRef, optsRef]) };
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
//#endregion
|
|
60
59
|
export { useDistribute };
|
|
61
60
|
//# sourceMappingURL=distribute.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/interactions/actions/distribute/plan.ts
|
|
2
2
|
/**
|
|
3
3
|
* Where each box's min edge along `axis` should land. Result is parallel to
|
|
4
4
|
* `bounds`. The two extreme boxes stay put in both modes; `'centers'` spaces
|
|
@@ -42,6 +42,5 @@ function planDistribute(bounds, axis, mode) {
|
|
|
42
42
|
return targets;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
//#endregion
|
|
46
45
|
export { planDistribute };
|
|
47
46
|
//# sourceMappingURL=plan.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { documentOf } from "../../core/scene/documentOf.js";
|
|
2
|
-
import { axisAlignedBounds } from "../../core/geometry/unionBounds.js";
|
|
3
1
|
import { drawnBoundsOf, inkExtentsOf } from "../../canvas/drawnBounds.js";
|
|
4
2
|
import { drawnBoundsScene } from "../../canvas/derivedPath.js";
|
|
5
|
-
import {
|
|
3
|
+
import { axisAlignedBounds } from "../../core/geometry/unionBounds.js";
|
|
4
|
+
import { documentOf } from "../../core/scene/documentOf.js";
|
|
6
5
|
import { poseDescriptorOf } from "./poseDescriptorDep.js";
|
|
6
|
+
import { scenePoseFrame } from "./poseFrame.js";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/interactions/actions/drawnBoxes.ts
|
|
9
9
|
var NO_SCENE = { get: () => void 0 };
|
|
10
10
|
/** The {@link DrawnBoxes} over `deps.scene`. Pass the action's own `frame`
|
|
11
11
|
* when it has one, so container members are read the way it reads them. */
|
|
@@ -28,6 +28,5 @@ function drawnBoxes(deps, frame) {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { drawnBoxes };
|
|
33
32
|
//# sourceMappingURL=drawnBoxes.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// src/interactions/actions/dropVerdict.ts
|
|
2
2
|
/** The reason `verdict` gives, or `null` when it lands or says no silently. */
|
|
3
3
|
function refusalOf(verdict) {
|
|
4
4
|
return typeof verdict === "object" && verdict !== null ? verdict.refuse : null;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
//#endregion
|
|
8
7
|
export { refusalOf };
|
|
9
8
|
//# sourceMappingURL=dropVerdict.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { pathOperationTags } from "../pathGestureTags.js";
|
|
2
|
-
import { editingLayer, inPlane } from "../planeInput.js";
|
|
3
|
-
import { SNAP_ROLES, snapMods } from "../../../domains/snap/roles.js";
|
|
4
1
|
import { inputSession } from "../../../domains/snap/session2d.js";
|
|
2
|
+
import { SNAP_ROLES, snapMods } from "../../../domains/snap/roles.js";
|
|
3
|
+
import { editingLayer, inPlane } from "../planeInput.js";
|
|
5
4
|
import { HANDLE_LOCK_ROLES, lockHandle, locksInForce } from "./handleDrag.js";
|
|
6
5
|
import { locksOf } from "./params.js";
|
|
7
6
|
import { finishPathEditFrame, pathEditPreview } from "./preview.js";
|
|
8
7
|
import { claimWheel, dragWeights, endExtensionDrags, extensionOverlays, placeHandle, startExtensionDrags, translateWeighted } from "./extensionDrags.js";
|
|
9
8
|
import { editedPathSymmetries } from "./symmetry.js";
|
|
9
|
+
import { pathOperationTags } from "../pathGestureTags.js";
|
|
10
10
|
import { anchorAt, editAnchorSetTracked, moveHandleSymmetric, moveHandleTo, pathAwayFromAnchors, pathToAnchors, translateAnchorsSymmetric } from "@weasel-js/geom";
|
|
11
11
|
import { isAnchorOrControl, resolveParams, roleReader } from "@weasel-js/routing";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/interactions/actions/edit-anchors/action.ts
|
|
14
14
|
/**
|
|
15
15
|
* Parse an anchor affordance kind — `'anchor:N'` | `'controlIn:N'` |
|
|
16
16
|
* `'controlOut:N'`, where N is the flat anchor index — or `null` when the
|
|
@@ -271,6 +271,5 @@ var editAnchorsAction = inPlane({
|
|
|
271
271
|
}
|
|
272
272
|
}, editingLayer);
|
|
273
273
|
|
|
274
|
-
//#endregion
|
|
275
274
|
export { EDIT_ANCHORS_ROLES, editAnchorsAction, selectionAfterAnchorPress };
|
|
276
275
|
//# sourceMappingURL=action.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { translateAnchorBy } from "@weasel-js/geom";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/edit-anchors/extensionDrags.ts
|
|
4
4
|
/** Each extension's share of the drag `start` describes, in extension order. */
|
|
5
5
|
function startExtensionDrags(extensions, start) {
|
|
6
6
|
const out = [];
|
|
@@ -45,6 +45,5 @@ function endExtensionDrags(drags) {
|
|
|
45
45
|
for (const drag of drags) drag.end?.();
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
//#endregion
|
|
49
48
|
export { claimWheel, dragWeights, endExtensionDrags, extensionOverlays, placeHandle, startExtensionDrags, translateWeighted };
|
|
50
49
|
//# sourceMappingURL=extensionDrags.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PATH_C, PATH_L, PATH_M, PATH_Q, PATH_Z, forEachSegment, originOf, worldCoords } from "@weasel-js/geom";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/edit-anchors/geometry.ts
|
|
4
4
|
/** Walk a PolygonPath's command stream and yield one `PathAnchor` per
|
|
5
5
|
* on-curve point. Adjacent C/Q control points are attached as
|
|
6
6
|
* `controlIn`/`controlOut`. Subpath boundaries (M after a previous M or Z)
|
|
@@ -88,6 +88,5 @@ function withCoord(path, coordIndex, x, y) {
|
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
//#endregion
|
|
92
91
|
export { enumerateAnchors, withCoord };
|
|
93
92
|
//# sourceMappingURL=geometry.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { handleAlongItsAngle, handleAtItsLength } from "@weasel-js/geom";
|
|
1
|
+
import { distance, handleAlongItsAngle, handleAtItsLength } from "@weasel-js/geom";
|
|
2
2
|
import { roleReader } from "@weasel-js/routing";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/edit-anchors/handleDrag.ts
|
|
5
5
|
/**
|
|
6
6
|
* The locks on a control-handle drag — its angle, its length, or both — and
|
|
7
7
|
* the guide that shows which one is holding.
|
|
@@ -33,7 +33,7 @@ function locksInForce(held, ctx) {
|
|
|
33
33
|
/** The handle dragged toward `pointer` under `locks`. */
|
|
34
34
|
function lockHandle(press, pointer, locks) {
|
|
35
35
|
const { anchor, handle } = press;
|
|
36
|
-
const len =
|
|
36
|
+
const len = distance(anchor, handle);
|
|
37
37
|
if (locks.angle && locks.length) return {
|
|
38
38
|
to: { ...handle },
|
|
39
39
|
guide: lineGuide(anchor, handle, len)
|
|
@@ -42,7 +42,7 @@ function lockHandle(press, pointer, locks) {
|
|
|
42
42
|
const to = handleAlongItsAngle(anchor, handle, pointer);
|
|
43
43
|
return {
|
|
44
44
|
to,
|
|
45
|
-
guide: lineGuide(anchor, handle, Math.max(len,
|
|
45
|
+
guide: lineGuide(anchor, handle, Math.max(len, distance(anchor, to)))
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
if (locks.length) return {
|
|
@@ -56,7 +56,7 @@ function lockHandle(press, pointer, locks) {
|
|
|
56
56
|
}
|
|
57
57
|
/** The line through `anchor` toward `toward`, reaching past `reach` on both sides. */
|
|
58
58
|
function lineGuide(anchor, toward, reach) {
|
|
59
|
-
const d =
|
|
59
|
+
const d = distance(anchor, toward);
|
|
60
60
|
if (d === 0) return {
|
|
61
61
|
kind: "polyline",
|
|
62
62
|
points: [anchor, anchor],
|
|
@@ -92,10 +92,6 @@ function circleGuide(center, r) {
|
|
|
92
92
|
role: "lock"
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function dist(a, b) {
|
|
96
|
-
return Math.hypot(b.x - a.x, b.y - a.y);
|
|
97
|
-
}
|
|
98
95
|
|
|
99
|
-
//#endregion
|
|
100
96
|
export { HANDLE_LOCK_ROLES, lockHandle, locksInForce };
|
|
101
97
|
//# sourceMappingURL=handleDrag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleDrag.js","names":[],"sources":["../../../../src/interactions/actions/edit-anchors/handleDrag.ts"],"sourcesContent":["/**\n * The locks on a control-handle drag — its angle, its length, or both — and\n * the guide that shows which one is holding.\n */\nimport { roleReader, type ModifierRoles, type ModifierState, type OngoingOverlay, type WorldPoint } from '@weasel-js/routing';\nimport { handleAlongItsAngle, handleAtItsLength, type Point } from '@weasel-js/geom';\nimport type { HandleLocks } from './params';\n\n/** Where a handle drag's anchor and handle sat at the press. */\nexport interface HandlePress {\n anchor: Point;\n handle: Point;\n}\n\n/** Where the handle goes this move, and the guide its lock draws. */\nexport interface LockedHandle {\n to: Point;\n /** The line or circle the handle is held to; null with no lock held. */\n guide: OngoingOverlay | null;\n}\n\nconst CIRCLE_SEGMENTS = 64;\n/** How far past the handle the angle guide reaches, as a share of its length. */\nconst LINE_OVERSHOOT = 1.25;\n\n/** The modifier roles a handle drag reads: Shift holds its angle, Cmd or\n * Ctrl its length. */\nexport const HANDLE_LOCK_ROLES = {\n 'handle.holdAngle': { label: 'Hold the handle angle', keys: ['shift'] },\n 'handle.holdLength': { label: 'Hold the handle length', keys: ['meta', 'ctrl'] },\n} as const satisfies ModifierRoles;\n\nconst lockHeld = roleReader(HANDLE_LOCK_ROLES);\n\n/** The locks in force: those `held` names, plus those the event's\n * {@link HANDLE_LOCK_ROLES} hold. */\nexport function locksInForce(\n held: HandleLocks,\n ctx: { roles?: Readonly<Record<string, boolean>>; modifiers: ModifierState },\n): HandleLocks {\n return {\n angle: held.angle || lockHeld(ctx, 'handle.holdAngle'),\n length: held.length || lockHeld(ctx, 'handle.holdLength'),\n };\n}\n\n/** The handle dragged toward `pointer` under `locks`. */\nexport function lockHandle(press: HandlePress, pointer: WorldPoint, locks: HandleLocks): LockedHandle {\n const { anchor, handle } = press;\n const len =
|
|
1
|
+
{"version":3,"file":"handleDrag.js","names":[],"sources":["../../../../src/interactions/actions/edit-anchors/handleDrag.ts"],"sourcesContent":["/**\n * The locks on a control-handle drag — its angle, its length, or both — and\n * the guide that shows which one is holding.\n */\nimport { roleReader, type ModifierRoles, type ModifierState, type OngoingOverlay, type WorldPoint } from '@weasel-js/routing';\nimport { distance, handleAlongItsAngle, handleAtItsLength, type Point } from '@weasel-js/geom';\nimport type { HandleLocks } from './params';\n\n/** Where a handle drag's anchor and handle sat at the press. */\nexport interface HandlePress {\n anchor: Point;\n handle: Point;\n}\n\n/** Where the handle goes this move, and the guide its lock draws. */\nexport interface LockedHandle {\n to: Point;\n /** The line or circle the handle is held to; null with no lock held. */\n guide: OngoingOverlay | null;\n}\n\nconst CIRCLE_SEGMENTS = 64;\n/** How far past the handle the angle guide reaches, as a share of its length. */\nconst LINE_OVERSHOOT = 1.25;\n\n/** The modifier roles a handle drag reads: Shift holds its angle, Cmd or\n * Ctrl its length. */\nexport const HANDLE_LOCK_ROLES = {\n 'handle.holdAngle': { label: 'Hold the handle angle', keys: ['shift'] },\n 'handle.holdLength': { label: 'Hold the handle length', keys: ['meta', 'ctrl'] },\n} as const satisfies ModifierRoles;\n\nconst lockHeld = roleReader(HANDLE_LOCK_ROLES);\n\n/** The locks in force: those `held` names, plus those the event's\n * {@link HANDLE_LOCK_ROLES} hold. */\nexport function locksInForce(\n held: HandleLocks,\n ctx: { roles?: Readonly<Record<string, boolean>>; modifiers: ModifierState },\n): HandleLocks {\n return {\n angle: held.angle || lockHeld(ctx, 'handle.holdAngle'),\n length: held.length || lockHeld(ctx, 'handle.holdLength'),\n };\n}\n\n/** The handle dragged toward `pointer` under `locks`. */\nexport function lockHandle(press: HandlePress, pointer: WorldPoint, locks: HandleLocks): LockedHandle {\n const { anchor, handle } = press;\n const len = distance(anchor, handle);\n if (locks.angle && locks.length) return { to: { ...handle }, guide: lineGuide(anchor, handle, len) };\n if (locks.angle) {\n const to = handleAlongItsAngle(anchor, handle, pointer);\n return { to, guide: lineGuide(anchor, handle, Math.max(len, distance(anchor, to))) };\n }\n if (locks.length) return { to: handleAtItsLength(anchor, handle, pointer), guide: circleGuide(anchor, len) };\n return { to: pointer, guide: null };\n}\n\n/** The line through `anchor` toward `toward`, reaching past `reach` on both sides. */\nfunction lineGuide(anchor: Point, toward: Point, reach: number): OngoingOverlay {\n const d = distance(anchor, toward);\n if (d === 0) return { kind: 'polyline', points: [anchor, anchor], role: 'lock' };\n const span = reach * LINE_OVERSHOOT;\n const ux = ((toward.x - anchor.x) / d) * span;\n const uy = ((toward.y - anchor.y) / d) * span;\n return {\n kind: 'polyline',\n points: [{ x: anchor.x - ux, y: anchor.y - uy }, { x: anchor.x + ux, y: anchor.y + uy }],\n role: 'lock',\n };\n}\n\nfunction circleGuide(center: Point, r: number): OngoingOverlay {\n const points: Point[] = [];\n for (let i = 0; i <= CIRCLE_SEGMENTS; i++) {\n const a = (i / CIRCLE_SEGMENTS) * Math.PI * 2;\n points.push({ x: center.x + Math.cos(a) * r, y: center.y + Math.sin(a) * r });\n }\n return { kind: 'polyline', points, role: 'lock' };\n}\n"],"mappings":";;;;;;;;AAqBA,IAAM,kBAAkB;;AAExB,IAAM,iBAAiB;;;AAIvB,IAAa,oBAAoB;CAC/B,oBAAoB;EAAE,OAAO;EAAyB,MAAM,CAAC,OAAO;CAAE;CACtE,qBAAqB;EAAE,OAAO;EAA0B,MAAM,CAAC,QAAQ,MAAM;CAAE;AACjF;AAEA,IAAM,WAAW,WAAW,iBAAiB;;;AAI7C,SAAgB,aACd,MACA,KACa;CACb,OAAO;EACL,OAAO,KAAK,SAAS,SAAS,KAAK,kBAAkB;EACrD,QAAQ,KAAK,UAAU,SAAS,KAAK,mBAAmB;CAC1D;AACF;;AAGA,SAAgB,WAAW,OAAoB,SAAqB,OAAkC;CACpG,MAAM,EAAE,QAAQ,WAAW;CAC3B,MAAM,MAAM,SAAS,QAAQ,MAAM;CACnC,IAAI,MAAM,SAAS,MAAM,QAAQ,OAAO;EAAE,IAAI,EAAE,GAAG,OAAO;EAAG,OAAO,UAAU,QAAQ,QAAQ,GAAG;CAAE;CACnG,IAAI,MAAM,OAAO;EACf,MAAM,KAAK,oBAAoB,QAAQ,QAAQ,OAAO;EACtD,OAAO;GAAE;GAAI,OAAO,UAAU,QAAQ,QAAQ,KAAK,IAAI,KAAK,SAAS,QAAQ,EAAE,CAAC,CAAC;EAAE;CACrF;CACA,IAAI,MAAM,QAAQ,OAAO;EAAE,IAAI,kBAAkB,QAAQ,QAAQ,OAAO;EAAG,OAAO,YAAY,QAAQ,GAAG;CAAE;CAC3G,OAAO;EAAE,IAAI;EAAS,OAAO;CAAK;AACpC;;AAGA,SAAS,UAAU,QAAe,QAAe,OAA+B;CAC9E,MAAM,IAAI,SAAS,QAAQ,MAAM;CACjC,IAAI,MAAM,GAAG,OAAO;EAAE,MAAM;EAAY,QAAQ,CAAC,QAAQ,MAAM;EAAG,MAAM;CAAO;CAC/E,MAAM,OAAO,QAAQ;CACrB,MAAM,MAAO,OAAO,IAAI,OAAO,KAAK,IAAK;CACzC,MAAM,MAAO,OAAO,IAAI,OAAO,KAAK,IAAK;CACzC,OAAO;EACL,MAAM;EACN,QAAQ,CAAC;GAAE,GAAG,OAAO,IAAI;GAAI,GAAG,OAAO,IAAI;EAAG,GAAG;GAAE,GAAG,OAAO,IAAI;GAAI,GAAG,OAAO,IAAI;EAAG,CAAC;EACvF,MAAM;CACR;AACF;AAEA,SAAS,YAAY,QAAe,GAA2B;CAC7D,MAAM,SAAkB,CAAC;CACzB,KAAK,IAAI,IAAI,GAAG,KAAK,iBAAiB,KAAK;EACzC,MAAM,IAAK,IAAI,kBAAmB,KAAK,KAAK;EAC5C,OAAO,KAAK;GAAE,GAAG,OAAO,IAAI,KAAK,IAAI,CAAC,IAAI;GAAG,GAAG,OAAO,IAAI,KAAK,IAAI,CAAC,IAAI;EAAE,CAAC;CAC9E;CACA,OAAO;EAAE,MAAM;EAAY;EAAQ,MAAM;CAAO;AAClD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { enumerateAnchors } from "./geometry.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/edit-anchors/handles.ts
|
|
4
4
|
/** Hit-test anchors and control handles. Controls win over anchors when both
|
|
5
5
|
* are within `threshold` (controls are smaller and rendered on top). */
|
|
6
6
|
function hitAnchor(path, worldX, worldY, threshold) {
|
|
@@ -52,6 +52,5 @@ function hitAnchor(path, worldX, worldY, threshold) {
|
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
//#endregion
|
|
56
55
|
export { hitAnchor };
|
|
57
56
|
//# sourceMappingURL=handles.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/interactions/actions/edit-anchors/params.ts
|
|
2
2
|
/** The locks a single {@link HandleLock}, or none, holds. */
|
|
3
3
|
function locksOf(lock) {
|
|
4
4
|
return {
|
|
@@ -7,6 +7,5 @@ function locksOf(lock) {
|
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
//#endregion
|
|
11
10
|
export { locksOf };
|
|
12
11
|
//# sourceMappingURL=params.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { storeEditablePath } from "../../../domains/paths/editablePath.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/edit-anchors/preview.ts
|
|
4
4
|
/** `path`, a frame of an edit of `id`, finished by the dep's `finishEdit` as
|
|
5
5
|
* committing it would be: its path and the other nodes' that move with it.
|
|
6
6
|
* Null when an extension cannot finish it. */
|
|
@@ -96,6 +96,5 @@ function pathEditPreview(dep, id, current, finished) {
|
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
//#endregion
|
|
100
99
|
export { finishPathEditFrame, pathEditPreview };
|
|
101
100
|
//# sourceMappingURL=preview.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { anchorSymmetries } from "@weasel-js/geom";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/edit-anchors/symmetry.ts
|
|
4
4
|
/** World-unit slack for "this anchor is the image of that one": enough to
|
|
5
5
|
* absorb a path's float32 coordinates, far under anything drawn by hand. */
|
|
6
6
|
var SYMMETRY_TOLERANCE = .001;
|
|
@@ -11,6 +11,5 @@ function editedPathSymmetries(dep, id, set) {
|
|
|
11
11
|
return transforms.length === 0 ? [] : anchorSymmetries(set, transforms, SYMMETRY_TOLERANCE);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
//#endregion
|
|
15
14
|
export { editedPathSymmetries };
|
|
16
15
|
//# sourceMappingURL=symmetry.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import { shapeSources } from "../selectionSubtree.js";
|
|
2
|
+
import { createTransformOp } from "../../../core/ops/transform.js";
|
|
3
|
+
import { poseDescriptorOf } from "../poseDescriptorDep.js";
|
|
4
|
+
import { flipPoseAboutBounds, flipPoseViaDescriptor } from "./helpers.js";
|
|
1
5
|
import { unionAABB } from "../../../core/geometry/unionBounds.js";
|
|
6
|
+
import { drawnBoxes } from "../drawnBoxes.js";
|
|
2
7
|
import { isNoInkExtents } from "../../../core/geometry/inkExtents.js";
|
|
3
8
|
import { scenePoseFrame } from "../poseFrame.js";
|
|
4
|
-
import {
|
|
9
|
+
import { actionReferenceSources, resolveSpatialReference } from "../spatialReference.js";
|
|
5
10
|
import { defaultCommitAdapter } from "../defaultCommitAdapter.js";
|
|
6
11
|
import { transformApplyOps } from "../transformFinish.js";
|
|
7
|
-
import { createTransformOp } from "../../../core/ops/transform.js";
|
|
8
|
-
import { shapeSources } from "../selectionSubtree.js";
|
|
9
|
-
import { geometryDataOp } from "../geometryProjection.js";
|
|
10
|
-
import { drawnBoxes } from "../drawnBoxes.js";
|
|
11
|
-
import { flipPoseAboutBounds, flipPoseViaDescriptor } from "./helpers.js";
|
|
12
|
-
import { actionReferenceSources, resolveSpatialReference } from "../spatialReference.js";
|
|
13
12
|
import { requiresSelection } from "../defaults/requiresSelection.js";
|
|
13
|
+
import { geometryDataOp } from "../geometryProjection.js";
|
|
14
14
|
import { multiply, rotate, translate } from "@weasel-js/geom";
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// src/interactions/actions/flip/action.ts
|
|
17
17
|
/**
|
|
18
18
|
* The world mirror about `axis` through the center of `pivotWorld`, written in
|
|
19
19
|
* the frame `id` stores its data in. `geometryProjection.transform` is given
|
|
@@ -186,6 +186,5 @@ var flipAction = {
|
|
|
186
186
|
enabled: requiresSelection
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
//#endregion
|
|
190
189
|
export { flipAction };
|
|
191
190
|
//# sourceMappingURL=action.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { poseLinearOf } from "@weasel-js/geom";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/interactions/actions/flip/helpers.ts
|
|
4
4
|
/** Reflect `pose` across the centerline of `pivotBounds` along `axis`, using
|
|
5
5
|
* `geometry` to read bounds and remap. The pose's own AABB is read once to
|
|
6
6
|
* compute the reflected destination rect; coords inside the pose are then
|
|
@@ -76,6 +76,5 @@ function mirrorLinear(pose) {
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
//#endregion
|
|
80
79
|
export { flipPoseAboutBounds, flipPoseViaDescriptor };
|
|
81
80
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSetDataOp } from "../../core/ops/setData.js";
|
|
2
2
|
import "@weasel-js/geom";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/interactions/actions/geometryProjection.ts
|
|
5
5
|
/** Build the `setData` op for a node when a geometryProjection is wired and
|
|
6
6
|
* returns non-null. Returns `undefined` (no op) otherwise — keeping the data
|
|
7
7
|
* op strictly opt-in so adapters without `setData` are never invoked. `to` is
|
|
@@ -23,6 +23,5 @@ function geometryDataOp(projection, node, m, to, label) {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
export { geometryDataOp };
|
|
28
27
|
//# sourceMappingURL=geometryProjection.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { scenePoseFrame } from "./poseFrame.js";
|
|
2
|
-
import { planeOf } from "./planeInput.js";
|
|
3
1
|
import { drawnBoxes } from "./drawnBoxes.js";
|
|
2
|
+
import { planeOf } from "./planeInput.js";
|
|
3
|
+
import { scenePoseFrame } from "./poseFrame.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/interactions/actions/gestureFrames.ts
|
|
6
6
|
/** A scene-backed gesture's {@link GestureFrames}, read through the action's deps. */
|
|
7
7
|
function sceneGestureFrames(scene, deps, frame = scenePoseFrame(scene)) {
|
|
8
8
|
const view = deps.view;
|
|
@@ -23,6 +23,5 @@ function sceneGestureFrames(scene, deps, frame = scenePoseFrame(scene)) {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
export { sceneGestureFrames };
|
|
28
27
|
//# sourceMappingURL=gestureFrames.js.map
|