@drincs/pixi-vn-json 1.14.0 → 1.16.1

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/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Pixi’VN + Json Integration
2
2
 
3
- ![pixi-vn-cover-json](https://github.com/user-attachments/assets/ec9aa39e-6e3c-4198-8a65-e1fce1f1d637)
4
-
5
- <p align="center">
3
+ <p>
6
4
  <a href="https://www.npmjs.com/package/@drincs/pixi-vn-json" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/v/@drincs/pixi-vn-json?label=version" alt="npm version"></a>
7
5
  <a href="https://www.npmjs.com/package/@drincs/pixi-vn-json" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/npm/dm/@drincs/pixi-vn-json" alt="npm downloads per month"></a>
8
6
  <a target="_blank" href="https://www.jsdelivr.com/package/npm/@drincs/pixi-vn-json" rel="noopener noreferrer nofollow"><img alt="jsDelivr hits (npm)" src="https://img.shields.io/jsdelivr/npm/hm/@drincs/pixi-vn-json?logo=jsdeliver"></a>
@@ -1,7 +1,8 @@
1
1
  import { a as PixiVNJsonValueSet, m as PixiVNJsonFunction, P as PixiVNJsonIfElse, c as PixiVNJsonValueGet, f as PixiVNJsonConditionalStatements } from './PixiVNJsonIfElse-CgOnelja.js';
2
- import { CanvasBaseInterface, ImageSprite, ShakeEffectProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps, PushInOutProps, ContainerOptions, ImageContainerOptions, ImageSpriteOptions, TextOptions, ImageSpriteMemory, VideoSpriteMemory, ImageContainerMemory, TextMemory, ContainerMemory, SoundPlayOptionsWithChannel, MediaInterface, LabelRunModeType, StorageObjectType, StepLabelPropsType } from '@drincs/pixi-vn';
2
+ import { CanvasBaseInterface, ImageSprite, ShakeEffectProps, BounceEffectProps, PulseEffectProps, HopEffectProps, WiggleEffectProps, NodEffectProps, SwayEffectProps, PunchEffectProps, GlitchEffectProps, ChromaticAberrationEffectProps, ShockwaveEffectProps, RadialBlurEffectProps, BlurPulseEffectProps, VignettePulseEffectProps, DesaturateEffectProps, GlowPulseEffectProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps, PushInOutProps, WipeInOutProps, IrisInOutProps, SplitInOutProps, BlurInOutProps, PixelateInOutProps, FlashInOutProps, GlitchInOutProps, TwistInOutProps, WarpInOutProps, RippleInOutProps, NoiseDissolveInOutProps, TvInOutProps, PinchInOutProps, ContainerOptions, ImageContainerOptions, ImageSpriteOptions, TextOptions, ImageSpriteMemory, VideoSpriteMemory, ImageContainerMemory, TextMemory, ContainerMemory, SoundPlayOptionsWithChannel, MediaInterface, LabelRunModeType, StorageObjectType, StepLabelPropsType } from '@drincs/pixi-vn';
3
3
  import { KeyframesType, AnimationOptions, ObjectSegment, ObjectSegmentWithTransition, SequenceOptions } from '@drincs/pixi-vn/motion';
4
4
  import { UPDATE_PRIORITY } from 'pixi.js';
5
+ import { AnimatedSpriteSource, AnimatedSpriteOptions, AnimatedSpriteMemory } from '@drincs/pixi-vn/canvas';
5
6
 
6
7
  /**
7
8
  * Additional options controlling the animation (duration, easing, repeat, etc.).
@@ -80,10 +81,280 @@ type PixiVNJsonEffectShake = {
80
81
  */
81
82
  priority?: UPDATE_PRIORITY;
82
83
  };
