@motionscript/math 0.1.0-alpha.5 → 0.1.0-alpha.7
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/CHANGELOG.md +28 -0
- package/README.md +39 -33
- package/dist/annotate/angle-mark.d.ts +77 -27
- package/dist/annotate/angle-mark.d.ts.map +1 -1
- package/dist/annotate/angle-mark.js +80 -115
- package/dist/annotate/angle-mark.js.map +1 -1
- package/dist/annotate/curly-brace.d.ts +94 -25
- package/dist/annotate/curly-brace.d.ts.map +1 -1
- package/dist/annotate/curly-brace.js +85 -100
- package/dist/annotate/curly-brace.js.map +1 -1
- package/dist/annotate/emphasis-mark.d.ts +69 -9
- package/dist/annotate/emphasis-mark.d.ts.map +1 -1
- package/dist/annotate/emphasis-mark.js +33 -34
- package/dist/annotate/emphasis-mark.js.map +1 -1
- package/dist/browser/chunks/chunk-ABYBW64J.js +2 -0
- package/dist/browser/chunks/chunk-ABYBW64J.js.map +7 -0
- package/dist/browser/chunks/chunk-K77KLQX4.js +2 -0
- package/dist/browser/chunks/chunk-K77KLQX4.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/browser/kit.js +1 -1
- package/dist/browser/manifest.json +1 -1
- package/dist/browser/tex.js +1 -1
- package/dist/browser/tex.js.map +2 -2
- package/dist/engine.d.ts +26 -19
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +17 -14
- package/dist/engine.js.map +1 -1
- package/dist/kit/component.d.ts +51 -0
- package/dist/kit/component.d.ts.map +1 -0
- package/dist/kit/component.js +30 -0
- package/dist/kit/component.js.map +1 -0
- package/dist/kit/curve.d.ts +22 -11
- package/dist/kit/curve.d.ts.map +1 -1
- package/dist/kit/curve.js +25 -18
- package/dist/kit/curve.js.map +1 -1
- package/dist/kit/field-mark.d.ts +56 -35
- package/dist/kit/field-mark.d.ts.map +1 -1
- package/dist/kit/field-mark.js +100 -120
- package/dist/kit/field-mark.js.map +1 -1
- package/dist/kit/follow.d.ts +67 -29
- package/dist/kit/follow.d.ts.map +1 -1
- package/dist/kit/follow.js +114 -110
- package/dist/kit/follow.js.map +1 -1
- package/dist/kit/furniture.d.ts +3 -1
- package/dist/kit/furniture.d.ts.map +1 -1
- package/dist/kit/furniture.js +5 -0
- package/dist/kit/furniture.js.map +1 -1
- package/dist/kit/graph.d.ts +46 -0
- package/dist/kit/graph.d.ts.map +1 -0
- package/dist/kit/graph.js +90 -0
- package/dist/kit/graph.js.map +1 -0
- package/dist/kit/mark.d.ts +64 -39
- package/dist/kit/mark.d.ts.map +1 -1
- package/dist/kit/mark.js +80 -96
- package/dist/kit/mark.js.map +1 -1
- package/dist/kit/place.d.ts +10 -8
- package/dist/kit/place.d.ts.map +1 -1
- package/dist/kit/place.js +28 -30
- package/dist/kit/place.js.map +1 -1
- package/dist/kit/system.d.ts +27 -29
- package/dist/kit/system.d.ts.map +1 -1
- package/dist/kit/system.js +62 -58
- package/dist/kit/system.js.map +1 -1
- package/dist/kit/withdrawn.d.ts +3 -3
- package/dist/kit/withdrawn.js +3 -3
- package/dist/kit/withdrawn.js.map +1 -1
- package/dist/marks/curve-area.d.ts +37 -18
- package/dist/marks/curve-area.d.ts.map +1 -1
- package/dist/marks/curve-area.js +50 -73
- package/dist/marks/curve-area.js.map +1 -1
- package/dist/marks/drop-lines.d.ts +45 -10
- package/dist/marks/drop-lines.d.ts.map +1 -1
- package/dist/marks/drop-lines.js +37 -52
- package/dist/marks/drop-lines.js.map +1 -1
- package/dist/marks/plot-point.d.ts +56 -20
- package/dist/marks/plot-point.d.ts.map +1 -1
- package/dist/marks/plot-point.js +65 -91
- package/dist/marks/plot-point.js.map +1 -1
- package/dist/marks/riemann-sum.d.ts +47 -26
- package/dist/marks/riemann-sum.d.ts.map +1 -1
- package/dist/marks/riemann-sum.js +57 -85
- package/dist/marks/riemann-sum.js.map +1 -1
- package/dist/marks/tangent-line.d.ts +58 -14
- package/dist/marks/tangent-line.d.ts.map +1 -1
- package/dist/marks/tangent-line.js +73 -87
- package/dist/marks/tangent-line.js.map +1 -1
- package/dist/marks/vector-arrow.d.ts +48 -20
- package/dist/marks/vector-arrow.d.ts.map +1 -1
- package/dist/marks/vector-arrow.js +58 -78
- package/dist/marks/vector-arrow.js.map +1 -1
- package/dist/nodes.d.ts +13 -5
- package/dist/nodes.d.ts.map +1 -1
- package/dist/nodes.js +0 -6
- package/dist/nodes.js.map +1 -1
- package/dist/plots/function-plot.d.ts +135 -43
- package/dist/plots/function-plot.d.ts.map +1 -1
- package/dist/plots/function-plot.js +146 -177
- package/dist/plots/function-plot.js.map +1 -1
- package/dist/plots/points-plot.d.ts +55 -19
- package/dist/plots/points-plot.d.ts.map +1 -1
- package/dist/plots/points-plot.js +31 -58
- package/dist/plots/points-plot.js.map +1 -1
- package/dist/plots/stream-lines.d.ts +60 -19
- package/dist/plots/stream-lines.d.ts.map +1 -1
- package/dist/plots/stream-lines.js +60 -79
- package/dist/plots/stream-lines.js.map +1 -1
- package/dist/plots/traced-path.d.ts +54 -15
- package/dist/plots/traced-path.d.ts.map +1 -1
- package/dist/plots/traced-path.js +33 -48
- package/dist/plots/traced-path.js.map +1 -1
- package/dist/plots/vector-field.d.ts +48 -11
- package/dist/plots/vector-field.d.ts.map +1 -1
- package/dist/plots/vector-field.js +50 -64
- package/dist/plots/vector-field.js.map +1 -1
- package/dist/structures/network-graph.d.ts +140 -49
- package/dist/structures/network-graph.d.ts.map +1 -1
- package/dist/structures/network-graph.js +168 -217
- package/dist/structures/network-graph.js.map +1 -1
- package/dist/structures/sample-space.d.ts +90 -38
- package/dist/structures/sample-space.d.ts.map +1 -1
- package/dist/structures/sample-space.js +132 -170
- package/dist/structures/sample-space.js.map +1 -1
- package/dist/systems/axes2d.d.ts +159 -37
- package/dist/systems/axes2d.d.ts.map +1 -1
- package/dist/systems/axes2d.js +147 -183
- package/dist/systems/axes2d.js.map +1 -1
- package/dist/systems/number-line.d.ts +80 -28
- package/dist/systems/number-line.d.ts.map +1 -1
- package/dist/systems/number-line.js +82 -118
- package/dist/systems/number-line.js.map +1 -1
- package/dist/systems/number-plane.d.ts +140 -31
- package/dist/systems/number-plane.d.ts.map +1 -1
- package/dist/systems/number-plane.js +142 -149
- package/dist/systems/number-plane.js.map +1 -1
- package/dist/systems/polar-plane.d.ts +76 -26
- package/dist/systems/polar-plane.d.ts.map +1 -1
- package/dist/systems/polar-plane.js +107 -133
- package/dist/systems/polar-plane.js.map +1 -1
- package/dist/tex/index.d.ts.map +1 -1
- package/dist/tex/index.js +1 -0
- package/dist/tex/index.js.map +1 -1
- package/dist/tex/matrix.d.ts +88 -18
- package/dist/tex/matrix.d.ts.map +1 -1
- package/dist/tex/matrix.js +33 -50
- package/dist/tex/matrix.js.map +1 -1
- package/dist/tex/node.d.ts +84 -201
- package/dist/tex/node.d.ts.map +1 -1
- package/dist/tex/node.js +23 -593
- package/dist/tex/node.js.map +1 -1
- package/dist/tex/typeset.d.ts +133 -0
- package/dist/tex/typeset.d.ts.map +1 -0
- package/dist/tex/typeset.js +403 -0
- package/dist/tex/typeset.js.map +1 -0
- package/dist/three/axes3d.d.ts +214 -54
- package/dist/three/axes3d.d.ts.map +1 -1
- package/dist/three/axes3d.js +163 -204
- package/dist/three/axes3d.js.map +1 -1
- package/dist/three/curve-plot3d.d.ts +108 -42
- package/dist/three/curve-plot3d.d.ts.map +1 -1
- package/dist/three/curve-plot3d.js +97 -132
- package/dist/three/curve-plot3d.js.map +1 -1
- package/dist/three/entries.d.ts +17 -0
- package/dist/three/entries.d.ts.map +1 -0
- package/dist/three/entries.js +15 -0
- package/dist/three/entries.js.map +1 -0
- package/dist/three/plot-point3d.d.ts +85 -12
- package/dist/three/plot-point3d.d.ts.map +1 -1
- package/dist/three/plot-point3d.js +27 -53
- package/dist/three/plot-point3d.js.map +1 -1
- package/dist/three/space.d.ts +17 -2
- package/dist/three/space.d.ts.map +1 -1
- package/dist/three/space.js +19 -8
- package/dist/three/space.js.map +1 -1
- package/dist/three/surface-plot3d.d.ts +176 -49
- package/dist/three/surface-plot3d.d.ts.map +1 -1
- package/dist/three/surface-plot3d.js +227 -261
- package/dist/three/surface-plot3d.js.map +1 -1
- package/dist/three/vector-arrow3d.d.ts +87 -16
- package/dist/three/vector-arrow3d.d.ts.map +1 -1
- package/dist/three/vector-arrow3d.js +48 -67
- package/dist/three/vector-arrow3d.js.map +1 -1
- package/package.json +4 -4
- package/src/annotate/angle-mark.ts +95 -105
- package/src/annotate/curly-brace.ts +107 -85
- package/src/annotate/emphasis-mark.ts +55 -26
- package/src/engine.ts +35 -21
- package/src/kit/component.ts +57 -0
- package/src/kit/curve.ts +38 -20
- package/src/kit/field-mark.ts +124 -108
- package/src/kit/follow.ts +146 -120
- package/src/kit/furniture.ts +6 -1
- package/src/kit/graph.ts +116 -0
- package/src/kit/mark.ts +135 -114
- package/src/kit/place.ts +32 -56
- package/src/kit/system.ts +77 -71
- package/src/kit/withdrawn.ts +3 -3
- package/src/marks/curve-area.ts +65 -65
- package/src/marks/drop-lines.ts +50 -42
- package/src/marks/plot-point.ts +77 -82
- package/src/marks/riemann-sum.ts +73 -72
- package/src/marks/tangent-line.ts +87 -71
- package/src/marks/vector-arrow.ts +73 -73
- package/src/nodes.ts +41 -5
- package/src/plots/function-plot.ts +155 -171
- package/src/plots/points-plot.ts +46 -50
- package/src/plots/stream-lines.ts +75 -66
- package/src/plots/traced-path.ts +51 -33
- package/src/plots/vector-field.ts +68 -49
- package/src/structures/network-graph.ts +168 -185
- package/src/structures/sample-space.ts +149 -148
- package/src/systems/axes2d.ts +165 -156
- package/src/systems/number-line.ts +91 -92
- package/src/systems/number-plane.ts +149 -120
- package/src/systems/polar-plane.ts +117 -116
- package/src/tex/index.ts +2 -1
- package/src/tex/matrix.ts +62 -40
- package/src/tex/node.ts +54 -621
- package/src/tex/typeset.ts +461 -0
- package/src/three/axes3d.ts +187 -160
- package/src/three/curve-plot3d.ts +107 -110
- package/src/three/entries.ts +42 -0
- package/src/three/plot-point3d.ts +42 -45
- package/src/three/space.ts +34 -9
- package/src/three/surface-plot3d.ts +312 -323
- package/src/three/vector-arrow3d.ts +65 -54
- package/dist/browser/chunks/chunk-3GJB6AVO.js +0 -2
- package/dist/browser/chunks/chunk-3GJB6AVO.js.map +0 -7
- package/dist/browser/chunks/chunk-D5WHCVBC.js +0 -2
- package/dist/browser/chunks/chunk-D5WHCVBC.js.map +0 -7
- package/dist/browser/chunks/chunk-WL4KEX7Y.js +0 -2
- package/dist/browser/chunks/chunk-WL4KEX7Y.js.map +0 -7
- package/src/kit/placement.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type Color, type Geometry3D, type Material3D, type Mesh3DProps, type NodeOf, type NormalizedColor, type Values, type Blend3D as _Blend3D, type Faces3D as _Faces3D, type Fill3D as _Fill3D, type Node3D as _Node3D, type Node3DProps as _Node3DProps, type Shading3D as _Shading3D, type Texture3D as _Texture3D } from "@motionscript/sdk";
|
|
2
2
|
import type { Interval } from "../kit/coords.js";
|
|
3
3
|
import type { ExpressionScope } from "../kit/expression.js";
|
|
4
4
|
import { type PlotSource } from "../kit/source.js";
|
|
@@ -13,68 +13,195 @@ export interface SurfacePlot3dProps extends Mesh3DProps {
|
|
|
13
13
|
meshColor?: Color;
|
|
14
14
|
floorShadow?: number;
|
|
15
15
|
}
|
|
16
|
+
declare const state: {
|
|
17
|
+
expression: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
18
|
+
/**
|
|
19
|
+
* The span of each variable that is drawn: x and y for a height, which run
|
|
20
|
+
* the width of the axes when left out, u and v for a parametric surface,
|
|
21
|
+
* which run from 0 to 1.
|
|
22
|
+
*/
|
|
23
|
+
uDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
24
|
+
vDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
25
|
+
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
26
|
+
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
27
|
+
/** How finely the surface is sampled, each way. */
|
|
28
|
+
segments: import("@motionscript/sdk").Type<number, number, false>;
|
|
29
|
+
/** Colours by height, lowest first, over the axes' z range. Empty paints the surface in its fill. */
|
|
30
|
+
colorScale: import("@motionscript/sdk").Type<Color[], NormalizedColor[], false>;
|
|
31
|
+
/** How many lines are drawn across the surface each way; zero leaves it bare. */
|
|
32
|
+
meshLines: import("@motionscript/sdk").Type<number, number, false>;
|
|
33
|
+
meshColor: import("@motionscript/sdk").Type<Color, Color, false>;
|
|
34
|
+
/** The opacity of the surface's shadow, laid flat on the floor of the axes and coloured by height; zero draws none. */
|
|
35
|
+
floorShadow: import("@motionscript/sdk").Type<number, number, false>;
|
|
36
|
+
graph: import("@motionscript/sdk").Type<import("./space.js").Graph3D | null, import("./space.js").Graph3D | null, true>;
|
|
37
|
+
opacity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
38
|
+
blend: import("@motionscript/sdk").Type<_Blend3D | undefined, _Blend3D | undefined, false>;
|
|
39
|
+
fill: import("@motionscript/sdk").Type<_Fill3D, _Fill3D, false>;
|
|
40
|
+
faces: import("@motionscript/sdk").Type<_Faces3D | undefined, _Faces3D | undefined, false>;
|
|
41
|
+
wireframe: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
42
|
+
vertexColors: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
43
|
+
alphaMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
44
|
+
aoMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
45
|
+
normalMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
46
|
+
envMapIntensity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
47
|
+
geometry: import("@motionscript/sdk").Type<Geometry3D | undefined, Geometry3D | undefined, false>;
|
|
48
|
+
material: import("@motionscript/sdk").Type<Material3D | readonly Material3D[] | undefined, Material3D | readonly Material3D[] | undefined, false>;
|
|
49
|
+
roughness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
50
|
+
metalness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
51
|
+
emission: import("@motionscript/sdk").Type<Color | undefined, NormalizedColor | undefined, false>;
|
|
52
|
+
emissionStrength: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
53
|
+
roughnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
54
|
+
metalnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
55
|
+
shading: import("@motionscript/sdk").Type<_Shading3D | undefined, _Shading3D | undefined, false>;
|
|
56
|
+
unlit: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
57
|
+
};
|
|
58
|
+
/** What a surface is drawn from: its own entries, as its node and its helpers read them. */
|
|
59
|
+
export type SurfaceValues = Values<typeof state> & {
|
|
60
|
+
readonly x: number;
|
|
61
|
+
readonly y: number;
|
|
62
|
+
readonly z: number;
|
|
63
|
+
};
|
|
16
64
|
/**
|
|
17
65
|
* A surface in a 3D graph: a height over x and y (`sin(x) * cos(y)`), or three
|
|
18
66
|
* parts in u and v. A point put inside it rides it.
|
|
19
67
|
*/
|
|
20
|
-
export declare
|
|
21
|
-
expression: PlotSource
|
|
68
|
+
export declare const SurfacePlot3d: import("@motionscript/sdk").Component<"surfacePlot3d", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Transform3DState, {
|
|
69
|
+
expression: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
22
70
|
/**
|
|
23
71
|
* The span of each variable that is drawn: x and y for a height, which run
|
|
24
72
|
* the width of the axes when left out, u and v for a parametric surface,
|
|
25
73
|
* which run from 0 to 1.
|
|
26
74
|
*/
|
|
27
|
-
uDomain: Interval | null
|
|
28
|
-
vDomain: Interval | null
|
|
75
|
+
uDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
76
|
+
vDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
29
77
|
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
30
|
-
params:
|
|
78
|
+
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
31
79
|
/** How finely the surface is sampled, each way. */
|
|
32
|
-
segments: number
|
|
80
|
+
segments: import("@motionscript/sdk").Type<number, number, false>;
|
|
33
81
|
/** Colours by height, lowest first, over the axes' z range. Empty paints the surface in its fill. */
|
|
34
|
-
colorScale: Color[]
|
|
82
|
+
colorScale: import("@motionscript/sdk").Type<Color[], NormalizedColor[], false>;
|
|
35
83
|
/** How many lines are drawn across the surface each way; zero leaves it bare. */
|
|
36
|
-
meshLines: number
|
|
37
|
-
meshColor: Color
|
|
84
|
+
meshLines: import("@motionscript/sdk").Type<number, number, false>;
|
|
85
|
+
meshColor: import("@motionscript/sdk").Type<Color, Color, false>;
|
|
38
86
|
/** The opacity of the surface's shadow, laid flat on the floor of the axes and coloured by height; zero draws none. */
|
|
39
|
-
floorShadow: number
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
87
|
+
floorShadow: import("@motionscript/sdk").Type<number, number, false>;
|
|
88
|
+
graph: import("@motionscript/sdk").Type<import("./space.js").Graph3D | null, import("./space.js").Graph3D | null, true>;
|
|
89
|
+
opacity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
90
|
+
blend: import("@motionscript/sdk").Type<_Blend3D | undefined, _Blend3D | undefined, false>;
|
|
91
|
+
fill: import("@motionscript/sdk").Type<_Fill3D, _Fill3D, false>;
|
|
92
|
+
faces: import("@motionscript/sdk").Type<_Faces3D | undefined, _Faces3D | undefined, false>;
|
|
93
|
+
wireframe: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
94
|
+
vertexColors: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
95
|
+
alphaMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
96
|
+
aoMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
97
|
+
normalMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
98
|
+
envMapIntensity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
99
|
+
geometry: import("@motionscript/sdk").Type<Geometry3D | undefined, Geometry3D | undefined, false>;
|
|
100
|
+
material: import("@motionscript/sdk").Type<Material3D | readonly Material3D[] | undefined, Material3D | readonly Material3D[] | undefined, false>;
|
|
101
|
+
roughness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
102
|
+
metalness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
103
|
+
emission: import("@motionscript/sdk").Type<Color | undefined, NormalizedColor | undefined, false>;
|
|
104
|
+
emissionStrength: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
105
|
+
roughnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
106
|
+
metalnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
107
|
+
shading: import("@motionscript/sdk").Type<_Shading3D | undefined, _Shading3D | undefined, false>;
|
|
108
|
+
unlit: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
109
|
+
}>, {
|
|
110
|
+
readonly morphTo: readonly ["expression"];
|
|
111
|
+
readonly paramsTo: readonly ["params"];
|
|
112
|
+
readonly domainTo: readonly ["uDomain", "vDomain"];
|
|
113
|
+
}, null, _Node3D<_Node3DProps>, import("@motionscript/sdk").CallProps3D<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Transform3DState, {
|
|
114
|
+
expression: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
60
115
|
/**
|
|
61
|
-
* The
|
|
62
|
-
*
|
|
116
|
+
* The span of each variable that is drawn: x and y for a height, which run
|
|
117
|
+
* the width of the axes when left out, u and v for a parametric surface,
|
|
118
|
+
* which run from 0 to 1.
|
|
63
119
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
120
|
+
uDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
121
|
+
vDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
122
|
+
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
123
|
+
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
124
|
+
/** How finely the surface is sampled, each way. */
|
|
125
|
+
segments: import("@motionscript/sdk").Type<number, number, false>;
|
|
126
|
+
/** Colours by height, lowest first, over the axes' z range. Empty paints the surface in its fill. */
|
|
127
|
+
colorScale: import("@motionscript/sdk").Type<Color[], NormalizedColor[], false>;
|
|
128
|
+
/** How many lines are drawn across the surface each way; zero leaves it bare. */
|
|
129
|
+
meshLines: import("@motionscript/sdk").Type<number, number, false>;
|
|
130
|
+
meshColor: import("@motionscript/sdk").Type<Color, Color, false>;
|
|
131
|
+
/** The opacity of the surface's shadow, laid flat on the floor of the axes and coloured by height; zero draws none. */
|
|
132
|
+
floorShadow: import("@motionscript/sdk").Type<number, number, false>;
|
|
133
|
+
graph: import("@motionscript/sdk").Type<import("./space.js").Graph3D | null, import("./space.js").Graph3D | null, true>;
|
|
134
|
+
opacity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
135
|
+
blend: import("@motionscript/sdk").Type<_Blend3D | undefined, _Blend3D | undefined, false>;
|
|
136
|
+
fill: import("@motionscript/sdk").Type<_Fill3D, _Fill3D, false>;
|
|
137
|
+
faces: import("@motionscript/sdk").Type<_Faces3D | undefined, _Faces3D | undefined, false>;
|
|
138
|
+
wireframe: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
139
|
+
vertexColors: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
140
|
+
alphaMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
141
|
+
aoMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
142
|
+
normalMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
143
|
+
envMapIntensity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
144
|
+
geometry: import("@motionscript/sdk").Type<Geometry3D | undefined, Geometry3D | undefined, false>;
|
|
145
|
+
material: import("@motionscript/sdk").Type<Material3D | readonly Material3D[] | undefined, Material3D | readonly Material3D[] | undefined, false>;
|
|
146
|
+
roughness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
147
|
+
metalness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
148
|
+
emission: import("@motionscript/sdk").Type<Color | undefined, NormalizedColor | undefined, false>;
|
|
149
|
+
emissionStrength: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
150
|
+
roughnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
151
|
+
metalnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
152
|
+
shading: import("@motionscript/sdk").Type<_Shading3D | undefined, _Shading3D | undefined, false>;
|
|
153
|
+
unlit: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
154
|
+
}>, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Transform3DState, {
|
|
155
|
+
expression: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
156
|
+
/**
|
|
157
|
+
* The span of each variable that is drawn: x and y for a height, which run
|
|
158
|
+
* the width of the axes when left out, u and v for a parametric surface,
|
|
159
|
+
* which run from 0 to 1.
|
|
160
|
+
*/
|
|
161
|
+
uDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
162
|
+
vDomain: import("@motionscript/sdk").Type<Interval | null, Interval | null, false>;
|
|
163
|
+
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
164
|
+
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
165
|
+
/** How finely the surface is sampled, each way. */
|
|
166
|
+
segments: import("@motionscript/sdk").Type<number, number, false>;
|
|
167
|
+
/** Colours by height, lowest first, over the axes' z range. Empty paints the surface in its fill. */
|
|
168
|
+
colorScale: import("@motionscript/sdk").Type<Color[], NormalizedColor[], false>;
|
|
169
|
+
/** How many lines are drawn across the surface each way; zero leaves it bare. */
|
|
170
|
+
meshLines: import("@motionscript/sdk").Type<number, number, false>;
|
|
171
|
+
meshColor: import("@motionscript/sdk").Type<Color, Color, false>;
|
|
172
|
+
/** The opacity of the surface's shadow, laid flat on the floor of the axes and coloured by height; zero draws none. */
|
|
173
|
+
floorShadow: import("@motionscript/sdk").Type<number, number, false>;
|
|
174
|
+
graph: import("@motionscript/sdk").Type<import("./space.js").Graph3D | null, import("./space.js").Graph3D | null, true>;
|
|
175
|
+
opacity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
176
|
+
blend: import("@motionscript/sdk").Type<_Blend3D | undefined, _Blend3D | undefined, false>;
|
|
177
|
+
fill: import("@motionscript/sdk").Type<_Fill3D, _Fill3D, false>;
|
|
178
|
+
faces: import("@motionscript/sdk").Type<_Faces3D | undefined, _Faces3D | undefined, false>;
|
|
179
|
+
wireframe: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
180
|
+
vertexColors: import("@motionscript/sdk").Type<boolean | undefined, boolean | undefined, false>;
|
|
181
|
+
alphaMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
182
|
+
aoMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
183
|
+
normalMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
184
|
+
envMapIntensity: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
185
|
+
geometry: import("@motionscript/sdk").Type<Geometry3D | undefined, Geometry3D | undefined, false>;
|
|
186
|
+
material: import("@motionscript/sdk").Type<Material3D | readonly Material3D[] | undefined, Material3D | readonly Material3D[] | undefined, false>;
|
|
187
|
+
roughness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
188
|
+
metalness: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
189
|
+
emission: import("@motionscript/sdk").Type<Color | undefined, NormalizedColor | undefined, false>;
|
|
190
|
+
emissionStrength: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
191
|
+
roughnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
192
|
+
metalnessMap: import("@motionscript/sdk").Type<_Texture3D | undefined, _Texture3D | undefined, false>;
|
|
193
|
+
shading: import("@motionscript/sdk").Type<_Shading3D | undefined, _Shading3D | undefined, false>;
|
|
194
|
+
unlit: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
195
|
+
}>, {
|
|
196
|
+
readonly morphTo: readonly ["expression"];
|
|
197
|
+
readonly paramsTo: readonly ["params"];
|
|
198
|
+
readonly domainTo: readonly ["uDomain", "vDomain"];
|
|
199
|
+
}, _Node3D<_Node3DProps>>>>;
|
|
200
|
+
export type SurfacePlot3d = NodeOf<typeof SurfacePlot3d>;
|
|
201
|
+
/**
|
|
202
|
+
* The surface's height above its own origin at graph `(x, y)`, or `NaN`
|
|
203
|
+
* where it has none or is not a height. What a point riding it reads.
|
|
204
|
+
*/
|
|
205
|
+
export declare function surfaceValueAt(surface: Pick<SurfaceValues, "expression" | "params">, x: number, y: number): number;
|
|
206
|
+
export {};
|
|
80
207
|
//# sourceMappingURL=surface-plot3d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface-plot3d.d.ts","sourceRoot":"","sources":["../../src/three/surface-plot3d.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"surface-plot3d.d.ts","sourceRoot":"","sources":["../../src/three/surface-plot3d.ts"],"names":[],"mappings":"AAAA,OAAO,EASH,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,MAAM,EAGX,KAAK,OAAO,IAAI,QAAQ,EAExB,KAAK,OAAO,IAAI,QAAQ,EACxB,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAEhC,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,SAAS,IAAI,UAAU,EAC/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD,OAAO,EAA4D,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAI1G,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACnD,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACjC,OAAO,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,QAAA,MAAM,KAAK;;IAOP;;;;OAIG;;;IAGH,oGAAoG;;IAEpG,mDAAmD;;IAEnD,qGAAqG;;IAErG,iFAAiF;;;IAGjF,uHAAuH;;;;;;;;;;;;;;;;;;;;;;;CAG1H,CAAC;AAEF,4FAA4F;AAC5F,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,KAAK,CAAC,GAAG;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAElH;;;GAGG;AACH,eAAO,MAAM,aAAa;;IA5BtB;;;;OAIG;;;IAGH,oGAAoG;;IAEpG,mDAAmD;;IAEnD,qGAAqG;;IAErG,iFAAiF;;;IAGjF,uHAAuH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAhBvH;;;;OAIG;;;IAGH,oGAAoG;;IAEpG,mDAAmD;;IAEnD,qGAAqG;;IAErG,iFAAiF;;;IAGjF,uHAAuH;;;;;;;;;;;;;;;;;;;;;;;;;IAhBvH;;;;OAIG;;;IAGH,oGAAoG;;IAEpG,mDAAmD;;IAEnD,qGAAqG;;IAErG,iFAAiF;;;IAGjF,uHAAuH;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BzH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,GAAG,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlH"}
|