@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.
Files changed (838) hide show
  1. package/CHANGELOG.md +199 -0
  2. package/dist/WeaselProvider.js +4 -5
  3. package/dist/affordances/composeAffordanceLayer.js +1 -2
  4. package/dist/affordances/cornerResize.js +4 -5
  5. package/dist/affordances/hitAffordanceRegions.js +1 -2
  6. package/dist/affordances/pathAnchors.js +1 -2
  7. package/dist/affordances/rotateCursor.js +1 -2
  8. package/dist/affordances/rotationHandle.js +2 -3
  9. package/dist/animation/behaviors/coast.js +1 -2
  10. package/dist/animation/behaviors/coastByWrite.js +2 -3
  11. package/dist/animation/behaviors/coastOnTargets.js +2 -3
  12. package/dist/animation/behaviors/momentum.js +1 -2
  13. package/dist/animation/clipTargets.js +1 -2
  14. package/dist/animation/departures.js +2 -3
  15. package/dist/animation/poseHelpers.js +2 -3
  16. package/dist/animation/poseTarget.js +5 -6
  17. package/dist/animation/poseTarget.js.map +1 -1
  18. package/dist/animation/poseTransition.js +1 -2
  19. package/dist/animation/reflow.js +9 -10
  20. package/dist/animation/reflow.js.map +1 -1
  21. package/dist/animation/rewind.js +1 -2
  22. package/dist/animation/rig/bindRig.js +2 -3
  23. package/dist/animation/rig/rigNode.js +3 -4
  24. package/dist/animation/rig/rigNode.js.map +1 -1
  25. package/dist/animation/rig/rigSeat.js +1 -2
  26. package/dist/animation/rig/skinBinding.js +1 -2
  27. package/dist/animation/rig/useRig.js +2 -3
  28. package/dist/animation/wrappers/animateLifecycle.js +1 -2
  29. package/dist/animation/wrappers/animateOnSetPose.js +1 -2
  30. package/dist/animation/wrappers/instantPose.js +1 -2
  31. package/dist/animation/writtenPoseTarget.js +1 -2
  32. package/dist/barrel/input.js +2 -1
  33. package/dist/barrel/interactions.js +2 -1
  34. package/dist/barrel/paint.js +2 -2
  35. package/dist/barrel/routing.js +2 -2
  36. package/dist/barrel/scene.js +2 -2
  37. package/dist/barrel/viewport.js +3 -3
  38. package/dist/canvas/Canvas.js +5 -6
  39. package/dist/canvas/CanvasView.js +6 -7
  40. package/dist/canvas/CursorCoordsHud.js +2 -3
  41. package/dist/canvas/DrawCanvas.js +3 -4
  42. package/dist/canvas/GestureReason.js +1 -2
  43. package/dist/canvas/GestureReason.module.js +1 -2
  44. package/dist/canvas/LeanSceneCanvas.js +2 -3
  45. package/dist/canvas/ModalityHud.js +2 -3
  46. package/dist/canvas/NodeShape.js +3 -4
  47. package/dist/canvas/PickHud.js +2 -3
  48. package/dist/canvas/SceneCanvas/ActionsProviderIfRoot.js +1 -2
  49. package/dist/canvas/SceneCanvas/CanvasKitProviders.js +3 -4
  50. package/dist/canvas/SceneCanvas/DepRegistryProviderIfRoot.js +1 -2
  51. package/dist/canvas/SceneCanvas/DevHuds.js +1 -2
  52. package/dist/canvas/SceneCanvas/PointerProviderIfRoot.js +18 -66
  53. package/dist/canvas/SceneCanvas/PointerProviderIfRoot.js.map +1 -1
  54. package/dist/canvas/SceneCanvas/SceneCanvasInput.js +4 -5
  55. package/dist/canvas/SceneCanvas/SurfaceDeclarations.js +1 -2
  56. package/dist/canvas/SceneCanvas/brushOverlay.js +1 -2
  57. package/dist/canvas/SceneCanvas/builtinToolSets.js +1 -2
  58. package/dist/canvas/SceneCanvas/canvasPassThrough.js +1 -2
  59. package/dist/canvas/SceneCanvas/contributionFrameHooks.js +1 -2
  60. package/dist/canvas/SceneCanvas/coordTrace.js +1 -2
  61. package/dist/canvas/SceneCanvas/defaultNodeProperties.js +3 -4
  62. package/dist/canvas/SceneCanvas/defaultNodeRouting.js +1 -2
  63. package/dist/canvas/SceneCanvas/defaultTextEditor.js +4 -5
  64. package/dist/canvas/SceneCanvas/describePresets.js +1 -2
  65. package/dist/canvas/SceneCanvas/dispatcherGestureBounds.js +1 -2
  66. package/dist/canvas/SceneCanvas/features.js +1 -2
  67. package/dist/canvas/SceneCanvas/insertPreviewCommands.js +1 -2
  68. package/dist/canvas/SceneCanvas/mergeLayers.js +1 -2
  69. package/dist/canvas/SceneCanvas/namedPresets.js +5 -6
  70. package/dist/canvas/SceneCanvas/poseGeometry.js +1 -2
  71. package/dist/canvas/SceneCanvas/poseRegistrars.js +1 -2
  72. package/dist/canvas/SceneCanvas/presets/arrange.js +2 -3
  73. package/dist/canvas/SceneCanvas/presets/baseline.js +1 -2
  74. package/dist/canvas/SceneCanvas/presets/chrome.js +1 -2
  75. package/dist/canvas/SceneCanvas/presets/composites.js +1 -2
  76. package/dist/canvas/SceneCanvas/presets/edit.js +4 -5
  77. package/dist/canvas/SceneCanvas/presets/ingest.js +1 -2
  78. package/dist/canvas/SceneCanvas/presets/paths.js +3 -4
  79. package/dist/canvas/SceneCanvas/presets/select.js +1 -2
  80. package/dist/canvas/SceneCanvas/presets/toolDriven.js +2 -3
  81. package/dist/canvas/SceneCanvas/presets/tools.js +1 -2
  82. package/dist/canvas/SceneCanvas/presets/transform.js +2 -3
  83. package/dist/canvas/SceneCanvas/presets/view.js +2 -3
  84. package/dist/canvas/SceneCanvas/props.js +1 -2
  85. package/dist/canvas/SceneCanvas/scenePointQuery.js +2 -3
  86. package/dist/canvas/SceneCanvas/shapeGeneratorProperties.js +1 -2
  87. package/dist/canvas/SceneCanvas/toolRegistry.js +2 -3
  88. package/dist/canvas/SceneCanvas/useActionTunings.js +1 -2
  89. package/dist/canvas/SceneCanvas/useActionsPropResolver.js +1 -2
  90. package/dist/canvas/SceneCanvas/useBakedScene.js +2 -3
  91. package/dist/canvas/SceneCanvas/useBuiltinShapeTools.js +7 -8
  92. package/dist/canvas/SceneCanvas/useBuiltinTools.js +2 -3
  93. package/dist/canvas/SceneCanvas/useCanvasCamera.js +2 -3
  94. package/dist/canvas/SceneCanvas/useCanvasDevtoolsRoot.js +1 -2
  95. package/dist/canvas/SceneCanvas/useCanvasDispatcher.js +1 -2
  96. package/dist/canvas/SceneCanvas/useCanvasSelection.js +8 -6
  97. package/dist/canvas/SceneCanvas/useCanvasSelection.js.map +1 -1
  98. package/dist/canvas/SceneCanvas/useCanvasTools.js +2 -3
  99. package/dist/canvas/SceneCanvas/useChromeAffordances.js +2 -3
  100. package/dist/canvas/SceneCanvas/useContributionRoles.js +1 -2
  101. package/dist/canvas/SceneCanvas/useDepartureGhostLayer.js +4 -5
  102. package/dist/canvas/SceneCanvas/useDispatcherOverlayLayer.js +2 -3
  103. package/dist/canvas/SceneCanvas/useHeldModifiers.js +1 -2
  104. package/dist/canvas/SceneCanvas/useMagnificationCheck.js +41 -0
  105. package/dist/canvas/SceneCanvas/useMagnificationCheck.js.map +1 -0
  106. package/dist/canvas/SceneCanvas/useNodeAtPoint.js +1 -2
  107. package/dist/canvas/SceneCanvas/useNodeKinds.js +2 -3
  108. package/dist/canvas/SceneCanvas/usePreviewGhostLayer.js +10 -11
  109. package/dist/canvas/SceneCanvas/useSceneCanvasHandle.js +1 -2
  110. package/dist/canvas/SceneCanvas/useSceneCanvasLayers.js +6 -7
  111. package/dist/canvas/SceneCanvas/useSceneCanvasPathEdit.js +1 -2
  112. package/dist/canvas/SceneCanvas/useSceneCanvasTools.js +1 -2
  113. package/dist/canvas/SceneCanvas/useSceneChrome.js +5 -6
  114. package/dist/canvas/SceneCanvas/useSceneGestureDispatcher.js +6 -7
  115. package/dist/canvas/SceneCanvas/useScenePicking.js +5 -6
  116. package/dist/canvas/SceneCanvas/useSceneRedrawSources.js +1 -2
  117. package/dist/canvas/SceneCanvas/useSceneSelectTool.js +7 -8
  118. package/dist/canvas/SceneCanvas/useSceneSlotLayers.js +2 -3
  119. package/dist/canvas/SceneCanvas/useSceneStandardActions.js +26 -18
  120. package/dist/canvas/SceneCanvas/useSceneStandardActions.js.map +1 -1
  121. package/dist/canvas/SceneCanvas/useSelectionOverlayLayer.js +2 -3
  122. package/dist/canvas/SceneCanvas/useSurfaceRouting.js +1 -2
  123. package/dist/canvas/SceneCanvas/useSurfaceViewInputs.js +1 -2
  124. package/dist/canvas/SceneCanvas/useToolKeybindings.js +1 -2
  125. package/dist/canvas/SceneCanvas/useViewportActions.js +3 -4
  126. package/dist/canvas/SceneCanvas/worldPointAt.js +1 -2
  127. package/dist/canvas/SceneCanvas.js +18 -17
  128. package/dist/canvas/SceneCanvas.js.map +1 -1
  129. package/dist/canvas/SceneViewCanvas.js +2 -3
  130. package/dist/canvas/SurfaceCanvas.js +1 -2
  131. package/dist/canvas/ViewMarker.js +1 -2
  132. package/dist/canvas/accentColor.js +4 -5
  133. package/dist/canvas/accentColor.js.map +1 -1
  134. package/dist/canvas/adapterDerivedPath.js +2 -3
  135. package/dist/canvas/adapterPickSource.js +1 -2
  136. package/dist/canvas/affordanceAt.js +2 -3
  137. package/dist/canvas/buildSceneLayer.js +4 -5
  138. package/dist/canvas/buildSceneTree.js +4 -5
  139. package/dist/canvas/canvasRenderer.js +1 -2
  140. package/dist/canvas/colorOverrides.js +1 -2
  141. package/dist/canvas/contextAttributes.js +1 -2
  142. package/dist/canvas/copiesAbove.js +1 -2
  143. package/dist/canvas/defaultDrawOne.js +1 -2
  144. package/dist/canvas/deps/areaSelect.js +5 -3
  145. package/dist/canvas/deps/areaSelect.js.map +1 -1
  146. package/dist/canvas/deps/booleans.js +5 -6
  147. package/dist/canvas/deps/changes.js +1 -2
  148. package/dist/canvas/deps/chromeRules.js +1 -2
  149. package/dist/canvas/deps/debug.js +1 -2
  150. package/dist/canvas/deps/dispatchSources.js +1 -2
  151. package/dist/canvas/deps/dispatcher.js +1 -2
  152. package/dist/canvas/deps/editAnchors.js +3 -4
  153. package/dist/canvas/deps/enteredGroup.js +6 -6
  154. package/dist/canvas/deps/enteredGroup.js.map +1 -1
  155. package/dist/canvas/deps/geometryProjection.js +1 -2
  156. package/dist/canvas/deps/hitTestArea.js +4 -5
  157. package/dist/canvas/deps/ingestion.js +1 -2
  158. package/dist/canvas/deps/insert.js +3 -4
  159. package/dist/canvas/deps/insertSite.js +3 -4
  160. package/dist/canvas/deps/kitSettings.js +1 -2
  161. package/dist/canvas/deps/lassoSelect.js +5 -3
  162. package/dist/canvas/deps/lassoSelect.js.map +1 -1
  163. package/dist/canvas/deps/layout.js +1 -2
  164. package/dist/canvas/deps/modeDefaultTool.js +1 -2
  165. package/dist/canvas/deps/nodeAtPoint.js +1 -2
  166. package/dist/canvas/deps/pathEditCommits.js +4 -5
  167. package/dist/canvas/deps/pathLeaf.js +1 -2
  168. package/dist/canvas/deps/pathLeafDeps.js +2 -3
  169. package/dist/canvas/deps/poseDescriptor.js +1 -2
  170. package/dist/canvas/deps/previewPaths.js +1 -2
  171. package/dist/canvas/deps/resizePolicy.js +1 -2
  172. package/dist/canvas/deps/selectionSnapshot.js +8 -4
  173. package/dist/canvas/deps/selectionSnapshot.js.map +1 -1
  174. package/dist/canvas/deps/slice.js +5 -6
  175. package/dist/canvas/deps/snap.js +3 -4
  176. package/dist/canvas/deps/surface.js +1 -2
  177. package/dist/canvas/deps/textEdit.js +1 -2
  178. package/dist/canvas/deps/transformFollowers.js +1 -2
  179. package/dist/canvas/deps/view.js +1 -2
  180. package/dist/canvas/derivedPath.js +6 -7
  181. package/dist/canvas/doubleClickTarget.js +1 -2
  182. package/dist/canvas/drawEnvelope.js +1 -2
  183. package/dist/canvas/drawnBounds.js +4 -5
  184. package/dist/canvas/getNodeAtPoint.js +1 -2
  185. package/dist/canvas/hostAnchor.js +1 -2
  186. package/dist/canvas/hud.module.js +1 -2
  187. package/dist/canvas/inheritedPaints.js +1 -2
  188. package/dist/canvas/insertPreviewExtent.js +1 -2
  189. package/dist/canvas/kitRequirements.js +1 -2
  190. package/dist/canvas/layerHover.js +1 -2
  191. package/dist/canvas/layerOrder.js +1 -2
  192. package/dist/canvas/layerSlots.js +1 -2
  193. package/dist/canvas/mountedCanvases.js +1 -2
  194. package/dist/canvas/nodeShapes/derivedPainter.js +2 -3
  195. package/dist/canvas/nodeShapes/imagePainter.js +1 -2
  196. package/dist/canvas/nodeShapes/measurePainter.js +2 -3
  197. package/dist/canvas/nodeShapes/memo.js +1 -2
  198. package/dist/canvas/nodeShapes/nodePaint.js +1 -2
  199. package/dist/canvas/nodeShapes/pathPainter.js +3 -4
  200. package/dist/canvas/nodeShapes/poseBox.js +1 -2
  201. package/dist/canvas/nodeShapes/rectFallbackPainter.js +1 -2
  202. package/dist/canvas/nodeShapes/shapePainter.js +2 -3
  203. package/dist/canvas/nodeShapes/strokedBounds.js +1 -2
  204. package/dist/canvas/nodeShapes/textPainter.js +1 -2
  205. package/dist/canvas/overChildren.js +1 -2
  206. package/dist/canvas/overlayRoleStrokes.js +1 -2
  207. package/dist/canvas/ownClip.js +1 -2
  208. package/dist/canvas/paintCull.js +1 -2
  209. package/dist/canvas/paintedCursorLayer.js +1 -2
  210. package/dist/canvas/pathOverlay.js +1 -2
  211. package/dist/canvas/pickIndex/nodeBroadBox.js +3 -4
  212. package/dist/canvas/pickIndex/scenePickIndex.js +3 -4
  213. package/dist/canvas/pickReach.js +1 -2
  214. package/dist/canvas/pickWalk.js +2 -3
  215. package/dist/canvas/planeClips.js +1 -2
  216. package/dist/canvas/poseRotation.js +1 -2
  217. package/dist/canvas/publishPreviews.js +1 -2
  218. package/dist/canvas/rasterReadback.js +1 -2
  219. package/dist/canvas/rasterToPng.js +1 -2
  220. package/dist/canvas/renderDebugSnapshot.js +1 -2
  221. package/dist/canvas/renderNeeds.js +1 -2
  222. package/dist/canvas/renderSceneToPixels.js +5 -6
  223. package/dist/canvas/sceneAdapter.js +37 -27
  224. package/dist/canvas/sceneAdapter.js.map +1 -1
  225. package/dist/canvas/sceneClipboard.js +19 -7
  226. package/dist/canvas/sceneClipboard.js.map +1 -1
  227. package/dist/canvas/sceneLayerPaint.js +1 -2
  228. package/dist/canvas/scenePickReads.js +1 -2
  229. package/dist/canvas/scenePickSource.js +5 -6
  230. package/dist/canvas/sceneSlotWiring.js +2 -3
  231. package/dist/canvas/sceneViewRender.js +5 -6
  232. package/dist/canvas/shownNodes.js +1 -2
  233. package/dist/canvas/slopsDebugLayer.js +9 -4
  234. package/dist/canvas/slopsDebugLayer.js.map +1 -1
  235. package/dist/canvas/surfaceContribution.js +1 -2
  236. package/dist/canvas/useCanvasElements.js +1 -2
  237. package/dist/canvas/useCanvasHandle.js +1 -2
  238. package/dist/canvas/useCanvasPaint.js +2 -3
  239. package/dist/canvas/useCanvasRenderer.js +1 -2
  240. package/dist/canvas/useCanvasSurface.js +1 -2
  241. package/dist/canvas/useCanvasView.js +2 -3
  242. package/dist/canvas/useClientToWorld.js +1 -2
  243. package/dist/canvas/useExtraLayers.js +1 -2
  244. package/dist/canvas/useFrameLoop.js +1 -2
  245. package/dist/canvas/useHitObserver.js +1 -2
  246. package/dist/canvas/useHostAnchor.js +1 -2
  247. package/dist/canvas/useInFlightBounds.js +6 -6
  248. package/dist/canvas/useInFlightBounds.js.map +1 -1
  249. package/dist/canvas/useLateContentRedraw.js +1 -2
  250. package/dist/canvas/useLayerStack.js +2 -3
  251. package/dist/canvas/usePaintedCursor.js +1 -2
  252. package/dist/canvas/useRedrawOn.js +1 -2
  253. package/dist/canvas/useSceneAdapter.js +1 -2
  254. package/dist/canvas/useSceneLayerList.js +1 -2
  255. package/dist/canvas/useSurfaceInput.js +1 -2
  256. package/dist/canvas/useSurfaceSize.js +1 -2
  257. package/dist/canvas/useToolCursor.js +1 -2
  258. package/dist/canvas/useViewAim.js +2 -3
  259. package/dist/canvas/useViewHelpers.js +5 -4
  260. package/dist/canvas/useViewHelpers.js.map +1 -1
  261. package/dist/canvas/useViewLayerGate.js +1 -2
  262. package/dist/canvas/useViewNesting.js +1 -2
  263. package/dist/canvas/useViewRegistrySurface.js +7 -5
  264. package/dist/canvas/useViewRegistrySurface.js.map +1 -1
  265. package/dist/canvas/viewInputs.js +1 -2
  266. package/dist/canvas/viewMarkers.js +1 -2
  267. package/dist/canvas/viewRegistry.js +6 -7
  268. package/dist/canvas/viewRegistry.js.map +1 -1
  269. package/dist/canvas/viewSnap.js +1 -2
  270. package/dist/canvas/watchElementMove.js +1 -2
  271. package/dist/canvas/wrapNodeOutput.js +1 -2
  272. package/dist/core/adapters/testing/rootsTree.js +1 -2
  273. package/dist/core/applyOps.js +1 -2
  274. package/dist/core/device/targets.js +1 -2
  275. package/dist/core/device/useDeviceProfile.js +1 -2
  276. package/dist/core/device/useTargetBasePx.js +1 -2
  277. package/dist/core/device/watchDevicePixelRatio.js +1 -2
  278. package/dist/core/geometry/autoPoseDescriptor.js +2 -3
  279. package/dist/core/geometry/booleanOfPaths.js +1 -2
  280. package/dist/core/geometry/inkExtents.js +1 -2
  281. package/dist/core/geometry/pathPoseDescriptor.js +1 -2
  282. package/dist/core/geometry/poseDescriptor.js +1 -2
  283. package/dist/core/geometry/regionHit.js +1 -2
  284. package/dist/core/geometry/targetFrame.js +1 -2
  285. package/dist/core/geometry/unionBounds.js +1 -2
  286. package/dist/core/layers/backgroundFill.js +1 -2
  287. package/dist/core/layers/children.js +1 -2
  288. package/dist/core/layers/gateLayer.js +1 -2
  289. package/dist/core/layers/layerGroup.js +1 -2
  290. package/dist/core/layers/redrawSource.js +1 -2
  291. package/dist/core/layers/render.js +1 -2
  292. package/dist/core/layers/retain.js +1 -2
  293. package/dist/core/ops/arrange.js +1 -2
  294. package/dist/core/ops/create.js +2 -3
  295. package/dist/core/ops/createHistory.js +2 -3
  296. package/dist/core/ops/delete.js +2 -3
  297. package/dist/core/ops/nodeFlags.js +1 -2
  298. package/dist/core/ops/registry.js +1 -2
  299. package/dist/core/ops/reorder/algorithms.js +1 -2
  300. package/dist/core/ops/reorder/index.js +3 -8
  301. package/dist/core/ops/reorder/index.js.map +1 -1
  302. package/dist/core/ops/reorder/setChildOrder.js +1 -2
  303. package/dist/core/ops/reparent.js +1 -2
  304. package/dist/core/ops/select.js +1 -2
  305. package/dist/core/ops/setData.js +1 -2
  306. package/dist/core/ops/setDependsOn.js +1 -2
  307. package/dist/core/ops/setLayer.js +1 -2
  308. package/dist/core/ops/setLayout.js +1 -2
  309. package/dist/core/ops/setPath.js +1 -2
  310. package/dist/core/ops/setText.js +1 -2
  311. package/dist/core/ops/slot.js +1 -2
  312. package/dist/core/ops/transform.js +1 -2
  313. package/dist/core/ops/writtenBy.js +1 -2
  314. package/dist/core/pages/fitViewToPage.js +3 -9
  315. package/dist/core/pages/fitViewToPage.js.map +1 -1
  316. package/dist/core/pages/pageEdits.js +3 -4
  317. package/dist/core/pages/pages.js +4 -11
  318. package/dist/core/pages/pages.js.map +1 -1
  319. package/dist/core/pages/pagesLayer.js +1 -2
  320. package/dist/core/paint/meshKind.js +1 -2
  321. package/dist/core/paint/meshKindLazy.js +18 -23
  322. package/dist/core/paint/meshKindLazy.js.map +1 -1
  323. package/dist/core/paint/paintKindEntry.js +1 -2
  324. package/dist/core/paint/paintKinds.js +1 -2
  325. package/dist/core/paint/registerMesh.js +1 -2
  326. package/dist/core/scene/NodeProperties.js +1 -2
  327. package/dist/core/scene/NodeRouting.js +1 -2
  328. package/dist/core/scene/annotation.js +1 -2
  329. package/dist/core/scene/appliedLog.js +1 -2
  330. package/dist/core/scene/arrivalWindow.js +2 -3
  331. package/dist/core/scene/arrivals.js +1 -2
  332. package/dist/core/scene/booleanGroup.js +1 -2
  333. package/dist/core/scene/booleanOfChildren.js +1 -2
  334. package/dist/core/scene/boundOps.js +1 -2
  335. package/dist/core/scene/carryDescendants.js +2 -3
  336. package/dist/core/scene/clipNothing.js +1 -2
  337. package/dist/core/scene/composeFrame.js +1 -2
  338. package/dist/core/scene/composePose.js +1 -2
  339. package/dist/core/scene/declaredFieldSetters.js +1 -2
  340. package/dist/core/scene/depFrame.js +1 -2
  341. package/dist/core/scene/depMemo.js +1 -2
  342. package/dist/core/scene/dependents.js +1 -2
  343. package/dist/core/scene/derivedParts.js +1 -2
  344. package/dist/core/scene/derivedPath.js +2 -3
  345. package/dist/core/scene/docValues.js +1 -2
  346. package/dist/core/scene/documentOf.js +1 -2
  347. package/dist/core/scene/editMode.js +1 -2
  348. package/dist/core/scene/editPass.js +1 -2
  349. package/dist/core/scene/effectivePose.js +3 -4
  350. package/dist/core/scene/fieldEdits.js +1 -2
  351. package/dist/core/scene/fontReads.js +1 -2
  352. package/dist/core/scene/historyFacade.js +1 -2
  353. package/dist/core/scene/historyForm.js +1 -2
  354. package/dist/core/scene/inheritedPaint.js +1 -2
  355. package/dist/core/scene/kitOps.js +16 -15
  356. package/dist/core/scene/kitOps.js.map +1 -1
  357. package/dist/core/scene/kitRegistry.js +2 -3
  358. package/dist/core/scene/layerOps.js +1 -2
  359. package/dist/core/scene/layerStack.js +1 -2
  360. package/dist/core/scene/layoutPass.js +4 -5
  361. package/dist/core/scene/lockGuard.js +1 -2
  362. package/dist/core/scene/minSize.js +1 -2
  363. package/dist/core/scene/nestedHit.js +1 -2
  364. package/dist/core/scene/nodeAsShown.js +1 -2
  365. package/dist/core/scene/nodeFlags.js +1 -2
  366. package/dist/core/scene/nodeFnFields.js +1 -2
  367. package/dist/core/scene/nodeGates.js +1 -2
  368. package/dist/core/scene/nodeMemo.js +1 -2
  369. package/dist/core/scene/nodeStore.js +2 -3
  370. package/dist/core/scene/notifier.js +1 -2
  371. package/dist/core/scene/opTable.js +1 -2
  372. package/dist/core/scene/outerOps.js +1 -2
  373. package/dist/core/scene/pathEffects/blend.js +3 -4
  374. package/dist/core/scene/pathEffects/blend.js.map +1 -1
  375. package/dist/core/scene/pathEffects/derive.js +2 -3
  376. package/dist/core/scene/pathEffects/effects.js +1 -2
  377. package/dist/core/scene/pathEffects/foundHidden.js +1 -2
  378. package/dist/core/scene/pathEffects/textAlong.js +6 -6
  379. package/dist/core/scene/pathEffects/textAlong.js.map +1 -1
  380. package/dist/core/scene/pathEffects/textAlongBands.js +1 -2
  381. package/dist/core/scene/plyStacks.js +1 -2
  382. package/dist/core/scene/poseFeed.js +1 -2
  383. package/dist/core/scene/poseHold.js +1 -2
  384. package/dist/core/scene/poseOverrides.js +1 -2
  385. package/dist/core/scene/posePlies.js +1 -2
  386. package/dist/core/scene/poseRemovals.js +1 -2
  387. package/dist/core/scene/poseSnapshot.js +1 -2
  388. package/dist/core/scene/poseWrites.js +1 -2
  389. package/dist/core/scene/reconcileSpecs.js +26 -3
  390. package/dist/core/scene/reconcileSpecs.js.map +1 -1
  391. package/dist/core/scene/recorder.js +1 -2
  392. package/dist/core/scene/renderOrder.js +1 -2
  393. package/dist/core/scene/sameValue.js +1 -2
  394. package/dist/core/scene/scene.js +23 -13
  395. package/dist/core/scene/scene.js.map +1 -1
  396. package/dist/core/scene/sceneChanges.js +1 -2
  397. package/dist/core/scene/sceneEdits.js +1 -2
  398. package/dist/core/scene/sceneJournals.js +1 -2
  399. package/dist/core/scene/sceneMutators.js +2 -3
  400. package/dist/core/scene/scenePoseAdapter.js +1 -2
  401. package/dist/core/scene/sceneRecording.js +1 -2
  402. package/dist/core/scene/sceneSelection.js +8 -5
  403. package/dist/core/scene/sceneSelection.js.map +1 -1
  404. package/dist/core/scene/sceneState.js +3 -4
  405. package/dist/core/scene/scrollOffsets.js +1 -2
  406. package/dist/core/scene/serialization.js +2 -3
  407. package/dist/core/scene/staleReplay.js +1 -2
  408. package/dist/core/scene/statedFields.js +1 -2
  409. package/dist/core/scene/strategyView.js +1 -2
  410. package/dist/core/scene/treeEdits.js +2 -3
  411. package/dist/core/scene/treeOrder.js +1 -2
  412. package/dist/core/scene/treeReads.js +1 -2
  413. package/dist/core/scene/treeShape.js +1 -2
  414. package/dist/core/scene/types.js +1 -2
  415. package/dist/core/scene/types.js.map +1 -1
  416. package/dist/core/scene/unionOfChildren.js +1 -2
  417. package/dist/core/scene/unitScopes.js +20 -4
  418. package/dist/core/scene/unitScopes.js.map +1 -1
  419. package/dist/core/scene/useScene.js +2 -3
  420. package/dist/core/scene/worldSave.js +2 -3
  421. package/dist/core/selection/chromeState.js +1 -2
  422. package/dist/core/selection/outermostSelection.js +56 -0
  423. package/dist/core/selection/outermostSelection.js.map +1 -0
  424. package/dist/core/selection/readOnlySelection.js +1 -2
  425. package/dist/core/selection/selectionTarget.js +1 -2
  426. package/dist/core/selection/usePublishSceneSelection.js +1 -2
  427. package/dist/core/selection/useSelection.js +1 -2
  428. package/dist/core/shapeKinds.js +1 -2
  429. package/dist/core/stableStringify.js +1 -2
  430. package/dist/core/stylus/stylus.js +1 -2
  431. package/dist/core/stylus/usePointerStylus.js +1 -2
  432. package/dist/core/usePaintKinds.js +1 -2
  433. package/dist/core/viewport/clampView.js +1 -2
  434. package/dist/core/viewport/clientToWorld.js +8 -3
  435. package/dist/core/viewport/clientToWorld.js.map +1 -1
  436. package/dist/core/viewport/createVelocityTracker.js +1 -2
  437. package/dist/core/viewport/fitToBounds.js +1 -2
  438. package/dist/core/viewport/fitViewToBounds.js +1 -2
  439. package/dist/core/viewport/interpolateView.js +1 -2
  440. package/dist/core/viewport/parallax.js +1 -2
  441. package/dist/core/viewport/sceneNodeClientRect.js +1 -2
  442. package/dist/core/viewport/screenSlop.js +1 -2
  443. package/dist/core/viewport/useAutoCenter.js +1 -2
  444. package/dist/core/viewport/useCanvasSize.js +1 -2
  445. package/dist/core/viewport/useDecayLoop.js +1 -2
  446. package/dist/core/viewport/useNodeOverlayFrame.js +1 -2
  447. package/dist/core/viewport/useVelocityTracker.js +1 -2
  448. package/dist/core/viewport/useViewAnimation.js +3 -4
  449. package/dist/core/viewport/view.js +1 -2
  450. package/dist/core/viewport/viewTransform.js +1 -2
  451. package/dist/core/viewport/viewportWorldRect.js +1 -2
  452. package/dist/core/viewport/wheelHandler.js +1 -2
  453. package/dist/core/viewport/zoomAt.js +7 -8
  454. package/dist/core/viewport/zoomAt.js.map +1 -1
  455. package/dist/core/viewport/zoomBounds.js +1 -2
  456. package/dist/debug/createDebugOverlayLayer.js +1 -2
  457. package/dist/debug/createDebugSink.js +1 -2
  458. package/dist/debug/defaultTheme.js +1 -2
  459. package/dist/debug/features.js +1 -2
  460. package/dist/debug/frameStats.js +1 -2
  461. package/dist/debug/overlayPanels.js +1 -2
  462. package/dist/debug/parseDebugFlags.js +1 -2
  463. package/dist/debug/useDebugSink.js +2 -3
  464. package/dist/{depSchema-ChQPzEkW.d.ts → depSchema-C7a_OMt-.d.ts} +61 -52
  465. package/dist/devtools/handlers.js +1 -2
  466. package/dist/devtools/history.js +1 -2
  467. package/dist/devtools/hook.js +1 -2
  468. package/dist/devtools/label.js +1 -2
  469. package/dist/devtools/notices.js +1 -2
  470. package/dist/devtools/protocol.js +1 -2
  471. package/dist/devtools/registry.js +1 -2
  472. package/dist/devtools/root.js +12 -6
  473. package/dist/devtools/root.js.map +1 -1
  474. package/dist/devtools/serialize.js +1 -2
  475. package/dist/devtools/session.js +2 -3
  476. package/dist/devtools/transport.js +13 -18
  477. package/dist/devtools/transport.js.map +1 -1
  478. package/dist/devtools/useDevtoolsRoot.js +1 -2
  479. package/dist/devtools-protocol.d.ts +1 -12
  480. package/dist/devtools-protocol.js +2 -2
  481. package/dist/devtools.d.ts +1 -1
  482. package/dist/devtools.js +1 -2
  483. package/dist/domains/chrome-caps/buildChromeCtx.js +1 -2
  484. package/dist/domains/chrome-caps/conditions.js +1 -2
  485. package/dist/domains/chrome-caps/defaults.js +1 -2
  486. package/dist/domains/chrome-caps/resolve.js +2 -3
  487. package/dist/domains/chrome-caps/useChromeCaps.js +1 -2
  488. package/dist/domains/chrome-caps/useHoverTracking.js +1 -2
  489. package/dist/domains/ingestion/contentHandlers.js +1 -2
  490. package/dist/domains/ingestion/ghost.js +2 -3
  491. package/dist/domains/ingestion/imageHandler.js +1 -2
  492. package/dist/domains/ingestion/kitHandlers.js +2 -3
  493. package/dist/domains/ingestion/openFilePicker.js +1 -2
  494. package/dist/domains/ingestion/placement.js +1 -2
  495. package/dist/domains/ingestion/svgHandler.js +1 -2
  496. package/dist/domains/ingestion/textHandler.js +1 -2
  497. package/dist/domains/ingestion/useCanvasIngestion.js +1 -2
  498. package/dist/domains/ingestion/weaselJsonHandler.js +2 -3
  499. package/dist/domains/longPress/longPressFeedback.js +1 -2
  500. package/dist/domains/measure/actionIds.js +1 -2
  501. package/dist/domains/measure/measureCommands.js +6 -7
  502. package/dist/domains/measure/measureContribution.js +3 -4
  503. package/dist/domains/measure/measureEdits.js +3 -4
  504. package/dist/domains/measure/measureGestures.js +2 -3
  505. package/dist/domains/measure/measureHit.js +5 -12
  506. package/dist/domains/measure/measureHit.js.map +1 -1
  507. package/dist/domains/measure/measureLayer.js +3 -4
  508. package/dist/domains/measure/measurement.js +1 -2
  509. package/dist/domains/measure/measurements.js +1 -2
  510. package/dist/domains/modes/modeLayers.js +1 -2
  511. package/dist/domains/modes/modeTriggers.js +1 -2
  512. package/dist/domains/pathEffects/effectSources.js +2 -3
  513. package/dist/domains/pathEffects/index.js +1 -2
  514. package/dist/domains/pathEffects/readSource.js +3 -4
  515. package/dist/domains/pathEffects/textItems.js +1 -2
  516. package/dist/domains/pathEffects/useEffectSourcesLayer.js +3 -4
  517. package/dist/domains/paths/anchorData.js +1 -2
  518. package/dist/domains/paths/anchorMarkers.js +6 -13
  519. package/dist/domains/paths/anchorMarkers.js.map +1 -1
  520. package/dist/domains/paths/editablePath.js +3 -4
  521. package/dist/domains/paths/originProjection.js +1 -2
  522. package/dist/domains/paths/pathEditExtension.js +1 -2
  523. package/dist/domains/paths/pathEditState.js +1 -2
  524. package/dist/domains/paths/pathEditingOverlayLayer.js +7 -12
  525. package/dist/domains/paths/pathEditingOverlayLayer.js.map +1 -1
  526. package/dist/domains/paths/pathLayer.js +1 -2
  527. package/dist/domains/paths/pathRepresentation.js +1 -2
  528. package/dist/domains/paths/pathSnap/glyphs.js +1 -2
  529. package/dist/domains/paths/pathSnap/pathSnapSource.js +1 -2
  530. package/dist/domains/paths/pathSnap/sceneIndex.js +1 -2
  531. package/dist/domains/paths/pathSnap/snapGeometry.js +2 -3
  532. package/dist/domains/paths/penPreviewLayer.js +10 -14
  533. package/dist/domains/paths/penPreviewLayer.js.map +1 -1
  534. package/dist/domains/paths/shapeGenerator.js +2 -4
  535. package/dist/domains/paths/shapeGenerator.js.map +1 -1
  536. package/dist/domains/paths/strokeOutline.js +2 -3
  537. package/dist/domains/paths/useAnchorFields.js +1 -2
  538. package/dist/domains/paths/usePathEdit.js +2 -3
  539. package/dist/domains/poseRun/usePoseRun.js +1 -2
  540. package/dist/domains/selection/enteredGroupFrame.js +1 -2
  541. package/dist/domains/selection/enteredGroupScope.js +1 -2
  542. package/dist/domains/selection/enteredOperands.js +1 -2
  543. package/dist/domains/selection/handleCommands.js +2 -3
  544. package/dist/domains/selection/overlay.js +6 -7
  545. package/dist/domains/selection/selectionPose.js +2 -3
  546. package/dist/domains/snap/angle2d.js +3 -3
  547. package/dist/domains/snap/angle2d.js.map +1 -1
  548. package/dist/domains/snap/debugCandidates.js +1 -2
  549. package/dist/domains/snap/gather.js +1 -2
  550. package/dist/domains/snap/inputSubspace.js +2 -3
  551. package/dist/domains/snap/lazySession.js +1 -2
  552. package/dist/domains/snap/marks.js +1 -2
  553. package/dist/domains/snap/outcomeStore.js +6 -10
  554. package/dist/domains/snap/outcomeStore.js.map +1 -1
  555. package/dist/domains/snap/pointSnap.js +1 -2
  556. package/dist/domains/snap/probes2d.js +1 -2
  557. package/dist/domains/snap/readoutDraw.js +1 -2
  558. package/dist/domains/snap/readoutLayer.js +1 -2
  559. package/dist/domains/snap/registry.js +1 -2
  560. package/dist/domains/snap/resizeBox.js +1 -2
  561. package/dist/domains/snap/roles.js +1 -2
  562. package/dist/domains/snap/rotationSource.js +1 -2
  563. package/dist/domains/snap/sceneReads.js +2 -3
  564. package/dist/domains/snap/sceneSession2d.js +2 -3
  565. package/dist/domains/snap/screen.js +2 -3
  566. package/dist/domains/snap/session2d.js +4 -5
  567. package/dist/domains/snap/spanSnap.js +1 -2
  568. package/dist/domains/snap/stepAngles.js +1 -2
  569. package/dist/domains/text/editingDrawOne.js +1 -2
  570. package/dist/domains/text/hostTextEditors.js +1 -2
  571. package/dist/domains/text/sceneTextDrafts.js +1 -2
  572. package/dist/domains/text/textHitAt.js +4 -5
  573. package/dist/domains/text/textLayer.js +12 -2
  574. package/dist/domains/text/textLayer.js.map +1 -1
  575. package/dist/domains/text/useSceneTextEdit.js +13 -9
  576. package/dist/domains/text/useSceneTextEdit.js.map +1 -1
  577. package/dist/domains/viewports/aim.js +6 -12
  578. package/dist/domains/viewports/aim.js.map +1 -1
  579. package/dist/domains/viewports/viewMarker.js +1 -2
  580. package/dist/domains/viewports/viewMarkerDrag.js +1 -2
  581. package/dist/domains/viewports/viewResolver.js +6 -5
  582. package/dist/domains/viewports/viewResolver.js.map +1 -1
  583. package/dist/domains/viewports/viewportLayer.js +1 -2
  584. package/dist/iconRegistry/IconRegistryProvider.js +1 -2
  585. package/dist/iconRegistry/useIconGlyph.js +1 -2
  586. package/dist/iconRegistry/useIconVariant.js +1 -2
  587. package/dist/icons.table.js +1 -2
  588. package/dist/icons2.table.js +1 -2
  589. package/dist/index.d.ts +70 -27
  590. package/dist/index.js +7 -5
  591. package/dist/input/keyState.js +1 -2
  592. package/dist/input/useKeyModifiers.js +1 -2
  593. package/dist/input/useKeyState.js +1 -2
  594. package/dist/input/usePublishPointer.js +59 -0
  595. package/dist/input/usePublishPointer.js.map +1 -0
  596. package/dist/interactions/actions/admitsChild.js +1 -2
  597. package/dist/interactions/actions/align/action.js +6 -7
  598. package/dist/interactions/actions/align/align.js +6 -7
  599. package/dist/interactions/actions/booleans/action.js +1 -2
  600. package/dist/interactions/actions/booleans/booleanGroupAction.js +2 -3
  601. package/dist/interactions/actions/booleans/booleans.js +1 -2
  602. package/dist/interactions/actions/booleans/commit.js +4 -5
  603. package/dist/interactions/actions/booleans/custom.js +2 -3
  604. package/dist/interactions/actions/booleans/keymap.js +1 -2
  605. package/dist/interactions/actions/booleans/operands.js +1 -2
  606. package/dist/interactions/actions/booleans/pieces.js +1 -2
  607. package/dist/interactions/actions/booleans/placement.js +1 -2
  608. package/dist/interactions/actions/booleans/useBooleans.js +1 -2
  609. package/dist/interactions/actions/booleans/useBooleansAdapter.js +1 -2
  610. package/dist/interactions/actions/clipboard/action.js +2 -3
  611. package/dist/interactions/actions/clipboard/clipboardOps.js +2 -3
  612. package/dist/interactions/actions/clipboard/materializePaste.js +1 -2
  613. package/dist/interactions/actions/clipboard/wireFormat.js +1 -2
  614. package/dist/interactions/actions/clone/action.js +7 -8
  615. package/dist/interactions/actions/clone/behaviors.js +4 -5
  616. package/dist/interactions/actions/defaultCommitAdapter.js +2 -3
  617. package/dist/interactions/actions/defaults/anchorEditing.js +3 -4
  618. package/dist/interactions/actions/defaults/anchorFields.js +1 -2
  619. package/dist/interactions/actions/defaults/anchorHandles.js +2 -3
  620. package/dist/interactions/actions/defaults/anchorJoin.js +2 -3
  621. package/dist/interactions/actions/defaults/areaSelect.js +6 -6
  622. package/dist/interactions/actions/defaults/areaSelect.js.map +1 -1
  623. package/dist/interactions/actions/defaults/bendSegment.js +3 -4
  624. package/dist/interactions/actions/defaults/cancelGesture.js +1 -2
  625. package/dist/interactions/actions/defaults/clearSelection.js +1 -2
  626. package/dist/interactions/actions/defaults/containerScroll.js +13 -8
  627. package/dist/interactions/actions/defaults/containerScroll.js.map +1 -1
  628. package/dist/interactions/actions/defaults/contextMenu.js +6 -7
  629. package/dist/interactions/actions/defaults/copySubtree.js +2 -3
  630. package/dist/interactions/actions/defaults/createPaintAction.js +3 -4
  631. package/dist/interactions/actions/defaults/delete.js +2 -3
  632. package/dist/interactions/actions/defaults/duplicate.js +5 -6
  633. package/dist/interactions/actions/defaults/enterGroup.js +5 -6
  634. package/dist/interactions/actions/defaults/enterGroup.js.map +1 -1
  635. package/dist/interactions/actions/defaults/enterPathEdit.js +1 -2
  636. package/dist/interactions/actions/defaults/enterTextEdit.js +1 -2
  637. package/dist/interactions/actions/defaults/escape.js +1 -2
  638. package/dist/interactions/actions/defaults/exitPathEdit.js +1 -2
  639. package/dist/interactions/actions/defaults/group.js +6 -7
  640. package/dist/interactions/actions/defaults/ingest.js +3 -4
  641. package/dist/interactions/actions/defaults/insertPathAnchor.js +2 -3
  642. package/dist/interactions/actions/defaults/nudge.js +3 -4
  643. package/dist/interactions/actions/defaults/nudgeSteps.js +2 -3
  644. package/dist/interactions/actions/defaults/nudgeSteps.js.map +1 -1
  645. package/dist/interactions/actions/defaults/pathEditMarks.js +3 -7
  646. package/dist/interactions/actions/defaults/pathEditMarks.js.map +1 -1
  647. package/dist/interactions/actions/defaults/pinchZoom.js +3 -4
  648. package/dist/interactions/actions/defaults/reorder.js +2 -3
  649. package/dist/interactions/actions/defaults/requiresSelection.js +1 -2
  650. package/dist/interactions/actions/defaults/segmentUnder.js +1 -2
  651. package/dist/interactions/actions/defaults/selectAll.js +1 -2
  652. package/dist/interactions/actions/defaults/selectDeep.js +1 -2
  653. package/dist/interactions/actions/defaults/setFill.js +1 -2
  654. package/dist/interactions/actions/defaults/setFillOpacity.js +1 -2
  655. package/dist/interactions/actions/defaults/setStroke.js +1 -2
  656. package/dist/interactions/actions/defaults/setStrokeOpacity.js +1 -2
  657. package/dist/interactions/actions/defaults/slice.js +1 -2
  658. package/dist/interactions/actions/defaults/sliceOps.js +1 -2
  659. package/dist/interactions/actions/defaults/toolActivate.js +1 -2
  660. package/dist/interactions/actions/defaults/toolResetToDefault.js +1 -2
  661. package/dist/interactions/actions/defaults/undoRedo.js +1 -2
  662. package/dist/interactions/actions/defaults/viewportDragPan.js +1 -2
  663. package/dist/interactions/actions/defaults/viewportWheelPan.js +1 -2
  664. package/dist/interactions/actions/defaults/viewportZoom.js +3 -4
  665. package/dist/interactions/actions/distribute/action.js +4 -5
  666. package/dist/interactions/actions/distribute/distribute.js +5 -6
  667. package/dist/interactions/actions/distribute/plan.js +1 -2
  668. package/dist/interactions/actions/drawnBoxes.js +4 -5
  669. package/dist/interactions/actions/dropVerdict.js +1 -2
  670. package/dist/interactions/actions/edit-anchors/action.js +4 -5
  671. package/dist/interactions/actions/edit-anchors/extensionDrags.js +1 -2
  672. package/dist/interactions/actions/edit-anchors/geometry.js +1 -2
  673. package/dist/interactions/actions/edit-anchors/handleDrag.js +5 -9
  674. package/dist/interactions/actions/edit-anchors/handleDrag.js.map +1 -1
  675. package/dist/interactions/actions/edit-anchors/handles.js +1 -2
  676. package/dist/interactions/actions/edit-anchors/params.js +1 -2
  677. package/dist/interactions/actions/edit-anchors/preview.js +1 -2
  678. package/dist/interactions/actions/edit-anchors/symmetry.js +1 -2
  679. package/dist/interactions/actions/flip/action.js +8 -9
  680. package/dist/interactions/actions/flip/helpers.js +1 -2
  681. package/dist/interactions/actions/geometryProjection.js +1 -2
  682. package/dist/interactions/actions/gestureFrames.js +3 -4
  683. package/dist/interactions/actions/gestureLifecycle.js +1 -2
  684. package/dist/interactions/actions/hitSelection.js +7 -3
  685. package/dist/interactions/actions/hitSelection.js.map +1 -1
  686. package/dist/interactions/actions/insert/action.js +6 -7
  687. package/dist/interactions/actions/insert/commit.js +2 -3
  688. package/dist/interactions/actions/insert/extras.js +1 -2
  689. package/dist/interactions/actions/insert/frame.js +1 -2
  690. package/dist/interactions/actions/insert/geometry.js +1 -2
  691. package/dist/interactions/actions/insert/params.js +2 -3
  692. package/dist/interactions/actions/insert/parent.js +1 -2
  693. package/dist/interactions/actions/insert/placeAction.js +5 -6
  694. package/dist/interactions/actions/insert/repositionAction.js +1 -2
  695. package/dist/interactions/actions/insert/rotateAction.js +1 -2
  696. package/dist/interactions/actions/insert/session.js +5 -6
  697. package/dist/interactions/actions/insert/shape.js +2 -3
  698. package/dist/interactions/actions/lasso-select/action.js +9 -9
  699. package/dist/interactions/actions/lasso-select/action.js.map +1 -1
  700. package/dist/interactions/actions/lasso-select/behaviors/selectFromLasso.js +2 -3
  701. package/dist/interactions/actions/magnification.js +37 -0
  702. package/dist/interactions/actions/magnification.js.map +1 -0
  703. package/dist/interactions/actions/move/action.js +2 -3
  704. package/dist/interactions/actions/move/behaviors/clampMove.js +42 -0
  705. package/dist/interactions/actions/move/behaviors/clampMove.js.map +1 -0
  706. package/dist/interactions/actions/move/behaviors/layoutDrop.js +2 -3
  707. package/dist/interactions/actions/move/behaviors/reparentOnDrop.js +2 -3
  708. package/dist/interactions/actions/move/behaviors/snapBackOrDelete.js +1 -2
  709. package/dist/interactions/actions/move/behaviors/snapToContainer.js +2 -3
  710. package/dist/interactions/actions/move/capture.js +6 -7
  711. package/dist/interactions/actions/move/commit/index.js +2 -3
  712. package/dist/interactions/actions/move/commit/layoutDrop.js +4 -5
  713. package/dist/interactions/actions/move/commit/layoutRelease.js +7 -8
  714. package/dist/interactions/actions/move/commit/rebase.js +2 -3
  715. package/dist/interactions/actions/move/commit/reparent.js +5 -6
  716. package/dist/interactions/actions/move/delta.js +2 -3
  717. package/dist/interactions/actions/move/frame.js +2 -3
  718. package/dist/interactions/actions/move/gestureAdapter.js +1 -2
  719. package/dist/interactions/actions/move/landedDescendants.js +2 -3
  720. package/dist/interactions/actions/move/layout/container.js +6 -10
  721. package/dist/interactions/actions/move/layout/container.js.map +1 -1
  722. package/dist/interactions/actions/move/layout/dragged.js +2 -3
  723. package/dist/interactions/actions/move/layout/dropPass.js +5 -6
  724. package/dist/interactions/actions/move/layout/exits.js +4 -5
  725. package/dist/interactions/actions/move/layout/exits.js.map +1 -1
  726. package/dist/interactions/actions/move/layout/glide.js +2 -3
  727. package/dist/interactions/actions/move/layout/view.js +1 -2
  728. package/dist/interactions/actions/move/refusal.js +2 -3
  729. package/dist/interactions/actions/move/session.js +4 -5
  730. package/dist/interactions/actions/move/translate.js +2 -3
  731. package/dist/interactions/actions/moveNodes.js +5 -6
  732. package/dist/interactions/actions/notices.js +1 -2
  733. package/dist/interactions/actions/outlines/createOutlines.js +1 -2
  734. package/dist/interactions/actions/outlines/createOutlinesAction.js +2 -3
  735. package/dist/interactions/actions/outlines/outlineStroke.js +2 -3
  736. package/dist/interactions/actions/outlines/outlineStrokeAction.js +2 -3
  737. package/dist/interactions/actions/outlines/replaceWithPaths.js +5 -6
  738. package/dist/interactions/actions/outlines/strokeRegion.js +1 -2
  739. package/dist/interactions/actions/outlines/useCreateOutlinesAdapter.js +1 -2
  740. package/dist/interactions/actions/pathCommands/cutJoin.js +3 -4
  741. package/dist/interactions/actions/pathCommands/livePathEdit.js +3 -4
  742. package/dist/interactions/actions/pathCommands/pathNodes.js +3 -4
  743. package/dist/interactions/actions/pathCommands/simplifyOffset.js +2 -3
  744. package/dist/interactions/actions/pathGestureTags.js +1 -2
  745. package/dist/interactions/actions/planeInput.js +2 -3
  746. package/dist/interactions/actions/pointerState.js +1 -2
  747. package/dist/interactions/actions/poseDescriptorDep.js +1 -2
  748. package/dist/interactions/actions/poseFrame.js +3 -4
  749. package/dist/interactions/actions/resize/action.js +3 -4
  750. package/dist/interactions/actions/resize/aspect.js +1 -2
  751. package/dist/interactions/actions/resize/behaviors/clampMinSize.js +1 -2
  752. package/dist/interactions/actions/resize/boxFrame.js +1 -2
  753. package/dist/interactions/actions/resize/capture.js +7 -8
  754. package/dist/interactions/actions/resize/commit.js +3 -4
  755. package/dist/interactions/actions/resize/cornerHandles.js +1 -2
  756. package/dist/interactions/actions/resize/frame.js +7 -8
  757. package/dist/interactions/actions/resize/held.js +2 -3
  758. package/dist/interactions/actions/resize/minimum.js +1 -2
  759. package/dist/interactions/actions/resize/replay.js +1 -2
  760. package/dist/interactions/actions/resize/ruleBounds.js +1 -2
  761. package/dist/interactions/actions/resize/session.js +9 -10
  762. package/dist/interactions/actions/resolveOverlays.js +1 -2
  763. package/dist/interactions/actions/resolvePreviews.js +3 -4
  764. package/dist/interactions/actions/rotate/action.js +5 -6
  765. package/dist/interactions/actions/rotate/commit.js +2 -3
  766. package/dist/interactions/actions/rotate/frame.js +3 -4
  767. package/dist/interactions/actions/rotate/geometry.js +1 -2
  768. package/dist/interactions/actions/rotate/handle.js +2 -3
  769. package/dist/interactions/actions/rotate/replay.js +2 -3
  770. package/dist/interactions/actions/rotate/session.js +10 -11
  771. package/dist/interactions/actions/selectionSubtree.js +7 -22
  772. package/dist/interactions/actions/selectionSubtree.js.map +1 -1
  773. package/dist/interactions/actions/spatialReference.js +1 -2
  774. package/dist/interactions/actions/testUtils.js +1 -2
  775. package/dist/interactions/actions/transform-again/action.js +5 -6
  776. package/dist/interactions/actions/transform-again/memory.js +3 -4
  777. package/dist/interactions/actions/transform-again/memory.js.map +1 -1
  778. package/dist/interactions/actions/transformFinish.js +1 -2
  779. package/dist/interactions/actions/useActionSet.js +1 -2
  780. package/dist/interactions/actions/useNotices.js +1 -2
  781. package/dist/interactions/actions/useStandardActions.js +1 -2
  782. package/dist/interactions/gestures/dragGesture/dragGesture.js +1 -2
  783. package/dist/interactions/gestures/dragGesture/dragPointOf.js +1 -2
  784. package/dist/interactions/gestures/dragRadial/dragRadial.js +2 -3
  785. package/dist/interactions/gestures/dragRect/dragRect.js +2 -3
  786. package/dist/interactions/gestures/handleDrag/handleDrag.js +1 -2
  787. package/dist/interactions/gestures/pointerDrag/pointerDrag.js +1 -2
  788. package/dist/interactions/gestures/shared/originProjection.js +1 -2
  789. package/dist/interactions/gestures/shared/screenTolerance.js +1 -2
  790. package/dist/interactions/gestures/thresholdDrag/thresholdDrag.js +1 -2
  791. package/dist/kitSettingsSchema.js +4 -5
  792. package/dist/move.d.ts +18 -3
  793. package/dist/move.js +2 -1
  794. package/dist/test-hook/createTestHook.js +1 -2
  795. package/dist/test-hook/install.js +1 -2
  796. package/dist/test-hook/useTestHook.js +1 -2
  797. package/dist/test-seams.d.ts +4 -4
  798. package/dist/test-seams.js +2 -2
  799. package/dist/tools/builtin/anchors/anchorsTool.js +1 -2
  800. package/dist/tools/builtin/ellipse/useEllipseTool.js +2 -3
  801. package/dist/tools/builtin/eyedropper/useEyedropperTool.js +1 -2
  802. package/dist/tools/builtin/hand/dragPanContribution.js +1 -2
  803. package/dist/tools/builtin/hand/useHandTool.js +1 -2
  804. package/dist/tools/builtin/image/useImageTool.js +1 -2
  805. package/dist/tools/builtin/lasso/useLassoTool.js +1 -2
  806. package/dist/tools/builtin/line/useLineTool.js +2 -3
  807. package/dist/tools/builtin/measure/useMeasureTool.js +2 -3
  808. package/dist/tools/builtin/pen/penHandle.js +1 -2
  809. package/dist/tools/builtin/pen/usePenTool.js +6 -7
  810. package/dist/tools/builtin/pencil/usePencilTool.js +1 -2
  811. package/dist/tools/builtin/pickTopMostHit.js +1 -2
  812. package/dist/tools/builtin/polygon/usePolygonTool.js +3 -4
  813. package/dist/tools/builtin/pressTarget.js +1 -2
  814. package/dist/tools/builtin/rect/useRectTool.js +2 -3
  815. package/dist/tools/builtin/select/adapterPointQuery.js +3 -4
  816. package/dist/tools/builtin/select/collapseDeferred.js +1 -2
  817. package/dist/tools/builtin/select/groupEntry.js +2 -3
  818. package/dist/tools/builtin/select/pressDecision.js +3 -4
  819. package/dist/tools/builtin/select/pressDecision.js.map +1 -1
  820. package/dist/tools/builtin/select/selectionContributions.js +1 -2
  821. package/dist/tools/builtin/select/useSelectTool.js +5 -6
  822. package/dist/tools/builtin/shared/insertToolOptions.js +1 -2
  823. package/dist/tools/builtin/shared/pointerFollower.js +1 -2
  824. package/dist/tools/builtin/slice/useSliceTool.js +5 -6
  825. package/dist/tools/builtin/star/useStarTool.js +3 -4
  826. package/dist/tools/builtin/sticky/stickyNode.js +1 -2
  827. package/dist/tools/builtin/sticky/useStickyTool.js +2 -3
  828. package/dist/tools/builtin/text/useTextTool.js +1 -2
  829. package/dist/tools/index.js +2 -2
  830. package/dist/tools/overlayBinding.js +1 -2
  831. package/dist/tools/toolOptions.js +17 -4
  832. package/dist/tools/toolOptions.js.map +1 -1
  833. package/dist/tools/useKeybindings.js +1 -2
  834. package/dist/{types-DW14eu9B.d.ts → types-BUvUXZe5.d.ts} +3 -3
  835. package/dist/util/color.js +1 -2
  836. package/dist/util/paint.js +1 -2
  837. package/dist/version.js +2 -3
  838. package/package.json +27 -27
