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
|
@@ -738,5 +738,5 @@ declare class SvgNode extends Node {
|
|
|
738
738
|
*/
|
|
739
739
|
declare function fromSvg(source: string, options?: FromSvgOptions): SvgNode;
|
|
740
740
|
|
|
741
|
-
export { bounce as $, IDENTITY as I,
|
|
742
|
-
export type { AnimOptions as A, Bounds as B, CompileOverrides as C, DrawOp as D, Edge as E, FromSvgOptions as F, Gradient as G,
|
|
741
|
+
export { bounce as $, IDENTITY as I, LOOKS as L, Node as N, Suspend as Q, SvgNode as S, along as U, appear as W, apply as X, applyMatrix as Y, arcPath as Z, blueprint as _, CompiledFilm as a, pathToD as a$, buildOps as a0, call as a1, chalk as a2, circlePath as a3, circumscribe as a4, along$1 as a5, compileFilm as a6, compose as a7, concat as a8, css as a9, indicate as aA, invert as aB, isFilm as aC, isSuspend as aD, lagged as aE, linePath as aF, linear as aG, linearGradient as aH, lingering as aI, matScale as aJ, midnight as aK, mixColor as aL, morph as aM, morphMatching as aN, moveTo as aO, mul as aP, neon as aQ, notQuiteThere as aR, overshoot as aS, paintFrame as aT, paper as aU, par as aV, parametricPath as aW, parseColor as aX, parseSvgPath as aY, pathBounds as aZ, pathLength as a_, cubicBezier as aa, curveThrough as ab, delay as ac, draw as ad, during as ae, dynamic as af, easeInCubic as ag, easeInExpo as ah, easeInOutCubic as ai, easeInOutQuint as aj, easeInQuad as ak, easeOutCubic as al, easeOutExpo as am, easeOutQuad as an, easeOutQuint as ao, erase as ap, fade as aq, fadeIn as ar, fadeOut as as, film as at, flash as au, frameInkBounds as av, frameToSvg as aw, fromSvg as ax, group as ay, grow as az, pointAt as b0, polyPath as b1, pulse as b2, radialGradient as b3, ramp as b4, recolor as b5, rectPath as b6, resolveLook as b7, retime as b8, reverseRing as b9, transformPath as bA, trimPath as bB, trimRing as bC, unionBounds as bD, vanish as bE, warp as bF, warpPath as bG, wiggle as bH, write as bI, ring as ba, ringCenter as bb, ringLength as bc, ripple as bd, rotate as be, runningStart as bf, rushFrom as bg, rushInto as bh, scaleBy as bi, segmentCount as bj, seq as bk, shake as bl, shift as bm, signedArea as bn, slowInto as bo, smooth as bp, smoothBy as bq, smoothPath as br, smoother as bs, spring as bt, subdivideEach as bu, tangentAt as bv, thereAndBack as bw, thereAndBackWithPause as bx, to as by, toPaint as bz, Value as f, Stage as g, EMPTY_BOUNDS as p };
|
|
742
|
+
export type { AnimOptions as A, Bounds as B, CompileOverrides as C, DrawOp as D, Edge as E, FromSvgOptions as F, Gradient as G, PlayOptions as H, PropName as J, Ring as K, Mat as M, StageImage as O, Path as P, Rgba as R, Target as T, Vec as V, FilmDefinition as b, ColorInput as c, Side as d, Anim as e, PathOp as h, AnimContext as i, Aspect as j, BlendMode as k, Canvas2D as l, Caption as m, Chapter as n, Clip as o, Ease as q, FadeOptions as r, FilmOptions as s, Frame as t, ImageOp as u, Look as v, LookName as w, LookToken as x, NodeProps as y, Paint as z };
|
|
@@ -738,5 +738,5 @@ declare class SvgNode extends Node {
|
|
|
738
738
|
*/
|
|
739
739
|
declare function fromSvg(source: string, options?: FromSvgOptions): SvgNode;
|
|
740
740
|
|
|
741
|
-
export { bounce as $, IDENTITY as I,
|
|
742
|
-
export type { AnimOptions as A, Bounds as B, CompileOverrides as C, DrawOp as D, Edge as E, FromSvgOptions as F, Gradient as G,
|
|
741
|
+
export { bounce as $, IDENTITY as I, LOOKS as L, Node as N, Suspend as Q, SvgNode as S, along as U, appear as W, apply as X, applyMatrix as Y, arcPath as Z, blueprint as _, CompiledFilm as a, pathToD as a$, buildOps as a0, call as a1, chalk as a2, circlePath as a3, circumscribe as a4, along$1 as a5, compileFilm as a6, compose as a7, concat as a8, css as a9, indicate as aA, invert as aB, isFilm as aC, isSuspend as aD, lagged as aE, linePath as aF, linear as aG, linearGradient as aH, lingering as aI, matScale as aJ, midnight as aK, mixColor as aL, morph as aM, morphMatching as aN, moveTo as aO, mul as aP, neon as aQ, notQuiteThere as aR, overshoot as aS, paintFrame as aT, paper as aU, par as aV, parametricPath as aW, parseColor as aX, parseSvgPath as aY, pathBounds as aZ, pathLength as a_, cubicBezier as aa, curveThrough as ab, delay as ac, draw as ad, during as ae, dynamic as af, easeInCubic as ag, easeInExpo as ah, easeInOutCubic as ai, easeInOutQuint as aj, easeInQuad as ak, easeOutCubic as al, easeOutExpo as am, easeOutQuad as an, easeOutQuint as ao, erase as ap, fade as aq, fadeIn as ar, fadeOut as as, film as at, flash as au, frameInkBounds as av, frameToSvg as aw, fromSvg as ax, group as ay, grow as az, pointAt as b0, polyPath as b1, pulse as b2, radialGradient as b3, ramp as b4, recolor as b5, rectPath as b6, resolveLook as b7, retime as b8, reverseRing as b9, transformPath as bA, trimPath as bB, trimRing as bC, unionBounds as bD, vanish as bE, warp as bF, warpPath as bG, wiggle as bH, write as bI, ring as ba, ringCenter as bb, ringLength as bc, ripple as bd, rotate as be, runningStart as bf, rushFrom as bg, rushInto as bh, scaleBy as bi, segmentCount as bj, seq as bk, shake as bl, shift as bm, signedArea as bn, slowInto as bo, smooth as bp, smoothBy as bq, smoothPath as br, smoother as bs, spring as bt, subdivideEach as bu, tangentAt as bv, thereAndBack as bw, thereAndBackWithPause as bx, to as by, toPaint as bz, Value as f, Stage as g, EMPTY_BOUNDS as p };
|
|
742
|
+
export type { AnimOptions as A, Bounds as B, CompileOverrides as C, DrawOp as D, Edge as E, FromSvgOptions as F, Gradient as G, PlayOptions as H, PropName as J, Ring as K, Mat as M, StageImage as O, Path as P, Rgba as R, Target as T, Vec as V, FilmDefinition as b, ColorInput as c, Side as d, Anim as e, PathOp as h, AnimContext as i, Aspect as j, BlendMode as k, Canvas2D as l, Caption as m, Chapter as n, Clip as o, Ease as q, FadeOptions as r, FilmOptions as s, Frame as t, ImageOp as u, Look as v, LookName as w, LookToken as x, NodeProps as y, Paint as z };
|
|
@@ -494,9 +494,33 @@ interface RgbaVideoOptions {
|
|
|
494
494
|
tune?: string;
|
|
495
495
|
crf?: number;
|
|
496
496
|
threads?: number;
|
|
497
|
+
/** Title in the file's metadata. MP4 only. */
|
|
498
|
+
title?: string;
|
|
499
|
+
/** Chapter markers, in seconds from the start of the video. MP4 only. Players show them on the timeline. */
|
|
500
|
+
chapters?: readonly {
|
|
501
|
+
title: string;
|
|
502
|
+
time: number;
|
|
503
|
+
}[];
|
|
504
|
+
/** A caption track that the viewer can switch on, in seconds from the start of the video. MP4 only. */
|
|
505
|
+
captions?: readonly {
|
|
506
|
+
t0: number;
|
|
507
|
+
t1: number;
|
|
508
|
+
text: string;
|
|
509
|
+
}[];
|
|
497
510
|
signal?: AbortSignal;
|
|
498
511
|
onProgress?: (frame: VideoFrameInfo) => void | Promise<void>;
|
|
499
512
|
}
|
|
513
|
+
/** FFmpeg metadata with a title and chapters. Each chapter ends where the next one starts. */
|
|
514
|
+
declare function chapterMetadata(title: string | undefined, chapters: readonly {
|
|
515
|
+
title: string;
|
|
516
|
+
time: number;
|
|
517
|
+
}[], duration: number): string;
|
|
518
|
+
/** Captions as SubRip text, clipped to the video. */
|
|
519
|
+
declare function captionsToSrt(captions: readonly {
|
|
520
|
+
t0: number;
|
|
521
|
+
t1: number;
|
|
522
|
+
text: string;
|
|
523
|
+
}[], duration: number): string;
|
|
500
524
|
interface RgbaVideoOutput {
|
|
501
525
|
width: number;
|
|
502
526
|
height: number;
|
|
@@ -528,5 +552,5 @@ declare function renderAnimationVideo<S extends object>(animation: DefinedAnimat
|
|
|
528
552
|
*/
|
|
529
553
|
declare function renderRgbaVideo(renderFrame: RgbaVideoFrameRenderer, options: RgbaVideoOptions): Promise<RgbaVideoOutput>;
|
|
530
554
|
|
|
531
|
-
export {
|
|
555
|
+
export { defineAnimation as $, Watermark as K, analyzeAnimationCadence as P, assertDensity as Q, canvas as U, captionsToSrt as X, chapterMetadata as Y, colors as Z, compositeColor as _, densityOf as a0, densityTokens as a1, getColor as a2, getGradient as a3, getReadableColor as a4, getReadableTextColor as a5, getReadableToneColor as a6, getStyles as a7, getThemeColors as a8, getToneColor as a9, getToneFill as aa, getToneGradient as ab, gradients as ac, hasShadow as ad, heatColor as ae, hold as af, keyframe as ag, normalizeWatermark as ah, parallel as ai, parseDensity as aj, renderAnimationVideo as ak, renderRgbaVideo as al, sampleAnimation as am, sampleAnimationFrame as an, sampleAnimationFrames as ao, setDefaultDensity as ap, setDensityResolver as aq, styles as ar, toneGradients as as, tween as at, typeOf as au, videoFrameSchedule as av, withColorAlpha as aw, withDensity as ax, wrapWithBrand as ay, wrapWithWatermark as az, DEFAULT_DENSITY as q, DENSITY_NAMES as r, typography as t };
|
|
532
556
|
export type { AnimationCadenceAnalysis as A, RgbaVideoOptions as B, ColorName as C, Density as D, RgbaVideoOutput as E, SampledAnimationFrame as F, ThemeOptions as G, ThemePreset as H, TypographyVariant as I, VideoFrameInfo as J, WatermarkElementProps as L, WatermarkImageOptions as M, WatermarkOptions as N, WatermarkPosition as O, RenderBackground as R, SampleAnimationOptions as S, ThemeColors as T, VideoCodec as V, WatermarkInput as W, ToneName as a, ThemeMode as b, DefinedAnimation as c, AnimationDefinition as d, AnimationEasing as e, AnimationEasingName as f, AnimationFrameContext as g, AnimationHoldStep as h, AnimationInterpolator as i, AnimationKeyframeStep as j, AnimationParallelStep as k, AnimationParallelTracks as l, AnimationPropertyStep as m, AnimationTimelineStep as n, AnimationTweenStep as o, AnimationVideoOptions as p, DensityName as s, DensityRadiusScale as u, DensitySpaceScale as v, DensityStrokeScale as w, DensityTokens as x, DensityTypeScale as y, RgbaVideoFrameRenderer as z };
|
|
@@ -494,9 +494,33 @@ interface RgbaVideoOptions {
|
|
|
494
494
|
tune?: string;
|
|
495
495
|
crf?: number;
|
|
496
496
|
threads?: number;
|
|
497
|
+
/** Title in the file's metadata. MP4 only. */
|
|
498
|
+
title?: string;
|
|
499
|
+
/** Chapter markers, in seconds from the start of the video. MP4 only. Players show them on the timeline. */
|
|
500
|
+
chapters?: readonly {
|
|
501
|
+
title: string;
|
|
502
|
+
time: number;
|
|
503
|
+
}[];
|
|
504
|
+
/** A caption track that the viewer can switch on, in seconds from the start of the video. MP4 only. */
|
|
505
|
+
captions?: readonly {
|
|
506
|
+
t0: number;
|
|
507
|
+
t1: number;
|
|
508
|
+
text: string;
|
|
509
|
+
}[];
|
|
497
510
|
signal?: AbortSignal;
|
|
498
511
|
onProgress?: (frame: VideoFrameInfo) => void | Promise<void>;
|
|
499
512
|
}
|
|
513
|
+
/** FFmpeg metadata with a title and chapters. Each chapter ends where the next one starts. */
|
|
514
|
+
declare function chapterMetadata(title: string | undefined, chapters: readonly {
|
|
515
|
+
title: string;
|
|
516
|
+
time: number;
|
|
517
|
+
}[], duration: number): string;
|
|
518
|
+
/** Captions as SubRip text, clipped to the video. */
|
|
519
|
+
declare function captionsToSrt(captions: readonly {
|
|
520
|
+
t0: number;
|
|
521
|
+
t1: number;
|
|
522
|
+
text: string;
|
|
523
|
+
}[], duration: number): string;
|
|
500
524
|
interface RgbaVideoOutput {
|
|
501
525
|
width: number;
|
|
502
526
|
height: number;
|
|
@@ -528,5 +552,5 @@ declare function renderAnimationVideo<S extends object>(animation: DefinedAnimat
|
|
|
528
552
|
*/
|
|
529
553
|
declare function renderRgbaVideo(renderFrame: RgbaVideoFrameRenderer, options: RgbaVideoOptions): Promise<RgbaVideoOutput>;
|
|
530
554
|
|
|
531
|
-
export {
|
|
555
|
+
export { defineAnimation as $, Watermark as K, analyzeAnimationCadence as P, assertDensity as Q, canvas as U, captionsToSrt as X, chapterMetadata as Y, colors as Z, compositeColor as _, densityOf as a0, densityTokens as a1, getColor as a2, getGradient as a3, getReadableColor as a4, getReadableTextColor as a5, getReadableToneColor as a6, getStyles as a7, getThemeColors as a8, getToneColor as a9, getToneFill as aa, getToneGradient as ab, gradients as ac, hasShadow as ad, heatColor as ae, hold as af, keyframe as ag, normalizeWatermark as ah, parallel as ai, parseDensity as aj, renderAnimationVideo as ak, renderRgbaVideo as al, sampleAnimation as am, sampleAnimationFrame as an, sampleAnimationFrames as ao, setDefaultDensity as ap, setDensityResolver as aq, styles as ar, toneGradients as as, tween as at, typeOf as au, videoFrameSchedule as av, withColorAlpha as aw, withDensity as ax, wrapWithBrand as ay, wrapWithWatermark as az, DEFAULT_DENSITY as q, DENSITY_NAMES as r, typography as t };
|
|
532
556
|
export type { AnimationCadenceAnalysis as A, RgbaVideoOptions as B, ColorName as C, Density as D, RgbaVideoOutput as E, SampledAnimationFrame as F, ThemeOptions as G, ThemePreset as H, TypographyVariant as I, VideoFrameInfo as J, WatermarkElementProps as L, WatermarkImageOptions as M, WatermarkOptions as N, WatermarkPosition as O, RenderBackground as R, SampleAnimationOptions as S, ThemeColors as T, VideoCodec as V, WatermarkInput as W, ToneName as a, ThemeMode as b, DefinedAnimation as c, AnimationDefinition as d, AnimationEasing as e, AnimationEasingName as f, AnimationFrameContext as g, AnimationHoldStep as h, AnimationInterpolator as i, AnimationKeyframeStep as j, AnimationParallelStep as k, AnimationParallelTracks as l, AnimationPropertyStep as m, AnimationTimelineStep as n, AnimationTweenStep as o, AnimationVideoOptions as p, DensityName as s, DensityRadiusScale as u, DensitySpaceScale as v, DensityStrokeScale as w, DensityTokens as x, DensityTypeScale as y, RgbaVideoFrameRenderer as z };
|
package/examples/README.md
CHANGED
|
@@ -40,6 +40,7 @@ Rendered assets live on the [Vizmatic gallery](https://bvolpato.github.io/vizmat
|
|
|
40
40
|
| [Engineering Dashboard Presentation](engineering-dashboard-presentation.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard-presentation_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard-presentation_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard-presentation_light.png" alt="Engineering Dashboard Presentation preview" width="720" /></picture> |
|
|
41
41
|
| [Engineering Dashboard](engineering-dashboard.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard_light.png" alt="Engineering Dashboard preview" width="720" /></picture> |
|
|
42
42
|
| [Engineering Flow](engineering-flow.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-flow_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-flow_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/engineering-flow_light.png" alt="Engineering Flow preview" width="720" /></picture> |
|
|
43
|
+
| [Entity Relationship](entity-relationship.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/entity-relationship_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/entity-relationship_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/entity-relationship_light.png" alt="Entity Relationship preview" width="720" /></picture> |
|
|
43
44
|
| [Eval Dashboard](eval-dashboard.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/eval-dashboard_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/eval-dashboard_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/eval-dashboard_light.png" alt="Eval Dashboard preview" width="720" /></picture> |
|
|
44
45
|
| [Llm Serving Stack Presentation](llm-serving-stack-presentation.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack-presentation_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack-presentation_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack-presentation_light.png" alt="Llm Serving Stack Presentation preview" width="720" /></picture> |
|
|
45
46
|
| [Llm Serving Stack](llm-serving-stack.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack_light.png" alt="Llm Serving Stack preview" width="720" /></picture> |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EntityRelationshipDiagram, Scene, getThemeColors, type ThemeMode } from 'vizmatic'
|
|
2
|
+
|
|
3
|
+
export const width = 1280
|
|
4
|
+
export const height = 480
|
|
5
|
+
|
|
6
|
+
/** A nullable order reference and a composite line-item key carry different semantics. */
|
|
7
|
+
export function create(theme: ThemeMode = 'dark') {
|
|
8
|
+
const c = getThemeColors(theme)
|
|
9
|
+
return (
|
|
10
|
+
<Scene c={c} title="Order data, with its constraints" subtitle="Crow-foot endpoints state how many records can participate; keys stay attached to their columns." background={c.bg} padding={28}>
|
|
11
|
+
<EntityRelationshipDiagram
|
|
12
|
+
c={c}
|
|
13
|
+
title="Checkout schema"
|
|
14
|
+
description="A customer can place multiple orders. Guest orders have no customer. Each line item belongs to one order."
|
|
15
|
+
width={1224}
|
|
16
|
+
height={300}
|
|
17
|
+
fontSize={14}
|
|
18
|
+
entities={[
|
|
19
|
+
{ id: 'customers', label: 'Customers', tone: 'blue', attributes: [
|
|
20
|
+
{ name: 'id', type: 'uuid', primaryKey: true },
|
|
21
|
+
{ name: 'email', type: 'text', unique: true },
|
|
22
|
+
{ name: 'name', type: 'text' },
|
|
23
|
+
] },
|
|
24
|
+
{ id: 'orders', label: 'Orders', tone: 'purple', attributes: [
|
|
25
|
+
{ name: 'id', type: 'uuid', primaryKey: true },
|
|
26
|
+
{ name: 'customer_id', type: 'uuid', foreignKey: true, nullable: true },
|
|
27
|
+
{ name: 'created_at', type: 'timestamp' },
|
|
28
|
+
] },
|
|
29
|
+
{ id: 'line_items', label: 'Line items', tone: 'green', attributes: [
|
|
30
|
+
{ name: 'order_id', type: 'uuid', primaryKey: true, foreignKey: true },
|
|
31
|
+
{ name: 'line_number', type: 'integer', primaryKey: true },
|
|
32
|
+
{ name: 'quantity', type: 'integer' },
|
|
33
|
+
] },
|
|
34
|
+
]}
|
|
35
|
+
relationships={[
|
|
36
|
+
{ id: 'customer-orders', label: 'places',
|
|
37
|
+
from: { entity: 'customers', attribute: 'id', cardinality: 'zero-or-one' },
|
|
38
|
+
to: { entity: 'orders', attribute: 'customer_id', cardinality: 'zero-or-many' },
|
|
39
|
+
},
|
|
40
|
+
{ id: 'order-items', label: 'contains', identifying: true,
|
|
41
|
+
from: { entity: 'orders', attribute: 'id', cardinality: 'one' },
|
|
42
|
+
to: { entity: 'line_items', attribute: 'order_id', cardinality: 'one-or-many' },
|
|
43
|
+
},
|
|
44
|
+
]}
|
|
45
|
+
/>
|
|
46
|
+
</Scene>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default create('dark')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vizmatic",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Code-driven animation, diagrams, and charts: vector films that play live in a browser and export to MP4, with typed components for dense technical figures.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|