@glissade/core 0.23.0-pre.0 → 0.23.0-pre.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/dist/clips.d.ts +1 -1
- package/dist/clips.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/sidecar.d.ts +1 -1
- package/dist/sidecar.js +1 -1
- package/dist/studioHost.d.ts +1 -1
- package/dist/targetRef.js +39 -1
- package/dist/timeline.js +1 -1
- package/dist/track.d.ts +15 -1
- package/package.json +1 -1
package/dist/clips.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as ValueTypeId, O as Vec2, Q as EaseSpec, r as Track, t as Key } from "./track.js";
|
|
2
2
|
import { r as TweenTarget } from "./targetRef.js";
|
|
3
3
|
|
|
4
4
|
//#region src/clip.d.ts
|
package/dist/clips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveTweenTarget, p as track, s as key, t as TARGET_PATH
|
|
1
|
+
import { S as inferValueType, i as resolveTweenTarget, p as track, s as key, t as TARGET_PATH } from "./targetRef.js";
|
|
2
2
|
//#region src/clip.ts
|
|
3
3
|
/**
|
|
4
4
|
* Motion clips (DESIGN.md §2 build-time sugar): `clip()` captures a relative-time
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as EasingFn, A as colorType, B as stringType, C as PathValue, D as ValueTypeInferenceError, E as ValueTypeId, F as numberType, G as SpringConfig, H as vec2Equals, I as paintType, J as springEasing, K as SpringEase, L as pathType, M as getValueType, N as inferValueType, O as Vec2, P as listValueTypes, Q as EaseSpec, R as registerValueType, S as PathContour, T as ValueType, U as vec2Type, V as vec2ArcType, W as RetargetSpring, X as springPresets, Y as springEasingDerivative, Z as DEFAULT_EASE, _ as HandoffKind, a as key, at as namedEasing, b as MeshPoint, c as sampleTrack, d as track, et as UnknownEasingError, f as validateTrack, g as GradientInterpolation, h as FontAxes, i as TrackValidationError, it as easings, j as fontAxesType, k as booleanType, l as springTo, m as ColorStop, n as KeyOpts, nt as cubicBezierDerivative, o as resolveEase, p as velocityAt, q as spring, r as Track, rt as easingDerivatives, s as resolveEaseDerivative, t as Key, tt as cubicBezier, u as stagger, v as MeshInterpolation, w as UnknownValueTypeError, x as Paint, y as MeshPaint, z as reprOf } from "./track.js";
|
|
2
2
|
import { a as isEditableNodeId, i as UnresolvableTargetError, n as TargetCarrier, o as resolveTweenTarget, r as TweenTarget, s as targetNodeId, t as TARGET_PATH } from "./targetRef.js";
|
|
3
3
|
import { _ as setDevWarning, a as FontFaceRef, c as Marker, d as TimelineValidationError, f as audioOffsetSamples, g as emitDevWarning, h as DevWarning, i as CompiledTimeline, l as Timeline, m as isDurationEditable, n as AudioClip, o as GainEnvelope, p as compileTimeline, r as ChildEntry, s as Json, t as AssetRef, u as TimelineInit } from "./timeline.js";
|
|
4
4
|
|
|
@@ -495,4 +495,4 @@ interface CheckpointedSim {
|
|
|
495
495
|
}
|
|
496
496
|
declare function bakeCheckpointed<W, S = W>(cfg: CheckpointedBakeConfig<W, S>): CheckpointedSim;
|
|
497
497
|
//#endregion
|
|
498
|
-
export { type AssetRef, type AudioClip, type BakeConfig, BakeError, type BindOptions, type BindTarget, BindTypeMismatchError, type BindableSignal, type BoundTimeline, type CheckpointedBakeConfig, type CheckpointedSim, type ChildEntry, CircularDependencyError, ColorParseError, type ColorStop, type CompiledTimeline, type CoverageReport, type CurveSampler, DEFAULT_EASE, type DevWarning, type EaseSpec, type EasingFn, type Equals, type FontFaceRef, type FontMode, type FontRegistry, type FontUsage, FontValidationError, type GainEnvelope, type GradientInterpolation, type HandoffKind, type Json, type Key, type KeyOpts, type Marker, type MeshInterpolation, type MeshPaint, type MeshPoint, type MissingGlyphs, type OkLab, type Paint, type PathContour, type PathValue, type Playhead, type Position, PositionError, type ReadonlySignal, type ResolvedFace, type RetargetSpring, type Rgba, type Rng, type Scheduler, type Signal, type SignalOptions, type SpringConfig, type SpringEase, type StaggerOpts, type StaggerSpec, TARGET_PATH, type TargetCarrier, type Timeline, type TimelineBuilder, type TimelineInit, TimelineValidationError, type Track, TrackValidationError, type TweenOpts, type TweenTarget, UnboundTargetError, UnknownEasingError, UnknownValueTypeError, UnresolvableTargetError, type ValidateFontsOptions, type ValueType, type ValueTypeId, ValueTypeInferenceError, type Vec2, type Vec2Component, type Vec2Signal, WriteDuringEvaluationError, audioOffsetSamples, bake, bakeCheckpointed, batch, beginReadPhase, bindTimeline, booleanType, buildFontRegistry, buildTimeline, colorType, compileTimeline, computed, createPlayhead, cubicBezier, cubicBezierDerivative, easingDerivatives, easings, emitDevWarning, endReadPhase, evaluateAt, formatColor, getTimelineCallbacks, getValueType, inReadPhase, inferValueType, isDurationEditable, isEditableNodeId, isExemptFamily, key, lerpColor, listValueTypes, namedEasing, numberType, oklabToRgba, paintType, parseCmap, parseColor, pathType, random, registerValueType, reprOf, resolveEase, resolveEaseDerivative, resolveTweenTarget, rgbaToOklab, sampleTrack, setDevWarning, setScheduler, signal, spring, springEasing, springEasingDerivative, springPresets, springTo, stagger, stringType, synchronousScheduler, targetNodeId, timeline, track, untracked, validateFonts, validateTrack, vec2ArcType, vec2Equals, vec2Signal, vec2Type, velocityAt };
|
|
498
|
+
export { type AssetRef, type AudioClip, type BakeConfig, BakeError, type BindOptions, type BindTarget, BindTypeMismatchError, type BindableSignal, type BoundTimeline, type CheckpointedBakeConfig, type CheckpointedSim, type ChildEntry, CircularDependencyError, ColorParseError, type ColorStop, type CompiledTimeline, type CoverageReport, type CurveSampler, DEFAULT_EASE, type DevWarning, type EaseSpec, type EasingFn, type Equals, type FontAxes, type FontFaceRef, type FontMode, type FontRegistry, type FontUsage, FontValidationError, type GainEnvelope, type GradientInterpolation, type HandoffKind, type Json, type Key, type KeyOpts, type Marker, type MeshInterpolation, type MeshPaint, type MeshPoint, type MissingGlyphs, type OkLab, type Paint, type PathContour, type PathValue, type Playhead, type Position, PositionError, type ReadonlySignal, type ResolvedFace, type RetargetSpring, type Rgba, type Rng, type Scheduler, type Signal, type SignalOptions, type SpringConfig, type SpringEase, type StaggerOpts, type StaggerSpec, TARGET_PATH, type TargetCarrier, type Timeline, type TimelineBuilder, type TimelineInit, TimelineValidationError, type Track, TrackValidationError, type TweenOpts, type TweenTarget, UnboundTargetError, UnknownEasingError, UnknownValueTypeError, UnresolvableTargetError, type ValidateFontsOptions, type ValueType, type ValueTypeId, ValueTypeInferenceError, type Vec2, type Vec2Component, type Vec2Signal, WriteDuringEvaluationError, audioOffsetSamples, bake, bakeCheckpointed, batch, beginReadPhase, bindTimeline, booleanType, buildFontRegistry, buildTimeline, colorType, compileTimeline, computed, createPlayhead, cubicBezier, cubicBezierDerivative, easingDerivatives, easings, emitDevWarning, endReadPhase, evaluateAt, fontAxesType, formatColor, getTimelineCallbacks, getValueType, inReadPhase, inferValueType, isDurationEditable, isEditableNodeId, isExemptFamily, key, lerpColor, listValueTypes, namedEasing, numberType, oklabToRgba, paintType, parseCmap, parseColor, pathType, random, registerValueType, reprOf, resolveEase, resolveEaseDerivative, resolveTweenTarget, rgbaToOklab, sampleTrack, setDevWarning, setScheduler, signal, spring, springEasing, springEasingDerivative, springPresets, springTo, stagger, stringType, synchronousScheduler, targetNodeId, timeline, track, untracked, validateFonts, validateTrack, vec2ArcType, vec2Equals, vec2Signal, vec2Type, velocityAt };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as vec2ArcType, B as setDevWarning, C as listValueTypes, D as registerValueType, E as pathType, F as lerpColor, G as DEFAULT_EASE, H as springEasing, I as oklabToRgba, J as cubicBezierDerivative, K as UnknownEasingError, L as parseColor, M as vec2Type, N as ColorParseError, O as reprOf, P as formatColor, R as rgbaToOklab, S as inferValueType, T as paintType, U as springEasingDerivative, V as spring, W as springPresets, X as easings, Y as easingDerivatives, Z as namedEasing, _ as ValueTypeInferenceError, a as targetNodeId, b as fontAxesType, c as resolveEase, d as springTo, f as stagger, g as UnknownValueTypeError, h as velocityAt, i as resolveTweenTarget, j as vec2Equals, k as stringType, l as resolveEaseDerivative, m as validateTrack, n as UnresolvableTargetError, o as TrackValidationError, p as track, q as cubicBezier, r as isEditableNodeId, s as key, t as TARGET_PATH, u as sampleTrack, v as booleanType, w as numberType, x as getValueType, y as colorType, z as emitDevWarning } from "./targetRef.js";
|
|
2
2
|
import { t as parseCmap } from "./cmap.js";
|
|
3
3
|
import { a as isDurationEditable, i as compileTimeline, n as audioOffsetSamples, o as namespaceCallName, r as callMarkerPrefix, s as timeline$1, t as TimelineValidationError } from "./timeline.js";
|
|
4
4
|
//#region src/ticker.ts
|
|
@@ -1115,4 +1115,4 @@ function bakeCheckpointed(cfg) {
|
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
1117
|
//#endregion
|
|
1118
|
-
export { BakeError, BindTypeMismatchError, CircularDependencyError, ColorParseError, DEFAULT_EASE, FontValidationError, PositionError, TARGET_PATH, TimelineValidationError, TrackValidationError, UnboundTargetError, UnknownEasingError, UnknownValueTypeError, UnresolvableTargetError, ValueTypeInferenceError, WriteDuringEvaluationError, audioOffsetSamples, bake, bakeCheckpointed, batch, beginReadPhase, bindTimeline, booleanType, buildFontRegistry, buildTimeline, colorType, compileTimeline, computed, createPlayhead, cubicBezier, cubicBezierDerivative, easingDerivatives, easings, emitDevWarning, endReadPhase, evaluateAt, formatColor, getTimelineCallbacks, getValueType, inReadPhase, inferValueType, isDurationEditable, isEditableNodeId, isExemptFamily, key, lerpColor, listValueTypes, namedEasing, numberType, oklabToRgba, paintType, parseCmap, parseColor, pathType, random, registerValueType, reprOf, resolveEase, resolveEaseDerivative, resolveTweenTarget, rgbaToOklab, sampleTrack, setDevWarning, setScheduler, signal, spring, springEasing, springEasingDerivative, springPresets, springTo, stagger, stringType, synchronousScheduler, targetNodeId, timeline, track, untracked, validateFonts, validateTrack, vec2ArcType, vec2Equals, vec2Signal, vec2Type, velocityAt };
|
|
1118
|
+
export { BakeError, BindTypeMismatchError, CircularDependencyError, ColorParseError, DEFAULT_EASE, FontValidationError, PositionError, TARGET_PATH, TimelineValidationError, TrackValidationError, UnboundTargetError, UnknownEasingError, UnknownValueTypeError, UnresolvableTargetError, ValueTypeInferenceError, WriteDuringEvaluationError, audioOffsetSamples, bake, bakeCheckpointed, batch, beginReadPhase, bindTimeline, booleanType, buildFontRegistry, buildTimeline, colorType, compileTimeline, computed, createPlayhead, cubicBezier, cubicBezierDerivative, easingDerivatives, easings, emitDevWarning, endReadPhase, evaluateAt, fontAxesType, formatColor, getTimelineCallbacks, getValueType, inReadPhase, inferValueType, isDurationEditable, isEditableNodeId, isExemptFamily, key, lerpColor, listValueTypes, namedEasing, numberType, oklabToRgba, paintType, parseCmap, parseColor, pathType, random, registerValueType, reprOf, resolveEase, resolveEaseDerivative, resolveTweenTarget, rgbaToOklab, sampleTrack, setDevWarning, setScheduler, signal, spring, springEasing, springEasingDerivative, springPresets, springTo, stagger, stringType, synchronousScheduler, targetNodeId, timeline, track, untracked, validateFonts, validateTrack, vec2ArcType, vec2Equals, vec2Signal, vec2Type, velocityAt };
|
package/dist/sidecar.d.ts
CHANGED
package/dist/sidecar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as spring, a as targetNodeId, o as TrackValidationError, r as isEditableNodeId, z as emitDevWarning } from "./targetRef.js";
|
|
2
2
|
//#region src/sidecar.ts
|
|
3
3
|
/**
|
|
4
4
|
* The editor sidecar (DESIGN.md §6.2): code declares scene structure and
|
package/dist/studioHost.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as ValueTypeId, Q as EaseSpec, t as Key } from "./track.js";
|
|
2
2
|
import { a as isEditableNodeId, s as targetNodeId } from "./targetRef.js";
|
|
3
3
|
import { l as Timeline } from "./timeline.js";
|
|
4
4
|
import { SidecarDoc, SidecarOrphan } from "./sidecar.js";
|
package/dist/targetRef.js
CHANGED
|
@@ -621,6 +621,43 @@ const pathType = {
|
|
|
621
621
|
},
|
|
622
622
|
defaultHandoff: "blend-from-frozen"
|
|
623
623
|
};
|
|
624
|
+
const fontAxisKeys = (a) => Object.keys(a).sort();
|
|
625
|
+
const fontAxesKeysMatch = (a, b) => {
|
|
626
|
+
const ka = fontAxisKeys(a);
|
|
627
|
+
const kb = fontAxisKeys(b);
|
|
628
|
+
return ka.length === kb.length && ka.every((k, i) => k === kb[i]);
|
|
629
|
+
};
|
|
630
|
+
let warnedFontAxes = false;
|
|
631
|
+
/**
|
|
632
|
+
* Variable-font axis map (§3.6) — `{ wght: 700, opsz: 14 }`, the ANIMATABLE
|
|
633
|
+
* counterpart to the static `fontVariationSettings` string. Lerps PER AXIS. Both
|
|
634
|
+
* keyframes must declare the SAME axis tags; a mismatched axis set SNAPS (holds
|
|
635
|
+
* `a`, then `b` at t≥1) + a one-time dev-warning — the same topology rule as
|
|
636
|
+
* path/paint, which prevents the silent-NaN class. No add/sub/scale (a structured
|
|
637
|
+
* map carries no linear offset); handoffs blend from the frozen value.
|
|
638
|
+
*/
|
|
639
|
+
const fontAxesType = {
|
|
640
|
+
id: "fontAxes",
|
|
641
|
+
lerp: (a, b, t) => {
|
|
642
|
+
if (!fontAxesKeysMatch(a, b)) {
|
|
643
|
+
if (!warnedFontAxes) {
|
|
644
|
+
warnedFontAxes = true;
|
|
645
|
+
emitDevWarning("fontAxes lerp with mismatched axis tags (the two keyframes declare different axes): snapping instead of interpolating — give both keyframes the SAME axis set (§3.6)");
|
|
646
|
+
}
|
|
647
|
+
return t >= 1 ? b : a;
|
|
648
|
+
}
|
|
649
|
+
const out = {};
|
|
650
|
+
for (const k of Object.keys(a)) out[k] = a[k] + (b[k] - a[k]) * t;
|
|
651
|
+
return out;
|
|
652
|
+
},
|
|
653
|
+
extrapolates: false,
|
|
654
|
+
equals: (a, b) => {
|
|
655
|
+
if (a === b) return true;
|
|
656
|
+
if (!fontAxesKeysMatch(a, b)) return false;
|
|
657
|
+
return Object.keys(a).every((k) => a[k] === b[k]);
|
|
658
|
+
},
|
|
659
|
+
defaultHandoff: "blend-from-frozen"
|
|
660
|
+
};
|
|
624
661
|
const lerpN = (a, b, t) => a + (b - a) * t;
|
|
625
662
|
const lerpPt = (a, b, t) => [lerpN(a[0], b[0], t), lerpN(a[1], b[1], t)];
|
|
626
663
|
/** Same hue at alpha 0 — a transparent stand-in so an appearing/disappearing
|
|
@@ -794,6 +831,7 @@ registerValueType(stringType);
|
|
|
794
831
|
registerValueType(booleanType);
|
|
795
832
|
registerValueType(pathType);
|
|
796
833
|
registerValueType(paintType);
|
|
834
|
+
registerValueType(fontAxesType);
|
|
797
835
|
//#endregion
|
|
798
836
|
//#region src/track.ts
|
|
799
837
|
/**
|
|
@@ -1040,4 +1078,4 @@ function resolveTweenTarget(target) {
|
|
|
1040
1078
|
return path;
|
|
1041
1079
|
}
|
|
1042
1080
|
//#endregion
|
|
1043
|
-
export {
|
|
1081
|
+
export { vec2ArcType as A, setDevWarning as B, listValueTypes as C, registerValueType as D, pathType as E, lerpColor as F, DEFAULT_EASE as G, springEasing as H, oklabToRgba as I, cubicBezierDerivative as J, UnknownEasingError as K, parseColor as L, vec2Type as M, ColorParseError as N, reprOf as O, formatColor as P, rgbaToOklab as R, inferValueType as S, paintType as T, springEasingDerivative as U, spring as V, springPresets as W, easings as X, easingDerivatives as Y, namedEasing as Z, ValueTypeInferenceError as _, targetNodeId as a, fontAxesType as b, resolveEase as c, springTo as d, stagger as f, UnknownValueTypeError as g, velocityAt as h, resolveTweenTarget as i, vec2Equals as j, stringType as k, resolveEaseDerivative as l, validateTrack as m, UnresolvableTargetError as n, TrackValidationError as o, track as p, cubicBezier as q, isEditableNodeId as r, key as s, TARGET_PATH as t, sampleTrack as u, booleanType as v, numberType as w, getValueType as x, colorType as y, emitDevWarning as z };
|
package/dist/timeline.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as spring, m as validateTrack, z as emitDevWarning } from "./targetRef.js";
|
|
2
2
|
//#region src/timeline.ts
|
|
3
3
|
/**
|
|
4
4
|
* The Timeline document (DESIGN.md §2.3) — the serializable animation source
|
package/dist/track.d.ts
CHANGED
|
@@ -208,6 +208,20 @@ declare const booleanType: ValueType<boolean>;
|
|
|
208
208
|
* topology, so no add/sub/scale — handoffs blend from the frozen value.
|
|
209
209
|
*/
|
|
210
210
|
declare const pathType: ValueType<PathValue>;
|
|
211
|
+
/** A variable-font axis map: OpenType axis tag → value (e.g. `{ wght: 700, opsz: 14 }`).
|
|
212
|
+
* The ANIMATABLE counterpart to the static `fontVariationSettings` string (§3.6). */
|
|
213
|
+
type FontAxes = {
|
|
214
|
+
readonly [axis: string]: number;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Variable-font axis map (§3.6) — `{ wght: 700, opsz: 14 }`, the ANIMATABLE
|
|
218
|
+
* counterpart to the static `fontVariationSettings` string. Lerps PER AXIS. Both
|
|
219
|
+
* keyframes must declare the SAME axis tags; a mismatched axis set SNAPS (holds
|
|
220
|
+
* `a`, then `b` at t≥1) + a one-time dev-warning — the same topology rule as
|
|
221
|
+
* path/paint, which prevents the silent-NaN class. No add/sub/scale (a structured
|
|
222
|
+
* map carries no linear offset); handoffs blend from the frozen value.
|
|
223
|
+
*/
|
|
224
|
+
declare const fontAxesType: ValueType<FontAxes>;
|
|
211
225
|
/** A gradient color stop: `offset` 0..1 along the gradient, `color` a CSS string. */
|
|
212
226
|
interface ColorStop {
|
|
213
227
|
offset: number;
|
|
@@ -352,4 +366,4 @@ declare function velocityAt<T>(tr: Track<T>, t: number): T | null;
|
|
|
352
366
|
/** Pure sample of a track at time t (§2.4). */
|
|
353
367
|
declare function sampleTrack<T>(tr: Track<T>, t: number): T;
|
|
354
368
|
//#endregion
|
|
355
|
-
export {
|
|
369
|
+
export { EasingFn as $, colorType as A, stringType as B, PathValue as C, ValueTypeInferenceError as D, ValueTypeId as E, numberType as F, SpringConfig as G, vec2Equals as H, paintType as I, springEasing as J, SpringEase as K, pathType as L, getValueType as M, inferValueType as N, Vec2 as O, listValueTypes as P, EaseSpec as Q, registerValueType as R, PathContour as S, ValueType as T, vec2Type as U, vec2ArcType as V, RetargetSpring as W, springPresets as X, springEasingDerivative as Y, DEFAULT_EASE as Z, HandoffKind as _, key as a, namedEasing as at, MeshPoint as b, sampleTrack as c, track as d, UnknownEasingError as et, validateTrack as f, GradientInterpolation as g, FontAxes as h, TrackValidationError as i, easings as it, fontAxesType as j, booleanType as k, springTo as l, ColorStop as m, KeyOpts as n, cubicBezierDerivative as nt, resolveEase as o, velocityAt as p, spring as q, Track as r, easingDerivatives as rt, resolveEaseDerivative as s, Key as t, cubicBezier as tt, stagger as u, MeshInterpolation as v, UnknownValueTypeError as w, Paint as x, MeshPaint as y, reprOf as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/core",
|
|
3
|
-
"version": "0.23.0-pre.
|
|
3
|
+
"version": "0.23.0-pre.2",
|
|
4
4
|
"description": "glissade core: signals, tracks, timeline document, evaluation, easing, springs, seeded RNG. Zero DOM/Node dependencies.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"engines": {
|