@@ -1,24 +1,24 @@
1
+ import { clientToWorld } from "../core/viewport/clientToWorld.js";
1
2
  import { createViewportLayer } from "../domains/viewports/viewportLayer.js";
2
- import { useDeviceProfile } from "../core/device/useDeviceProfile.js";
3
3
  import { viewportWorldRect } from "../core/viewport/viewportWorldRect.js";
4
- import { clientToWorld } from "../core/viewport/clientToWorld.js";
5
4
  import { useSelection } from "../core/selection/useSelection.js";
6
5
  import { AUTO_POSE_DESCRIPTOR } from "../core/geometry/autoPoseDescriptor.js";
7
6
  import { useViewHelpers } from "./useViewHelpers.js";
8
- import { NO_RECT, sizeOf, useViewNesting } from "./useViewNesting.js";
9
- import { anchorStateFrom, buildAffordanceAt, buildClassifyTarget, layerAffordance } from "./affordanceAt.js";
10
- import { IDENTITY_VIEW, UNMEASURED_DIMS, surfaceLocal, useOptionalViewRegistry } from "./viewRegistry.js";
11
7
  import { useViewAim } from "./useViewAim.js";
12
8
  import { hitAtOf } from "./deps/dispatchSources.js";
9
+ import { anchorStateFrom, buildAffordanceAt, buildClassifyTarget, layerAffordance } from "./affordanceAt.js";
13
10
  import { pathFromPlane } from "./planeClips.js";
