@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.
- package/dist/anim/animation.d.ts +1 -2
- package/dist/anim/draw.d.ts +2 -3
- package/dist/anim/emphasis.d.ts +2 -3
- package/dist/anim/fade.d.ts +3 -4
- package/dist/anim/growing.d.ts +3 -4
- package/dist/anim/index.d.ts +32 -33
- package/dist/anim/indication.d.ts +3 -4
- package/dist/anim/move.d.ts +4 -5
- package/dist/anim/movement.d.ts +4 -5
- package/dist/anim/points.d.ts +1 -2
- package/dist/anim/sequence.d.ts +1 -2
- package/dist/anim/slots.d.ts +4 -5
- package/dist/anim/speed.d.ts +1 -2
- package/dist/anim/spring.d.ts +6 -7
- package/dist/anim/timeline.d.ts +4 -5
- package/dist/anim/transform.d.ts +4 -5
- package/dist/anim/tween.d.ts +3 -4
- package/dist/anim/types.d.ts +3 -4
- package/dist/color/convert.d.ts +1 -2
- package/dist/color/index.d.ts +8 -9
- package/dist/color/named.d.ts +0 -1
- package/dist/color/ops.d.ts +2 -3
- package/dist/color/parse.d.ts +1 -2
- package/dist/color/random.d.ts +1 -2
- package/dist/color/types.d.ts +0 -1
- package/dist/coords/axes.d.ts +8 -9
- package/dist/coords/axis-composition.d.ts +2 -3
- package/dist/coords/axis-labels.d.ts +6 -7
- package/dist/coords/complex-plane.d.ts +8 -9
- package/dist/coords/coords.d.ts +3 -4
- package/dist/coords/function-graph.d.ts +6 -7
- package/dist/coords/graph-annotations.d.ts +11 -12
- package/dist/coords/grid-lines.d.ts +6 -7
- package/dist/coords/implicit-function.d.ts +3 -4
- package/dist/coords/index.d.ts +24 -25
- package/dist/coords/linear-transform.d.ts +6 -7
- package/dist/coords/number-line.d.ts +7 -8
- package/dist/coords/number-plane.d.ts +7 -8
- package/dist/coords/polar-plane.d.ts +6 -7
- package/dist/coords/tangent.d.ts +3 -4
- package/dist/coords/vector-field.d.ts +8 -9
- package/dist/entries/color.d.ts +12 -13
- package/dist/entries/definitions.d.ts +2 -3
- package/dist/entries/geometry.d.ts +42 -43
- package/dist/entries/internal.d.ts +45 -46
- package/dist/entries/internal.js +1 -1
- package/dist/entries/themes.d.ts +14 -15
- package/dist/export/frames.d.ts +3 -4
- package/dist/export/index.d.ts +1 -2
- package/dist/geometry/arc.d.ts +1 -2
- package/dist/geometry/band.d.ts +1 -2
- package/dist/geometry/bounds.d.ts +3 -4
- package/dist/geometry/brace.d.ts +1 -2
- package/dist/geometry/complex.d.ts +0 -1
- package/dist/geometry/curves.d.ts +1 -2
- package/dist/geometry/delaunay.d.ts +0 -1
- package/dist/geometry/field.d.ts +1 -2
- package/dist/geometry/graph-layout.d.ts +1 -2
- package/dist/geometry/implicit.d.ts +1 -2
- package/dist/geometry/index.d.ts +41 -42
- package/dist/geometry/lerp.d.ts +2 -3
- package/dist/geometry/morph.d.ts +2 -3
- package/dist/geometry/num.d.ts +1 -2
- package/dist/geometry/path/arclength.d.ts +1 -2
- package/dist/geometry/path/cubic.d.ts +1 -2
- package/dist/geometry/path/outline-reveal.d.ts +2 -3
- package/dist/geometry/path/svg-path.d.ts +1 -2
- package/dist/geometry/path/types.d.ts +0 -1
- package/dist/geometry/resolver.d.ts +0 -1
- package/dist/geometry/scale/range-transition.d.ts +1 -2
- package/dist/geometry/scale/scales.d.ts +2 -3
- package/dist/geometry/scale/tick-format.d.ts +2 -3
- package/dist/geometry/scale/ticks.d.ts +1 -2
- package/dist/geometry/shape-match.d.ts +1 -2
- package/dist/geometry/shapes.d.ts +1 -2
- package/dist/geometry/stitch.d.ts +0 -1
- package/dist/geometry/time.d.ts +0 -1
- package/dist/geometry/tips.d.ts +1 -2
- package/dist/geometry/transform.d.ts +1 -2
- package/dist/geometry/view-matrix.d.ts +2 -3
- package/dist/geometry/write-phase.d.ts +0 -1
- package/dist/geometry3d/camera.d.ts +1 -2
- package/dist/geometry3d/index.d.ts +4 -5
- package/dist/geometry3d/mat.d.ts +0 -3
- package/dist/index.d.ts +34 -35
- package/dist/interact/constrain.d.ts +3 -4
- package/dist/interact/drag.d.ts +5 -6
- package/dist/interact/drop.d.ts +1 -2
- package/dist/interact/hit.d.ts +4 -5
- package/dist/interact/index.d.ts +11 -12
- package/dist/interact/item-order.d.ts +3 -4
- package/dist/interact/param.d.ts +3 -4
- package/dist/interact/pick-items.d.ts +2 -3
- package/dist/interact/pointer.d.ts +2 -3
- package/dist/interact/registry.d.ts +2 -3
- package/dist/interact/slop.d.ts +0 -1
- package/dist/interact/types.d.ts +4 -5
- package/dist/labels/decimal-number.d.ts +6 -7
- package/dist/labels/digits.d.ts +1 -2
- package/dist/labels/index.d.ts +4 -5
- package/dist/labels/paragraph.d.ts +8 -9
- package/dist/labels/text-layout.d.ts +4 -5
- package/dist/network/index.d.ts +2 -3
- package/dist/network/network-graph.d.ts +7 -8
- package/dist/reactive/index.d.ts +2 -3
- package/dist/reactive/track.d.ts +0 -1
- package/dist/render/a11y.d.ts +6 -7
- package/dist/render/camera-gesture.d.ts +1 -2
- package/dist/render/camera.d.ts +3 -4
- package/dist/render/canvas-renderer.d.ts +7 -8
- package/dist/render/index.d.ts +8 -9
- package/dist/render/layer-cache.d.ts +2 -3
- package/dist/render/paint-items.d.ts +5 -6
- package/dist/render/paint.d.ts +4 -5
- package/dist/render/pointer-core.d.ts +5 -6
- package/dist/render/pointer-drop.d.ts +3 -4
- package/dist/render/pointer-gestures.d.ts +5 -6
- package/dist/render/pointer-presence.d.ts +3 -4
- package/dist/render/pointer-wheel.d.ts +3 -4
- package/dist/render/pointer.d.ts +8 -9
- package/dist/scene/cameras.d.ts +5 -6
- package/dist/scene/composite.d.ts +5 -6
- package/dist/scene/container.d.ts +4 -5
- package/dist/scene/context.d.ts +6 -7
- package/dist/scene/fonts.d.ts +3 -4
- package/dist/scene/graph.d.ts +4 -5
- package/dist/scene/group.d.ts +6 -7
- package/dist/scene/index.d.ts +21 -22
- package/dist/scene/instance-bank.d.ts +3 -4
- package/dist/scene/instance-marks.d.ts +5 -6
- package/dist/scene/instance-node.d.ts +7 -8
- package/dist/scene/instances.d.ts +5 -6
- package/dist/scene/interaction-group-context.d.ts +2 -3
- package/dist/scene/interaction-group.d.ts +3 -4
- package/dist/scene/interaction-props.d.ts +2 -3
- package/dist/scene/interaction.d.ts +2 -3
- package/dist/scene/marks.d.ts +7 -8
- package/dist/scene/node.d.ts +8 -9
- package/dist/scene/pan-zoom.d.ts +4 -5
- package/dist/scene/path-batch.d.ts +4 -5
- package/dist/scene/primitive.d.ts +5 -6
- package/dist/scene/scene.d.ts +20 -21
- package/dist/scene/shape.d.ts +10 -11
- package/dist/scene/text.d.ts +10 -11
- package/dist/scene/types.d.ts +5 -6
- package/dist/shapes/angle.d.ts +5 -6
- package/dist/shapes/animated-boundary.d.ts +5 -6
- package/dist/shapes/arc.d.ts +7 -8
- package/dist/shapes/bezier.d.ts +4 -5
- package/dist/shapes/brace.d.ts +4 -5
- package/dist/shapes/circle.d.ts +4 -5
- package/dist/shapes/dot.d.ts +6 -7
- package/dist/shapes/forward.d.ts +3 -4
- package/dist/shapes/index.d.ts +30 -31
- package/dist/shapes/line.d.ts +12 -13
- package/dist/shapes/matchers.d.ts +4 -5
- package/dist/shapes/path.d.ts +4 -5
- package/dist/shapes/polygon.d.ts +3 -4
- package/dist/shapes/polygram.d.ts +5 -6
- package/dist/shapes/rect.d.ts +4 -5
- package/dist/shapes/traced-path.d.ts +6 -7
- package/dist/shapes/transform-matching-shapes.d.ts +4 -5
- package/dist/spec/bake.d.ts +6 -7
- package/dist/spec/clip.d.ts +3 -4
- package/dist/spec/colorRampProp.d.ts +2 -3
- package/dist/spec/compile.d.ts +1 -2
- package/dist/spec/gradient.d.ts +3 -4
- package/dist/spec/index.d.ts +8 -9
- package/dist/spec/layout.d.ts +2 -3
- package/dist/spec/metrics.d.ts +2 -3
- package/dist/spec/types.d.ts +2 -3
- package/dist/themes/catppuccin.d.ts +1 -2
- package/dist/themes/colormap.d.ts +1 -2
- package/dist/themes/css.d.ts +1 -2
- package/dist/themes/index.d.ts +13 -14
- package/dist/themes/mode.d.ts +2 -3
- package/dist/themes/palette.d.ts +1 -2
- package/dist/themes/ramp.d.ts +1 -2
- package/dist/themes/theme.d.ts +1 -2
- package/dist/themes/types.d.ts +1 -2
- package/dist/tween/clock.d.ts +2 -3
- package/dist/tween/easing.d.ts +0 -1
- package/dist/tween/frame-loop.d.ts +1 -2
- package/dist/tween/index.d.ts +19 -20
- package/dist/tween/interpolate.d.ts +1 -2
- package/dist/tween/interpolators.d.ts +5 -6
- package/dist/tween/reduced-motion.d.ts +1 -2
- package/dist/tween/spring.d.ts +1 -2
- package/dist/tween/target.d.ts +0 -1
- package/dist/tween/track.d.ts +2 -3
- package/package.json +2 -2
- package/dist/anim/animation.d.ts.map +0 -1
- package/dist/anim/draw.d.ts.map +0 -1
- package/dist/anim/emphasis.d.ts.map +0 -1
- package/dist/anim/fade.d.ts.map +0 -1
- package/dist/anim/growing.d.ts.map +0 -1
- package/dist/anim/index.d.ts.map +0 -1
- package/dist/anim/indication.d.ts.map +0 -1
- package/dist/anim/move.d.ts.map +0 -1
- package/dist/anim/movement.d.ts.map +0 -1
- package/dist/anim/points.d.ts.map +0 -1
- package/dist/anim/sequence.d.ts.map +0 -1
- package/dist/anim/slots.d.ts.map +0 -1
- package/dist/anim/speed.d.ts.map +0 -1
- package/dist/anim/spring.d.ts.map +0 -1
- package/dist/anim/timeline.d.ts.map +0 -1
- package/dist/anim/transform.d.ts.map +0 -1
- package/dist/anim/tween.d.ts.map +0 -1
- package/dist/anim/types.d.ts.map +0 -1
- package/dist/color/convert.d.ts.map +0 -1
- package/dist/color/index.d.ts.map +0 -1
- package/dist/color/named.d.ts.map +0 -1
- package/dist/color/ops.d.ts.map +0 -1
- package/dist/color/parse.d.ts.map +0 -1
- package/dist/color/random.d.ts.map +0 -1
- package/dist/color/types.d.ts.map +0 -1
- package/dist/coords/axes.d.ts.map +0 -1
- package/dist/coords/axis-composition.d.ts.map +0 -1
- package/dist/coords/axis-labels.d.ts.map +0 -1
- package/dist/coords/complex-plane.d.ts.map +0 -1
- package/dist/coords/coords.d.ts.map +0 -1
- package/dist/coords/function-graph.d.ts.map +0 -1
- package/dist/coords/graph-annotations.d.ts.map +0 -1
- package/dist/coords/grid-lines.d.ts.map +0 -1
- package/dist/coords/implicit-function.d.ts.map +0 -1
- package/dist/coords/index.d.ts.map +0 -1
- package/dist/coords/linear-transform.d.ts.map +0 -1
- package/dist/coords/number-line.d.ts.map +0 -1
- package/dist/coords/number-plane.d.ts.map +0 -1
- package/dist/coords/polar-plane.d.ts.map +0 -1
- package/dist/coords/tangent.d.ts.map +0 -1
- package/dist/coords/vector-field.d.ts.map +0 -1
- package/dist/entries/color.d.ts.map +0 -1
- package/dist/entries/definitions.d.ts.map +0 -1
- package/dist/entries/geometry.d.ts.map +0 -1
- package/dist/entries/internal.d.ts.map +0 -1
- package/dist/entries/themes.d.ts.map +0 -1
- package/dist/export/frames.d.ts.map +0 -1
- package/dist/export/index.d.ts.map +0 -1
- package/dist/geometry/arc.d.ts.map +0 -1
- package/dist/geometry/band.d.ts.map +0 -1
- package/dist/geometry/bounds.d.ts.map +0 -1
- package/dist/geometry/brace.d.ts.map +0 -1
- package/dist/geometry/complex.d.ts.map +0 -1
- package/dist/geometry/curves.d.ts.map +0 -1
- package/dist/geometry/delaunay.d.ts.map +0 -1
- package/dist/geometry/field.d.ts.map +0 -1
- package/dist/geometry/graph-layout.d.ts.map +0 -1
- package/dist/geometry/implicit.d.ts.map +0 -1
- package/dist/geometry/index.d.ts.map +0 -1
- package/dist/geometry/lerp.d.ts.map +0 -1
- package/dist/geometry/morph.d.ts.map +0 -1
- package/dist/geometry/num.d.ts.map +0 -1
- package/dist/geometry/path/arclength.d.ts.map +0 -1
- package/dist/geometry/path/cubic.d.ts.map +0 -1
- package/dist/geometry/path/outline-reveal.d.ts.map +0 -1
- package/dist/geometry/path/svg-path.d.ts.map +0 -1
- package/dist/geometry/path/types.d.ts.map +0 -1
- package/dist/geometry/resolver.d.ts.map +0 -1
- package/dist/geometry/scale/range-transition.d.ts.map +0 -1
- package/dist/geometry/scale/scales.d.ts.map +0 -1
- package/dist/geometry/scale/tick-format.d.ts.map +0 -1
- package/dist/geometry/scale/ticks.d.ts.map +0 -1
- package/dist/geometry/shape-match.d.ts.map +0 -1
- package/dist/geometry/shapes.d.ts.map +0 -1
- package/dist/geometry/stitch.d.ts.map +0 -1
- package/dist/geometry/time.d.ts.map +0 -1
- package/dist/geometry/tips.d.ts.map +0 -1
- package/dist/geometry/transform.d.ts.map +0 -1
- package/dist/geometry/view-matrix.d.ts.map +0 -1
- package/dist/geometry/write-phase.d.ts.map +0 -1
- package/dist/geometry3d/camera.d.ts.map +0 -1
- package/dist/geometry3d/index.d.ts.map +0 -1
- package/dist/geometry3d/mat.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/interact/constrain.d.ts.map +0 -1
- package/dist/interact/drag.d.ts.map +0 -1
- package/dist/interact/drop.d.ts.map +0 -1
- package/dist/interact/hit.d.ts.map +0 -1
- package/dist/interact/index.d.ts.map +0 -1
- package/dist/interact/item-order.d.ts.map +0 -1
- package/dist/interact/param.d.ts.map +0 -1
- package/dist/interact/pick-items.d.ts.map +0 -1
- package/dist/interact/pointer.d.ts.map +0 -1
- package/dist/interact/registry.d.ts.map +0 -1
- package/dist/interact/slop.d.ts.map +0 -1
- package/dist/interact/types.d.ts.map +0 -1
- package/dist/labels/decimal-number.d.ts.map +0 -1
- package/dist/labels/digits.d.ts.map +0 -1
- package/dist/labels/index.d.ts.map +0 -1
- package/dist/labels/paragraph.d.ts.map +0 -1
- package/dist/labels/text-layout.d.ts.map +0 -1
- package/dist/network/index.d.ts.map +0 -1
- package/dist/network/network-graph.d.ts.map +0 -1
- package/dist/reactive/index.d.ts.map +0 -1
- package/dist/reactive/track.d.ts.map +0 -1
- package/dist/render/a11y.d.ts.map +0 -1
- package/dist/render/camera-gesture.d.ts.map +0 -1
- package/dist/render/camera.d.ts.map +0 -1
- package/dist/render/canvas-renderer.d.ts.map +0 -1
- package/dist/render/index.d.ts.map +0 -1
- package/dist/render/layer-cache.d.ts.map +0 -1
- package/dist/render/paint-items.d.ts.map +0 -1
- package/dist/render/paint.d.ts.map +0 -1
- package/dist/render/pointer-core.d.ts.map +0 -1
- package/dist/render/pointer-drop.d.ts.map +0 -1
- package/dist/render/pointer-gestures.d.ts.map +0 -1
- package/dist/render/pointer-presence.d.ts.map +0 -1
- package/dist/render/pointer-wheel.d.ts.map +0 -1
- package/dist/render/pointer.d.ts.map +0 -1
- package/dist/scene/cameras.d.ts.map +0 -1
- package/dist/scene/composite.d.ts.map +0 -1
- package/dist/scene/container.d.ts.map +0 -1
- package/dist/scene/context.d.ts.map +0 -1
- package/dist/scene/fonts.d.ts.map +0 -1
- package/dist/scene/graph.d.ts.map +0 -1
- package/dist/scene/group.d.ts.map +0 -1
- package/dist/scene/index.d.ts.map +0 -1
- package/dist/scene/instance-bank.d.ts.map +0 -1
- package/dist/scene/instance-marks.d.ts.map +0 -1
- package/dist/scene/instance-node.d.ts.map +0 -1
- package/dist/scene/instances.d.ts.map +0 -1
- package/dist/scene/interaction-group-context.d.ts.map +0 -1
- package/dist/scene/interaction-group.d.ts.map +0 -1
- package/dist/scene/interaction-props.d.ts.map +0 -1
- package/dist/scene/interaction.d.ts.map +0 -1
- package/dist/scene/marks.d.ts.map +0 -1
- package/dist/scene/node.d.ts.map +0 -1
- package/dist/scene/pan-zoom.d.ts.map +0 -1
- package/dist/scene/path-batch.d.ts.map +0 -1
- package/dist/scene/primitive.d.ts.map +0 -1
- package/dist/scene/scene.d.ts.map +0 -1
- package/dist/scene/shape.d.ts.map +0 -1
- package/dist/scene/text.d.ts.map +0 -1
- package/dist/scene/types.d.ts.map +0 -1
- package/dist/shapes/angle.d.ts.map +0 -1
- package/dist/shapes/animated-boundary.d.ts.map +0 -1
- package/dist/shapes/arc.d.ts.map +0 -1
- package/dist/shapes/bezier.d.ts.map +0 -1
- package/dist/shapes/brace.d.ts.map +0 -1
- package/dist/shapes/circle.d.ts.map +0 -1
- package/dist/shapes/dot.d.ts.map +0 -1
- package/dist/shapes/forward.d.ts.map +0 -1
- package/dist/shapes/index.d.ts.map +0 -1
- package/dist/shapes/line.d.ts.map +0 -1
- package/dist/shapes/matchers.d.ts.map +0 -1
- package/dist/shapes/path.d.ts.map +0 -1
- package/dist/shapes/polygon.d.ts.map +0 -1
- package/dist/shapes/polygram.d.ts.map +0 -1
- package/dist/shapes/rect.d.ts.map +0 -1
- package/dist/shapes/traced-path.d.ts.map +0 -1
- package/dist/shapes/transform-matching-shapes.d.ts.map +0 -1
- package/dist/spec/bake.d.ts.map +0 -1
- package/dist/spec/clip.d.ts.map +0 -1
- package/dist/spec/colorRampProp.d.ts.map +0 -1
- package/dist/spec/compile.d.ts.map +0 -1
- package/dist/spec/gradient.d.ts.map +0 -1
- package/dist/spec/index.d.ts.map +0 -1
- package/dist/spec/layout.d.ts.map +0 -1
- package/dist/spec/metrics.d.ts.map +0 -1
- package/dist/spec/types.d.ts.map +0 -1
- package/dist/themes/catppuccin.d.ts.map +0 -1
- package/dist/themes/colormap.d.ts.map +0 -1
- package/dist/themes/css.d.ts.map +0 -1
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/mode.d.ts.map +0 -1
- package/dist/themes/palette.d.ts.map +0 -1
- package/dist/themes/ramp.d.ts.map +0 -1
- package/dist/themes/theme.d.ts.map +0 -1
- package/dist/themes/types.d.ts.map +0 -1
- package/dist/tween/clock.d.ts.map +0 -1
- package/dist/tween/easing.d.ts.map +0 -1
- package/dist/tween/frame-loop.d.ts.map +0 -1
- package/dist/tween/index.d.ts.map +0 -1
- package/dist/tween/interpolate.d.ts.map +0 -1
- package/dist/tween/interpolators.d.ts.map +0 -1
- package/dist/tween/reduced-motion.d.ts.map +0 -1
- package/dist/tween/spring.d.ts.map +0 -1
- package/dist/tween/target.d.ts.map +0 -1
- package/dist/tween/track.d.ts.map +0 -1
package/dist/shapes/line.d.ts
CHANGED
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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
|
package/dist/shapes/path.d.ts
CHANGED
|
@@ -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("
|
|
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("
|
|
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>;
|
package/dist/shapes/polygon.d.ts
CHANGED
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
119
|
-
//# sourceMappingURL=polygram.d.ts.map
|
|
118
|
+
export declare const polygram: import("../index.js").Definition<PolygramProps, import("../scene/shape.js").ShapeNode<PolygramProps>, ShapeInstanceable>;
|
package/dist/shapes/rect.d.ts
CHANGED
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
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>;
|
package/dist/spec/bake.d.ts
CHANGED
|
@@ -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
|
package/dist/spec/clip.d.ts
CHANGED
|
@@ -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
|
package/dist/spec/compile.d.ts
CHANGED
|
@@ -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
|
package/dist/spec/gradient.d.ts
CHANGED
|
@@ -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
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -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";
|
package/dist/spec/layout.d.ts
CHANGED
|
@@ -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
|
package/dist/spec/metrics.d.ts
CHANGED
|
@@ -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
|
package/dist/spec/types.d.ts
CHANGED
|
@@ -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
|
package/dist/themes/css.d.ts
CHANGED
|
@@ -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
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -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";
|
package/dist/themes/mode.d.ts
CHANGED
|
@@ -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
|
package/dist/themes/palette.d.ts
CHANGED
|
@@ -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
|
package/dist/themes/ramp.d.ts
CHANGED
|
@@ -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
|
package/dist/themes/theme.d.ts
CHANGED
|
@@ -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
|
package/dist/themes/types.d.ts
CHANGED
|
@@ -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
|
package/dist/tween/clock.d.ts
CHANGED
|
@@ -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
|
package/dist/tween/easing.d.ts
CHANGED
|
@@ -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
|