@sophistry/core 0.0.1 → 0.1.0

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 (380) hide show
  1. package/dist/anim/animation.d.ts +1 -2
  2. package/dist/anim/draw.d.ts +2 -3
  3. package/dist/anim/emphasis.d.ts +2 -3
  4. package/dist/anim/fade.d.ts +3 -4
  5. package/dist/anim/growing.d.ts +3 -4
  6. package/dist/anim/index.d.ts +32 -33
  7. package/dist/anim/indication.d.ts +3 -4
  8. package/dist/anim/move.d.ts +4 -5
  9. package/dist/anim/movement.d.ts +4 -5
  10. package/dist/anim/points.d.ts +1 -2
  11. package/dist/anim/sequence.d.ts +1 -2
  12. package/dist/anim/slots.d.ts +4 -5
  13. package/dist/anim/speed.d.ts +1 -2
  14. package/dist/anim/spring.d.ts +6 -7
  15. package/dist/anim/timeline.d.ts +4 -5
  16. package/dist/anim/transform.d.ts +4 -5
  17. package/dist/anim/tween.d.ts +3 -4
  18. package/dist/anim/types.d.ts +3 -4
  19. package/dist/color/convert.d.ts +1 -2
  20. package/dist/color/index.d.ts +8 -9
  21. package/dist/color/named.d.ts +0 -1
  22. package/dist/color/ops.d.ts +2 -3
  23. package/dist/color/parse.d.ts +1 -2
  24. package/dist/color/random.d.ts +1 -2
  25. package/dist/color/types.d.ts +0 -1
  26. package/dist/coords/axes.d.ts +8 -9
  27. package/dist/coords/axis-composition.d.ts +2 -3
  28. package/dist/coords/axis-labels.d.ts +6 -7
  29. package/dist/coords/complex-plane.d.ts +8 -9
  30. package/dist/coords/coords.d.ts +3 -4
  31. package/dist/coords/function-graph.d.ts +6 -7
  32. package/dist/coords/graph-annotations.d.ts +11 -12
  33. package/dist/coords/grid-lines.d.ts +6 -7
  34. package/dist/coords/implicit-function.d.ts +3 -4
  35. package/dist/coords/index.d.ts +24 -25
  36. package/dist/coords/linear-transform.d.ts +6 -7
  37. package/dist/coords/number-line.d.ts +7 -8
  38. package/dist/coords/number-plane.d.ts +7 -8
  39. package/dist/coords/polar-plane.d.ts +6 -7
  40. package/dist/coords/tangent.d.ts +3 -4
  41. package/dist/coords/vector-field.d.ts +8 -9
  42. package/dist/entries/color.d.ts +12 -13
  43. package/dist/entries/definitions.d.ts +2 -3
  44. package/dist/entries/geometry.d.ts +42 -43
  45. package/dist/entries/internal.d.ts +45 -46
  46. package/dist/entries/internal.js +1 -1
  47. package/dist/entries/themes.d.ts +14 -15
  48. package/dist/export/frames.d.ts +3 -4
  49. package/dist/export/index.d.ts +1 -2
  50. package/dist/geometry/arc.d.ts +1 -2
  51. package/dist/geometry/band.d.ts +1 -2
  52. package/dist/geometry/bounds.d.ts +3 -4
  53. package/dist/geometry/brace.d.ts +1 -2
  54. package/dist/geometry/complex.d.ts +0 -1
  55. package/dist/geometry/curves.d.ts +1 -2
  56. package/dist/geometry/delaunay.d.ts +0 -1
  57. package/dist/geometry/field.d.ts +1 -2
  58. package/dist/geometry/graph-layout.d.ts +1 -2
  59. package/dist/geometry/implicit.d.ts +1 -2
  60. package/dist/geometry/index.d.ts +41 -42
  61. package/dist/geometry/lerp.d.ts +2 -3
  62. package/dist/geometry/morph.d.ts +2 -3
  63. package/dist/geometry/num.d.ts +1 -2
  64. package/dist/geometry/path/arclength.d.ts +1 -2
  65. package/dist/geometry/path/cubic.d.ts +1 -2
  66. package/dist/geometry/path/outline-reveal.d.ts +2 -3
  67. package/dist/geometry/path/svg-path.d.ts +1 -2
  68. package/dist/geometry/path/types.d.ts +0 -1
  69. package/dist/geometry/resolver.d.ts +0 -1
  70. package/dist/geometry/scale/range-transition.d.ts +1 -2
  71. package/dist/geometry/scale/scales.d.ts +2 -3
  72. package/dist/geometry/scale/tick-format.d.ts +2 -3
  73. package/dist/geometry/scale/ticks.d.ts +1 -2
  74. package/dist/geometry/shape-match.d.ts +1 -2
  75. package/dist/geometry/shapes.d.ts +1 -2
  76. package/dist/geometry/stitch.d.ts +0 -1
  77. package/dist/geometry/time.d.ts +0 -1
  78. package/dist/geometry/tips.d.ts +1 -2
  79. package/dist/geometry/transform.d.ts +1 -2
  80. package/dist/geometry/view-matrix.d.ts +2 -3
  81. package/dist/geometry/write-phase.d.ts +0 -1
  82. package/dist/geometry3d/camera.d.ts +1 -2
  83. package/dist/geometry3d/index.d.ts +4 -5
  84. package/dist/geometry3d/mat.d.ts +0 -3
  85. package/dist/index.d.ts +34 -35
  86. package/dist/interact/constrain.d.ts +3 -4
  87. package/dist/interact/drag.d.ts +5 -6
  88. package/dist/interact/drop.d.ts +1 -2
  89. package/dist/interact/hit.d.ts +4 -5
  90. package/dist/interact/index.d.ts +11 -12
  91. package/dist/interact/item-order.d.ts +3 -4
  92. package/dist/interact/param.d.ts +3 -4
  93. package/dist/interact/pick-items.d.ts +2 -3
  94. package/dist/interact/pointer.d.ts +2 -3
  95. package/dist/interact/registry.d.ts +2 -3
  96. package/dist/interact/slop.d.ts +0 -1
  97. package/dist/interact/types.d.ts +4 -5
  98. package/dist/labels/decimal-number.d.ts +6 -7
  99. package/dist/labels/digits.d.ts +1 -2
  100. package/dist/labels/index.d.ts +4 -5
  101. package/dist/labels/paragraph.d.ts +8 -9
  102. package/dist/labels/text-layout.d.ts +4 -5
  103. package/dist/network/index.d.ts +2 -3
  104. package/dist/network/network-graph.d.ts +7 -8
  105. package/dist/reactive/index.d.ts +2 -3
  106. package/dist/reactive/track.d.ts +0 -1
  107. package/dist/render/a11y.d.ts +6 -7
  108. package/dist/render/camera-gesture.d.ts +1 -2
  109. package/dist/render/camera.d.ts +3 -4
  110. package/dist/render/canvas-renderer.d.ts +7 -8
  111. package/dist/render/index.d.ts +8 -9
  112. package/dist/render/layer-cache.d.ts +2 -3
  113. package/dist/render/paint-items.d.ts +5 -6
  114. package/dist/render/paint.d.ts +4 -5
  115. package/dist/render/pointer-core.d.ts +5 -6
  116. package/dist/render/pointer-drop.d.ts +3 -4
  117. package/dist/render/pointer-gestures.d.ts +5 -6
  118. package/dist/render/pointer-presence.d.ts +3 -4
  119. package/dist/render/pointer-wheel.d.ts +3 -4
  120. package/dist/render/pointer.d.ts +8 -9
  121. package/dist/scene/cameras.d.ts +5 -6
  122. package/dist/scene/composite.d.ts +5 -6
  123. package/dist/scene/container.d.ts +4 -5
  124. package/dist/scene/context.d.ts +6 -7
  125. package/dist/scene/fonts.d.ts +3 -4
  126. package/dist/scene/graph.d.ts +4 -5
  127. package/dist/scene/group.d.ts +6 -7
  128. package/dist/scene/index.d.ts +21 -22
  129. package/dist/scene/instance-bank.d.ts +3 -4
  130. package/dist/scene/instance-marks.d.ts +5 -6
  131. package/dist/scene/instance-node.d.ts +7 -8
  132. package/dist/scene/instances.d.ts +5 -6
  133. package/dist/scene/interaction-group-context.d.ts +2 -3
  134. package/dist/scene/interaction-group.d.ts +3 -4
  135. package/dist/scene/interaction-props.d.ts +2 -3
  136. package/dist/scene/interaction.d.ts +2 -3
  137. package/dist/scene/marks.d.ts +7 -8
  138. package/dist/scene/node.d.ts +8 -9
  139. package/dist/scene/pan-zoom.d.ts +4 -5
  140. package/dist/scene/path-batch.d.ts +4 -5
  141. package/dist/scene/primitive.d.ts +5 -6
  142. package/dist/scene/scene.d.ts +20 -21
  143. package/dist/scene/shape.d.ts +10 -11
  144. package/dist/scene/text.d.ts +10 -11
  145. package/dist/scene/types.d.ts +5 -6
  146. package/dist/shapes/angle.d.ts +5 -6
  147. package/dist/shapes/animated-boundary.d.ts +5 -6
  148. package/dist/shapes/arc.d.ts +7 -8
  149. package/dist/shapes/bezier.d.ts +4 -5
  150. package/dist/shapes/brace.d.ts +4 -5
  151. package/dist/shapes/circle.d.ts +4 -5
  152. package/dist/shapes/dot.d.ts +6 -7
  153. package/dist/shapes/forward.d.ts +3 -4
  154. package/dist/shapes/index.d.ts +30 -31
  155. package/dist/shapes/line.d.ts +12 -13
  156. package/dist/shapes/matchers.d.ts +4 -5
  157. package/dist/shapes/path.d.ts +4 -5
  158. package/dist/shapes/polygon.d.ts +3 -4
  159. package/dist/shapes/polygram.d.ts +5 -6
  160. package/dist/shapes/rect.d.ts +4 -5
  161. package/dist/shapes/traced-path.d.ts +6 -7
  162. package/dist/shapes/transform-matching-shapes.d.ts +4 -5
  163. package/dist/spec/bake.d.ts +6 -7
  164. package/dist/spec/clip.d.ts +3 -4
  165. package/dist/spec/colorRampProp.d.ts +2 -3
  166. package/dist/spec/compile.d.ts +1 -2
  167. package/dist/spec/gradient.d.ts +3 -4
  168. package/dist/spec/index.d.ts +8 -9
  169. package/dist/spec/layout.d.ts +2 -3
  170. package/dist/spec/metrics.d.ts +2 -3
  171. package/dist/spec/types.d.ts +2 -3
  172. package/dist/themes/catppuccin.d.ts +1 -2
  173. package/dist/themes/colormap.d.ts +1 -2
  174. package/dist/themes/css.d.ts +1 -2
  175. package/dist/themes/index.d.ts +13 -14
  176. package/dist/themes/mode.d.ts +2 -3
  177. package/dist/themes/palette.d.ts +1 -2
  178. package/dist/themes/ramp.d.ts +1 -2
  179. package/dist/themes/theme.d.ts +1 -2
  180. package/dist/themes/types.d.ts +1 -2
  181. package/dist/tween/clock.d.ts +2 -3
  182. package/dist/tween/easing.d.ts +0 -1
  183. package/dist/tween/frame-loop.d.ts +1 -2
  184. package/dist/tween/index.d.ts +19 -20
  185. package/dist/tween/interpolate.d.ts +1 -2
  186. package/dist/tween/interpolators.d.ts +5 -6
  187. package/dist/tween/reduced-motion.d.ts +1 -2
  188. package/dist/tween/spring.d.ts +1 -2
  189. package/dist/tween/target.d.ts +0 -1
  190. package/dist/tween/track.d.ts +2 -3
  191. package/package.json +2 -2
  192. package/dist/anim/animation.d.ts.map +0 -1
  193. package/dist/anim/draw.d.ts.map +0 -1
  194. package/dist/anim/emphasis.d.ts.map +0 -1
  195. package/dist/anim/fade.d.ts.map +0 -1
  196. package/dist/anim/growing.d.ts.map +0 -1
  197. package/dist/anim/index.d.ts.map +0 -1
  198. package/dist/anim/indication.d.ts.map +0 -1
  199. package/dist/anim/move.d.ts.map +0 -1
  200. package/dist/anim/movement.d.ts.map +0 -1
  201. package/dist/anim/points.d.ts.map +0 -1
  202. package/dist/anim/sequence.d.ts.map +0 -1
  203. package/dist/anim/slots.d.ts.map +0 -1
  204. package/dist/anim/speed.d.ts.map +0 -1
  205. package/dist/anim/spring.d.ts.map +0 -1
  206. package/dist/anim/timeline.d.ts.map +0 -1
  207. package/dist/anim/transform.d.ts.map +0 -1
  208. package/dist/anim/tween.d.ts.map +0 -1
  209. package/dist/anim/types.d.ts.map +0 -1
  210. package/dist/color/convert.d.ts.map +0 -1
  211. package/dist/color/index.d.ts.map +0 -1
  212. package/dist/color/named.d.ts.map +0 -1
  213. package/dist/color/ops.d.ts.map +0 -1
  214. package/dist/color/parse.d.ts.map +0 -1
  215. package/dist/color/random.d.ts.map +0 -1
  216. package/dist/color/types.d.ts.map +0 -1
  217. package/dist/coords/axes.d.ts.map +0 -1
  218. package/dist/coords/axis-composition.d.ts.map +0 -1
  219. package/dist/coords/axis-labels.d.ts.map +0 -1
  220. package/dist/coords/complex-plane.d.ts.map +0 -1
  221. package/dist/coords/coords.d.ts.map +0 -1
  222. package/dist/coords/function-graph.d.ts.map +0 -1
  223. package/dist/coords/graph-annotations.d.ts.map +0 -1
  224. package/dist/coords/grid-lines.d.ts.map +0 -1
  225. package/dist/coords/implicit-function.d.ts.map +0 -1
  226. package/dist/coords/index.d.ts.map +0 -1
  227. package/dist/coords/linear-transform.d.ts.map +0 -1
  228. package/dist/coords/number-line.d.ts.map +0 -1
  229. package/dist/coords/number-plane.d.ts.map +0 -1
  230. package/dist/coords/polar-plane.d.ts.map +0 -1
  231. package/dist/coords/tangent.d.ts.map +0 -1
  232. package/dist/coords/vector-field.d.ts.map +0 -1
  233. package/dist/entries/color.d.ts.map +0 -1
  234. package/dist/entries/definitions.d.ts.map +0 -1
  235. package/dist/entries/geometry.d.ts.map +0 -1
  236. package/dist/entries/internal.d.ts.map +0 -1
  237. package/dist/entries/themes.d.ts.map +0 -1
  238. package/dist/export/frames.d.ts.map +0 -1
  239. package/dist/export/index.d.ts.map +0 -1
  240. package/dist/geometry/arc.d.ts.map +0 -1
  241. package/dist/geometry/band.d.ts.map +0 -1
  242. package/dist/geometry/bounds.d.ts.map +0 -1
  243. package/dist/geometry/brace.d.ts.map +0 -1
  244. package/dist/geometry/complex.d.ts.map +0 -1
  245. package/dist/geometry/curves.d.ts.map +0 -1
  246. package/dist/geometry/delaunay.d.ts.map +0 -1
  247. package/dist/geometry/field.d.ts.map +0 -1
  248. package/dist/geometry/graph-layout.d.ts.map +0 -1
  249. package/dist/geometry/implicit.d.ts.map +0 -1
  250. package/dist/geometry/index.d.ts.map +0 -1
  251. package/dist/geometry/lerp.d.ts.map +0 -1
  252. package/dist/geometry/morph.d.ts.map +0 -1
  253. package/dist/geometry/num.d.ts.map +0 -1
  254. package/dist/geometry/path/arclength.d.ts.map +0 -1
  255. package/dist/geometry/path/cubic.d.ts.map +0 -1
  256. package/dist/geometry/path/outline-reveal.d.ts.map +0 -1
  257. package/dist/geometry/path/svg-path.d.ts.map +0 -1
  258. package/dist/geometry/path/types.d.ts.map +0 -1
  259. package/dist/geometry/resolver.d.ts.map +0 -1
  260. package/dist/geometry/scale/range-transition.d.ts.map +0 -1
  261. package/dist/geometry/scale/scales.d.ts.map +0 -1
  262. package/dist/geometry/scale/tick-format.d.ts.map +0 -1
  263. package/dist/geometry/scale/ticks.d.ts.map +0 -1
  264. package/dist/geometry/shape-match.d.ts.map +0 -1
  265. package/dist/geometry/shapes.d.ts.map +0 -1
  266. package/dist/geometry/stitch.d.ts.map +0 -1
  267. package/dist/geometry/time.d.ts.map +0 -1
  268. package/dist/geometry/tips.d.ts.map +0 -1
  269. package/dist/geometry/transform.d.ts.map +0 -1
  270. package/dist/geometry/view-matrix.d.ts.map +0 -1
  271. package/dist/geometry/write-phase.d.ts.map +0 -1
  272. package/dist/geometry3d/camera.d.ts.map +0 -1
  273. package/dist/geometry3d/index.d.ts.map +0 -1
  274. package/dist/geometry3d/mat.d.ts.map +0 -1
  275. package/dist/index.d.ts.map +0 -1
  276. package/dist/interact/constrain.d.ts.map +0 -1
  277. package/dist/interact/drag.d.ts.map +0 -1
  278. package/dist/interact/drop.d.ts.map +0 -1
  279. package/dist/interact/hit.d.ts.map +0 -1
  280. package/dist/interact/index.d.ts.map +0 -1
  281. package/dist/interact/item-order.d.ts.map +0 -1
  282. package/dist/interact/param.d.ts.map +0 -1
  283. package/dist/interact/pick-items.d.ts.map +0 -1
  284. package/dist/interact/pointer.d.ts.map +0 -1
  285. package/dist/interact/registry.d.ts.map +0 -1
  286. package/dist/interact/slop.d.ts.map +0 -1
  287. package/dist/interact/types.d.ts.map +0 -1
  288. package/dist/labels/decimal-number.d.ts.map +0 -1
  289. package/dist/labels/digits.d.ts.map +0 -1
  290. package/dist/labels/index.d.ts.map +0 -1
  291. package/dist/labels/paragraph.d.ts.map +0 -1
  292. package/dist/labels/text-layout.d.ts.map +0 -1
  293. package/dist/network/index.d.ts.map +0 -1
  294. package/dist/network/network-graph.d.ts.map +0 -1
  295. package/dist/reactive/index.d.ts.map +0 -1
  296. package/dist/reactive/track.d.ts.map +0 -1
  297. package/dist/render/a11y.d.ts.map +0 -1
  298. package/dist/render/camera-gesture.d.ts.map +0 -1
  299. package/dist/render/camera.d.ts.map +0 -1
  300. package/dist/render/canvas-renderer.d.ts.map +0 -1
  301. package/dist/render/index.d.ts.map +0 -1
  302. package/dist/render/layer-cache.d.ts.map +0 -1
  303. package/dist/render/paint-items.d.ts.map +0 -1
  304. package/dist/render/paint.d.ts.map +0 -1
  305. package/dist/render/pointer-core.d.ts.map +0 -1
  306. package/dist/render/pointer-drop.d.ts.map +0 -1
  307. package/dist/render/pointer-gestures.d.ts.map +0 -1
  308. package/dist/render/pointer-presence.d.ts.map +0 -1
  309. package/dist/render/pointer-wheel.d.ts.map +0 -1
  310. package/dist/render/pointer.d.ts.map +0 -1
  311. package/dist/scene/cameras.d.ts.map +0 -1
  312. package/dist/scene/composite.d.ts.map +0 -1
  313. package/dist/scene/container.d.ts.map +0 -1
  314. package/dist/scene/context.d.ts.map +0 -1
  315. package/dist/scene/fonts.d.ts.map +0 -1
  316. package/dist/scene/graph.d.ts.map +0 -1
  317. package/dist/scene/group.d.ts.map +0 -1
  318. package/dist/scene/index.d.ts.map +0 -1
  319. package/dist/scene/instance-bank.d.ts.map +0 -1
  320. package/dist/scene/instance-marks.d.ts.map +0 -1
  321. package/dist/scene/instance-node.d.ts.map +0 -1
  322. package/dist/scene/instances.d.ts.map +0 -1
  323. package/dist/scene/interaction-group-context.d.ts.map +0 -1
  324. package/dist/scene/interaction-group.d.ts.map +0 -1
  325. package/dist/scene/interaction-props.d.ts.map +0 -1
  326. package/dist/scene/interaction.d.ts.map +0 -1
  327. package/dist/scene/marks.d.ts.map +0 -1
  328. package/dist/scene/node.d.ts.map +0 -1
  329. package/dist/scene/pan-zoom.d.ts.map +0 -1
  330. package/dist/scene/path-batch.d.ts.map +0 -1
  331. package/dist/scene/primitive.d.ts.map +0 -1
  332. package/dist/scene/scene.d.ts.map +0 -1
  333. package/dist/scene/shape.d.ts.map +0 -1
  334. package/dist/scene/text.d.ts.map +0 -1
  335. package/dist/scene/types.d.ts.map +0 -1
  336. package/dist/shapes/angle.d.ts.map +0 -1
  337. package/dist/shapes/animated-boundary.d.ts.map +0 -1
  338. package/dist/shapes/arc.d.ts.map +0 -1
  339. package/dist/shapes/bezier.d.ts.map +0 -1
  340. package/dist/shapes/brace.d.ts.map +0 -1
  341. package/dist/shapes/circle.d.ts.map +0 -1
  342. package/dist/shapes/dot.d.ts.map +0 -1
  343. package/dist/shapes/forward.d.ts.map +0 -1
  344. package/dist/shapes/index.d.ts.map +0 -1
  345. package/dist/shapes/line.d.ts.map +0 -1
  346. package/dist/shapes/matchers.d.ts.map +0 -1
  347. package/dist/shapes/path.d.ts.map +0 -1
  348. package/dist/shapes/polygon.d.ts.map +0 -1
  349. package/dist/shapes/polygram.d.ts.map +0 -1
  350. package/dist/shapes/rect.d.ts.map +0 -1
  351. package/dist/shapes/traced-path.d.ts.map +0 -1
  352. package/dist/shapes/transform-matching-shapes.d.ts.map +0 -1
  353. package/dist/spec/bake.d.ts.map +0 -1
  354. package/dist/spec/clip.d.ts.map +0 -1
  355. package/dist/spec/colorRampProp.d.ts.map +0 -1
  356. package/dist/spec/compile.d.ts.map +0 -1
  357. package/dist/spec/gradient.d.ts.map +0 -1
  358. package/dist/spec/index.d.ts.map +0 -1
  359. package/dist/spec/layout.d.ts.map +0 -1
  360. package/dist/spec/metrics.d.ts.map +0 -1
  361. package/dist/spec/types.d.ts.map +0 -1
  362. package/dist/themes/catppuccin.d.ts.map +0 -1
  363. package/dist/themes/colormap.d.ts.map +0 -1
  364. package/dist/themes/css.d.ts.map +0 -1
  365. package/dist/themes/index.d.ts.map +0 -1
  366. package/dist/themes/mode.d.ts.map +0 -1
  367. package/dist/themes/palette.d.ts.map +0 -1
  368. package/dist/themes/ramp.d.ts.map +0 -1
  369. package/dist/themes/theme.d.ts.map +0 -1
  370. package/dist/themes/types.d.ts.map +0 -1
  371. package/dist/tween/clock.d.ts.map +0 -1
  372. package/dist/tween/easing.d.ts.map +0 -1
  373. package/dist/tween/frame-loop.d.ts.map +0 -1
  374. package/dist/tween/index.d.ts.map +0 -1
  375. package/dist/tween/interpolate.d.ts.map +0 -1
  376. package/dist/tween/interpolators.d.ts.map +0 -1
  377. package/dist/tween/reduced-motion.d.ts.map +0 -1
  378. package/dist/tween/spring.d.ts.map +0 -1
  379. package/dist/tween/target.d.ts.map +0 -1
  380. package/dist/tween/track.d.ts.map +0 -1