84
+ /**
85
+ * Bounces a canvas element.
86
+ */
87
+ type PixiVNJsonEffectBounce = {
88
+ type: "bounce";
89
+ /**
90
+ * Alias of the canvas element to apply the effect to.
91
+ */
92
+ alias: string;
93
+ /**
94
+ * Configuration properties for the effect.
95
+ */
96
+ props?: BounceEffectProps;
97
+ /**
98
+ * Pixi.js update priority for the effect ticker callback.
99
+ */
100
+ priority?: UPDATE_PRIORITY;
101
+ };
102
+ /**
103
+ * Pulses (repeated, decaying scale bump) a canvas element.
104
+ */
105
+ type PixiVNJsonEffectPulse = {
106
+ type: "pulse";
107
+ /**
108
+ * Alias of the canvas element to apply the effect to.
109
+ */
110
+ alias: string;
111
+ /**
112
+ * Configuration properties for the effect.
113
+ */
114
+ props?: PulseEffectProps;
115
+ /**
116
+ * Pixi.js update priority for the effect ticker callback.
117
+ */
118
+ priority?: UPDATE_PRIORITY;
119
+ };
120
+ /**
121
+ * Hops a canvas element.
122
+ */
123
+ type PixiVNJsonEffectHop = {
124
+ type: "hop";
125
+ /**
126
+ * Alias of the canvas element to apply the effect to.
127
+ */
128
+ alias: string;
129
+ /**
130
+ * Configuration properties for the effect.
131
+ */
132
+ props?: HopEffectProps;
133
+ /**
134
+ * Pixi.js update priority for the effect ticker callback.
135
+ */
136
+ priority?: UPDATE_PRIORITY;
137
+ };
138
+ /**
139
+ * Wiggles a canvas element.
140
+ */
141
+ type PixiVNJsonEffectWiggle = {
142
+ type: "wiggle";
143
+ /**
144
+ * Alias of the canvas element to apply the effect to.
145
+ */
146
+ alias: string;
147
+ /**
148
+ * Configuration properties for the effect.
149
+ */
150
+ props?: WiggleEffectProps;
151
+ /**
152
+ * Pixi.js update priority for the effect ticker callback.
153
+ */
154
+ priority?: UPDATE_PRIORITY;
155
+ };
156
+ /**
157
+ * Nods a canvas element.
158
+ */
159
+ type PixiVNJsonEffectNod = {
160
+ type: "nod";
161
+ /**
162
+ * Alias of the canvas element to apply the effect to.
163
+ */
164
+ alias: string;
165
+ /**
166
+ * Configuration properties for the effect.
167
+ */
168
+ props?: NodEffectProps;
169
+ /**
170
+ * Pixi.js update priority for the effect ticker callback.
171
+ */
172
+ priority?: UPDATE_PRIORITY;
173
+ };
174
+ /**
175
+ * Sways a canvas element.
176
+ */
177
+ type PixiVNJsonEffectSway = {
178
+ type: "sway";
179
+ /**
180
+ * Alias of the canvas element to apply the effect to.
181
+ */
182
+ alias: string;
183
+ /**
184
+ * Configuration properties for the effect.
185
+ */
186
+ props?: SwayEffectProps;
187
+ /**
188
+ * Pixi.js update priority for the effect ticker callback.
189
+ */
190
+ priority?: UPDATE_PRIORITY;
191
+ };
192
+ /**
193
+ * Punches a canvas element.
194
+ */
195
+ type PixiVNJsonEffectPunch = {
196
+ type: "punch";
197
+ /**
198
+ * Alias of the canvas element to apply the effect to.
199
+ */
200
+ alias: string;
201
+ /**
202
+ * Configuration properties for the effect.
203
+ */
204
+ props?: PunchEffectProps;
205
+ /**
206
+ * Pixi.js update priority for the effect ticker callback.
207
+ */
208
+ priority?: UPDATE_PRIORITY;
209
+ };
210
+ /**
211
+ * Applies a glitch effect to a canvas element.
212
+ */
213
+ type PixiVNJsonEffectGlitch = {
214
+ type: "glitch";
215
+ /**
216
+ * Alias of the canvas element to apply the effect to.
217
+ */
218
+ alias: string;
219
+ /**
220
+ * Configuration properties for the effect.
221
+ */
222
+ props?: GlitchEffectProps;
223
+ /**
224
+ * Pixi.js update priority for the effect ticker callback.
225
+ */
226
+ priority?: UPDATE_PRIORITY;
227
+ };
228
+ /**
229
+ * Applies a chromatic aberration effect to a canvas element.
230
+ */
231
+ type PixiVNJsonEffectChromaticAberration = {
232
+ type: "chromatic-aberration";
233
+ /**
234
+ * Alias of the canvas element to apply the effect to.
235
+ */
236
+ alias: string;
237
+ /**
238
+ * Configuration properties for the effect.
239
+ */
240
+ props?: ChromaticAberrationEffectProps;
241
+ /**
242
+ * Pixi.js update priority for the effect ticker callback.
243
+ */
244
+ priority?: UPDATE_PRIORITY;
245
+ };
246
+ /**
247
+ * Applies a shockwave effect to a canvas element.
248
+ */
249
+ type PixiVNJsonEffectShockwave = {
250
+ type: "shockwave";
251
+ /**
252
+ * Alias of the canvas element to apply the effect to.
253
+ */
254
+ alias: string;
255
+ /**
256
+ * Configuration properties for the effect.
257
+ */
258
+ props?: ShockwaveEffectProps;
259
+ /**
260
+ * Pixi.js update priority for the effect ticker callback.
261
+ */
262
+ priority?: UPDATE_PRIORITY;
263
+ };
264
+ /**
265
+ * Applies a radial blur effect to a canvas element.
266
+ */
267
+ type PixiVNJsonEffectRadialBlur = {
268
+ type: "radial-blur";
269
+ /**
270
+ * Alias of the canvas element to apply the effect to.
271
+ */
272
+ alias: string;
273
+ /**
274
+ * Configuration properties for the effect.
275
+ */
276
+ props?: RadialBlurEffectProps;
277
+ /**
278
+ * Pixi.js update priority for the effect ticker callback.
279
+ */
280
+ priority?: UPDATE_PRIORITY;
281
+ };
282
+ /**
283
+ * Applies a blur pulse effect to a canvas element.
284
+ */
285
+ type PixiVNJsonEffectBlurPulse = {
286
+ type: "blur-pulse";
287
+ /**
288
+ * Alias of the canvas element to apply the effect to.
289
+ */
290
+ alias: string;
291
+ /**
292
+ * Configuration properties for the effect.
293
+ */
294
+ props?: BlurPulseEffectProps;
295
+ /**
296
+ * Pixi.js update priority for the effect ticker callback.
297
+ */
298
+ priority?: UPDATE_PRIORITY;
299
+ };
300
+ /**
301
+ * Applies a vignette pulse effect to a canvas element.
302
+ */
303
+ type PixiVNJsonEffectVignettePulse = {
304
+ type: "vignette-pulse";
305
+ /**
306
+ * Alias of the canvas element to apply the effect to.
307
+ */
308
+ alias: string;
309
+ /**
310
+ * Configuration properties for the effect.
311
+ */
312
+ props?: VignettePulseEffectProps;
313
+ /**
314
+ * Pixi.js update priority for the effect ticker callback.
315
+ */
316
+ priority?: UPDATE_PRIORITY;
317
+ };
318
+ /**
319
+ * Applies a desaturate effect to a canvas element.
320
+ */
321
+ type PixiVNJsonEffectDesaturate = {
322
+ type: "desaturate";
323
+ /**
324
+ * Alias of the canvas element to apply the effect to.
325
+ */
326
+ alias: string;
327
+ /**
328
+ * Configuration properties for the effect.
329
+ */
330
+ props?: DesaturateEffectProps;
331
+ /**
332
+ * Pixi.js update priority for the effect ticker callback.
333
+ */
334
+ priority?: UPDATE_PRIORITY;
335
+ };
336
+ /**
337
+ * Applies a glow pulse effect to a canvas element.
338
+ */
339
+ type PixiVNJsonEffectGlowPulse = {
340
+ type: "glow-pulse";
341
+ /**
342
+ * Alias of the canvas element to apply the effect to.
343
+ */
344
+ alias: string;
345
+ /**
346
+ * Configuration properties for the effect.
347
+ */
348
+ props?: GlowPulseEffectProps;
349
+ /**
350
+ * Pixi.js update priority for the effect ticker callback.
351
+ */
352
+ priority?: UPDATE_PRIORITY;
353
+ };
83
354
  /**
84
355
  * Union of all canvas visual effects.
85
356
  */