11
+ import { useDeviceProfile } from "../core/device/useDeviceProfile.js";
14
12
  import { createDispatcherPreviewSources, createGestureSource } from "./SceneCanvas/dispatcherGestureBounds.js";
15
13
  import { useOptionalViewInputs } from "./viewInputs.js";
14
+ import { NO_RECT, sizeOf, useViewNesting } from "./useViewNesting.js";
15
+ import { IDENTITY_VIEW, UNMEASURED_DIMS, surfaceLocal, useOptionalViewRegistry } from "./viewRegistry.js";
16
16
  import { useCallback, useEffect, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useRef } from "react";
17
17
  import { useLatest } from "@weasel-js/react";
18
18
  import { createDispatcher } from "@weasel-js/routing";
19
19
  import { useOptionalDepRegistry } from "@weasel-js/routing/react";
20
20
 
21
- //#region src/canvas/CanvasView.tsx
21
+ // src/canvas/CanvasView.tsx
22
22
  /**
23
23
  * `<CanvasView>` — a second view on an existing canvas: its own camera over a
24
24
  * rect of the surface, with input routed to it.
@@ -296,6 +296,5 @@ function CanvasView(props) {
296
296
  return null;
297
297
  }
298
298
 
299
- //#endregion
300
299
  export { CanvasView };
301
300
  //# sourceMappingURL=CanvasView.js.map
@@ -1,12 +1,12 @@
1
- import { clientToWorld } from "../core/viewport/clientToWorld.js";
2
1
  import hud_module_default from "./hud.module.js";
3
2
  import { useHostAnchor } from "./useHostAnchor.js";
3
+ import { clientToWorld } from "../core/viewport/clientToWorld.js";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { useLatest, useVisibleRaf } from "@weasel-js/react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { decimal, qty } from "@weasel-js/quantity";
8
8
 
9
- //#region src/canvas/CursorCoordsHud.tsx
9
+ // src/canvas/CursorCoordsHud.tsx
10
10
  /**
11
11
  * Fixed-position dev HUD that shows the cursor's current viewport
12
12
  * (client) coords next to the equivalent canvas (world) coords. Pins to the
@@ -140,6 +140,5 @@ function point({ x, y }, places) {
140
140
  return `(${qty(x, at).text}, ${qty(y, at).text})`;
141
141
  }
142
142
 
143
- //#endregion
144
143
  export { CursorCoordsHud };
145
144
  //# sourceMappingURL=CursorCoordsHud.js.map
@@ -1,14 +1,14 @@
1
- import { backgroundFillCommands } from "../core/layers/backgroundFill.js";
2
- import { normalizeView } from "../core/viewport/view.js";
3
1
  import { useCanvasSurface } from "./useCanvasSurface.js";
4
2
  import { SurfaceCanvas } from "./SurfaceCanvas.js";
5
3
  import { useSurfaceSize } from "./useSurfaceSize.js";
4
+ import { backgroundFillCommands } from "../core/layers/backgroundFill.js";
5
+ import { normalizeView } from "../core/viewport/view.js";
6
6
  import { viewToMat3 } from "@weasel-js/geom";
7
7
  import { useCallback, useRef } from "react";
8
8
  import { assignRef } from "@weasel-js/react";
9
9
  import { jsx } from "react/jsx-runtime";
10
10
 
11
- //#region src/canvas/DrawCanvas.tsx
11
+ // src/canvas/DrawCanvas.tsx
12
12
  /**
13
13
  * `<DrawCanvas>` — a sized, DPR-correct WebGL2 surface that paints a list of
14
14
  * draw commands, with no scene, tools or dispatcher behind it.
@@ -82,6 +82,5 @@ function DrawCanvas(props) {
82
82
  });
83
83
  }
84
84
 
85
- //#endregion
86
85
  export { DrawCanvas };
87
86
  //# sourceMappingURL=DrawCanvas.js.map
@@ -6,7 +6,7 @@ import { useEffect, useState } from "react";
6
6
  import { overlaysOf } from "@weasel-js/routing";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
 
9
- //#region src/canvas/GestureReason.tsx
9
+ // src/canvas/GestureReason.tsx
10
10
  /**
11
11
  * The reason an in-flight gesture cannot land where it is, beside the pointer:
12
12
  * the DOM half of the `reason` overlay, which the canvas layers cannot paint
@@ -59,6 +59,5 @@ function GestureReason({ dispatcher, canvasRef, viewRef }) {
59
59
  });
60
60
  }
61
61
 
62
- //#endregion
63
62
  export { GestureReason };
64
63
  //# sourceMappingURL=GestureReason.js.map
@@ -1,7 +1,6 @@
1
- //#region src/canvas/GestureReason.module.css
1
+ // src/canvas/GestureReason.module.css
2
2
  var reason = "_reason_0cabc7";
3
3
  var GestureReason_module_default = { reason };
4
4
 
5
- //#endregion
6
5
  export { GestureReason_module_default as default, reason };
7
6
  //# sourceMappingURL=GestureReason.module.js.map
@@ -1,9 +1,9 @@
1
+ import { renderSceneCanvas } from "./SceneCanvas.js";
1
2
  import { toolDrivenActions } from "./SceneCanvas/presets/toolDriven.js";
2
3
  import { BASELINE_ACTIONS } from "./SceneCanvas/presets/baseline.js";
3
- import { renderSceneCanvas } from "./SceneCanvas.js";
4
4
  import { forwardRef } from "react";
5
5
 
6
- //#region src/canvas/LeanSceneCanvas.tsx
6
+ // src/canvas/LeanSceneCanvas.tsx
7
7
  var LEAN_SOURCE = {
8
8
  named: null,
9
9
  pool: toolDrivenActions,
@@ -20,6 +20,5 @@ function LeanSceneCanvasWrapper(props, ref) {
20
20
  */
