@sophistry/core 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anim/animation.d.ts +1 -2
- package/dist/anim/draw.d.ts +2 -3
- package/dist/anim/emphasis.d.ts +2 -3
- package/dist/anim/fade.d.ts +3 -4
- package/dist/anim/growing.d.ts +3 -4
- package/dist/anim/index.d.ts +32 -33
- package/dist/anim/indication.d.ts +3 -4
- package/dist/anim/move.d.ts +4 -5
- package/dist/anim/movement.d.ts +4 -5
- package/dist/anim/points.d.ts +1 -2
- package/dist/anim/sequence.d.ts +1 -2
- package/dist/anim/slots.d.ts +4 -5
- package/dist/anim/speed.d.ts +1 -2
- package/dist/anim/spring.d.ts +6 -7
- package/dist/anim/timeline.d.ts +4 -5
- package/dist/anim/transform.d.ts +4 -5
- package/dist/anim/tween.d.ts +3 -4
- package/dist/anim/types.d.ts +3 -4
- package/dist/color/convert.d.ts +1 -2
- package/dist/color/index.d.ts +8 -9
- package/dist/color/named.d.ts +0 -1
- package/dist/color/ops.d.ts +2 -3
- package/dist/color/parse.d.ts +1 -2
- package/dist/color/random.d.ts +1 -2
- package/dist/color/types.d.ts +0 -1
- package/dist/coords/axes.d.ts +8 -9
- package/dist/coords/axis-composition.d.ts +2 -3
- package/dist/coords/axis-labels.d.ts +6 -7
- package/dist/coords/complex-plane.d.ts +8 -9
- package/dist/coords/coords.d.ts +3 -4
- package/dist/coords/function-graph.d.ts +6 -7
- package/dist/coords/graph-annotations.d.ts +11 -12
- package/dist/coords/grid-lines.d.ts +6 -7
- package/dist/coords/implicit-function.d.ts +3 -4
- package/dist/coords/index.d.ts +24 -25
- package/dist/coords/linear-transform.d.ts +6 -7
- package/dist/coords/number-line.d.ts +7 -8
- package/dist/coords/number-plane.d.ts +7 -8
- package/dist/coords/polar-plane.d.ts +6 -7
- package/dist/coords/tangent.d.ts +3 -4
- package/dist/coords/vector-field.d.ts +8 -9
- package/dist/entries/color.d.ts +12 -13
- package/dist/entries/definitions.d.ts +2 -3
- package/dist/entries/geometry.d.ts +42 -43
- package/dist/entries/internal.d.ts +45 -46
- package/dist/entries/internal.js +1 -1
- package/dist/entries/themes.d.ts +14 -15
- package/dist/export/frames.d.ts +3 -4
- package/dist/export/index.d.ts +1 -2
- package/dist/geometry/arc.d.ts +1 -2
- package/dist/geometry/band.d.ts +1 -2
- package/dist/geometry/bounds.d.ts +3 -4
- package/dist/geometry/brace.d.ts +1 -2
- package/dist/geometry/complex.d.ts +0 -1
- package/dist/geometry/curves.d.ts +1 -2
- package/dist/geometry/delaunay.d.ts +0 -1
- package/dist/geometry/field.d.ts +1 -2
- package/dist/geometry/graph-layout.d.ts +1 -2
- package/dist/geometry/implicit.d.ts +1 -2
- package/dist/geometry/index.d.ts +41 -42
- package/dist/geometry/lerp.d.ts +2 -3
- package/dist/geometry/morph.d.ts +2 -3
- package/dist/geometry/num.d.ts +1 -2
- package/dist/geometry/path/arclength.d.ts +1 -2
- package/dist/geometry/path/cubic.d.ts +1 -2
- package/dist/geometry/path/outline-reveal.d.ts +2 -3
- package/dist/geometry/path/svg-path.d.ts +1 -2
- package/dist/geometry/path/types.d.ts +0 -1
- package/dist/geometry/resolver.d.ts +0 -1
- package/dist/geometry/scale/range-transition.d.ts +1 -2
- package/dist/geometry/scale/scales.d.ts +2 -3
- package/dist/geometry/scale/tick-format.d.ts +2 -3
- package/dist/geometry/scale/ticks.d.ts +1 -2
- package/dist/geometry/shape-match.d.ts +1 -2
- package/dist/geometry/shapes.d.ts +1 -2
- package/dist/geometry/stitch.d.ts +0 -1
- package/dist/geometry/time.d.ts +0 -1
- package/dist/geometry/tips.d.ts +1 -2
- package/dist/geometry/transform.d.ts +1 -2
- package/dist/geometry/view-matrix.d.ts +2 -3
- package/dist/geometry/write-phase.d.ts +0 -1
- package/dist/geometry3d/camera.d.ts +1 -2
- package/dist/geometry3d/index.d.ts +4 -5
- package/dist/geometry3d/mat.d.ts +0 -3
- package/dist/index.d.ts +34 -35
- package/dist/interact/constrain.d.ts +3 -4
- package/dist/interact/drag.d.ts +5 -6
- package/dist/interact/drop.d.ts +1 -2
- package/dist/interact/hit.d.ts +4 -5
- package/dist/interact/index.d.ts +11 -12
- package/dist/interact/item-order.d.ts +3 -4
- package/dist/interact/param.d.ts +3 -4
- package/dist/interact/pick-items.d.ts +2 -3
- package/dist/interact/pointer.d.ts +2 -3
- package/dist/interact/registry.d.ts +2 -3
- package/dist/interact/slop.d.ts +0 -1
- package/dist/interact/types.d.ts +4 -5
- package/dist/labels/decimal-number.d.ts +6 -7
- package/dist/labels/digits.d.ts +1 -2
- package/dist/labels/index.d.ts +4 -5
- package/dist/labels/paragraph.d.ts +8 -9
- package/dist/labels/text-layout.d.ts +4 -5
- package/dist/network/index.d.ts +2 -3
- package/dist/network/network-graph.d.ts +7 -8
- package/dist/reactive/index.d.ts +2 -3
- package/dist/reactive/track.d.ts +0 -1
- package/dist/render/a11y.d.ts +6 -7
- package/dist/render/camera-gesture.d.ts +1 -2
- package/dist/render/camera.d.ts +3 -4
- package/dist/render/canvas-renderer.d.ts +7 -8
- package/dist/render/index.d.ts +8 -9
- package/dist/render/layer-cache.d.ts +2 -3
- package/dist/render/paint-items.d.ts +5 -6
- package/dist/render/paint.d.ts +4 -5
- package/dist/render/pointer-core.d.ts +5 -6
- package/dist/render/pointer-drop.d.ts +3 -4
- package/dist/render/pointer-gestures.d.ts +5 -6
- package/dist/render/pointer-presence.d.ts +3 -4
- package/dist/render/pointer-wheel.d.ts +3 -4
- package/dist/render/pointer.d.ts +8 -9
- package/dist/scene/cameras.d.ts +5 -6
- package/dist/scene/composite.d.ts +5 -6
- package/dist/scene/container.d.ts +4 -5
- package/dist/scene/context.d.ts +6 -7
- package/dist/scene/fonts.d.ts +3 -4
- package/dist/scene/graph.d.ts +4 -5
- package/dist/scene/group.d.ts +6 -7
- package/dist/scene/index.d.ts +21 -22
- package/dist/scene/instance-bank.d.ts +3 -4
- package/dist/scene/instance-marks.d.ts +5 -6
- package/dist/scene/instance-node.d.ts +7 -8
- package/dist/scene/instances.d.ts +5 -6
- package/dist/scene/interaction-group-context.d.ts +2 -3
- package/dist/scene/interaction-group.d.ts +3 -4
- package/dist/scene/interaction-props.d.ts +2 -3
- package/dist/scene/interaction.d.ts +2 -3
- package/dist/scene/marks.d.ts +7 -8
- package/dist/scene/node.d.ts +8 -9
- package/dist/scene/pan-zoom.d.ts +4 -5
- package/dist/scene/path-batch.d.ts +4 -5
- package/dist/scene/primitive.d.ts +5 -6
- package/dist/scene/scene.d.ts +20 -21
- package/dist/scene/shape.d.ts +10 -11
- package/dist/scene/text.d.ts +10 -11
- package/dist/scene/types.d.ts +5 -6
- package/dist/shapes/angle.d.ts +5 -6
- package/dist/shapes/animated-boundary.d.ts +5 -6
- package/dist/shapes/arc.d.ts +7 -8
- package/dist/shapes/bezier.d.ts +4 -5
- package/dist/shapes/brace.d.ts +4 -5
- package/dist/shapes/circle.d.ts +4 -5
- package/dist/shapes/dot.d.ts +6 -7
- package/dist/shapes/forward.d.ts +3 -4
- package/dist/shapes/index.d.ts +30 -31
- package/dist/shapes/line.d.ts +12 -13
- package/dist/shapes/matchers.d.ts +4 -5
- package/dist/shapes/path.d.ts +4 -5
- package/dist/shapes/polygon.d.ts +3 -4
- package/dist/shapes/polygram.d.ts +5 -6
- package/dist/shapes/rect.d.ts +4 -5
- package/dist/shapes/traced-path.d.ts +6 -7
- package/dist/shapes/transform-matching-shapes.d.ts +4 -5
- package/dist/spec/bake.d.ts +6 -7
- package/dist/spec/clip.d.ts +3 -4
- package/dist/spec/colorRampProp.d.ts +2 -3
- package/dist/spec/compile.d.ts +1 -2
- package/dist/spec/gradient.d.ts +3 -4
- package/dist/spec/index.d.ts +8 -9
- package/dist/spec/layout.d.ts +2 -3
- package/dist/spec/metrics.d.ts +2 -3
- package/dist/spec/types.d.ts +2 -3
- package/dist/themes/catppuccin.d.ts +1 -2
- package/dist/themes/colormap.d.ts +1 -2
- package/dist/themes/css.d.ts +1 -2
- package/dist/themes/index.d.ts +13 -14
- package/dist/themes/mode.d.ts +2 -3
- package/dist/themes/palette.d.ts +1 -2
- package/dist/themes/ramp.d.ts +1 -2
- package/dist/themes/theme.d.ts +1 -2
- package/dist/themes/types.d.ts +1 -2
- package/dist/tween/clock.d.ts +2 -3
- package/dist/tween/easing.d.ts +0 -1
- package/dist/tween/frame-loop.d.ts +1 -2
- package/dist/tween/index.d.ts +19 -20
- package/dist/tween/interpolate.d.ts +1 -2
- package/dist/tween/interpolators.d.ts +5 -6
- package/dist/tween/reduced-motion.d.ts +1 -2
- package/dist/tween/spring.d.ts +1 -2
- package/dist/tween/target.d.ts +0 -1
- package/dist/tween/track.d.ts +2 -3
- package/package.json +2 -2
- package/dist/anim/animation.d.ts.map +0 -1
- package/dist/anim/draw.d.ts.map +0 -1
- package/dist/anim/emphasis.d.ts.map +0 -1
- package/dist/anim/fade.d.ts.map +0 -1
- package/dist/anim/growing.d.ts.map +0 -1
- package/dist/anim/index.d.ts.map +0 -1
- package/dist/anim/indication.d.ts.map +0 -1
- package/dist/anim/move.d.ts.map +0 -1
- package/dist/anim/movement.d.ts.map +0 -1
- package/dist/anim/points.d.ts.map +0 -1
- package/dist/anim/sequence.d.ts.map +0 -1
- package/dist/anim/slots.d.ts.map +0 -1
- package/dist/anim/speed.d.ts.map +0 -1
- package/dist/anim/spring.d.ts.map +0 -1
- package/dist/anim/timeline.d.ts.map +0 -1
- package/dist/anim/transform.d.ts.map +0 -1
- package/dist/anim/tween.d.ts.map +0 -1
- package/dist/anim/types.d.ts.map +0 -1
- package/dist/color/convert.d.ts.map +0 -1
- package/dist/color/index.d.ts.map +0 -1
- package/dist/color/named.d.ts.map +0 -1
- package/dist/color/ops.d.ts.map +0 -1
- package/dist/color/parse.d.ts.map +0 -1
- package/dist/color/random.d.ts.map +0 -1
- package/dist/color/types.d.ts.map +0 -1
- package/dist/coords/axes.d.ts.map +0 -1
- package/dist/coords/axis-composition.d.ts.map +0 -1
- package/dist/coords/axis-labels.d.ts.map +0 -1
- package/dist/coords/complex-plane.d.ts.map +0 -1
- package/dist/coords/coords.d.ts.map +0 -1
- package/dist/coords/function-graph.d.ts.map +0 -1
- package/dist/coords/graph-annotations.d.ts.map +0 -1
- package/dist/coords/grid-lines.d.ts.map +0 -1
- package/dist/coords/implicit-function.d.ts.map +0 -1
- package/dist/coords/index.d.ts.map +0 -1
- package/dist/coords/linear-transform.d.ts.map +0 -1
- package/dist/coords/number-line.d.ts.map +0 -1
- package/dist/coords/number-plane.d.ts.map +0 -1
- package/dist/coords/polar-plane.d.ts.map +0 -1
- package/dist/coords/tangent.d.ts.map +0 -1
- package/dist/coords/vector-field.d.ts.map +0 -1
- package/dist/entries/color.d.ts.map +0 -1
- package/dist/entries/definitions.d.ts.map +0 -1
- package/dist/entries/geometry.d.ts.map +0 -1
- package/dist/entries/internal.d.ts.map +0 -1
- package/dist/entries/themes.d.ts.map +0 -1
- package/dist/export/frames.d.ts.map +0 -1
- package/dist/export/index.d.ts.map +0 -1
- package/dist/geometry/arc.d.ts.map +0 -1
- package/dist/geometry/band.d.ts.map +0 -1
- package/dist/geometry/bounds.d.ts.map +0 -1
- package/dist/geometry/brace.d.ts.map +0 -1
- package/dist/geometry/complex.d.ts.map +0 -1
- package/dist/geometry/curves.d.ts.map +0 -1
- package/dist/geometry/delaunay.d.ts.map +0 -1
- package/dist/geometry/field.d.ts.map +0 -1
- package/dist/geometry/graph-layout.d.ts.map +0 -1
- package/dist/geometry/implicit.d.ts.map +0 -1
- package/dist/geometry/index.d.ts.map +0 -1
- package/dist/geometry/lerp.d.ts.map +0 -1
- package/dist/geometry/morph.d.ts.map +0 -1
- package/dist/geometry/num.d.ts.map +0 -1
- package/dist/geometry/path/arclength.d.ts.map +0 -1
- package/dist/geometry/path/cubic.d.ts.map +0 -1
- package/dist/geometry/path/outline-reveal.d.ts.map +0 -1
- package/dist/geometry/path/svg-path.d.ts.map +0 -1
- package/dist/geometry/path/types.d.ts.map +0 -1
- package/dist/geometry/resolver.d.ts.map +0 -1
- package/dist/geometry/scale/range-transition.d.ts.map +0 -1
- package/dist/geometry/scale/scales.d.ts.map +0 -1
- package/dist/geometry/scale/tick-format.d.ts.map +0 -1
- package/dist/geometry/scale/ticks.d.ts.map +0 -1
- package/dist/geometry/shape-match.d.ts.map +0 -1
- package/dist/geometry/shapes.d.ts.map +0 -1
- package/dist/geometry/stitch.d.ts.map +0 -1
- package/dist/geometry/time.d.ts.map +0 -1
- package/dist/geometry/tips.d.ts.map +0 -1
- package/dist/geometry/transform.d.ts.map +0 -1
- package/dist/geometry/view-matrix.d.ts.map +0 -1
- package/dist/geometry/write-phase.d.ts.map +0 -1
- package/dist/geometry3d/camera.d.ts.map +0 -1
- package/dist/geometry3d/index.d.ts.map +0 -1
- package/dist/geometry3d/mat.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/interact/constrain.d.ts.map +0 -1
- package/dist/interact/drag.d.ts.map +0 -1
- package/dist/interact/drop.d.ts.map +0 -1
- package/dist/interact/hit.d.ts.map +0 -1
- package/dist/interact/index.d.ts.map +0 -1
- package/dist/interact/item-order.d.ts.map +0 -1
- package/dist/interact/param.d.ts.map +0 -1
- package/dist/interact/pick-items.d.ts.map +0 -1
- package/dist/interact/pointer.d.ts.map +0 -1
- package/dist/interact/registry.d.ts.map +0 -1
- package/dist/interact/slop.d.ts.map +0 -1
- package/dist/interact/types.d.ts.map +0 -1
- package/dist/labels/decimal-number.d.ts.map +0 -1
- package/dist/labels/digits.d.ts.map +0 -1
- package/dist/labels/index.d.ts.map +0 -1
- package/dist/labels/paragraph.d.ts.map +0 -1
- package/dist/labels/text-layout.d.ts.map +0 -1
- package/dist/network/index.d.ts.map +0 -1
- package/dist/network/network-graph.d.ts.map +0 -1
- package/dist/reactive/index.d.ts.map +0 -1
- package/dist/reactive/track.d.ts.map +0 -1
- package/dist/render/a11y.d.ts.map +0 -1
- package/dist/render/camera-gesture.d.ts.map +0 -1
- package/dist/render/camera.d.ts.map +0 -1
- package/dist/render/canvas-renderer.d.ts.map +0 -1
- package/dist/render/index.d.ts.map +0 -1
- package/dist/render/layer-cache.d.ts.map +0 -1
- package/dist/render/paint-items.d.ts.map +0 -1
- package/dist/render/paint.d.ts.map +0 -1
- package/dist/render/pointer-core.d.ts.map +0 -1
- package/dist/render/pointer-drop.d.ts.map +0 -1
- package/dist/render/pointer-gestures.d.ts.map +0 -1
- package/dist/render/pointer-presence.d.ts.map +0 -1
- package/dist/render/pointer-wheel.d.ts.map +0 -1
- package/dist/render/pointer.d.ts.map +0 -1
- package/dist/scene/cameras.d.ts.map +0 -1
- package/dist/scene/composite.d.ts.map +0 -1
- package/dist/scene/container.d.ts.map +0 -1
- package/dist/scene/context.d.ts.map +0 -1
- package/dist/scene/fonts.d.ts.map +0 -1
- package/dist/scene/graph.d.ts.map +0 -1
- package/dist/scene/group.d.ts.map +0 -1
- package/dist/scene/index.d.ts.map +0 -1
- package/dist/scene/instance-bank.d.ts.map +0 -1
- package/dist/scene/instance-marks.d.ts.map +0 -1
- package/dist/scene/instance-node.d.ts.map +0 -1
- package/dist/scene/instances.d.ts.map +0 -1
- package/dist/scene/interaction-group-context.d.ts.map +0 -1
- package/dist/scene/interaction-group.d.ts.map +0 -1
- package/dist/scene/interaction-props.d.ts.map +0 -1
- package/dist/scene/interaction.d.ts.map +0 -1
- package/dist/scene/marks.d.ts.map +0 -1
- package/dist/scene/node.d.ts.map +0 -1
- package/dist/scene/pan-zoom.d.ts.map +0 -1
- package/dist/scene/path-batch.d.ts.map +0 -1
- package/dist/scene/primitive.d.ts.map +0 -1
- package/dist/scene/scene.d.ts.map +0 -1
- package/dist/scene/shape.d.ts.map +0 -1
- package/dist/scene/text.d.ts.map +0 -1
- package/dist/scene/types.d.ts.map +0 -1
- package/dist/shapes/angle.d.ts.map +0 -1
- package/dist/shapes/animated-boundary.d.ts.map +0 -1
- package/dist/shapes/arc.d.ts.map +0 -1
- package/dist/shapes/bezier.d.ts.map +0 -1
- package/dist/shapes/brace.d.ts.map +0 -1
- package/dist/shapes/circle.d.ts.map +0 -1
- package/dist/shapes/dot.d.ts.map +0 -1
- package/dist/shapes/forward.d.ts.map +0 -1
- package/dist/shapes/index.d.ts.map +0 -1
- package/dist/shapes/line.d.ts.map +0 -1
- package/dist/shapes/matchers.d.ts.map +0 -1
- package/dist/shapes/path.d.ts.map +0 -1
- package/dist/shapes/polygon.d.ts.map +0 -1
- package/dist/shapes/polygram.d.ts.map +0 -1
- package/dist/shapes/rect.d.ts.map +0 -1
- package/dist/shapes/traced-path.d.ts.map +0 -1
- package/dist/shapes/transform-matching-shapes.d.ts.map +0 -1
- package/dist/spec/bake.d.ts.map +0 -1
- package/dist/spec/clip.d.ts.map +0 -1
- package/dist/spec/colorRampProp.d.ts.map +0 -1
- package/dist/spec/compile.d.ts.map +0 -1
- package/dist/spec/gradient.d.ts.map +0 -1
- package/dist/spec/index.d.ts.map +0 -1
- package/dist/spec/layout.d.ts.map +0 -1
- package/dist/spec/metrics.d.ts.map +0 -1
- package/dist/spec/types.d.ts.map +0 -1
- package/dist/themes/catppuccin.d.ts.map +0 -1
- package/dist/themes/colormap.d.ts.map +0 -1
- package/dist/themes/css.d.ts.map +0 -1
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/mode.d.ts.map +0 -1
- package/dist/themes/palette.d.ts.map +0 -1
- package/dist/themes/ramp.d.ts.map +0 -1
- package/dist/themes/theme.d.ts.map +0 -1
- package/dist/themes/types.d.ts.map +0 -1
- package/dist/tween/clock.d.ts.map +0 -1
- package/dist/tween/easing.d.ts.map +0 -1
- package/dist/tween/frame-loop.d.ts.map +0 -1
- package/dist/tween/index.d.ts.map +0 -1
- package/dist/tween/interpolate.d.ts.map +0 -1
- package/dist/tween/interpolators.d.ts.map +0 -1
- package/dist/tween/reduced-motion.d.ts.map +0 -1
- package/dist/tween/spring.d.ts.map +0 -1
- package/dist/tween/target.d.ts.map +0 -1
- package/dist/tween/track.d.ts.map +0 -1
package/dist/render/camera.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* through these views and the pointer driver inverts them; the camera list
|
|
6
6
|
* itself (which cameras exist, in tree order) belongs to the scene.
|
|
7
7
|
*/
|
|
8
|
-
import type { Point } from "../geometry";
|
|
9
|
-
import type { Matrix } from "../geometry/transform";
|
|
10
|
-
import type { PixelBox } from "../geometry/view-matrix";
|
|
8
|
+
import type { Point } from "../geometry/index.js";
|
|
9
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
10
|
+
import type { PixelBox } from "../geometry/view-matrix.js";
|
|
11
11
|
/**
|
|
12
12
|
* A camera's rectangle of canvas, in **fractions** of the canvas — `{ x: 0.5,
|
|
13
13
|
* y: 0, width: 0.5, height: 1 }` is the right-hand half.
|
|
@@ -145,4 +145,3 @@ export declare function pictureInPictureViewports(corner?: PipCorner, size?: num
|
|
|
145
145
|
* @category Stage & cameras
|
|
146
146
|
*/
|
|
147
147
|
export declare function quadViewports(): [Viewport, Viewport, Viewport, Viewport];
|
|
148
|
-
//# sourceMappingURL=camera.d.ts.map
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
* return the same arrays while its inputs are unchanged; a stray `.map()` or
|
|
16
16
|
* spread silently re-measures every node every frame.
|
|
17
17
|
*/
|
|
18
|
-
import type { ArcTable, CurveArcTable, CurvePath, Polyline } from "../geometry";
|
|
19
|
-
import type { Matrix } from "../geometry/transform";
|
|
20
|
-
import type { DrawSpec } from "../spec/types";
|
|
21
|
-
import type { Theme } from "../themes/types";
|
|
22
|
-
import type { CameraView } from "./camera";
|
|
23
|
-
import type { PaintCache } from "./paint";
|
|
24
|
-
import type { DeviceRect } from "./paint-items";
|
|
18
|
+
import type { ArcTable, CurveArcTable, CurvePath, Polyline } from "../geometry/index.js";
|
|
19
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
20
|
+
import type { DrawSpec } from "../spec/types.js";
|
|
21
|
+
import type { Theme } from "../themes/types.js";
|
|
22
|
+
import type { CameraView } from "./camera.js";
|
|
23
|
+
import type { PaintCache } from "./paint.js";
|
|
24
|
+
import type { DeviceRect } from "./paint-items.js";
|
|
25
25
|
/**
|
|
26
26
|
* Options for {@link createCanvasRenderer}: the canvas and the state the first
|
|
27
27
|
* paint needs. Everything else starts at its default and is set later.
|
|
@@ -241,4 +241,3 @@ export declare function paintSpecs(ctx: CanvasRenderingContext2D, specs: readonl
|
|
|
241
241
|
* @category Renderer & paint
|
|
242
242
|
*/
|
|
243
243
|
export declare function createCanvasRenderer(options: RendererOptions): Renderer;
|
|
244
|
-
//# sourceMappingURL=canvas-renderer.d.ts.map
|
package/dist/render/index.d.ts
CHANGED
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* cache, the camera maths shared with picking, the pointer driver and the
|
|
6
6
|
* accessibility mirror.
|
|
7
7
|
*/
|
|
8
|
-
export * from "./a11y";
|
|
9
|
-
export * from "./camera";
|
|
10
|
-
export * from "./camera-gesture";
|
|
11
|
-
export * from "./canvas-renderer";
|
|
12
|
-
export * from "./layer-cache";
|
|
13
|
-
export * from "./paint";
|
|
14
|
-
export * from "./paint-items";
|
|
15
|
-
export * from "./pointer";
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
8
|
+
export * from "./a11y.js";
|
|
9
|
+
export * from "./camera.js";
|
|
10
|
+
export * from "./camera-gesture.js";
|
|
11
|
+
export * from "./canvas-renderer.js";
|
|
12
|
+
export * from "./layer-cache.js";
|
|
13
|
+
export * from "./paint.js";
|
|
14
|
+
export * from "./paint-items.js";
|
|
15
|
+
export * from "./pointer.js";
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
* Both need an offscreen canvas; where none can be made (Node, tests with a
|
|
22
22
|
* mock context) this does nothing and every frame paints in full.
|
|
23
23
|
*/
|
|
24
|
-
import type { Matrix } from "../geometry/transform";
|
|
25
|
-
import type { DrawSpec } from "../spec/types";
|
|
24
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
25
|
+
import type { DrawSpec } from "../spec/types.js";
|
|
26
26
|
/** A canvas this module can draw into and then draw from. */
|
|
27
27
|
export interface Surface {
|
|
28
28
|
canvas: CanvasImageSource & {
|
|
@@ -65,4 +65,3 @@ export interface LayerCache {
|
|
|
65
65
|
* reuses and when.
|
|
66
66
|
*/
|
|
67
67
|
export declare function createLayerCache(options: LayerCacheOptions): LayerCache;
|
|
68
|
-
//# sourceMappingURL=layer-cache.d.ts.map
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* cache in `paint.ts`), so a still shape is measured once and a camera move
|
|
10
10
|
* costs one comparison per node.
|
|
11
11
|
*/
|
|
12
|
-
import type { Bounds } from "../geometry";
|
|
13
|
-
import { revealedCurves, revealMeasures } from "../geometry/path/outline-reveal";
|
|
14
|
-
import type { Matrix } from "../geometry/transform";
|
|
15
|
-
import type { DrawSpec, ImageSpec, MarksSpec } from "../spec/types";
|
|
16
|
-
import type { PaintCache } from "./paint";
|
|
12
|
+
import type { Bounds } from "../geometry/index.js";
|
|
13
|
+
import { revealedCurves, revealMeasures } from "../geometry/path/outline-reveal.js";
|
|
14
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
15
|
+
import type { DrawSpec, ImageSpec, MarksSpec } from "../spec/types.js";
|
|
16
|
+
import type { PaintCache } from "./paint.js";
|
|
17
17
|
/** A rectangle in device pixels. */
|
|
18
18
|
export interface DeviceRect {
|
|
19
19
|
x: number;
|
|
@@ -67,4 +67,3 @@ export declare function drawImageSpec(ctx: CanvasRenderingContext2D, spec: Image
|
|
|
67
67
|
*/
|
|
68
68
|
export declare function splatMarks(ctx: CanvasRenderingContext2D, spec: MarksSpec, view: Matrix, viewport: DeviceRect): boolean;
|
|
69
69
|
export { revealedCurves, revealMeasures };
|
|
70
|
-
//# sourceMappingURL=paint-items.d.ts.map
|
package/dist/render/paint.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* screen. Draws in the context's current user space, under the view matrix the
|
|
4
4
|
* renderer installed, so `StrokeStyle` lengths are scene units.
|
|
5
5
|
*/
|
|
6
|
-
import type { CurvePath, Polyline } from "../geometry";
|
|
7
|
-
import type { Paint, StrokeStyle } from "../spec/types";
|
|
6
|
+
import type { CurvePath, Polyline } from "../geometry/index.js";
|
|
7
|
+
import type { Paint, StrokeStyle } from "../spec/types.js";
|
|
8
8
|
/**
|
|
9
9
|
* A tracing target: a live context or a `Path2D`. Both take the same path
|
|
10
10
|
* commands, which is what lets one `trace*` function serve a one-off draw and
|
|
@@ -68,14 +68,14 @@ export declare function tracePolyline(ctx: PathTarget, points: Polyline, closed?
|
|
|
68
68
|
* @category Renderer & paint
|
|
69
69
|
*/
|
|
70
70
|
export declare function tracePath(ctx: PathTarget, path: CurvePath): void;
|
|
71
|
-
export { fontString } from "../spec/metrics";
|
|
71
|
+
export { fontString } from "../spec/metrics.js";
|
|
72
72
|
/**
|
|
73
73
|
* Applies dash, cap, join, alpha, and width from `style` to `ctx`. Assumes the caller saved state.
|
|
74
74
|
*
|
|
75
75
|
* @category Renderer & paint
|
|
76
76
|
*/
|
|
77
77
|
export declare function applyStrokeStyle(ctx: CanvasRenderingContext2D, style: StrokeStyle, cache?: PaintCache): void;
|
|
78
|
-
export { paintsFill } from "../spec/types";
|
|
78
|
+
export { paintsFill } from "../spec/types.js";
|
|
79
79
|
/**
|
|
80
80
|
* Fills every ring as a single path (non-zero winding), scaling the style's
|
|
81
81
|
* opacity by `fillOpacity`. Does nothing without a fill or at zero opacity.
|
|
@@ -111,4 +111,3 @@ export declare function hasPath2D(): boolean;
|
|
|
111
111
|
export declare function ringsPath2D(polylines: Polyline[], fillFrom?: number): Path2D | null;
|
|
112
112
|
/** `ringsPath2D`'s curve-native counterpart, keyed on the `curvePaths` array. */
|
|
113
113
|
export declare function curvesPath2D(curvePaths: CurvePath[], fillFrom?: number): Path2D | null;
|
|
114
|
-
//# sourceMappingURL=paint.d.ts.map
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* `./pointer-wheel`) all resolve through one of these. See `./pointer` for the
|
|
7
7
|
* design.
|
|
8
8
|
*/
|
|
9
|
-
import type { Point } from "../geometry";
|
|
10
|
-
import type { Matrix } from "../geometry/transform";
|
|
11
|
-
import type { HitCache } from "../interact/hit";
|
|
12
|
-
import type { InteractionHandlers, InteractionRecord, ScenePointerEvent } from "../interact/types";
|
|
13
|
-
import type { PointerDriverOptions } from "./pointer";
|
|
9
|
+
import type { Point } from "../geometry/index.js";
|
|
10
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
11
|
+
import type { HitCache } from "../interact/hit.js";
|
|
12
|
+
import type { InteractionHandlers, InteractionRecord, ScenePointerEvent } from "../interact/types.js";
|
|
13
|
+
import type { PointerDriverOptions } from "./pointer.js";
|
|
14
14
|
/** The camera a gesture is locked to, and what survives if it goes away. */
|
|
15
15
|
export interface LockedView {
|
|
16
16
|
camera: number;
|
|
@@ -57,4 +57,3 @@ export interface PointerCore {
|
|
|
57
57
|
}
|
|
58
58
|
/** Builds the {@link PointerCore} for one driver's options. */
|
|
59
59
|
export declare function createPointerCore(options: PointerDriverOptions): PointerCore;
|
|
60
|
-
//# sourceMappingURL=pointer-core.d.ts.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* transitions, and the drop (or leave) when the gesture ends. See `./pointer`
|
|
4
4
|
* for the design and `./pointer-gestures` for the gesture these extend.
|
|
5
5
|
*/
|
|
6
|
-
import type { InteractionRegistry } from "../interact/registry";
|
|
7
|
-
import type { EventContext, PointerCore } from "./pointer-core";
|
|
8
|
-
import type { Gesture } from "./pointer-gestures";
|
|
6
|
+
import type { InteractionRegistry } from "../interact/registry.js";
|
|
7
|
+
import type { EventContext, PointerCore } from "./pointer-core.js";
|
|
8
|
+
import type { Gesture } from "./pointer-gestures.js";
|
|
9
9
|
/**
|
|
10
10
|
* What the thing in hand is over, as a transition.
|
|
11
11
|
*
|
|
@@ -21,4 +21,3 @@ import type { Gesture } from "./pointer-gestures";
|
|
|
21
21
|
export declare function updateDropTarget(core: PointerCore, registry: InteractionRegistry, native: PointerEvent, context: EventContext, gesture: Gesture): void;
|
|
22
22
|
/** Drops on (or, cancelled, just leaves) the target a gesture ended over. */
|
|
23
23
|
export declare function finishDropTarget(core: PointerCore, gesture: Gesture, native: PointerEvent, context: EventContext, cancelled: boolean): void;
|
|
24
|
-
//# sourceMappingURL=pointer-drop.d.ts.map
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* moves (slop, drag, drop targets) to the end (drag settles, tap, double tap,
|
|
5
5
|
* or a background event nobody claimed). See `./pointer` for the design.
|
|
6
6
|
*/
|
|
7
|
-
import type { Point } from "../geometry";
|
|
8
|
-
import type { DragBehaviour, DropTarget } from "../interact/types";
|
|
9
|
-
import type { BackgroundPointerEvent, PointerDriverOptions } from "./pointer";
|
|
10
|
-
import type { LockedView, PointerCore } from "./pointer-core";
|
|
11
|
-
import type { PointerPresence } from "./pointer-presence";
|
|
7
|
+
import type { Point } from "../geometry/index.js";
|
|
8
|
+
import type { DragBehaviour, DropTarget } from "../interact/types.js";
|
|
9
|
+
import type { BackgroundPointerEvent, PointerDriverOptions } from "./pointer.js";
|
|
10
|
+
import type { LockedView, PointerCore } from "./pointer-core.js";
|
|
11
|
+
import type { PointerPresence } from "./pointer-presence.js";
|
|
12
12
|
/** One pointer's press, from pointerdown until it ends. */
|
|
13
13
|
export interface Gesture {
|
|
14
14
|
pointerId: number;
|
|
@@ -48,4 +48,3 @@ export interface GestureMachine {
|
|
|
48
48
|
}
|
|
49
49
|
/** Builds the {@link GestureMachine} for one driver. */
|
|
50
50
|
export declare function createGestureMachine(core: PointerCore, presence: PointerPresence, options: PointerDriverOptions, emitBackground: (event: BackgroundPointerEvent) => void): GestureMachine;
|
|
51
|
-
//# sourceMappingURL=pointer-gestures.d.ts.map
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* scene can move under, and the scene-level position `scene.pointer` reads.
|
|
5
5
|
* See `./pointer` for the design.
|
|
6
6
|
*/
|
|
7
|
-
import type { Point } from "../geometry";
|
|
8
|
-
import type { PointerDriverOptions } from "./pointer";
|
|
9
|
-
import type { EventContext, PointerCore } from "./pointer-core";
|
|
7
|
+
import type { Point } from "../geometry/index.js";
|
|
8
|
+
import type { PointerDriverOptions } from "./pointer.js";
|
|
9
|
+
import type { EventContext, PointerCore } from "./pointer-core.js";
|
|
10
10
|
/** Hover, resting position and the published pointer, for one driver. */
|
|
11
11
|
export interface PointerPresence {
|
|
12
12
|
/** The node under the pointer, as hover last settled it. */
|
|
@@ -33,4 +33,3 @@ export interface PointerPresence {
|
|
|
33
33
|
}
|
|
34
34
|
/** Builds the {@link PointerPresence} for one driver. */
|
|
35
35
|
export declare function createPointerPresence(core: PointerCore, options: Pick<PointerDriverOptions, "canvas" | "pointer">): PointerPresence;
|
|
36
|
-
//# sourceMappingURL=pointer-presence.d.ts.map
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* only given up while somebody can claim a wheel. See `./pointer` for the
|
|
6
6
|
* design.
|
|
7
7
|
*/
|
|
8
|
-
import type { PointerDriverOptions, SceneWheelListener, WheelListenerOptions } from "./pointer";
|
|
9
|
-
import type { PointerCore } from "./pointer-core";
|
|
10
|
-
import type { PointerPresence } from "./pointer-presence";
|
|
8
|
+
import type { PointerDriverOptions, SceneWheelListener, WheelListenerOptions } from "./pointer.js";
|
|
9
|
+
import type { PointerCore } from "./pointer-core.js";
|
|
10
|
+
import type { PointerPresence } from "./pointer-presence.js";
|
|
11
11
|
/** The scene-level half of wheel routing, for one driver. */
|
|
12
12
|
export interface WheelRouter {
|
|
13
13
|
/** Adds a scene listener in line; see `PointerDriver.onWheel`. Returns an unsubscribe. */
|
|
@@ -25,4 +25,3 @@ export interface WheelRouter {
|
|
|
25
25
|
* `hasWheel` is re-read through {@link WheelRouter.updatePassive}.
|
|
26
26
|
*/
|
|
27
27
|
export declare function createWheelRouter(core: PointerCore, presence: PointerPresence, options: Pick<PointerDriverOptions, "canvas" | "registry" | "snapshot">): WheelRouter;
|
|
28
|
-
//# sourceMappingURL=pointer-wheel.d.ts.map
|
package/dist/render/pointer.d.ts
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* scene's pointer channel (`scene.pointer`). Parts: `pointer-core`,
|
|
11
11
|
* `pointer-presence`, `pointer-gestures` + `pointer-drop`, `pointer-wheel`.
|
|
12
12
|
*/
|
|
13
|
-
import type { Point } from "../geometry";
|
|
14
|
-
import type { Matrix } from "../geometry/transform";
|
|
15
|
-
import type { ScenePointer } from "../interact/pointer";
|
|
16
|
-
import type { InteractionRegistry } from "../interact/registry";
|
|
17
|
-
import type { Sink } from "../interact/types";
|
|
18
|
-
import type { Readable } from "../reactive";
|
|
19
|
-
import type { DrawSpec } from "../spec/types";
|
|
20
|
-
import type { CameraView } from "./camera";
|
|
13
|
+
import type { Point } from "../geometry/index.js";
|
|
14
|
+
import type { Matrix } from "../geometry/transform.js";
|
|
15
|
+
import type { ScenePointer } from "../interact/pointer.js";
|
|
16
|
+
import type { InteractionRegistry } from "../interact/registry.js";
|
|
17
|
+
import type { Sink } from "../interact/types.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
|
* A gesture that landed on no node, or on one that declined it.
|
|
23
23
|
*
|
|
@@ -256,4 +256,3 @@ export interface PointerDriver {
|
|
|
256
256
|
* @category Interaction plumbing
|
|
257
257
|
*/
|
|
258
258
|
export declare function createPointerDriver(options: PointerDriverOptions): PointerDriver;
|
|
259
|
-
//# sourceMappingURL=pointer.d.ts.map
|
package/dist/scene/cameras.d.ts
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
* tree order instead: that is how the bindings' `<Camera>` components paint
|
|
17
17
|
* in JSX order.
|
|
18
18
|
*/
|
|
19
|
-
import type { ColorInput } from "../color";
|
|
20
|
-
import type { Point } from "../geometry";
|
|
21
|
-
import type { Readable } from "../reactive";
|
|
22
|
-
import type { CameraDefaults, CameraView, PipCorner, Viewport } from "../render/camera";
|
|
23
|
-
import type { SceneNode } from "./types";
|
|
19
|
+
import type { ColorInput } from "../color/index.js";
|
|
20
|
+
import type { Point } from "../geometry/index.js";
|
|
21
|
+
import type { Readable } from "../reactive/index.js";
|
|
22
|
+
import type { CameraDefaults, CameraView, PipCorner, Viewport } from "../render/camera.js";
|
|
23
|
+
import type { SceneNode } from "./types.js";
|
|
24
24
|
/**
|
|
25
25
|
* Options for `scene.addCamera(...)`: the camera's props. Anything
|
|
26
26
|
* omitted falls back to the scene's own framing and background, so
|
|
@@ -281,4 +281,3 @@ export declare function pictureInPicture(scene: CameraHost, options: {
|
|
|
281
281
|
export declare function quadView(scene: CameraHost, options: {
|
|
282
282
|
panes: [CameraPane, CameraPane, CameraPane, CameraPane];
|
|
283
283
|
}): CameraLayout<[Camera, Camera, Camera, Camera], Record<string, never>>;
|
|
284
|
-
//# sourceMappingURL=cameras.d.ts.map
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* A composite does not transform: its children live in its own space. Put a
|
|
13
13
|
* `group` inside for a transform.
|
|
14
14
|
*/
|
|
15
|
-
import type { Readable } from "../reactive";
|
|
16
|
-
import type { Theme } from "../themes/types";
|
|
17
|
-
import type { Clock } from "../tween/clock";
|
|
18
|
-
import { BaseContainer } from "./container";
|
|
19
|
-
import type { ContainerNode, ContextKey, Definition, InvalidateBits, PropDescriptor, PropsDescriptor, SceneNode, Space } from "./types";
|
|
15
|
+
import type { Readable } from "../reactive/index.js";
|
|
16
|
+
import type { Theme } from "../themes/types.js";
|
|
17
|
+
import type { Clock } from "../tween/clock.js";
|
|
18
|
+
import { BaseContainer } from "./container.js";
|
|
19
|
+
import type { ContainerNode, ContextKey, Definition, InvalidateBits, PropDescriptor, PropsDescriptor, SceneNode, Space } from "./types.js";
|
|
20
20
|
/**
|
|
21
21
|
* The reason `update` receives when the space the composite lives in changed
|
|
22
22
|
* in a way it asked about with `ctx.space()` (a prop of that name would be
|
|
@@ -207,4 +207,3 @@ export declare class CompositeNode<P extends object> extends BaseContainer<P> {
|
|
|
207
207
|
* @category Scene graph
|
|
208
208
|
*/
|
|
209
209
|
export declare function defineComposite<P extends object>(options: CompositeOptions<P>): Definition<P, CompositeNode<P>>;
|
|
210
|
-
//# sourceMappingURL=composite.d.ts.map
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* children which fields changed; one that does not (the base default, and
|
|
10
10
|
* composites) hands its own space through untouched and forwards changes.
|
|
11
11
|
*/
|
|
12
|
-
import type { Bounds } from "../geometry";
|
|
13
|
-
import type { SceneGraph } from "./graph";
|
|
14
|
-
import { BaseNode } from "./node";
|
|
15
|
-
import type { ContainerNode, ContextKey, InvalidateBits, PropDescriptor, SceneNode, Space } from "./types";
|
|
12
|
+
import type { Bounds } from "../geometry/index.js";
|
|
13
|
+
import type { SceneGraph } from "./graph.js";
|
|
14
|
+
import { BaseNode } from "./node.js";
|
|
15
|
+
import type { ContainerNode, ContextKey, InvalidateBits, PropDescriptor, SceneNode, Space } from "./types.js";
|
|
16
16
|
/**
|
|
17
17
|
* The base class of every container node.
|
|
18
18
|
*
|
|
@@ -59,4 +59,3 @@ export declare abstract class BaseContainer<P extends object = object> extends B
|
|
|
59
59
|
/** For a container, the same as {@link BaseContainer.bounds}. */
|
|
60
60
|
localBounds(): Bounds | null;
|
|
61
61
|
}
|
|
62
|
-
//# sourceMappingURL=container.d.ts.map
|
package/dist/scene/context.d.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Invalidation bits and context keys: the two vocabularies a node's cached pipeline
|
|
3
3
|
* and its surroundings are described in.
|
|
4
4
|
*/
|
|
5
|
-
import type { Bounds } from "../geometry";
|
|
6
|
-
import type { ScenePointer } from "../interact/pointer";
|
|
7
|
-
import type { Readable } from "../reactive";
|
|
8
|
-
import type { Theme } from "../themes/types";
|
|
9
|
-
import type { Clock } from "../tween/clock";
|
|
10
|
-
import type { ContextKey } from "./types";
|
|
5
|
+
import type { Bounds } from "../geometry/index.js";
|
|
6
|
+
import type { ScenePointer } from "../interact/pointer.js";
|
|
7
|
+
import type { Readable } from "../reactive/index.js";
|
|
8
|
+
import type { Theme } from "../themes/types.js";
|
|
9
|
+
import type { Clock } from "../tween/clock.js";
|
|
10
|
+
import type { ContextKey } from "./types.js";
|
|
11
11
|
/**
|
|
12
12
|
* The stage bits a prop write can invalidate. A node kind decides what each
|
|
13
13
|
* bit reruns; these are the names the built-in kinds share, so descriptors
|
|
@@ -106,4 +106,3 @@ export declare const frameContext: ContextKey<Readable<Bounds>>;
|
|
|
106
106
|
* @category Scene graph
|
|
107
107
|
*/
|
|
108
108
|
export declare const pointerContext: ContextKey<Readable<ScenePointer | null> | null>;
|
|
109
|
-
//# sourceMappingURL=context.d.ts.map
|
package/dist/scene/fonts.d.ts
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* none of this costs anything: nobody holds a per-node subscription and no
|
|
15
15
|
* provided value changes.
|
|
16
16
|
*/
|
|
17
|
-
import type { CompositeContext } from "./composite";
|
|
18
|
-
import type { SceneGraph } from "./graph";
|
|
19
|
-
import type { ContextKey } from "./types";
|
|
17
|
+
import type { CompositeContext } from "./composite.js";
|
|
18
|
+
import type { SceneGraph } from "./graph.js";
|
|
19
|
+
import type { ContextKey } from "./types.js";
|
|
20
20
|
/**
|
|
21
21
|
* How many web fonts had finished loading when the scene last heard of one:
|
|
22
22
|
* provided by the scene graph's root, and bumped on each load (see
|
|
@@ -84,4 +84,3 @@ export declare function watchFontLoads(graph: SceneGraph): void;
|
|
|
84
84
|
* @category Text & numbers
|
|
85
85
|
*/
|
|
86
86
|
export declare function measuresText<P>(ctx: CompositeContext<P>): number;
|
|
87
|
-
//# sourceMappingURL=fonts.d.ts.map
|
package/dist/scene/graph.d.ts
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
* A commit with nothing dirty returns at once. The result always equals
|
|
19
19
|
* `compileFrame` over the drawables in tree order; the tests check that.
|
|
20
20
|
*/
|
|
21
|
-
import type { DrawSpec } from "../spec/types";
|
|
22
|
-
import { BaseContainer } from "./container";
|
|
23
|
-
import type { BaseNode } from "./node";
|
|
24
|
-
import type { InvalidateBits, Space } from "./types";
|
|
21
|
+
import type { DrawSpec } from "../spec/types.js";
|
|
22
|
+
import { BaseContainer } from "./container.js";
|
|
23
|
+
import type { BaseNode } from "./node.js";
|
|
24
|
+
import type { InvalidateBits, Space } from "./types.js";
|
|
25
25
|
/**
|
|
26
26
|
* Options for a {@link SceneGraph}.
|
|
27
27
|
*
|
|
@@ -172,4 +172,3 @@ export declare class SceneGraph {
|
|
|
172
172
|
/** Disposes every node and stops scheduling. */
|
|
173
173
|
dispose(): void;
|
|
174
174
|
}
|
|
175
|
-
//# sourceMappingURL=graph.d.ts.map
|
package/dist/scene/group.d.ts
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* the group's own recompute and nothing more, and a field nobody below reads
|
|
9
9
|
* (a shape ignores `yUp`) reruns nothing.
|
|
10
10
|
*/
|
|
11
|
-
import type { Point } from "../geometry";
|
|
12
|
-
import type { ClipShape } from "../spec/clip";
|
|
13
|
-
import type { Placement } from "../spec/layout";
|
|
14
|
-
import { BaseContainer } from "./container";
|
|
15
|
-
import type { InvalidateBits, SceneNode, Space } from "./types";
|
|
11
|
+
import type { Point } from "../geometry/index.js";
|
|
12
|
+
import type { ClipShape } from "../spec/clip.js";
|
|
13
|
+
import type { Placement } from "../spec/layout.js";
|
|
14
|
+
import { BaseContainer } from "./container.js";
|
|
15
|
+
import type { InvalidateBits, SceneNode, Space } from "./types.js";
|
|
16
16
|
/** @category Shapes */
|
|
17
17
|
export interface GroupProps {
|
|
18
18
|
/**
|
|
@@ -112,5 +112,4 @@ export declare class GroupNode extends BaseContainer<GroupProps> {
|
|
|
112
112
|
*
|
|
113
113
|
* @category Shapes
|
|
114
114
|
*/
|
|
115
|
-
export declare const group: import("./types").Definition<GroupProps, GroupNode, keyof GroupProps>;
|
|
116
|
-
//# sourceMappingURL=group.d.ts.map
|
|
115
|
+
export declare const group: import("./types.js").Definition<GroupProps, GroupNode, keyof GroupProps>;
|
package/dist/scene/index.d.ts
CHANGED
|
@@ -9,25 +9,24 @@
|
|
|
9
9
|
* classes) is left out on purpose; `entries/internal.ts` takes it from the
|
|
10
10
|
* modules directly.
|
|
11
11
|
*/
|
|
12
|
-
export type { Camera, CameraHost, CameraLayout, CameraOptions, CameraPane, PictureInPictureLayout, SplitScreenLayout, } from "./cameras";
|
|
13
|
-
export { pictureInPicture, quadView, splitScreen } from "./cameras";
|
|
14
|
-
export type { Changes, CompositeContext, CompositeOptions, ListOptions, } from "./composite";
|
|
15
|
-
export { defineComposite } from "./composite";
|
|
16
|
-
export * from "./context";
|
|
17
|
-
export { fontEpochContext, measuresText } from "./fonts";
|
|
18
|
-
export type { GroupProps } from "./group";
|
|
19
|
-
export { group } from "./group";
|
|
20
|
-
export * from "./instances";
|
|
21
|
-
export type { InteractionGroupProps } from "./interaction-group";
|
|
22
|
-
export { interactionGroup } from "./interaction-group";
|
|
23
|
-
export * from "./interaction-props";
|
|
24
|
-
export * from "./marks";
|
|
25
|
-
export * from "./pan-zoom";
|
|
26
|
-
export * from "./path-batch";
|
|
27
|
-
export * from "./primitive";
|
|
28
|
-
export type { Scene, SceneBackground, SceneOptions, SceneSize, SceneView, } from "./scene";
|
|
29
|
-
export { createScene, pointerDriver } from "./scene";
|
|
30
|
-
export * from "./shape";
|
|
31
|
-
export * from "./text";
|
|
32
|
-
export * from "./types";
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
12
|
+
export type { Camera, CameraHost, CameraLayout, CameraOptions, CameraPane, PictureInPictureLayout, SplitScreenLayout, } from "./cameras.js";
|
|
13
|
+
export { pictureInPicture, quadView, splitScreen } from "./cameras.js";
|
|
14
|
+
export type { Changes, CompositeContext, CompositeOptions, ListOptions, } from "./composite.js";
|
|
15
|
+
export { defineComposite } from "./composite.js";
|
|
16
|
+
export * from "./context.js";
|
|
17
|
+
export { fontEpochContext, measuresText } from "./fonts.js";
|
|
18
|
+
export type { GroupProps } from "./group.js";
|
|
19
|
+
export { group } from "./group.js";
|
|
20
|
+
export * from "./instances.js";
|
|
21
|
+
export type { InteractionGroupProps } from "./interaction-group.js";
|
|
22
|
+
export { interactionGroup } from "./interaction-group.js";
|
|
23
|
+
export * from "./interaction-props.js";
|
|
24
|
+
export * from "./marks.js";
|
|
25
|
+
export * from "./pan-zoom.js";
|
|
26
|
+
export * from "./path-batch.js";
|
|
27
|
+
export * from "./primitive.js";
|
|
28
|
+
export type { Scene, SceneBackground, SceneOptions, SceneSize, SceneView, } from "./scene.js";
|
|
29
|
+
export { createScene, pointerDriver } from "./scene.js";
|
|
30
|
+
export * from "./shape.js";
|
|
31
|
+
export * from "./text.js";
|
|
32
|
+
export * from "./types.js";
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
* place, and reports which channels' values changed, so the node redoes
|
|
43
43
|
* only the passes those channels feed.
|
|
44
44
|
*/
|
|
45
|
-
import type { Color } from "../color/types";
|
|
46
|
-
import type { EasingFunction } from "../tween/easing";
|
|
47
|
-
import type { SpringSpec } from "../tween/spring";
|
|
45
|
+
import type { Color } from "../color/types.js";
|
|
46
|
+
import type { EasingFunction } from "../tween/easing.js";
|
|
47
|
+
import type { SpringSpec } from "../tween/spring.js";
|
|
48
48
|
/**
|
|
49
49
|
* How a channel's values are stored: `number` (one float), `point` (two),
|
|
50
50
|
* `color` (four: RGBA, alpha 0..1), or `discrete` (kept as is, switched at
|
|
@@ -346,4 +346,3 @@ export declare class InstanceBank {
|
|
|
346
346
|
/** One spring step; true when every moving component has settled. */
|
|
347
347
|
private stepSpring;
|
|
348
348
|
}
|
|
349
|
-
//# sourceMappingURL=instance-bank.d.ts.map
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
* set); the style pass (O(items)) only when style inputs did. Each pass
|
|
42
42
|
* keeps its arrays otherwise, and an unchanged spec keeps its identity.
|
|
43
43
|
*/
|
|
44
|
-
import type { MarksSpec } from "../spec/types";
|
|
45
|
-
import type { Theme } from "../themes/types";
|
|
46
|
-
import type { InstanceBank } from "./instance-bank";
|
|
47
|
-
import type { ShapeOptions, ShapeProps } from "./shape";
|
|
48
|
-
import type { PropsDescriptor, Space } from "./types";
|
|
44
|
+
import type { MarksSpec } from "../spec/types.js";
|
|
45
|
+
import type { Theme } from "../themes/types.js";
|
|
46
|
+
import type { InstanceBank } from "./instance-bank.js";
|
|
47
|
+
import type { ShapeOptions, ShapeProps } from "./shape.js";
|
|
48
|
+
import type { PropsDescriptor, Space } from "./types.js";
|
|
49
49
|
/**
|
|
50
50
|
* The props that only style an item (everything else may place or shape it).
|
|
51
51
|
*
|
|
@@ -162,4 +162,3 @@ export declare class InstanceLayer {
|
|
|
162
162
|
}
|
|
163
163
|
/** Whether `key` only moves an item (`TRANSFORM` without `GEOMETRY`). */
|
|
164
164
|
export declare function isMoveProp(descriptor: PropsDescriptor<ShapeProps>, key: string): boolean;
|
|
165
|
-
//# sourceMappingURL=instance-marks.d.ts.map
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* The definition is exported from `entries/internal.ts` only; authors call
|
|
14
14
|
* `instances()`.
|
|
15
15
|
*/
|
|
16
|
-
import type { Bounds } from "../geometry";
|
|
17
|
-
import type { InteractionHandlers, InteractionProps } from "../interact/types";
|
|
18
|
-
import type { ResolvedTiming } from "./instance-bank";
|
|
19
|
-
import type { InstanceEventName, InstancePointerEvent, InstanceTiming, InstanceTransition } from "./instances";
|
|
20
|
-
import { BaseNode } from "./node";
|
|
21
|
-
import type { ShapeProps } from "./shape";
|
|
22
|
-
import type { ContextKey, Definition, InvalidateBits, PropDescriptor, SceneNode } from "./types";
|
|
16
|
+
import type { Bounds } from "../geometry/index.js";
|
|
17
|
+
import type { InteractionHandlers, InteractionProps } from "../interact/types.js";
|
|
18
|
+
import type { ResolvedTiming } from "./instance-bank.js";
|
|
19
|
+
import type { InstanceEventName, InstancePointerEvent, InstanceTiming, InstanceTransition } from "./instances.js";
|
|
20
|
+
import { BaseNode } from "./node.js";
|
|
21
|
+
import type { ShapeProps } from "./shape.js";
|
|
22
|
+
import type { ContextKey, Definition, InvalidateBits, PropDescriptor, SceneNode } from "./types.js";
|
|
23
23
|
/** An item's props by key, loosely typed (the public types check them). */
|
|
24
24
|
type LooseProps = Record<string, unknown>;
|
|
25
25
|
/** A per-item value: constant, or a function of the item. */
|
|
@@ -202,4 +202,3 @@ export declare class InstancesNodeImpl extends BaseNode<InstancesNodeProps> {
|
|
|
202
202
|
*/
|
|
203
203
|
export declare const instancesDefinition: Definition<InstancesNodeProps, InstancesNodeImpl, keyof InstancesNodeProps>;
|
|
204
204
|
export {};
|
|
205
|
-
//# sourceMappingURL=instance-node.d.ts.map
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
* the item's current values, next to the instances node (same parent, same
|
|
37
37
|
* space); `demote(key)` writes its values back and disposes it.
|
|
38
38
|
*/
|
|
39
|
-
import type { ScenePointerEvent } from "../interact/types";
|
|
40
|
-
import type { Readable } from "../reactive";
|
|
41
|
-
import type { Easing } from "../tween/easing";
|
|
42
|
-
import type { SpringOptions, SpringSpec } from "../tween/spring";
|
|
43
|
-
import type { Bindable, Definition, SceneNode } from "./types";
|
|
39
|
+
import type { ScenePointerEvent } from "../interact/types.js";
|
|
40
|
+
import type { Readable } from "../reactive/index.js";
|
|
41
|
+
import type { Easing } from "../tween/easing.js";
|
|
42
|
+
import type { SpringOptions, SpringSpec } from "../tween/spring.js";
|
|
43
|
+
import type { Bindable, Definition, SceneNode } from "./types.js";
|
|
44
44
|
/**
|
|
45
45
|
* Per-item channels: for each instanceable prop, a function of the item.
|
|
46
46
|
*
|
|
@@ -242,4 +242,3 @@ export type InstanceEventName = "tap" | "doubletap" | "longpress" | "contextmenu
|
|
|
242
242
|
* @category Instancing
|
|
243
243
|
*/
|
|
244
244
|
export declare function instances<P extends object, N extends SceneNode<P>, I extends keyof P, T, K = T>(definition: Definition<P, N, I>, options: InstancesOptions<T, P, I, K>): InstancesNode<T, P, N, I, K>;
|
|
245
|
-
//# sourceMappingURL=instances.d.ts.map
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* member, and the container module imports `node.ts` through `container.ts`;
|
|
8
8
|
* the key here imports nothing from the scene, so there is no cycle.
|
|
9
9
|
*/
|
|
10
|
-
import type { InteractionHandlers, PointerEvents } from "../interact/types";
|
|
11
|
-
import type { ContextKey } from "./types";
|
|
10
|
+
import type { InteractionHandlers, PointerEvents } from "../interact/types.js";
|
|
11
|
+
import type { ContextKey } from "./types.js";
|
|
12
12
|
/**
|
|
13
13
|
* What a group's members inherit. Functions, read when the registry or the
|
|
14
14
|
* driver needs them, so the group's props stay live without re-providing.
|
|
@@ -44,4 +44,3 @@ export interface InteractionGroupValue {
|
|
|
44
44
|
* @category Interaction plumbing
|
|
45
45
|
*/
|
|
46
46
|
export declare const interactionGroupContext: ContextKey<InteractionGroupValue | null>;
|
|
47
|
-
//# sourceMappingURL=interaction-group-context.d.ts.map
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* transforms nothing; the context it provides lives in
|
|
7
7
|
* `interaction-group-context.ts`.
|
|
8
8
|
*/
|
|
9
|
-
import type { InteractionHandlers, InteractionProps } from "../interact/types";
|
|
10
|
-
import { BaseContainer } from "./container";
|
|
11
|
-
import type { Definition, SceneNode } from "./types";
|
|
9
|
+
import type { InteractionHandlers, InteractionProps } from "../interact/types.js";
|
|
10
|
+
import { BaseContainer } from "./container.js";
|
|
11
|
+
import type { Definition, SceneNode } from "./types.js";
|
|
12
12
|
/**
|
|
13
13
|
* Props for {@link interactionGroup}: every {@link InteractionProps} field
|
|
14
14
|
* (handlers, `pointerEvents`, `cursor`, `label`, `role`, `focusable`), which
|
|
@@ -70,4 +70,3 @@ export declare class InteractionGroupNode extends BaseContainer<InteractionGroup
|
|
|
70
70
|
* @category Accessibility
|
|
71
71
|
*/
|
|
72
72
|
export declare const interactionGroup: Definition<InteractionGroupProps, InteractionGroupNode, keyof InteractionGroupProps>;
|
|
73
|
-
//# sourceMappingURL=interaction-group.d.ts.map
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* accessibility props are values that only touch the node's interaction
|
|
9
9
|
* record (`Invalidate.INTERACTION`), never its geometry, style or spec.
|
|
10
10
|
*/
|
|
11
|
-
import type { InteractionProps } from "../interact/types";
|
|
12
|
-
import type { PropsDescriptor } from "./types";
|
|
11
|
+
import type { InteractionProps } from "../interact/types.js";
|
|
12
|
+
import type { PropsDescriptor } from "./types.js";
|
|
13
13
|
/**
|
|
14
14
|
* Descriptor entries for every {@link InteractionProps} key. Spread it into a
|
|
15
15
|
* drawable's descriptor (`shapeProps` already does):
|
|
@@ -27,4 +27,3 @@ import type { PropsDescriptor } from "./types";
|
|
|
27
27
|
* @category Interaction
|
|
28
28
|
*/
|
|
29
29
|
export declare const interactionProps: PropsDescriptor<InteractionProps>;
|
|
30
|
-
//# sourceMappingURL=interaction-props.d.ts.map
|