86
- type PixiVNJsonCanvasEffect = PixiVNJsonEffectShake;
357
+ type PixiVNJsonCanvasEffect = PixiVNJsonEffectShake | PixiVNJsonEffectBounce | PixiVNJsonEffectPulse | PixiVNJsonEffectHop | PixiVNJsonEffectWiggle | PixiVNJsonEffectNod | PixiVNJsonEffectSway | PixiVNJsonEffectPunch | PixiVNJsonEffectGlitch | PixiVNJsonEffectChromaticAberration | PixiVNJsonEffectShockwave | PixiVNJsonEffectRadialBlur | PixiVNJsonEffectBlurPulse | PixiVNJsonEffectVignettePulse | PixiVNJsonEffectDesaturate | PixiVNJsonEffectGlowPulse;
87
358
 
88
359
  /**
89
360
  * Configuration options for the dissolve transition.
@@ -180,10 +451,257 @@ type PushInOutTransition = {
180
451
  */
181
452
  priority?: UPDATE_PRIORITY;
182
453
  };
454
+ /**
455
+ * Configuration options for the wipe transition.
456
+ */
457
+ interface WipeTransitionProps extends WipeInOutProps {
458
+ }
459
+ /**
460
+ * Wipe — reveals or conceals the element with a moving mask edge.
461
+ */
462
+ type WipeInOutTransition = {
463
+ type: "wipein" | "wipeout";
464
+ /**
465
+ * Configuration options for the wipe transition.
466
+ */
467
+ props?: WipeTransitionProps;
468
+ /**
469
+ * Pixi.js update priority for the transition ticker callback.
470
+ */
471
+ priority?: UPDATE_PRIORITY;
472
+ };
473
+ /**
474
+ * Configuration options for the iris transition.
475
+ */
476
+ interface IrisTransitionProps extends IrisInOutProps {
477
+ }
478
+ /**
479
+ * Iris — reveals or conceals the element with a growing/shrinking circular mask.
480
+ */
481
+ type IrisInOutTransition = {
482
+ type: "irisin" | "irisout";
483
+ /**
484
+ * Configuration options for the iris transition.
485
+ */
486
+ props?: IrisTransitionProps;
487
+ /**
488
+ * Pixi.js update priority for the transition ticker callback.
489
+ */
490
+ priority?: UPDATE_PRIORITY;
491
+ };
492
+ /**
493
+ * Configuration options for the split transition.
494
+ */
495
+ interface SplitTransitionProps extends SplitInOutProps {
496
+ }
497
+ /**
498
+ * Split — reveals or conceals the element by splitting it into halves.
499
+ */
500
+ type SplitInOutTransition = {
501
+ type: "splitin" | "splitout";
502
+ /**
503
+ * Configuration options for the split transition.
504
+ */
505
+ props?: SplitTransitionProps;
506
+ /**
507
+ * Pixi.js update priority for the transition ticker callback.
508
+ */
509
+ priority?: UPDATE_PRIORITY;
510
+ };
511
+ /**
512
+ * Configuration options for the blur transition.
513
+ */
514
+ interface BlurTransitionProps extends BlurInOutProps {
515
+ }
516
+ /**
517
+ * Blur — reveals or conceals the element through a blur.
518
+ */
519
+ type BlurInOutTransition = {
520
+ type: "blurin" | "blurout";
521
+ /**
522
+ * Configuration options for the blur transition.
523
+ */
524
+ props?: BlurTransitionProps;
525
+ /**
526
+ * Pixi.js update priority for the transition ticker callback.
527
+ */
528
+ priority?: UPDATE_PRIORITY;
529
+ };
530
+ /**
531
+ * Configuration options for the pixelate transition.
532
+ */
533
+ interface PixelateTransitionProps extends PixelateInOutProps {
534
+ }
535
+ /**
536
+ * Pixelate — reveals or conceals the element through pixelation.
537
+ */
538
+ type PixelateInOutTransition = {
539
+ type: "pixelatein" | "pixelateout";
540
+ /**
541
+ * Configuration options for the pixelate transition.
542
+ */
543
+ props?: PixelateTransitionProps;
544
+ /**
545
+ * Pixi.js update priority for the transition ticker callback.
546
+ */
547
+ priority?: UPDATE_PRIORITY;
548
+ };
549
+ /**
550
+ * Configuration options for the flash transition.
551
+ */
552
+ interface FlashTransitionProps extends FlashInOutProps {
553
+ }
554
+ /**
555
+ * Flash — reveals or conceals the element through a colored flash.
556
+ */
557
+ type FlashInOutTransition = {
558
+ type: "flashin" | "flashout";
559
+ /**
560
+ * Configuration options for the flash transition.
561
+ */
562
+ props?: FlashTransitionProps;
563
+ /**
564
+ * Pixi.js update priority for the transition ticker callback.
565
+ */
566
+ priority?: UPDATE_PRIORITY;
567
+ };
568
+ /**
569
+ * Configuration options for the glitch transition.
570
+ */
571
+ interface GlitchTransitionProps extends GlitchInOutProps {
572
+ }
573
+ /**
574
+ * Glitch — reveals or conceals the element with a digital glitch.
575
+ */
576
+ type GlitchInOutTransition = {
577
+ type: "glitchin" | "glitchout";
578
+ /**
579
+ * Configuration options for the glitch transition.
580
+ */
581
+ props?: GlitchTransitionProps;
582
+ /**
583
+ * Pixi.js update priority for the transition ticker callback.
584
+ */
585
+ priority?: UPDATE_PRIORITY;
586
+ };
587
+ /**
588
+ * Configuration options for the twist transition.
589
+ */
590
+ interface TwistTransitionProps extends TwistInOutProps {
591
+ }
592
+ /**
593
+ * Twist — reveals or conceals the element with a twisting distortion.
594
+ */
595
+ type TwistInOutTransition = {
596
+ type: "twistin" | "twistout";
597
+ /**
598
+ * Configuration options for the twist transition.
599
+ */
600
+ props?: TwistTransitionProps;
601
+ /**
602
+ * Pixi.js update priority for the transition ticker callback.
603
+ */
604
+ priority?: UPDATE_PRIORITY;
605
+ };
606
+ /**
607
+ * Configuration options for the warp transition.
608
+ */
609
+ interface WarpTransitionProps extends WarpInOutProps {
610
+ }
611
+ /**
612
+ * Warp — reveals or conceals the element with a warping distortion.
613
+ */
614
+ type WarpInOutTransition = {
615
+ type: "warpin" | "warpout";
616
+ /**
617
+ * Configuration options for the warp transition.
618
+ */
619
+ props?: WarpTransitionProps;
620
+ /**
621
+ * Pixi.js update priority for the transition ticker callback.
622
+ */
623
+ priority?: UPDATE_PRIORITY;
624
+ };
625
+ /**
626
+ * Configuration options for the ripple transition.
627
+ */
628
+ interface RippleTransitionProps extends RippleInOutProps {
629
+ }
630
+ /**
631
+ * Ripple — reveals or conceals the element with a ripple distortion.
632
+ */
633
+ type RippleInOutTransition = {
634
+ type: "ripplein" | "rippleout";
635
+ /**
636
+ * Configuration options for the ripple transition.
637
+ */
638
+ props?: RippleTransitionProps;
639
+ /**
640
+ * Pixi.js update priority for the transition ticker callback.
641
+ */
642
+ priority?: UPDATE_PRIORITY;
643
+ };
644
+ /**
645
+ * Configuration options for the noisedissolve transition.
646
+ */
647
+ interface NoiseDissolveTransitionProps extends NoiseDissolveInOutProps {
648
+ }
649
+ /**
650
+ * Noise dissolve — reveals or conceals the element by dissolving it through noise.
651
+ */
652
+ type NoiseDissolveInOutTransition = {
653
+ type: "noisedissolvein" | "noisedissolveout";
654
+ /**
655
+ * Configuration options for the noisedissolve transition.
656
+ */
657
+ props?: NoiseDissolveTransitionProps;
658
+ /**
659
+ * Pixi.js update priority for the transition ticker callback.
660
+ */
661
+ priority?: UPDATE_PRIORITY;
662
+ };
663
+ /**
664
+ * Configuration options for the tv transition.
665
+ */
666
+ interface TvTransitionProps extends TvInOutProps {
667
+ }
668
+ /**
669
+ * TV — reveals or conceals the element with a CRT-television effect.
670
+ */
671
+ type TvInOutTransition = {
672
+ type: "tvin" | "tvout";
673
+ /**
674
+ * Configuration options for the tv transition.
675
+ */
676
+ props?: TvTransitionProps;
677
+ /**
678
+ * Pixi.js update priority for the transition ticker callback.
679
+ */
680
+ priority?: UPDATE_PRIORITY;
681
+ };
682
+ /**
683
+ * Configuration options for the pinch transition.
684
+ */
685
+ interface PinchTransitionProps extends PinchInOutProps {
686
+ }
687
+ /**
688
+ * Pinch — reveals or conceals the element with a pinching distortion.
689
+ */
690
+ type PinchInOutTransition = {
691
+ type: "pinchin" | "pinchout";
692
+ /**
693
+ * Configuration options for the pinch transition.
694
+ */
695
+ props?: PinchTransitionProps;
696
+ /**
697
+ * Pixi.js update priority for the transition ticker callback.
698
+ */
699
+ priority?: UPDATE_PRIORITY;
700
+ };
183
701
  /**
184
702
  * Union of all supported canvas media transitions.
185
703
  */