@@ -5,7 +5,7 @@
5
5
  * Closed shapes repeat their first point at the end. That is load-bearing —
6
6
  * arc length has to measure the closing segment for a reveal to draw it.
7
7
  */
8
- import type { Point, Polyline } from "./path/types";
8
+ import type { Point, Polyline } from "./path/types.js";
9
9
  /**
10
10
  * Segment count for a curve of the given radius, at the given pixels-per-unit.
11
11
  * Aims for roughly one segment per 6 px of circumference, within 12 to 512.
@@ -161,4 +161,3 @@ export declare function arrowHeadAt(tip: Point, angle: number, length: number, s
161
161
  * @category Shapes
162
162
  */
163
163
  export declare function plotPolyline(f: (t: number) => Point, from: number, to: number, samples?: number): Polyline;
164
- //# sourceMappingURL=shapes.d.ts.map
@@ -38,4 +38,3 @@ export type StitchStart = "free-ends" | "in-order";
38
38
  * @returns The runs, every segment in exactly one.
39
39
  */
40
40
  export declare function stitchSegments<K>(pairs: readonly (readonly [K, K])[], start?: StitchStart): StitchedRun<K>[];
41
- //# sourceMappingURL=stitch.d.ts.map
@@ -173,4 +173,3 @@ export declare function toEpochMs(value: TimeValue, timeZone?: TimeZone): number
173
173
  * @internal
