@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
@@ -3,11 +3,11 @@
3
3
  * (no offset), so every arrow is one shape: the shaft and its
4
4
  * tips are subpaths of one outline, and a reveal draws the shaft first.
5
5
  */
6
- import type { ColorInput } from "../color";
7
- import type { CurvePath, Point, TipGeometry, TipShape } from "../geometry";
8
- import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
9
- import type { PaintSpec } from "../spec/gradient";
10
- import type { Theme } from "../themes/types";
6
+ import type { ColorInput } from "../color/index.js";
7
+ import type { CurvePath, Point, TipGeometry, TipShape } from "../geometry/index.js";
8
+ import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
9
+ import type { PaintSpec } from "../spec/gradient.js";
10
+ import type { Theme } from "../themes/types.js";
11
11
  /** @category Shapes */
12
12
  export interface LineProps extends ShapeProps {
13
13
  /** Start point in scene units. */
@@ -33,7 +33,7 @@ export interface LineProps extends ShapeProps {
33
33
  *
34
34
  * @category Shapes
35
35
  */
36
- export declare const line: import("..").Definition<LineProps, import("..").ShapeNode<LineProps>, "from" | "to" | ShapeInstanceable>;
36
+ export declare const line: import("../scene/types.js").Definition<LineProps, import("../scene/shape.js").ShapeNode<LineProps>, "from" | "to" | ShapeInstanceable>;
37
37
  /**
38
38
  * Props shared by everything that can grow a tip.
39
39
  *
@@ -147,7 +147,7 @@ type ArrowInstanceable = ShapeInstanceable | "from" | "to" | "tipLength" | "tipF
147
147
  *
148
148
  * @category Shapes
149
149
  */
150
- export declare const arrow: import("..").Definition<ArrowProps, import("..").ShapeNode<ArrowProps>, ArrowInstanceable>;
150
+ export declare const arrow: import("../scene/types.js").Definition<ArrowProps, import("../scene/shape.js").ShapeNode<ArrowProps>, ArrowInstanceable>;
151
151
  /** @category Shapes */
152
152
  export type DoubleArrowProps = Omit<ArrowProps, "tipAt">;
153
153
  /**
@@ -166,7 +166,7 @@ export type DoubleArrowProps = Omit<ArrowProps, "tipAt">;
166
166
  *
167
167
  * @category Shapes
168
168
  */
169
- export declare const doubleArrow: import("..").Definition<DoubleArrowProps, import("..").ShapeNode<DoubleArrowProps>, ArrowInstanceable>;
169
+ export declare const doubleArrow: import("../scene/types.js").Definition<DoubleArrowProps, import("../scene/shape.js").ShapeNode<DoubleArrowProps>, ArrowInstanceable>;
170
170
  /** @category Shapes */
171
171
  export interface VectorProps extends Omit<ArrowProps, "from"> {
172
172
  /** Tail of the vector. Defaults to the origin, which is the whole point. */
@@ -185,7 +185,7 @@ export interface VectorProps extends Omit<ArrowProps, "from"> {
185
185
  *
186
186
  * @category Shapes
187
187
  */
188
- export declare const vector: import("..").Definition<VectorProps, import("..").ShapeNode<VectorProps>, ArrowInstanceable>;
188
+ export declare const vector: import("../scene/types.js").Definition<VectorProps, import("../scene/shape.js").ShapeNode<VectorProps>, ArrowInstanceable>;
189
189
  /** @category Shapes */
190
190
  export interface CurvedArrowProps extends ArrowProps {
191
191
  /**
@@ -213,7 +213,7 @@ export interface CurvedArrowProps extends ArrowProps {
213
213
  *
214
214
  * @category Shapes
215
215
  */
216
- export declare const curvedArrow: import("..").Definition<CurvedArrowProps, import("..").ShapeNode<CurvedArrowProps>, "angle" | ArrowInstanceable>;
216
+ export declare const curvedArrow: import("../scene/types.js").Definition<CurvedArrowProps, import("../scene/shape.js").ShapeNode<CurvedArrowProps>, "angle" | ArrowInstanceable>;
217
217
  /** @category Shapes */
218
218
  export type CurvedDoubleArrowProps = Omit<CurvedArrowProps, "tipAt">;
219
219
  /**
@@ -229,7 +229,7 @@ export type CurvedDoubleArrowProps = Omit<CurvedArrowProps, "tipAt">;
229
229
  *
230
230
  * @category Shapes
231
231
  */
232
- export declare const curvedDoubleArrow: import("..").Definition<CurvedDoubleArrowProps, import("..").ShapeNode<CurvedDoubleArrowProps>, "angle" | ArrowInstanceable>;
232
+ export declare const curvedDoubleArrow: import("../scene/types.js").Definition<CurvedDoubleArrowProps, import("../scene/shape.js").ShapeNode<CurvedDoubleArrowProps>, "angle" | ArrowInstanceable>;
233
233
  /** @category Shapes */
234
234
  export interface DashedLineProps extends LineProps {
235
235
  /** Fraction of the line covered by ink, as in Manim. Clamped to 0.01..0.99; defaults to 0.5. */
@@ -272,6 +272,5 @@ export declare function dashedLinePattern(props: Readonly<DashedLineProps>): num
272
272
  *
273
273
  * @category Shapes
274
274
  */
275
- export declare const dashedLine: import("..").Definition<DashedLineProps, import("..").ShapeNode<DashedLineProps>, "dashCount" | "dashLength" | "dashRatio" | "from" | "to" | ShapeInstanceable>;
275
+ export declare const dashedLine: import("../scene/types.js").Definition<DashedLineProps, import("../scene/shape.js").ShapeNode<DashedLineProps>, "dashCount" | "dashLength" | "dashRatio" | "from" | "to" | ShapeInstanceable>;
276
276
  export {};
277
- //# sourceMappingURL=line.d.ts.map
@@ -18,10 +18,10 @@
18
18
  * yourself (a `derive` over the sources that move it), which the matcher
19
19
  * follows like any bound prop.
20
20
  */
21
- import type { ColorInput } from "../color";
22
- import type { Bounds } from "../geometry";
23
- import { type ShapeInstanceable, ShapeNode, type ShapeProps } from "../scene/shape";
24
- import type { Definition, SceneNode } from "../scene/types";
21
+ import type { ColorInput } from "../color/index.js";
22
+ import type { Bounds } from "../geometry/index.js";
23
+ import { type ShapeInstanceable, ShapeNode, type ShapeProps } from "../scene/shape.js";
24
+ import type { Definition, SceneNode } from "../scene/types.js";
25
25
  /**
26
26
  * What a matcher wraps: a box in scene units, a node whose `bounds()` it
27
27
  * follows, or nothing (yet).
@@ -172,4 +172,3 @@ export interface UnderlineProps extends Omit<MatcherProps, "padding"> {
172
172
  * @category Shapes
173
173
  */
174
174
  export declare const underline: Definition<UnderlineProps, ShapeNode<UnderlineProps>, "gap" | ShapeInstanceable>;
175
- //# sourceMappingURL=matchers.d.ts.map
@@ -2,8 +2,8 @@
2
2
  * The general-purpose shapes: `path` (SVG path data, or polylines/curves you
3
3
  * own and animate) and `plot` (a sampled parametric function).
4
4
  */
5
- import type { CurvePath, Polyline } from "../geometry";
6
- import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
5
+ import type { CurvePath, Polyline } from "../geometry/index.js";
6
+ import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
7
7
  /** @category Shapes */
8
8
  export interface PathProps extends ShapeProps {
9
9
  /** SVG path data. Ignored when `points` or `curvePoints` is given. */
@@ -50,7 +50,7 @@ export interface PathProps extends ShapeProps {
50
50
  *
51
51
  * @category Shapes
52
52
  */
53
- export declare const path: import("..").Definition<PathProps, import("..").ShapeNode<PathProps>, ShapeInstanceable>;
53
+ export declare const path: import("../index.js").Definition<PathProps, import("../scene/shape.js").ShapeNode<PathProps>, ShapeInstanceable>;
54
54
  /** @category Shapes */
55
55
  export interface PlotProps extends ShapeProps {
56
56
  /** Sampled over `[from, to]`; return a point in scene units. */
@@ -89,5 +89,4 @@ export interface PlotProps extends ShapeProps {
89
89
  *
90
90
  * @category Shapes
91
91
  */
92
- export declare const plot: import("..").Definition<PlotProps, import("..").ShapeNode<PlotProps>, "from" | "samples" | "to" | ShapeInstanceable>;
93
- //# sourceMappingURL=path.d.ts.map
92
+ export declare const plot: import("../index.js").Definition<PlotProps, import("../scene/shape.js").ShapeNode<PlotProps>, "from" | "samples" | "to" | ShapeInstanceable>;
@@ -2,8 +2,8 @@
2
2
  * Polygons: explicit vertices (built where they sit), or a regular n-gon
3
3
  * built about the origin and placed by its `center` (the shape's `offset`).
4
4
  */
5
- import type { Point, Polyline } from "../geometry";
6
- import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
5
+ import type { Point, Polyline } from "../geometry/index.js";
6
+ import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
7
7
  /** @category Shapes */
8
8
  export interface PolygonProps extends ShapeProps {
9
9
  /** Explicit vertices, in scene units. When given, the regular-polygon props are ignored. */
@@ -42,5 +42,4 @@ export interface PolygonProps extends ShapeProps {
42
42
  *
43
43
  * @category Shapes
44
44
  */
45
- export declare const polygon: import("..").Definition<PolygonProps, import("..").ShapeNode<PolygonProps>, "center" | "radius" | "sides" | "tilt" | ShapeInstanceable>;
46
- //# sourceMappingURL=polygon.d.ts.map
45
+ export declare const polygon: import("../index.js").Definition<PolygonProps, import("../scene/shape.js").ShapeNode<PolygonProps>, "center" | "radius" | "sides" | "tilt" | ShapeInstanceable>;
@@ -2,8 +2,8 @@
2
2
  * Stars and polygrams: closed loops built where they sit (the centre is part
3
3
  * of the geometry).
4
4
  */
5
- import type { Point, Polyline } from "../geometry";
6
- import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
5
+ import type { Point, Polyline } from "../geometry/index.js";
6
+ import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
7
7
  /** @category Shapes */
8
8
  export interface StarProps extends ShapeProps {
9
9
  /** Centre. Defaults to the origin. */
@@ -50,7 +50,7 @@ export interface StarProps extends ShapeProps {
50
50
  *
51
51
  * @category Shapes
52
52
  */
53
- export declare const star: import("..").Definition<StarProps, import("..").ShapeNode<StarProps>, "center" | "density" | "innerRadius" | "outerRadius" | "points" | "startAngle" | ShapeInstanceable>;
53
+ export declare const star: import("../index.js").Definition<StarProps, import("../scene/shape.js").ShapeNode<StarProps>, "center" | "density" | "innerRadius" | "outerRadius" | "points" | "startAngle" | ShapeInstanceable>;
54
54
  /** @category Shapes */
55
55
  export interface RegularPolygramProps extends ShapeProps {
56
56
  /** Centre. Defaults to the origin. */
@@ -86,7 +86,7 @@ export interface RegularPolygramProps extends ShapeProps {
86
86
  *
87
87
  * @category Shapes
88
88
  */
89
- export declare const regularPolygram: import("..").Definition<RegularPolygramProps, import("..").ShapeNode<RegularPolygramProps>, "center" | "density" | "radius" | "sides" | "startAngle" | ShapeInstanceable>;
89
+ export declare const regularPolygram: import("../index.js").Definition<RegularPolygramProps, import("../scene/shape.js").ShapeNode<RegularPolygramProps>, "center" | "density" | "radius" | "sides" | "startAngle" | ShapeInstanceable>;
90
90
  /** @category Shapes */
91
91
  export interface PolygramProps extends ShapeProps {
92
92
  /** One closed loop per group, vertices in scene units; the ring is closed for you. */
@@ -115,5 +115,4 @@ export interface PolygramProps extends ShapeProps {
115
115
  *
116
116
  * @category Shapes
117
117
  */
118
- export declare const polygram: import("..").Definition<PolygramProps, import("..").ShapeNode<PolygramProps>, ShapeInstanceable>;
119
- //# sourceMappingURL=polygram.d.ts.map
118
+ export declare const polygram: import("../index.js").Definition<PolygramProps, import("../scene/shape.js").ShapeNode<PolygramProps>, ShapeInstanceable>;
@@ -2,8 +2,8 @@
2
2
  * Rectangles and squares, positioned by their centre like `circle`: the
3
3
  * outline is built about the origin and the centre is the shape's `offset`.
4
4
  */
5
- import type { Point, Polyline } from "../geometry";
6
- import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
5
+ import type { Point, Polyline } from "../geometry/index.js";
6
+ import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
7
7
  /**
8
8
  * Drops a ring's synthetic closing point (first point repeated at the end),
9
9
  * if present: `CurvePath`'s `closed: true` supplies that edge implicitly, so
@@ -44,7 +44,7 @@ export interface RectProps extends ShapeProps {
44
44
  *
45
45
  * @category Shapes
46
46
  */
47
- export declare const rect: import("..").Definition<RectProps, import("..").ShapeNode<RectProps>, "center" | "cornerRadius" | "height" | "width" | ShapeInstanceable>;
47
+ export declare const rect: import("../index.js").Definition<RectProps, import("../scene/shape.js").ShapeNode<RectProps>, "center" | "cornerRadius" | "height" | "width" | ShapeInstanceable>;
48
48
  /** @category Shapes */
49
49
  export interface SquareProps extends Omit<RectProps, "width" | "height"> {
50
50
  /** Side length in scene units. */
@@ -63,5 +63,4 @@ export interface SquareProps extends Omit<RectProps, "width" | "height"> {
63
63
  *
64
64
  * @category Shapes
65
65
  */
66
- export declare const square: import("..").Definition<SquareProps, import("..").ShapeNode<SquareProps>, "center" | "cornerRadius" | "size" | ShapeInstanceable>;
67
- //# sourceMappingURL=rect.d.ts.map
66
+ export declare const square: import("../index.js").Definition<SquareProps, import("../scene/shape.js").ShapeNode<SquareProps>, "center" | "cornerRadius" | "size" | ShapeInstanceable>;
@@ -7,11 +7,11 @@
7
7
  * once per change, when the frame pulls it, and nothing runs while nothing
8
8
  * moves.
9
9
  */
10
- import type { Point } from "../geometry";
11
- import type { Readable } from "../reactive";
12
- import { type CompositeContext } from "../scene/composite";
13
- import { type ShapeProps } from "../scene/shape";
14
- import type { Clock } from "../tween/clock";
10
+ import type { Point } from "../geometry/index.js";
11
+ import type { Readable } from "../reactive/index.js";
12
+ import { type CompositeContext } from "../scene/composite.js";
13
+ import { type ShapeProps } from "../scene/shape.js";
14
+ import type { Clock } from "../tween/clock.js";
15
15
  /** @category Shapes */
16
16
  export interface TracedPathProps extends ShapeProps {
17
17
  /** The point to trace, in scene units: usually a moving track, bound. */
@@ -73,5 +73,4 @@ export declare function timeOf<P extends {
73
73
  *
74
74
  * @category Shapes
75
75
  */
76
- export declare const tracedPath: import("..").Definition<TracedPathProps, import("../scene/composite").CompositeNode<TracedPathProps>, keyof TracedPathProps>;
77
- //# sourceMappingURL=traced-path.d.ts.map
76
+ export declare const tracedPath: import("../scene/types.js").Definition<TracedPathProps, import("../scene/composite.js").CompositeNode<TracedPathProps>, keyof TracedPathProps>;
@@ -4,9 +4,9 @@
4
4
  * index across the run so the
5
5
  * reveal caches survive; transform props apply to a wrapping `group`.
6
6
  */
7
- import type { MatchedShapePart, MatchShapesOptions, ShapePart } from "../geometry/shape-match";
8
- import { type ShapeProps } from "../scene/shape";
9
- import type { PaintSpec } from "../spec/gradient";
7
+ import type { MatchedShapePart, MatchShapesOptions, ShapePart } from "../geometry/shape-match.js";
8
+ import { type ShapeProps } from "../scene/shape.js";
9
+ import type { PaintSpec } from "../spec/gradient.js";
10
10
  /** @category Animation presets */
11
11
  export interface TransformMatchingShapesProps extends Omit<ShapeProps, "progress" | "fill" | "stroke" | "strokeWidth" | "opacity">, MatchShapesOptions {
12
12
  /** The starting group of shapes, as closed contours in scene units. */
@@ -62,5 +62,4 @@ export interface TransformMatchingShapesProps extends Omit<ShapeProps, "progress
62
62
  *
63
63
  * @category Animation presets
64
64
  */
65
- export declare const transformMatchingShapes: import("..").Definition<TransformMatchingShapesProps, import("../scene/composite").CompositeNode<TransformMatchingShapesProps>, keyof TransformMatchingShapesProps>;
66
- //# sourceMappingURL=transform-matching-shapes.d.ts.map
65
+ export declare const transformMatchingShapes: import("../scene/types.js").Definition<TransformMatchingShapesProps, import("../scene/composite.js").CompositeNode<TransformMatchingShapesProps>, keyof TransformMatchingShapesProps>;
@@ -10,12 +10,12 @@
10
10
  * `ShapeNode`'s granular memos (kept separate so an `opacity` edit doesn't
11
11
  * retransform geometry); `bake()` composes them non-reactively for tests.
12
12
  */
13
- import type { ColorInput } from "../color/types";
14
- import type { CurvePath, Point, Polyline } from "../geometry";
15
- import type { Matrix } from "../geometry/transform";
16
- import type { Theme } from "../themes/types";
17
- import type { PaintFrame, PaintSpec } from "./gradient";
18
- import type { AlongStroke, ClipRegion, ShapeSpec, StrokeStyle, TextSpec, TextStyle } from "./types";
13
+ import type { ColorInput } from "../color/types.js";
14
+ import type { CurvePath, Point, Polyline } from "../geometry/index.js";
15
+ import type { Matrix } from "../geometry/transform.js";
16
+ import type { Theme } from "../themes/types.js";
17
+ import type { PaintFrame, PaintSpec } from "./gradient.js";
18
+ import type { AlongStroke, ClipRegion, ShapeSpec, StrokeStyle, TextSpec, TextStyle } from "./types.js";
19
19
  /**
20
20
  * How a many-piece shape reveals under `progress`, the way Manim writes: pieces
21
21
  * in order with a lag, each tracing its outline (in the stroke paint, or the
@@ -483,4 +483,3 @@ export declare function bake(geometry: ShapeGeometry, space: BakeSpace, style: S
483
483
  progress?: number;
484
484
  visible?: boolean;
485
485
  } & BakeTransform): ShapeSpec | null;
486
- //# sourceMappingURL=bake.d.ts.map
@@ -5,9 +5,9 @@
5
5
  * (Canvas2D intersects successive `clip()` calls), and picking tests "inside
6
6
  * all of them".
7
7
  */
8
- import type { Bounds, Point, Polyline } from "../geometry";
9
- import type { Matrix } from "../geometry/transform";
10
- import type { ClipRegion } from "./types";
8
+ import type { Bounds, Point, Polyline } from "../geometry/index.js";
9
+ import type { Matrix } from "../geometry/transform.js";
10
+ import type { ClipRegion } from "./types.js";
11
11
  /**
12
12
  * What `<Group clip>` accepts, in the group's own units: a box, one polygon,
13
13
  * or several rings (filled by the non-zero rule, so a ring wound the other
@@ -85,4 +85,3 @@ export declare function clipOf(space: {
85
85
  * @category Extending
86
86
  */
87
87
  export declare function nestClip(inherited: readonly ClipRegion[] | undefined, shape: ClipShape | undefined, matrix: Matrix): readonly ClipRegion[] | undefined;
88
- //# sourceMappingURL=clip.d.ts.map
@@ -3,8 +3,8 @@
3
3
  * `<VectorField>`: an explicit stop list, a colormap name, or a caller's own
4
4
  * `(t) => string` (told apart by `Array.isArray` and `typeof`).
5
5
  */
6
- import type { ColorInput } from "../color";
7
- import type { Colormap, ColormapSpec } from "../themes";
6
+ import type { ColorInput } from "../color/index.js";
7
+ import type { Colormap, ColormapSpec } from "../themes/index.js";
8
8
  /**
9
9
  * An explicit stop list, a published colormap's name, or a caller's own ramp function.
10
10
  *
@@ -21,4 +21,3 @@ export declare function isStopList(spec: ColorRampSpec | undefined): spec is rea
21
21
  * theme colours) only when it is omitted.
22
22
  */
23
23
  export declare function resolveColorRamp(spec: ColorRampSpec | undefined, fallbackStops: () => readonly ColorInput[]): Colormap;
24
- //# sourceMappingURL=colorRampProp.d.ts.map
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * Ties paint in tree order: the order the sources are handed over in.
11
11
  */
12
- import type { DrawSpec, SpecSource } from "./types";
12
+ import type { DrawSpec, SpecSource } from "./types.js";
13
13
  /**
14
14
  * Reads every source's current spec and returns them in paint order.
15
15
  *
@@ -26,4 +26,3 @@ import type { DrawSpec, SpecSource } from "./types";
26
26
  * @category Scene registry & specs
27
27
  */
28
28
  export declare function compileFrame(sources: readonly SpecSource[]): DrawSpec[];
29
- //# sourceMappingURL=compile.d.ts.map
@@ -5,9 +5,9 @@
5
5
  * coordinates instead. Resolved gradients are plain objects rebuilt by the style
6
6
  * memo; `render/paint.ts` caches the `CanvasGradient`.
7
7
  */
8
- import type { ColorInput } from "../color";
9
- import type { Point } from "../geometry";
10
- import type { GradientStop, Paint } from "./types";
8
+ import type { ColorInput } from "../color/index.js";
9
+ import type { Point } from "../geometry/index.js";
10
+ import type { GradientStop, Paint } from "./types.js";
11
11
  /**
12
12
  * Where a gradient's endpoints are measured: `"bbox"` for fractions of the
13
13
  * shape's own bounding box (moves with the shape), `"scene"` for absolute
@@ -207,4 +207,3 @@ export interface PaintFrame {
207
207
  * @returns The scene-space paint, or null when `paint` is undefined.
208
208
  */
209
209
  export declare function resolvePaint(paint: PaintSpec | undefined, frame: PaintFrame): Paint | null;
210
- //# sourceMappingURL=gradient.d.ts.map
@@ -4,12 +4,11 @@
4
4
  * gradients, clip regions, layout maths and the text-metrics oracle. Pure:
5
5
  * no scene graph, no canvas (bar the offscreen `measureText` context).
6
6
  */
7
- export * from "./bake";
8
- export * from "./clip";
9
- export * from "./colorRampProp";
10
- export * from "./compile";
11
- export * from "./gradient";
12
- export * from "./layout";
13
- export * from "./metrics";
14
- export * from "./types";
15
- //# sourceMappingURL=index.d.ts.map
7
+ export * from "./bake.js";
8
+ export * from "./clip.js";
9
+ export * from "./colorRampProp.js";
10
+ export * from "./compile.js";
11
+ export * from "./gradient.js";
12
+ export * from "./layout.js";
13
+ export * from "./metrics.js";
14
+ export * from "./types.js";
@@ -8,7 +8,7 @@
8
8
  * geometry. Helpers accept `null`/`undefined` bounds and return a zero shift, since
9
9
  * a sibling's `ref` may not have fired on the first pass. y is up.
10
10
  */
11
- import type { Bounds, Point } from "../geometry";
11
+ import type { Bounds, Point } from "../geometry/index.js";
12
12
  /** A direction, as a unit vector. Same shape as a `Point`, different intent. */
13
13
  export type Vec2 = Point;
14
14
  /**
@@ -140,7 +140,7 @@ export declare const DR: Vec2;
140
140
  * @category Layout
141
141
  */
142
142
  export declare const DEFAULT_GAP = 0.25;
143
- export { boundsFromCenter, boundsHeight, boundsWidth, centerOf as boundsCenter, padBounds, pointOnBounds as pointOn, unionBounds, } from "../geometry/bounds";
143
+ export { boundsFromCenter, boundsHeight, boundsWidth, centerOf as boundsCenter, padBounds, pointOnBounds as pointOn, unionBounds, } from "../geometry/bounds.js";
144
144
  /** @category Layout */
145
145
  export interface NextToOptions {
146
146
  /** Gap. Defaults to `DEFAULT_GAP`. */
@@ -285,4 +285,3 @@ export interface GridOptions {
285
285
  * @category Layout
286
286
  */
287
287
  export declare function arrangeInGrid(items: (Bounds | null | undefined)[], options?: GridOptions): Placement[];
288
- //# sourceMappingURL=layout.d.ts.map
@@ -3,8 +3,8 @@
3
3
  * `measureText`, so a `<Label>` can report its box for layout. It never draws.
4
4
  * Without a `document` (SSR) measurements fall back to an em-based estimate.
5
5
  */
6
- import type { Bounds } from "../geometry";
7
- import type { TextStyle } from "./types";
6
+ import type { Bounds } from "../geometry/index.js";
7
+ import type { TextStyle } from "./types.js";
8
8
  /**
9
9
  * Everything that changes a string's advance width. `fontSize` and
10
10
  * `letterSpacing` are in whatever length unit the caller works in — scene units
@@ -102,4 +102,3 @@ export declare function measureLabel(text: string, style: MetricsStyle): LabelMe
102
102
  * @category Scene registry & specs
103
103
  */
104
104
  export declare function labelBox(text: string, style: BoxStyle, yUp?: boolean): Bounds;
105
- //# sourceMappingURL=metrics.d.ts.map
@@ -4,8 +4,8 @@
4
4
  * no camera, canvas size or dpr. The renderer applies those with one
5
5
  * `setTransform` per camera, so view changes never rebuild a spec.
6
6
  */
7
- import type { Bounds, CurvePath, Point, Polyline } from "../geometry";
8
- import type { Matrix } from "../geometry/transform";
7
+ import type { Bounds, CurvePath, Point, Polyline } from "../geometry/index.js";
8
+ import type { Matrix } from "../geometry/transform.js";
9
9
  /**
10
10
  * One colour at one position along a gradient, `offset` in 0..1.
11
11
  *
@@ -504,4 +504,3 @@ export interface SpecSource {
504
504
  * @category Renderer & paint
505
505
  */
506
506
  export declare function paintsFill(fill: StrokeStyle["fill"] | undefined): fill is NonNullable<StrokeStyle["fill"]>;
507
- //# sourceMappingURL=types.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * semantic tokens (`base` ground, `text` ink, `blue` accent, and a `series` that
5
5
  * alternates warm and cool hues). Values from https://catppuccin.com/palette.
6
6
  */
7
- import type { ThemePalette } from "./types";
7
+ import type { ThemePalette } from "./types.js";
8
8
  /**
9
9
  * The 26 named swatches of one Catppuccin flavour, as CSS hex strings.
10
10
  *
@@ -56,4 +56,3 @@ export declare const catppuccin: {
56
56
  * @category Theming
57
57
  */
58
58
  export declare function catppuccinSeed(c: CatppuccinFlavor): ThemePalette;
59
- //# sourceMappingURL=catppuccin.d.ts.map
@@ -7,7 +7,7 @@
7
7
  * Mikhailov's turbo LUT; ColorBrewer RdBu) and interpolated in OKLCH. The
8
8
  * endpoints and midpoint are exact; the tests check them.
9
9
  */
10
- import { type ColorRampOptions } from "./ramp";
10
+ import { type ColorRampOptions } from "./ramp.js";
11
11
  /**
12
12
  * A colormap: magnitude in `[0, 1]` → a CSS colour.
13
13
  *
@@ -77,4 +77,3 @@ export type ColormapSpec = Colormap | ColormapName;
77
77
  * @category Colormaps & ramps
78
78
  */
79
79
  export declare function resolveColormap(spec: ColormapSpec | undefined, fallback?: Colormap): Colormap;
80
- //# sourceMappingURL=colormap.d.ts.map
@@ -9,7 +9,7 @@
9
9
  * Dark is the default on `:root`, so a page with no JS, no storage or no
10
10
  * `data-mode` is dark — the same fallback `themeInitScript` uses.
11
11
  */
12
- import type { PaletteSpec, ThemePalette } from "./types";
12
+ import type { PaletteSpec, ThemePalette } from "./types.js";
13
13
  /**
14
14
  * Options for {@link paletteCss}.
15
15
  *
@@ -48,4 +48,3 @@ export declare function paletteVariables(palette: ThemePalette, prefix?: string)
48
48
  * @category Theming
49
49
  */
50
50
  export declare function paletteCss(spec?: PaletteSpec, options?: PaletteCssOptions): string;
51
- //# sourceMappingURL=css.d.ts.map
@@ -2,17 +2,16 @@
2
2
  * Themes: palettes (built-in or `definePalette` colour sets with light and dark variants), the
3
3
  * colour mode they resolve against, and colormaps. Catppuccin is the default.
4
4
  */
5
- export type { CatppuccinFlavor } from "./catppuccin";
6
- export { catppuccin, catppuccinSeed } from "./catppuccin";
7
- export type { Colormap, ColormapName, ColormapOptions, ColormapSpec, } from "./colormap";
8
- export { colormapStops, colormaps, resolveColormap, } from "./colormap";
9
- export type { PaletteCssOptions } from "./css";
10
- export { paletteCss, paletteVariables } from "./css";
11
- export type { ModeOptions, ThemeInitScriptOptions } from "./mode";
12
- export { colorMode, colorModeReadable, cycleModePreference, installColorMode, modePreference, modePreferenceReadable, resolveModePreference, setModePreference, themeInitScript, } from "./mode";
13
- export { catppuccinPalette, completePalette, DEFAULT_PALETTE_NAME, DEFAULT_THEME_DEFAULTS, definePalette, palettes, paletteTheme, resolvePalette, } from "./palette";
14
- export { colorRamp, sampleRamp } from "./ramp";
15
- export type { ThemeSpec } from "./theme";
16
- export { resolveTheme } from "./theme";
17
- export type { ColorMode, ModePreference, Palette, PaletteInput, PaletteName, PaletteSpec, Theme, ThemeDefaults, ThemePalette, ThemePaletteSeed, } from "./types";
18
- //# sourceMappingURL=index.d.ts.map
5
+ export type { CatppuccinFlavor } from "./catppuccin.js";
6
+ export { catppuccin, catppuccinSeed } from "./catppuccin.js";
7
+ export type { Colormap, ColormapName, ColormapOptions, ColormapSpec, } from "./colormap.js";
8
+ export { colormapStops, colormaps, resolveColormap, } from "./colormap.js";
9
+ export type { PaletteCssOptions } from "./css.js";
10
+ export { paletteCss, paletteVariables } from "./css.js";
11
+ export type { ModeOptions, ThemeInitScriptOptions } from "./mode.js";
12
+ export { colorMode, colorModeReadable, cycleModePreference, installColorMode, modePreference, modePreferenceReadable, resolveModePreference, setModePreference, themeInitScript, } from "./mode.js";
13
+ export { catppuccinPalette, completePalette, DEFAULT_PALETTE_NAME, DEFAULT_THEME_DEFAULTS, definePalette, palettes, paletteTheme, resolvePalette, } from "./palette.js";
14
+ export { colorRamp, sampleRamp } from "./ramp.js";
15
+ export type { ThemeSpec } from "./theme.js";
16
+ export { resolveTheme } from "./theme.js";
17
+ export type { ColorMode, ModePreference, Palette, PaletteInput, PaletteName, PaletteSpec, Theme, ThemeDefaults, ThemePalette, ThemePaletteSeed, } from "./types.js";
@@ -10,8 +10,8 @@
10
10
  * - `installColorMode`'s `storageKey` and `palette` are remembered for
11
11
  * `setModePreference` / `cycleModePreference`.
12
12
  */
13
- import { type Readable } from "../reactive";
14
- import type { ColorMode, ModePreference, PaletteSpec } from "./types";
13
+ import { type Readable } from "../reactive/index.js";
14
+ import type { ColorMode, ModePreference, PaletteSpec } from "./types.js";
15
15
  /**
16
16
  * The page's concrete colour mode as a {@link Readable}: `peek()` it for the
17
17
  * current value, `subscribe` (or bind a prop to it) to follow `<html
@@ -165,4 +165,3 @@ export interface ThemeInitScriptOptions {
165
165
  * @category Theming
166
166
  */
167
167
  export declare function themeInitScript(options?: ThemeInitScriptOptions): string;
168
- //# sourceMappingURL=mode.d.ts.map
@@ -9,7 +9,7 @@
9
9
  * {@link palettes} map (currently Catppuccin: Mocha dark, Latte light), which
10
10
  * is also the default every `<Stage>` uses when nothing else is said.
11
11
  */
12
- import type { ColorMode, Palette, PaletteInput, PaletteName, PaletteSpec, Theme, ThemeDefaults, ThemePalette, ThemePaletteSeed } from "./types";
12
+ import type { ColorMode, Palette, PaletteInput, PaletteName, PaletteSpec, Theme, ThemeDefaults, ThemePalette, ThemePaletteSeed } from "./types.js";
13
13
  /** Sizing defaults a palette gets when it does not set its own: stroke width and font size in scene units, plus a system sans-serif stack. */
14
14
  export declare const DEFAULT_THEME_DEFAULTS: ThemeDefaults;
15
15
  /**
@@ -90,4 +90,3 @@ export declare function resolvePalette(spec?: PaletteSpec): Palette;
90
90
  * @category Theming
91
91
  */
92
92
  export declare function paletteTheme(palette: Palette, mode: ColorMode): Theme;
93
- //# sourceMappingURL=palette.d.ts.map
@@ -2,7 +2,7 @@
2
2
  * Colour ramps: a list of stops read as one continuous 0..1 scale, interpolated
3
3
  * through `colorInterpolator` (RGB by default, `colorSpace: "oklch"` on request).
4
4
  */
5
- import { type ColorInput, type ColorSpace } from "../color";
5
+ import { type ColorInput, type ColorSpace } from "../color/index.js";
6
6
  /**
7
7
  * Options for {@link colorRamp}.
8
8
  *
@@ -48,4 +48,3 @@ export declare function colorRamp(stops: readonly ColorInput[], options?: ColorR
48
48
  * @category Colormaps & ramps
49
49
  */
50
50
  export declare function sampleRamp(stops: string[], t: number, options?: ColorRampOptions): string;
51
- //# sourceMappingURL=ramp.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * The one function every consumer funnels through — `<Stage>` for its subtree,
5
5
  * `useTheme()` for a component outside any stage, tests for a known theme.
6
6
  */
7
- import type { ColorMode, PaletteSpec, Theme } from "./types";
7
+ import type { ColorMode, PaletteSpec, Theme } from "./types.js";
8
8
  /**
9
9
  * Inputs to {@link resolveTheme}, and the shape of the `theme` / `palette` /
10
10
  * `mode` props on `<Stage>`. Every field is optional; an empty spec means
@@ -40,4 +40,3 @@ export interface ThemeSpec {
40
40
  * @category Theming
41
41
  */
42
42
  export declare function resolveTheme(spec?: ThemeSpec): Theme;
43
- //# sourceMappingURL=theme.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * colour in the library is a theme token, so a palette restyles everything and
6
6
  * any explicit prop still overrides.
7
7
  */
8
- import type { ColorInput } from "../color/types";
8
+ import type { ColorInput } from "../color/types.js";
9
9
  /**
10
10
  * A concrete colour mode. What a palette variant is keyed by.
11
11
  *
@@ -188,4 +188,3 @@ export interface Palette {
188
188
  * @category Theming
189
189
  */
190
190
  export type PaletteSpec = Palette | PaletteName;
191
- //# sourceMappingURL=types.d.ts.map
@@ -7,8 +7,8 @@
7
7
  * speed re-times them; `advance()` steps time forward by hand, which is how
8
8
  * scrubbing and deterministic testing work.
9
9
  */
10
- import type { Readable } from "../reactive";
11
- import type { ReducedMotion } from "./reduced-motion";
10
+ import type { Readable } from "../reactive/index.js";
11
+ import type { ReducedMotion } from "./reduced-motion.js";
12
12
  /**
13
13
  * Callback receiving the step `dt` and the new total `time`, both in seconds.
14
14
  *
@@ -143,4 +143,3 @@ export declare function createClock(options?: ClockOptions): Clock;
143
143
  * @category Tracks & clocks
144
144
  */
145
145
  export declare const defaultClock: Clock;
146
- //# sourceMappingURL=clock.d.ts.map
@@ -158,4 +158,3 @@ export type Easing = EasingFunction | EasingName;
158
158
  * @category Easing
159
159
  */
160
160
  export declare function resolveEasing(easing: Easing | undefined, fallback?: EasingFunction): EasingFunction;
161
- //# sourceMappingURL=easing.d.ts.map
@@ -28,7 +28,7 @@
28
28
  * {@link stepFrame}, which is for tests and offline rendering. Without
29
29
  * `requestAnimationFrame` (server rendering, plain Node) nothing is scheduled.
30
30
  */
31
- import type { Readable } from "../reactive";
31
+ import type { Readable } from "../reactive/index.js";
32
32
  /**
33
33
  * A phase of a frame: `"tick"` (clocks and animations), `"commit"` (scenes
34
34
  * recompute) or `"paint"` (renderers draw).
@@ -165,4 +165,3 @@ export declare function currentFramePhase(): FramePhase | null;
165
165
  export declare function isFrameLoopRunning(): boolean;
166
166
  /** Drops every participant and request and forgets the outstanding frame. For tests only. */
167
167
  export declare function resetFrameLoop(): void;
168
- //# sourceMappingURL=frame-loop.d.ts.map