186
- type PixiVNJsonMediaTransiotions = DissolveTransition | FadeTransition | MoveInOutTransition | ZoomInOutTransition | PushInOutTransition;
704
+ type PixiVNJsonMediaTransiotions = DissolveTransition | FadeTransition | MoveInOutTransition | ZoomInOutTransition | PushInOutTransition | WipeInOutTransition | IrisInOutTransition | SplitInOutTransition | BlurInOutTransition | PixelateInOutTransition | FlashInOutTransition | GlitchInOutTransition | TwistInOutTransition | WarpInOutTransition | RippleInOutTransition | NoiseDissolveInOutTransition | TvInOutTransition | PinchInOutTransition;
187
705
 
188
706
  /**
189
707
  * Display options (position, scale, alpha, etc.) for an image or video sprite.
@@ -270,6 +788,21 @@ type PixiVNJsonCanvasTextShow = {
270
788
  */
271
789
  transition?: PixiVNJsonMediaTransiotions;
272
790
  };
791
+ /**
792
+ * Shows a spritesheet animation on the canvas.
793
+ */
794
+ type PixiVNJsonCanvasAnimatedSpriteShow = {
795
+ type: "asprite";
796
+ operationType: "show";
797
+ /** Unique identifier (alias) used to reference this element on the canvas. */
798
+ alias: string;
799
+ /** Spritesheet alias or serializable description of its animation frames. */
800
+ source?: AnimatedSpriteSource | string;
801
+ /** Display and playback options for the animated sprite. */
802
+ props?: AnimatedSpriteOptions;
803
+ /** Optional transition effect applied when the element appears on screen. */
804
+ transition?: PixiVNJsonMediaTransiotions;
805
+ };
273
806
  /**
274
807
  * Edits the properties of an existing image sprite on the canvas.
275
808
  */