174
174
  */
175
175
  export declare function axisTimeZone(scale: "time" | "utc", timeZone: TimeZone | undefined): TimeZone;
176
- //# sourceMappingURL=time.d.ts.map
@@ -11,7 +11,7 @@
11
11
  * and the body extends *backwards* along `direction`. Callers can therefore
12
12
  * append a tip to a shaft without shortening the shaft.
13
13
  */
14
- import type { CurvePath, Point, Polyline } from "./path/types";
14
+ import type { CurvePath, Point, Polyline } from "./path/types.js";
15
15
  /**
16
16
  * Arrow tip styles. `"vee"` is two open strokes; the rest are closed and fillable.
17
17
  *
@@ -54,4 +54,3 @@ export declare function tipPolylines(shape: TipShape, tip: Point, direction: num
54
54
  * @category Shapes
55
55
  */
56
56
  export declare function tipIsClosed(shape: TipShape): boolean;
57
- //# sourceMappingURL=tips.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * Points are baked into pixel space before they reach a theme, so themes can
6
6
  * jitter and hatch in pixels without knowing anything about the camera.
7
7
  */
8
- import type { CurvePath, Point, Polyline } from "./path/types";
8
+ import type { CurvePath, Point, Polyline } from "./path/types.js";
9
9
  /**
10
10
  * Column-major affine matrix, matching the canvas `setTransform` argument order.
11
11
  *
@@ -243,4 +243,3 @@ export declare function applyToCurvePath(m: Matrix, path: CurvePath): CurvePath;
243
243
  * @category Transforms
244
244
  */
