@drincs/pixi-vn 1.9.2 → 1.9.4

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.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/dist/{ContainerMemory-BpDgacyr.d.cts → ContainerMemory-DNqSVzLY.d.cts} +12 -116
  3. package/dist/{ContainerMemory-BpDgacyr.d.ts → ContainerMemory-DNqSVzLY.d.ts} +12 -116
  4. package/dist/canvas.cjs +2 -2
  5. package/dist/canvas.d.cts +1279 -551
  6. package/dist/canvas.d.ts +1279 -551
  7. package/dist/canvas.mjs +2 -2
  8. package/dist/characters.cjs +1 -1
  9. package/dist/characters.mjs +1 -1
  10. package/dist/{chunk-6GLWL3NH.mjs → chunk-5MVDNAT4.mjs} +1 -1
  11. package/dist/chunk-6OABTG5R.mjs +1 -0
  12. package/dist/chunk-AW5XWF24.mjs +1 -0
  13. package/dist/chunk-LXIKP2K5.mjs +1 -0
  14. package/dist/chunk-S7HZUIEI.mjs +1 -0
  15. package/dist/core.cjs +1 -1
  16. package/dist/core.d.cts +61 -5
  17. package/dist/core.d.ts +61 -5
  18. package/dist/core.mjs +1 -1
  19. package/dist/filters.cjs +1 -0
  20. package/dist/filters.d.cts +182 -0
  21. package/dist/filters.d.ts +182 -0
  22. package/dist/filters.mjs +1 -0
  23. package/dist/history.cjs +1 -1
  24. package/dist/history.d.cts +2 -2
  25. package/dist/history.d.ts +2 -2
  26. package/dist/history.mjs +1 -1
  27. package/dist/index.cjs +2 -2
  28. package/dist/index.d.cts +43 -3
  29. package/dist/index.d.ts +43 -3
  30. package/dist/index.mjs +2 -2
  31. package/dist/motion.cjs +1 -1
  32. package/dist/motion.d.cts +30 -8
  33. package/dist/motion.d.ts +30 -8
  34. package/dist/motion.mjs +1 -1
  35. package/dist/narration.cjs +1 -1
  36. package/dist/narration.d.cts +2 -1
  37. package/dist/narration.d.ts +2 -1
  38. package/dist/narration.mjs +1 -1
  39. package/dist/pixi/browser.js +170 -169
  40. package/dist/sound.mjs +1 -1
  41. package/dist/storage.cjs +1 -1
  42. package/dist/storage.d.cts +1 -1
  43. package/dist/storage.d.ts +1 -1
  44. package/dist/storage.mjs +1 -1
  45. package/dist/tickers.cjs +1 -0
  46. package/dist/tickers.d.cts +555 -0
  47. package/dist/tickers.d.ts +555 -0
  48. package/dist/tickers.mjs +1 -0
  49. package/dist/vite.cjs +6 -4
  50. package/dist/vite.d.cts +64 -0
  51. package/dist/vite.d.ts +64 -0
  52. package/dist/vite.mjs +6 -4
  53. package/dist/worker.cjs +1 -0
  54. package/dist/worker.d.cts +153 -0
  55. package/dist/worker.d.ts +153 -0
  56. package/dist/worker.mjs +1 -0
  57. package/package.json +28 -1
  58. package/dist/chunk-HQQ5WH6C.mjs +0 -1
  59. package/dist/chunk-I7DOUH5V.mjs +0 -1