@@ -330,6 +863,17 @@ type PixiVNJsonTextEdit = {
330
863
  */
331
864
  props?: Partial<TextMemory>;
332
865
  };
866
+ /**
867
+ * Edits the properties or frame source of an existing animated sprite.
868
+ */
869
+ type PixiVNJsonAnimatedSpriteEdit = {
870
+ type: "asprite";
871
+ operationType: "edit";
872
+ /** Alias of the animated sprite to edit. */
873
+ alias: string;
874
+ /** Partial memory/state properties to update on the animated sprite. */
875
+ props?: Partial<AnimatedSpriteMemory>;
876
+ };
333
877
  /**
334
878
  * Edits the properties of an unknown/generic canvas element.
335
879
  * Use this when the specific element type is not one of the built-in kinds.
@@ -350,7 +894,7 @@ type PixiVNJsonUnknownEdit<T extends ContainerOptions<any>> = {
350
894
  * Removes a canvas element from the stage, optionally with a transition.
351
895
  */
352
896
  type PixiVNJsonCanvasRemove = {
353
- type: "image" | "video" | "imagecontainer" | "canvaselement" | "text";
897
+ type: "image" | "video" | "imagecontainer" | "canvaselement" | "text" | "asprite";
354
898
  operationType: "remove";
355
899
  /**
356
900
  * Alias of the canvas element to remove.
@@ -379,6 +923,22 @@ type PixiVNJsonVideoPauseResume = {
379
923
  */
380
924
  alias: string;
381
925
  };
