@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
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* cached on the registry's version and rebuilt lazily on the first read after
|
|
13
13
|
* a bump, so a frame that changed no handler costs nothing here.
|
|
14
14
|
*/
|
|
15
|
-
import type { FocusChannel, InteractionRegistry } from "../interact/registry";
|
|
16
|
-
import type { SceneGraph } from "./graph";
|
|
15
|
+
import type { FocusChannel, InteractionRegistry } from "../interact/registry.js";
|
|
16
|
+
import type { SceneGraph } from "./graph.js";
|
|
17
17
|
/**
|
|
18
18
|
* An {@link InteractionRegistry} that can be stopped.
|
|
19
19
|
*
|
|
@@ -59,4 +59,3 @@ export declare function createInteractionRegistry(graph: SceneGraph): SceneInter
|
|
|
59
59
|
* @category Interaction plumbing
|
|
60
60
|
*/
|
|
61
61
|
export declare function createFocusChannel(): FocusChannel;
|
|
62
|
-
//# sourceMappingURL=interaction.d.ts.map
|
package/dist/scene/marks.d.ts
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
* `STYLE` the shared style, `TRANSFORM` (a space change) the bake into scene
|
|
17
17
|
* units, `SPEC` only the assembly, each behind a last-input cache.
|
|
18
18
|
*/
|
|
19
|
-
import type { Bounds, Point, Polyline } from "../geometry";
|
|
20
|
-
import type { Matrix } from "../geometry/transform";
|
|
21
|
-
import type { InteractionProps } from "../interact/types";
|
|
22
|
-
import type { PaintSpec } from "../spec/gradient";
|
|
23
|
-
import type { ImagePixels, MarkShape } from "../spec/types";
|
|
24
|
-
import { BaseNode } from "./node";
|
|
25
|
-
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor } from "./types";
|
|
19
|
+
import type { Bounds, Point, Polyline } from "../geometry/index.js";
|
|
20
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
21
|
+
import type { InteractionProps } from "../interact/types.js";
|
|
22
|
+
import type { PaintSpec } from "../spec/gradient.js";
|
|
23
|
+
import type { ImagePixels, MarkShape } from "../spec/types.js";
|
|
24
|
+
import { BaseNode } from "./node.js";
|
|
25
|
+
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor } from "./types.js";
|
|
26
26
|
/**
|
|
27
27
|
* A layer of marks in the definition's own units, before the enclosing
|
|
28
28
|
* `group` space is applied. Arrays are read, never kept or written: hand
|
|
@@ -268,4 +268,3 @@ export declare class ImageNode<P extends ImageProps = ImageProps> extends BaseNo
|
|
|
268
268
|
* @category Extending
|
|
269
269
|
*/
|
|
270
270
|
export declare function defineImage<P extends ImageProps>(options: ImageOptions<P>): Definition<P, ImageNode<P>>;
|
|
271
|
-
//# sourceMappingURL=marks.d.ts.map
|
package/dist/scene/node.d.ts
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* makes sure the parent's space is current, and calls `run(dirty)` once with
|
|
11
11
|
* every pending bit. Subclasses implement `run`.
|
|
12
12
|
*/
|
|
13
|
-
import type { Bounds, Point, Polyline } from "../geometry";
|
|
14
|
-
import type { Matrix } from "../geometry/transform";
|
|
15
|
-
import type { InteractionHandlers, InteractionProps } from "../interact/types";
|
|
16
|
-
import type { Readable } from "../reactive";
|
|
17
|
-
import type { DrawSpec } from "../spec/types";
|
|
18
|
-
import type { BaseContainer } from "./container";
|
|
19
|
-
import type { SceneGraph } from "./graph";
|
|
20
|
-
import type { Bindable, ContextKey, CreateProps, Definition, InvalidateBits, NodeEvents, PropDescriptor, SceneNode, Space } from "./types";
|
|
13
|
+
import type { Bounds, Point, Polyline } from "../geometry/index.js";
|
|
14
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
15
|
+
import type { InteractionHandlers, InteractionProps } from "../interact/types.js";
|
|
16
|
+
import type { Readable } from "../reactive/index.js";
|
|
17
|
+
import type { DrawSpec } from "../spec/types.js";
|
|
18
|
+
import type { BaseContainer } from "./container.js";
|
|
19
|
+
import type { SceneGraph } from "./graph.js";
|
|
20
|
+
import type { Bindable, ContextKey, CreateProps, Definition, InvalidateBits, NodeEvents, PropDescriptor, SceneNode, Space } from "./types.js";
|
|
21
21
|
/**
|
|
22
22
|
* The space of a node with no parent: identity, opaque, unclipped, y up.
|
|
23
23
|
*
|
|
@@ -242,4 +242,3 @@ export declare abstract class BaseNode<P extends object = object> implements Sce
|
|
|
242
242
|
/** @internal The container's provided context values (containers override). */
|
|
243
243
|
get providedValues(): Map<ContextKey<unknown>, unknown> | null;
|
|
244
244
|
}
|
|
245
|
-
//# sourceMappingURL=node.d.ts.map
|
package/dist/scene/pan-zoom.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* animation and a gesture can drive the same camera in turn.
|
|
5
5
|
* `panZoomHandlers` is the gesture maths alone, with no scene around it.
|
|
6
6
|
*/
|
|
7
|
-
import type { Bounds, Point } from "../geometry";
|
|
8
|
-
import type { BackgroundPointerEvent, SceneWheelEvent } from "../render/pointer";
|
|
9
|
-
import type { Animatable } from "../tween/target";
|
|
10
|
-
import type { Scene } from "./scene";
|
|
7
|
+
import type { Bounds, Point } from "../geometry/index.js";
|
|
8
|
+
import type { BackgroundPointerEvent, SceneWheelEvent } from "../render/pointer.js";
|
|
9
|
+
import type { Animatable } from "../tween/target.js";
|
|
10
|
+
import type { Scene } from "./scene.js";
|
|
11
11
|
/** @category Stage & cameras */
|
|
12
12
|
export interface PanZoomOptions {
|
|
13
13
|
/**
|
|
@@ -184,4 +184,3 @@ export interface PanZoomController {
|
|
|
184
184
|
* @category Stage & cameras
|
|
185
185
|
*/
|
|
186
186
|
export declare function panZoom(scene: Scene, options?: PanZoomSceneOptions): PanZoomController;
|
|
187
|
-
//# sourceMappingURL=pan-zoom.d.ts.map
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
* assembly. Each sits behind a last-input cache, and an unchanged spec keeps
|
|
18
18
|
* its identity.
|
|
19
19
|
*/
|
|
20
|
-
import type { CurvePath, Polyline } from "../geometry";
|
|
21
|
-
import type { MarksProps } from "./marks";
|
|
22
|
-
import { BaseNode } from "./node";
|
|
23
|
-
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor } from "./types";
|
|
20
|
+
import type { CurvePath, Polyline } from "../geometry/index.js";
|
|
21
|
+
import type { MarksProps } from "./marks.js";
|
|
22
|
+
import { BaseNode } from "./node.js";
|
|
23
|
+
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor } from "./types.js";
|
|
24
24
|
/**
|
|
25
25
|
* One item of a path batch: an outline in the batch's own units, and
|
|
26
26
|
* optional paints that override the batch's shared ones.
|
|
@@ -207,4 +207,3 @@ export interface PathBatchItemsProps extends PathBatchProps {
|
|
|
207
207
|
* @category Instancing
|
|
208
208
|
*/
|
|
209
209
|
export declare const pathBatch: Definition<PathBatchItemsProps, PathBatchNode<PathBatchItemsProps>>;
|
|
210
|
-
//# sourceMappingURL=path-batch.d.ts.map
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* interaction, handles). `shapes/circle.ts` is the reference:
|
|
12
12
|
*
|
|
13
13
|
* ```ts
|
|
14
|
-
* import { arcCurvePath, type Point } from "../geometry";
|
|
15
|
-
* import { Invalidate } from "../scene/context";
|
|
16
|
-
* import { defineShape, type ShapeProps, shapeProps } from "../scene/shape";
|
|
14
|
+
* import { arcCurvePath, type Point } from "../geometry/index.js";
|
|
15
|
+
* import { Invalidate } from "../scene/context.js";
|
|
16
|
+
* import { defineShape, type ShapeProps, shapeProps } from "../scene/shape.js";
|
|
17
17
|
*
|
|
18
18
|
* export interface CircleProps extends ShapeProps {
|
|
19
19
|
* /** Centre. Defaults to the origin. *\/
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
* `create` to {@link definePrimitive}. A subtree built from other nodes is
|
|
72
72
|
* a composite (`defineComposite`, `scene/composite.ts`), not a primitive.
|
|
73
73
|
*/
|
|
74
|
-
import type { BaseNode } from "./node";
|
|
75
|
-
import type { DeclaredInstanceable, Definition, PropsDescriptor } from "./types";
|
|
74
|
+
import type { BaseNode } from "./node.js";
|
|
75
|
+
import type { DeclaredInstanceable, Definition, PropsDescriptor } from "./types.js";
|
|
76
76
|
/**
|
|
77
77
|
* Options for {@link definePrimitive}.
|
|
78
78
|
*
|
|
@@ -125,4 +125,3 @@ export interface PrimitiveOptions<P extends object, N extends BaseNode<P>, I ext
|
|
|
125
125
|
* @category Scene graph
|
|
126
126
|
*/
|
|
127
127
|
export declare function definePrimitive<P extends object, N extends BaseNode<P>, I extends keyof P = never>(options: PrimitiveOptions<P, N, I>): Definition<P, N, DeclaredInstanceable<P, I>>;
|
|
128
|
-
//# sourceMappingURL=primitive.d.ts.map
|
package/dist/scene/scene.d.ts
CHANGED
|
@@ -21,26 +21,26 @@
|
|
|
21
21
|
* frame and size come from options, and nothing is painted. For tests and
|
|
22
22
|
* server rendering.
|
|
23
23
|
*/
|
|
24
|
-
import type { Animation } from "../anim/animation";
|
|
25
|
-
import type { PlayContext, PlayResult, Timeline } from "../anim/timeline";
|
|
26
|
-
import type { ColorInput } from "../color";
|
|
27
|
-
import type { Bounds, Point } from "../geometry";
|
|
28
|
-
import type { Matrix } from "../geometry/transform";
|
|
29
|
-
import type { ScenePointer } from "../interact/pointer";
|
|
30
|
-
import type { FocusChannel, InteractionRegistry } from "../interact/registry";
|
|
31
|
-
import type { Readable } from "../reactive";
|
|
32
|
-
import type { FocusItem } from "../render/a11y";
|
|
33
|
-
import type { CameraView } from "../render/camera";
|
|
34
|
-
import type { Renderer } from "../render/canvas-renderer";
|
|
35
|
-
import type { PointerDriver } from "../render/pointer";
|
|
36
|
-
import type { DrawSpec } from "../spec/types";
|
|
37
|
-
import type { ThemeSpec } from "../themes/theme";
|
|
38
|
-
import type { Theme } from "../themes/types";
|
|
39
|
-
import type { Clock, ReducedMotionTransition } from "../tween/clock";
|
|
40
|
-
import type { ReducedMotion } from "../tween/reduced-motion";
|
|
41
|
-
import type { Camera, CameraOptions } from "./cameras";
|
|
42
|
-
import { SceneGraph } from "./graph";
|
|
43
|
-
import type { ContainerNode, SceneNode } from "./types";
|
|
24
|
+
import type { Animation } from "../anim/animation.js";
|
|
25
|
+
import type { PlayContext, PlayResult, Timeline } from "../anim/timeline.js";
|
|
26
|
+
import type { ColorInput } from "../color/index.js";
|
|
27
|
+
import type { Bounds, Point } from "../geometry/index.js";
|
|
28
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
29
|
+
import type { ScenePointer } from "../interact/pointer.js";
|
|
30
|
+
import type { FocusChannel, InteractionRegistry } from "../interact/registry.js";
|
|
31
|
+
import type { Readable } from "../reactive/index.js";
|
|
32
|
+
import type { FocusItem } from "../render/a11y.js";
|
|
33
|
+
import type { CameraView } from "../render/camera.js";
|
|
34
|
+
import type { Renderer } from "../render/canvas-renderer.js";
|
|
35
|
+
import type { PointerDriver } from "../render/pointer.js";
|
|
36
|
+
import type { DrawSpec } from "../spec/types.js";
|
|
37
|
+
import type { ThemeSpec } from "../themes/theme.js";
|
|
38
|
+
import type { Theme } from "../themes/types.js";
|
|
39
|
+
import type { Clock, ReducedMotionTransition } from "../tween/clock.js";
|
|
40
|
+
import type { ReducedMotion } from "../tween/reduced-motion.js";
|
|
41
|
+
import type { Camera, CameraOptions } from "./cameras.js";
|
|
42
|
+
import { SceneGraph } from "./graph.js";
|
|
43
|
+
import type { ContainerNode, SceneNode } from "./types.js";
|
|
44
44
|
/**
|
|
45
45
|
* Classes of the box a scene creates inside its `host`, unless `class`
|
|
46
46
|
* replaces them. Exported (through `./internal`) for the bindings, which
|
|
@@ -413,4 +413,3 @@ export declare function pointerDriver(scene: Scene): PointerDriver | null;
|
|
|
413
413
|
* @category Stage & cameras
|
|
414
414
|
*/
|
|
415
415
|
export declare function createScene(options?: SceneOptions): Scene;
|
|
416
|
-
//# sourceMappingURL=scene.d.ts.map
|
package/dist/scene/shape.d.ts
CHANGED
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
* the renderer's caches key on. A move is a new matrix: the outline arrays
|
|
23
23
|
* stay the same objects.
|
|
24
24
|
*/
|
|
25
|
-
import type { Bounds, Point, Polyline } from "../geometry";
|
|
26
|
-
import type { Matrix } from "../geometry/transform";
|
|
27
|
-
import type { InteractionProps } from "../interact/types";
|
|
28
|
-
import type { ShapeGeometry, StrokeAlongInput } from "../spec/bake";
|
|
29
|
-
import type { PaintSpec } from "../spec/gradient";
|
|
30
|
-
import type { Placement } from "../spec/layout";
|
|
31
|
-
import type { Theme } from "../themes/types";
|
|
32
|
-
import { BaseNode } from "./node";
|
|
33
|
-
import type { ContextKey, DeclaredInstanceable, Definition, InvalidateBits, PropsDescriptor, SceneNode } from "./types";
|
|
34
|
-
export type { ShapeGeometry } from "../spec/bake";
|
|
25
|
+
import type { Bounds, Point, Polyline } from "../geometry/index.js";
|
|
26
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
27
|
+
import type { InteractionProps } from "../interact/types.js";
|
|
28
|
+
import type { ShapeGeometry, StrokeAlongInput } from "../spec/bake.js";
|
|
29
|
+
import type { PaintSpec } from "../spec/gradient.js";
|
|
30
|
+
import type { Placement } from "../spec/layout.js";
|
|
31
|
+
import type { Theme } from "../themes/types.js";
|
|
32
|
+
import { BaseNode } from "./node.js";
|
|
33
|
+
import type { ContextKey, DeclaredInstanceable, Definition, InvalidateBits, PropsDescriptor, SceneNode } from "./types.js";
|
|
34
|
+
export type { ShapeGeometry } from "../spec/bake.js";
|
|
35
35
|
/**
|
|
36
36
|
* Styling, transform and interaction props every shape accepts, on top of its
|
|
37
37
|
* own geometry props. Lengths are scene units and angles radians; unset colours
|
|
@@ -374,4 +374,3 @@ export declare function shapeOptionsOf<P extends ShapeProps>(definition: Definit
|
|
|
374
374
|
* @category Extending
|
|
375
375
|
*/
|
|
376
376
|
export declare function boundsOfPolylines(polylines: readonly Polyline[]): Bounds | null;
|
|
377
|
-
//# sourceMappingURL=shape.d.ts.map
|
package/dist/scene/text.d.ts
CHANGED
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
* handle's box comes from the text metrics oracle, oriented for the scene's
|
|
12
12
|
* `yUp` as the glyphs are drawn, and is re-measured once a web font loads.
|
|
13
13
|
*/
|
|
14
|
-
import type { ColorInput } from "../color";
|
|
15
|
-
import type { Polyline } from "../geometry";
|
|
16
|
-
import type { Matrix } from "../geometry/transform";
|
|
17
|
-
import type { InteractionProps } from "../interact/types";
|
|
18
|
-
import type { TextHalo } from "../spec/bake";
|
|
19
|
-
import type { Placement } from "../spec/layout";
|
|
20
|
-
import type { SceneGraph } from "./graph";
|
|
21
|
-
import { BaseNode } from "./node";
|
|
22
|
-
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor } from "./types";
|
|
23
|
-
export type { TextHalo } from "../spec/bake";
|
|
14
|
+
import type { ColorInput } from "../color/index.js";
|
|
15
|
+
import type { Polyline } from "../geometry/index.js";
|
|
16
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
17
|
+
import type { InteractionProps } from "../interact/types.js";
|
|
18
|
+
import type { TextHalo } from "../spec/bake.js";
|
|
19
|
+
import type { Placement } from "../spec/layout.js";
|
|
20
|
+
import type { SceneGraph } from "./graph.js";
|
|
21
|
+
import { BaseNode } from "./node.js";
|
|
22
|
+
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor } from "./types.js";
|
|
23
|
+
export type { TextHalo } from "../spec/bake.js";
|
|
24
24
|
/**
|
|
25
25
|
* Props every text node accepts, besides what gives it its string.
|
|
26
26
|
*
|
|
@@ -228,4 +228,3 @@ export interface LabelProps extends TextProps {
|
|
|
228
228
|
* @category Text & numbers
|
|
229
229
|
*/
|
|
230
230
|
export declare const label: Definition<LabelProps, TextNode<LabelProps>, keyof LabelProps>;
|
|
231
|
-
//# sourceMappingURL=text.d.ts.map
|
package/dist/scene/types.d.ts
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* loop's commit phase pulls stale bindings and reruns only those stages.
|
|
14
14
|
* Nothing re-renders and nothing diffs a tree.
|
|
15
15
|
*/
|
|
16
|
-
import type { Bounds, Point } from "../geometry";
|
|
17
|
-
import type { Matrix } from "../geometry/transform";
|
|
18
|
-
import type { SceneNodeWheelEvent, ScenePointerEvent } from "../interact/types";
|
|
19
|
-
import type { Readable } from "../reactive";
|
|
20
|
-
import type { ClipRegion } from "../spec/types";
|
|
16
|
+
import type { Bounds, Point } from "../geometry/index.js";
|
|
17
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
18
|
+
import type { SceneNodeWheelEvent, ScenePointerEvent } from "../interact/types.js";
|
|
19
|
+
import type { Readable } from "../reactive/index.js";
|
|
20
|
+
import type { ClipRegion } from "../spec/types.js";
|
|
21
21
|
/**
|
|
22
22
|
* A set of stage bits (see `Invalidate`): which cached computations of a node a
|
|
23
23
|
* prop write invalidates.
|
|
@@ -343,4 +343,3 @@ export type PropsOf<D> = D extends Definition<infer P, any, any> ? P : never;
|
|
|
343
343
|
export type NodeOf<D> = D extends {
|
|
344
344
|
create(...args: never[]): infer N;
|
|
345
345
|
} ? N : never;
|
|
346
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/shapes/angle.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Angle marks: the arc between two rays, the right-angle square, and an
|
|
3
3
|
* elbow at a bearing you give. Built where they sit.
|
|
4
4
|
*/
|
|
5
|
-
import type { AngleArcOptions, Point } from "../geometry";
|
|
6
|
-
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
|
|
5
|
+
import type { AngleArcOptions, Point } from "../geometry/index.js";
|
|
6
|
+
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
|
|
7
7
|
/**
|
|
8
8
|
* A segment, in the shape `line` already takes.
|
|
9
9
|
*
|
|
@@ -76,7 +76,7 @@ export interface AngleProps extends ShapeProps, AngleAnchor, AngleArcOptions {
|
|
|
76
76
|
*
|
|
77
77
|
* @category Shapes
|
|
78
78
|
*/
|
|
79
|
-
export declare const angle: import("
|
|
79
|
+
export declare const angle: import("../index.js").Definition<AngleProps, import("../scene/shape.js").ShapeNode<AngleProps>, "from" | "radius" | "to" | "vertex" | ShapeInstanceable>;
|
|
80
80
|
/** @category Shapes */
|
|
81
81
|
export interface RightAngleProps extends ShapeProps, AngleAnchor {
|
|
82
82
|
/**
|
|
@@ -101,7 +101,7 @@ export interface RightAngleProps extends ShapeProps, AngleAnchor {
|
|
|
101
101
|
*
|
|
102
102
|
* @category Shapes
|
|
103
103
|
*/
|
|
104
|
-
export declare const rightAngle: import("
|
|
104
|
+
export declare const rightAngle: import("../index.js").Definition<RightAngleProps, import("../scene/shape.js").ShapeNode<RightAngleProps>, "from" | "size" | "to" | "vertex" | ShapeInstanceable>;
|
|
105
105
|
/** @category Shapes */
|
|
106
106
|
export interface ElbowProps extends ShapeProps {
|
|
107
107
|
/** The corner the mark hinges on, in scene units. */
|
|
@@ -132,5 +132,4 @@ export interface ElbowProps extends ShapeProps {
|
|
|
132
132
|
*
|
|
133
133
|
* @category Shapes
|
|
134
134
|
*/
|
|
135
|
-
export declare const elbow: import("
|
|
136
|
-
//# sourceMappingURL=angle.d.ts.map
|
|
135
|
+
export declare const elbow: import("../index.js").Definition<ElbowProps, import("../scene/shape.js").ShapeNode<ElbowProps>, "angle" | "vertex" | "width" | ShapeInstanceable>;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* `derive`s over the time (the `time` prop, else the clock's), so a tick
|
|
7
7
|
* reruns only those and no `update`.
|
|
8
8
|
*/
|
|
9
|
-
import type { ColorInput } from "../color";
|
|
10
|
-
import type { Polyline } from "../geometry";
|
|
11
|
-
import { type ShapeProps } from "../scene/shape";
|
|
12
|
-
import type { Easing } from "../tween/easing";
|
|
9
|
+
import type { ColorInput } from "../color/index.js";
|
|
10
|
+
import type { Polyline } from "../geometry/index.js";
|
|
11
|
+
import { type ShapeProps } from "../scene/shape.js";
|
|
12
|
+
import type { Easing } from "../tween/easing.js";
|
|
13
13
|
/** @category Shapes */
|
|
14
14
|
export interface AnimatedBoundaryProps extends Omit<ShapeProps, "stroke" | "fill" | "progress"> {
|
|
15
15
|
/** The outline to run round, scene units: one ring or several. */
|
|
@@ -75,5 +75,4 @@ export interface AnimatedBoundaryProps extends Omit<ShapeProps, "stroke" | "fill
|
|
|
75
75
|
*
|
|
76
76
|
* @category Shapes
|
|
77
77
|
*/
|
|
78
|
-
export declare const animatedBoundary: import("
|
|
79
|
-
//# sourceMappingURL=animated-boundary.d.ts.map
|
|
78
|
+
export declare const animatedBoundary: import("../scene/types.js").Definition<AnimatedBoundaryProps, import("../scene/composite.js").CompositeNode<AnimatedBoundaryProps>, keyof AnimatedBoundaryProps>;
|
package/dist/shapes/arc.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* The arc family: arcs, pie slices, rings and ring slices. The outline is
|
|
3
3
|
* built where it sits (the centre is part of the geometry).
|
|
4
4
|
*/
|
|
5
|
-
import type { Point } from "../geometry";
|
|
6
|
-
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
|
|
5
|
+
import type { Point } from "../geometry/index.js";
|
|
6
|
+
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
|
|
7
7
|
/**
|
|
8
8
|
* The arc family follows Manim's parameterization (a *start* angle plus a
|
|
9
9
|
* signed *sweep*, not two absolute angles) because that's what animates
|
|
@@ -49,7 +49,7 @@ type ArcInstanceable = ShapeInstanceable | "center" | "radius" | "startAngle" |
|
|
|
49
49
|
*
|
|
50
50
|
* @category Shapes
|
|
51
51
|
*/
|
|
52
|
-
export declare const arc: import("
|
|
52
|
+
export declare const arc: import("../index.js").Definition<ArcProps, import("../scene/shape.js").ShapeNode<ArcProps>, ArcInstanceable>;
|
|
53
53
|
/** @category Shapes */
|
|
54
54
|
export interface ArcBetweenPointsProps extends ShapeProps {
|
|
55
55
|
/** Start point in scene units. */
|
|
@@ -80,7 +80,7 @@ export interface ArcBetweenPointsProps extends ShapeProps {
|
|
|
80
80
|
*
|
|
81
81
|
* @category Shapes
|
|
82
82
|
*/
|
|
83
|
-
export declare const arcBetweenPoints: import("
|
|
83
|
+
export declare const arcBetweenPoints: import("../index.js").Definition<ArcBetweenPointsProps, import("../scene/shape.js").ShapeNode<ArcBetweenPointsProps>, "angle" | "from" | "to" | ShapeInstanceable>;
|
|
84
84
|
/**
|
|
85
85
|
* Props for {@link sector}; identical to {@link ArcProps}.
|
|
86
86
|
*
|
|
@@ -102,7 +102,7 @@ export type SectorProps = ArcProps;
|
|
|
102
102
|
*
|
|
103
103
|
* @category Shapes
|
|
104
104
|
*/
|
|
105
|
-
export declare const sector: import("
|
|
105
|
+
export declare const sector: import("../index.js").Definition<ArcProps, import("../scene/shape.js").ShapeNode<ArcProps>, ArcInstanceable>;
|
|
106
106
|
/** @category Shapes */
|
|
107
107
|
export interface AnnulusProps extends ShapeProps {
|
|
108
108
|
/** Centre. Defaults to the origin. */
|
|
@@ -134,7 +134,7 @@ type RingInstanceable = ShapeInstanceable | "center" | "innerRadius" | "outerRad
|
|
|
134
134
|
*
|
|
135
135
|
* @category Shapes
|
|
136
136
|
*/
|
|
137
|
-
export declare const annulus: import("
|
|
137
|
+
export declare const annulus: import("../index.js").Definition<AnnulusProps, import("../scene/shape.js").ShapeNode<AnnulusProps>, RingInstanceable>;
|
|
138
138
|
/** @category Shapes */
|
|
139
139
|
export interface AnnularSectorProps extends AnnulusProps {
|
|
140
140
|
/**
|
|
@@ -165,6 +165,5 @@ export interface AnnularSectorProps extends AnnulusProps {
|
|
|
165
165
|
*
|
|
166
166
|
* @category Shapes
|
|
167
167
|
*/
|
|
168
|
-
export declare const annularSector: import("
|
|
168
|
+
export declare const annularSector: import("../index.js").Definition<AnnularSectorProps, import("../scene/shape.js").ShapeNode<AnnularSectorProps>, "angle" | "startAngle" | RingInstanceable>;
|
|
169
169
|
export {};
|
|
170
|
-
//# sourceMappingURL=arc.d.ts.map
|
package/dist/shapes/bezier.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Single bezier segments, cubic and quadratic, built where they sit.
|
|
3
3
|
*/
|
|
4
|
-
import type { Point } from "../geometry";
|
|
5
|
-
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
|
|
4
|
+
import type { Point } from "../geometry/index.js";
|
|
5
|
+
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
|
|
6
6
|
/** @category Shapes */
|
|
7
7
|
export interface CubicBezierProps extends ShapeProps {
|
|
8
8
|
/** Start point in scene units. */
|
|
@@ -40,7 +40,7 @@ export interface CubicBezierProps extends ShapeProps {
|
|
|
40
40
|
*
|
|
41
41
|
* @category Shapes
|
|
42
42
|
*/
|
|
43
|
-
export declare const cubicBezier: import("
|
|
43
|
+
export declare const cubicBezier: import("../index.js").Definition<CubicBezierProps, import("../scene/shape.js").ShapeNode<CubicBezierProps>, "control1" | "control2" | "from" | "to" | ShapeInstanceable>;
|
|
44
44
|
/** @category Shapes */
|
|
45
45
|
export interface QuadraticBezierProps extends ShapeProps {
|
|
46
46
|
/** Start point in scene units. */
|
|
@@ -69,5 +69,4 @@ export interface QuadraticBezierProps extends ShapeProps {
|
|
|
69
69
|
*
|
|
70
70
|
* @category Shapes
|
|
71
71
|
*/
|
|
72
|
-
export declare const quadraticBezier: import("
|
|
73
|
-
//# sourceMappingURL=bezier.d.ts.map
|
|
72
|
+
export declare const quadraticBezier: import("../index.js").Definition<QuadraticBezierProps, import("../scene/shape.js").ShapeNode<QuadraticBezierProps>, "control" | "from" | "to" | ShapeInstanceable>;
|
package/dist/shapes/brace.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* outline is a shape node bound to the composite's props, and the label is
|
|
6
6
|
* made, placed and dropped by `update`.
|
|
7
7
|
*/
|
|
8
|
-
import type { Bounds, Point } from "../geometry";
|
|
9
|
-
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
|
|
8
|
+
import type { Bounds, Point } from "../geometry/index.js";
|
|
9
|
+
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
|
|
10
10
|
/** The props that decide where the brace is: its span and its shape. */
|
|
11
11
|
interface BraceGeometryProps {
|
|
12
12
|
/**
|
|
@@ -72,7 +72,7 @@ interface BraceOutlineProps extends ShapeProps, BraceGeometryProps {
|
|
|
72
72
|
*
|
|
73
73
|
* @internal
|
|
74
74
|
*/
|
|
75
|
-
export declare const braceOutline: import("
|
|
75
|
+
export declare const braceOutline: import("../scene/types.js").Definition<BraceOutlineProps, import("../scene/shape.js").ShapeNode<BraceOutlineProps>, "depth" | "from" | "gap" | "thickness" | "to" | ShapeInstanceable>;
|
|
76
76
|
/**
|
|
77
77
|
* `brace`: a curly brace along one side of something, optionally labelled at
|
|
78
78
|
* its tip: Manim's `Brace`, `BraceBetweenPoints` and `BraceLabel` in one.
|
|
@@ -98,6 +98,5 @@ export declare const braceOutline: import("..").Definition<BraceOutlineProps, im
|
|
|
98
98
|
*
|
|
99
99
|
* @category Shapes
|
|
100
100
|
*/
|
|
101
|
-
export declare const brace: import("
|
|
101
|
+
export declare const brace: import("../scene/types.js").Definition<BraceProps, import("../scene/composite.js").CompositeNode<BraceProps>, keyof BraceProps>;
|
|
102
102
|
export {};
|
|
103
|
-
//# sourceMappingURL=brace.d.ts.map
|
package/dist/shapes/circle.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* `geometry` function building the outline about the origin; the centre is
|
|
4
4
|
* the shape's `offset`, so moving one changes a matrix, never its outline.
|
|
5
5
|
*/
|
|
6
|
-
import type { Point } from "../geometry";
|
|
7
|
-
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
|
|
6
|
+
import type { Point } from "../geometry/index.js";
|
|
7
|
+
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
|
|
8
8
|
/** @category Shapes */
|
|
9
9
|
export interface CircleProps extends ShapeProps {
|
|
10
10
|
/** Centre. Defaults to the origin. */
|
|
@@ -33,7 +33,7 @@ export interface CircleProps extends ShapeProps {
|
|
|
33
33
|
*
|
|
34
34
|
* @category Shapes
|
|
35
35
|
*/
|
|
36
|
-
export declare const circle: import("
|
|
36
|
+
export declare const circle: import("../index.js").Definition<CircleProps, import("../scene/shape.js").ShapeNode<CircleProps>, "center" | "radius" | ShapeInstanceable>;
|
|
37
37
|
/** @category Shapes */
|
|
38
38
|
export interface EllipseProps extends ShapeProps {
|
|
39
39
|
/** Centre. Defaults to the origin. */
|
|
@@ -66,5 +66,4 @@ export interface EllipseProps extends ShapeProps {
|
|
|
66
66
|
*
|
|
67
67
|
* @category Shapes
|
|
68
68
|
*/
|
|
69
|
-
export declare const ellipse: import("
|
|
70
|
-
//# sourceMappingURL=circle.d.ts.map
|
|
69
|
+
export declare const ellipse: import("../index.js").Definition<EllipseProps, import("../scene/shape.js").ShapeNode<EllipseProps>, "center" | "radiusX" | "radiusY" | "tilt" | ShapeInstanceable>;
|
package/dist/shapes/dot.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* `labeledDot`, a disc with its text, which is a composite of a disc and
|
|
4
4
|
* a label. The disc is a circle placed by its `center` (the shape's `offset`).
|
|
5
5
|
*/
|
|
6
|
-
import type { ColorInput } from "../color";
|
|
7
|
-
import type { Point } from "../geometry";
|
|
8
|
-
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape";
|
|
6
|
+
import type { ColorInput } from "../color/index.js";
|
|
7
|
+
import type { Point } from "../geometry/index.js";
|
|
8
|
+
import { type ShapeInstanceable, type ShapeProps } from "../scene/shape.js";
|
|
9
9
|
/** @category Shapes */
|
|
10
10
|
export interface DotProps extends Omit<ShapeProps, "fill"> {
|
|
11
11
|
/** Centre. Defaults to the origin. */
|
|
@@ -44,7 +44,7 @@ type DotInstanceable = Exclude<ShapeInstanceable, "fill"> | "center" | "radius"
|
|
|
44
44
|
*
|
|
45
45
|
* @category Shapes
|
|
46
46
|
*/
|
|
47
|
-
export declare const dot: import("
|
|
47
|
+
export declare const dot: import("../scene/types.js").Definition<DotProps, import("../scene/shape.js").ShapeNode<DotProps>, DotInstanceable>;
|
|
48
48
|
/** @category Shapes */
|
|
49
49
|
export interface AnnotationDotProps extends DotProps {
|
|
50
50
|
/**
|
|
@@ -74,7 +74,7 @@ export interface AnnotationDotProps extends DotProps {
|
|
|
74
74
|
*
|
|
75
75
|
* @category Shapes
|
|
76
76
|
*/
|
|
77
|
-
export declare const annotationDot: import("
|
|
77
|
+
export declare const annotationDot: import("../scene/types.js").Definition<AnnotationDotProps, import("../scene/shape.js").ShapeNode<AnnotationDotProps>, DotInstanceable>;
|
|
78
78
|
/** @category Shapes */
|
|
79
79
|
export interface LabeledDotProps extends Omit<DotProps, "radius"> {
|
|
80
80
|
/** The text drawn inside the dot. */
|
|
@@ -203,6 +203,5 @@ export declare function labeledDotRadius(text: string, style: LabeledDotMetrics,
|
|
|
203
203
|
*
|
|
204
204
|
* @category Shapes
|
|
205
205
|
*/
|
|
206
|
-
export declare const labeledDot: import("
|
|
206
|
+
export declare const labeledDot: import("../scene/types.js").Definition<LabeledDotProps, import("../scene/composite.js").CompositeNode<LabeledDotProps>, keyof LabeledDotProps>;
|
|
207
207
|
export {};
|
|
208
|
-
//# sourceMappingURL=dot.d.ts.map
|
package/dist/shapes/forward.d.ts
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Internal: not in the barrel.
|
|
14
14
|
*/
|
|
15
|
-
import type { Readable } from "../reactive";
|
|
16
|
-
import type { CompositeContext } from "../scene/composite";
|
|
17
|
-
import type { PropsDescriptor, SceneNode } from "../scene/types";
|
|
15
|
+
import type { Readable } from "../reactive/index.js";
|
|
16
|
+
import type { CompositeContext } from "../scene/composite.js";
|
|
17
|
+
import type { PropsDescriptor, SceneNode } from "../scene/types.js";
|
|
18
18
|
/**
|
|
19
19
|
* A composite's descriptor entries for props it forwards to a child: values
|
|
20
20
|
* invalidate nothing on the composite (the child is bound to them), handlers
|
|
@@ -52,4 +52,3 @@ export declare function forwardProps<P>(ctx: CompositeContext<P>, child: SceneNo
|
|
|
52
52
|
* @param child - The node receiving the handlers.
|
|
53
53
|
*/
|
|
54
54
|
export declare function forwardHandlers<P>(changed: ReadonlySet<unknown>, ctx: CompositeContext<P>, child: SceneNode): void;
|
|
55
|
-
//# sourceMappingURL=forward.d.ts.map
|
package/dist/shapes/index.d.ts
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The built-in shapes: definitions made with `defineShape`.
|
|
3
3
|
*/
|
|
4
|
-
export type { AngleAnchor, AngleProps, ElbowProps, Ray, RightAngleProps, } from "./angle";
|
|
5
|
-
export { angle, elbow, resolveAngleAnchor, rightAngle } from "./angle";
|
|
6
|
-
export type { AnimatedBoundaryProps } from "./animated-boundary";
|
|
7
|
-
export { animatedBoundary } from "./animated-boundary";
|
|
8
|
-
export type { AnnularSectorProps, AnnulusProps, ArcBetweenPointsProps, ArcProps, SectorProps, } from "./arc";
|
|
9
|
-
export { annularSector, annulus, arc, arcBetweenPoints, sector } from "./arc";
|
|
10
|
-
export type { CubicBezierProps, QuadraticBezierProps } from "./bezier";
|
|
11
|
-
export { cubicBezier, quadraticBezier } from "./bezier";
|
|
12
|
-
export type { BraceProps } from "./brace";
|
|
13
|
-
export { brace } from "./brace";
|
|
14
|
-
export type { CircleProps, EllipseProps } from "./circle";
|
|
15
|
-
export { circle, ellipse } from "./circle";
|
|
16
|
-
export type { AnnotationDotProps, DotProps, LabeledDotMetrics, LabeledDotProps, } from "./dot";
|
|
17
|
-
export { annotationDot, dot, LABELED_DOT_FONT_SIZE, labeledDot, labeledDotRadius, } from "./dot";
|
|
18
|
-
export type { ArrowProps, CurvedArrowProps, CurvedDoubleArrowProps, DashedLineProps, DoubleArrowProps, LineProps, TippedProps, VectorProps, } from "./line";
|
|
19
|
-
export { arrow, bearingTo, curvedArrow, curvedDoubleArrow, curveEndBearing, DEFAULT_TIP_LENGTH, dashedLine, dashedLinePattern, doubleArrow, line, tipFillOf, tipGeometryAt, vector, } from "./line";
|
|
20
|
-
export type { BackgroundRectangleProps, CrossProps, MatcherProps, MatcherTarget, SurroundingRectangleProps, UnderlineProps, } from "./matchers";
|
|
21
|
-
export { backgroundRectangle, cross, surroundingRectangle, targetBounds, underline, } from "./matchers";
|
|
22
|
-
export type { PathProps, PlotProps } from "./path";
|
|
23
|
-
export { path, plot } from "./path";
|
|
24
|
-
export type { PolygonProps } from "./polygon";
|
|
25
|
-
export { polygon } from "./polygon";
|
|
26
|
-
export type { PolygramProps, RegularPolygramProps, StarProps, } from "./polygram";
|
|
27
|
-
export { polygram, regularPolygram, star } from "./polygram";
|
|
28
|
-
export type { RectProps, SquareProps } from "./rect";
|
|
29
|
-
export { rect, square } from "./rect";
|
|
30
|
-
export type { TracedPathProps } from "./traced-path";
|
|
31
|
-
export { tracedPath } from "./traced-path";
|
|
32
|
-
export type { TransformMatchingShapesProps } from "./transform-matching-shapes";
|
|
33
|
-
export { transformMatchingShapes } from "./transform-matching-shapes";
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
|
4
|
+
export type { AngleAnchor, AngleProps, ElbowProps, Ray, RightAngleProps, } from "./angle.js";
|
|
5
|
+
export { angle, elbow, resolveAngleAnchor, rightAngle } from "./angle.js";
|
|
6
|
+
export type { AnimatedBoundaryProps } from "./animated-boundary.js";
|
|
7
|
+
export { animatedBoundary } from "./animated-boundary.js";
|
|
8
|
+
export type { AnnularSectorProps, AnnulusProps, ArcBetweenPointsProps, ArcProps, SectorProps, } from "./arc.js";
|
|
9
|
+
export { annularSector, annulus, arc, arcBetweenPoints, sector, } from "./arc.js";
|
|
10
|
+
export type { CubicBezierProps, QuadraticBezierProps } from "./bezier.js";
|
|
11
|
+
export { cubicBezier, quadraticBezier } from "./bezier.js";
|
|
12
|
+
export type { BraceProps } from "./brace.js";
|
|
13
|
+
export { brace } from "./brace.js";
|
|
14
|
+
export type { CircleProps, EllipseProps } from "./circle.js";
|
|
15
|
+
export { circle, ellipse } from "./circle.js";
|
|
16
|
+
export type { AnnotationDotProps, DotProps, LabeledDotMetrics, LabeledDotProps, } from "./dot.js";
|
|
17
|
+
export { annotationDot, dot, LABELED_DOT_FONT_SIZE, labeledDot, labeledDotRadius, } from "./dot.js";
|
|
18
|
+
export type { ArrowProps, CurvedArrowProps, CurvedDoubleArrowProps, DashedLineProps, DoubleArrowProps, LineProps, TippedProps, VectorProps, } from "./line.js";
|
|
19
|
+
export { arrow, bearingTo, curvedArrow, curvedDoubleArrow, curveEndBearing, DEFAULT_TIP_LENGTH, dashedLine, dashedLinePattern, doubleArrow, line, tipFillOf, tipGeometryAt, vector, } from "./line.js";
|
|
20
|
+
export type { BackgroundRectangleProps, CrossProps, MatcherProps, MatcherTarget, SurroundingRectangleProps, UnderlineProps, } from "./matchers.js";
|
|
21
|
+
export { backgroundRectangle, cross, surroundingRectangle, targetBounds, underline, } from "./matchers.js";
|
|
22
|
+
export type { PathProps, PlotProps } from "./path.js";
|
|
23
|
+
export { path, plot } from "./path.js";
|
|
24
|
+
export type { PolygonProps } from "./polygon.js";
|
|
25
|
+
export { polygon } from "./polygon.js";
|
|
26
|
+
export type { PolygramProps, RegularPolygramProps, StarProps, } from "./polygram.js";
|
|
27
|
+
export { polygram, regularPolygram, star } from "./polygram.js";
|
|
28
|
+
export type { RectProps, SquareProps } from "./rect.js";
|
|
29
|
+
export { rect, square } from "./rect.js";
|
|
30
|
+
export type { TracedPathProps } from "./traced-path.js";
|
|
31
|
+
export { tracedPath } from "./traced-path.js";
|
|
32
|
+
export type { TransformMatchingShapesProps } from "./transform-matching-shapes.js";
|
|
33
|
+
export { transformMatchingShapes } from "./transform-matching-shapes.js";
|