21
21
  var LeanSceneCanvas = forwardRef(LeanSceneCanvasWrapper);
22
22
 
23
- //#endregion
24
23
  export { LeanSceneCanvas };
25
24
  //# sourceMappingURL=LeanSceneCanvas.js.map
@@ -1,9 +1,9 @@
1
- import hud_module_default from "./hud.module.js";
2
1
  import { useHostAnchor } from "./useHostAnchor.js";
2
+ import hud_module_default from "./hud.module.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { useOptionalActiveToolContext } from "@weasel-js/routing/react";
5
5
 
6
- //#region src/canvas/ModalityHud.tsx
6
+ // src/canvas/ModalityHud.tsx
7
7
  /**
8
8
  * Dev HUD reporting the modality state: active mode, active-slot tool, and
9
9
  * the hotkey-engaged tool stack. Anchors below `PickHud` in the canvas's
@@ -76,6 +76,5 @@ function ModalityHud({ canvasRef, anchorRef, modeId, offset }) {
76
76
  });
77
77
  }
78
78
 
79
- //#endregion
80
79
  export { ModalityHud };
81
80
  //# sourceMappingURL=ModalityHud.js.map
@@ -1,19 +1,19 @@
1
1
  import { bumpNodeMemoGeneration, nodeMemo } from "../core/scene/nodeMemo.js";
2
2
  import { setDepOutlineReader } from "../core/scene/booleanOfChildren.js";
3
3
  import { hasSlop, slopForStrokeHit, widenSlop } from "../core/viewport/screenSlop.js";
4
- import { derivesPath } from "./nodeShapes/memo.js";
5
4
  import { DERIVED_PAINTER } from "./nodeShapes/derivedPainter.js";
6
- import { paintsPose } from "./nodeShapes/poseBox.js";
7
5
  import { IMAGE_PAINTER } from "./nodeShapes/imagePainter.js";
8
6
  import { MEASURE_PAINTER } from "./nodeShapes/measurePainter.js";
7
+ import { derivesPath } from "./nodeShapes/memo.js";
9
8
  import { PATH_PAINTER } from "./nodeShapes/pathPainter.js";
9
+ import { paintsPose } from "./nodeShapes/poseBox.js";
10
10
  import { RECT_FALLBACK_PAINTER } from "./nodeShapes/rectFallbackPainter.js";
11
11
  import { SHAPE_PAINTER } from "./nodeShapes/shapePainter.js";
12
12
  import { TEXT_PAINTER } from "./nodeShapes/textPainter.js";
13
13
  import { pathContainsPoint, pathThroughPoseFrame, strokeHitTest } from "@weasel-js/geom";
14
14
  import { glyphGeneration } from "@weasel-js/font";
15
15
 
16
- //#region src/canvas/NodeShape.ts
16
+ // src/canvas/NodeShape.ts
17
17
  /**
18
18
  * NodeShape — the **shape trait's** registry: the per-kind `paint` + `silhouette` used by
19
19
  * `defaultDrawOne`, clipping, non-rect hit-testing, and lasso/area-select. Teaching the kit
@@ -159,6 +159,5 @@ function registerBuiltInShapePainters() {
159
159
  registerNodeShape(RECT_FALLBACK_PAINTER);
160
160
  }
161
161
 
162
- //#endregion
163
162
  export { DEFAULT_INK, findNodeShape, findShapeBounds, findShapeInk, findShapeSilhouette, getNodeShapes, registerNodeShape, shapeCoversPoint };
164
163
  //# sourceMappingURL=NodeShape.js.map
@@ -1,11 +1,11 @@
1
1
  import { clientToWorld } from "../core/viewport/clientToWorld.js";
2
- import hud_module_default from "./hud.module.js";
3
2
  import { useHostAnchor } from "./useHostAnchor.js";
3
+ import hud_module_default from "./hud.module.js";
4
4
  import { useEffect, useState } from "react";
5
5
  import { useLatest } from "@weasel-js/react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
 
8
- //#region src/canvas/PickHud.tsx
8
+ // src/canvas/PickHud.tsx
9
9
  /**
10
10
  * Dev HUD listing the ids returned by `pickEvery(world)` under the cursor.
11
11
  *
@@ -113,6 +113,5 @@ function PickHud({ canvasRef, anchorRef, viewRef, toWorld, pickEvery, pickBest,
113
113
  });
114
114
  }
115
115
 
116
- //#endregion
117
116
  export { PickHud };
118
117
  //# sourceMappingURL=PickHud.js.map
@@ -1,13 +1,12 @@
1
1
  import { Fragment, jsx } from "react/jsx-runtime";
2
2
  import { ActionsProvider, useActionsRegistry } from "@weasel-js/routing/react";
3
3
 
4
- //#region src/canvas/SceneCanvas/ActionsProviderIfRoot.tsx
4
+ // src/canvas/SceneCanvas/ActionsProviderIfRoot.tsx
5
5
  /** Mount an `<ActionsProvider>` only when none is already in scope. */