926
+ /**
927
+ * Pauses, resumes, or selects a frame in an animated sprite.
928
+ */
929
+ type PixiVNJsonAnimatedSpriteControl = {
930
+ type: "asprite";
931
+ operationType: "pause" | "resume";
932
+ /** Alias of the animated sprite to control. */
933
+ alias: string;
934
+ } | {
935
+ type: "asprite";
936
+ operationType: "goto";
937
+ /** Alias of the animated sprite to control. */
938
+ alias: string;
939
+ /** Zero-based frame index. */
940
+ frame: number;
941
+ };
382
942
  /**
383
943
  * Loads or lazy-loads asset bundles or individual assets into memory.
384
944
  */
@@ -390,16 +950,16 @@ type PixiVNJsonAssetsLoad = {
390
950
  */
391
951
  aliases: string[];
392
952
  };
393
- type PixiVNJsonCanvasShow = PixiVNJsonCanvasImageContainerShow | PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasTextShow;
953
+ type PixiVNJsonCanvasShow = PixiVNJsonCanvasImageContainerShow | PixiVNJsonCanvasImageVideoShow | PixiVNJsonCanvasTextShow | PixiVNJsonCanvasAnimatedSpriteShow;
394
954
  /**
395
955
  * Union of all canvas-element edit operations.
396
956
  */