245
245
  export declare function scaleFactorOf(m: Matrix): number;
246
- //# sourceMappingURL=transform.d.ts.map
@@ -7,8 +7,8 @@
7
7
  * Pure matrix math, so it lives in `geometry/`: `scene/`'s `<SceneSpace>` and
8
8
  * `render/`'s `camera.ts` both need it, and `scene/` may not import `render/`.
9
9
  */
10
- import type { Point } from "./path/types";
11
- import type { Matrix } from "./transform";
10
+ import type { Point } from "./path/types.js";
11
+ import type { Matrix } from "./transform.js";
12
12
  /**
13
13
  * A rectangle of the canvas, in device pixels.
14
14
  *
@@ -57,4 +57,3 @@ export declare function viewMatrix(box: PixelBox, units: number, center: Point,
57
57
  * @category Renderer & paint
58
58
  */
59
59
  export declare function isYUp(view: Matrix): boolean;
60
- //# sourceMappingURL=view-matrix.d.ts.map
@@ -48,4 +48,3 @@ export declare function writeLagRatio(count: number): number;
48
48
  * @category Animation presets
49
49
  */
50
50
  export declare function writePhase(progress: number, index: number, count: number, lagRatio?: number): WritePhase;
51
- //# sourceMappingURL=write-phase.d.ts.map
@@ -3,7 +3,7 @@
3
3
  * focal length `f = height / (2 tan(fovY / 2))`. Results are in scene units, so
4
4
  * 3D content shares the 2D pipeline.
5
5
  */
6
- import type { Point3 } from "./mat";
6
+ import type { Point3 } from "./mat.js";
7
7
  /**
8
8
  * Everything a {@link Projection} needs to build its view matrix: where the
9
9
  * camera is, what it looks at, and which way is up. The coordinate system is
@@ -142,4 +142,3 @@ export declare class Projection {
142
142
  * @category Camera
143
143
  */
144
144
  export declare function createProjected(): Projected;
145
- //# sourceMappingURL=camera.d.ts.map
@@ -1,5 +1,4 @@
1
- export type { Camera3DState, Projected } from "./camera";
2
- export { createProjected, Projection } from "./camera";
3
- export type { Mat4, Point3, Scratch, Vec3 } from "./mat";
4
- export { createMat4, createScratch, createVec3, mat4, vec3 } from "./mat";
5
- //# sourceMappingURL=index.d.ts.map
1
+ export type { Camera3DState, Projected } from "./camera.js";
2
+ export { createProjected, Projection } from "./camera.js";
3
+ export type { Mat4, Point3, Scratch, Vec3 } from "./mat.js";
4
+ export { createMat4, createScratch, createVec3 } from "./mat.js";
@@ -8,7 +8,6 @@
8
8
  * `dst` rather than allocating, so a render loop that reuses its scratch state
