@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/anim/animation.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* script at one absolute time per clock step, which keeps composition exact and
|
|
5
5
|
* makes fast-forward and scrubbing work. No canvas, no clock here.
|
|
6
6
|
*/
|
|
7
|
-
import type { Easing } from "../tween/easing";
|
|
7
|
+
import type { Easing } from "../tween/easing.js";
|
|
8
8
|
/**
|
|
9
9
|
* Floating-point slack, in seconds, when comparing absolute times. Child
|
|
10
10
|
* offsets are sums of floats (`0.1 + 0.2`), so a child that "should" be exactly
|
|
@@ -205,4 +205,3 @@ export type CycleStart = "continue" | "fixed";
|
|
|
205
205
|
* anywhere, in either direction, is exact.
|
|
206
206
|
*/
|
|
207
207
|
export declare function cycles(inner: Animation, times: number, start?: CycleStart): Animation;
|
|
208
|
-
//# sourceMappingURL=animation.d.ts.map
|
package/dist/anim/draw.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* that into an arc-length reveal. A shape's polylines share one budget, spent in
|
|
6
6
|
* order, so a multi-part shape draws part by part rather than all at once.
|
|
7
7
|
*/
|
|
8
|
-
import type { Animatable } from "../tween";
|
|
9
|
-
import type { Animation, AnimOptions } from "./types";
|
|
8
|
+
import type { Animatable } from "../tween/index.js";
|
|
9
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
10
10
|
/** @category Animation presets */
|
|
11
11
|
export interface DrawOptions extends AnimOptions {
|
|
12
12
|
/** Progress (0..1) to reset the track to before drawing; defaults to the track's current value. */
|
|
@@ -106,4 +106,3 @@ export declare function unwrite(progresses: Animatable<number>[], options?: Unwr
|
|
|
106
106
|
export declare function drawBorderThenFill(progress: Animatable<number>, fillOpacity: Animatable<number>, options?: AnimOptions & {
|
|
107
107
|
fillTo?: number;
|
|
108
108
|
}): Animation;
|
|
109
|
-
//# sourceMappingURL=draw.d.ts.map
|
package/dist/anim/emphasis.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* to exactly where it started, so they can be fired at any time without
|
|
6
6
|
* disturbing the scene's resting state.
|
|
7
7
|
*/
|
|
8
|
-
import type { Animatable } from "../tween";
|
|
9
|
-
import type { Animation, AnimOptions } from "./types";
|
|
8
|
+
import type { Animatable } from "../tween/index.js";
|
|
9
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
10
10
|
/** @category Animation presets */
|
|
11
11
|
export interface IndicateOptions extends AnimOptions {
|
|
12
12
|
/**
|
|
@@ -91,4 +91,3 @@ export declare function pulse(scale: Animatable<number>, options?: AnimOptions &
|
|
|
91
91
|
* @category Animation presets
|
|
92
92
|
*/
|
|
93
93
|
export declare function circumscribe(progress: Animatable<number>, options?: AnimOptions): Animation;
|
|
94
|
-
//# sourceMappingURL=emphasis.d.ts.map
|
package/dist/anim/fade.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Fades. The whole category is one opacity tween, plus optional drift so
|
|
3
3
|
* `FadeIn(shift=UP)` has an equivalent.
|
|
4
4
|
*/
|
|
5
|
-
import type { Point } from "../geometry";
|
|
6
|
-
import type { Animatable } from "../tween";
|
|
7
|
-
import type { Animation, AnimOptions } from "./types";
|
|
5
|
+
import type { Point } from "../geometry/index.js";
|
|
6
|
+
import type { Animatable } from "../tween/index.js";
|
|
7
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
8
8
|
/** @category Animation presets */
|
|
9
9
|
export interface FadeOptions extends AnimOptions {
|
|
10
10
|
/**
|
|
@@ -80,4 +80,3 @@ export declare function fadeInFrom(opacity: Animatable<number>, position: Animat
|
|
|
80
80
|
* @category Animation presets
|
|
81
81
|
*/
|
|
82
82
|
export declare function fadeOutTo(opacity: Animatable<number>, position: Animatable<Point>, offset: Point, options?: AnimOptions): Animation;
|
|
83
|
-
//# sourceMappingURL=fade.d.ts.map
|
package/dist/anim/growing.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* held through `delay`, and an aborted grow snaps back to rest so a cancelled
|
|
5
5
|
* script never leaves a shape half-size or invisible.
|
|
6
6
|
*/
|
|
7
|
-
import type { Bounds, Point } from "../geometry";
|
|
8
|
-
import type { Animatable } from "../tween";
|
|
9
|
-
import type { Animation, AnimOptions } from "./types";
|
|
7
|
+
import type { Bounds, Point } from "../geometry/index.js";
|
|
8
|
+
import type { Animatable } from "../tween/index.js";
|
|
9
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
10
10
|
/**
|
|
11
11
|
* `GrowFromCenter` — the shape swells from nothing about its own centre.
|
|
12
12
|
*
|
|
@@ -90,4 +90,3 @@ export interface SpinInOptions extends AnimOptions {
|
|
|
90
90
|
* @category Animation presets
|
|
91
91
|
*/
|
|
92
92
|
export declare function spinInFromNothing(scale: Animatable<number>, rotation: Animatable<number>, options?: SpinInOptions): Animation;
|
|
93
|
-
//# sourceMappingURL=growing.d.ts.map
|
package/dist/anim/index.d.ts
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
export type { Animation, CycleStart, LeafHooks, LeafTiming, Placed, } from "./animation";
|
|
2
|
-
export { animation, compose, cycles, EPSILON, easedLeaf, restTime, sampleTime, } from "./animation";
|
|
3
|
-
export type { DrawOptions, UnwriteOptions, WriteOptions } from "./draw";
|
|
4
|
-
export { draw, drawBorderThenFill, erase, unwrite, write } from "./draw";
|
|
5
|
-
export type { IndicateOptions } from "./emphasis";
|
|
6
|
-
export { circumscribe, flash, indicate, pulse, wiggle } from "./emphasis";
|
|
7
|
-
export type { FadeOptions } from "./fade";
|
|
8
|
-
export { fadeIn, fadeInFrom, fadeOut, fadeOutTo, fadeTo } from "./fade";
|
|
9
|
-
export type { SpinInOptions } from "./growing";
|
|
10
|
-
export { growFromCenter, growFromEdge, growFromPoint, shrinkToCenter, spinInFromNothing, } from "./growing";
|
|
11
|
-
export type { ApplyWaveOptions, BlinkOptions, FocusOnOptions, } from "./indication";
|
|
12
|
-
export { applyWave, blink, focusOn, passingFlash, showPassingFlash, } from "./indication";
|
|
13
|
-
export type { MoveOptions } from "./move";
|
|
14
|
-
export { colorTo, moveAlong, moveBy, moveTo, rotateBy, rotateTo, scaleTo, valueTo, } from "./move";
|
|
15
|
-
export type { ApplyFunctionOptions, PhaseFlowOptions, PointMapOptions, } from "./movement";
|
|
16
|
-
export { applyComplexFunction, applyFunction, homotopy, phaseFlow, } from "./movement";
|
|
17
|
-
export type { LaggedOptions, RepeatOptions } from "./sequence";
|
|
18
|
-
export { forever, hold, lagged, parallel, repeat, sequence } from "./sequence";
|
|
19
|
-
export type { ArcMotionOptions, CircleSlotsOptions, GridSlotsOptions, Motion, MotionContext, Presence, RowSlotsOptions, SlotItem, SlotLayout, SlotOpOptions, SlotPlan, Slots, SlotsOptions, } from "./slots";
|
|
20
|
-
export { arcMotion, circleSlots, createSlots, gridSlots, rowSlots, } from "./slots";
|
|
21
|
-
export type { SpeedSpec } from "./speed";
|
|
22
|
-
export { changeSpeed } from "./speed";
|
|
23
|
-
export type { FollowOptions, SpringToOptions } from "./spring";
|
|
24
|
-
export { follow, springTo } from "./spring";
|
|
25
|
-
export type { PlayContext, PlayResult, Timeline, TimelineInternals, } from "./timeline";
|
|
26
|
-
export { anySignal, play, splitPlayArguments, timeline, timelineInternals, } from "./timeline";
|
|
27
|
-
export type { MorphOptions } from "./transform";
|
|
28
|
-
export { morph, morphCurve, morphPath, morphWith } from "./transform";
|
|
29
|
-
export type { TweenOptions } from "./tween";
|
|
30
|
-
export { tween, wait } from "./tween";
|
|
31
|
-
export type { AnimOptions, DriveProgressOptions, DriveTrackOptions, } from "./types";
|
|
32
|
-
export { driveProgress, driveTrack } from "./types";
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export type { Animation, CycleStart, LeafHooks, LeafTiming, Placed, } from "./animation.js";
|
|
2
|
+
export { animation, compose, cycles, EPSILON, easedLeaf, restTime, sampleTime, } from "./animation.js";
|
|
3
|
+
export type { DrawOptions, UnwriteOptions, WriteOptions } from "./draw.js";
|
|
4
|
+
export { draw, drawBorderThenFill, erase, unwrite, write } from "./draw.js";
|
|
5
|
+
export type { IndicateOptions } from "./emphasis.js";
|
|
6
|
+
export { circumscribe, flash, indicate, pulse, wiggle } from "./emphasis.js";
|
|
7
|
+
export type { FadeOptions } from "./fade.js";
|
|
8
|
+
export { fadeIn, fadeInFrom, fadeOut, fadeOutTo, fadeTo } from "./fade.js";
|
|
9
|
+
export type { SpinInOptions } from "./growing.js";
|
|
10
|
+
export { growFromCenter, growFromEdge, growFromPoint, shrinkToCenter, spinInFromNothing, } from "./growing.js";
|
|
11
|
+
export type { ApplyWaveOptions, BlinkOptions, FocusOnOptions, } from "./indication.js";
|
|
12
|
+
export { applyWave, blink, focusOn, passingFlash, showPassingFlash, } from "./indication.js";
|
|
13
|
+
export type { MoveOptions } from "./move.js";
|
|
14
|
+
export { colorTo, moveAlong, moveBy, moveTo, rotateBy, rotateTo, scaleTo, valueTo, } from "./move.js";
|
|
15
|
+
export type { ApplyFunctionOptions, PhaseFlowOptions, PointMapOptions, } from "./movement.js";
|
|
16
|
+
export { applyComplexFunction, applyFunction, homotopy, phaseFlow, } from "./movement.js";
|
|
17
|
+
export type { LaggedOptions, RepeatOptions } from "./sequence.js";
|
|
18
|
+
export { forever, hold, lagged, parallel, repeat, sequence, } from "./sequence.js";
|
|
19
|
+
export type { ArcMotionOptions, CircleSlotsOptions, GridSlotsOptions, Motion, MotionContext, Presence, RowSlotsOptions, SlotItem, SlotLayout, SlotOpOptions, SlotPlan, Slots, SlotsOptions, } from "./slots.js";
|
|
20
|
+
export { arcMotion, circleSlots, createSlots, gridSlots, rowSlots, } from "./slots.js";
|
|
21
|
+
export type { SpeedSpec } from "./speed.js";
|
|
22
|
+
export { changeSpeed } from "./speed.js";
|
|
23
|
+
export type { FollowOptions, SpringToOptions } from "./spring.js";
|
|
24
|
+
export { follow, springTo } from "./spring.js";
|
|
25
|
+
export type { PlayContext, PlayResult, Timeline, TimelineInternals, } from "./timeline.js";
|
|
26
|
+
export { anySignal, play, splitPlayArguments, timeline, timelineInternals, } from "./timeline.js";
|
|
27
|
+
export type { MorphOptions } from "./transform.js";
|
|
28
|
+
export { morph, morphCurve, morphPath, morphWith } from "./transform.js";
|
|
29
|
+
export type { TweenOptions } from "./tween.js";
|
|
30
|
+
export { tween, wait } from "./tween.js";
|
|
31
|
+
export type { AnimOptions, DriveProgressOptions, DriveTrackOptions, } from "./types.js";
|
|
32
|
+
export { driveProgress, driveTrack } from "./types.js";
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* is not a value but a *dash*, so the animation drives a plain 0..1 track and
|
|
9
9
|
* {@link passingFlash} turns that into the stroke's `dash`/`dashOffset`.
|
|
10
10
|
*/
|
|
11
|
-
import type { Point, Polyline } from "../geometry";
|
|
12
|
-
import type { Animatable } from "../tween";
|
|
13
|
-
import type { Animation, AnimOptions } from "./types";
|
|
11
|
+
import type { Point, Polyline } from "../geometry/index.js";
|
|
12
|
+
import type { Animatable } from "../tween/index.js";
|
|
13
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
14
14
|
/** @category Animation presets */
|
|
15
15
|
export interface BlinkOptions extends Omit<AnimOptions, "easing"> {
|
|
16
16
|
/**
|
|
@@ -155,4 +155,3 @@ export interface ApplyWaveOptions extends AnimOptions {
|
|
|
155
155
|
* @category Animation presets
|
|
156
156
|
*/
|
|
157
157
|
export declare function applyWave<T extends Polyline | Polyline[]>(points: Animatable<T>, options?: ApplyWaveOptions): Animation;
|
|
158
|
-
//# sourceMappingURL=indication.d.ts.map
|
package/dist/anim/move.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* `rotateTo` and `scaleTo` forward to it, and `moveTo` and `colorTo` call
|
|
5
5
|
* `driveTrack` with the matching `resolveInterpolator` entry.
|
|
6
6
|
*/
|
|
7
|
-
import type { ColorSpace } from "../color";
|
|
8
|
-
import type { Point, Polyline } from "../geometry";
|
|
9
|
-
import type { Animatable } from "../tween";
|
|
10
|
-
import type { Animation, AnimOptions } from "./types";
|
|
7
|
+
import type { ColorSpace } from "../color/index.js";
|
|
8
|
+
import type { Point, Polyline } from "../geometry/index.js";
|
|
9
|
+
import type { Animatable } from "../tween/index.js";
|
|
10
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
11
11
|
/**
|
|
12
12
|
* Tweens a position track to an absolute point, in scene units.
|
|
13
13
|
*
|
|
@@ -121,4 +121,3 @@ export declare function scaleTo(scale: Animatable<number>, factor: number, optio
|
|
|
121
121
|
export declare function colorTo(color: Animatable<string>, to: string, options?: AnimOptions & {
|
|
122
122
|
colorSpace?: ColorSpace;
|
|
123
123
|
}): Animation;
|
|
124
|
-
//# sourceMappingURL=move.d.ts.map
|
package/dist/anim/movement.d.ts
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* by default into pieces of a sixty-fourth of the shape's size. Linear maps
|
|
12
12
|
* need none of this; `linearTransform()` does those exactly and for free.
|
|
13
13
|
*/
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
16
|
-
import type { Animatable } from "../tween";
|
|
17
|
-
import type { Animation, AnimOptions } from "./types";
|
|
14
|
+
import type { Complex } from "../geometry/complex.js";
|
|
15
|
+
import type { Point, Polyline } from "../geometry/index.js";
|
|
16
|
+
import type { Animatable } from "../tween/index.js";
|
|
17
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
18
18
|
/** @category Animation presets */
|
|
19
19
|
export interface PointMapOptions extends AnimOptions {
|
|
20
20
|
/**
|
|
@@ -112,4 +112,3 @@ export interface PhaseFlowOptions extends PointMapOptions {
|
|
|
112
112
|
* @category Animation presets
|
|
113
113
|
*/
|
|
114
114
|
export declare function phaseFlow<T extends Polyline | Polyline[]>(points: Animatable<T>, f: (point: Point) => Point, options?: PhaseFlowOptions): Animation;
|
|
115
|
-
//# sourceMappingURL=movement.d.ts.map
|
package/dist/anim/points.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* edge has, or a long edge stays straight while everything around it curves.
|
|
6
6
|
* Internal to `anim/`.
|
|
7
7
|
*/
|
|
8
|
-
import type { Polyline } from "../geometry";
|
|
8
|
+
import type { Polyline } from "../geometry/index.js";
|
|
9
9
|
/** A points track's value as rings, and how to put rings back into that shape. */
|
|
10
10
|
export declare function asRings<T extends Polyline | Polyline[]>(value: T): {
|
|
11
11
|
rings: Polyline[];
|
|
@@ -22,4 +22,3 @@ export declare const MAX_SPLIT_POINTS = 4000;
|
|
|
22
22
|
* leaves the rings as they are.
|
|
23
23
|
*/
|
|
24
24
|
export declare function splitLongEdges(rings: Polyline[], step: number): Polyline[];
|
|
25
|
-
//# sourceMappingURL=points.d.ts.map
|
package/dist/anim/sequence.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* child `i` starts at `i * lag`, and none of it accumulates frame-rounding
|
|
9
9
|
* drift. See {@link Animation} for how seeking a composite treats its children.
|
|
10
10
|
*/
|
|
11
|
-
import type { Animation, CycleStart } from "./animation";
|
|
11
|
+
import type { Animation, CycleStart } from "./animation.js";
|
|
12
12
|
/**
|
|
13
13
|
* `AnimationGroup`: runs every animation at once; lasts as long as the
|
|
14
14
|
* longest.
|
|
@@ -133,4 +133,3 @@ export declare function repeat(animation: Animation, times?: number, options?: R
|
|
|
133
133
|
* @category Animation composition & timelines
|
|
134
134
|
*/
|
|
135
135
|
export declare function forever(animation: Animation, options?: RepeatOptions): Animation;
|
|
136
|
-
//# sourceMappingURL=sequence.d.ts.map
|
package/dist/anim/slots.d.ts
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* `items` is in stable registration order so a keyed list never remounts; slot
|
|
11
11
|
* order is `order`.
|
|
12
12
|
*/
|
|
13
|
-
import type { Point } from "../geometry";
|
|
14
|
-
import type { Readable, Track } from "../reactive";
|
|
15
|
-
import type { Easing } from "../tween";
|
|
16
|
-
import type { Animation } from "./animation";
|
|
13
|
+
import type { Point } from "../geometry/index.js";
|
|
14
|
+
import type { Readable, Track } from "../reactive/index.js";
|
|
15
|
+
import type { Easing } from "../tween/index.js";
|
|
16
|
+
import type { Animation } from "./animation.js";
|
|
17
17
|
/**
|
|
18
18
|
* Maps a slot index to a point in scene units.
|
|
19
19
|
*
|
|
@@ -301,4 +301,3 @@ export declare function arcMotion<K = string | number>(options?: ArcMotionOption
|
|
|
301
301
|
* @category Layout
|
|
302
302
|
*/
|
|
303
303
|
export declare function createSlots<K = string | number>(keys: readonly K[], options?: SlotsOptions<K>): Slots<K>;
|
|
304
|
-
//# sourceMappingURL=slots.d.ts.map
|
package/dist/anim/speed.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* inner animation follows (restore order, the first-entry capture) still
|
|
9
9
|
* holds. Only time changes.
|
|
10
10
|
*/
|
|
11
|
-
import type { Animation } from "./animation";
|
|
11
|
+
import type { Animation } from "./animation.js";
|
|
12
12
|
/**
|
|
13
13
|
* How fast to play: one factor for the whole animation, or speeds at points
|
|
14
14
|
* through it.
|
|
@@ -41,4 +41,3 @@ export type SpeedSpec = number | Readonly<Record<number, number>>;
|
|
|
41
41
|
* @category Animation composition & timelines
|
|
42
42
|
*/
|
|
43
43
|
export declare function changeSpeed(animation: Animation, speed: SpeedSpec): Animation;
|
|
44
|
-
//# sourceMappingURL=speed.d.ts.map
|
package/dist/anim/spring.d.ts
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
* change. Springs feed the ordinary interpolators with progress that can
|
|
11
11
|
* overshoot 0..1; the interpolators extrapolate (and clamp colour channels).
|
|
12
12
|
*/
|
|
13
|
-
import type { Readable } from "../reactive/track";
|
|
14
|
-
import type { Clock } from "../tween/clock";
|
|
15
|
-
import type { Interpolator } from "../tween/interpolate";
|
|
16
|
-
import type { SpringOptions } from "../tween/spring";
|
|
17
|
-
import type { Animatable } from "../tween/target";
|
|
18
|
-
import type { Animation } from "./animation";
|
|
13
|
+
import type { Readable } from "../reactive/track.js";
|
|
14
|
+
import type { Clock } from "../tween/clock.js";
|
|
15
|
+
import type { Interpolator } from "../tween/interpolate.js";
|
|
16
|
+
import type { SpringOptions } from "../tween/spring.js";
|
|
17
|
+
import type { Animatable } from "../tween/target.js";
|
|
18
|
+
import type { Animation } from "./animation.js";
|
|
19
19
|
/**
|
|
20
20
|
* Options for {@link springTo}.
|
|
21
21
|
*
|
|
@@ -144,4 +144,3 @@ export interface FollowOptions<T> {
|
|
|
144
144
|
* @category Springs
|
|
145
145
|
*/
|
|
146
146
|
export declare function follow<T>(target: Animatable<T>, source: Readable<T>, springOptions?: Omit<SpringOptions, "velocity">, options?: FollowOptions<T>): () => void;
|
|
147
|
-
//# sourceMappingURL=spring.d.ts.map
|
package/dist/anim/timeline.d.ts
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* to its absolute elapsed time each step, so composition is frame-exact and
|
|
10
10
|
* `clock.advance(10)` fast-forwards a nested script.
|
|
11
11
|
*/
|
|
12
|
-
import type { Readable } from "../reactive";
|
|
13
|
-
import type { Clock } from "../tween/clock";
|
|
14
|
-
import type { ReducedMotion } from "../tween/reduced-motion";
|
|
15
|
-
import type { Animation } from "./animation";
|
|
12
|
+
import type { Readable } from "../reactive/index.js";
|
|
13
|
+
import type { Clock } from "../tween/clock.js";
|
|
14
|
+
import type { ReducedMotion } from "../tween/reduced-motion.js";
|
|
15
|
+
import type { Animation } from "./animation.js";
|
|
16
16
|
/**
|
|
17
17
|
* How a run ended. `play()` and `timeline().play()` resolve with this and never
|
|
18
18
|
* reject, so scripts unwind with `if (result === "aborted") return;`.
|
|
@@ -207,4 +207,3 @@ export declare function anySignal(...signals: (AbortSignal | undefined)[]): Abor
|
|
|
207
207
|
* @category Animation composition & timelines
|
|
208
208
|
*/
|
|
209
209
|
export declare function play(...args: Animation[] | [...Animation[], PlayContext]): Promise<PlayResult>;
|
|
210
|
-
//# sourceMappingURL=timeline.d.ts.map
|
package/dist/anim/transform.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* for SVG shapes of many rings (holes, separate pieces), and `morphWith` to
|
|
5
5
|
* replay a prebuilt interpolator.
|
|
6
6
|
*/
|
|
7
|
-
import type { CurvePath, Polyline } from "../geometry";
|
|
8
|
-
import type { MorphInterpolator } from "../geometry/morph";
|
|
9
|
-
import type { Animatable } from "../tween";
|
|
10
|
-
import type { Animation, AnimOptions } from "./types";
|
|
7
|
+
import type { CurvePath, Polyline } from "../geometry/index.js";
|
|
8
|
+
import type { MorphInterpolator } from "../geometry/morph.js";
|
|
9
|
+
import type { Animatable } from "../tween/index.js";
|
|
10
|
+
import type { Animation, AnimOptions } from "./types.js";
|
|
11
11
|
/** @category Animation presets */
|
|
12
12
|
export interface MorphOptions extends AnimOptions {
|
|
13
13
|
/** Aligns ring correspondence so closed shapes don't spin en route. Pass `true` for polygons and circles. */
|
|
@@ -90,4 +90,3 @@ export declare function morphPath(rings: Animatable<Polyline[]>, from: string, t
|
|
|
90
90
|
* @category Animation presets
|
|
91
91
|
*/
|
|
92
92
|
export declare function morphWith(points: Animatable<Polyline>, interpolator: MorphInterpolator, options?: AnimOptions): Animation;
|
|
93
|
-
//# sourceMappingURL=transform.d.ts.map
|
package/dist/anim/tween.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* run through `play`, so it behaves the same, but does not compose; build an
|
|
5
5
|
* `Animation` with `driveTrack`/`driveProgress` to compose or scrub.
|
|
6
6
|
*/
|
|
7
|
-
import type { Clock } from "../tween/clock";
|
|
8
|
-
import type { Easing } from "../tween/easing";
|
|
9
|
-
import type { PlayResult } from "./timeline";
|
|
7
|
+
import type { Clock } from "../tween/clock.js";
|
|
8
|
+
import type { Easing } from "../tween/easing.js";
|
|
9
|
+
import type { PlayResult } from "./timeline.js";
|
|
10
10
|
/**
|
|
11
11
|
* Options for {@link tween}.
|
|
12
12
|
*
|
|
@@ -90,4 +90,3 @@ export declare function wait(seconds: number, options?: {
|
|
|
90
90
|
clock?: Clock;
|
|
91
91
|
signal?: AbortSignal;
|
|
92
92
|
}): Promise<PlayResult>;
|
|
93
|
-
//# sourceMappingURL=tween.d.ts.map
|
package/dist/anim/types.d.ts
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* Nothing in `anim/` imports `render/` or touches a canvas. These functions
|
|
12
12
|
* only ever read and write tracks over time.
|
|
13
13
|
*/
|
|
14
|
-
import type { Animatable, Easing } from "../tween";
|
|
15
|
-
import type { Animation } from "./animation";
|
|
16
|
-
export type { Animation } from "./animation";
|
|
14
|
+
import type { Animatable, Easing } from "../tween/index.js";
|
|
15
|
+
import type { Animation } from "./animation.js";
|
|
16
|
+
export type { Animation } from "./animation.js";
|
|
17
17
|
/**
|
|
18
18
|
* Options shared by every animation preset.
|
|
19
19
|
*
|
|
@@ -111,4 +111,3 @@ export interface DriveProgressOptions extends AnimOptions {
|
|
|
111
111
|
* @category Extending
|
|
112
112
|
*/
|
|
113
113
|
export declare function driveProgress(onUpdate: (t: number, raw: number) => void, options?: DriveProgressOptions): Animation;
|
|
114
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/color/convert.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* saturated colours dips through grey, an OKLCH one keeps lightness and chroma.
|
|
5
5
|
* `rgb` stays the default colour space for interpolation.
|
|
6
6
|
*/
|
|
7
|
-
import type { Color, ColorInput, ColorSpace } from "./types";
|
|
7
|
+
import type { Color, ColorInput, ColorSpace } from "./types.js";
|
|
8
8
|
/**
|
|
9
9
|
* Hue, saturation, lightness.
|
|
10
10
|
*
|
|
@@ -144,4 +144,3 @@ export interface ColorInterpolationOptions {
|
|
|
144
144
|
* @category Interpolation
|
|
145
145
|
*/
|
|
146
146
|
export declare function colorInterpolator(a: ColorInput, b: ColorInput, options?: ColorInterpolationOptions): (t: number) => Color;
|
|
147
|
-
//# sourceMappingURL=convert.d.ts.map
|
package/dist/color/index.d.ts
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* parser, one CSS serialiser, and the interpolation and shading operations.
|
|
4
4
|
* A leaf module (d3-color and d3-interpolate only).
|
|
5
5
|
*/
|
|
6
|
-
export type { ColorInterpolationOptions, Hsl, Hsv, Oklch, } from "./convert";
|
|
7
|
-
export { colorInterpolator, hslToRgb, hsvToRgb, oklchToRgb, rgbToHsl, rgbToHsv, rgbToOklch, } from "./convert";
|
|
8
|
-
export { BLACK, BLUE, GOLD, GREEN, GREY, GREY_A, GREY_B, GREY_C, GREY_D, GREY_E, MAROON, namedColors, ORANGE, PINK, PURPLE, RED, TEAL, WHITE, YELLOW, } from "./named";
|
|
9
|
-
export { darken, lighten, mixColor, shadeColor, withAlpha, } from "./ops";
|
|
10
|
-
export { cssColor, FALLBACK_COLOR, parseColor, toCss, tryParseColor, } from "./parse";
|
|
11
|
-
export type { RandomColorOptions } from "./random";
|
|
12
|
-
export { randomColor } from "./random";
|
|
13
|
-
export type { Color, ColorInput, ColorSpace } from "./types";
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
6
|
+
export type { ColorInterpolationOptions, Hsl, Hsv, Oklch, } from "./convert.js";
|
|
7
|
+
export { colorInterpolator, hslToRgb, hsvToRgb, oklchToRgb, rgbToHsl, rgbToHsv, rgbToOklch, } from "./convert.js";
|
|
8
|
+
export { BLACK, BLUE, GOLD, GREEN, GREY, GREY_A, GREY_B, GREY_C, GREY_D, GREY_E, MAROON, namedColors, ORANGE, PINK, PURPLE, RED, TEAL, WHITE, YELLOW, } from "./named.js";
|
|
9
|
+
export { darken, lighten, mixColor, shadeColor, withAlpha, } from "./ops.js";
|
|
10
|
+
export { cssColor, FALLBACK_COLOR, parseColor, toCss, tryParseColor, } from "./parse.js";
|
|
11
|
+
export type { RandomColorOptions } from "./random.js";
|
|
12
|
+
export { randomColor } from "./random.js";
|
|
13
|
+
export type { Color, ColorInput, ColorSpace } from "./types.js";
|
package/dist/color/named.d.ts
CHANGED
package/dist/color/ops.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* defaults to `"rgb"` (a plain blend), `lighten`/`darken` to `"oklch"` (so
|
|
5
5
|
* saturation holds). `shadeColor` scales RGB channels.
|
|
6
6
|
*/
|
|
7
|
-
import { type ColorInterpolationOptions } from "./convert";
|
|
8
|
-
import type { Color, ColorInput } from "./types";
|
|
7
|
+
import { type ColorInterpolationOptions } from "./convert.js";
|
|
8
|
+
import type { Color, ColorInput } from "./types.js";
|
|
9
9
|
/** `color` between `a` and `b`, at `t`, in RGB — the direct replacement for
|
|
10
10
|
* `mesh-math.ts`'s old `mixHexColor`, and the general "fade toward a base
|
|
11
11
|
* colour" primitive `scene/core/gradient.ts`'s `sheen` wants. Pass `{ colorSpace }`
|
|
@@ -93,4 +93,3 @@ export declare function shadeColor(color: ColorInput, intensity: number): Color;
|
|
|
93
93
|
* @category Colour
|
|
94
94
|
*/
|
|
95
95
|
export declare function withAlpha(color: ColorInput, alpha: number): Color;
|
|
96
|
-
//# sourceMappingURL=ops.d.ts.map
|
package/dist/color/parse.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* usually arrives from a scene author's prop, and a typo in a `fill` string
|
|
11
11
|
* should render something rather than crash the whole scene tree.
|
|
12
12
|
*/
|
|
13
|
-
import type { Color, ColorInput } from "./types";
|
|
13
|
+
import type { Color, ColorInput } from "./types.js";
|
|
14
14
|
/**
|
|
15
15
|
* The documented fallback for a colour string d3-color cannot parse:
|
|
16
16
|
* opaque mid-grey. This is the same fallback `mesh-math.ts`'s old
|
|
@@ -80,4 +80,3 @@ export declare function toCss(color: ColorInput): string;
|
|
|
80
80
|
* @category Colour
|
|
81
81
|
*/
|
|
82
82
|
export declare function cssColor(input: ColorInput): string;
|
|
83
|
-
//# sourceMappingURL=parse.d.ts.map
|
package/dist/color/random.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* nothing calls `Math.random`: `randomColor` hashes its seed (integer-only, so
|
|
4
4
|
* identical on every engine) for variety that is the same on every render.
|
|
5
5
|
*/
|
|
6
|
-
import type { Color } from "./types";
|
|
6
|
+
import type { Color } from "./types.js";
|
|
7
7
|
/**
|
|
8
8
|
* Options for {@link randomColor}.
|
|
9
9
|
*
|
|
@@ -44,4 +44,3 @@ export interface RandomColorOptions {
|
|
|
44
44
|
* @category Ops
|
|
45
45
|
*/
|
|
46
46
|
export declare function randomColor(seed: number | string, options?: RandomColorOptions): Color;
|
|
47
|
-
//# sourceMappingURL=random.d.ts.map
|
package/dist/color/types.d.ts
CHANGED
package/dist/coords/axes.d.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* `Axes`). The layout is shared with `numberPlane` and `complexPlane`, which
|
|
4
4
|
* draw the same axes over a grid.
|
|
5
5
|
*/
|
|
6
|
-
import type { Point, Range, RangeTransition } from "../geometry";
|
|
7
|
-
import type { Readable } from "../reactive";
|
|
8
|
-
import type { CompositeContext } from "../scene/composite";
|
|
9
|
-
import type { LabelProps, TextNode } from "../scene/text";
|
|
10
|
-
import type { PropsDescriptor, SceneNode } from "../scene/types";
|
|
11
|
-
import type { AxisPosition, CoordinateSystem, XAxisPosition, YAxisPosition } from "./coords";
|
|
12
|
-
import type { NumberLineProps } from "./number-line";
|
|
6
|
+
import type { Point, Range, RangeTransition } from "../geometry/index.js";
|
|
7
|
+
import type { Readable } from "../reactive/index.js";
|
|
8
|
+
import type { CompositeContext } from "../scene/composite.js";
|
|
9
|
+
import type { LabelProps, TextNode } from "../scene/text.js";
|
|
10
|
+
import type { PropsDescriptor, SceneNode } from "../scene/types.js";
|
|
11
|
+
import type { AxisPosition, CoordinateSystem, XAxisPosition, YAxisPosition } from "./coords.js";
|
|
12
|
+
import type { NumberLineProps } from "./number-line.js";
|
|
13
13
|
/**
|
|
14
14
|
* Everything a {@link numberLine} takes except the geometry `axes` decides for it.
|
|
15
15
|
*
|
|
@@ -169,5 +169,4 @@ export declare function axesLayout<P extends object>(ctx: CompositeContext<P>, s
|
|
|
169
169
|
* @see {@link numberPlane}
|
|
170
170
|
* @category Coordinate systems & graphs
|
|
171
171
|
*/
|
|
172
|
-
export declare const axes: import("
|
|
173
|
-
//# sourceMappingURL=axes.d.ts.map
|
|
172
|
+
export declare const axes: import("../scene/types.js").Definition<AxesProps, import("../scene/composite.js").CompositeNode<AxesProps>, keyof AxesProps>;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* (`originWeight`, `resolveOrigin`, `originFade`, `yieldOrigin`). Internal; `charts` builds on
|
|
7
7
|
* it, never the reverse.
|
|
8
8
|
*/
|
|
9
|
-
import type { Range, RangeTransition, ScaleSpec, ScaleTicks, TimeZone, WeightedTick } from "../geometry";
|
|
10
|
-
import type { AxisOptions } from "./axes";
|
|
9
|
+
import type { Range, RangeTransition, ScaleSpec, ScaleTicks, TimeZone, WeightedTick } from "../geometry/index.js";
|
|
10
|
+
import type { AxisOptions } from "./axes.js";
|
|
11
11
|
/** The y axis's default exclusion, one array for good, so it never reads as a changed prop. */
|
|
12
12
|
export declare const ORIGIN_ONLY: number[];
|
|
13
13
|
/** Whether `value` lies within `range`, whichever way round its ends are. */
|
|
@@ -117,4 +117,3 @@ export declare function originFade(weight: number): OriginFade;
|
|
|
117
117
|
*/
|
|
118
118
|
export declare function yieldOrigin<T extends AxisOptions>(merged: T, fade: OriginFade): T;
|
|
119
119
|
export {};
|
|
120
|
-
//# sourceMappingURL=axis-composition.d.ts.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* anchored label that sits beside a point, an axis's number formatter, and
|
|
4
4
|
* the room its numbers take. Internal — not in the barrel.
|
|
5
5
|
*/
|
|
6
|
-
import type { ColorInput } from "../color";
|
|
7
|
-
import type { Bounds, Matrix, Point, Range, RangeTransition } from "../geometry";
|
|
8
|
-
import type { TextHalo } from "../scene/text";
|
|
9
|
-
import type { Placement, Vec2 } from "../spec/layout";
|
|
10
|
-
import type { NumberLineProps } from "./number-line";
|
|
6
|
+
import type { ColorInput } from "../color/index.js";
|
|
7
|
+
import type { Bounds, Matrix, Point, Range, RangeTransition } from "../geometry/index.js";
|
|
8
|
+
import type { TextHalo } from "../scene/text.js";
|
|
9
|
+
import type { Placement, Vec2 } from "../spec/layout.js";
|
|
10
|
+
import type { NumberLineProps } from "./number-line.js";
|
|
11
11
|
/** Half-length of a major tick — it straddles the line, as Manim's does. */
|
|
12
12
|
export declare const DEFAULT_TICK_SIZE = 0.1;
|
|
13
13
|
export declare const DEFAULT_NUMBER_GAP = 0.14;
|
|
@@ -20,7 +20,7 @@ export type NumberFormatOptions = Pick<NumberLineProps, "scale" | "base" | "time
|
|
|
20
20
|
*
|
|
21
21
|
* Internal — not in the barrel; `chart` writes its tooltips' values with it.
|
|
22
22
|
*/
|
|
23
|
-
export declare function axisFormatter(options: NumberFormatOptions, at: Range): import("../geometry").TickFormatter;
|
|
23
|
+
export declare function axisFormatter(options: NumberFormatOptions, at: Range): import("../geometry/index.js").TickFormatter;
|
|
24
24
|
/**
|
|
25
25
|
* The options {@link measureAxisNumbers} reads: the ones that decide which
|
|
26
26
|
* numbers an axis writes and how.
|
|
@@ -124,4 +124,3 @@ export declare function anchoredLabelProps(options: AnchoredLabelOptions, fontFa
|
|
|
124
124
|
progress: number | undefined;
|
|
125
125
|
halo: boolean | TextHalo | undefined;
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=axis-labels.d.ts.map
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* `complexPlane`: the complex plane (Manim's `ComplexPlane`), a
|
|
3
3
|
* `numberPlane` speaking in `{ re, im }`.
|
|
4
4
|
*/
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type { SceneNode } from "../scene/types";
|
|
8
|
-
import type { AxisOptions } from "./axes";
|
|
9
|
-
import type { CoordinateSystem } from "./coords";
|
|
10
|
-
import type { NumberPlaneProps } from "./number-plane";
|
|
11
|
-
export type { Complex } from "../geometry/complex";
|
|
5
|
+
import type { Complex } from "../geometry/complex.js";
|
|
6
|
+
import type { Point } from "../geometry/index.js";
|
|
7
|
+
import type { SceneNode } from "../scene/types.js";
|
|
8
|
+
import type { AxisOptions } from "./axes.js";
|
|
9
|
+
import type { CoordinateSystem } from "./coords.js";
|
|
10
|
+
import type { NumberPlaneProps } from "./number-plane.js";
|
|
11
|
+
export type { Complex } from "../geometry/complex.js";
|
|
12
12
|
/**
|
|
13
13
|
* The coordinate system a {@link complexPlane} publishes: `coordsToPoint`/`pointToCoords` plus complex-number conversions.
|
|
14
14
|
*
|
|
@@ -81,7 +81,7 @@ export declare function imaginaryTick(value: number, decimalPlaces?: number): st
|
|
|
81
81
|
*
|
|
82
82
|
* @category Coordinate systems & graphs
|
|
83
83
|
*/
|
|
84
|
-
export declare const complexPlane: import("
|
|
84
|
+
export declare const complexPlane: import("../scene/types.js").Definition<ComplexPlaneProps, import("../scene/composite.js").CompositeNode<ComplexPlaneProps>, keyof ComplexPlaneProps>;
|
|
85
85
|
/**
|
|
86
86
|
* {@link coordsOf} for a {@link complexPlane}: its system with
|
|
87
87
|
* `numberToPoint`/`pointToNumber`.
|
|
@@ -92,4 +92,3 @@ export declare const complexPlane: import("..").Definition<ComplexPlaneProps, im
|
|
|
92
92
|
* @category Coordinate systems & graphs
|
|
93
93
|
*/
|
|
94
94
|
export declare function complexCoordsOf(node: SceneNode<ComplexPlaneProps>): ComplexCoordinateSystem | null;
|
|
95
|
-
//# sourceMappingURL=complex-plane.d.ts.map
|
package/dist/coords/coords.d.ts
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* Code outside the tree reads a coordinate-publishing node's current system
|
|
19
19
|
* with {@link coordsOf} (or follows it with {@link coordsReadable}).
|
|
20
20
|
*/
|
|
21
|
-
import type { Bounds, Point, Range, ScaleSpec } from "../geometry";
|
|
22
|
-
import type { Readable } from "../reactive";
|
|
23
|
-
import type { ContextKey, SceneNode } from "../scene/types";
|
|
21
|
+
import type { Bounds, Point, Range, ScaleSpec } from "../geometry/index.js";
|
|
22
|
+
import type { Readable } from "../reactive/index.js";
|
|
23
|
+
import type { ContextKey, SceneNode } from "../scene/types.js";
|
|
24
24
|
/**
|
|
25
25
|
* The mapping between **data** coordinates (the numbers on the axes) and
|
|
26
26
|
* **scene units** (the stage's own space) that {@link axes},
|
|
@@ -334,4 +334,3 @@ export declare function phaseProgress(progress: number, index: number, count: nu
|
|
|
334
334
|
* @category Scene registry & specs
|
|
335
335
|
*/
|
|
336
336
|
export declare function createPhases(progress: Readable<number | undefined>, count: number): (index: number) => Readable<number>;
|
|
337
|
-
//# sourceMappingURL=coords.d.ts.map
|