397
- type PixiVNJsonCanvasEdit = PixiVNJsonImageEdit | PixiVNJsonVideoEdit | PixiVNJsonImageContainerEdit | PixiVNJsonTextEdit | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory | TextMemory>;
957
+ type PixiVNJsonCanvasEdit = PixiVNJsonImageEdit | PixiVNJsonVideoEdit | PixiVNJsonImageContainerEdit | PixiVNJsonTextEdit | PixiVNJsonAnimatedSpriteEdit | PixiVNJsonUnknownEdit<ImageSpriteMemory | VideoSpriteMemory | ContainerMemory | TextMemory>;
398
958
  /**
399
959
  * Union of all canvas operations — show, edit, remove, clear, animate, apply effects, and asset
400
960
  * loading.
401
961
  */
402
- type PixiVNJsonCanvas = PixiVNJsonCanvasShow | PixiVNJsonCanvasEdit | PixiVNJsonCanvasRemove | PixiVNJsonCanvasClear | PixiVNJsonVideoPauseResume | PixiVNJsonAssetsLoad | PixiVNJsonCanvasAnimate | PixiVNJsonCanvasEffect;
962
+ type PixiVNJsonCanvas = PixiVNJsonCanvasShow | PixiVNJsonCanvasEdit | PixiVNJsonCanvasRemove | PixiVNJsonCanvasClear | PixiVNJsonVideoPauseResume | PixiVNJsonAnimatedSpriteControl | PixiVNJsonAssetsLoad | PixiVNJsonCanvasAnimate | PixiVNJsonCanvasEffect;
403
963
 
404
964
  /**
405
965
  * Requests user input during the narrative.
@@ -483,10 +1043,10 @@ type PixiVNJsonSoundPauseResume = {
483
1043
  /**
484
1044
  * Partial set of sound properties that can be applied when editing a currently playing sound.
485
1045
  */
