@glissade/core 0.20.0-pre.4 → 0.20.0-pre.6
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/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -364,10 +364,10 @@ declare class PositionError extends Error {
|
|
|
364
364
|
constructor(pos: string, detail: string);
|
|
365
365
|
}
|
|
366
366
|
declare function getTimelineCallbacks(doc: Timeline): ReadonlyMap<string, () => void>;
|
|
367
|
-
declare function buildTimeline(build: (tl: TimelineBuilder) => void, init?: Omit<TimelineInit, '
|
|
367
|
+
declare function buildTimeline(build: (tl: TimelineBuilder) => void, init?: Omit<TimelineInit, 'children' | 'markers'>): Timeline;
|
|
368
368
|
/** The two authoring surfaces, one entry point (§2.6). */
|
|
369
369
|
declare function timeline(init: TimelineInit): Timeline;
|
|
370
|
-
declare function timeline(build: (tl: TimelineBuilder) => void, init?: Omit<TimelineInit, '
|
|
370
|
+
declare function timeline(build: (tl: TimelineBuilder) => void, init?: Omit<TimelineInit, 'children' | 'markers'>): Timeline;
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region src/binding.d.ts
|
|
373
373
|
type Playhead = BindableSignal<number>;
|
package/dist/index.js
CHANGED
|
@@ -621,7 +621,7 @@ function getTimelineCallbacks(doc) {
|
|
|
621
621
|
}
|
|
622
622
|
function buildTimeline(build, init = {}) {
|
|
623
623
|
const insertions = [];
|
|
624
|
-
const injectedTracks = [];
|
|
624
|
+
const injectedTracks = init.tracks !== void 0 ? [...init.tracks] : [];
|
|
625
625
|
const labels = { ...init.labels };
|
|
626
626
|
const children = [];
|
|
627
627
|
const markers = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/core",
|
|
3
|
-
"version": "0.20.0-pre.
|
|
3
|
+
"version": "0.20.0-pre.6",
|
|
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": {
|