vizmatic 0.7.1 → 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.
@@ -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, Stage as K, 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, EMPTY_BOUNDS as o };
742
- export type { AnimOptions as A, Bounds as B, CompileOverrides as C, DrawOp as D, Edge as E, FromSvgOptions as F, Gradient as G, PropName as H, Ring as J, 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 g, AnimContext as h, Aspect as i, BlendMode as j, Canvas2D as k, Caption as l, Chapter as m, Clip as n, Ease as p, FadeOptions as q, FilmOptions as r, Frame as s, ImageOp as t, Look as u, LookName as v, LookToken as w, NodeProps as x, Paint as y, PlayOptions as z };
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, Stage as K, 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, EMPTY_BOUNDS as o };
742
- export type { AnimOptions as A, Bounds as B, CompileOverrides as C, DrawOp as D, Edge as E, FromSvgOptions as F, Gradient as G, PropName as H, Ring as J, 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 g, AnimContext as h, Aspect as i, BlendMode as j, Canvas2D as k, Caption as l, Chapter as m, Clip as n, Ease as p, FadeOptions as q, FilmOptions as r, Frame as s, ImageOp as t, Look as u, LookName as v, LookToken as w, NodeProps as x, Paint as y, PlayOptions as z };
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 { densityTokens as $, Watermark as K, analyzeAnimationCadence as P, assertDensity as Q, canvas as U, colors as X, compositeColor as Y, defineAnimation as Z, densityOf as _, getColor as a0, getGradient as a1, getReadableColor as a2, getReadableTextColor as a3, getReadableToneColor as a4, getStyles as a5, getThemeColors as a6, getToneColor as a7, getToneFill as a8, getToneGradient as a9, gradients as aa, hasShadow as ab, heatColor as ac, hold as ad, keyframe as ae, normalizeWatermark as af, parallel as ag, parseDensity as ah, renderAnimationVideo as ai, renderRgbaVideo as aj, sampleAnimation as ak, sampleAnimationFrame as al, sampleAnimationFrames as am, setDefaultDensity as an, setDensityResolver as ao, styles as ap, toneGradients as aq, tween as ar, typeOf as as, videoFrameSchedule as at, withColorAlpha as au, withDensity as av, wrapWithBrand as aw, wrapWithWatermark as ax, DEFAULT_DENSITY as q, DENSITY_NAMES as r, typography as t };
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 { densityTokens as $, Watermark as K, analyzeAnimationCadence as P, assertDensity as Q, canvas as U, colors as X, compositeColor as Y, defineAnimation as Z, densityOf as _, getColor as a0, getGradient as a1, getReadableColor as a2, getReadableTextColor as a3, getReadableToneColor as a4, getStyles as a5, getThemeColors as a6, getToneColor as a7, getToneFill as a8, getToneGradient as a9, gradients as aa, hasShadow as ab, heatColor as ac, hold as ad, keyframe as ae, normalizeWatermark as af, parallel as ag, parseDensity as ah, renderAnimationVideo as ai, renderRgbaVideo as aj, sampleAnimation as ak, sampleAnimationFrame as al, sampleAnimationFrames as am, setDefaultDensity as an, setDensityResolver as ao, styles as ap, toneGradients as aq, tween as ar, typeOf as as, videoFrameSchedule as at, withColorAlpha as au, withDensity as av, wrapWithBrand as aw, wrapWithWatermark as ax, DEFAULT_DENSITY as q, DENSITY_NAMES as r, typography as t };
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vizmatic",
3
- "version": "0.7.1",
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",