@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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Closed shapes repeat their first point at the end. That is load-bearing —
|
|
6
6
|
* arc length has to measure the closing segment for a reveal to draw it.
|
|
7
7
|
*/
|
|
8
|
-
import type { Point, Polyline } from "./path/types";
|
|
8
|
+
import type { Point, Polyline } from "./path/types.js";
|
|
9
9
|
/**
|
|
10
10
|
* Segment count for a curve of the given radius, at the given pixels-per-unit.
|
|
11
11
|
* Aims for roughly one segment per 6 px of circumference, within 12 to 512.
|
|
@@ -161,4 +161,3 @@ export declare function arrowHeadAt(tip: Point, angle: number, length: number, s
|
|
|
161
161
|
* @category Shapes
|
|
162
162
|
*/
|
|
163
163
|
export declare function plotPolyline(f: (t: number) => Point, from: number, to: number, samples?: number): Polyline;
|
|
164
|
-
//# sourceMappingURL=shapes.d.ts.map
|
|
@@ -38,4 +38,3 @@ export type StitchStart = "free-ends" | "in-order";
|
|
|
38
38
|
* @returns The runs, every segment in exactly one.
|
|
39
39
|
*/
|
|
40
40
|
export declare function stitchSegments<K>(pairs: readonly (readonly [K, K])[], start?: StitchStart): StitchedRun<K>[];
|
|
41
|
-
//# sourceMappingURL=stitch.d.ts.map
|
package/dist/geometry/time.d.ts
CHANGED
package/dist/geometry/tips.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* and the body extends *backwards* along `direction`. Callers can therefore
|
|
12
12
|
* append a tip to a shaft without shortening the shaft.
|
|
13
13
|
*/
|
|
14
|
-
import type { CurvePath, Point, Polyline } from "./path/types";
|
|
14
|
+
import type { CurvePath, Point, Polyline } from "./path/types.js";
|
|
15
15
|
/**
|
|
16
16
|
* Arrow tip styles. `"vee"` is two open strokes; the rest are closed and fillable.
|
|
17
17
|
*
|
|
@@ -54,4 +54,3 @@ export declare function tipPolylines(shape: TipShape, tip: Point, direction: num
|
|
|
54
54
|
* @category Shapes
|
|
55
55
|
*/
|
|
56
56
|
export declare function tipIsClosed(shape: TipShape): boolean;
|
|
57
|
-
//# sourceMappingURL=tips.d.ts.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Points are baked into pixel space before they reach a theme, so themes can
|
|
6
6
|
* jitter and hatch in pixels without knowing anything about the camera.
|
|
7
7
|
*/
|
|
8
|
-
import type { CurvePath, Point, Polyline } from "./path/types";
|
|
8
|
+
import type { CurvePath, Point, Polyline } from "./path/types.js";
|
|
9
9
|
/**
|
|
10
10
|
* Column-major affine matrix, matching the canvas `setTransform` argument order.
|
|
11
11
|
*
|
|
@@ -243,4 +243,3 @@ export declare function applyToCurvePath(m: Matrix, path: CurvePath): CurvePath;
|
|
|
243
243
|
* @category Transforms
|
|
244
244
|
*/
|
|
245
245
|
export declare function scaleFactorOf(m: Matrix): number;
|
|
246
|
-
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Pure matrix math, so it lives in `geometry/`: `scene/`'s `<SceneSpace>` and
|
|
8
8
|
* `render/`'s `camera.ts` both need it, and `scene/` may not import `render/`.
|
|
9
9
|
*/
|
|
10
|
-
import type { Point } from "./path/types";
|
|
11
|
-
import type { Matrix } from "./transform";
|
|
10
|
+
import type { Point } from "./path/types.js";
|
|
11
|
+
import type { Matrix } from "./transform.js";
|
|
12
12
|
/**
|
|
13
13
|
* A rectangle of the canvas, in device pixels.
|
|
14
14
|
*
|
|
@@ -57,4 +57,3 @@ export declare function viewMatrix(box: PixelBox, units: number, center: Point,
|
|
|
57
57
|
* @category Renderer & paint
|
|
58
58
|
*/
|
|
59
59
|
export declare function isYUp(view: Matrix): boolean;
|
|
60
|
-
//# sourceMappingURL=view-matrix.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* focal length `f = height / (2 tan(fovY / 2))`. Results are in scene units, so
|
|
4
4
|
* 3D content shares the 2D pipeline.
|
|
5
5
|
*/
|
|
6
|
-
import type { Point3 } from "./mat";
|
|
6
|
+
import type { Point3 } from "./mat.js";
|
|
7
7
|
/**
|
|
8
8
|
* Everything a {@link Projection} needs to build its view matrix: where the
|
|
9
9
|
* camera is, what it looks at, and which way is up. The coordinate system is
|
|
@@ -142,4 +142,3 @@ export declare class Projection {
|
|
|
142
142
|
* @category Camera
|
|
143
143
|
*/
|
|
144
144
|
export declare function createProjected(): Projected;
|
|
145
|
-
//# sourceMappingURL=camera.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export type { Camera3DState, Projected } from "./camera";
|
|
2
|
-
export { createProjected, Projection } from "./camera";
|
|
3
|
-
export type { Mat4, Point3, Scratch, Vec3 } from "./mat";
|
|
4
|
-
export { createMat4, createScratch, createVec3
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export type { Camera3DState, Projected } from "./camera.js";
|
|
2
|
+
export { createProjected, Projection } from "./camera.js";
|
|
3
|
+
export type { Mat4, Point3, Scratch, Vec3 } from "./mat.js";
|
|
4
|
+
export { createMat4, createScratch, createVec3 } from "./mat.js";
|
package/dist/geometry3d/mat.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* `dst` rather than allocating, so a render loop that reuses its scratch state
|
|
9
9
|
* across frames never allocates either.
|
|
10
10
|
*/
|
|
11
|
-
import { mat4, vec3 } from "wgpu-matrix";
|
|
12
11
|
/**
|
|
13
12
|
* A 3-component `wgpu-matrix` vector (a `Float32Array`).
|
|
14
13
|
*
|
|
@@ -69,5 +68,3 @@ export interface Scratch {
|
|
|
69
68
|
* @category Math & helpers
|
|
70
69
|
*/
|
|
71
70
|
export declare function createScratch(): Scratch;
|
|
72
|
-
export { mat4, vec3 };
|
|
73
|
-
//# sourceMappingURL=mat.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -5,38 +5,37 @@
|
|
|
5
5
|
* @module @sophistry/core
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
*/
|
|
8
|
-
export * from "./anim";
|
|
9
|
-
export * from "./coords";
|
|
10
|
-
export * from "./entries/color";
|
|
11
|
-
export type { Bounds, Matrix, Point, Range, RangeTransition, } from "./entries/geometry";
|
|
12
|
-
export * from "./entries/themes";
|
|
13
|
-
export * from "./export";
|
|
14
|
-
export type { Point3 } from "./geometry3d";
|
|
15
|
-
export type { BoundsSource, ClampOptions, ConstraintName, ConstraintSpec, DragConstraint, DragContext, SnapOptions, ValueSource, } from "./interact/constrain";
|
|
16
|
-
export { alongDirection, alongPath, axisX, axisY, chain, constraints, free, inFrame, onCircle, snapTo, snapToGrid, toBounds, } from "./interact/constrain";
|
|
17
|
-
export type { DraggableProps, DragOptions, DragParam, FlagSource, } from "./interact/drag";
|
|
18
|
-
export { draggable } from "./interact/drag";
|
|
19
|
-
export type { DropOptions, DropTargetProps } from "./interact/drop";
|
|
20
|
-
export { dropTarget } from "./interact/drop";
|
|
21
|
-
export type { AngleParamOptions, LineSource, ScalarParamOptions, } from "./interact/param";
|
|
22
|
-
export { angleParam, pathParam, pointParam, scalarParam, } from "./interact/param";
|
|
23
|
-
export type { PointerChannel, ScenePointer } from "./interact/pointer";
|
|
24
|
-
export { createPointerChannel } from "./interact/pointer";
|
|
25
|
-
export type { FocusChannel, FocusSource } from "./interact/registry";
|
|
26
|
-
export type { DragBehaviour, DropTarget, HitArea, InteractionHandlers, InteractionProps, KeyboardBehaviour, PointerEvents, SceneNodeWheelEvent, ScenePointerEvent, Sink, } from "./interact/types";
|
|
27
|
-
export * from "./labels";
|
|
28
|
-
export * from "./network";
|
|
29
|
-
export * from "./reactive";
|
|
30
|
-
export type { CameraView, PipCorner, Viewport } from "./render/camera";
|
|
31
|
-
export { FULL_VIEWPORT, pictureInPictureViewports, quadViewports, splitViewports, } from "./render/camera";
|
|
32
|
-
export type { PointerDriver } from "./render/pointer";
|
|
33
|
-
export * from "./scene";
|
|
34
|
-
export * from "./shapes";
|
|
35
|
-
export type { ShapeGeometry, ShapeWrite } from "./spec/bake";
|
|
36
|
-
export type { ClipShape } from "./spec/clip";
|
|
37
|
-
export type { ColorRampSpec } from "./spec/colorRampProp";
|
|
38
|
-
export * from "./spec/gradient";
|
|
39
|
-
export * from "./spec/layout";
|
|
40
|
-
export type { ImagePixels } from "./spec/types";
|
|
41
|
-
export * from "./tween";
|
|
42
|
-
//# sourceMappingURL=index.d.ts.map
|
|
8
|
+
export * from "./anim/index.js";
|
|
9
|
+
export * from "./coords/index.js";
|
|
10
|
+
export * from "./entries/color.js";
|
|
11
|
+
export type { Bounds, Matrix, Point, Range, RangeTransition, } from "./entries/geometry.js";
|
|
12
|
+
export * from "./entries/themes.js";
|
|
13
|
+
export * from "./export/index.js";
|
|
14
|
+
export type { Point3 } from "./geometry3d/index.js";
|
|
15
|
+
export type { BoundsSource, ClampOptions, ConstraintName, ConstraintSpec, DragConstraint, DragContext, SnapOptions, ValueSource, } from "./interact/constrain.js";
|
|
16
|
+
export { alongDirection, alongPath, axisX, axisY, chain, constraints, free, inFrame, onCircle, snapTo, snapToGrid, toBounds, } from "./interact/constrain.js";
|
|
17
|
+
export type { DraggableProps, DragOptions, DragParam, FlagSource, } from "./interact/drag.js";
|
|
18
|
+
export { draggable } from "./interact/drag.js";
|
|
19
|
+
export type { DropOptions, DropTargetProps } from "./interact/drop.js";
|
|
20
|
+
export { dropTarget } from "./interact/drop.js";
|
|
21
|
+
export type { AngleParamOptions, LineSource, ScalarParamOptions, } from "./interact/param.js";
|
|
22
|
+
export { angleParam, pathParam, pointParam, scalarParam, } from "./interact/param.js";
|
|
23
|
+
export type { PointerChannel, ScenePointer } from "./interact/pointer.js";
|
|
24
|
+
export { createPointerChannel } from "./interact/pointer.js";
|
|
25
|
+
export type { FocusChannel, FocusSource } from "./interact/registry.js";
|
|
26
|
+
export type { DragBehaviour, DropTarget, HitArea, InteractionHandlers, InteractionProps, KeyboardBehaviour, PointerEvents, SceneNodeWheelEvent, ScenePointerEvent, Sink, } from "./interact/types.js";
|
|
27
|
+
export * from "./labels/index.js";
|
|
28
|
+
export * from "./network/index.js";
|
|
29
|
+
export * from "./reactive/index.js";
|
|
30
|
+
export type { CameraView, PipCorner, Viewport } from "./render/camera.js";
|
|
31
|
+
export { FULL_VIEWPORT, pictureInPictureViewports, quadViewports, splitViewports, } from "./render/camera.js";
|
|
32
|
+
export type { PointerDriver } from "./render/pointer.js";
|
|
33
|
+
export * from "./scene/index.js";
|
|
34
|
+
export * from "./shapes/index.js";
|
|
35
|
+
export type { ShapeGeometry, ShapeWrite } from "./spec/bake.js";
|
|
36
|
+
export type { ClipShape } from "./spec/clip.js";
|
|
37
|
+
export type { ColorRampSpec } from "./spec/colorRampProp.js";
|
|
38
|
+
export * from "./spec/gradient.js";
|
|
39
|
+
export * from "./spec/layout.js";
|
|
40
|
+
export type { ImagePixels } from "./spec/types.js";
|
|
41
|
+
export * from "./tween/index.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* `alongPath` is a closest-point search plus an arc-length lookup
|
|
5
5
|
* (`geometry/path/`).
|
|
6
6
|
*/
|
|
7
|
-
import type { ArcTable, Bounds, Point, Polyline } from "../geometry";
|
|
8
|
-
import type { Readable } from "../reactive";
|
|
9
|
-
import type { ScenePointerEvent } from "./types";
|
|
7
|
+
import type { ArcTable, Bounds, Point, Polyline } from "../geometry/index.js";
|
|
8
|
+
import type { Readable } from "../reactive/index.js";
|
|
9
|
+
import type { ScenePointerEvent } from "./types.js";
|
|
10
10
|
/**
|
|
11
11
|
* Where a gesture is, and where it began, in the units the projection works in.
|
|
12
12
|
*
|
|
@@ -268,4 +268,3 @@ export declare const constraints: Readonly<{
|
|
|
268
268
|
* @category Interaction plumbing
|
|
269
269
|
*/
|
|
270
270
|
export declare function resolveConstraint(spec: ConstraintSpec | ConstraintSpec[] | undefined): DragConstraint | null;
|
|
271
|
-
//# sourceMappingURL=constrain.d.ts.map
|
package/dist/interact/drag.d.ts
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* and a cancel restores exactly. The arithmetic is in `event.local`, the node's
|
|
9
9
|
* own units, so dragging inside a rotated group tracks the pointer exactly.
|
|
10
10
|
*/
|
|
11
|
-
import type { Point } from "../geometry";
|
|
12
|
-
import type { Readable } from "../reactive";
|
|
13
|
-
import type { Animatable } from "../tween/target";
|
|
14
|
-
import type { ConstraintSpec, DragContext } from "./constrain";
|
|
15
|
-
import type { DragBehaviour, KeyboardBehaviour, PointerEvents, ScenePointerEvent } from "./types";
|
|
11
|
+
import type { Point } from "../geometry/index.js";
|
|
12
|
+
import type { Readable } from "../reactive/index.js";
|
|
13
|
+
import type { Animatable } from "../tween/target.js";
|
|
14
|
+
import type { ConstraintSpec, DragContext } from "./constrain.js";
|
|
15
|
+
import type { DragBehaviour, KeyboardBehaviour, PointerEvents, ScenePointerEvent } from "./types.js";
|
|
16
16
|
/**
|
|
17
17
|
* The projection a drag is parameterised on: pointer → value, value → point.
|
|
18
18
|
*
|
|
@@ -157,4 +157,3 @@ export interface DraggableProps {
|
|
|
157
157
|
* @category Interaction
|
|
158
158
|
*/
|
|
159
159
|
export declare function draggable<T = Point>(cell: Animatable<T>, options?: DragOptions<T>): DraggableProps;
|
|
160
|
-
//# sourceMappingURL=drag.d.ts.map
|
package/dist/interact/drop.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* watches that answer. It is one prop bag (`{ drop }`) because enter, leave, drop
|
|
5
5
|
* and the `over` track only make sense together.
|
|
6
6
|
*/
|
|
7
|
-
import type { DropTarget, PointerEvents, ScenePointerEvent, Sink } from "./types";
|
|
7
|
+
import type { DropTarget, PointerEvents, ScenePointerEvent, Sink } from "./types.js";
|
|
8
8
|
/** @category Interaction */
|
|
9
9
|
export interface DropOptions {
|
|
10
10
|
/**
|
|
@@ -69,4 +69,3 @@ export interface DropTargetProps {
|
|
|
69
69
|
* @category Interaction
|
|
70
70
|
*/
|
|
71
71
|
export declare function dropTarget(options?: DropOptions): DropTargetProps;
|
|
72
|
-
//# sourceMappingURL=drop.d.ts.map
|
package/dist/interact/hit.d.ts
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* partly revealed stroke tests only its drawn part, and a node's `clip` gates
|
|
9
9
|
* everything.
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import type { ClipRegion, DrawSpec, TextSpec } from "../spec/types";
|
|
14
|
-
import type { HitCandidate, HitOptions } from "./types";
|
|
11
|
+
import { boundsContain } from "../geometry/bounds.js";
|
|
12
|
+
import type { Bounds, Point, Polyline } from "../geometry/index.js";
|
|
13
|
+
import type { ClipRegion, DrawSpec, TextSpec } from "../spec/types.js";
|
|
14
|
+
import type { HitCandidate, HitOptions } from "./types.js";
|
|
15
15
|
/**
|
|
16
16
|
* Axis-aligned boxes memoised per node, so the cheap rejection that precedes
|
|
17
17
|
* every real test is not itself a walk over the geometry.
|
|
@@ -196,4 +196,3 @@ export declare function hitSpec(spec: DrawSpec, candidate: HitCandidate, at: Poi
|
|
|
196
196
|
* @category Interaction plumbing
|
|
197
197
|
*/
|
|
198
198
|
export declare function hitTest(specs: readonly DrawSpec[], candidates: ReadonlyMap<number, HitCandidate>, at: Point, options?: HitOptions): number | null;
|
|
199
|
-
//# sourceMappingURL=hit.d.ts.map
|
package/dist/interact/index.d.ts
CHANGED
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
* targets and the interaction vocabulary (events, handlers, records). No DOM
|
|
5
5
|
* events: the pointer driver in `render/` turns those into calls here.
|
|
6
6
|
*/
|
|
7
|
-
export * from "./constrain";
|
|
8
|
-
export * from "./drag";
|
|
9
|
-
export * from "./drop";
|
|
10
|
-
export * from "./hit";
|
|
11
|
-
export * from "./item-order";
|
|
12
|
-
export * from "./param";
|
|
13
|
-
export * from "./pick-items";
|
|
14
|
-
export * from "./pointer";
|
|
15
|
-
export * from "./registry";
|
|
16
|
-
export * from "./slop";
|
|
17
|
-
export * from "./types";
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
7
|
+
export * from "./constrain.js";
|
|
8
|
+
export * from "./drag.js";
|
|
9
|
+
export * from "./drop.js";
|
|
10
|
+
export * from "./hit.js";
|
|
11
|
+
export * from "./item-order.js";
|
|
12
|
+
export * from "./param.js";
|
|
13
|
+
export * from "./pick-items.js";
|
|
14
|
+
export * from "./pointer.js";
|
|
15
|
+
export * from "./registry.js";
|
|
16
|
+
export * from "./slop.js";
|
|
17
|
+
export * from "./types.js";
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* Up and Down go to the nearest item above or below (an image steps one row),
|
|
10
10
|
* Home and End go to the ends, PageUp and PageDown jump a tenth of the way.
|
|
11
11
|
*/
|
|
12
|
-
import type { Bounds, Point } from "../geometry";
|
|
13
|
-
import type { Matrix } from "../geometry/transform";
|
|
14
|
-
import type { DrawSpec } from "../spec/types";
|
|
12
|
+
import type { Bounds, Point } from "../geometry/index.js";
|
|
13
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
14
|
+
import type { DrawSpec } from "../spec/types.js";
|
|
15
15
|
/** How many items a node walks: a marks node's items, an image's pixels, else 0. */
|
|
16
16
|
export declare function itemCount(spec: DrawSpec): number;
|
|
17
17
|
/** An item's centre in scene units, or null for no such item. */
|
|
@@ -33,4 +33,3 @@ export declare function stepItem(spec: DrawSpec, current: number | null, key: st
|
|
|
33
33
|
* image. Null for no such item.
|
|
34
34
|
*/
|
|
35
35
|
export declare function itemPosition(spec: DrawSpec, item: number, view: Matrix): number | null;
|
|
36
|
-
//# sourceMappingURL=item-order.d.ts.map
|
package/dist/interact/param.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* parameter). `pointParam` is the identity. `pathParam` and `alongPath` look the
|
|
4
4
|
* same on screen; the first writes `t`, the second a `Point`.
|
|
5
5
|
*/
|
|
6
|
-
import type { Point, Polyline } from "../geometry";
|
|
7
|
-
import type { Readable } from "../reactive";
|
|
8
|
-
import type { DragParam } from "./drag";
|
|
6
|
+
import type { Point, Polyline } from "../geometry/index.js";
|
|
7
|
+
import type { Readable } from "../reactive/index.js";
|
|
8
|
+
import type { DragParam } from "./drag.js";
|
|
9
9
|
/**
|
|
10
10
|
* A polyline given outright, or one that changes (an animating graph): a
|
|
11
11
|
* `Readable` or a getter, read afresh on every move.
|
|
@@ -94,4 +94,3 @@ export declare function scalarParam(from: Point, to: Point, options?: ScalarPara
|
|
|
94
94
|
* @category Interaction
|
|
95
95
|
*/
|
|
96
96
|
export declare function pathParam(line: LineSource): DragParam<number>;
|
|
97
|
-
//# sourceMappingURL=param.d.ts.map
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* hands over the same arrays keeps its grid, a changed layer builds a new one
|
|
11
11
|
* on the next pick, and a layer that is never hovered never builds one.
|
|
12
12
|
*/
|
|
13
|
-
import type { Point } from "../geometry";
|
|
14
|
-
import type { ImageSpec, MarksSpec } from "../spec/types";
|
|
13
|
+
import type { Point } from "../geometry/index.js";
|
|
14
|
+
import type { ImageSpec, MarksSpec } from "../spec/types.js";
|
|
15
15
|
/**
|
|
16
16
|
* The topmost item of a marks node under `at` (the highest index, since items
|
|
17
17
|
* paint in index order), or null.
|
|
@@ -31,4 +31,3 @@ export declare function pickMark(spec: MarksSpec, at: Point, slop?: number): num
|
|
|
31
31
|
* @category Interaction plumbing
|
|
32
32
|
*/
|
|
33
33
|
export declare function pickPixel(spec: ImageSpec, at: Point): number | null;
|
|
34
|
-
//# sourceMappingURL=pick-items.d.ts.map
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* gesture events a node is handed. The pointer driver fills it in; it lives in
|
|
5
5
|
* `interact/` so neither scene code nor the driver depends on the other.
|
|
6
6
|
*/
|
|
7
|
-
import type { Point } from "../geometry";
|
|
8
|
-
import type { Readable } from "../reactive";
|
|
7
|
+
import type { Point } from "../geometry/index.js";
|
|
8
|
+
import type { Readable } from "../reactive/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* The pointer over a canvas, resolved into the spaces a scene reads in.
|
|
11
11
|
*
|
|
@@ -69,4 +69,3 @@ export declare function samePointer(a: ScenePointer | null, b: ScenePointer | nu
|
|
|
69
69
|
* @category Interaction plumbing
|
|
70
70
|
*/
|
|
71
71
|
export declare function createPointerChannel(): PointerChannel;
|
|
72
|
-
//# sourceMappingURL=pointer.d.ts.map
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* through the `Readable`s (`version`, `focus.state`): subscribers only mark
|
|
10
10
|
* and read with `peek()` later, as everywhere in the core.
|
|
11
11
|
*/
|
|
12
|
-
import type { Readable } from "../reactive";
|
|
13
|
-
import type { HitCandidate, InteractionRecord } from "./types";
|
|
12
|
+
import type { Readable } from "../reactive/index.js";
|
|
13
|
+
import type { HitCandidate, InteractionRecord } from "./types.js";
|
|
14
14
|
/**
|
|
15
15
|
* The interactive nodes of one scene.
|
|
16
16
|
*
|
|
@@ -61,4 +61,3 @@ export interface FocusChannel {
|
|
|
61
61
|
/** Moves focus (null clears it). */
|
|
62
62
|
set(id: number | null, source?: FocusSource): void;
|
|
63
63
|
}
|
|
64
|
-
//# sourceMappingURL=registry.d.ts.map
|
package/dist/interact/slop.d.ts
CHANGED
package/dist/interact/types.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* gesture writes is a `Sink`: an `Animatable<T>` (`peek` + `set`, the only
|
|
5
5
|
* type imported from `tween/`) or a plain setter.
|
|
6
6
|
*/
|
|
7
|
-
import type { Bounds, Point, Polyline } from "../geometry";
|
|
8
|
-
import type { Matrix } from "../geometry/transform";
|
|
9
|
-
import type { Animatable } from "../tween/target";
|
|
10
|
-
import type { HitCache } from "./hit";
|
|
7
|
+
import type { Bounds, Point, Polyline } from "../geometry/index.js";
|
|
8
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
9
|
+
import type { Animatable } from "../tween/target.js";
|
|
10
|
+
import type { HitCache } from "./hit.js";
|
|
11
11
|
/**
|
|
12
12
|
* Somewhere a gesture can write a value: an `Animatable<T>` (a `Track<T>`, or
|
|
13
13
|
* a `lensTarget` / `propTarget` / `storeTarget` over your own state) or a
|
|
@@ -416,4 +416,3 @@ export interface InteractionProps extends InteractionHandlers {
|
|
|
416
416
|
* @category Interaction plumbing
|
|
417
417
|
*/
|
|
418
418
|
export declare function hasInteraction(props: InteractionProps): boolean;
|
|
419
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* own node, which gives tabular columns and per-digit styling through
|
|
6
6
|
* `digitStyle`.
|
|
7
7
|
*/
|
|
8
|
-
import type { ColorInput } from "../color";
|
|
9
|
-
import type { Bounds, Polyline } from "../geometry";
|
|
10
|
-
import type { Matrix } from "../geometry/transform";
|
|
11
|
-
import type { Definition, PropsDescriptor, SceneNode } from "../scene/types";
|
|
12
|
-
import type { GlyphSlot, NumberFormat } from "./digits";
|
|
13
|
-
import { TextLayoutNode } from "./text-layout";
|
|
8
|
+
import type { ColorInput } from "../color/index.js";
|
|
9
|
+
import type { Bounds, Polyline } from "../geometry/index.js";
|
|
10
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
11
|
+
import type { Definition, PropsDescriptor, SceneNode } from "../scene/types.js";
|
|
12
|
+
import type { GlyphSlot, NumberFormat } from "./digits.js";
|
|
13
|
+
import { TextLayoutNode } from "./text-layout.js";
|
|
14
14
|
/**
|
|
15
15
|
* What `digitStyle` is asked about. One entry per drawn character.
|
|
16
16
|
*
|
|
@@ -324,4 +324,3 @@ export declare const variableProps: PropsDescriptor<VariableProps>;
|
|
|
324
324
|
* @category Text & numbers
|
|
325
325
|
*/
|
|
326
326
|
export declare const variable: Definition<VariableProps, VariableNode>;
|
|
327
|
-
//# sourceMappingURL=decimal-number.d.ts.map
|
package/dist/labels/digits.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* then holds still, and each character is addressable. Kerning is discarded,
|
|
6
6
|
* which is exact for digits and signs but would be wrong for prose.
|
|
7
7
|
*/
|
|
8
|
-
import type { MetricsStyle } from "../spec/metrics";
|
|
8
|
+
import type { MetricsStyle } from "../spec/metrics.js";
|
|
9
9
|
/**
|
|
10
10
|
* U+2212. A hyphen is not a minus sign, and at this size you can tell.
|
|
11
11
|
*
|
|
@@ -154,4 +154,3 @@ export interface GlyphLayoutOptions {
|
|
|
154
154
|
* @category Scene registry & specs
|
|
155
155
|
*/
|
|
156
156
|
export declare function layoutGlyphs(text: string, style: MetricsStyle, options?: GlyphLayoutOptions): GlyphRun;
|
|
157
|
-
//# sourceMappingURL=digits.d.ts.map
|
package/dist/labels/index.d.ts
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* (`paragraph`, `bulletedList`, `title`). The single-line `label` and
|
|
5
5
|
* `defineText` live with the text node kind in `scene/text.ts`.
|
|
6
6
|
*/
|
|
7
|
-
export * from "./decimal-number";
|
|
8
|
-
export * from "./digits";
|
|
9
|
-
export * from "./paragraph";
|
|
10
|
-
export { TextLayoutNode } from "./text-layout";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
7
|
+
export * from "./decimal-number.js";
|
|
8
|
+
export * from "./digits.js";
|
|
9
|
+
export * from "./paragraph.js";
|
|
10
|
+
export { TextLayoutNode } from "./text-layout.js";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* is centred on its anchor, takes `place`, and its handle reports the whole
|
|
5
5
|
* box. No hyphenation, justification or mid-word breaks.
|
|
6
6
|
*/
|
|
7
|
-
import type { ColorInput } from "../color";
|
|
8
|
-
import type { Bounds, Polyline } from "../geometry";
|
|
9
|
-
import type { Matrix } from "../geometry/transform";
|
|
10
|
-
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor, SceneNode } from "../scene/types";
|
|
11
|
-
import type { TextFont } from "../spec/bake";
|
|
12
|
-
import type { Placement } from "../spec/layout";
|
|
13
|
-
import type { MetricsStyle } from "../spec/metrics";
|
|
14
|
-
import { TextLayoutNode } from "./text-layout";
|
|
7
|
+
import type { ColorInput } from "../color/index.js";
|
|
8
|
+
import type { Bounds, Polyline } from "../geometry/index.js";
|
|
9
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
10
|
+
import type { ContextKey, Definition, InvalidateBits, PropsDescriptor, SceneNode } from "../scene/types.js";
|
|
11
|
+
import type { TextFont } from "../spec/bake.js";
|
|
12
|
+
import type { Placement } from "../spec/layout.js";
|
|
13
|
+
import type { MetricsStyle } from "../spec/metrics.js";
|
|
14
|
+
import { TextLayoutNode } from "./text-layout.js";
|
|
15
15
|
/**
|
|
16
16
|
* Breaks `text` into lines no wider than `width`, greedily, a word at a time,
|
|
17
17
|
* measured with the metrics oracle. Newlines always break, and an empty line
|
|
@@ -311,4 +311,3 @@ export declare const titleProps: PropsDescriptor<TitleProps>;
|
|
|
311
311
|
*/
|
|
312
312
|
export declare const title: Definition<TitleProps, TitleNode>;
|
|
313
313
|
export {};
|
|
314
|
-
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
* actually reruns. The theme and a web font load (`fontEpochContext`) rerun it
|
|
16
16
|
* too, and joining a graph starts that graph's font-load subscription.
|
|
17
17
|
*/
|
|
18
|
-
import type { Bounds, Polyline } from "../geometry";
|
|
19
|
-
import { BaseContainer } from "../scene/container";
|
|
20
|
-
import type { SceneGraph } from "../scene/graph";
|
|
21
|
-
import type { ContextKey, InvalidateBits, SceneNode } from "../scene/types";
|
|
18
|
+
import type { Bounds, Polyline } from "../geometry/index.js";
|
|
19
|
+
import { BaseContainer } from "../scene/container.js";
|
|
20
|
+
import type { SceneGraph } from "../scene/graph.js";
|
|
21
|
+
import type { ContextKey, InvalidateBits, SceneNode } from "../scene/types.js";
|
|
22
22
|
/**
|
|
23
23
|
* A box's four corners, `minX..maxX` by `minY..maxY`, as one closed polyline.
|
|
24
24
|
*
|
|
@@ -72,4 +72,3 @@ export declare abstract class TextLayoutNode<P extends object = object> extends
|
|
|
72
72
|
bounds(): Bounds | null;
|
|
73
73
|
localBounds(): Bounds | null;
|
|
74
74
|
}
|
|
75
|
-
//# sourceMappingURL=text-layout.d.ts.map
|
package/dist/network/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* network: Manim's `Graph` and `DiGraph` as composites.
|
|
3
3
|
*/
|
|
4
|
-
export type { EdgeConfig, EdgeMap, EdgeRender, EdgeSpec, NetworkGraphHandle, NetworkGraphProps, VertexConfig, VertexMap, VertexRender, } from "./network-graph";
|
|
5
|
-
export { diGraph, networkGraph, networkHandle } from "./network-graph";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
4
|
+
export type { EdgeConfig, EdgeMap, EdgeRender, EdgeSpec, NetworkGraphHandle, NetworkGraphProps, VertexConfig, VertexMap, VertexRender, } from "./network-graph.js";
|
|
5
|
+
export { diGraph, networkGraph, networkHandle } from "./network-graph.js";
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* vertices, edges or layout options change. `progress` is split into two
|
|
15
15
|
* phases bound straight to the parts, so a reveal never reaches `update`.
|
|
16
16
|
*/
|
|
17
|
-
import type { ColorInput } from "../color";
|
|
18
|
-
import type { GraphEdge, GraphExtent, GraphLayoutOptions, GraphLayoutSpec, Point, TipShape, VertexId } from "../geometry";
|
|
19
|
-
import type { Readable } from "../reactive";
|
|
20
|
-
import type { SceneNode } from "../scene/types";
|
|
21
|
-
import type { PaintSpec } from "../spec/gradient";
|
|
17
|
+
import type { ColorInput } from "../color/index.js";
|
|
18
|
+
import type { GraphEdge, GraphExtent, GraphLayoutOptions, GraphLayoutSpec, Point, TipShape, VertexId } from "../geometry/index.js";
|
|
19
|
+
import type { Readable } from "../reactive/index.js";
|
|
20
|
+
import type { SceneNode } from "../scene/types.js";
|
|
21
|
+
import type { PaintSpec } from "../spec/gradient.js";
|
|
22
22
|
/**
|
|
23
23
|
* One vertex's appearance. Merged over `vertexConfig`, so a scene names only
|
|
24
24
|
* what differs.
|
|
@@ -274,7 +274,7 @@ export interface NetworkGraphProps {
|
|
|
274
274
|
* @see {@link https://sophistry.dev/guides/fields-and-graphs/#network-graphs}
|
|
275
275
|
* @category Coordinate systems & graphs
|
|
276
276
|
*/
|
|
277
|
-
export declare const networkGraph: import("
|
|
277
|
+
export declare const networkGraph: import("../scene/types.js").Definition<NetworkGraphProps, import("../scene/composite.js").CompositeNode<NetworkGraphProps>, keyof NetworkGraphProps>;
|
|
278
278
|
/**
|
|
279
279
|
* A directed {@link networkGraph}: edges are arrows from `source` to `target`
|
|
280
280
|
* and `(u, v)` is no longer treated as `(v, u)` — Manim's `DiGraph`.
|
|
@@ -292,7 +292,7 @@ export declare const networkGraph: import("..").Definition<NetworkGraphProps, im
|
|
|
292
292
|
*
|
|
293
293
|
* @category Coordinate systems & graphs
|
|
294
294
|
*/
|
|
295
|
-
export declare const diGraph: import("
|
|
295
|
+
export declare const diGraph: import("../scene/types.js").Definition<NetworkGraphProps, import("../scene/composite.js").CompositeNode<NetworkGraphProps>, keyof NetworkGraphProps>;
|
|
296
296
|
/**
|
|
297
297
|
* The {@link NetworkGraphHandle} of a `networkGraph` or `diGraph` node:
|
|
298
298
|
* positions, radii and each part's node.
|
|
@@ -312,4 +312,3 @@ export declare const diGraph: import("..").Definition<NetworkGraphProps, import(
|
|
|
312
312
|
* @category Coordinate systems & graphs
|
|
313
313
|
*/
|
|
314
314
|
export declare function networkHandle(node: SceneNode): NetworkGraphHandle;
|
|
315
|
-
//# sourceMappingURL=network-graph.d.ts.map
|
package/dist/reactive/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export type { Readable, Track, TrackOptions, ValuesOf } from "./track";
|
|
2
|
-
export { derive, isReadable, track } from "./track";
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export type { Readable, Track, TrackOptions, ValuesOf } from "./track.js";
|
|
2
|
+
export { derive, isReadable, track } from "./track.js";
|
package/dist/reactive/track.d.ts
CHANGED
package/dist/render/a11y.d.ts
CHANGED
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
* only marks the mirror stale, and the DOM is brought up to date once, in the
|
|
13
13
|
* paint phase of the frame (after the commit that produced the snapshot).
|
|
14
14
|
*/
|
|
15
|
-
import type { Point } from "../geometry";
|
|
16
|
-
import type { Matrix } from "../geometry/transform";
|
|
17
|
-
import type { FocusChannel, InteractionRegistry } from "../interact/registry";
|
|
18
|
-
import type { Readable } from "../reactive";
|
|
19
|
-
import type { DrawSpec } from "../spec/types";
|
|
20
|
-
import type { CameraView } from "./camera";
|
|
15
|
+
import type { Point } from "../geometry/index.js";
|
|
16
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
17
|
+
import type { FocusChannel, InteractionRegistry } from "../interact/registry.js";
|
|
18
|
+
import type { Readable } from "../reactive/index.js";
|
|
19
|
+
import type { DrawSpec } from "../spec/types.js";
|
|
20
|
+
import type { CameraView } from "./camera.js";
|
|
21
21
|
/**
|
|
22
22
|
* The nodes the focus ring should wrap: the focused node and the rest of its
|
|
23
23
|
* interaction group, or null when nothing is focused or the focus is not
|
|
@@ -150,4 +150,3 @@ export interface AccessibilityMirror {
|
|
|
150
150
|
* @category Interaction plumbing
|
|
151
151
|
*/
|
|
152
152
|
export declare function createAccessibilityMirror(options: AccessibilityMirrorOptions): AccessibilityMirror;
|
|
153
|
-
//# sourceMappingURL=a11y.d.ts.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* unclaimed wheels and touch claim in one call. Their gesture maths stays
|
|
5
5
|
* separate: pan/zoom re-anchors to a scene point; orbit tracks a delta.
|
|
6
6
|
*/
|
|
7
|
-
import type { BackgroundPointerEvent, PointerDriver, SceneWheelEvent } from "./pointer";
|
|
7
|
+
import type { BackgroundPointerEvent, PointerDriver, SceneWheelEvent } from "./pointer.js";
|
|
8
8
|
/**
|
|
9
9
|
* Whether a gesture locked to `camera` belongs to a controller that only
|
|
10
10
|
* wants a specific camera index (`wanted`). `undefined` means "any camera",
|
|
@@ -53,4 +53,3 @@ export interface CameraGestureOptions {
|
|
|
53
53
|
* @category Interaction plumbing
|
|
54
54
|
*/
|
|
55
55
|
export declare function subscribeCameraGesture(driver: PointerDriver, handlers: CameraGestureHandlers, options?: CameraGestureOptions): () => void;
|
|
56
|
-
//# sourceMappingURL=camera-gesture.d.ts.map
|