9
9
  * across frames never allocates either.
10
10
  */
11
- import { mat4, vec3 } from "wgpu-matrix";
12
11
  /**
13
12
  * A 3-component `wgpu-matrix` vector (a `Float32Array`).
14
13
  *
@@ -69,5 +68,3 @@ export interface Scratch {
69
68
  * @category Math & helpers
70
69
  */
71
70
  export declare function createScratch(): Scratch;
72
- export { mat4, vec3 };
73
- //# sourceMappingURL=mat.d.ts.map
package/dist/index.d.ts CHANGED
@@ -5,38 +5,37 @@
5
5
  * @module @sophistry/core
6
6
  * @packageDocumentation
7
7
  */
8
- export * from "./anim";
9
- export * from "./coords";
10
- export * from "./entries/color";
11
- export type { Bounds, Matrix, Point, Range, RangeTransition, } from "./entries/geometry";
12
- export * from "./entries/themes";
13
- export * from "./export";
14
- export type { Point3 } from "./geometry3d";
15
- export type { BoundsSource, ClampOptions, ConstraintName, ConstraintSpec, DragConstraint, DragContext, SnapOptions, ValueSource, } from "./interact/constrain";
16
- export { alongDirection, alongPath, axisX, axisY, chain, constraints, free, inFrame, onCircle, snapTo, snapToGrid, toBounds, } from "./interact/constrain";
17
- export type { DraggableProps, DragOptions, DragParam, FlagSource, } from "./interact/drag";
18
- export { draggable } from "./interact/drag";
19
- export type { DropOptions, DropTargetProps } from "./interact/drop";
20
- export { dropTarget } from "./interact/drop";
21
- export type { AngleParamOptions, LineSource, ScalarParamOptions, } from "./interact/param";
22
- export { angleParam, pathParam, pointParam, scalarParam, } from "./interact/param";
23
- export type { PointerChannel, ScenePointer } from "./interact/pointer";
24
- export { createPointerChannel } from "./interact/pointer";
25
- export type { FocusChannel, FocusSource } from "./interact/registry";
26
- export type { DragBehaviour, DropTarget, HitArea, InteractionHandlers, InteractionProps, KeyboardBehaviour, PointerEvents, SceneNodeWheelEvent, ScenePointerEvent, Sink, } from "./interact/types";
27
- export * from "./labels";
28
- export * from "./network";
29
- export * from "./reactive";
30
- export type { CameraView, PipCorner, Viewport } from "./render/camera";
31
- export { FULL_VIEWPORT, pictureInPictureViewports, quadViewports, splitViewports, } from "./render/camera";
32
- export type { PointerDriver } from "./render/pointer";
33
- export * from "./scene";
34
- export * from "./shapes";
35
- export type { ShapeGeometry, ShapeWrite } from "./spec/bake";
36
- export type { ClipShape } from "./spec/clip";
37
- export type { ColorRampSpec } from "./spec/colorRampProp";
38
- export * from "./spec/gradient";
39
- export * from "./spec/layout";
40
- export type { ImagePixels } from "./spec/types";
41
- export * from "./tween";
42
- //# sourceMappingURL=index.d.ts.map
8
+ export * from "./anim/index.js";
9
+ export * from "./coords/index.js";
10
+ export * from "./entries/color.js";
11
+ export type { Bounds, Matrix, Point, Range, RangeTransition, } from "./entries/geometry.js";
12
+ export * from "./entries/themes.js";
13
+ export * from "./export/index.js";
14
+ export type { Point3 } from "./geometry3d/index.js";
15
+ export type { BoundsSource, ClampOptions, ConstraintName, ConstraintSpec, DragConstraint, DragContext, SnapOptions, ValueSource, } from "./interact/constrain.js";
16
+ export { alongDirection, alongPath, axisX, axisY, chain, constraints, free, inFrame, onCircle, snapTo, snapToGrid, toBounds, } from "./interact/constrain.js";
17
+ export type { DraggableProps, DragOptions, DragParam, FlagSource, } from "./interact/drag.js";
18
+ export { draggable } from "./interact/drag.js";
19
+ export type { DropOptions, DropTargetProps } from "./interact/drop.js";
20
+ export { dropTarget } from "./interact/drop.js";
21
+ export type { AngleParamOptions, LineSource, ScalarParamOptions, } from "./interact/param.js";
22
+ export { angleParam, pathParam, pointParam, scalarParam, } from "./interact/param.js";
23
+ export type { PointerChannel, ScenePointer } from "./interact/pointer.js";
24
+ export { createPointerChannel } from "./interact/pointer.js";
25
+ export type { FocusChannel, FocusSource } from "./interact/registry.js";
26
+ export type { DragBehaviour, DropTarget, HitArea, InteractionHandlers, InteractionProps, KeyboardBehaviour, PointerEvents, SceneNodeWheelEvent, ScenePointerEvent, Sink, } from "./interact/types.js";
27
+ export * from "./labels/index.js";
28
+ export * from "./network/index.js";
29
+ export * from "./reactive/index.js";
30
+ export type { CameraView, PipCorner, Viewport } from "./render/camera.js";
31
+ export { FULL_VIEWPORT, pictureInPictureViewports, quadViewports, splitViewports, } from "./render/camera.js";
32
+ export type { PointerDriver } from "./render/pointer.js";
33
+ export * from "./scene/index.js";
34
+ export * from "./shapes/index.js";
35
+ export type { ShapeGeometry, ShapeWrite } from "./spec/bake.js";
36
+ export type { ClipShape } from "./spec/clip.js";
37
+ export type { ColorRampSpec } from "./spec/colorRampProp.js";
38
+ export * from "./spec/gradient.js";
39
+ export * from "./spec/layout.js";
40
+ export type { ImagePixels } from "./spec/types.js";
41
+ export * from "./tween/index.js";
@@ -4,9 +4,9 @@
4
4
  * `alongPath` is a closest-point search plus an arc-length lookup
5
5
  * (`geometry/path/`).
6
6
  */
7
- import type { ArcTable, Bounds, Point, Polyline } from "../geometry";
8
- import type { Readable } from "../reactive";
9
- import type { ScenePointerEvent } from "./types";
7
+ import type { ArcTable, Bounds, Point, Polyline } from "../geometry/index.js";
8
+ import type { Readable } from "../reactive/index.js";
9
+ import type { ScenePointerEvent } from "./types.js";
10
10
  /**
11
11
  * Where a gesture is, and where it began, in the units the projection works in.
12
12
  *
@@ -268,4 +268,3 @@ export declare const constraints: Readonly<{
268
268
  * @category Interaction plumbing
269
269
  */
270
270
  export declare function resolveConstraint(spec: ConstraintSpec | ConstraintSpec[] | undefined): DragConstraint | null;
271
- //# sourceMappingURL=constrain.d.ts.map
@@ -8,11 +8,11 @@
8
8
  * and a cancel restores exactly. The arithmetic is in `event.local`, the node's
9
9
  * own units, so dragging inside a rotated group tracks the pointer exactly.
10
10
  */