6
6
  function ActionsProviderIfRoot({ children }) {
7
7
  if (useActionsRegistry()) return /* @__PURE__ */ jsx(Fragment, { children });
8
8
  return /* @__PURE__ */ jsx(ActionsProvider, { children });
9
9
  }
10
10
 
11
- //#endregion
12
11
  export { ActionsProviderIfRoot };
13
12
  //# sourceMappingURL=ActionsProviderIfRoot.js.map
@@ -1,11 +1,11 @@
1
- import { ViewInputsProvider } from "../viewInputs.js";
2
- import { PointerProviderIfRoot } from "./PointerProviderIfRoot.js";
3
1
  import { SnapSourceRegistryContext, createSnapSourceRegistry } from "../../domains/snap/registry.js";
4
2
  import { IconRegistryProviderIfRoot } from "../../iconRegistry/IconRegistryProvider.js";
3
+ import { ViewInputsProvider } from "../viewInputs.js";
4
+ import { PointerProviderIfRoot } from "./PointerProviderIfRoot.js";
5
5
  import { useState } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
 
8
- //#region src/canvas/SceneCanvas/CanvasKitProviders.tsx
8
+ // src/canvas/SceneCanvas/CanvasKitProviders.tsx
9
9
  /** The kit providers a canvas mounts around its surface: view inputs and the
10
10
  * snap source registry, then the icon registry and pointer context where none
11
11
  * is already in scope. */
