@flatkit/types 0.17.2 → 0.18.0
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 +14 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -164,12 +164,25 @@ type InstanceBind = {
|
|
|
164
164
|
as: string;
|
|
165
165
|
expr: Partial<Record<ExprChannel, string>>;
|
|
166
166
|
};
|
|
167
|
-
|
|
167
|
+
/**
|
|
168
|
+
* How a nested instance's OWN timeline advances (Flash's symbol-instance models):
|
|
169
|
+
* - `synced` — Graphic symbol: the local frame DERIVES from the ancestor's (a slave clock). Scrubbed
|
|
170
|
+
* and TRUNCATED by the parent (looped within [0,duration)). The default — deterministic,
|
|
171
|
+
* lip-sync / editor scrub friendly.
|
|
172
|
+
* - `independent` — MovieClip: an INDEPENDENT clock. The playhead is driven by the runtime's monotone
|
|
173
|
+
* heartbeat (`mono`), looped on the instance's OWN duration, immune to any ancestor's
|
|
174
|
+
* loop length. For state-loops / idles that must keep their phase across the parent's wrap.
|
|
175
|
+
* - `once` — like `independent` but CLAMPED to [0, duration-1]: plays through once, then HOLDS the
|
|
176
|
+
* last frame forever (a one-shot: a splash, an explosion, a "fried" pose that stays fried).
|
|
177
|
+
* - `singleFrame` — frozen on a fixed `frame` (a dead pose).
|
|
178
|
+
*/
|
|
179
|
+
type PlaybackMode = 'synced' | 'singleFrame' | 'independent' | 'once';
|
|
168
180
|
type InstancePlayback = {
|
|
169
181
|
mode: PlaybackMode;
|
|
170
182
|
frame?: number;
|
|
171
183
|
speed?: number;
|
|
172
184
|
loop?: boolean;
|
|
185
|
+
startFrame?: number;
|
|
173
186
|
};
|
|
174
187
|
/**
|
|
175
188
|
* Payload of a `send`: numeric (DSL expression) or textual (`text("itemId")`, the live content of a
|