11
- import type { Point } from "../geometry";
12
- import type { Readable } from "../reactive";
13
- import type { Animatable } from "../tween/target";
14
- import type { ConstraintSpec, DragContext } from "./constrain";
15
- import type { DragBehaviour, KeyboardBehaviour, PointerEvents, ScenePointerEvent } from "./types";
11
+ import type { Point } from "../geometry/index.js";
12
+ import type { Readable } from "../reactive/index.js";
13
+ import type { Animatable } from "../tween/target.js";
14
+ import type { ConstraintSpec, DragContext } from "./constrain.js";
15
+ import type { DragBehaviour, KeyboardBehaviour, PointerEvents, ScenePointerEvent } from "./types.js";
16
16
  /**
17
17
  * The projection a drag is parameterised on: pointer → value, value → point.
18
18
  *
@@ -157,4 +157,3 @@ export interface DraggableProps {
157
157
  * @category Interaction
158
158
  */
159
159
  export declare function draggable<T = Point>(cell: Animatable<T>, options?: DragOptions<T>): DraggableProps;
160
- //# sourceMappingURL=drag.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * watches that answer. It is one prop bag (`{ drop }`) because enter, leave, drop
5
5
  * and the `over` track only make sense together.
6
6
  */
7
- import type { DropTarget, PointerEvents, ScenePointerEvent, Sink } from "./types";
7
+ import type { DropTarget, PointerEvents, ScenePointerEvent, Sink } from "./types.js";
8
8
  /** @category Interaction */
9
9
  export interface DropOptions {
10
10
  /**
@@ -69,4 +69,3 @@ export interface DropTargetProps {
69
69
  * @category Interaction
70
70
  */
71
71
  export declare function dropTarget(options?: DropOptions): DropTargetProps;
72
- //# sourceMappingURL=drop.d.ts.map
@@ -8,10 +8,10 @@
8
8
  * partly revealed stroke tests only its drawn part, and a node's `clip` gates
9
9
  * everything.
10
10
  */
11
- import type { Bounds, Point, Polyline } from "../geometry";
12
- import { boundsContain } from "../geometry/bounds";
13
- import type { ClipRegion, DrawSpec, TextSpec } from "../spec/types";
14
- import type { HitCandidate, HitOptions } from "./types";
11
+ import { boundsContain } from "../geometry/bounds.js";
12
+ import type { Bounds, Point, Polyline } from "../geometry/index.js";
13
+ import type { ClipRegion, DrawSpec, TextSpec } from "../spec/types.js";
14
+ import type { HitCandidate, HitOptions } from "./types.js";
15
15
  /**
16
16
  * Axis-aligned boxes memoised per node, so the cheap rejection that precedes
17
17
  * every real test is not itself a walk over the geometry.
@@ -196,4 +196,3 @@ export declare function hitSpec(spec: DrawSpec, candidate: HitCandidate, at: Poi
196
196
  * @category Interaction plumbing
197
197
  */
198
198
  export declare function hitTest(specs: readonly DrawSpec[], candidates: ReadonlyMap<number, HitCandidate>, at: Point, options?: HitOptions): number | null;
199
- //# sourceMappingURL=hit.d.ts.map
@@ -4,15 +4,14 @@
4
4
  * targets and the interaction vocabulary (events, handlers, records). No DOM
5
5
  * events: the pointer driver in `render/` turns those into calls here.
6
6
  */
7
- export * from "./constrain";
8
- export * from "./drag";
9
- export * from "./drop";
10
- export * from "./hit";
11
- export * from "./item-order";
12
- export * from "./param";
13
- export * from "./pick-items";
14
- export * from "./pointer";
15
- export * from "./registry";
16
- export * from "./slop";
17
- export * from "./types";
18
- //# sourceMappingURL=index.d.ts.map
7
+ export * from "./constrain.js";
8
+ export * from "./drag.js";
9
+ export * from "./drop.js";
10
+ export * from "./hit.js";
11
+ export * from "./item-order.js";
12
+ export * from "./param.js";
13
+ export * from "./pick-items.js";
14
+ export * from "./pointer.js";
15
+ export * from "./registry.js";
16
+ export * from "./slop.js";
17
+ export * from "./types.js";
@@ -9,9 +9,9 @@
9
9
  * Up and Down go to the nearest item above or below (an image steps one row),
10
10
  * Home and End go to the ends, PageUp and PageDown jump a tenth of the way.
11
11
  */
12
- import type { Bounds, Point } from "../geometry";
13
- import type { Matrix } from "../geometry/transform";
14
- import type { DrawSpec } from "../spec/types";
12
+ import type { Bounds, Point } from "../geometry/index.js";
13
+ import type { Matrix } from "../geometry/transform.js";
14
+ import type { DrawSpec } from "../spec/types.js";
15
15
  /** How many items a node walks: a marks node's items, an image's pixels, else 0. */
16
16
  export declare function itemCount(spec: DrawSpec): number;
17
17
  /** An item's centre in scene units, or null for no such item. */
@@ -33,4 +33,3 @@ export declare function stepItem(spec: DrawSpec, current: number | null, key: st
33
33
  * image. Null for no such item.
34
34
  */
35
35
  export declare function itemPosition(spec: DrawSpec, item: number, view: Matrix): number | null;
36
- //# sourceMappingURL=item-order.d.ts.map
@@ -3,9 +3,9 @@
3
3
  * parameter). `pointParam` is the identity. `pathParam` and `alongPath` look the
4
4
  * same on screen; the first writes `t`, the second a `Point`.
5
5
  */
6
- import type { Point, Polyline } from "../geometry";
7
- import type { Readable } from "../reactive";
8
- import type { DragParam } from "./drag";
6
+ import type { Point, Polyline } from "../geometry/index.js";
7
+ import type { Readable } from "../reactive/index.js";
8
+ import type { DragParam } from "./drag.js";
9
9
  /**
10
10
  * A polyline given outright, or one that changes (an animating graph): a
11
11
  * `Readable` or a getter, read afresh on every move.
@@ -94,4 +94,3 @@ export declare function scalarParam(from: Point, to: Point, options?: ScalarPara
94
94
  * @category Interaction
95
95
  */
96
96
  export declare function pathParam(line: LineSource): DragParam<number>;
97
- //# sourceMappingURL=param.d.ts.map
@@ -10,8 +10,8 @@
10
10
  * hands over the same arrays keeps its grid, a changed layer builds a new one
11
11
  * on the next pick, and a layer that is never hovered never builds one.
12
12
  */
13
- import type { Point } from "../geometry";
14
- import type { ImageSpec, MarksSpec } from "../spec/types";
13
+ import type { Point } from "../geometry/index.js";
14
+ import type { ImageSpec, MarksSpec } from "../spec/types.js";
15
15
  /**
16
16
  * The topmost item of a marks node under `at` (the highest index, since items
17
17
  * paint in index order), or null.
@@ -31,4 +31,3 @@ export declare function pickMark(spec: MarksSpec, at: Point, slop?: number): num
31
31
  * @category Interaction plumbing
32
32
  */
33
33
  export declare function pickPixel(spec: ImageSpec, at: Point): number | null;
34
- //# sourceMappingURL=pick-items.d.ts.map
@@ -4,8 +4,8 @@
4
4
  * gesture events a node is handed. The pointer driver fills it in; it lives in
5
5
  * `interact/` so neither scene code nor the driver depends on the other.
6
6
  */
7
- import type { Point } from "../geometry";
8
- import type { Readable } from "../reactive";
7
+ import type { Point } from "../geometry/index.js";
8
+ import type { Readable } from "../reactive/index.js";
9
9
  /**
10
10
  * The pointer over a canvas, resolved into the spaces a scene reads in.
11
11
  *
@@ -69,4 +69,3 @@ export declare function samePointer(a: ScenePointer | null, b: ScenePointer | nu
69
69
  * @category Interaction plumbing
70
70
  */
71
71
  export declare function createPointerChannel(): PointerChannel;
72
- //# sourceMappingURL=pointer.d.ts.map
@@ -9,8 +9,8 @@
9
9
  * through the `Readable`s (`version`, `focus.state`): subscribers only mark
10
10
  * and read with `peek()` later, as everywhere in the core.
11
11
  */
12
- import type { Readable } from "../reactive";
13
- import type { HitCandidate, InteractionRecord } from "./types";
12
+ import type { Readable } from "../reactive/index.js";
13
+ import type { HitCandidate, InteractionRecord } from "./types.js";
14
14
  /**
15
15
  * The interactive nodes of one scene.
16
16
  *
@@ -61,4 +61,3 @@ export interface FocusChannel {
61
61
  /** Moves focus (null clears it). */
62
62
  set(id: number | null, source?: FocusSource): void;
63
63
  }