@@ -20,6 +20,5 @@ function CanvasKitProviders({ viewInputs, children }) {
20
20
  });
21
21
  }
22
22
 
23
- //#endregion
24
23
  export { CanvasKitProviders };
25
24
  //# sourceMappingURL=CanvasKitProviders.js.map
@@ -1,7 +1,7 @@
1
1
  import { Fragment, jsx } from "react/jsx-runtime";
2
2
  import { DepRegistryProvider, useOptionalDepRegistry } from "@weasel-js/routing/react";
3
3
 
4
- //#region src/canvas/SceneCanvas/DepRegistryProviderIfRoot.tsx
4
+ // src/canvas/SceneCanvas/DepRegistryProviderIfRoot.tsx
5
5
  /** Mount a `<DepRegistryProvider>` only when none is already in scope, so a
6
6
  * consumer's dep sources are not shadowed by a nested canvas. */
7
7
  function DepRegistryProviderIfRoot({ children }) {
@@ -9,6 +9,5 @@ function DepRegistryProviderIfRoot({ children }) {
9
9
  return /* @__PURE__ */ jsx(DepRegistryProvider, { children });
10
10
  }
11
11
 
12
- //#endregion
13
12
  export { DepRegistryProviderIfRoot };
14
13
  //# sourceMappingURL=DepRegistryProviderIfRoot.js.map
@@ -5,7 +5,7 @@ import { useCallback } from "react";
5
5
  import { useLatest } from "@weasel-js/react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
 
8
- //#region src/canvas/SceneCanvas/DevHuds.tsx
8
+ // src/canvas/SceneCanvas/DevHuds.tsx
9
9
  /**
10
10
  * `<SceneCanvas>`'s dev HUDs: the cursor readout, the pick list, and the
11
11
  * modality panel, each a fixed-position widget pinned to the canvas.
@@ -50,6 +50,5 @@ function canvasDebug(debug) {
50
50
  return rest;
51
51
  }
52
52
 
53
- //#endregion
54
53
  export { DevHuds, canvasDebug };
55
54
  //# sourceMappingURL=DevHuds.js.map
@@ -1,85 +1,37 @@
1
1
  import { useOptionalViewRegistry } from "../viewRegistry.js";
2
2
  import { worldPointAt } from "./worldPointAt.js";
3
- import { useEffect } from "react";
4
- import { heldPointers } from "@weasel-js/gestures";
3
+ import { usePublishPointer } from "../../input/usePublishPointer.js";
5
4
  import { Fragment, jsx } from "react/jsx-runtime";
6
5
  import { PointerContextProvider, usePointerContext } from "@weasel-js/routing/react";
7
6
 
8
- //#region src/canvas/SceneCanvas/PointerProviderIfRoot.tsx
9
- /**
10
- * Conditional `<PointerContextProvider>` wrapper. Mounts a provider only
11
- * when no parent provider is in scope — otherwise renders children unwrapped
12
- * so SceneCanvas defers to the host's existing scope.
13
- *
14
- * Pairs with `usePointerPublisher`, which attaches native pointermove/leave
15
- * listeners to the canvas element and writes world-space coords into the
16
- * surrounding context's `pointerRef`.
17
- */
7
+ // src/canvas/SceneCanvas/PointerProviderIfRoot.tsx
18
8
  /** Mount a `<PointerContextProvider>` only when none is already in scope. */
19
9
  function PointerProviderIfRoot({ children }) {
20
10
  if (usePointerContext()) return /* @__PURE__ */ jsx(Fragment, { children });
21
11
  return /* @__PURE__ */ jsx(PointerContextProvider, { children });
22
12
  }
23
13
  /**
24
- * Attaches native `pointermove` / `pointerleave` listeners to the supplied
25
- * canvas element and publishes the world-space pointer coordinates into the
26
- * surrounding `<PointerContextProvider>`. No-op when no provider is in scope
27
- * (matches "publish if anyone is listening").
28
- *
29
- * Called inside the provider scope so it sees both consumer-mounted providers
30
- * and SceneCanvas's auto-mounted one.
14
+ * Publishes the canvas's pointer into the surrounding `<PointerContextProvider>`
15
+ * through {@link usePublishPointer}, placing it with the surface's view
16
+ * resolver so paste-at-pointer lands in the panel the cursor is over. With no
17
+ * views declared it answers the canvas's own camera and rect.
31
18
  */
32
19
  function usePointerPublisher(canvasRef, canvasApiRef) {
33
- const ctx = usePointerContext();
34
20
  const registry = useOptionalViewRegistry();
35
- useEffect(() => {
36
- if (!ctx) return;
37
- const el = canvasRef.current;
38
- if (!el) return;
39
- const publish = (pointerId, clientX, clientY) => {
40
- const api = canvasApiRef.current;
41
- if (!api) return;
42
- const target = registry?.resolver.at(pointerId, clientX, clientY);
43
- const [worldX, worldY] = worldPointAt(api, target, clientX, clientY);
44
- ctx.set({
45
- world: {
46
- x: worldX,
47
- y: worldY
48
- },
49
- viewId: target?.id ?? null
50
- });
51
- };
52
- const onMove = (e) => publish(e.pointerId, e.clientX, e.clientY);
53
- const held = heldPointers(el);
54
- const onLeave = (e) => {
55
- if (held.count() > 0) {
56
- publish(e.pointerId, e.clientX, e.clientY);
57
- return;
58
- }
59
- ctx.set(null);
60
- };
61
- const onDocMove = (e) => {
62
- if (e.target === el) return;
63
- if (held.count() === 0) return;
64
- publish(e.pointerId, e.clientX, e.clientY);
65
- };
66
- el.addEventListener("pointermove", onMove);
67
- el.addEventListener("pointerleave", onLeave);
68
- document.addEventListener("pointermove", onDocMove);
69
- return () => {
70
- el.removeEventListener("pointermove", onMove);
71
- el.removeEventListener("pointerleave", onLeave);
72
- document.removeEventListener("pointermove", onDocMove);
73
- held.release();
21
+ usePublishPointer(canvasRef, (pointerId, clientX, clientY) => {
22
+ const api = canvasApiRef.current;
23
+ if (!api) return null;
24
+ const target = registry?.resolver.at(pointerId, clientX, clientY);
25
+ const [x, y] = worldPointAt(api, target, clientX, clientY);
26
+ return {
27
+ world: {
28
+ x,
29
+ y
30
+ },
31
+ viewId: target?.id ?? null
74
32
  };
75
- }, [
76
- ctx,
77
- canvasRef,
78
- canvasApiRef,
79
- registry
80
- ]);
33
+ });
81
34
  }
82
35
 
83
- //#endregion
84
36
  export { PointerProviderIfRoot, usePointerPublisher };
85
37
  //# sourceMappingURL=PointerProviderIfRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PointerProviderIfRoot.js","names":["_Fragment"],"sources":["../../../src/canvas/SceneCanvas/PointerProviderIfRoot.tsx"],"sourcesContent":["/**\n * Conditional `<PointerContextProvider>` wrapper. Mounts a provider only\n * when no parent provider is in scope — otherwise renders children unwrapped\n * so SceneCanvas defers to the host's existing scope.\n *\n * Pairs with `usePointerPublisher`, which attaches native pointermove/leave\n * listeners to the canvas element and writes world-space coords into the\n * surrounding context's `pointerRef`.\n */\nimport { useEffect, type MutableRefObject, type ReactNode, type RefObject } from 'react';\nimport { heldPointers } from '@weasel-js/gestures';\nimport { PointerContextProvider, usePointerContext } from '@weasel-js/routing/react';\nimport type { CanvasExtensionApi } from '../canvasExtension';\nimport { useOptionalViewRegistry } from '../viewRegistry';\nimport { worldPointAt } from './worldPointAt';\n\n/** Mount a `<PointerContextProvider>` only when none is already in scope. */\nexport function PointerProviderIfRoot({ children }: { children: ReactNode }) {\n const parent = usePointerContext();\n if (parent) return <>{children}</>;\n return <PointerContextProvider>{children}</PointerContextProvider>;\n}\n\n/**\n * Attaches native `pointermove` / `pointerleave` listeners to the supplied\n * canvas element and publishes the world-space pointer coordinates into the\n * surrounding `<PointerContextProvider>`. No-op when no provider is in scope\n * (matches \"publish if anyone is listening\").\n *\n * Called inside the provider scope so it sees both consumer-mounted providers\n * and SceneCanvas's auto-mounted one.\n */\nexport function usePointerPublisher(\n canvasRef: MutableRefObject<HTMLElement | null>,\n canvasApiRef: RefObject<CanvasExtensionApi | null>,\n): void {\n const ctx = usePointerContext();\n const registry = useOptionalViewRegistry();\n useEffect(() => {\n if (!ctx) return;\n const el = canvasRef.current;\n if (!el) return;\n // The surface's one resolver answers which camera a client point belongs\n // to, so paste-at-pointer lands in the panel the cursor is over. With no\n // views declared it answers the canvas's own camera and rect.\n const publish = (pointerId: number | null, clientX: number, clientY: number): void => {\n const api = canvasApiRef.current;\n if (!api) return;\n const target = registry?.resolver.at(pointerId, clientX, clientY);\n const [worldX, worldY] = worldPointAt(api, target, clientX, clientY);\n ctx.set({ world: { x: worldX, y: worldY }, viewId: target?.id ?? null });\n };\n const onMove = (e: PointerEvent): void => publish(e.pointerId, e.clientX, e.clientY);\n const held = heldPointers(el);\n const onLeave = (e: PointerEvent): void => {\n // A pointer held on the canvas is still working it once it leaves the\n // rect, and what it drives needs the latest world position.\n if (held.count() > 0) {\n publish(e.pointerId, e.clientX, e.clientY);\n return;\n }\n ctx.set(null);\n };\n // A drag that began on the canvas keeps reporting once it is off it; the\n // canvas's own listener has the moves that still target it.\n const onDocMove = (e: PointerEvent): void => {\n if (e.target === el) return;\n if (held.count() === 0) return;\n publish(e.pointerId, e.clientX, e.clientY);\n };\n el.addEventListener('pointermove', onMove);\n el.addEventListener('pointerleave', onLeave);\n document.addEventListener('pointermove', onDocMove);\n return () => {\n el.removeEventListener('pointermove', onMove);\n el.removeEventListener('pointerleave', onLeave);\n document.removeEventListener('pointermove', onDocMove);\n held.release();\n };\n // canvasRef + registry + ctx identity are all stable across the lifetime\n // of the surrounding provider; effect runs once per mount.\n }, [ctx, canvasRef, canvasApiRef, registry]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,sBAAsB,EAAE,YAAqC;CAE3E,IADe,kBACX,GAAQ,OAAO,oBAAAA,UAAA,EAAG,SAAW,CAAA;CACjC,OAAO,oBAAC,wBAAD,EAAyB,SAAiC,CAAA;AACnE;;;;;;;;;;AAWA,SAAgB,oBACd,WACA,cACM;CACN,MAAM,MAAM,kBAAkB;CAC9B,MAAM,WAAW,wBAAwB;CACzC,gBAAgB;EACd,IAAI,CAAC,KAAK;EACV,MAAM,KAAK,UAAU;EACrB,IAAI,CAAC,IAAI;EAIT,MAAM,WAAW,WAA0B,SAAiB,YAA0B;GACpF,MAAM,MAAM,aAAa;GACzB,IAAI,CAAC,KAAK;GACV,MAAM,SAAS,UAAU,SAAS,GAAG,WAAW,SAAS,OAAO;GAChE,MAAM,CAAC,QAAQ,UAAU,aAAa,KAAK,QAAQ,SAAS,OAAO;GACnE,IAAI,IAAI;IAAE,OAAO;KAAE,GAAG;KAAQ,GAAG;IAAO;IAAG,QAAQ,QAAQ,MAAM;GAAK,CAAC;EACzE;EACA,MAAM,UAAU,MAA0B,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO;EACnF,MAAM,OAAO,aAAa,EAAE;EAC5B,MAAM,WAAW,MAA0B;GAGzC,IAAI,KAAK,MAAM,IAAI,GAAG;IACpB,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO;IACzC;GACF;GACA,IAAI,IAAI,IAAI;EACd;EAGA,MAAM,aAAa,MAA0B;GAC3C,IAAI,EAAE,WAAW,IAAI;GACrB,IAAI,KAAK,MAAM,MAAM,GAAG;GACxB,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO;EAC3C;EACA,GAAG,iBAAiB,eAAe,MAAM;EACzC,GAAG,iBAAiB,gBAAgB,OAAO;EAC3C,SAAS,iBAAiB,eAAe,SAAS;EAClD,aAAa;GACX,GAAG,oBAAoB,eAAe,MAAM;GAC5C,GAAG,oBAAoB,gBAAgB,OAAO;GAC9C,SAAS,oBAAoB,eAAe,SAAS;GACrD,KAAK,QAAQ;EACf;CAGF,GAAG;EAAC;EAAK;EAAW;EAAc;CAAQ,CAAC;AAC7C"}
1
+ {"version":3,"file":"PointerProviderIfRoot.js","names":["_Fragment"],"sources":["../../../src/canvas/SceneCanvas/PointerProviderIfRoot.tsx"],"sourcesContent":["/**\n * Conditional `<PointerContextProvider>` wrapper. Mounts a provider only\n * when no parent provider is in scope — otherwise renders children unwrapped\n * so SceneCanvas defers to the host's existing scope.\n *\n * Pairs with `usePointerPublisher`, which publishes the canvas's pointer\n * into the surrounding context.\n */\nimport type { MutableRefObject, ReactNode, RefObject } from 'react';\nimport { PointerContextProvider, usePointerContext } from '@weasel-js/routing/react';\nimport type { CanvasExtensionApi } from '../canvasExtension';\nimport { useOptionalViewRegistry } from '../viewRegistry';\nimport { worldPointAt } from './worldPointAt';\nimport { usePublishPointer } from '../../input/usePublishPointer';\n\n/** Mount a `<PointerContextProvider>` only when none is already in scope. */\nexport function PointerProviderIfRoot({ children }: { children: ReactNode }) {\n const parent = usePointerContext();\n if (parent) return <>{children}</>;\n return <PointerContextProvider>{children}</PointerContextProvider>;\n}\n\n/**\n * Publishes the canvas's pointer into the surrounding `<PointerContextProvider>`\n * through {@link usePublishPointer}, placing it with the surface's view\n * resolver so paste-at-pointer lands in the panel the cursor is over. With no\n * views declared it answers the canvas's own camera and rect.\n */\nexport function usePointerPublisher(\n canvasRef: MutableRefObject<HTMLElement | null>,\n canvasApiRef: RefObject<CanvasExtensionApi | null>,\n): void {\n const registry = useOptionalViewRegistry();\n usePublishPointer(canvasRef, (pointerId, clientX, clientY) => {\n const api = canvasApiRef.current;\n if (!api) return null;\n const target = registry?.resolver.at(pointerId, clientX, clientY);\n const [x, y] = worldPointAt(api, target, clientX, clientY);\n return { world: { x, y }, viewId: target?.id ?? null };\n });\n}\n"],"mappings":";;;;;;;;AAgBA,SAAgB,sBAAsB,EAAE,YAAqC;CAE3E,IADe,kBACX,GAAQ,OAAO,oBAAAA,UAAA,EAAG,SAAW,CAAA;CACjC,OAAO,oBAAC,wBAAD,EAAyB,SAAiC,CAAA;AACnE;;;;;;;AAQA,SAAgB,oBACd,WACA,cACM;CACN,MAAM,WAAW,wBAAwB;CACzC,kBAAkB,YAAY,WAAW,SAAS,YAAY;EAC5D,MAAM,MAAM,aAAa;EACzB,IAAI,CAAC,KAAK,OAAO;EACjB,MAAM,SAAS,UAAU,SAAS,GAAG,WAAW,SAAS,OAAO;EAChE,MAAM,CAAC,GAAG,KAAK,aAAa,KAAK,QAAQ,SAAS,OAAO;EACzD,OAAO;GAAE,OAAO;IAAE;IAAG;GAAE;GAAG,QAAQ,QAAQ,MAAM;EAAK;CACvD,CAAC;AACH"}
@@ -1,11 +1,11 @@
1
- import { useDeviceProfile } from "../../core/device/useDeviceProfile.js";
2
- import { dlog } from "../../debug/flag.js";
3
- import { usePointerPublisher } from "./PointerProviderIfRoot.js";
4
1
  import { SnapSourceRegistryContext } from "../../domains/snap/registry.js";
2
+ import { dlog } from "../../debug/flag.js";
3
+ import { useDeviceProfile } from "../../core/device/useDeviceProfile.js";
5
4
  import { useTestHook } from "../../test-hook/useTestHook.js";
6
5
  import { useModeDefaultToolDepSource } from "../deps/modeDefaultTool.js";
7
6
  import { useHitObserver } from "../useHitObserver.js";
8
7
  import { GeometryProjectionRegistrar, ResizePolicyRegistrar } from "./poseRegistrars.js";
8
+ import { usePointerPublisher } from "./PointerProviderIfRoot.js";
9
9
  import { useSceneGestureDispatcher } from "./useSceneGestureDispatcher.js";
10
10
  import { useCanvasDevtoolsRoot } from "./useCanvasDevtoolsRoot.js";
11
11
  import { useSceneStandardActions } from "./useSceneStandardActions.js";
@@ -15,7 +15,7 @@ import { useLatest } from "@weasel-js/react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
16
  import { useDepSource } from "@weasel-js/routing/react";
17
17
 
18
- //#region src/canvas/SceneCanvas/SceneCanvasInput.tsx
18
+ // src/canvas/SceneCanvas/SceneCanvasInput.tsx
19
19
  /**
20
20
  * The canvas's input wiring: the pointer publisher, the standard actions and their deps, the
21
21
  * gesture dispatcher, and the tool keybindings, in that order, then the test hook.
@@ -127,6 +127,5 @@ function SceneCanvasInput(p) {
127
127
  return /* @__PURE__ */ jsxs(Fragment, { children: [selectTool?.resize ? /* @__PURE__ */ jsx(ResizePolicyRegistrar, { options: selectTool.resize }) : null, props.geometryProjection ? /* @__PURE__ */ jsx(GeometryProjectionRegistrar, { projection: props.geometryProjection }) : null] });
128
128
  }
129
129
 
130
- //#endregion
131
130
  export { SceneCanvasInput };
132
131
  //# sourceMappingURL=SceneCanvasInput.js.map
@@ -2,7 +2,7 @@ import { CanvasView } from "../CanvasView.js";
2
2
  import { ViewMarker } from "../ViewMarker.js";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
 
5
- //#region src/canvas/SceneCanvas/SurfaceDeclarations.tsx
5
+ // src/canvas/SceneCanvas/SurfaceDeclarations.tsx
6
6
  /** The views and markers a `<SceneCanvas>` declares on its surface: its
7
7
  * `views` prop, its contributions' views, views added through the handle,
8
8
  * then its contributions' markers. */
@@ -18,6 +18,5 @@ function SurfaceDeclarations({ views, entries, added }) {
18
18
  ] });