@@ -0,0 +1,555 @@
1
+ import * as _drincs_pixi_vn_pixi_js from '@drincs/pixi-vn/pixi.js';
2
+ import { UPDATE_PRIORITY, Ticker as Ticker$1 } from '@drincs/pixi-vn/pixi.js';
3
+
4
+ interface TickerArgs {
5
+ }
6
+
7
+ interface Ticker<TArgs extends TickerArgs> {
8
+ /**
9
+ * Arguments to pass to the ticker
10
+ */
11
+ args: TArgs;
12
+ /**
13
+ * Duration in seconds to run the ticker
14
+ */
15
+ duration?: number;
16
+ /**
17
+ * Priority of the ticker
18
+ */
19
+ priority?: UPDATE_PRIORITY;
20
+ /**
21
+ * Get the alias of the ticker class. This variable is used in the system to get the ticker class by id, {@link RegisteredTickers.getInstance}
22
+ */
23
+ readonly alias: string;
24
+ /**
25
+ * The id of the ticker. Must be unique for each ticker instance.
26
+ */
27
+ readonly id: string;
28
+ /**
29
+ * The aliases of the canvas elements that are connected to this ticker
30
+ */
31
+ canvasElementAliases: string[];
32
+ /**
33
+ * Completes the animation and applies the final state.
34
+ */
35
+ complete: (options?: {
36
+ ignoreTickerSteps?: boolean;
37
+ }) => Promise<void> | void;
38
+ /**
39
+ * Stops the animation at its current state, and prevents it from resuming when the animation is played again.
40
+ */
41
+ stop: () => void;
42
+ /**
43
+ * Starts the ticker. This will start the ticker and begin the animation.
44
+ */
45
+ start: () => void;
46
+ /**
47
+ * Pauses the animation.
48
+ */
49
+ pause: () => void;
50
+ /**
51
+ * Plays the animation.
52
+ */
53
+ play: () => void;
54
+ /**
55
+ * Checks if the ticker is paused.
56
+ * @returns true if the ticker is paused, false otherwise.
57
+ */
58
+ readonly paused: boolean;
59
+ }
60
+
61
+ type TickerValue = Ticker$1;
62
+
63
+ /**
64
+ * A class is used to create a ticker element to add into a Pixi Application.
65
+ * You can use `tickers.add()` (from `@drincs/pixi-vn`) to add this element into the application.
66
+ * This class should be extended and the fn method should be overridden.
67
+ * You must use the {@link tickerDecorator} to register the ticker in the game.
68
+ * In Ren'Py is a transform.
69
+ * @template TArgs The type of the arguments that you want to pass to the ticker.
70
+ * @example
71
+ * ```ts
72
+ * \@tickerDecorator() // this is equivalent to tickerDecorator("RotateTicker")
73
+ * export class RotateTicker extends TickerBase<{ speed?: number }> {
74
+ * override fn(
75
+ * t: TickerValue, // the ticker that is calling this method
76
+ * args: { // the arguments that you passed when you added the ticker
77
+ * speed?: number,
78
+ * },
79
+ * aliases: string[], // the aliases of the canvas elements that are connected to this ticker
80
+ * tickerId: string, // the id of the ticker. You can use this to get the ticker from tickers.currentTickers
81
+ * ): void {
82
+ * let speed = args.speed === undefined ? 0.1 : args.speed
83
+ * aliases.forEach((alias) => {
84
+ * let element = canvas.find(alias)
85
+ * if (element && element instanceof Container) {
86
+ * if (clockwise)
87
+ * element.rotation += speed * t.deltaTime
88
+ * else
89
+ * element.rotation -= speed * t.deltaTime
90
+ * }
91
+ * })
92
+ * }
93
+ * }
94
+ * ```
95
+ */
96
+ declare abstract class TickerBase<TArgs extends TickerArgs> implements Ticker<TArgs> {
97
+ /**
98
+ * @param args The arguments that you want to pass to the ticker.
99
+ * @param options The options of the ticker.
100
+ */
101
+ constructor(args: TArgs, options?: {
102
+ /**
103
+ * The duration of the ticker in seconds. If is undefined, the step will end only when the animation is finished (if the animation doesn't have a goal to reach then it won't finish). @default undefined
104
+ */
105
+ duration?: number;
106
+ /**
107
+ * The priority of the ticker. @default UPDATE_PRIORITY.NORMAL
108
+ */
109
+ priority?: UPDATE_PRIORITY;
110
+ /**
111
+ * The id of the ticker. This param is used by the system when will ber restoring the tickers from a save. If not provided, a random id will be generated. @default undefined
112
+ */
113
+ id?: string;
114
+ /**
115
+ * The aliases of the canvas elements that are connected to this ticker. This is used by the system to know which canvas elements are connected to this ticker, and to pass them to the fn method. @default []
116
+ */
117
+ canvasElementAliases?: string[];
118
+ });
119
+ readonly alias: string;
120
+ readonly id: string;
121
+ args: TArgs;
122
+ duration?: number;
123
+ priority?: UPDATE_PRIORITY;
124
+ protected ticker: _drincs_pixi_vn_pixi_js.Ticker;
125
+ canvasElementAliases: string[];
126
+ private generateTickerId;
127
+ /**
128
+ * The method that will be called every frame.
129
+ * This method should be overridden and you can use `canvas.find()` (from `@drincs/pixi-vn/canvas`)
130
+ * to get the canvas element of the canvas, and edit them.
131
+ * @param _ticker The ticker that is calling this method
132
+ * @param _args The arguments that you passed when you added the ticker
133
+ * @param _alias The alias of the canvas elements that are connected to this ticker
134
+ * @param _tickerId The id of the ticker. You can use this to get the ticker from `tickers.currentTickers`
135
+ */
136
+ abstract fn(_ticker: TickerValue, _args: TArgs, _alias: string | string[], _tickerId: string): void;
137
+ protected fnValue?: () => void;
138
+ complete(_options?: {
139
+ ignoreTickerSteps?: boolean;
140
+ }): void;
141
+ stop(): void;
142
+ start(): void;
143
+ pause(): void;
144
+ play(): void;
145
+ get paused(): boolean;
146
+ }
147
+
148
+ /**
149
+ * Is a decorator that register a ticker in the game.
150
+ * Is a required decorator for use the ticker in the game.
151
+ * Thanks to this decoration the game has the possibility of updating the tickers to the latest modification and saving the game.
152
+ * @param name is th identifier of the label, by default is the name of the class
153
+ * @returns
154
+ */
155
+ declare function tickerDecorator(name?: string): (target: {
156
+ new (args: any, options?: {
157
+ duration?: number;
158
+ priority?: UPDATE_PRIORITY;
159
+ id?: string;
160
+ canvasElementAliases?: string[];
161
+ }): Ticker<any>;
162
+ }) => void;
163
+ declare namespace RegisteredTickers {
164
+ /**
165
+ * Register a ticker in the game.
166
+ * @param target The class of the ticker.
167
+ * @param name Name of the ticker, by default it will use the class name. If the name is already registered, it will show a warning
168
+ */
169
+ function add(target: {
170
+ new (args: any, options?: {
171
+ duration?: number;
172
+ priority?: UPDATE_PRIORITY;
173
+ id?: string;
174
+ canvasElementAliases?: string[];
175
+ }): Ticker<any>;
176
+ }, name?: string): void;
177
+ /**
178
+ * Get a ticker by the id.
179
+ * @param canvasId The id of the ticker.
180
+ * @returns The ticker type.
181
+ */
182
+ function get<T = Ticker<any>>(tickerId: string): T | undefined;
183
+ /**
184
+ * Get a ticker instance by the id.
185
+ * @param tickerId The id of the ticker.
186
+ * @param args The arguments that you want to pass to the ticker.
187
+ * @param duration The duration of the ticker. If is undefined, the ticker will be called every frame.
188
+ * @param priority The priority of the ticker. If is undefined, the priority will be UPDATE_PRIORITY.NORMAL.
189
+ * @returns The instance of the ticker
190
+ */
191
+ function getInstance<TArgs extends TickerArgs>(tickerId: string, args: TArgs, options?: {
192
+ duration?: number;
193
+ priority?: UPDATE_PRIORITY;
194
+ id?: string;
195
+ canvasElementAliases?: string[];
196
+ }): Ticker<TArgs> | undefined;
197
+ /**
198
+ * Get a list of all tickers registered.
199
+ * @returns An array of tickers.
200
+ */
201
+ function values(): {
202
+ new (args: any, options?: {
203
+ duration?: number;
204
+ priority?: UPDATE_PRIORITY;
205
+ id?: string;
206
+ canvasElementAliases?: string[];
207
+ }): Ticker<any>;
208
+ }[];
209
+ /**
210
+ * Check if a ticker is registered.
211
+ * @param id The id of the ticker.
212
+ * @returns True if the ticker is registered, false otherwise.
213
+ */
214
+ function has(id: string): boolean;
215
+ /**
216
+ * Get a list of all ticker ids registered.
217
+ * @returns An array of label ids.
218
+ */
219
+ function keys(): string[];
220
+ }
221
+
222
+ /**
223
+ * TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
224
+ */
225
+ interface TickerInfo<TArgs extends TickerArgs> {
226
+ /**
227
+ * If this ticker was created by steps
228
+ */
229
+ createdByTicketSteps?: {
230
+ canvasElementAlias: string;
231
+ id: string;
232
+ };
233
+ ticker: Ticker<TArgs>;
234
+ }
235
+ interface TickerHistory<TArgs extends TickerArgs> {
236
+ id: string;
237
+ args: TArgs;
238
+ /**
239
+ * The aliases of the canvas elements that are connected to this ticker
240
+ */
241
+ canvasElementAliases: string[];
242
+ priority?: UPDATE_PRIORITY;
243
+ duration?: number;
244
+ paused?: boolean;
245
+ }
246
+
247
+ type TickerProgrationType = TickerProgrationLinear | TickerProgrationExponential;
248
+
249
+ interface TickerProgrationLinear {
250
+ /**
251
+ * The amount of the speed to increase every frame.
252
+ */
253
+ amt: number;
254
+ /**
255
+ * The limit of the effect
256
+ */
257
+ limit?: number;
258
+ type: "linear";
259
+ }
260
+ interface TickerProgrationExponential {
261
+ /**
262
+ * The percentage of the speed to increase every frame. if the percentage is 0.1, the speed will increase by 10% every frame.
263
+ */
264
+ percentage: number;
265
+ /**
266
+ * The limit of the effect
267
+ */
268
+ limit?: number;
269
+ type: "exponential";
270
+ }
271
+
272
+ interface TickersStep<TArgs extends TickerArgs> {
273
+ /**
274
+ * Ticker class name
275
+ */
276
+ ticker: string;
277
+ /**
278
+ * Duration in seconds. If is undefined, the step will end only when the animation is finished.
279
+ */
280
+ duration?: number;
281
+ /**
282
+ * Arguments to pass to the ticker
283
+ */
284
+ args: TArgs;
285
+ /**
286
+ * Priority of the ticker
287
+ */
288
+ priority?: UPDATE_PRIORITY;
289
+ }
290
+ /**
291
+ * The steps of the tickers
292
+ */
293
+ interface TickersSequence {
294
+ /**
295
+ * The step number
296
+ */
297
+ currentStepNumber: number;
298
+ /**
299
+ * The steps of the tickers
300
+ */
301
+ steps: TickersStep<any>[];
302
+ }
303
+
304
+ interface TickersInterface {
305
+ /**
306
+ * Transfer the tickers from an old alias to a new alias.
307
+ * @param oldAlias Old alias
308
+ * @param newAlias New alias
309
+ * @param mode If "move", the old alias will be removed from the ticker. If "duplicate", the old alias will be kept in the ticker.
310
+ */
311
+ transfer(oldAlias: string, newAlias: string, mode?: "move" | "duplicate"): void;
312
+ /**
313
+ * Currently tickers that are running.
314
+ */
315
+ readonly currentTickers: Map<string, TickerInfo<any>>;
316
+ /**
317
+ * The steps of the tickers
318
+ */
319
+ readonly currentTickersSteps: Map<string, Map<string, TickersSequence>>;
320
+ /**
321
+ * Find a ticker by its id.
322
+ * @param tickerId The id of the ticker to be found.
323
+ * @param args The args of the ticker.
324
+ * @returns The ticker if found, undefined otherwise.
325
+ */
326
+ find<TArgs extends TickerArgs>(tickerId: string, args?: TArgs): Ticker<TArgs> | undefined;
327
+ /**
328
+ * Run a ticker. You can run multiple add with the same alias and different tickerClasses.
329
+ * If you run a ticker with the same alias and tickerClass, the old ticker will be removed.
330
+ * If already exists a sequence of tickers with the same alias, it will be removed.
331
+ * @param canvasElementAlias The alias of the canvas element that will use the ticker.
332
+ * @param ticker The ticker class to be run.
333
+ * @returns The id of the ticker that was added.
334
+ * @example
335
+ * ```ts
336
+ * tickers.add("alien", new RotateTicker({ speed: 0.2 }))
337
+ * ```
338
+ */
339
+ add<TArgs extends TickerArgs>(canvasElementAlias: string | string[], ticker: Ticker<TArgs>): string | undefined;
340
+ /**
341
+ * Run a sequence of tickers.
342
+ * @param alias The alias of canvas element that will use the tickers.
343
+ * @param steps The steps of the tickers.
344
+ * @param currentStepNumber The current step number. It is used to continue the sequence of tickers.
345
+ * @returns The id of tickers.
346
+ * @example
347
+ * ```ts
348
+ * tickers.addSequence("alien", [
349
+ * new RotateTicker({ speed: 0.1, clockwise: true }, 2), // runs for 2 seconds
350
+ * new RotateTicker({ speed: 0.2, clockwise: false }, 2),
351
+ * ])
352
+ * ```
353
+ * @deprecated
354
+ */
355
+ addSequence(alias: string, steps: Ticker<any>[], currentStepNumber?: number): string | undefined;
356
+ /**
357
+ * Remove a connection between a canvas element and a ticker.
358
+ * And remove the ticker if there is no canvas element connected to it.
359
+ * @param alias The alias of the canvas element that will use the ticker.
360
+ * @param ticker The ticker class to be removed.
361
+ * @example
362
+ * ```ts
363
+ * tickers.unlinkComponent("alien", RotateTicker)
364
+ * ```
365
+ */
366
+ unlinkComponent(alias: string | string[], ticker?: {
367
+ new (): Ticker<any>;
368
+ } | string): void;
369
+ /**
370
+ * Remove all tickers from the canvas.
371
+ */
372
+ removeAll(): void;
373
+ /**
374
+ * Remove a ticker by the id.
375
+ * @param tickerId The id or an array of ids of the ticker to be removed.
376
+ */
377
+ remove(tickerId: string | string[]): void;
378
+ /**
379
+ * Pause a ticker. If a paused ticker have a time to be removed, it will be removed after the time.
380
+ * @param filters The filters to pause the ticker.
381
+ * @returns The ids of the paused tickers.
382
+ */
383
+ pause(filters: {
384
+ /**
385
+ * The alias of the canvas element that will use the ticker.
386
+ * Will pause all tickers that are connected to this canvas element.
387
+ */
388
+ canvasAlias: string;
389
+ /**
390
+ * Ticker ids excluded from the pause. If not provided, all tickers will be paused.
391
+ */
392
+ tickerIdsExcluded?: string[];
393
+ } | {
394
+ /**
395
+ * The id of the ticker to be paused. If provided, only this ticker will be paused.
396
+ */
397
+ id: string | string[];
398
+ }): string[];
399
+ /**
400
+ * Resume a ticker.
401
+ * @param filters The filters to resume the ticker.
402
+ */
403
+ resume(filters: {
404
+ /**
405
+ * The alias of the canvas element that will use the ticker.
406
+ * Will resume all tickers that are connected to this canvas element.
407
+ */
408
+ canvasAlias: string;
409
+ } | {
410
+ /**
411
+ * The id of the ticker to be resumed. If provided, only this ticker will be resumed.
412
+ */
413
+ id: string | string[];
414
+ }): void;
415
+ /**
416
+ * Check if a ticker is paused.
417
+ * @param alias The alias of the canvas element that will use the ticker.
418
+ * @param tickerId The ticker that will be checked.
419
+ * @returns If the ticker is paused.
420
+ */
421
+ isPaused(alias: string, tickerId?: string): boolean;
422
+ /**
423
+ * Add a ticker that must be completed before the next step.
424
+ * This method is used for example into a transition between scenes.
425
+ * @param step The step that the ticker must be completed before the next step.
426
+ */
427
+ completeOnStepEnd(step: {
428
+ /**
429
+ * The id of the step.
430
+ */
431
+ id: string;
432
+ /**
433
+ * If is a sequence of tickers, the alias of the sequence of tickers.
434
+ */
435
+ alias?: string;
436
+ }): void;
437
+ /**
438
+ * This method force the completion of the tickers that are running.
439
+ * This funcions is called in the next step.
440
+ * @param id The id of the ticker. If the alias provided, the id is the id of the sequence of tickers.
441
+ * @param alias The alias of the sequence of tickers.
442
+ */
443
+ forceCompletion(id: string, alias?: string): Promise<void>;
444
+ onComplete(tickerId: string, options: {
445
+ aliasToRemoveAfter: string[];
446
+ tickerAliasToResume: string[];
447
+ tickerIdToResume: string[];
448
+ ignoreTickerSteps?: boolean;
449
+ stopTicker?: boolean;
450
+ }): void;
451
+ }
452
+
453
+ interface TickerTimeoutHistory {
454
+ aliases: string[];
455
+ ticker: string;
456
+ canBeDeletedBeforeEnd: boolean;
457
+ }
458
+
459
+ type CommonTickerProps = {
460
+ /**
461
+ * An array of strings containing the aliases of the canvas components to remove after the animation completes.
462
+ * @default []
463
+ */
464
+ aliasToRemoveAfter?: string[] | string;
465
+ /**
466
+ * If true, the effect only starts if the canvas element have a texture
467
+ * @default false
468
+ */
469
+ startOnlyIfHaveTexture?: boolean;
470
+ /**
471
+ * If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed.
472
+ * @default []
473
+ */
474
+ tickerAliasToResume?: string[] | string;
475
+ /**
476
+ * A string containing the ticker ID to resume after the animation completes.
477
+ * @default []
478
+ */
479
+ tickerIdToResume?: string[] | string;
480
+ /**
481
+ * A boolean indicating whether the animation must complete before the next `step` of the game. If `true`, the game will force the animation to finish before proceeding.
482
+ * When true, calling `narration.continue()` forces the current content to complete before advancing to the next narrative step.
483
+ * @default false
484
+ */
485
+ completeOnContinue?: boolean;
486
+ };
487
+
488
+ /**
489
+ * Static, module-scoped ticker bookkeeping - moved out of `CanvasManagerStatic` (formerly
490
+ * `CanvasManagerStatic`'s "Edit Tickers Methods" section) so the `tickers` module can own its own
491
+ * state without importing `@drincs/pixi-vn/canvas`.
492
+ */
493
+ declare namespace TickersManagerStatic {
494
+ function currentTickersWithoutCreatedBySteps(): {
495
+ [k: string]: TickerHistory<any>;
496
+ };
497
+ const _currentTickers: Map<string, TickerInfo<any>>;
498
+ const _currentTickersSequence: Map<string, Map<string, TickersSequence>>;
499
+ function currentTickersSequence(): {
500
+ [alias: string]: {
501
+ [tickerId: string]: TickersSequence;
502
+ };
503
+ };
504
+ const _currentTickersTimeouts: Map<string, TickerTimeoutHistory>;
505
+ const _tickersToCompleteOnStepEnd: {
506
+ tikersIds: {
507
+ id: string;
508
+ }[];
509
+ stepAlias: {
510
+ id: string;
511
+ alias: string;
512
+ }[];
513
+ };
514
+ function generateTickerId(...args: any[]): string;
515
+ function addTickerTimeoutInfo(aliases: string | string[], ticker: string, timeout: string, canBeDeletedBeforeEnd: boolean): void;
516
+ function removeTickerTimeoutInfo(timeout: NodeJS.Timeout | string): void;
517
+ function removeTickerTimeout(timeout: NodeJS.Timeout | string): void;
518
+ function removeTickerTimeoutsByAlias(alias: string, checkCanBeDeletedBeforeEnd: boolean): void;
519
+ }
520
+
521
+ /**
522
+ * Runs (or resumes) a single step of a ticker sequence. Exported (beyond the {@link tickers} public
523
+ * surface) because `CanvasManager.restore()` reconstructs sequences from serialized save data at a
524
+ * lower level than {@link addSequence} operates at.
525
+ */
526
+ declare function runTickersSequence<TArgs extends TickerArgs>(alias: string, key: string): void;
527
+ /**
528
+ * Removes one or more tickers by id, with an extra `stopTicker` option beyond what
529
+ * {@link tickers}.remove exposes - kept as its own named export for `CanvasManager`'s deprecated
530
+ * `removeTicker(tickerId, options)` flat method, which historically supported it.
531
+ */
532
+ declare function removeTicker(tickerId: string | string[], options?: {
533
+ stopTicker?: boolean;
534
+ }): void;
535
+ /**
536
+ * Drains the `completeOnStepEnd` queue, returning what was in it. Used by `canvas/index.ts`'s
537
+ * pre-continue handler, which used to reach into `CanvasManagerStatic._tickersToCompleteOnStepEnd`
538
+ * directly - draining through this function keeps that state fully encapsulated in this module.
539
+ */
540
+ declare function drainCompleteOnStepEndQueue(): {
541
+ tikersIds: {
542
+ id: string;
543
+ }[];
544
+ stepAlias: {
545
+ id: string;
546
+ alias: string;
547
+ }[];
548
+ };
549
+ /**
550
+ * Namespace for operations on tickers - the frame-by-frame animation primitive every Pixi'VN
551
+ * animation (`canvas.animate`, transitions, custom `TickerBase` subclasses) is built on.
552
+ */
553
+ declare const tickers: TickersInterface;
554
+
555
+ export { type CommonTickerProps, RegisteredTickers, type Ticker, type TickerArgs, TickerBase, type TickerHistory, type TickerInfo, type TickerProgrationExponential, type TickerProgrationLinear, type TickerProgrationType, type TickerTimeoutHistory, type TickerValue, type TickersInterface, TickersManagerStatic, type TickersSequence, drainCompleteOnStepEndQueue, removeTicker, runTickersSequence, tickerDecorator, tickers };