64
- //# sourceMappingURL=registry.d.ts.map
@@ -7,4 +7,3 @@
7
7
  * everywhere rather than a zero-length drag in some places.
8
8
  */
9
9
  export declare const DEFAULT_SLOP = 8;
10
- //# sourceMappingURL=slop.d.ts.map
@@ -4,10 +4,10 @@
4
4
  * gesture writes is a `Sink`: an `Animatable<T>` (`peek` + `set`, the only
5
5
  * type imported from `tween/`) or a plain setter.
6
6
  */
7
- import type { Bounds, Point, Polyline } from "../geometry";
8
- import type { Matrix } from "../geometry/transform";
9
- import type { Animatable } from "../tween/target";
10
- import type { HitCache } from "./hit";
7
+ import type { Bounds, Point, Polyline } from "../geometry/index.js";
8
+ import type { Matrix } from "../geometry/transform.js";
9
+ import type { Animatable } from "../tween/target.js";
10
+ import type { HitCache } from "./hit.js";
11
11
  /**
12
12
  * Somewhere a gesture can write a value: an `Animatable<T>` (a `Track<T>`, or
13
13
  * a `lensTarget` / `propTarget` / `storeTarget` over your own state) or a
@@ -416,4 +416,3 @@ export interface InteractionProps extends InteractionHandlers {
416
416
  * @category Interaction plumbing
417
417
  */
418
418
  export declare function hasInteraction(props: InteractionProps): boolean;
419
- //# sourceMappingURL=types.d.ts.map
@@ -5,12 +5,12 @@
5
5
  * own node, which gives tabular columns and per-digit styling through
6
6
  * `digitStyle`.
7
7
  */
8
- import type { ColorInput } from "../color";
9
- import type { Bounds, Polyline } from "../geometry";
10
- import type { Matrix } from "../geometry/transform";
11
- import type { Definition, PropsDescriptor, SceneNode } from "../scene/types";
12
- import type { GlyphSlot, NumberFormat } from "./digits";
13
- import { TextLayoutNode } from "./text-layout";
8
+ import type { ColorInput } from "../color/index.js";
9
+ import type { Bounds, Polyline } from "../geometry/index.js";
10
+ import type { Matrix } from "../geometry/transform.js";
11
+ import type { Definition, PropsDescriptor, SceneNode } from "../scene/types.js";
12
+ import type { GlyphSlot, NumberFormat } from "./digits.js";
13
+ import { TextLayoutNode } from "./text-layout.js";
14
14
  /**
15
15
  * What `digitStyle` is asked about. One entry per drawn character.
16
16
  *
@@ -324,4 +324,3 @@ export declare const variableProps: PropsDescriptor<VariableProps>;
324
324
  * @category Text & numbers
325
325
  */
326
326
  export declare const variable: Definition<VariableProps, VariableNode>;
327
- //# sourceMappingURL=decimal-number.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * then holds still, and each character is addressable. Kerning is discarded,
6
6
  * which is exact for digits and signs but would be wrong for prose.
7
7
  */
8
- import type { MetricsStyle } from "../spec/metrics";
8
+ import type { MetricsStyle } from "../spec/metrics.js";
9
9
  /**
10
10
  * U+2212. A hyphen is not a minus sign, and at this size you can tell.
11
11
  *
@@ -154,4 +154,3 @@ export interface GlyphLayoutOptions {
154
154
  * @category Scene registry & specs
155
155
  */
156
156
  export declare function layoutGlyphs(text: string, style: MetricsStyle, options?: GlyphLayoutOptions): GlyphRun;
157
- //# sourceMappingURL=digits.d.ts.map
@@ -4,8 +4,7 @@
4
4
  * (`paragraph`, `bulletedList`, `title`). The single-line `label` and
5
5
  * `defineText` live with the text node kind in `scene/text.ts`.
6
6
  */
7
- export * from "./decimal-number";
8
- export * from "./digits";
9
- export * from "./paragraph";
10
- export { TextLayoutNode } from "./text-layout";
11
- //# sourceMappingURL=index.d.ts.map
7
+ export * from "./decimal-number.js";
8
+ export * from "./digits.js";
9
+ export * from "./paragraph.js";
10
+ export { TextLayoutNode } from "./text-layout.js";
@@ -4,14 +4,14 @@
4
4
  * is centred on its anchor, takes `place`, and its handle reports the whole
5
5
  * box. No hyphenation, justification or mid-word breaks.
6
6
  */
7
- import type { ColorInput } from "../color";
8
- import type { Bounds, Polyline } from "../geometry";
9
- import type { Matrix } from "../geometry/transform";
10
- import type { ContextKey, Definition, InvalidateBits, PropsDescriptor, SceneNode } from "../scene/types";
11
- import type { TextFont } from "../spec/bake";
12
- import type { Placement } from "../spec/layout";
13
- import type { MetricsStyle } from "../spec/metrics";
14
- import { TextLayoutNode } from "./text-layout";
7
+ import type { ColorInput } from "../color/index.js";
8
+ import type { Bounds, Polyline } from "../geometry/index.js";
9
+ import type { Matrix } from "../geometry/transform.js";
10
+ import type { ContextKey, Definition, InvalidateBits, PropsDescriptor, SceneNode } from "../scene/types.js";
11
+ import type { TextFont } from "../spec/bake.js";
12
+ import type { Placement } from "../spec/layout.js";
13
+ import type { MetricsStyle } from "../spec/metrics.js";
14
+ import { TextLayoutNode } from "./text-layout.js";
15
15
  /**
16
16
  * Breaks `text` into lines no wider than `width`, greedily, a word at a time,
17
17
  * measured with the metrics oracle. Newlines always break, and an empty line
@@ -311,4 +311,3 @@ export declare const titleProps: PropsDescriptor<TitleProps>;
311
311
  */
312
312
  export declare const title: Definition<TitleProps, TitleNode>;
313
313
  export {};
314
- //# sourceMappingURL=paragraph.d.ts.map
@@ -15,10 +15,10 @@
15
15
  * actually reruns. The theme and a web font load (`fontEpochContext`) rerun it
16
16
  * too, and joining a graph starts that graph's font-load subscription.
17
17
  */