19
19
  }
20
20
 
21
- //#endregion
22
21
  export { SurfaceDeclarations };
23
22
  //# sourceMappingURL=SurfaceDeclarations.js.map
@@ -1,6 +1,6 @@
1
1
  import { circlePath, polylineFromPoints } from "@weasel-js/geom";
2
2
 
3
- //#region src/canvas/SceneCanvas/brushOverlay.ts
3
+ // src/canvas/SceneCanvas/brushOverlay.ts
4
4
  /**
5
5
  * A `brush` overlay as screen-space commands: the area swept so far, and the
6
6
  * brush's rim where it is now. `points` are already on screen.
@@ -31,6 +31,5 @@ function brushOverlayCommands(points, radiusPx, style) {
31
31
  }];
32
32
  }
33
33
 
34
- //#endregion
35
34
  export { brushOverlayCommands };
36
35
  //# sourceMappingURL=brushOverlay.js.map
@@ -1,7 +1,7 @@
1
1
  import { KIT_SHAPE_KINDS, kitShapeKindsOf } from "../../core/shapeKinds.js";
2
2
  import { toolIdsOf, toolSet } from "@weasel-js/routing";
3
3
 
4
- //#region src/canvas/SceneCanvas/builtinToolSets.ts
4
+ // src/canvas/SceneCanvas/builtinToolSets.ts
5
5
  /** The selection tools: click and marquee, and the lasso. */