486
- interface PixiVNJsonSoundEditProps extends Partial<Pick<MediaInterface, "speed" | "muted" | "loop" | "paused">>, Partial<Pick<SoundPlayOptionsWithChannel, "volume">> {
1046
+ interface PixiVNJsonSoundEditProps extends Partial<Pick<MediaInterface, "playbackRate" | "mute" | "loop" | "paused">>, Partial<Pick<SoundPlayOptionsWithChannel, "volume">> {
487
1047
  }
488
1048
  /**
489
- * Edits the properties of a currently playing sound (volume, speed, muted, loop, etc.).
1049
+ * Edits the properties of a currently playing sound (volume, playbackRate, mute, loop, etc.).
490
1050
  */
491
1051
  type PixiVNJsonSoundEdit = {
492
1052
  type: "sound";
@@ -659,4 +1219,4 @@ type PixiVNJsonLabelStep = {
659
1219
  conditionalStep?: PixiVNJsonConditionalStatements<PixiVNJsonLabelStep | PixiVNJsonLabelStep[]>;
660
1220
  };
661
1221
 
662
- export type { PixiVNJsonCanvasImageContainerShowProps as A, PixiVNJsonCanvasImageVideoShowProps as B, PixiVNJsonCanvasShow as C, DissolveTransition as D, PixiVNJsonCanvasTextShowProps as E, FadeTransition as F, PixiVNJsonChoice as G, PixiVNJsonChoices as H, PixiVNJsonConditionalOperation as I, PixiVNJsonDialog as J, PixiVNJsonDialogText as K, PixiVNJsonDialogue as L, MoveInOutTransition as M, PixiVNJsonInputRequest as N, PixiVNJsonLabelToOpen as O, PixiVNJsonOperation as P, PixiVNJsonMediaTransiotions as Q, PixiVNJsonSoundEdit as R, PixiVNJsonSoundEditProps as S, PixiVNJsonSoundPauseResume as T, PixiVNJsonSoundPlay as U, PixiVNJsonSoundPlayProps as V, PixiVNJsonSoundRemove as W, PushInOutTransition as X, PushInOutTransitionProps as Y, ZoomInOutTransition as Z, ZoomInOutTransitionProps as _, PixiVNJsonOperationString as a, PixiVNJsonSound as b, PixiVNJsonCanvasImageVideoShow as c, PixiVNJsonImageEdit as d, PixiVNJsonCanvasRemove as e, PixiVNJsonVideoEdit as f, PixiVNJsonVideoPauseResume as g, PixiVNJsonCanvasImageContainerShow as h, PixiVNJsonImageContainerEdit as i, PixiVNJsonCanvasTextShow as j, PixiVNJsonTextEdit as k, PixiVNJsonUnknownEdit as l, PixiVNJsonNarration as m, PixiVNJsonCanvasEffect as n, PixiVNJsonCanvasAnimate as o, PixiVNJsonCanvasClear as p, PixiVNJsonLabelStep as q, DissolveTransitionProps as r, FadeTransitionProps as s, MoveInOutTransitionProps as t, PixiVNJsonAnimateBase as u, PixiVNJsonAnimateBaseOptions as v, PixiVNJsonAnimateSequence as w, PixiVNJsonAnimateSequenceOptions as x, PixiVNJsonCanvas as y, PixiVNJsonCanvasEdit as z };
1222
+ export type { PixiVNJsonConditionalOperation as $, IrisTransitionProps as A, BlurInOutTransition as B, MoveInOutTransitionProps as C, DissolveTransition as D, NoiseDissolveTransitionProps as E, FadeTransition as F, GlitchInOutTransition as G, PinchInOutTransition as H, IrisInOutTransition as I, PinchTransitionProps as J, PixelateInOutTransition as K, PixelateTransitionProps as L, MoveInOutTransition as M, NoiseDissolveInOutTransition as N, PixiVNJsonAnimateBase as O, PixiVNJsonOperation as P, PixiVNJsonAnimateBaseOptions as Q, PixiVNJsonAnimateSequence as R, PixiVNJsonAnimateSequenceOptions as S, PixiVNJsonCanvas as T, PixiVNJsonCanvasEdit as U, PixiVNJsonCanvasImageContainerShowProps as V, PixiVNJsonCanvasImageVideoShowProps as W, PixiVNJsonCanvasShow as X, PixiVNJsonCanvasTextShowProps as Y, PixiVNJsonChoice as Z, PixiVNJsonChoices as _, PixiVNJsonOperationString as a, PixiVNJsonDialog as a0, PixiVNJsonDialogText as a1, PixiVNJsonDialogue as a2, PixiVNJsonEffectBlurPulse as a3, PixiVNJsonEffectBounce as a4, PixiVNJsonEffectChromaticAberration as a5, PixiVNJsonEffectDesaturate as a6, PixiVNJsonEffectGlitch as a7, PixiVNJsonEffectGlowPulse as a8, PixiVNJsonEffectHop as a9, TwistInOutTransition as aA, TwistTransitionProps as aB, WarpInOutTransition as aC, WarpTransitionProps as aD, WipeInOutTransition as aE, WipeTransitionProps as aF, ZoomInOutTransition as aG, ZoomInOutTransitionProps as aH, PixiVNJsonEffectNod as aa, PixiVNJsonEffectPulse as ab, PixiVNJsonEffectPunch as ac, PixiVNJsonEffectRadialBlur as ad, PixiVNJsonEffectShake as ae, PixiVNJsonEffectShockwave as af, PixiVNJsonEffectSway as ag, PixiVNJsonEffectVignettePulse as ah, PixiVNJsonEffectWiggle as ai, PixiVNJsonInputRequest as aj, PixiVNJsonLabelToOpen as ak, PixiVNJsonMediaTransiotions as al, PixiVNJsonSoundEdit as am, PixiVNJsonSoundEditProps as an, PixiVNJsonSoundPauseResume as ao, PixiVNJsonSoundPlay as ap, PixiVNJsonSoundPlayProps as aq, PixiVNJsonSoundRemove as ar, PushInOutTransition as as, PushInOutTransitionProps as at, RippleInOutTransition as au, RippleTransitionProps as av, SplitInOutTransition as aw, SplitTransitionProps as ax, TvInOutTransition as ay, TvTransitionProps as az, PixiVNJsonSound as b, PixiVNJsonCanvasImageVideoShow as c, PixiVNJsonImageEdit as d, PixiVNJsonCanvasRemove as e, PixiVNJsonVideoEdit as f, PixiVNJsonVideoPauseResume as g, PixiVNJsonCanvasAnimatedSpriteShow as h, PixiVNJsonAnimatedSpriteEdit as i, PixiVNJsonAnimatedSpriteControl as j, PixiVNJsonCanvasImageContainerShow as k, PixiVNJsonImageContainerEdit as l, PixiVNJsonCanvasTextShow as m, PixiVNJsonTextEdit as n, PixiVNJsonUnknownEdit as o, PixiVNJsonNarration as p, PixiVNJsonCanvasEffect as q, PixiVNJsonCanvasAnimate as r, PixiVNJsonCanvasClear as s, PixiVNJsonLabelStep as t, BlurTransitionProps as u, DissolveTransitionProps as v, FadeTransitionProps as w, FlashInOutTransition as x, FlashTransitionProps as y, GlitchTransitionProps as z };