18
- import type { Bounds, Polyline } from "../geometry";
19
- import { BaseContainer } from "../scene/container";
20
- import type { SceneGraph } from "../scene/graph";
21
- import type { ContextKey, InvalidateBits, SceneNode } from "../scene/types";
18
+ import type { Bounds, Polyline } from "../geometry/index.js";
19
+ import { BaseContainer } from "../scene/container.js";
20
+ import type { SceneGraph } from "../scene/graph.js";
21
+ import type { ContextKey, InvalidateBits, SceneNode } from "../scene/types.js";
22
22
  /**
23
23
  * A box's four corners, `minX..maxX` by `minY..maxY`, as one closed polyline.
24
24
  *
@@ -72,4 +72,3 @@ export declare abstract class TextLayoutNode<P extends object = object> extends
72
72
  bounds(): Bounds | null;
73
73
  localBounds(): Bounds | null;
74
74
  }
75
- //# sourceMappingURL=text-layout.d.ts.map
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * network: Manim's `Graph` and `DiGraph` as composites.
3
3
  */
4
- export type { EdgeConfig, EdgeMap, EdgeRender, EdgeSpec, NetworkGraphHandle, NetworkGraphProps, VertexConfig, VertexMap, VertexRender, } from "./network-graph";
5
- export { diGraph, networkGraph, networkHandle } from "./network-graph";
6
- //# sourceMappingURL=index.d.ts.map
4
+ export type { EdgeConfig, EdgeMap, EdgeRender, EdgeSpec, NetworkGraphHandle, NetworkGraphProps, VertexConfig, VertexMap, VertexRender, } from "./network-graph.js";
5
+ export { diGraph, networkGraph, networkHandle } from "./network-graph.js";
@@ -14,11 +14,11 @@
14
14
  * vertices, edges or layout options change. `progress` is split into two
15
15
  * phases bound straight to the parts, so a reveal never reaches `update`.
16
16
  */
17
- import type { ColorInput } from "../color";
18
- import type { GraphEdge, GraphExtent, GraphLayoutOptions, GraphLayoutSpec, Point, TipShape, VertexId } from "../geometry";
19
- import type { Readable } from "../reactive";
20
- import type { SceneNode } from "../scene/types";
21
- import type { PaintSpec } from "../spec/gradient";
17
+ import type { ColorInput } from "../color/index.js";
18
+ import type { GraphEdge, GraphExtent, GraphLayoutOptions, GraphLayoutSpec, Point, TipShape, VertexId } from "../geometry/index.js";
19
+ import type { Readable } from "../reactive/index.js";
20
+ import type { SceneNode } from "../scene/types.js";
21
+ import type { PaintSpec } from "../spec/gradient.js";
22
22
  /**
23
23
  * One vertex's appearance. Merged over `vertexConfig`, so a scene names only
24
24
  * what differs.
@@ -274,7 +274,7 @@ export interface NetworkGraphProps {
274
274
  * @see {@link https://sophistry.dev/guides/fields-and-graphs/#network-graphs}
275
275
  * @category Coordinate systems & graphs
276
276
  */
277
- export declare const networkGraph: import("..").Definition<NetworkGraphProps, import("../scene/composite").CompositeNode<NetworkGraphProps>, keyof NetworkGraphProps>;
277
+ export declare const networkGraph: import("../scene/types.js").Definition<NetworkGraphProps, import("../scene/composite.js").CompositeNode<NetworkGraphProps>, keyof NetworkGraphProps>;
278
278
  /**
279
279
  * A directed {@link networkGraph}: edges are arrows from `source` to `target`
280
280
  * and `(u, v)` is no longer treated as `(v, u)` — Manim's `DiGraph`.
@@ -292,7 +292,7 @@ export declare const networkGraph: import("..").Definition<NetworkGraphProps, im
292
292
  *
293
293
  * @category Coordinate systems & graphs
294
294
  */
295
- export declare const diGraph: import("..").Definition<NetworkGraphProps, import("../scene/composite").CompositeNode<NetworkGraphProps>, keyof NetworkGraphProps>;
295
+ export declare const diGraph: import("../scene/types.js").Definition<NetworkGraphProps, import("../scene/composite.js").CompositeNode<NetworkGraphProps>, keyof NetworkGraphProps>;
296
296
  /**
297
297
  * The {@link NetworkGraphHandle} of a `networkGraph` or `diGraph` node:
298
298
  * positions, radii and each part's node.
@@ -312,4 +312,3 @@ export declare const diGraph: import("..").Definition<NetworkGraphProps, import(
312
312
  * @category Coordinate systems & graphs
313
313
  */
314
314
  export declare function networkHandle(node: SceneNode): NetworkGraphHandle;
315
- //# sourceMappingURL=network-graph.d.ts.map
@@ -1,3 +1,2 @@
1
- export type { Readable, Track, TrackOptions, ValuesOf } from "./track";
2
- export { derive, isReadable, track } from "./track";
3
- //# sourceMappingURL=index.d.ts.map
1
+ export type { Readable, Track, TrackOptions, ValuesOf } from "./track.js";
2
+ export { derive, isReadable, track } from "./track.js";
@@ -116,4 +116,3 @@ export declare function derive<const S extends readonly Readable<unknown>[], T>(
116
116
  * @category Reactivity
117
117
  */
118
118
  export declare function isReadable(value: unknown): value is Readable<unknown>;
119
- //# sourceMappingURL=track.d.ts.map
@@ -12,12 +12,12 @@
12
12
  * only marks the mirror stale, and the DOM is brought up to date once, in the
13
13
  * paint phase of the frame (after the commit that produced the snapshot).
14
14
  */
15
- import type { Point } from "../geometry";
16
- import type { Matrix } from "../geometry/transform";
17
- import type { FocusChannel, InteractionRegistry } from "../interact/registry";
18
- import type { Readable } from "../reactive";
19
- import type { DrawSpec } from "../spec/types";
20
- import type { CameraView } from "./camera";
15
+ import type { Point } from "../geometry/index.js";
16
+ import type { Matrix } from "../geometry/transform.js";
17
+ import type { FocusChannel, InteractionRegistry } from "../interact/registry.js";
18
+ import type { Readable } from "../reactive/index.js";
19
+ import type { DrawSpec } from "../spec/types.js";
20
+ import type { CameraView } from "./camera.js";
21
21
  /**
22
22
  * The nodes the focus ring should wrap: the focused node and the rest of its
23
23
  * interaction group, or null when nothing is focused or the focus is not
@@ -150,4 +150,3 @@ export interface AccessibilityMirror {
150
150
  * @category Interaction plumbing
151
151
  */
152
152
  export declare function createAccessibilityMirror(options: AccessibilityMirrorOptions): AccessibilityMirror;
153
- //# sourceMappingURL=a11y.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * unclaimed wheels and touch claim in one call. Their gesture maths stays
5
5
  * separate: pan/zoom re-anchors to a scene point; orbit tracks a delta.
6
6
  */
7
- import type { BackgroundPointerEvent, PointerDriver, SceneWheelEvent } from "./pointer";
7
+ import type { BackgroundPointerEvent, PointerDriver, SceneWheelEvent } from "./pointer.js";
8
8
  /**
9
9
  * Whether a gesture locked to `camera` belongs to a controller that only
10
10
  * wants a specific camera index (`wanted`). `undefined` means "any camera",
@@ -53,4 +53,3 @@ export interface CameraGestureOptions {
53
53
  * @category Interaction plumbing
54
54
  */
55
55
  export declare function subscribeCameraGesture(driver: PointerDriver, handlers: CameraGestureHandlers, options?: CameraGestureOptions): () => void;
56
- //# sourceMappingURL=camera-gesture.d.ts.map