6
6
  var SELECT_TOOLS = toolSet("select", ["select", ...kitShapeKindsOf("select")]);
7
7
  /** Path edit's anchor editing. Path-edit tools of other packages join this group. */
@@ -36,6 +36,5 @@ var BUILTIN_TOOLS = toolSet("builtin", [...BUILTIN_TOOL_GROUPS, ...KIT_SHAPE_KIN
36
36
  * tools within each group by it. */
37
37
  var BUILTIN_TOOL_IDS = toolIdsOf([BUILTIN_TOOLS]);
38
38
 
39
- //#endregion
40
39
  export { ANCHOR_TOOLS, BUILTIN_TOOLS, BUILTIN_TOOL_GROUPS, BUILTIN_TOOL_IDS, DRAW_TOOLS, PAGE_TOOLS, SELECT_TOOLS, SHAPE_TOOLS, TOOL_GROUP_ORDER, TYPE_TOOLS, VIEW_TOOLS };
41
40
  //# sourceMappingURL=builtinToolSets.js.map
@@ -1,4 +1,4 @@
1
- //#region src/canvas/SceneCanvas/canvasPassThrough.ts
1
+ // src/canvas/SceneCanvas/canvasPassThrough.ts
2
2
  /** Every prop `<SceneCanvas>` reads itself instead of handing to `<Canvas>`. */
3
3
  var OWN_PROPS = [
4
4
  "scene",
@@ -70,6 +70,5 @@ function canvasPassThrough(props) {
70
70
  return rest;
71
71
  }
72
72
 
73
- //#endregion
74
73
  export { canvasPassThrough };
75
74
  //# sourceMappingURL=canvasPassThrough.js.map
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useRef } from "react";
2
2
  import { useLatest } from "@weasel-js/react";
3
3
 
4
- //#region src/canvas/SceneCanvas/contributionFrameHooks.ts
4
+ // src/canvas/SceneCanvas/contributionFrameHooks.ts
5
5
  /**
6
6
  * Runs contributions' `beforePaint` / `afterPaint` on the surface's own frame
7
7
  * loop. One subscription per phase serves every entry, and only while some
@@ -59,6 +59,5 @@ function useContributionFrameHooks(entries, api, deps) {
59
59
  ]);
60
60
  }
61
61
 
62
- //#endregion
63
62
  export { runContributionFrameHooks, useContributionFrameHooks };
64
63
  //# sourceMappingURL=contributionFrameHooks.js.map
@@ -1,4 +1,4 @@
1
- //#region src/canvas/SceneCanvas/coordTrace.ts
1
+ // src/canvas/SceneCanvas/coordTrace.ts
2
2
  /** Record one conversion against the rect and view it was made under. A null
3
3
  * `canvas` or a missing `view` records the identity fallback. */
4
4
  function traceConversion(ring, clientX, clientY, canvas, view, world) {
@@ -37,6 +37,5 @@ function traceConversion(ring, clientX, clientY, canvas, view, world) {
37
37
  });
38
38
  }
39
39
 
40
- //#endregion
41
40
  export { traceConversion };
42
41
  //# sourceMappingURL=coordTrace.js.map
@@ -1,7 +1,7 @@
1
- import { minSizeOf } from "../../core/scene/minSize.js";
1
+ import { inferredNodeRouting } from "./defaultNodeRouting.js";
2
2
  import { KIT_SHAPE_KINDS, shapeKindInfo } from "../../core/shapeKinds.js";
3
+ import { minSizeOf } from "../../core/scene/minSize.js";
3
4
  import { settleShapeGenerator } from "../../domains/paths/shapeGenerator.js";
4
- import { inferredNodeRouting } from "./defaultNodeRouting.js";
5
5
  import { SHAPE_GENERATOR_SECTIONS } from "./shapeGeneratorProperties.js";
6
6
  import { poseLinearOf } from "@weasel-js/geom";
7
7
  import { dashForStrokeStyle, strokeDashStyleOf } from "@weasel-js/paint";
@@ -9,7 +9,7 @@ import { listMarkers, markerGeneration } from "@weasel-js/stroke";
9
9
  import { prefUnit } from "@weasel-js/prefs";
10
10
  import { ANGLE_RADIANS, decimal } from "@weasel-js/quantity";
11
11
 
12
- //#region src/canvas/SceneCanvas/defaultNodeProperties.ts
12
+ // src/canvas/SceneCanvas/defaultNodeProperties.ts
13
13
  /** Radians-stored / degrees-shown conversion for `pose.rotation` leaves.
14
14
  * Display rounds to 0.1° so a canonical radian value doesn't render as
15
15
  * a 15-digit float. */
@@ -867,6 +867,5 @@ var defaultNodeProperties = KIT_SHAPE_KINDS.map(shapeEntry);
867
867
  */
868
868
  var inferredNodeProperties = inferredNodeRouting.map((e) => shapeEntry(e.name));
869
869
 
870
- //#endregion
871
870
  export { defaultNodeProperties, inferredNodeProperties, rotationDegreesUnit };
872
871
  //# sourceMappingURL=defaultNodeProperties.js.map
@@ -1,7 +1,7 @@
1
1
  import { KIT_SHAPE_KINDS } from "../../core/shapeKinds.js";
2
2
  import { isTextData } from "@weasel-js/text";
3
3
 
4
- //#region src/canvas/SceneCanvas/defaultNodeRouting.ts
4
+ // src/canvas/SceneCanvas/defaultNodeRouting.ts
5
5
  function isObj(d) {
6
6
  return typeof d === "object" && d !== null;
7
7
  }
@@ -54,6 +54,5 @@ var inferredNodeRouting = [
54
54
  }
55
55
  ];
56
56
 
57
- //#endregion
58
57
  export { booleanGroupRouting, defaultNodeRouting, groupNodeRouting, inferredNodeRouting };
59
58
  //# sourceMappingURL=defaultNodeRouting.js.map
@@ -1,13 +1,13 @@
1
+ import { useSceneTextEditor } from "../../domains/text/useSceneTextEdit.js";
2
+ import { hostTextEditorHolds } from "../../domains/text/hostTextEditors.js";
3
+ import { drawOneEditing } from "../../domains/text/editingDrawOne.js";
1
4
  import { defaultDrawOne, defaultPaintBounds, paintBoundsFor } from "../defaultDrawOne.js";
2
5
  import { isCustomEntry } from "../layerSlots.js";
3
- import { drawOneEditing } from "../../domains/text/editingDrawOne.js";
4
- import { hostTextEditorHolds } from "../../domains/text/hostTextEditors.js";
5
- import { useSceneTextEditor } from "../../domains/text/useSceneTextEdit.js";
6
6
  import { useEffect, useLayoutEffect, useMemo, useState } from "react";
7
7
  import { useLatest } from "@weasel-js/react";
8
8
  import { useDepRegistry, useDepSource } from "@weasel-js/routing/react";
9
9
 
10
- //#region src/canvas/SceneCanvas/defaultTextEditor.tsx
10
+ // src/canvas/SceneCanvas/defaultTextEditor.tsx
11
11
  /**
12
12
  * `<SceneCanvas>`'s own text editor: the one a text or sticky tool's
13
13
  * `enterTextEdit` reaches, and a double-click on a text node opens, when the
@@ -103,6 +103,5 @@ function layersWhileEditing(layers, editingId) {
103
103
  };
104
104
  }
105
105
 
106
- //#endregion
107
106
  export { DefaultTextEditDep, layersWhileEditing, useCanvasTextEditor, useDefaultTextEditor };
108
107
  //# sourceMappingURL=defaultTextEditor.js.map
@@ -1,6 +1,6 @@
1
1
  import { namesBuiltins, presetToolIds } from "./features.js";
2
2
 
3
- //#region src/canvas/SceneCanvas/describePresets.ts
3
+ // src/canvas/SceneCanvas/describePresets.ts
4
4
  var ATOM_ROLES = [
5
5
  "ambient",
6
6
  "moveBehaviors",
@@ -42,6 +42,5 @@ function describePresets(sources) {
42
42
  return out;
43
43
  }
44
44
 
45
- //#endregion
46
45
  export { describePresets, isAtom };
47
46
  //# sourceMappingURL=describePresets.js.map
@@ -1,7 +1,7 @@
1
1
  import { insertPreviewExtent } from "../insertPreviewExtent.js";
2
2
  import { overlaysOf } from "@weasel-js/routing";
3
3
 
4
- //#region src/canvas/SceneCanvas/dispatcherGestureBounds.ts
4
+ // src/canvas/SceneCanvas/dispatcherGestureBounds.ts
5
5
  /**
6
6
  * The dispatcher side of `<Canvas>`'s {@link GestureSource} seam: `<Canvas>`
7
7
  * knows nothing about the gesture dispatcher, so `<SceneCanvas>` wires its
@@ -100,6 +100,5 @@ function createDispatcherPreviewSources(getDispatcher) {
100
100
  };
101
101
  }
102
102
 
103
- //#endregion
104
103
  export { createDispatcherPreviewSources, createGestureSource, dispatcherGestureIds, dispatcherInsertBounds };
105
104
  //# sourceMappingURL=dispatcherGestureBounds.js.map