vizmatic 0.7.0 → 0.7.2
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/PROMPT.md +25 -1
- package/ROADMAP.md +2 -2
- package/dist/{chunk-4XE64I2U.js → chunk-DZHX76RS.js} +8 -1
- package/dist/{chunk-CJOXWJQA.js → chunk-F6QI6QJY.js} +96 -6
- package/dist/chunk-QVYHYC7T.js +88 -0
- package/dist/cli.js +3 -3
- package/dist/index.cjs +1357 -722
- package/dist/index.d.cts +132 -67
- package/dist/index.d.ts +132 -67
- package/dist/index.js +881 -340
- package/dist/scene-browser.js +18 -18
- package/dist/scene-cli.js +1 -1
- package/dist/scene-runtime.cjs +8 -1
- package/dist/scene-runtime.d.cts +1 -1
- package/dist/scene-runtime.d.ts +1 -1
- package/dist/scene-runtime.js +1 -1
- package/dist/stage-browser/browser.d.ts +120 -2
- package/dist/stage-browser/stage.js +5 -5
- package/dist/stage-export.cjs +87 -5
- package/dist/stage-export.d.cts +5 -1
- package/dist/stage-export.d.ts +5 -1
- package/dist/stage-export.js +11 -1
- package/dist/stage.cjs +221 -22
- package/dist/stage.d.cts +122 -4
- package/dist/stage.d.ts +122 -4
- package/dist/stage.js +203 -9
- package/dist/{svg-import-Djj2q7Pc.d.ts → svg-import-5_oTbEJR.d.cts} +2 -2
- package/dist/{svg-import-Djj2q7Pc.d.cts → svg-import-5_oTbEJR.d.ts} +2 -2
- package/dist/{video-CcHW1qhV.d.ts → video-BSwNJZkn.d.cts} +25 -1
- package/dist/{video-CcHW1qhV.d.cts → video-BSwNJZkn.d.ts} +25 -1
- package/examples/README.md +1 -0
- package/examples/entity-relationship.tsx +50 -0
- package/package.json +1 -1
- package/dist/chunk-MAHT32CE.js +0 -79
package/dist/scene-cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{SCENE_LIMITS,renderSceneFrame,renderSceneVideo}from"./chunk-
|
|
2
|
+
import{SCENE_LIMITS,renderSceneFrame,renderSceneVideo}from"./chunk-QVYHYC7T.js";import"./chunk-PSBF4TEK.js";import{readFile,stat}from"fs/promises";import{extname}from"path";async function main(){const args=process.argv.slice(2);if(args.length===1&&["--help","-h"].includes(args[0])){process.stdout.write("Usage: vizmatic-scene --input request.json --output scene.png|scene.mp4\nAll request time values are in seconds. Source is bare TSX, never a Node module.\nOptional JSON outputScale (0.25 to 1) reduces raster resolution; previewFps (MP4 only) reduces output fps while preserving logical scene globals. Metadata reports effective output dimensions and fps.\n");return}if(args.length!==4||args[0]!=="--input"||args[2]!=="--output"){throw new Error("Usage: vizmatic-scene --input request.json --output scene.png|scene.mp4")}const input=args[1],outputPath=args[3];const extension=extname(outputPath).toLowerCase();if(extension!==".png"&&extension!==".mp4")throw new Error("Scene output must be a PNG or MP4 file.");if((await stat(input)).size>SCENE_LIMITS.sourceBytes*6+32768)throw new Error("Scene request file exceeds its size limit.");const request=JSON.parse(await readFile(input,"utf8"));if(!request||typeof request!=="object"||Array.isArray(request))throw new Error("Scene request must be a JSON object.");const allowed=new Set(["source","width","height","duration","time","fps","theme","cues","seed","outputScale",...extension===".mp4"?["previewFps"]:[]]);if(Object.keys(request).some(name=>!allowed.has(name)))throw new Error("Scene request contains an unsupported field.");const options={...request,outputPath};const metadata=extension===".png"?await renderSceneFrame(options):await renderSceneVideo(options);process.stdout.write(`${JSON.stringify(metadata)}
|
|
3
3
|
`)}main().catch(error=>{process.stderr.write(`${error instanceof Error?error.message:"Scene rendering failed."}
|
|
4
4
|
`.slice(0,4096));process.exitCode=1});
|
package/dist/scene-runtime.cjs
CHANGED
|
@@ -442,6 +442,7 @@ var SCENE_COMPONENT_NAMES = Object.freeze([
|
|
|
442
442
|
"DiagramLegend",
|
|
443
443
|
"DonutChart",
|
|
444
444
|
"DotPoint",
|
|
445
|
+
"EntityRelationshipDiagram",
|
|
445
446
|
"EquationCard",
|
|
446
447
|
"FactRows",
|
|
447
448
|
"Flow",
|
|
@@ -652,7 +653,7 @@ function validateSceneComponentProps(name, props) {
|
|
|
652
653
|
const check = (value, key) => {
|
|
653
654
|
if (++values > 8192) throw new Error(`Editable scene ${name} props exceed their value budget.`);
|
|
654
655
|
if (typeof value === "number") {
|
|
655
|
-
if (/^(?:width|height|x|y|x1|y1|x2|y2|cx|cy|r|rx|ry|radius|length|padding|gap|nodeWidth|nodeHeight|cellSize|cellWidth|cellHeight|fontSize|nodeSize|tileWidth|minHeight)$/i.test(key)) finite(value, `${name}.${key}`);
|
|
656
|
+
if (/^(?:width|height|x|y|x1|y1|x2|y2|cx|cy|r|rx|ry|radius|length|padding|gap|nodeWidth|nodeHeight|entityWidth|cellSize|cellWidth|cellHeight|fontSize|nodeSize|tileWidth|minHeight)$/i.test(key)) finite(value, `${name}.${key}`);
|
|
656
657
|
if (/^(?:rows|cols|columns|count|repeat|gridCount|tickCount)$/i.test(key)) integer(value, `${name}.${key}`, key === "gridCount" ? 0 : 1, 2e3);
|
|
657
658
|
}
|
|
658
659
|
if (Array.isArray(value)) value.forEach((item) => check(item, ""));
|
|
@@ -680,6 +681,12 @@ function validateSceneComponentProps(name, props) {
|
|
|
680
681
|
for (const key of ["nodes", "groups", "boundaries", "blocks"]) entries(props[key], `${name}.${key}`, 128);
|
|
681
682
|
for (const key of ["edges", "connections", "routes"]) entries(props[key], `${name}.${key}`, 256);
|
|
682
683
|
}
|
|
684
|
+
if (name === "EntityRelationshipDiagram") {
|
|
685
|
+
entries(props.entities, "EntityRelationshipDiagram.entities", 128).forEach((entity) => {
|
|
686
|
+
entries(record(entity, "Entity relationship entity").attributes, "EntityRelationshipDiagram.attributes", 64);
|
|
687
|
+
});
|
|
688
|
+
entries(props.relationships, "EntityRelationshipDiagram.relationships", 256);
|
|
689
|
+
}
|
|
683
690
|
if (name === "TransformerTopology" && props.expandRepeats) {
|
|
684
691
|
const blocks = entries(props.blocks, "TransformerTopology.blocks", 128);
|
|
685
692
|
const total = blocks.reduce((sum, block) => sum + integer(record(block, "Transformer block").repeat ?? 1, "Transformer block.repeat", 1, 128), 0);
|
package/dist/scene-runtime.d.cts
CHANGED
|
@@ -51,7 +51,7 @@ interface SceneElement {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/** Explicit names keep the editable scene language separate from the Node API. */
|
|
54
|
-
declare const SCENE_COMPONENT_NAMES: readonly ["Arrow", "ArrowMarkerDef", "AttentionMatrix", "AxisPlot", "Badge", "BadgePill", "BarChart", "Board", "Box", "CalloutCard", "Canvas", "CanvasItem", "Card", "ChartFrame", "CodeBlock", "Column", "Comparison", "Connector", "DashedLine", "DataTable", "DataflowDiagram", "DeploymentDiagram", "DetailList", "DiagramLegend", "DonutChart", "DotPoint", "EquationCard", "FactRows", "Flow", "FlowArrow", "FreeBodyDiagram", "GeometryDiagram", "GradientChip", "GraphDiagram", "Grid", "Heatmap", "Icon", "InlineBar", "IntervalPlot", "KeyValueList", "LayeredNetwork", "Legend", "LineChart", "MathText", "Matrix", "MetricCard", "MetricStrip", "MiniBarChart", "MoleculeDiagram", "NumberLine", "Panel", "ParetoBarChart", "ParetoChart", "PieChart", "Pipeline", "PixelGrid", "ProgressList", "ProgressRow", "QuadrantChart", "ReactionEnergyDiagram", "ReactionEquation", "Row", "ScatterPlot", "Scene", "SequenceDiagram", "SmallMultiples", "Sparkline", "Stack", "StackedBar", "StatusDot", "StatusList", "StatusRow", "StepCard", "SvgFrame", "SvgMathText", "SvgPoint", "TagList", "TextLabel", "Tile", "TileGrid", "TiledMatrix", "Timeline", "TitleBar", "ToneStrip", "TransformerTopology", "TreeDiagram", "ValuePill", "VectorArrow", "VectorSegment", "WaveDiagram", "WindowFrame"];
|
|
54
|
+
declare const SCENE_COMPONENT_NAMES: readonly ["Arrow", "ArrowMarkerDef", "AttentionMatrix", "AxisPlot", "Badge", "BadgePill", "BarChart", "Board", "Box", "CalloutCard", "Canvas", "CanvasItem", "Card", "ChartFrame", "CodeBlock", "Column", "Comparison", "Connector", "DashedLine", "DataTable", "DataflowDiagram", "DeploymentDiagram", "DetailList", "DiagramLegend", "DonutChart", "DotPoint", "EntityRelationshipDiagram", "EquationCard", "FactRows", "Flow", "FlowArrow", "FreeBodyDiagram", "GeometryDiagram", "GradientChip", "GraphDiagram", "Grid", "Heatmap", "Icon", "InlineBar", "IntervalPlot", "KeyValueList", "LayeredNetwork", "Legend", "LineChart", "MathText", "Matrix", "MetricCard", "MetricStrip", "MiniBarChart", "MoleculeDiagram", "NumberLine", "Panel", "ParetoBarChart", "ParetoChart", "PieChart", "Pipeline", "PixelGrid", "ProgressList", "ProgressRow", "QuadrantChart", "ReactionEnergyDiagram", "ReactionEquation", "Row", "ScatterPlot", "Scene", "SequenceDiagram", "SmallMultiples", "Sparkline", "Stack", "StackedBar", "StatusDot", "StatusList", "StatusRow", "StepCard", "SvgFrame", "SvgMathText", "SvgPoint", "TagList", "TextLabel", "Tile", "TileGrid", "TiledMatrix", "Timeline", "TitleBar", "ToneStrip", "TransformerTopology", "TreeDiagram", "ValuePill", "VectorArrow", "VectorSegment", "WaveDiagram", "WindowFrame"];
|
|
55
55
|
declare const SCENE_DOM_TAGS: readonly ["div", "span", "p", "strong", "em", "b", "i", "br", "svg", "g", "path", "rect", "circle", "ellipse", "line", "polyline", "polygon", "text", "tspan", "defs", "clipPath", "linearGradient", "radialGradient", "stop", "pattern", "marker", "mask", "title", "desc", "use"];
|
|
56
56
|
|
|
57
57
|
/** Validate after the VM boundary as well as inside it. Nothing executable crosses it. */
|
package/dist/scene-runtime.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ interface SceneElement {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/** Explicit names keep the editable scene language separate from the Node API. */
|
|
54
|
-
declare const SCENE_COMPONENT_NAMES: readonly ["Arrow", "ArrowMarkerDef", "AttentionMatrix", "AxisPlot", "Badge", "BadgePill", "BarChart", "Board", "Box", "CalloutCard", "Canvas", "CanvasItem", "Card", "ChartFrame", "CodeBlock", "Column", "Comparison", "Connector", "DashedLine", "DataTable", "DataflowDiagram", "DeploymentDiagram", "DetailList", "DiagramLegend", "DonutChart", "DotPoint", "EquationCard", "FactRows", "Flow", "FlowArrow", "FreeBodyDiagram", "GeometryDiagram", "GradientChip", "GraphDiagram", "Grid", "Heatmap", "Icon", "InlineBar", "IntervalPlot", "KeyValueList", "LayeredNetwork", "Legend", "LineChart", "MathText", "Matrix", "MetricCard", "MetricStrip", "MiniBarChart", "MoleculeDiagram", "NumberLine", "Panel", "ParetoBarChart", "ParetoChart", "PieChart", "Pipeline", "PixelGrid", "ProgressList", "ProgressRow", "QuadrantChart", "ReactionEnergyDiagram", "ReactionEquation", "Row", "ScatterPlot", "Scene", "SequenceDiagram", "SmallMultiples", "Sparkline", "Stack", "StackedBar", "StatusDot", "StatusList", "StatusRow", "StepCard", "SvgFrame", "SvgMathText", "SvgPoint", "TagList", "TextLabel", "Tile", "TileGrid", "TiledMatrix", "Timeline", "TitleBar", "ToneStrip", "TransformerTopology", "TreeDiagram", "ValuePill", "VectorArrow", "VectorSegment", "WaveDiagram", "WindowFrame"];
|
|
54
|
+
declare const SCENE_COMPONENT_NAMES: readonly ["Arrow", "ArrowMarkerDef", "AttentionMatrix", "AxisPlot", "Badge", "BadgePill", "BarChart", "Board", "Box", "CalloutCard", "Canvas", "CanvasItem", "Card", "ChartFrame", "CodeBlock", "Column", "Comparison", "Connector", "DashedLine", "DataTable", "DataflowDiagram", "DeploymentDiagram", "DetailList", "DiagramLegend", "DonutChart", "DotPoint", "EntityRelationshipDiagram", "EquationCard", "FactRows", "Flow", "FlowArrow", "FreeBodyDiagram", "GeometryDiagram", "GradientChip", "GraphDiagram", "Grid", "Heatmap", "Icon", "InlineBar", "IntervalPlot", "KeyValueList", "LayeredNetwork", "Legend", "LineChart", "MathText", "Matrix", "MetricCard", "MetricStrip", "MiniBarChart", "MoleculeDiagram", "NumberLine", "Panel", "ParetoBarChart", "ParetoChart", "PieChart", "Pipeline", "PixelGrid", "ProgressList", "ProgressRow", "QuadrantChart", "ReactionEnergyDiagram", "ReactionEquation", "Row", "ScatterPlot", "Scene", "SequenceDiagram", "SmallMultiples", "Sparkline", "Stack", "StackedBar", "StatusDot", "StatusList", "StatusRow", "StepCard", "SvgFrame", "SvgMathText", "SvgPoint", "TagList", "TextLabel", "Tile", "TileGrid", "TiledMatrix", "Timeline", "TitleBar", "ToneStrip", "TransformerTopology", "TreeDiagram", "ValuePill", "VectorArrow", "VectorSegment", "WaveDiagram", "WindowFrame"];
|
|
55
55
|
declare const SCENE_DOM_TAGS: readonly ["div", "span", "p", "strong", "em", "b", "i", "br", "svg", "g", "path", "rect", "circle", "ellipse", "line", "polyline", "polygon", "text", "tspan", "defs", "clipPath", "linearGradient", "radialGradient", "stop", "pattern", "marker", "mask", "title", "desc", "use"];
|
|
56
56
|
|
|
57
57
|
/** Validate after the VM boundary as well as inside it. Nothing executable crosses it. */
|
package/dist/scene-runtime.js
CHANGED
|
@@ -815,6 +815,18 @@ declare function rect(width: number, height: number, style?: ShapeStyle & {
|
|
|
815
815
|
}): Node;
|
|
816
816
|
declare function polygon(points: readonly Vec[], style?: ShapeStyle): Node;
|
|
817
817
|
declare function regularPolygon(sides: number, radius: number, style?: ShapeStyle): Node;
|
|
818
|
+
interface ImageOptions {
|
|
819
|
+
/** Width on the stage. With only one of width and height, the other keeps the picture's proportions. */
|
|
820
|
+
width?: number;
|
|
821
|
+
height?: number;
|
|
822
|
+
opacity?: number;
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* A raster picture, such as a logo or a photo, centered on its origin. `src` is a URL or a
|
|
826
|
+
* data URL. A data URL keeps a film in one file and renders the same in every tool.
|
|
827
|
+
* It fades, moves, and scales like any node. Give `width`, `height`, or both.
|
|
828
|
+
*/
|
|
829
|
+
declare function image(src: string, options?: ImageOptions): Node;
|
|
818
830
|
/** A filled point. */
|
|
819
831
|
declare function dot(radius?: number, color?: ColorInput, style?: ShapeStyle): Node;
|
|
820
832
|
interface ArrowStyle extends ShapeStyle {
|
|
@@ -2078,6 +2090,109 @@ declare class SvgNode extends Node {
|
|
|
2078
2090
|
*/
|
|
2079
2091
|
declare function fromSvg(source: string, options?: FromSvgOptions): SvgNode;
|
|
2080
2092
|
|
|
2093
|
+
/** One spoken word, timed in seconds from the start of its beat. */
|
|
2094
|
+
interface NarrationWord {
|
|
2095
|
+
text: string;
|
|
2096
|
+
start: number;
|
|
2097
|
+
end: number;
|
|
2098
|
+
}
|
|
2099
|
+
/** One take of the voice: a sentence or a short paragraph. */
|
|
2100
|
+
interface NarrationBeat {
|
|
2101
|
+
/** The text that the voice speaks. Captions use it. */
|
|
2102
|
+
say: string;
|
|
2103
|
+
/** Measured length of the recording, in seconds. */
|
|
2104
|
+
duration: number;
|
|
2105
|
+
/** Silence after the beat, in seconds, for the viewer to think. */
|
|
2106
|
+
hold?: number;
|
|
2107
|
+
/** Word times, from the speech engine or from a transcription. Cues need them. */
|
|
2108
|
+
words?: readonly NarrationWord[];
|
|
2109
|
+
}
|
|
2110
|
+
interface NarrationScene {
|
|
2111
|
+
id: string;
|
|
2112
|
+
/** Chapter title. A scene without one does not start a chapter. */
|
|
2113
|
+
title?: string;
|
|
2114
|
+
beats: readonly NarrationBeat[];
|
|
2115
|
+
}
|
|
2116
|
+
interface NarrationTiming {
|
|
2117
|
+
scenes: readonly NarrationScene[];
|
|
2118
|
+
/** Seconds before the first word. `NarrationOptions.lead` overrides it. */
|
|
2119
|
+
lead?: number;
|
|
2120
|
+
/** Seconds of silence between scenes. `NarrationOptions.gap` overrides it. */
|
|
2121
|
+
gap?: number;
|
|
2122
|
+
}
|
|
2123
|
+
interface NarrationOptions {
|
|
2124
|
+
/** Seconds before the first word, for a logo or an opening picture. Defaults to 0.6. */
|
|
2125
|
+
lead?: number;
|
|
2126
|
+
/** Seconds of silence between scenes, for the picture to change. Defaults to 0.4. */
|
|
2127
|
+
gap?: number;
|
|
2128
|
+
/** Write a caption for each spoken line. On by default. */
|
|
2129
|
+
captions?: boolean;
|
|
2130
|
+
/** Longest caption line, in characters. Defaults to 74. */
|
|
2131
|
+
captionLength?: number;
|
|
2132
|
+
/** Start a chapter at each scene that has a title. On by default. */
|
|
2133
|
+
chapters?: boolean;
|
|
2134
|
+
}
|
|
2135
|
+
/** Where one beat falls on the film's timeline, in seconds. */
|
|
2136
|
+
interface PlacedBeat {
|
|
2137
|
+
/** The first moment of the recording. */
|
|
2138
|
+
start: number;
|
|
2139
|
+
/** The last moment of the recording. */
|
|
2140
|
+
end: number;
|
|
2141
|
+
/** The end of the silence after it. */
|
|
2142
|
+
until: number;
|
|
2143
|
+
text: string;
|
|
2144
|
+
words: readonly NarrationWord[];
|
|
2145
|
+
}
|
|
2146
|
+
/** Split spoken text into caption lines: by sentence, then by length. */
|
|
2147
|
+
declare function captionLines(text: string, length?: number): string[];
|
|
2148
|
+
/** The clock of one scene. Every time is in film seconds. */
|
|
2149
|
+
declare class SceneClock {
|
|
2150
|
+
private readonly stage;
|
|
2151
|
+
readonly id: string;
|
|
2152
|
+
readonly start: number;
|
|
2153
|
+
readonly end: number;
|
|
2154
|
+
readonly beats: readonly PlacedBeat[];
|
|
2155
|
+
constructor(stage: Stage, id: string, start: number, end: number, beats: readonly PlacedBeat[]);
|
|
2156
|
+
/** When the voice says a phrase. Pass a beat index to search one beat only. Throws if the phrase is not spoken. */
|
|
2157
|
+
cue(phrase: string, beat?: number): {
|
|
2158
|
+
start: number;
|
|
2159
|
+
end: number;
|
|
2160
|
+
};
|
|
2161
|
+
/** Build when the voice starts a phrase. `offset` moves it, in seconds. */
|
|
2162
|
+
on(phrase: string, build: () => void, offset?: number, beat?: number): this;
|
|
2163
|
+
/** Build when the voice finishes a phrase. */
|
|
2164
|
+
after(phrase: string, build: () => void, offset?: number, beat?: number): this;
|
|
2165
|
+
/** Build when a beat starts. */
|
|
2166
|
+
onBeat(index: number, build: () => void, offset?: number): this;
|
|
2167
|
+
/** Build at a time counted from the start of the scene. */
|
|
2168
|
+
at(seconds: number, build: () => void): this;
|
|
2169
|
+
/** Fade nodes out just before the scene ends, so the next picture starts on a clean frame. */
|
|
2170
|
+
clear(nodes: readonly Node[], lead?: number, duration?: number): this;
|
|
2171
|
+
}
|
|
2172
|
+
/** The timeline of a whole narration. */
|
|
2173
|
+
declare class Narration {
|
|
2174
|
+
readonly scenes: readonly SceneClock[];
|
|
2175
|
+
/** The end of the last scene, in seconds. Hold the film at least this long, or the voice is cut. */
|
|
2176
|
+
readonly duration: number;
|
|
2177
|
+
readonly lead: number;
|
|
2178
|
+
readonly gap: number;
|
|
2179
|
+
constructor(stage: Stage, timing: NarrationTiming, options?: NarrationOptions);
|
|
2180
|
+
/** The clock of one scene. */
|
|
2181
|
+
scene(id: string): SceneClock;
|
|
2182
|
+
/** Where every beat's recording starts, in order, for the script that mixes the sound. */
|
|
2183
|
+
placements(): {
|
|
2184
|
+
scene: string;
|
|
2185
|
+
beat: number;
|
|
2186
|
+
start: number;
|
|
2187
|
+
end: number;
|
|
2188
|
+
}[];
|
|
2189
|
+
}
|
|
2190
|
+
/**
|
|
2191
|
+
* Lay a measured narration on the stage. Each scene gets a clock with phrase cues.
|
|
2192
|
+
* Captions and chapters are added to the film, so the MP4 carries them.
|
|
2193
|
+
*/
|
|
2194
|
+
declare function narration(stage: Stage, timing: NarrationTiming, options?: NarrationOptions): Narration;
|
|
2195
|
+
|
|
2081
2196
|
/**
|
|
2082
2197
|
* 3D on the stage: a camera, meshes, curves, and points, all projected to paths
|
|
2083
2198
|
* on every frame and drawn back to front. There is no GPU dependency, so the
|
|
@@ -2298,6 +2413,7 @@ declare class Vector3D extends Line3D {
|
|
|
2298
2413
|
private readonly from3;
|
|
2299
2414
|
private readonly to3;
|
|
2300
2415
|
private readonly tipSize;
|
|
2416
|
+
private readonly tipBias;
|
|
2301
2417
|
constructor(from: Reactive3, to: Reactive3, style?: Line3DStyle & {
|
|
2302
2418
|
tip?: number;
|
|
2303
2419
|
});
|
|
@@ -2314,6 +2430,8 @@ interface Points3DStyle {
|
|
|
2314
2430
|
radius?: number;
|
|
2315
2431
|
opacity?: number;
|
|
2316
2432
|
onTop?: boolean;
|
|
2433
|
+
/** Nudge toward the camera so a point resting on a surface is not cut by it. */
|
|
2434
|
+
bias?: number;
|
|
2317
2435
|
/** Soft ring around each point. */
|
|
2318
2436
|
halo?: number;
|
|
2319
2437
|
}
|
|
@@ -2479,5 +2597,5 @@ declare function defineFilmElement(load: (src: string, options?: FilmLoadOptions
|
|
|
2479
2597
|
/** Load a film module by URL and compile it once per look and background. */
|
|
2480
2598
|
declare function loadFilm(src: string, options?: FilmLoadOptions): Promise<CompiledFilm>;
|
|
2481
2599
|
|
|
2482
|
-
export { ArrayCells, Axes, Axes3D, BarChart, Callout, CodeBlock, CompiledFilm, ComplexPlane, Connector, Counter, Curve3D, EMPTY_BOUNDS, Epicycles, FilmPlayer, Graph, GraphEdge, GraphNode, GridPlane3D, Heatmap, Histogram, IDENTITY, InfoBox, LOOKS, Label3D, LabeledDot, Line3D, LineChart, MatrixNode, NeuralNet, Node, NumberLine, NumberPlane, Object3D, PieChart, Points3D, Scatter, Scene3D, Stage, StreamLines, Surface3D, Suspend, SvgNode, TexNode, TextNode, TokenRow, Trail3D, TreeGraph, Value, Vector3D, VectorField, View3D, along, angleMark, appear, apply, applyComplex, applyMatrix, arc, arcPath, areaUnder, arrayCells, arrow, attentionMatrix, axes, axes3d, barChart, blueprint, bounce, brace, braceLabel, buildOps, call, callout, chalk, checkFilm, circle, circlePath, circumscribe, codeBlock, along$1 as colorAlong, compileFilm, complex, complexPlane, compose, concat, connector, countUp, counter, css, cubicBezier, curve, curve3d, curveThrough, dashedGuides, decimal, defineFilmElement, delay, donut, dot, draw, during, dynamic, easeInCubic, easeInExpo, easeInOutCubic, easeInOutQuint, easeInQuad, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuint, ellipse, epicycles, erase, fade, fadeIn, fadeOut, film, flash, fontFor, fourier, fourierPoint, frameInkBounds, frameToSvg, fromSvg, glyphPath, graph, gridPlane3d, group, grow, heatmap, highlightSweep, histogram, indicate, infoBox, invert, isFilm, isSuspend, label3d, labeledDot, lagged, legend, line, line3d, lineChart, linePath, linear, linearGradient, lingering, loadFilm, matScale, matrix, midnight, mixColor, morph, morphCode, morphMatching, moveTo, mul, neon, neuralNet, notQuiteThere, numberLine, overshoot, paintFrame, paper, par, parametric, parametricPath, parametricSurface, parseColor, parseFont, parseSvgPath, pathBounds, pathLength, pathToD, pie, plane, point3d, pointAt, points3d, polyPath, polygon, polyline, pulse, radialGradient, ramp, recolor, rect, rectPath, regularPolygon, resolveLook, retime, reverseRing, riemann, rightAngle, ring, ringCenter, ringLength, ringThrough, ripple, rotate, runningStart, rushFrom, rushInto, samplePath, scaleBy, scatter, scene3d, secantLine, segmentCount, seq, setAssetBase, shake, shape, shift, signedArea, slowInto, smooth, smoothBy, smoothPath, smoother, sparkline, sphere, spin, spring, streamLines, subdivideEach, surface, surroundingBox, svgPath, swap, tangentAt, tangentLine, tex, text, thereAndBack, thereAndBackWithPause, to, toPaint, tokenize, tokens, traced, trail3d, transformPath, tree, trimPath, trimRing, typewriter, unionBounds, vanish, vector3d, vectorField, warp, warpPath, wiggle, wipe, write };
|
|
2483
|
-
export type { AngleOptions, Anim, AnimContext, AnimOptions, AreaOptions, ArrayCellsOptions, ArrowStyle, Aspect, AttentionMatrixOptions, Axes3DOptions, AxesOptions, BarChartOptions, BarDatum, BlendMode, Bounds, BraceLabelOptions, CalloutOptions, Canvas2D, Caption, Chapter, ChartOptions, Clip, CodeBlockOptions, CodeToken, ColorInput, CompileOverrides, ComplexPlaneOptions, ConnectorEnd, ConnectorOptions, CounterOptions, DecimalOptions, DrawOp, Ease, Edge, EpicyclesOptions, FadeOptions, FieldFn, FilmCheckOptions, FilmCheckReport, FilmDefinition, FilmDiagnostic, FilmDiagnosticCode, FilmLoadOptions, FilmOptions, FontFamily, FontWeight, FourierTerm, Frame, FromSvgOptions, Gradient, GraphEdgeSpec, GraphNodeSpec, GraphOptions, GridPlaneOptions, HeatmapOptions, HighlightOptions, HistogramOptions, ImageOp, InfoBoxOptions, InfoRow, LabeledDotOptions, LegendItem, LegendOptions, Line3DStyle, LineChartOptions, LineSeries, LoadedFont, Look, LookName, LookToken, Mat, MatrixOptions, NeuralNetOptions, NodeProps, NumberLineOptions, Paint, ParametricFn, Path, PathOp, PieDatum, PieOptions, PlaneOptions, PlayOptions, PlayerOptions, Points3DStyle, PropName, Rgba, RiemannOptions, Ring, ScatterOptions, ScatterPoint, Scene3DOptions, SecantOptions, ShapeStyle, Side, SparklineOptions, StageImage, StreamLinesOptions, SurfaceOptions, SurroundOptions, TangentOptions, Target, TexOptions, TextOptions, TokenKind, TokenSpec, TokensOptions, TracedOptions, TreeOptions, TreeSpec, TypewriterOptions, Vec, Vec3, VectorFieldOptions, WipeOptions };
|
|
2600
|
+
export { ArrayCells, Axes, Axes3D, BarChart, Callout, CodeBlock, CompiledFilm, ComplexPlane, Connector, Counter, Curve3D, EMPTY_BOUNDS, Epicycles, FilmPlayer, Graph, GraphEdge, GraphNode, GridPlane3D, Heatmap, Histogram, IDENTITY, InfoBox, LOOKS, Label3D, LabeledDot, Line3D, LineChart, MatrixNode, Narration, NeuralNet, Node, NumberLine, NumberPlane, Object3D, PieChart, Points3D, Scatter, Scene3D, SceneClock, Stage, StreamLines, Surface3D, Suspend, SvgNode, TexNode, TextNode, TokenRow, Trail3D, TreeGraph, Value, Vector3D, VectorField, View3D, along, angleMark, appear, apply, applyComplex, applyMatrix, arc, arcPath, areaUnder, arrayCells, arrow, attentionMatrix, axes, axes3d, barChart, blueprint, bounce, brace, braceLabel, buildOps, call, callout, captionLines, chalk, checkFilm, circle, circlePath, circumscribe, codeBlock, along$1 as colorAlong, compileFilm, complex, complexPlane, compose, concat, connector, countUp, counter, css, cubicBezier, curve, curve3d, curveThrough, dashedGuides, decimal, defineFilmElement, delay, donut, dot, draw, during, dynamic, easeInCubic, easeInExpo, easeInOutCubic, easeInOutQuint, easeInQuad, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuint, ellipse, epicycles, erase, fade, fadeIn, fadeOut, film, flash, fontFor, fourier, fourierPoint, frameInkBounds, frameToSvg, fromSvg, glyphPath, graph, gridPlane3d, group, grow, heatmap, highlightSweep, histogram, image, indicate, infoBox, invert, isFilm, isSuspend, label3d, labeledDot, lagged, legend, line, line3d, lineChart, linePath, linear, linearGradient, lingering, loadFilm, matScale, matrix, midnight, mixColor, morph, morphCode, morphMatching, moveTo, mul, narration, neon, neuralNet, notQuiteThere, numberLine, overshoot, paintFrame, paper, par, parametric, parametricPath, parametricSurface, parseColor, parseFont, parseSvgPath, pathBounds, pathLength, pathToD, pie, plane, point3d, pointAt, points3d, polyPath, polygon, polyline, pulse, radialGradient, ramp, recolor, rect, rectPath, regularPolygon, resolveLook, retime, reverseRing, riemann, rightAngle, ring, ringCenter, ringLength, ringThrough, ripple, rotate, runningStart, rushFrom, rushInto, samplePath, scaleBy, scatter, scene3d, secantLine, segmentCount, seq, setAssetBase, shake, shape, shift, signedArea, slowInto, smooth, smoothBy, smoothPath, smoother, sparkline, sphere, spin, spring, streamLines, subdivideEach, surface, surroundingBox, svgPath, swap, tangentAt, tangentLine, tex, text, thereAndBack, thereAndBackWithPause, to, toPaint, tokenize, tokens, traced, trail3d, transformPath, tree, trimPath, trimRing, typewriter, unionBounds, vanish, vector3d, vectorField, warp, warpPath, wiggle, wipe, write };
|
|
2601
|
+
export type { AngleOptions, Anim, AnimContext, AnimOptions, AreaOptions, ArrayCellsOptions, ArrowStyle, Aspect, AttentionMatrixOptions, Axes3DOptions, AxesOptions, BarChartOptions, BarDatum, BlendMode, Bounds, BraceLabelOptions, CalloutOptions, Canvas2D, Caption, Chapter, ChartOptions, Clip, CodeBlockOptions, CodeToken, ColorInput, CompileOverrides, ComplexPlaneOptions, ConnectorEnd, ConnectorOptions, CounterOptions, DecimalOptions, DrawOp, Ease, Edge, EpicyclesOptions, FadeOptions, FieldFn, FilmCheckOptions, FilmCheckReport, FilmDefinition, FilmDiagnostic, FilmDiagnosticCode, FilmLoadOptions, FilmOptions, FontFamily, FontWeight, FourierTerm, Frame, FromSvgOptions, Gradient, GraphEdgeSpec, GraphNodeSpec, GraphOptions, GridPlaneOptions, HeatmapOptions, HighlightOptions, HistogramOptions, ImageOp, ImageOptions, InfoBoxOptions, InfoRow, LabeledDotOptions, LegendItem, LegendOptions, Line3DStyle, LineChartOptions, LineSeries, LoadedFont, Look, LookName, LookToken, Mat, MatrixOptions, NarrationBeat, NarrationOptions, NarrationScene, NarrationTiming, NarrationWord, NeuralNetOptions, NodeProps, NumberLineOptions, Paint, ParametricFn, Path, PathOp, PieDatum, PieOptions, PlacedBeat, PlaneOptions, PlayOptions, PlayerOptions, Points3DStyle, PropName, Rgba, RiemannOptions, Ring, ScatterOptions, ScatterPoint, Scene3DOptions, SecantOptions, ShapeStyle, Side, SparklineOptions, StageImage, StreamLinesOptions, SurfaceOptions, SurroundOptions, TangentOptions, Target, TexOptions, TextOptions, TokenKind, TokenSpec, TokensOptions, TracedOptions, TreeOptions, TreeSpec, TypewriterOptions, Vec, Vec3, VectorFieldOptions, WipeOptions };
|