@drincs/pixi-vn-json 1.13.17 → 1.14.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/{PixiVNJsonIfElse-B_OG8Qs1.d.cts → PixiVNJsonIfElse-CgOnelja.d.cts} +4 -4
- package/dist/{PixiVNJsonIfElse-B_OG8Qs1.d.ts → PixiVNJsonIfElse-CgOnelja.d.ts} +4 -4
- package/dist/{PixiVNJsonLabelStep-CELQY8TP.d.ts → PixiVNJsonLabelStep-Bce6KGwp.d.ts} +75 -15
- package/dist/{PixiVNJsonLabelStep-D-FkTLeR.d.cts → PixiVNJsonLabelStep-GNKlmb4l.d.cts} +75 -15
- package/dist/actions.cjs +2 -2
- package/dist/actions.d.cts +2 -2
- package/dist/actions.d.ts +2 -2
- package/dist/actions.mjs +2 -2
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/interpreter.cjs +1 -1
- package/dist/interpreter.d.cts +2 -2
- package/dist/interpreter.d.ts +2 -2
- package/dist/interpreter.mjs +1 -1
- package/dist/schema.d.cts +4 -4
- package/dist/schema.d.ts +4 -4
- package/dist/translator.d.cts +2 -2
- package/dist/translator.d.ts +2 -2
- package/package.json +2 -2
- package/scripts/schema-generator.mjs +80 -4
|
@@ -123,7 +123,7 @@ type PixiVNJsonStorageGet = {
|
|
|
123
123
|
key: string;
|
|
124
124
|
/**
|
|
125
125
|
* Type of the storage, if it is a flagStorage or a storage.
|
|
126
|
-
* If it is a flagStorage, the value will be get with the function {@link
|
|
126
|
+
* If it is a flagStorage, the value will be get with the function {@link storage.flags.get}
|
|
127
127
|
*/
|
|
128
128
|
storageType: "storage" | "flagStorage" | "tempstorage";
|
|
129
129
|
};
|
|
@@ -147,7 +147,7 @@ type PixiVNJsonLabelGet = {
|
|
|
147
147
|
*/
|
|
148
148
|
label: string;
|
|
149
149
|
/**
|
|
150
|
-
* If it is a label, the value will be get with the function {@link narration.
|
|
150
|
+
* If it is a label, the value will be get with the function {@link narration.queries.timesLabelOpened}
|
|
151
151
|
*/
|
|
152
152
|
storageType: "label";
|
|
153
153
|
};
|
|
@@ -162,7 +162,7 @@ type PixiVNJsonChoiceGet = {
|
|
|
162
162
|
*/
|
|
163
163
|
index: number;
|
|
164
164
|
/**
|
|
165
|
-
* If it is a choice, the value will be get with the function {@link narration.
|
|
165
|
+
* If it is a choice, the value will be get with the function {@link narration.queries.timesChoiceMade}
|
|
166
166
|
*/
|
|
167
167
|
storageType: "choice";
|
|
168
168
|
};
|
|
@@ -235,7 +235,7 @@ type PixiVNJsonOnlyParamSet = {
|
|
|
235
235
|
};
|
|
236
236
|
/**
|
|
237
237
|
* Sets a boolean flag in the flag storage.
|
|
238
|
-
* Flag storage is a dedicated boolean key-value store queried with {@link
|
|
238
|
+
* Flag storage is a dedicated boolean key-value store queried with {@link storage.flags.get}.
|
|
239
239
|
*/
|
|
240
240
|
type PixiVNJsonFlagSet = {
|
|
241
241
|
type: "value";
|
|
@@ -123,7 +123,7 @@ type PixiVNJsonStorageGet = {
|
|
|
123
123
|
key: string;
|
|
124
124
|
/**
|
|
125
125
|
* Type of the storage, if it is a flagStorage or a storage.
|
|
126
|
-
* If it is a flagStorage, the value will be get with the function {@link
|
|
126
|
+
* If it is a flagStorage, the value will be get with the function {@link storage.flags.get}
|
|
127
127
|
*/
|
|
128
128
|
storageType: "storage" | "flagStorage" | "tempstorage";
|
|
129
129
|
};
|
|
@@ -147,7 +147,7 @@ type PixiVNJsonLabelGet = {
|
|
|
147
147
|
*/
|
|
148
148
|
label: string;
|
|
149
149
|
/**
|
|
150
|
-
* If it is a label, the value will be get with the function {@link narration.
|
|
150
|
+
* If it is a label, the value will be get with the function {@link narration.queries.timesLabelOpened}
|
|
151
151
|
*/
|
|
152
152
|
storageType: "label";
|
|
153
153
|
};
|
|
@@ -162,7 +162,7 @@ type PixiVNJsonChoiceGet = {
|
|
|
162
162
|
*/
|
|
163
163
|
index: number;
|
|
164
164
|
/**
|
|
165
|
-
* If it is a choice, the value will be get with the function {@link narration.
|
|
165
|
+
* If it is a choice, the value will be get with the function {@link narration.queries.timesChoiceMade}
|
|
166
166
|
*/
|
|
167
167
|
storageType: "choice";
|
|
168
168
|
};
|
|
@@ -235,7 +235,7 @@ type PixiVNJsonOnlyParamSet = {
|
|
|
235
235
|
};
|
|
236
236
|
/**
|
|
237
237
|
* Sets a boolean flag in the flag storage.
|
|
238
|
-
* Flag storage is a dedicated boolean key-value store queried with {@link
|
|
238
|
+
* Flag storage is a dedicated boolean key-value store queried with {@link storage.flags.get}.
|
|
239
239
|
*/
|
|
240
240
|
type PixiVNJsonFlagSet = {
|
|
241
241
|
type: "value";
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { a as PixiVNJsonValueSet, m as PixiVNJsonFunction, P as PixiVNJsonIfElse, c as PixiVNJsonValueGet, f as PixiVNJsonConditionalStatements } from './PixiVNJsonIfElse-
|
|
1
|
+
import { a as PixiVNJsonValueSet, m as PixiVNJsonFunction, P as PixiVNJsonIfElse, c as PixiVNJsonValueGet, f as PixiVNJsonConditionalStatements } from './PixiVNJsonIfElse-CgOnelja.js';
|
|
2
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';
|
|
3
3
|
import { KeyframesType, AnimationOptions, ObjectSegment, ObjectSegmentWithTransition, SequenceOptions } from '@drincs/pixi-vn/motion';
|
|
4
4
|
import { UPDATE_PRIORITY } from 'pixi.js';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Additional options controlling the animation (duration, easing, repeat, etc.).
|
|
8
|
+
*/
|
|
9
|
+
interface PixiVNJsonAnimateBaseOptions extends AnimationOptions {
|
|
10
|
+
}
|
|
6
11
|
/**
|
|
7
12
|
* Animates one or more canvas elements simultaneously using keyframe-based animation.
|
|
8
13
|
*/
|
|
@@ -19,12 +24,17 @@ type PixiVNJsonAnimateBase<T extends CanvasBaseInterface<any>> = {
|
|
|
19
24
|
/**
|
|
20
25
|
* Additional options controlling the animation (duration, easing, repeat, etc.).
|
|
21
26
|
*/
|
|
22
|
-
options?:
|
|
27
|
+
options?: PixiVNJsonAnimateBaseOptions;
|
|
23
28
|
/**
|
|
24
29
|
* Pixi.js update priority for this animation ticker callback.
|
|
25
30
|
*/
|
|
26
31
|
priority?: UPDATE_PRIORITY;
|
|
27
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Additional options controlling the sequence playback.
|
|
35
|
+
*/
|
|
36
|
+
interface PixiVNJsonAnimateSequenceOptions extends SequenceOptions {
|
|
37
|
+
}
|
|
28
38
|
/**
|
|
29
39
|
* Animates a canvas element using a sequence of segments (timeline-based animation).
|
|
30
40
|
*/
|
|
@@ -41,7 +51,7 @@ type PixiVNJsonAnimateSequence<T extends CanvasBaseInterface<any>> = {
|
|
|
41
51
|
/**
|
|
42
52
|
* Additional options controlling the sequence playback.
|
|
43
53
|
*/
|
|
44
|
-
options?:
|
|
54
|
+
options?: PixiVNJsonAnimateSequenceOptions;
|
|
45
55
|
/**
|
|
46
56
|
* Pixi.js update priority for this animation ticker callback.
|
|
47
57
|
*/
|
|
@@ -75,6 +85,11 @@ type PixiVNJsonEffectShake = {
|
|
|
75
85
|
*/
|
|
76
86
|
type PixiVNJsonCanvasEffect = PixiVNJsonEffectShake;
|
|
77
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Configuration options for the dissolve transition.
|
|
90
|
+
*/
|
|
91
|
+
interface DissolveTransitionProps extends ShowWithDissolveTransitionProps {
|
|
92
|
+
}
|
|
78
93
|
/**
|
|
79
94
|
* Cross-dissolve transition — blends the element in or out by gradually changing its opacity.
|
|
80
95
|
*/
|
|
@@ -83,12 +98,17 @@ type DissolveTransition = {
|
|
|
83
98
|
/**
|
|
84
99
|
* Configuration options for the dissolve transition.
|
|
85
100
|
*/
|
|
86
|
-
props?:
|
|
101
|
+
props?: DissolveTransitionProps;
|
|
87
102
|
/**
|
|
88
103
|
* Pixi.js update priority for the transition ticker callback.
|
|
89
104
|
*/
|
|
90
105
|
priority?: UPDATE_PRIORITY;
|
|
91
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Configuration options for the fade transition.
|
|
109
|
+
*/
|
|
110
|
+
interface FadeTransitionProps extends ShowWithFadeTransitionProps {
|
|
111
|
+
}
|
|
92
112
|
/**
|
|
93
113
|
* Fade transition — fades the element in or out by animating its alpha value.
|
|
94
114
|
*/
|
|
@@ -97,12 +117,17 @@ type FadeTransition = {
|
|
|
97
117
|
/**
|
|
98
118
|
* Configuration options for the fade transition.
|
|
99
119
|
*/
|
|
100
|
-
props?:
|
|
120
|
+
props?: FadeTransitionProps;
|
|
101
121
|
/**
|
|
102
122
|
* Pixi.js update priority for the transition ticker callback.
|
|
103
123
|
*/
|
|
104
124
|
priority?: UPDATE_PRIORITY;
|
|
105
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Configuration options for the move transition (direction, duration, easing, etc.).
|
|
128
|
+
*/
|
|
129
|
+
interface MoveInOutTransitionProps extends MoveInOutProps {
|
|
130
|
+
}
|
|
106
131
|
/**
|
|
107
132
|
* Move-in / Move-out transition — slides the element into or out of the viewport.
|
|
108
133
|
*/
|
|
@@ -111,12 +136,17 @@ type MoveInOutTransition = {
|
|
|
111
136
|
/**
|
|
112
137
|
* Configuration options for the move transition (direction, duration, easing, etc.).
|
|
113
138
|
*/
|
|
114
|
-
props?:
|
|
139
|
+
props?: MoveInOutTransitionProps;
|
|
115
140
|
/**
|
|
116
141
|
* Pixi.js update priority for the transition ticker callback.
|
|
117
142
|
*/
|
|
118
143
|
priority?: UPDATE_PRIORITY;
|
|
119
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* Configuration options for the zoom transition (scale, duration, easing, etc.).
|
|
147
|
+
*/
|
|
148
|
+
interface ZoomInOutTransitionProps extends ZoomInOutProps {
|
|
149
|
+
}
|
|
120
150
|
/**
|
|
121
151
|
* Zoom-in / Zoom-out transition — scales the element into or out of view.
|
|
122
152
|
*/
|
|
@@ -125,12 +155,17 @@ type ZoomInOutTransition = {
|
|
|
125
155
|
/**
|
|
126
156
|
* Configuration options for the zoom transition (scale, duration, easing, etc.).
|
|
127
157
|
*/
|
|
128
|
-
props?:
|
|
158
|
+
props?: ZoomInOutTransitionProps;
|
|
129
159
|
/**
|
|
130
160
|
* Pixi.js update priority for the transition ticker callback.
|
|
131
161
|
*/
|
|
132
162
|
priority?: UPDATE_PRIORITY;
|
|
133
163
|
};
|
|
164
|
+
/**
|
|
165
|
+
* Configuration options for the push transition (direction, duration, easing, etc.).
|
|
166
|
+
*/
|
|
167
|
+
interface PushInOutTransitionProps extends PushInOutProps {
|
|
168
|
+
}
|
|
134
169
|
/**
|
|
135
170
|
* Push-in / Push-out transition — pushes the element onto or off the viewport, displacing the current content.
|
|
136
171
|
*/
|
|
@@ -139,7 +174,7 @@ type PushInOutTransition = {
|
|
|
139
174
|
/**
|
|
140
175
|
* Configuration options for the push transition (direction, duration, easing, etc.).
|
|
141
176
|
*/
|
|
142
|
-
props?:
|
|
177
|
+
props?: PushInOutTransitionProps;
|
|
143
178
|
/**
|
|
144
179
|
* Pixi.js update priority for the transition ticker callback.
|
|
145
180
|
*/
|
|
@@ -150,6 +185,11 @@ type PushInOutTransition = {
|
|
|
150
185
|
*/
|
|
151
186
|
type PixiVNJsonMediaTransiotions = DissolveTransition | FadeTransition | MoveInOutTransition | ZoomInOutTransition | PushInOutTransition;
|
|
152
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Display options (position, scale, alpha, etc.) for an image or video sprite.
|
|
190
|
+
*/
|
|
191
|
+
interface PixiVNJsonCanvasImageVideoShowProps extends ImageSpriteOptions {
|
|
192
|
+
}
|
|
153
193
|
/**
|
|
154
194
|
* Shows an image or video asset on the canvas.
|
|
155
195
|
*/
|
|
@@ -168,12 +208,17 @@ type PixiVNJsonCanvasImageVideoShow = {
|
|
|
168
208
|
/**
|
|
169
209
|
* Display options (position, scale, alpha, etc.) for the image or video sprite.
|
|
170
210
|
*/
|
|
171
|
-
props?:
|
|
211
|
+
props?: PixiVNJsonCanvasImageVideoShowProps;
|
|
172
212
|
/**
|
|
173
213
|
* Optional transition effect applied when the element appears on screen.
|
|
174
214
|
*/
|
|
175
215
|
transition?: PixiVNJsonMediaTransiotions;
|
|
176
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* Display options for an image container.
|
|
219
|
+
*/
|
|
220
|
+
interface PixiVNJsonCanvasImageContainerShowProps extends ImageContainerOptions<ImageSprite> {
|
|
221
|
+
}
|
|
177
222
|
/**
|
|
178
223
|
* Shows an image container (a group of layered images) on the canvas.
|
|
179
224
|
*/
|
|
@@ -191,12 +236,17 @@ type PixiVNJsonCanvasImageContainerShow = {
|
|
|
191
236
|
/**
|
|
192
237
|
* Display options for the image container.
|
|
193
238
|
*/
|
|
194
|
-
props?:
|
|
239
|
+
props?: PixiVNJsonCanvasImageContainerShowProps;
|
|
195
240
|
/**
|
|
196
241
|
* Optional transition effect applied when the element appears on screen.
|
|
197
242
|
*/
|
|
198
243
|
transition?: PixiVNJsonMediaTransiotions;
|
|
199
244
|
};
|
|
245
|
+
/**
|
|
246
|
+
* Display options (font, style, position, etc.) for a text element.
|
|
247
|
+
*/
|
|
248
|
+
interface PixiVNJsonCanvasTextShowProps extends TextOptions {
|
|
249
|
+
}
|
|
200
250
|
/**
|
|
201
251
|
* Shows a text element on the canvas.
|
|
202
252
|
*/
|
|
@@ -214,7 +264,7 @@ type PixiVNJsonCanvasTextShow = {
|
|
|
214
264
|
/**
|
|
215
265
|
* Display options (font, style, position, etc.) for the text element.
|
|
216
266
|
*/
|
|
217
|
-
props?:
|
|
267
|
+
props?: PixiVNJsonCanvasTextShowProps;
|
|
218
268
|
/**
|
|
219
269
|
* Optional transition effect applied when the element appears on screen.
|
|
220
270
|
*/
|
|
@@ -381,6 +431,11 @@ type PixiVNJsonDialogue = {
|
|
|
381
431
|
*/
|
|
382
432
|
type PixiVNJsonNarration = PixiVNJsonDialogue | PixiVNJsonInputRequest;
|
|
383
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Playback options such as volume, loop, channel, and start offset.
|
|
436
|
+
*/
|
|
437
|
+
interface PixiVNJsonSoundPlayProps extends SoundPlayOptionsWithChannel {
|
|
438
|
+
}
|
|
384
439
|
/**
|
|
385
440
|
* Starts playback of a sound asset.
|
|
386
441
|
*/
|
|
@@ -398,7 +453,7 @@ type PixiVNJsonSoundPlay = {
|
|
|
398
453
|
/**
|
|
399
454
|
* Playback options such as volume, loop, channel, and start offset.
|
|
400
455
|
*/
|
|
401
|
-
props?:
|
|
456
|
+
props?: PixiVNJsonSoundPlayProps;
|
|
402
457
|
};
|
|
403
458
|
/**
|
|
404
459
|
* Stops a playing sound and removes it from the audio context.
|
|
@@ -425,6 +480,11 @@ type PixiVNJsonSoundPauseResume = {
|
|
|
425
480
|
type: "all";
|
|
426
481
|
operationType: "pause" | "resume" | "stop";
|
|
427
482
|
};
|
|
483
|
+
/**
|
|
484
|
+
* Partial set of sound properties that can be applied when editing a currently playing sound.
|
|
485
|
+
*/
|
|
486
|
+
interface PixiVNJsonSoundEditProps extends Partial<Pick<MediaInterface, "speed" | "muted" | "loop" | "paused">>, Partial<Pick<SoundPlayOptionsWithChannel, "volume">> {
|
|
487
|
+
}
|
|
428
488
|
/**
|
|
429
489
|
* Edits the properties of a currently playing sound (volume, speed, muted, loop, etc.).
|
|
430
490
|
*/
|
|
@@ -438,7 +498,7 @@ type PixiVNJsonSoundEdit = {
|
|
|
438
498
|
/**
|
|
439
499
|
* Partial set of properties to apply to the sound.
|
|
440
500
|
*/
|
|
441
|
-
props:
|
|
501
|
+
props: PixiVNJsonSoundEditProps;
|
|
442
502
|
};
|
|
443
503
|
/**
|
|
444
504
|
* Union of all sound operations — play, stop, pause/resume, and edit.
|
|
@@ -547,7 +607,7 @@ type PixiVNJsonLabelToOpen<T extends {} = object> = {
|
|
|
547
607
|
props?: StepLabelPropsType<T>;
|
|
548
608
|
/**
|
|
549
609
|
* **It is not recommended to use it, use it only if necessary**. The parameters to be passed to the label. If you want to pass an object, use the {@link PixiVNJsonLabelToOpen.props} attribute.
|
|
550
|
-
* "params" attribute will be stored in the temp storage with the key: {@link PIXIVNJSON_PARAM_ID} + ({@link narration.
|
|
610
|
+
* "params" attribute will be stored in the temp storage with the key: {@link PIXIVNJSON_PARAM_ID} + ({@link narration.labels.opened.length} - 1).
|
|
551
611
|
*/
|
|
552
612
|
params?: unknown[];
|
|
553
613
|
};
|
|
@@ -599,4 +659,4 @@ type PixiVNJsonLabelStep = {
|
|
|
599
659
|
conditionalStep?: PixiVNJsonConditionalStatements<PixiVNJsonLabelStep | PixiVNJsonLabelStep[]>;
|
|
600
660
|
};
|
|
601
661
|
|
|
602
|
-
export type {
|
|
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 };
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { a as PixiVNJsonValueSet, m as PixiVNJsonFunction, P as PixiVNJsonIfElse, c as PixiVNJsonValueGet, f as PixiVNJsonConditionalStatements } from './PixiVNJsonIfElse-
|
|
1
|
+
import { a as PixiVNJsonValueSet, m as PixiVNJsonFunction, P as PixiVNJsonIfElse, c as PixiVNJsonValueGet, f as PixiVNJsonConditionalStatements } from './PixiVNJsonIfElse-CgOnelja.cjs';
|
|
2
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';
|
|
3
3
|
import { KeyframesType, AnimationOptions, ObjectSegment, ObjectSegmentWithTransition, SequenceOptions } from '@drincs/pixi-vn/motion';
|
|
4
4
|
import { UPDATE_PRIORITY } from 'pixi.js';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Additional options controlling the animation (duration, easing, repeat, etc.).
|
|
8
|
+
*/
|
|
9
|
+
interface PixiVNJsonAnimateBaseOptions extends AnimationOptions {
|
|
10
|
+
}
|
|
6
11
|
/**
|
|
7
12
|
* Animates one or more canvas elements simultaneously using keyframe-based animation.
|
|
8
13
|
*/
|
|
@@ -19,12 +24,17 @@ type PixiVNJsonAnimateBase<T extends CanvasBaseInterface<any>> = {
|
|
|
19
24
|
/**
|
|
20
25
|
* Additional options controlling the animation (duration, easing, repeat, etc.).
|
|
21
26
|
*/
|
|
22
|
-
options?:
|
|
27
|
+
options?: PixiVNJsonAnimateBaseOptions;
|
|
23
28
|
/**
|
|
24
29
|
* Pixi.js update priority for this animation ticker callback.
|
|
25
30
|
*/
|
|
26
31
|
priority?: UPDATE_PRIORITY;
|
|
27
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Additional options controlling the sequence playback.
|
|
35
|
+
*/
|
|
36
|
+
interface PixiVNJsonAnimateSequenceOptions extends SequenceOptions {
|
|
37
|
+
}
|
|
28
38
|
/**
|
|
29
39
|
* Animates a canvas element using a sequence of segments (timeline-based animation).
|
|
30
40
|
*/
|
|
@@ -41,7 +51,7 @@ type PixiVNJsonAnimateSequence<T extends CanvasBaseInterface<any>> = {
|
|
|
41
51
|
/**
|
|
42
52
|
* Additional options controlling the sequence playback.
|
|
43
53
|
*/
|
|
44
|
-
options?:
|
|
54
|
+
options?: PixiVNJsonAnimateSequenceOptions;
|
|
45
55
|
/**
|
|
46
56
|
* Pixi.js update priority for this animation ticker callback.
|
|
47
57
|
*/
|
|
@@ -75,6 +85,11 @@ type PixiVNJsonEffectShake = {
|
|
|
75
85
|
*/
|
|
76
86
|
type PixiVNJsonCanvasEffect = PixiVNJsonEffectShake;
|
|
77
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Configuration options for the dissolve transition.
|
|
90
|
+
*/
|
|
91
|
+
interface DissolveTransitionProps extends ShowWithDissolveTransitionProps {
|
|
92
|
+
}
|
|
78
93
|
/**
|
|
79
94
|
* Cross-dissolve transition — blends the element in or out by gradually changing its opacity.
|
|
80
95
|
*/
|
|
@@ -83,12 +98,17 @@ type DissolveTransition = {
|
|
|
83
98
|
/**
|
|
84
99
|
* Configuration options for the dissolve transition.
|
|
85
100
|
*/
|
|
86
|
-
props?:
|
|
101
|
+
props?: DissolveTransitionProps;
|
|
87
102
|
/**
|
|
88
103
|
* Pixi.js update priority for the transition ticker callback.
|
|
89
104
|
*/
|
|
90
105
|
priority?: UPDATE_PRIORITY;
|
|
91
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Configuration options for the fade transition.
|
|
109
|
+
*/
|
|
110
|
+
interface FadeTransitionProps extends ShowWithFadeTransitionProps {
|
|
111
|
+
}
|
|
92
112
|
/**
|
|
93
113
|
* Fade transition — fades the element in or out by animating its alpha value.
|
|
94
114
|
*/
|
|
@@ -97,12 +117,17 @@ type FadeTransition = {
|
|
|
97
117
|
/**
|
|
98
118
|
* Configuration options for the fade transition.
|
|
99
119
|
*/
|
|
100
|
-
props?:
|
|
120
|
+
props?: FadeTransitionProps;
|
|
101
121
|
/**
|
|
102
122
|
* Pixi.js update priority for the transition ticker callback.
|
|
103
123
|
*/
|
|
104
124
|
priority?: UPDATE_PRIORITY;
|
|
105
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Configuration options for the move transition (direction, duration, easing, etc.).
|
|
128
|
+
*/
|
|
129
|
+
interface MoveInOutTransitionProps extends MoveInOutProps {
|
|
130
|
+
}
|
|
106
131
|
/**
|
|
107
132
|
* Move-in / Move-out transition — slides the element into or out of the viewport.
|
|
108
133
|
*/
|
|
@@ -111,12 +136,17 @@ type MoveInOutTransition = {
|
|
|
111
136
|
/**
|
|
112
137
|
* Configuration options for the move transition (direction, duration, easing, etc.).
|
|
113
138
|
*/
|
|
114
|
-
props?:
|
|
139
|
+
props?: MoveInOutTransitionProps;
|
|
115
140
|
/**
|
|
116
141
|
* Pixi.js update priority for the transition ticker callback.
|
|
117
142
|
*/
|
|
118
143
|
priority?: UPDATE_PRIORITY;
|
|
119
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* Configuration options for the zoom transition (scale, duration, easing, etc.).
|
|
147
|
+
*/
|
|
148
|
+
interface ZoomInOutTransitionProps extends ZoomInOutProps {
|
|
149
|
+
}
|
|
120
150
|
/**
|
|
121
151
|
* Zoom-in / Zoom-out transition — scales the element into or out of view.
|
|
122
152
|
*/
|
|
@@ -125,12 +155,17 @@ type ZoomInOutTransition = {
|
|
|
125
155
|
/**
|
|
126
156
|
* Configuration options for the zoom transition (scale, duration, easing, etc.).
|
|
127
157
|
*/
|
|
128
|
-
props?:
|
|
158
|
+
props?: ZoomInOutTransitionProps;
|
|
129
159
|
/**
|
|
130
160
|
* Pixi.js update priority for the transition ticker callback.
|
|
131
161
|
*/
|
|
132
162
|
priority?: UPDATE_PRIORITY;
|
|
133
163
|
};
|
|
164
|
+
/**
|
|
165
|
+
* Configuration options for the push transition (direction, duration, easing, etc.).
|
|
166
|
+
*/
|
|
167
|
+
interface PushInOutTransitionProps extends PushInOutProps {
|
|
168
|
+
}
|
|
134
169
|
/**
|
|
135
170
|
* Push-in / Push-out transition — pushes the element onto or off the viewport, displacing the current content.
|
|
136
171
|
*/
|
|
@@ -139,7 +174,7 @@ type PushInOutTransition = {
|
|
|
139
174
|
/**
|
|
140
175
|
* Configuration options for the push transition (direction, duration, easing, etc.).
|
|
141
176
|
*/
|
|
142
|
-
props?:
|
|
177
|
+
props?: PushInOutTransitionProps;
|
|
143
178
|
/**
|
|
144
179
|
* Pixi.js update priority for the transition ticker callback.
|
|
145
180
|
*/
|
|
@@ -150,6 +185,11 @@ type PushInOutTransition = {
|
|
|
150
185
|
*/
|
|
151
186
|
type PixiVNJsonMediaTransiotions = DissolveTransition | FadeTransition | MoveInOutTransition | ZoomInOutTransition | PushInOutTransition;
|
|
152
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Display options (position, scale, alpha, etc.) for an image or video sprite.
|
|
190
|
+
*/
|
|
191
|
+
interface PixiVNJsonCanvasImageVideoShowProps extends ImageSpriteOptions {
|
|
192
|
+
}
|
|
153
193
|
/**
|
|
154
194
|
* Shows an image or video asset on the canvas.
|
|
155
195
|
*/
|
|
@@ -168,12 +208,17 @@ type PixiVNJsonCanvasImageVideoShow = {
|
|
|
168
208
|
/**
|
|
169
209
|
* Display options (position, scale, alpha, etc.) for the image or video sprite.
|
|
170
210
|
*/
|
|
171
|
-
props?:
|
|
211
|
+
props?: PixiVNJsonCanvasImageVideoShowProps;
|
|
172
212
|
/**
|
|
173
213
|
* Optional transition effect applied when the element appears on screen.
|
|
174
214
|
*/
|
|
175
215
|
transition?: PixiVNJsonMediaTransiotions;
|
|
176
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* Display options for an image container.
|
|
219
|
+
*/
|
|
220
|
+
interface PixiVNJsonCanvasImageContainerShowProps extends ImageContainerOptions<ImageSprite> {
|
|
221
|
+
}
|
|
177
222
|
/**
|
|
178
223
|
* Shows an image container (a group of layered images) on the canvas.
|
|
179
224
|
*/
|
|
@@ -191,12 +236,17 @@ type PixiVNJsonCanvasImageContainerShow = {
|
|
|
191
236
|
/**
|
|
192
237
|
* Display options for the image container.
|
|
193
238
|
*/
|
|
194
|
-
props?:
|
|
239
|
+
props?: PixiVNJsonCanvasImageContainerShowProps;
|
|
195
240
|
/**
|
|
196
241
|
* Optional transition effect applied when the element appears on screen.
|
|
197
242
|
*/
|
|
198
243
|
transition?: PixiVNJsonMediaTransiotions;
|
|
199
244
|
};
|
|
245
|
+
/**
|
|
246
|
+
* Display options (font, style, position, etc.) for a text element.
|
|
247
|
+
*/
|
|
248
|
+
interface PixiVNJsonCanvasTextShowProps extends TextOptions {
|
|
249
|
+
}
|
|
200
250
|
/**
|
|
201
251
|
* Shows a text element on the canvas.
|
|
202
252
|
*/
|
|
@@ -214,7 +264,7 @@ type PixiVNJsonCanvasTextShow = {
|
|
|
214
264
|
/**
|
|
215
265
|
* Display options (font, style, position, etc.) for the text element.
|
|
216
266
|
*/
|
|
217
|
-
props?:
|
|
267
|
+
props?: PixiVNJsonCanvasTextShowProps;
|
|
218
268
|
/**
|
|
219
269
|
* Optional transition effect applied when the element appears on screen.
|
|
220
270
|
*/
|
|
@@ -381,6 +431,11 @@ type PixiVNJsonDialogue = {
|
|
|
381
431
|
*/
|
|
382
432
|
type PixiVNJsonNarration = PixiVNJsonDialogue | PixiVNJsonInputRequest;
|
|
383
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Playback options such as volume, loop, channel, and start offset.
|
|
436
|
+
*/
|
|
437
|
+
interface PixiVNJsonSoundPlayProps extends SoundPlayOptionsWithChannel {
|
|
438
|
+
}
|
|
384
439
|
/**
|
|
385
440
|
* Starts playback of a sound asset.
|
|
386
441
|
*/
|
|
@@ -398,7 +453,7 @@ type PixiVNJsonSoundPlay = {
|
|
|
398
453
|
/**
|
|
399
454
|
* Playback options such as volume, loop, channel, and start offset.
|
|
400
455
|
*/
|
|
401
|
-
props?:
|
|
456
|
+
props?: PixiVNJsonSoundPlayProps;
|
|
402
457
|
};
|
|
403
458
|
/**
|
|
404
459
|
* Stops a playing sound and removes it from the audio context.
|
|
@@ -425,6 +480,11 @@ type PixiVNJsonSoundPauseResume = {
|
|
|
425
480
|
type: "all";
|
|
426
481
|
operationType: "pause" | "resume" | "stop";
|
|
427
482
|
};
|
|
483
|
+
/**
|
|
484
|
+
* Partial set of sound properties that can be applied when editing a currently playing sound.
|
|
485
|
+
*/
|
|
486
|
+
interface PixiVNJsonSoundEditProps extends Partial<Pick<MediaInterface, "speed" | "muted" | "loop" | "paused">>, Partial<Pick<SoundPlayOptionsWithChannel, "volume">> {
|
|
487
|
+
}
|
|
428
488
|
/**
|
|
429
489
|
* Edits the properties of a currently playing sound (volume, speed, muted, loop, etc.).
|
|
430
490
|
*/
|
|
@@ -438,7 +498,7 @@ type PixiVNJsonSoundEdit = {
|
|
|
438
498
|
/**
|
|
439
499
|
* Partial set of properties to apply to the sound.
|
|
440
500
|
*/
|
|
441
|
-
props:
|
|
501
|
+
props: PixiVNJsonSoundEditProps;
|
|
442
502
|
};
|
|
443
503
|
/**
|
|
444
504
|
* Union of all sound operations — play, stop, pause/resume, and edit.
|
|
@@ -547,7 +607,7 @@ type PixiVNJsonLabelToOpen<T extends {} = object> = {
|
|
|
547
607
|
props?: StepLabelPropsType<T>;
|
|
548
608
|
/**
|
|
549
609
|
* **It is not recommended to use it, use it only if necessary**. The parameters to be passed to the label. If you want to pass an object, use the {@link PixiVNJsonLabelToOpen.props} attribute.
|
|
550
|
-
* "params" attribute will be stored in the temp storage with the key: {@link PIXIVNJSON_PARAM_ID} + ({@link narration.
|
|
610
|
+
* "params" attribute will be stored in the temp storage with the key: {@link PIXIVNJSON_PARAM_ID} + ({@link narration.labels.opened.length} - 1).
|
|
551
611
|
*/
|
|
552
612
|
params?: unknown[];
|
|
553
613
|
};
|
|
@@ -599,4 +659,4 @@ type PixiVNJsonLabelStep = {
|
|
|
599
659
|
conditionalStep?: PixiVNJsonConditionalStatements<PixiVNJsonLabelStep | PixiVNJsonLabelStep[]>;
|
|
600
660
|
};
|
|
601
661
|
|
|
602
|
-
export type {
|
|
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 };
|