@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
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
* outline. Style props (`stroke`, `progress`, ...) are bound straight through
|
|
15
15
|
* to the shape, so animating one never re-samples the curve.
|
|
16
16
|
*/
|
|
17
|
-
import type { Point } from "../geometry";
|
|
18
|
-
import type { Changes, CompositeNode } from "../scene/composite";
|
|
19
|
-
import type { ShapeInstanceable, ShapeNode, ShapeProps } from "../scene/shape";
|
|
20
|
-
import type { Definition, PropsDescriptor, SceneNode } from "../scene/types";
|
|
21
|
-
import type { ShapeGeometry } from "../spec/bake";
|
|
22
|
-
import type { CoordinateSystem } from "./coords";
|
|
17
|
+
import type { Point } from "../geometry/index.js";
|
|
18
|
+
import type { Changes, CompositeNode } from "../scene/composite.js";
|
|
19
|
+
import type { ShapeInstanceable, ShapeNode, ShapeProps } from "../scene/shape.js";
|
|
20
|
+
import type { Definition, PropsDescriptor, SceneNode } from "../scene/types.js";
|
|
21
|
+
import type { ShapeGeometry } from "../spec/bake.js";
|
|
22
|
+
import type { CoordinateSystem } from "./coords.js";
|
|
23
23
|
/**
|
|
24
24
|
* Sampling controls shared by every curve in data space.
|
|
25
25
|
*
|
|
@@ -288,4 +288,3 @@ export interface PolarGraphProps extends ShapeProps, CurveSampling {
|
|
|
288
288
|
* @category Coordinate systems & graphs
|
|
289
289
|
*/
|
|
290
290
|
export declare const polarGraph: Definition<PolarGraphProps, CompositeNode<PolarGraphProps>, keyof PolarGraphProps>;
|
|
291
|
-
//# sourceMappingURL=function-graph.d.ts.map
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* system or the theme change; the style props it hands on unchanged are bound
|
|
11
11
|
* straight through to the shapes it draws.
|
|
12
12
|
*/
|
|
13
|
-
import type { ColorInput } from "../color";
|
|
14
|
-
import type { Point } from "../geometry";
|
|
15
|
-
import type { ShapeProps } from "../scene/shape";
|
|
16
|
-
import type { Vec2 } from "../spec/layout";
|
|
17
|
-
import type { CoordinateSystem } from "./coords";
|
|
13
|
+
import type { ColorInput } from "../color/index.js";
|
|
14
|
+
import type { Point } from "../geometry/index.js";
|
|
15
|
+
import type { ShapeProps } from "../scene/shape.js";
|
|
16
|
+
import type { Vec2 } from "../spec/layout.js";
|
|
17
|
+
import type { CoordinateSystem } from "./coords.js";
|
|
18
18
|
/**
|
|
19
19
|
* The scene-unit point on the curve `y = f(x)` — Manim's `input_to_graph_point`.
|
|
20
20
|
*
|
|
@@ -129,7 +129,7 @@ export interface AreaUnderGraphProps extends ShapeProps {
|
|
|
129
129
|
* @see {@link riemannRectangles}
|
|
130
130
|
* @category Coordinate systems & graphs
|
|
131
131
|
*/
|
|
132
|
-
export declare const areaUnderGraph: import("
|
|
132
|
+
export declare const areaUnderGraph: import("../scene/types.js").Definition<AreaUnderGraphProps, import("../scene/composite.js").CompositeNode<AreaUnderGraphProps>, keyof AreaUnderGraphProps>;
|
|
133
133
|
/**
|
|
134
134
|
* Props for {@link riemannRectangles}. Style props apply to the rectangles.
|
|
135
135
|
*
|
|
@@ -175,7 +175,7 @@ export interface RiemannRectanglesProps extends ShapeProps {
|
|
|
175
175
|
* @see {@link areaUnderGraph}
|
|
176
176
|
* @category Coordinate systems & graphs
|
|
177
177
|
*/
|
|
178
|
-
export declare const riemannRectangles: import("
|
|
178
|
+
export declare const riemannRectangles: import("../scene/types.js").Definition<RiemannRectanglesProps, import("../scene/composite.js").CompositeNode<RiemannRectanglesProps>, keyof RiemannRectanglesProps>;
|
|
179
179
|
/**
|
|
180
180
|
* What both drop-line composites ({@link verticalLineToGraph}, {@link horizontalLineToGraph}) take.
|
|
181
181
|
*
|
|
@@ -234,7 +234,7 @@ export interface LineToGraphProps extends ShapeProps {
|
|
|
234
234
|
* @see {@link horizontalLineToGraph}
|
|
235
235
|
* @category Coordinate systems & graphs
|
|
236
236
|
*/
|
|
237
|
-
export declare const verticalLineToGraph: import("
|
|
237
|
+
export declare const verticalLineToGraph: import("../scene/types.js").Definition<LineToGraphProps, import("../scene/composite.js").CompositeNode<LineToGraphProps>, keyof LineToGraphProps>;
|
|
238
238
|
/**
|
|
239
239
|
* The sibling that falls out for free: a dashed line from the y axis across to
|
|
240
240
|
* the curve, still indexed by the *input* `x` rather than by a height, so the
|
|
@@ -254,7 +254,7 @@ export declare const verticalLineToGraph: import("..").Definition<LineToGraphPro
|
|
|
254
254
|
* @see {@link verticalLineToGraph}
|
|
255
255
|
* @category Coordinate systems & graphs
|
|
256
256
|
*/
|
|
257
|
-
export declare const horizontalLineToGraph: import("
|
|
257
|
+
export declare const horizontalLineToGraph: import("../scene/types.js").Definition<LineToGraphProps, import("../scene/composite.js").CompositeNode<LineToGraphProps>, keyof LineToGraphProps>;
|
|
258
258
|
/**
|
|
259
259
|
* Props for {@link secantSlopeGroup}. Style props apply to the secant line (and the triangle legs' width).
|
|
260
260
|
*
|
|
@@ -318,7 +318,7 @@ export interface SecantSlopeGroupProps extends ShapeProps {
|
|
|
318
318
|
* @see {@link slopeOfSecant}
|
|
319
319
|
* @category Coordinate systems & graphs
|
|
320
320
|
*/
|
|
321
|
-
export declare const secantSlopeGroup: import("
|
|
321
|
+
export declare const secantSlopeGroup: import("../scene/types.js").Definition<SecantSlopeGroupProps, import("../scene/composite.js").CompositeNode<SecantSlopeGroupProps>, keyof SecantSlopeGroupProps>;
|
|
322
322
|
/**
|
|
323
323
|
* Props for {@link tangentToGraph}. Style props apply to the line.
|
|
324
324
|
*
|
|
@@ -352,5 +352,4 @@ export interface TangentToGraphProps extends ShapeProps {
|
|
|
352
352
|
* @see {@link secantSlopeGroup}
|
|
353
353
|
* @category Coordinate systems & graphs
|
|
354
354
|
*/
|
|
355
|
-
export declare const tangentToGraph: import("
|
|
356
|
-
//# sourceMappingURL=graph-annotations.d.ts.map
|
|
355
|
+
export declare const tangentToGraph: import("../scene/types.js").Definition<TangentToGraphProps, import("../scene/composite.js").CompositeNode<TangentToGraphProps>, keyof TangentToGraphProps>;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Internal — not in the barrel. Owned by `coords/`; `charts` imports it.
|
|
8
8
|
*/
|
|
9
|
-
import type { ColorInput } from "../color";
|
|
10
|
-
import type { Bounds, Point, Range, RangeTransition, WeightedTick } from "../geometry";
|
|
11
|
-
import type { Readable } from "../reactive";
|
|
12
|
-
import type { CompositeContext } from "../scene/composite";
|
|
13
|
-
import type { SceneNode } from "../scene/types";
|
|
14
|
-
import type { AxisTickSource } from "./axis-composition";
|
|
9
|
+
import type { ColorInput } from "../color/index.js";
|
|
10
|
+
import type { Bounds, Point, Range, RangeTransition, WeightedTick } from "../geometry/index.js";
|
|
11
|
+
import type { Readable } from "../reactive/index.js";
|
|
12
|
+
import type { CompositeContext } from "../scene/composite.js";
|
|
13
|
+
import type { SceneNode } from "../scene/types.js";
|
|
14
|
+
import type { AxisTickSource } from "./axis-composition.js";
|
|
15
15
|
/**
|
|
16
16
|
* Cap on grid lines *per axis* (and on a polar plane's rings and spokes).
|
|
17
17
|
*
|
|
@@ -124,4 +124,3 @@ export interface GridLinesOptions {
|
|
|
124
124
|
* @returns The one node that draws the family (kept across updates).
|
|
125
125
|
*/
|
|
126
126
|
export declare function gridLineNodes(ctx: Pick<CompositeContext<unknown>, "list">, slot: string, given: GridLinesOptions): SceneNode[];
|
|
127
|
-
//# sourceMappingURL=grid-lines.d.ts.map
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* screen and a log axis gets the same resolution at every decade instead of
|
|
9
9
|
* all of it bunched at the top.
|
|
10
10
|
*/
|
|
11
|
-
import type { ImplicitCurveOptions, Range } from "../geometry";
|
|
12
|
-
import type { ShapeProps } from "../scene/shape";
|
|
11
|
+
import type { ImplicitCurveOptions, Range } from "../geometry/index.js";
|
|
12
|
+
import type { ShapeProps } from "../scene/shape.js";
|
|
13
13
|
/**
|
|
14
14
|
* Props for {@link implicitFunction}: the shape style props, the resolution
|
|
15
15
|
* controls of {@link ImplicitCurveOptions}, and the function.
|
|
@@ -47,5 +47,4 @@ export interface ImplicitFunctionProps extends ShapeProps, ImplicitCurveOptions
|
|
|
47
47
|
* @see {@link https://sophistry.dev/guides/coordinate-systems/#implicit-curves}
|
|
48
48
|
* @category Coordinate systems & graphs
|
|
49
49
|
*/
|
|
50
|
-
export declare const implicitFunction: import("
|
|
51
|
-
//# sourceMappingURL=implicit-function.d.ts.map
|
|
50
|
+
export declare const implicitFunction: import("../index.js").Definition<ImplicitFunctionProps, import("../scene/composite.js").CompositeNode<ImplicitFunctionProps>, keyof ImplicitFunctionProps>;
|
package/dist/coords/index.d.ts
CHANGED
|
@@ -2,28 +2,27 @@
|
|
|
2
2
|
* coords: coordinate systems (axes, planes, number lines) and the context
|
|
3
3
|
* they publish.
|
|
4
4
|
*/
|
|
5
|
-
export type { AxesProps, AxisOptions } from "./axes";
|
|
6
|
-
export { axes } from "./axes";
|
|
7
|
-
export type { Complex, ComplexCoordinateSystem, ComplexPlaneProps, } from "./complex-plane";
|
|
8
|
-
export { complexCoordsOf, complexPlane, imaginaryTick } from "./complex-plane";
|
|
9
|
-
export type { AxisPosition, CartesianOptions, CoordinateSystem, XAxisPosition, YAxisPosition, } from "./coords";
|
|
10
|
-
export { axisPositionValue, coordsContext, coordsOf, coordsReadable, createCartesianCoords, createPhases, crossingValue, phaseProgress, publishCoords, requireCoords, UNDER_AXES_Z_INDEX, } from "./coords";
|
|
11
|
-
export type { CurveSampling, FunctionGraphHandle, FunctionGraphProps, ParametricGraphProps, PolarGraphProps, } from "./function-graph";
|
|
12
|
-
export { functionGraph, graphHandle, parametricGraph, polarGraph, sampleRuns, } from "./function-graph";
|
|
13
|
-
export type { AreaUnderGraphProps, LineToGraphProps, RiemannRectanglesProps, SecantSlopeGroupProps, TangentToGraphProps, } from "./graph-annotations";
|
|
14
|
-
export { angleOfTangent, areaUnderGraph, horizontalLineToGraph, inputToGraphPoint, riemannRectangles, secantSlopeGroup, slopeOfSecant, tangentToGraph, verticalLineToGraph, } from "./graph-annotations";
|
|
15
|
-
export type { ImplicitFunctionProps } from "./implicit-function";
|
|
16
|
-
export { implicitFunction } from "./implicit-function";
|
|
17
|
-
export type { BasisVectorsProps, LinearTransformProps, } from "./linear-transform";
|
|
18
|
-
export { basisVectors, LinearTransformNode, linearTransform, transformDeterminant, } from "./linear-transform";
|
|
19
|
-
export type { NumberLineProps, UnitIntervalProps } from "./number-line";
|
|
20
|
-
export { numberLine, unitInterval } from "./number-line";
|
|
21
|
-
export type { NumberPlaneProps } from "./number-plane";
|
|
22
|
-
export { numberPlane } from "./number-plane";
|
|
23
|
-
export type { AzimuthUnits, PolarCoordinateSystem, PolarPlaneProps, } from "./polar-plane";
|
|
24
|
-
export { piMultipleLabel, polarCoordsOf, polarPlane } from "./polar-plane";
|
|
25
|
-
export type { TangentLineProps } from "./tangent";
|
|
26
|
-
export { tangentLine } from "./tangent";
|
|
27
|
-
export type { FieldEngine, FieldEnvironment, FieldProps, StreamLinesProps, VectorFieldHandle, VectorFieldProps, } from "./vector-field";
|
|
28
|
-
export { createFieldEngine, fieldHandle, streamLines, vectorField, } from "./vector-field";
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
5
|
+
export type { AxesProps, AxisOptions } from "./axes.js";
|
|
6
|
+
export { axes } from "./axes.js";
|
|
7
|
+
export type { Complex, ComplexCoordinateSystem, ComplexPlaneProps, } from "./complex-plane.js";
|
|
8
|
+
export { complexCoordsOf, complexPlane, imaginaryTick, } from "./complex-plane.js";
|
|
9
|
+
export type { AxisPosition, CartesianOptions, CoordinateSystem, XAxisPosition, YAxisPosition, } from "./coords.js";
|
|
10
|
+
export { axisPositionValue, coordsContext, coordsOf, coordsReadable, createCartesianCoords, createPhases, crossingValue, phaseProgress, publishCoords, requireCoords, UNDER_AXES_Z_INDEX, } from "./coords.js";
|
|
11
|
+
export type { CurveSampling, FunctionGraphHandle, FunctionGraphProps, ParametricGraphProps, PolarGraphProps, } from "./function-graph.js";
|
|
12
|
+
export { functionGraph, graphHandle, parametricGraph, polarGraph, sampleRuns, } from "./function-graph.js";
|
|
13
|
+
export type { AreaUnderGraphProps, LineToGraphProps, RiemannRectanglesProps, SecantSlopeGroupProps, TangentToGraphProps, } from "./graph-annotations.js";
|
|
14
|
+
export { angleOfTangent, areaUnderGraph, horizontalLineToGraph, inputToGraphPoint, riemannRectangles, secantSlopeGroup, slopeOfSecant, tangentToGraph, verticalLineToGraph, } from "./graph-annotations.js";
|
|
15
|
+
export type { ImplicitFunctionProps } from "./implicit-function.js";
|
|
16
|
+
export { implicitFunction } from "./implicit-function.js";
|
|
17
|
+
export type { BasisVectorsProps, LinearTransformProps, } from "./linear-transform.js";
|
|
18
|
+
export { basisVectors, LinearTransformNode, linearTransform, transformDeterminant, } from "./linear-transform.js";
|
|
19
|
+
export type { NumberLineProps, UnitIntervalProps } from "./number-line.js";
|
|
20
|
+
export { numberLine, unitInterval } from "./number-line.js";
|
|
21
|
+
export type { NumberPlaneProps } from "./number-plane.js";
|
|
22
|
+
export { numberPlane } from "./number-plane.js";
|
|
23
|
+
export type { AzimuthUnits, PolarCoordinateSystem, PolarPlaneProps, } from "./polar-plane.js";
|
|
24
|
+
export { piMultipleLabel, polarCoordsOf, polarPlane } from "./polar-plane.js";
|
|
25
|
+
export type { TangentLineProps } from "./tangent.js";
|
|
26
|
+
export { tangentLine } from "./tangent.js";
|
|
27
|
+
export type { FieldEngine, FieldEnvironment, FieldProps, StreamLinesProps, VectorFieldHandle, VectorFieldProps, } from "./vector-field.js";
|
|
28
|
+
export { createFieldEngine, fieldHandle, streamLines, vectorField, } from "./vector-field.js";
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* a group, it pins the pen scale (`Space.penScale`), so a shear moves points
|
|
12
12
|
* and not ink.
|
|
13
13
|
*/
|
|
14
|
-
import type { ColorInput } from "../color";
|
|
15
|
-
import type { Matrix, Point } from "../geometry";
|
|
16
|
-
import { BaseContainer } from "../scene/container";
|
|
17
|
-
import type { InvalidateBits, SceneNode, Space } from "../scene/types";
|
|
14
|
+
import type { ColorInput } from "../color/index.js";
|
|
15
|
+
import type { Matrix, Point } from "../geometry/index.js";
|
|
16
|
+
import { BaseContainer } from "../scene/container.js";
|
|
17
|
+
import type { InvalidateBits, SceneNode, Space } from "../scene/types.js";
|
|
18
18
|
/**
|
|
19
19
|
* Props for {@link linearTransform}. Give either `matrix` or `iHat`/`jHat`.
|
|
20
20
|
*
|
|
@@ -105,7 +105,7 @@ export declare class LinearTransformNode extends BaseContainer<LinearTransformPr
|
|
|
105
105
|
* @see {@link https://sophistry.dev/guides/coordinate-systems/}
|
|
106
106
|
* @category Coordinate systems & graphs
|
|
107
107
|
*/
|
|
108
|
-
export declare const linearTransform: import("
|
|
108
|
+
export declare const linearTransform: import("../scene/types.js").Definition<LinearTransformProps, LinearTransformNode, keyof LinearTransformProps>;
|
|
109
109
|
/**
|
|
110
110
|
* Props for {@link basisVectors}. The map fields mirror {@link LinearTransformProps}.
|
|
111
111
|
*
|
|
@@ -175,7 +175,7 @@ export interface BasisVectorsProps {
|
|
|
175
175
|
*
|
|
176
176
|
* @category Coordinate systems & graphs
|
|
177
177
|
*/
|
|
178
|
-
export declare const basisVectors: import("
|
|
178
|
+
export declare const basisVectors: import("../scene/types.js").Definition<BasisVectorsProps, import("../scene/composite.js").CompositeNode<BasisVectorsProps>, keyof BasisVectorsProps>;
|
|
179
179
|
/**
|
|
180
180
|
* Signed area scale factor of the blended map — what the unit square's area
|
|
181
181
|
* becomes at this point in the animation.
|
|
@@ -202,4 +202,3 @@ export declare function transformDeterminant(props: {
|
|
|
202
202
|
jHat?: Point;
|
|
203
203
|
progress?: number;
|
|
204
204
|
}): number;
|
|
205
|
-
//# sourceMappingURL=linear-transform.d.ts.map
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* `numberLine`: a single axis, its ticks and its numbers (Manim's
|
|
3
3
|
* `NumberLine`), and `unitInterval`, its preset over `[0, 1]`.
|
|
4
4
|
*/
|
|
5
|
-
import type { Point, Range, RangeTransition, ScaleSpec, TickFormatterSpec, TimeZone, TipShape } from "../geometry";
|
|
6
|
-
import type { ShapeProps } from "../scene/shape";
|
|
7
|
-
import type { TextHalo } from "../scene/text";
|
|
8
|
-
import type { PropsDescriptor, SceneNode } from "../scene/types";
|
|
9
|
-
import type { Vec2 } from "../spec/layout";
|
|
5
|
+
import type { Point, Range, RangeTransition, ScaleSpec, TickFormatterSpec, TimeZone, TipShape } from "../geometry/index.js";
|
|
6
|
+
import type { ShapeProps } from "../scene/shape.js";
|
|
7
|
+
import type { TextHalo } from "../scene/text.js";
|
|
8
|
+
import type { PropsDescriptor, SceneNode } from "../scene/types.js";
|
|
9
|
+
import type { Vec2 } from "../spec/layout.js";
|
|
10
10
|
/**
|
|
11
11
|
* The shape props a number line hands straight to its line and ticks: every
|
|
12
12
|
* one but the transform (the line places itself) and `progress` (spent in
|
|
@@ -187,7 +187,7 @@ export declare const numberLineStyleProps: PropsDescriptor<NumberLineStyleProps>
|
|
|
187
187
|
* @see {@link axes} for a pair of lines with a shared plotting area.
|
|
188
188
|
* @category Coordinate systems & graphs
|
|
189
189
|
*/
|
|
190
|
-
export declare const numberLine: import("
|
|
190
|
+
export declare const numberLine: import("../scene/types.js").Definition<NumberLineProps, import("../scene/composite.js").CompositeNode<NumberLineProps>, keyof NumberLineProps>;
|
|
191
191
|
/** @category Coordinate systems & graphs */
|
|
192
192
|
export type UnitIntervalProps = Omit<NumberLineProps, "range"> & {
|
|
193
193
|
/** Overrides the preset's `[0, 1, 0.25]`. */
|
|
@@ -207,6 +207,5 @@ export type UnitIntervalProps = Omit<NumberLineProps, "range"> & {
|
|
|
207
207
|
*
|
|
208
208
|
* @category Coordinate systems & graphs
|
|
209
209
|
*/
|
|
210
|
-
export declare const unitInterval: import("
|
|
210
|
+
export declare const unitInterval: import("../scene/types.js").Definition<UnitIntervalProps, import("../scene/composite.js").CompositeNode<UnitIntervalProps>, "base" | "center" | "children" | "cursor" | "dash" | "dashOffset" | "decimalPlaces" | "drag" | "drop" | "fill" | "fillOpacity" | "focusable" | "hitArea" | "hover" | "itemLabel" | "keyboard" | "label" | "length" | "lineCap" | "lineJoin" | "minorTickCount" | "minorTickSize" | "numberDirection" | "numberFontSize" | "numberGap" | "numberHalo" | "numberOpacity" | "numberOverlap" | "numbers" | "numbersToExclude" | "numbersToInclude" | "onContextMenu" | "onDoubleTap" | "onEnter" | "onLeave" | "onLongPress" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onTap" | "onWheel" | "opacity" | "place" | "pointerEvents" | "pressed" | "progress" | "range" | "role" | "rotation" | "scale" | "step" | "stroke" | "strokeAlong" | "strokeWidth" | "tickFormat" | "tickSize" | "ticks" | "timeZone" | "tip" | "tipLength" | "tipShape" | "visible" | "zIndex">;
|
|
211
211
|
export {};
|
|
212
|
-
//# sourceMappingURL=number-line.d.ts.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* `numberPlane`: `axes` on a background grid (Manim's `NumberPlane`). The
|
|
3
3
|
* layout is shared with `complexPlane`.
|
|
4
4
|
*/
|
|
5
|
-
import type { ColorInput } from "../color";
|
|
6
|
-
import type { CompositeContext } from "../scene/composite";
|
|
7
|
-
import type { PropsDescriptor, SceneNode } from "../scene/types";
|
|
8
|
-
import type { AxesProps, AxesState } from "./axes";
|
|
9
|
-
import type { CoordinateSystem } from "./coords";
|
|
10
|
-
import { createGridLines } from "./grid-lines";
|
|
5
|
+
import type { ColorInput } from "../color/index.js";
|
|
6
|
+
import type { CompositeContext } from "../scene/composite.js";
|
|
7
|
+
import type { PropsDescriptor, SceneNode } from "../scene/types.js";
|
|
8
|
+
import type { AxesProps, AxesState } from "./axes.js";
|
|
9
|
+
import type { CoordinateSystem } from "./coords.js";
|
|
10
|
+
import { createGridLines } from "./grid-lines.js";
|
|
11
11
|
/**
|
|
12
12
|
* Props for {@link numberPlane}: everything {@link AxesProps} takes, plus grid styling.
|
|
13
13
|
*
|
|
@@ -108,5 +108,4 @@ export declare function numberPlaneLayout<P extends object>(ctx: CompositeContex
|
|
|
108
108
|
* @see {@link polarPlane} for rings and spokes.
|
|
109
109
|
* @category Coordinate systems & graphs
|
|
110
110
|
*/
|
|
111
|
-
export declare const numberPlane: import("
|
|
112
|
-
//# sourceMappingURL=number-plane.d.ts.map
|
|
111
|
+
export declare const numberPlane: import("../scene/types.js").Definition<NumberPlaneProps, import("../scene/composite.js").CompositeNode<NumberPlaneProps>, keyof NumberPlaneProps>;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* `polarPlane`: rings for radius, spokes for angle (Manim's `PolarPlane`),
|
|
3
3
|
* over an ordinary cartesian mapping.
|
|
4
4
|
*/
|
|
5
|
-
import type { ColorInput } from "../color";
|
|
6
|
-
import type { Point } from "../geometry";
|
|
7
|
-
import type { SceneNode } from "../scene/types";
|
|
8
|
-
import type { AxisOptions } from "./axes";
|
|
9
|
-
import type { CoordinateSystem } from "./coords";
|
|
5
|
+
import type { ColorInput } from "../color/index.js";
|
|
6
|
+
import type { Point } from "../geometry/index.js";
|
|
7
|
+
import type { SceneNode } from "../scene/types.js";
|
|
8
|
+
import type { AxisOptions } from "./axes.js";
|
|
9
|
+
import type { CoordinateSystem } from "./coords.js";
|
|
10
10
|
/**
|
|
11
11
|
* How the spokes are labelled — Manim's `azimuth_units`, minus the gradians
|
|
12
12
|
* nobody has ever asked for.
|
|
@@ -159,7 +159,7 @@ export declare function piMultipleLabel(numerator: number, denominator: number):
|
|
|
159
159
|
* @see {@link https://sophistry.dev/guides/coordinate-systems/#polarplane-and-complexplane}
|
|
160
160
|
* @category Coordinate systems & graphs
|
|
161
161
|
*/
|
|
162
|
-
export declare const polarPlane: import("
|
|
162
|
+
export declare const polarPlane: import("../scene/types.js").Definition<PolarPlaneProps, import("../scene/composite.js").CompositeNode<PolarPlaneProps>, keyof PolarPlaneProps>;
|
|
163
163
|
/**
|
|
164
164
|
* {@link coordsOf} for a {@link polarPlane}: its system with
|
|
165
165
|
* `polarToPoint`/`pointToPolar`.
|
|
@@ -170,4 +170,3 @@ export declare const polarPlane: import("..").Definition<PolarPlaneProps, import
|
|
|
170
170
|
* @category Coordinate systems & graphs
|
|
171
171
|
*/
|
|
172
172
|
export declare function polarCoordsOf(node: SceneNode<PolarPlaneProps>): PolarCoordinateSystem | null;
|
|
173
|
-
//# sourceMappingURL=polar-plane.d.ts.map
|
package/dist/coords/tangent.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* which is the same job `plot` does, and it shares that shape's `function`/`from`/
|
|
7
7
|
* `to` vocabulary.
|
|
8
8
|
*/
|
|
9
|
-
import type { Point, Polyline } from "../geometry";
|
|
10
|
-
import type { ShapeInstanceable, ShapeProps } from "../scene/shape";
|
|
9
|
+
import type { Point, Polyline } from "../geometry/index.js";
|
|
10
|
+
import type { ShapeInstanceable, ShapeProps } from "../scene/shape.js";
|
|
11
11
|
/** @category Coordinate systems & graphs */
|
|
12
12
|
export interface TangentLineProps extends ShapeProps {
|
|
13
13
|
/** An already-sampled curve in scene units. Takes precedence over `function`/`from`/`to`. */
|
|
@@ -70,5 +70,4 @@ export interface TangentLineProps extends ShapeProps {
|
|
|
70
70
|
* @see {@link plot}
|
|
71
71
|
* @category Coordinate systems & graphs
|
|
72
72
|
*/
|
|
73
|
-
export declare const tangentLine: import("
|
|
74
|
-
//# sourceMappingURL=tangent.d.ts.map
|
|
73
|
+
export declare const tangentLine: import("../index.js").Definition<TangentLineProps, import("../scene/shape.js").ShapeNode<TangentLineProps>, "length" | "proportion" | ShapeInstanceable>;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
* the frame, so a pan re-samples it without any `update`, and a field with
|
|
16
16
|
* ranges never reads the frame at all.
|
|
17
17
|
*/
|
|
18
|
-
import type { ColorInput } from "../color";
|
|
19
|
-
import type { Bounds, Point, Polyline, Range, TipShape, VectorFn } from "../geometry";
|
|
20
|
-
import type { CompositeNode } from "../scene/composite";
|
|
21
|
-
import type { ShapeProps } from "../scene/shape";
|
|
22
|
-
import type { Definition, SceneNode } from "../scene/types";
|
|
23
|
-
import type { ColorRampSpec } from "../spec/colorRampProp";
|
|
24
|
-
import type { Theme } from "../themes/types";
|
|
25
|
-
import type { CoordinateSystem } from "./coords";
|
|
18
|
+
import type { ColorInput } from "../color/index.js";
|
|
19
|
+
import type { Bounds, Point, Polyline, Range, TipShape, VectorFn } from "../geometry/index.js";
|
|
20
|
+
import type { CompositeNode } from "../scene/composite.js";
|
|
21
|
+
import type { ShapeProps } from "../scene/shape.js";
|
|
22
|
+
import type { Definition, SceneNode } from "../scene/types.js";
|
|
23
|
+
import type { ColorRampSpec } from "../spec/colorRampProp.js";
|
|
24
|
+
import type { Theme } from "../themes/types.js";
|
|
25
|
+
import type { CoordinateSystem } from "./coords.js";
|
|
26
26
|
/**
|
|
27
27
|
* The imperative half of a field, for reading vectors and flow lines out of
|
|
28
28
|
* it (to ride a dot along it, say). Made by {@link fieldHandle}; its methods
|
|
@@ -316,4 +316,3 @@ export interface StreamLinesProps extends FieldProps {
|
|
|
316
316
|
*/
|
|
317
317
|
export declare const streamLines: Definition<StreamLinesProps, CompositeNode<StreamLinesProps>, keyof StreamLinesProps>;
|
|
318
318
|
export {};
|
|
319
|
-
//# sourceMappingURL=vector-field.d.ts.map
|
package/dist/entries/color.d.ts
CHANGED
|
@@ -16,16 +16,15 @@
|
|
|
16
16
|
* @module @sophistry/core/color
|
|
17
17
|
* @packageDocumentation
|
|
18
18
|
*/
|
|
19
|
-
export type { ColorInterpolationOptions, Hsl, Hsv, Oklch, } from "../color/convert";
|
|
20
|
-
export { colorInterpolator, hslToRgb, hsvToRgb, oklchToRgb, rgbToHsl, rgbToHsv, rgbToOklch, } from "../color/convert";
|
|
21
|
-
export { BLACK, BLUE, GOLD, GREEN, GREY, GREY_A, GREY_B, GREY_C, GREY_D, GREY_E, MAROON, namedColors, ORANGE, PINK, PURPLE, RED, TEAL, WHITE, YELLOW, } from "../color/named";
|
|
22
|
-
export { darken, lighten, mixColor, shadeColor, withAlpha, } from "../color/ops";
|
|
23
|
-
export { FALLBACK_COLOR, parseColor, toCss, tryParseColor, } from "../color/parse";
|
|
24
|
-
export type { RandomColorOptions } from "../color/random";
|
|
25
|
-
export { randomColor } from "../color/random";
|
|
26
|
-
export type { Color, ColorInput, ColorSpace } from "../color/types";
|
|
27
|
-
export type { Colormap, ColormapName, ColormapOptions, ColormapSpec, } from "../themes/colormap";
|
|
28
|
-
export { colormapStops, colormaps, resolveColormap } from "../themes/colormap";
|
|
29
|
-
export type { ColorRampOptions } from "../themes/ramp";
|
|
30
|
-
export { colorRamp, sampleRamp } from "../themes/ramp";
|
|
31
|
-
//# sourceMappingURL=color.d.ts.map
|
|
19
|
+
export type { ColorInterpolationOptions, Hsl, Hsv, Oklch, } from "../color/convert.js";
|
|
20
|
+
export { colorInterpolator, hslToRgb, hsvToRgb, oklchToRgb, rgbToHsl, rgbToHsv, rgbToOklch, } from "../color/convert.js";
|
|
21
|
+
export { BLACK, BLUE, GOLD, GREEN, GREY, GREY_A, GREY_B, GREY_C, GREY_D, GREY_E, MAROON, namedColors, ORANGE, PINK, PURPLE, RED, TEAL, WHITE, YELLOW, } from "../color/named.js";
|
|
22
|
+
export { darken, lighten, mixColor, shadeColor, withAlpha, } from "../color/ops.js";
|
|
23
|
+
export { FALLBACK_COLOR, parseColor, toCss, tryParseColor, } from "../color/parse.js";
|
|
24
|
+
export type { RandomColorOptions } from "../color/random.js";
|
|
25
|
+
export { randomColor } from "../color/random.js";
|
|
26
|
+
export type { Color, ColorInput, ColorSpace } from "../color/types.js";
|
|
27
|
+
export type { Colormap, ColormapName, ColormapOptions, ColormapSpec, } from "../themes/colormap.js";
|
|
28
|
+
export { colormapStops, colormaps, resolveColormap, } from "../themes/colormap.js";
|
|
29
|
+
export type { ColorRampOptions } from "../themes/ramp.js";
|
|
30
|
+
export { colorRamp, sampleRamp } from "../themes/ramp.js";
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
*
|
|
26
26
|
* @module @sophistry/core/definitions
|
|
27
27
|
*/
|
|
28
|
-
import * as entry from "../index";
|
|
29
|
-
import type { Definition } from "../scene/types";
|
|
28
|
+
import * as entry from "../index.js";
|
|
29
|
+
import type { Definition } from "../scene/types.js";
|
|
30
30
|
/**
|
|
31
31
|
* Whether `value` is a definition made by `definePrimitive`, `defineShape`,
|
|
32
32
|
* `defineComposite` and friends.
|
|
@@ -70,4 +70,3 @@ export declare function collectDefinitions<M extends object>(namespace: M): Defi
|
|
|
70
70
|
*/
|
|
71
71
|
export declare const definitions: DefinitionExports<typeof entry>;
|
|
72
72
|
export {};
|
|
73
|
-
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -15,46 +15,45 @@
|
|
|
15
15
|
* @module @sophistry/core/geometry
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
*/
|
|
18
|
-
export type { AngleArcOptions } from "../geometry/arc";
|
|
19
|
-
export { angleArcCurvePath, angleArcPolyline, annularSectorCurvePath, annularSectorPolyline, annulusCurvePaths, annulusPolylines, arcBetweenPoints, arcBetweenPointsCurvePath, arcCurvePath, cubicBezierPolyline, elbowPolyline, ellipseCurvePath, polygramPolyline, quadraticBezierPolyline, rightAngleMarkPolyline, sectorCurvePath, sectorPolyline, segmentsForArc, starInnerRadius, starPolygon, } from "../geometry/arc";
|
|
20
|
-
export type { BandKey, BandScale, BandScaleOptions } from "../geometry/band";
|
|
21
|
-
export { bandScale, interpolateBandScale, slotBandScale, } from "../geometry/band";
|
|
22
|
-
export { boundsOf, centerOf, pointOnBounds } from "../geometry/bounds";
|
|
23
|
-
export type { BraceOptions } from "../geometry/brace";
|
|
24
|
-
export { braceRings, braceSpan, braceTip } from "../geometry/brace";
|
|
25
|
-
export type { ClosedCurveKind, CurveKind } from "../geometry/curves";
|
|
26
|
-
export { areaCurvePath, clipClosedCurvePathToX, clipCurvePathToX, closedCurvePath, curvePath, reverseCurvePath, } from "../geometry/curves";
|
|
27
|
-
export type { StreamlineOptions, VectorFn } from "../geometry/field";
|
|
28
|
-
export { fieldJitter, rk4Step, streamline, streamlineBothWays, } from "../geometry/field";
|
|
29
|
-
export type { GraphData, GraphDirection, GraphEdge, GraphExtent, GraphLayout, GraphLayoutName, GraphLayoutOptions, GraphLayoutSpec, VertexId, } from "../geometry/graph-layout";
|
|
30
|
-
export { circularLayout, edgeKey, explicitLayout, graphLayouts, gridLayout, partiteLayout, pathEdges, resolveGraphLayout, shellLayout, springGrowth, springLayout, springTrajectory, treeLayout, } from "../geometry/graph-layout";
|
|
31
|
-
export type { ImplicitCurveOptions, ImplicitCurvePiece, } from "../geometry/implicit";
|
|
32
|
-
export { implicitCurve } from "../geometry/implicit";
|
|
33
|
-
export type { PointPath } from "../geometry/lerp";
|
|
34
|
-
export { clamp, lerp, lerpPoint, lerpPoint3, pathAlongArc, progressIn, remap, } from "../geometry/lerp";
|
|
35
|
-
export type { Correspondence, MorphInterpolator, RingsInterpolator, } from "../geometry/morph";
|
|
36
|
-
export { morphCurvePaths, morphPathData, morphPolylines, morphRings, } from "../geometry/morph";
|
|
37
|
-
export type { ArcTable, CurveArcTable } from "../geometry/path/arclength";
|
|
38
|
-
export { measure, measureCurve, normalAtT, pointAtT, resample, revealedPolylines, sliceAtT, sliceBetween, sliceCurveAtT, sliceCurveBetween, tangentAtT, } from "../geometry/path/arclength";
|
|
39
|
-
export { arcCubics, cubicArcLength, flattenCubicPolyline, lineSegment, quadraticToCubic, splitCubicAt, } from "../geometry/path/cubic";
|
|
40
|
-
export type { PathSegment } from "../geometry/path/svg-path";
|
|
41
|
-
export { closePolyline, curvePathToPolyline, flattenPath, parsePathData, pathDataToCurvePath, polylineToCurvePath, toPathData, } from "../geometry/path/svg-path";
|
|
42
|
-
export type { Bounds, CurvePath, CurveSegment, Point, Polyline, Subpath, } from "../geometry/path/types";
|
|
43
|
-
export type { RangeTransition, WeightedTick, } from "../geometry/scale/range-transition";
|
|
44
|
-
export { currentRange, interpolateRange, isRangeTransition, spacedTicks, transitionTicks, } from "../geometry/scale/range-transition";
|
|
45
|
-
export type { DivergingKind, DivergingScaleOptions, Range, Scale, ScaleName, ScaleSpec, ScaleTicks, TimeScaleOptions, } from "../geometry/scale/scales";
|
|
46
|
-
export { divergingScale, linearScale, logScale, powScale, resolveScale, sqrtScale, symlogScale, timeScale, } from "../geometry/scale/scales";
|
|
47
|
-
export type { TickFormatContext, TickFormatter, TickFormatterName, TickFormatterSpec, } from "../geometry/scale/tick-format";
|
|
48
|
-
export { formatSpecifier, formatTick, resolveTickFormatter, tickFormatters, } from "../geometry/scale/tick-format";
|
|
49
|
-
export type { AxisTickOptions, LogTickOptions, TickOptions, } from "../geometry/scale/ticks";
|
|
50
|
-
export { axisTicks, logTicks, niceStep, thinTickLabels, tickStep, tickValues, } from "../geometry/scale/ticks";
|
|
51
|
-
export type { MatchedShapePart, MatchShapesOptions, ShapeMatch, ShapePart, ShapeTransform, } from "../geometry/shape-match";
|
|
52
|
-
export { matchShapesByPointCloud, morphShapes } from "../geometry/shape-match";
|
|
53
|
-
export { arcPolyline, arrowHead, arrowHeadAt, circlePolyline, ellipsePolyline, linePolyline, plotPolyline, rectPolyline, regularPolygon, segmentsForRadius, } from "../geometry/shapes";
|
|
54
|
-
export type { TemporalInstantLike, TemporalPlainDateLike, TemporalPlainDateTimeLike, TemporalValue, TimeValue, TimeZone, } from "../geometry/time";
|
|
55
|
-
export { fromWallTime, timeZoneOffset, toEpochMs, toWallTime, } from "../geometry/time";
|
|
56
|
-
export type { TipGeometry, TipShape } from "../geometry/tips";
|
|
57
|
-
export { tipIsClosed, tipPolylines } from "../geometry/tips";
|
|
58
|
-
export type { Matrix } from "../geometry/transform";
|
|
59
|
-
export { about, applyToPoint, applyToPolyline, columnsOf, compose, determinant, fromColumns, fromTranslationRotationScale, IDENTITY, invert, lerpMatrix, linearMap, rotate, scale, scaleFactorOf, translate, } from "../geometry/transform";
|
|
60
|
-
//# sourceMappingURL=geometry.d.ts.map
|
|
18
|
+
export type { AngleArcOptions } from "../geometry/arc.js";
|
|
19
|
+
export { angleArcCurvePath, angleArcPolyline, annularSectorCurvePath, annularSectorPolyline, annulusCurvePaths, annulusPolylines, arcBetweenPoints, arcBetweenPointsCurvePath, arcCurvePath, cubicBezierPolyline, elbowPolyline, ellipseCurvePath, polygramPolyline, quadraticBezierPolyline, rightAngleMarkPolyline, sectorCurvePath, sectorPolyline, segmentsForArc, starInnerRadius, starPolygon, } from "../geometry/arc.js";
|
|
20
|
+
export type { BandKey, BandScale, BandScaleOptions } from "../geometry/band.js";
|
|
21
|
+
export { bandScale, interpolateBandScale, slotBandScale, } from "../geometry/band.js";
|
|
22
|
+
export { boundsOf, centerOf, pointOnBounds } from "../geometry/bounds.js";
|
|
23
|
+
export type { BraceOptions } from "../geometry/brace.js";
|
|
24
|
+
export { braceRings, braceSpan, braceTip } from "../geometry/brace.js";
|
|
25
|
+
export type { ClosedCurveKind, CurveKind } from "../geometry/curves.js";
|
|
26
|
+
export { areaCurvePath, clipClosedCurvePathToX, clipCurvePathToX, closedCurvePath, curvePath, reverseCurvePath, } from "../geometry/curves.js";
|
|
27
|
+
export type { StreamlineOptions, VectorFn } from "../geometry/field.js";
|
|
28
|
+
export { fieldJitter, rk4Step, streamline, streamlineBothWays, } from "../geometry/field.js";
|
|
29
|
+
export type { GraphData, GraphDirection, GraphEdge, GraphExtent, GraphLayout, GraphLayoutName, GraphLayoutOptions, GraphLayoutSpec, VertexId, } from "../geometry/graph-layout.js";
|
|
30
|
+
export { circularLayout, edgeKey, explicitLayout, graphLayouts, gridLayout, partiteLayout, pathEdges, resolveGraphLayout, shellLayout, springGrowth, springLayout, springTrajectory, treeLayout, } from "../geometry/graph-layout.js";
|
|
31
|
+
export type { ImplicitCurveOptions, ImplicitCurvePiece, } from "../geometry/implicit.js";
|
|
32
|
+
export { implicitCurve } from "../geometry/implicit.js";
|
|
33
|
+
export type { PointPath } from "../geometry/lerp.js";
|
|
34
|
+
export { clamp, lerp, lerpPoint, lerpPoint3, pathAlongArc, progressIn, remap, } from "../geometry/lerp.js";
|
|
35
|
+
export type { Correspondence, MorphInterpolator, RingsInterpolator, } from "../geometry/morph.js";
|
|
36
|
+
export { morphCurvePaths, morphPathData, morphPolylines, morphRings, } from "../geometry/morph.js";
|
|
37
|
+
export type { ArcTable, CurveArcTable } from "../geometry/path/arclength.js";
|
|
38
|
+
export { measure, measureCurve, normalAtT, pointAtT, resample, revealedPolylines, sliceAtT, sliceBetween, sliceCurveAtT, sliceCurveBetween, tangentAtT, } from "../geometry/path/arclength.js";
|
|
39
|
+
export { arcCubics, cubicArcLength, flattenCubicPolyline, lineSegment, quadraticToCubic, splitCubicAt, } from "../geometry/path/cubic.js";
|
|
40
|
+
export type { PathSegment } from "../geometry/path/svg-path.js";
|
|
41
|
+
export { closePolyline, curvePathToPolyline, flattenPath, parsePathData, pathDataToCurvePath, polylineToCurvePath, toPathData, } from "../geometry/path/svg-path.js";
|
|
42
|
+
export type { Bounds, CurvePath, CurveSegment, Point, Polyline, Subpath, } from "../geometry/path/types.js";
|
|
43
|
+
export type { RangeTransition, WeightedTick, } from "../geometry/scale/range-transition.js";
|
|
44
|
+
export { currentRange, interpolateRange, isRangeTransition, spacedTicks, transitionTicks, } from "../geometry/scale/range-transition.js";
|
|
45
|
+
export type { DivergingKind, DivergingScaleOptions, Range, Scale, ScaleName, ScaleSpec, ScaleTicks, TimeScaleOptions, } from "../geometry/scale/scales.js";
|
|
46
|
+
export { divergingScale, linearScale, logScale, powScale, resolveScale, sqrtScale, symlogScale, timeScale, } from "../geometry/scale/scales.js";
|
|
47
|
+
export type { TickFormatContext, TickFormatter, TickFormatterName, TickFormatterSpec, } from "../geometry/scale/tick-format.js";
|
|
48
|
+
export { formatSpecifier, formatTick, resolveTickFormatter, tickFormatters, } from "../geometry/scale/tick-format.js";
|
|
49
|
+
export type { AxisTickOptions, LogTickOptions, TickOptions, } from "../geometry/scale/ticks.js";
|
|
50
|
+
export { axisTicks, logTicks, niceStep, thinTickLabels, tickStep, tickValues, } from "../geometry/scale/ticks.js";
|
|
51
|
+
export type { MatchedShapePart, MatchShapesOptions, ShapeMatch, ShapePart, ShapeTransform, } from "../geometry/shape-match.js";
|
|
52
|
+
export { matchShapesByPointCloud, morphShapes, } from "../geometry/shape-match.js";
|
|
53
|
+
export { arcPolyline, arrowHead, arrowHeadAt, circlePolyline, ellipsePolyline, linePolyline, plotPolyline, rectPolyline, regularPolygon, segmentsForRadius, } from "../geometry/shapes.js";
|
|
54
|
+
export type { TemporalInstantLike, TemporalPlainDateLike, TemporalPlainDateTimeLike, TemporalValue, TimeValue, TimeZone, } from "../geometry/time.js";
|
|
55
|
+
export { fromWallTime, timeZoneOffset, toEpochMs, toWallTime, } from "../geometry/time.js";
|
|
56
|
+
export type { TipGeometry, TipShape } from "../geometry/tips.js";
|
|
57
|
+
export { tipIsClosed, tipPolylines } from "../geometry/tips.js";
|
|
58
|
+
export type { Matrix } from "../geometry/transform.js";
|
|
59
|
+
export { about, applyToPoint, applyToPolyline, columnsOf, compose, determinant, fromColumns, fromTranslationRotationScale, IDENTITY, invert, lerpMatrix, linearMap, rotate, scale, scaleFactorOf, translate, } from "../geometry/transform.js";
|