@drincs/pixi-vn 0.8.4 → 0.8.9
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 +36 -27
- package/dist/{chunk-T4KKYU4J.js → chunk-4KV6VMUV.js} +92 -6
- package/dist/{chunk-M6X6FHCH.js → chunk-5A543GJ4.js} +2 -2
- package/dist/{chunk-FYCYVQTG.js → chunk-A4NKPUL5.js} +7 -3
- package/dist/{chunk-2FSBBQFF.js → chunk-BHVKSBFZ.js} +2 -2
- package/dist/{chunk-3FJYYZOP.js → chunk-D3ZQSJKZ.js} +292 -33
- package/dist/{chunk-66F5CGHV.js → chunk-DPUSONJ3.js} +1 -1
- package/dist/{chunk-6SZOXEOR.js → chunk-FHNQBWIZ.js} +1 -1
- package/dist/{chunk-MKN3AKFV.js → chunk-FIQXZ3P3.js} +2 -2
- package/dist/{chunk-UWXYEVOE.js → chunk-FM5SFYXO.js} +1 -1
- package/dist/{chunk-WJ5SUJTD.js → chunk-GEWQS6GP.js} +65 -4
- package/dist/{chunk-ENMHDS5Q.js → chunk-GKLIT4GX.js} +2 -2
- package/dist/{chunk-7IWXRHUU.js → chunk-GNFWXAOE.js} +2 -2
- package/dist/{chunk-D3NHF5OS.js → chunk-PIYIZHZL.js} +1 -1
- package/dist/{chunk-DI77NC2O.js → chunk-SZWI2CBA.js} +3 -3
- package/dist/{chunk-CUYGFKNS.js → chunk-TNQKYUOG.js} +2 -2
- package/dist/classes/CharacterBaseModel.cjs +61 -27
- package/dist/classes/CharacterBaseModel.js +5 -5
- package/dist/classes/CharacterStoredClass.cjs +61 -27
- package/dist/classes/CharacterStoredClass.js +5 -5
- package/dist/classes/ChoiceMenuOption.cjs +60 -26
- package/dist/classes/ChoiceMenuOption.d.cts +1 -1
- package/dist/classes/ChoiceMenuOption.d.ts +1 -1
- package/dist/classes/ChoiceMenuOption.js +5 -5
- package/dist/classes/Sound.cjs +60 -26
- package/dist/classes/Sound.js +5 -5
- package/dist/classes/StoredClassModel.cjs +61 -27
- package/dist/classes/StoredClassModel.js +5 -5
- package/dist/classes/canvas/CanvasAVideo.cjs +60 -26
- package/dist/classes/canvas/CanvasAVideo.d.cts +5 -8
- package/dist/classes/canvas/CanvasAVideo.d.ts +5 -8
- package/dist/classes/canvas/CanvasAVideo.js +5 -5
- package/dist/classes/canvas/CanvasBase.d.cts +4 -2
- package/dist/classes/canvas/CanvasBase.d.ts +4 -2
- package/dist/classes/canvas/CanvasContainer.cjs +60 -26
- package/dist/classes/canvas/CanvasContainer.d.cts +7 -6
- package/dist/classes/canvas/CanvasContainer.d.ts +7 -6
- package/dist/classes/canvas/CanvasContainer.js +5 -5
- package/dist/classes/canvas/CanvasImage.cjs +60 -26
- package/dist/classes/canvas/CanvasImage.d.cts +6 -8
- package/dist/classes/canvas/CanvasImage.d.ts +6 -8
- package/dist/classes/canvas/CanvasImage.js +5 -5
- package/dist/classes/canvas/CanvasSprite.cjs +60 -26
- package/dist/classes/canvas/CanvasSprite.d.cts +7 -8
- package/dist/classes/canvas/CanvasSprite.d.ts +7 -8
- package/dist/classes/canvas/CanvasSprite.js +5 -5
- package/dist/classes/canvas/CanvasText.cjs +60 -26
- package/dist/classes/canvas/CanvasText.d.cts +7 -7
- package/dist/classes/canvas/CanvasText.d.ts +7 -7
- package/dist/classes/canvas/CanvasText.js +5 -5
- package/dist/classes/index.cjs +61 -27
- package/dist/classes/index.d.cts +3 -8
- package/dist/classes/index.d.ts +3 -8
- package/dist/classes/index.js +5 -5
- package/dist/classes/ticker/FadeAlphaTicker.cjs +60 -26
- package/dist/classes/ticker/FadeAlphaTicker.d.cts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.d.ts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.js +5 -5
- package/dist/classes/ticker/MoveTicker.cjs +60 -26
- package/dist/classes/ticker/MoveTicker.d.cts +3 -2
- package/dist/classes/ticker/MoveTicker.d.ts +3 -2
- package/dist/classes/ticker/MoveTicker.js +5 -5
- package/dist/classes/ticker/RotateTicker.cjs +60 -26
- package/dist/classes/ticker/RotateTicker.d.cts +3 -2
- package/dist/classes/ticker/RotateTicker.d.ts +3 -2
- package/dist/classes/ticker/RotateTicker.js +5 -5
- package/dist/classes/ticker/TickerBase.cjs +60 -26
- package/dist/classes/ticker/TickerBase.d.cts +70 -4
- package/dist/classes/ticker/TickerBase.d.ts +70 -4
- package/dist/classes/ticker/TickerBase.js +5 -5
- package/dist/classes/ticker/ZoomTicker.cjs +60 -26
- package/dist/classes/ticker/ZoomTicker.d.cts +4 -3
- package/dist/classes/ticker/ZoomTicker.d.ts +4 -3
- package/dist/classes/ticker/ZoomTicker.js +5 -5
- package/dist/classes/ticker/index.cjs +60 -26
- package/dist/classes/ticker/index.d.cts +3 -2
- package/dist/classes/ticker/index.d.ts +3 -2
- package/dist/classes/ticker/index.js +5 -5
- package/dist/constants.cjs +11 -6
- package/dist/constants.d.cts +7 -2
- package/dist/constants.d.ts +7 -2
- package/dist/constants.js +5 -3
- package/dist/decorators/canvas-element-decorator.cjs +60 -26
- package/dist/decorators/canvas-element-decorator.d.cts +3 -1
- package/dist/decorators/canvas-element-decorator.d.ts +3 -1
- package/dist/decorators/canvas-element-decorator.js +5 -5
- package/dist/decorators/event-decorator.d.cts +2 -1
- package/dist/decorators/event-decorator.d.ts +2 -1
- package/dist/decorators/index.cjs +60 -26
- package/dist/decorators/index.d.cts +6 -4
- package/dist/decorators/index.d.ts +6 -4
- package/dist/decorators/index.js +5 -5
- package/dist/decorators/label-decorator.cjs +60 -26
- package/dist/decorators/label-decorator.js +5 -5
- package/dist/decorators/ticker-decorator.d.cts +4 -3
- package/dist/decorators/ticker-decorator.d.ts +4 -3
- package/dist/functions/canvas/canvas-effect.cjs +61821 -0
- package/dist/functions/canvas/canvas-effect.d.cts +15 -0
- package/dist/functions/canvas/canvas-effect.d.ts +15 -0
- package/dist/functions/canvas/canvas-effect.js +40 -0
- package/dist/functions/canvas/canvas-memory-utility.cjs +60 -26
- package/dist/functions/canvas/canvas-memory-utility.d.cts +5 -3
- package/dist/functions/canvas/canvas-memory-utility.d.ts +5 -3
- package/dist/functions/canvas/canvas-memory-utility.js +5 -5
- package/dist/functions/canvas/canvas-transition.cjs +586 -408
- package/dist/functions/canvas/canvas-transition.d.cts +43 -20
- package/dist/functions/canvas/canvas-transition.d.ts +43 -20
- package/dist/functions/canvas/canvas-transition.js +9 -5
- package/dist/functions/canvas/canvas-utility.cjs +60 -26
- package/dist/functions/canvas/canvas-utility.d.cts +2 -2
- package/dist/functions/canvas/canvas-utility.d.ts +2 -2
- package/dist/functions/canvas/canvas-utility.js +5 -5
- package/dist/functions/canvas/image-utility.cjs +60 -26
- package/dist/functions/canvas/image-utility.d.cts +2 -4
- package/dist/functions/canvas/image-utility.d.ts +2 -4
- package/dist/functions/canvas/image-utility.js +5 -5
- package/dist/functions/canvas/video-utility.cjs +60 -26
- package/dist/functions/canvas/video-utility.d.cts +3 -6
- package/dist/functions/canvas/video-utility.d.ts +3 -6
- package/dist/functions/canvas/video-utility.js +5 -5
- package/dist/functions/dialogue-utility.cjs +60 -26
- package/dist/functions/dialogue-utility.d.cts +1 -1
- package/dist/functions/dialogue-utility.d.ts +1 -1
- package/dist/functions/dialogue-utility.js +5 -5
- package/dist/functions/diff-utility.cjs +1 -1
- package/dist/functions/diff-utility.js +2 -2
- package/dist/functions/export-utility.cjs +1 -1
- package/dist/functions/export-utility.js +1 -1
- package/dist/functions/flags-utility.cjs +60 -26
- package/dist/functions/flags-utility.js +5 -5
- package/dist/functions/game-utility.cjs +60 -26
- package/dist/functions/game-utility.js +5 -5
- package/dist/functions/index.cjs +449 -183
- package/dist/functions/index.d.cts +17 -18
- package/dist/functions/index.d.ts +17 -18
- package/dist/functions/index.js +11 -5
- package/dist/functions/saves-utility.cjs +64 -28
- package/dist/functions/saves-utility.d.cts +13 -11
- package/dist/functions/saves-utility.d.ts +13 -11
- package/dist/functions/saves-utility.js +5 -5
- package/dist/functions/ticker-utility.d.cts +1 -1
- package/dist/functions/ticker-utility.d.ts +1 -1
- package/dist/index.cjs +363 -40
- package/dist/index.d.cts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.js +24 -18
- package/dist/interface/{IOpenedLabel.cjs → HistoryStep.cjs} +3 -3
- package/dist/interface/{IHistoryStep.d.cts → HistoryStep.d.cts} +12 -10
- package/dist/interface/{IHistoryStep.d.ts → HistoryStep.d.ts} +12 -10
- package/dist/interface/{IHistoryStep.cjs → OpenedLabel.cjs} +3 -3
- package/dist/interface/{IOpenedLabel.d.cts → OpenedLabel.d.cts} +2 -2
- package/dist/interface/{IOpenedLabel.d.ts → OpenedLabel.d.ts} +2 -2
- package/dist/interface/{ISaveData.cjs → SaveData.cjs} +3 -3
- package/dist/interface/{ISaveData.d.cts → SaveData.d.cts} +11 -9
- package/dist/interface/{ISaveData.d.ts → SaveData.d.ts} +11 -9
- package/dist/interface/{ITicker.cjs → Ticker.cjs} +3 -3
- package/dist/interface/Ticker.d.cts +24 -0
- package/dist/interface/Ticker.d.ts +24 -0
- package/dist/interface/TickerArgs.cjs +18 -0
- package/dist/interface/TickerArgs.d.cts +5 -0
- package/dist/interface/TickerArgs.d.ts +5 -0
- package/dist/interface/TickerHistory.d.cts +3 -4
- package/dist/interface/TickerHistory.d.ts +3 -4
- package/dist/interface/TickerProgrationType.d.cts +7 -6
- package/dist/interface/TickerProgrationType.d.ts +7 -6
- package/dist/interface/TickersSteps.cjs +18 -0
- package/dist/interface/{ITickersSteps.d.cts → TickersSteps.d.cts} +5 -7
- package/dist/interface/{ITickersSteps.d.ts → TickersSteps.d.ts} +5 -7
- package/dist/interface/canvas/TextureMemory.cjs +18 -0
- package/dist/interface/canvas/TextureMemory.d.cts +8 -0
- package/dist/interface/canvas/TextureMemory.d.ts +8 -0
- package/dist/interface/canvas/canvas-memory.cjs +18 -0
- package/dist/interface/canvas/canvas-memory.d.cts +51 -0
- package/dist/interface/canvas/canvas-memory.d.ts +51 -0
- package/dist/interface/canvas/effect-props.cjs +18 -0
- package/dist/interface/canvas/effect-props.d.cts +36 -0
- package/dist/interface/canvas/effect-props.d.ts +36 -0
- package/dist/interface/canvas/transition-props.cjs +18 -0
- package/dist/interface/canvas/transition-props.d.cts +38 -0
- package/dist/interface/canvas/transition-props.d.ts +38 -0
- package/dist/interface/export/ExportedCanvas.d.cts +8 -6
- package/dist/interface/export/ExportedCanvas.d.ts +8 -6
- package/dist/interface/export/ExportedStep.d.cts +12 -10
- package/dist/interface/export/ExportedStep.d.ts +12 -10
- package/dist/interface/index.d.cts +13 -16
- package/dist/interface/index.d.ts +13 -16
- package/dist/labels/BaseCanvasElementTestLabel.cjs +61 -27
- package/dist/labels/BaseCanvasElementTestLabel.js +7 -7
- package/dist/labels/CanvasEventsTestLabel.cjs +61 -27
- package/dist/labels/CanvasEventsTestLabel.d.cts +2 -3
- package/dist/labels/CanvasEventsTestLabel.d.ts +2 -3
- package/dist/labels/CanvasEventsTestLabel.js +7 -7
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +1692 -28
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.cts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.ts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +17 -7
- package/dist/labels/ImagesAnimationsTestLabel.cjs +349 -36
- package/dist/labels/ImagesAnimationsTestLabel.js +7 -7
- package/dist/labels/InputTestLabel.cjs +61 -27
- package/dist/labels/InputTestLabel.js +7 -7
- package/dist/labels/MarkdownTest.cjs +61 -27
- package/dist/labels/MarkdownTest.js +7 -7
- package/dist/labels/SoundTestLabel.cjs +61 -27
- package/dist/labels/SoundTestLabel.js +7 -7
- package/dist/labels/StartLabel.cjs +359 -39
- package/dist/labels/StartLabel.js +17 -16
- package/dist/labels/StepLabelTest.cjs +61 -27
- package/dist/labels/StepLabelTest.js +7 -7
- package/dist/labels/TestConstant.cjs +61 -27
- package/dist/labels/TestConstant.js +6 -6
- package/dist/labels/VideoTestLabel.cjs +66 -29
- package/dist/labels/VideoTestLabel.js +7 -7
- package/dist/labels/index.cjs +359 -39
- package/dist/labels/index.js +17 -17
- package/dist/managers/CanvasManager.cjs +60 -26
- package/dist/managers/CanvasManager.d.cts +21 -11
- package/dist/managers/CanvasManager.d.ts +21 -11
- package/dist/managers/CanvasManager.js +5 -5
- package/dist/managers/CanvasManagerStatic.d.cts +7 -6
- package/dist/managers/CanvasManagerStatic.d.ts +7 -6
- package/dist/managers/NarrationManager.cjs +60 -26
- package/dist/managers/NarrationManager.d.cts +10 -8
- package/dist/managers/NarrationManager.d.ts +10 -8
- package/dist/managers/NarrationManager.js +5 -5
- package/dist/managers/NarrationManagerStatic.cjs +60 -26
- package/dist/managers/NarrationManagerStatic.d.cts +16 -14
- package/dist/managers/NarrationManagerStatic.d.ts +16 -14
- package/dist/managers/NarrationManagerStatic.js +5 -5
- package/dist/managers/SoundManager.cjs +60 -26
- package/dist/managers/SoundManager.js +5 -5
- package/dist/managers/StorageManager.cjs +60 -26
- package/dist/managers/StorageManager.js +5 -5
- package/dist/managers/StorageManagerStatic.cjs +1 -1
- package/dist/managers/StorageManagerStatic.js +2 -2
- package/dist/managers/index.cjs +60 -26
- package/dist/managers/index.d.cts +12 -8
- package/dist/managers/index.d.ts +12 -8
- package/dist/managers/index.js +5 -5
- package/dist/types/ChoiceMenuOptionsType.d.cts +1 -1
- package/dist/types/ChoiceMenuOptionsType.d.ts +1 -1
- package/dist/types/ticker/MoveTickerProps.d.cts +8 -2
- package/dist/types/ticker/MoveTickerProps.d.ts +8 -2
- package/dist/types/ticker/RotateTickerProps.d.cts +1 -1
- package/dist/types/ticker/RotateTickerProps.d.ts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.cts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.ts +1 -1
- package/package.json +4 -4
- package/dist/TickerBase-DbIg7gDS.d.ts +0 -94
- package/dist/TickerBase-eU4Hvvy0.d.cts +0 -94
- package/dist/chunk-II324FA5.js +0 -101
- package/dist/interface/ITicker.d.cts +0 -4
- package/dist/interface/ITicker.d.ts +0 -4
- package/dist/interface/ITickersSteps.cjs +0 -18
- package/dist/interface/canvas/ICanvasBaseMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasBaseMemory.d.cts +0 -8
- package/dist/interface/canvas/ICanvasBaseMemory.d.ts +0 -8
- package/dist/interface/canvas/ICanvasContainerMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasContainerMemory.d.cts +0 -11
- package/dist/interface/canvas/ICanvasContainerMemory.d.ts +0 -11
- package/dist/interface/canvas/ICanvasImageMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasImageMemory.d.cts +0 -14
- package/dist/interface/canvas/ICanvasImageMemory.d.ts +0 -14
- package/dist/interface/canvas/ICanvasSpriteMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasSpriteMemory.d.cts +0 -18
- package/dist/interface/canvas/ICanvasSpriteMemory.d.ts +0 -18
- package/dist/interface/canvas/ICanvasTextTextMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasTextTextMemory.d.cts +0 -14
- package/dist/interface/canvas/ICanvasTextTextMemory.d.ts +0 -14
- package/dist/interface/canvas/ICanvasTextTextMemory.js +0 -0
- package/dist/interface/canvas/ICanvasVideoMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasVideoMemory.d.cts +0 -17
- package/dist/interface/canvas/ICanvasVideoMemory.d.ts +0 -17
- package/dist/interface/canvas/ICanvasVideoMemory.js +0 -0
- package/dist/interface/canvas/ITextureMemory.cjs +0 -18
- package/dist/interface/canvas/ITextureMemory.d.cts +0 -8
- package/dist/interface/canvas/ITextureMemory.d.ts +0 -8
- package/dist/interface/canvas/ITextureMemory.js +0 -0
- package/dist/interface/canvas/ITransitionProps.cjs +0 -18
- package/dist/interface/canvas/ITransitionProps.d.cts +0 -22
- package/dist/interface/canvas/ITransitionProps.d.ts +0 -22
- package/dist/interface/canvas/ITransitionProps.js +0 -0
- /package/dist/{chunk-JQ2KK52M.js → interface/HistoryStep.js} +0 -0
- /package/dist/interface/{IHistoryStep.js → OpenedLabel.js} +0 -0
- /package/dist/interface/{IOpenedLabel.js → SaveData.js} +0 -0
- /package/dist/interface/{ISaveData.js → Ticker.js} +0 -0
- /package/dist/interface/{ITicker.js → TickerArgs.js} +0 -0
- /package/dist/interface/{ITickersSteps.js → TickersSteps.js} +0 -0
- /package/dist/interface/canvas/{ICanvasBaseMemory.js → TextureMemory.js} +0 -0
- /package/dist/interface/canvas/{ICanvasContainerMemory.js → canvas-memory.js} +0 -0
- /package/dist/interface/canvas/{ICanvasImageMemory.js → effect-props.js} +0 -0
- /package/dist/interface/canvas/{ICanvasSpriteMemory.js → transition-props.js} +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { TickerCallback, UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
-
import { a as TickerArgsType } from '../TickerBase-eU4Hvvy0.cjs';
|
|
3
2
|
import { TickerIdType } from '../types/TickerIdType.cjs';
|
|
4
|
-
import '
|
|
3
|
+
import TickerArgs from './TickerArgs.cjs';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
|
|
8
7
|
*/
|
|
9
|
-
interface TickerHistory<TArgs extends
|
|
8
|
+
interface TickerHistory<TArgs extends TickerArgs> {
|
|
10
9
|
fn: TickerCallback<any>;
|
|
11
10
|
id: TickerIdType;
|
|
12
11
|
args: TArgs;
|
|
@@ -25,7 +24,7 @@ interface TickerHistory<TArgs extends TickerArgsType> {
|
|
|
25
24
|
};
|
|
26
25
|
onEndOfTicker: () => void;
|
|
27
26
|
}
|
|
28
|
-
interface TickerHistoryForExport<TArgs extends
|
|
27
|
+
interface TickerHistoryForExport<TArgs extends TickerArgs> {
|
|
29
28
|
id: TickerIdType;
|
|
30
29
|
args: TArgs;
|
|
31
30
|
/**
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { TickerCallback, UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
-
import { a as TickerArgsType } from '../TickerBase-DbIg7gDS.js';
|
|
3
2
|
import { TickerIdType } from '../types/TickerIdType.js';
|
|
4
|
-
import '
|
|
3
|
+
import TickerArgs from './TickerArgs.js';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
|
|
8
7
|
*/
|
|
9
|
-
interface TickerHistory<TArgs extends
|
|
8
|
+
interface TickerHistory<TArgs extends TickerArgs> {
|
|
10
9
|
fn: TickerCallback<any>;
|
|
11
10
|
id: TickerIdType;
|
|
12
11
|
args: TArgs;
|
|
@@ -25,7 +24,7 @@ interface TickerHistory<TArgs extends TickerArgsType> {
|
|
|
25
24
|
};
|
|
26
25
|
onEndOfTicker: () => void;
|
|
27
26
|
}
|
|
28
|
-
interface TickerHistoryForExport<TArgs extends
|
|
27
|
+
interface TickerHistoryForExport<TArgs extends TickerArgs> {
|
|
29
28
|
id: TickerIdType;
|
|
30
29
|
args: TArgs;
|
|
31
30
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
type TickerProgrationType =
|
|
2
|
-
|
|
1
|
+
type TickerProgrationType = TickerProgrationLinear | TickerProgrationExponential;
|
|
2
|
+
|
|
3
|
+
interface TickerProgrationLinear {
|
|
3
4
|
/**
|
|
4
5
|
* The amount of the speed to increase every frame.
|
|
5
6
|
*/
|
|
@@ -9,8 +10,8 @@ type ITickerProgrationLinear = {
|
|
|
9
10
|
*/
|
|
10
11
|
limit?: number;
|
|
11
12
|
type: "linear";
|
|
12
|
-
}
|
|
13
|
-
|
|
13
|
+
}
|
|
14
|
+
interface TickerProgrationExponential {
|
|
14
15
|
/**
|
|
15
16
|
* The percentage of the speed to increase every frame. if the percentage is 0.1, the speed will increase by 10% every frame.
|
|
16
17
|
*/
|
|
@@ -20,6 +21,6 @@ type ITickerProgrationExponential = {
|
|
|
20
21
|
*/
|
|
21
22
|
limit?: number;
|
|
22
23
|
type: "exponential";
|
|
23
|
-
}
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
export type {
|
|
26
|
+
export type { TickerProgrationExponential, TickerProgrationLinear, TickerProgrationType as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
type TickerProgrationType =
|
|
2
|
-
|
|
1
|
+
type TickerProgrationType = TickerProgrationLinear | TickerProgrationExponential;
|
|
2
|
+
|
|
3
|
+
interface TickerProgrationLinear {
|
|
3
4
|
/**
|
|
4
5
|
* The amount of the speed to increase every frame.
|
|
5
6
|
*/
|
|
@@ -9,8 +10,8 @@ type ITickerProgrationLinear = {
|
|
|
9
10
|
*/
|
|
10
11
|
limit?: number;
|
|
11
12
|
type: "linear";
|
|
12
|
-
}
|
|
13
|
-
|
|
13
|
+
}
|
|
14
|
+
interface TickerProgrationExponential {
|
|
14
15
|
/**
|
|
15
16
|
* The percentage of the speed to increase every frame. if the percentage is 0.1, the speed will increase by 10% every frame.
|
|
16
17
|
*/
|
|
@@ -20,6 +21,6 @@ type ITickerProgrationExponential = {
|
|
|
20
21
|
*/
|
|
21
22
|
limit?: number;
|
|
22
23
|
type: "exponential";
|
|
23
|
-
}
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
export type {
|
|
26
|
+
export type { TickerProgrationExponential, TickerProgrationLinear, TickerProgrationType as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/interface/TickersSteps.ts
|
|
17
|
+
var TickersSteps_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(TickersSteps_exports);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
-
import { a as TickerArgsType } from '../TickerBase-eU4Hvvy0.cjs';
|
|
3
2
|
import { PauseType } from '../types/PauseType.cjs';
|
|
4
3
|
import { RepeatType } from '../types/RepeatType.cjs';
|
|
5
|
-
import '
|
|
6
|
-
import '../types/TickerIdType.cjs';
|
|
4
|
+
import TickerArgs from './TickerArgs.cjs';
|
|
7
5
|
|
|
8
|
-
interface
|
|
6
|
+
interface TickersStep<TArgs extends TickerArgs> {
|
|
9
7
|
/**
|
|
10
8
|
* Ticker class name
|
|
11
9
|
*/
|
|
@@ -26,7 +24,7 @@ interface ITickersStep<TArgs extends TickerArgsType> {
|
|
|
26
24
|
/**
|
|
27
25
|
* The steps of the tickers
|
|
28
26
|
*/
|
|
29
|
-
interface
|
|
27
|
+
interface TickersSteps {
|
|
30
28
|
/**
|
|
31
29
|
* The step number
|
|
32
30
|
*/
|
|
@@ -34,7 +32,7 @@ interface ITickersSteps {
|
|
|
34
32
|
/**
|
|
35
33
|
* The steps of the tickers
|
|
36
34
|
*/
|
|
37
|
-
steps: (
|
|
35
|
+
steps: (TickersStep<any> | RepeatType | PauseType)[];
|
|
38
36
|
}
|
|
39
37
|
|
|
40
|
-
export type {
|
|
38
|
+
export type { TickersStep, TickersSteps as default };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { UPDATE_PRIORITY } from 'pixi.js';
|
|
2
|
-
import { a as TickerArgsType } from '../TickerBase-DbIg7gDS.js';
|
|
3
2
|
import { PauseType } from '../types/PauseType.js';
|
|
4
3
|
import { RepeatType } from '../types/RepeatType.js';
|
|
5
|
-
import '
|
|
6
|
-
import '../types/TickerIdType.js';
|
|
4
|
+
import TickerArgs from './TickerArgs.js';
|
|
7
5
|
|
|
8
|
-
interface
|
|
6
|
+
interface TickersStep<TArgs extends TickerArgs> {
|
|
9
7
|
/**
|
|
10
8
|
* Ticker class name
|
|
11
9
|
*/
|
|
@@ -26,7 +24,7 @@ interface ITickersStep<TArgs extends TickerArgsType> {
|
|
|
26
24
|
/**
|
|
27
25
|
* The steps of the tickers
|
|
28
26
|
*/
|
|
29
|
-
interface
|
|
27
|
+
interface TickersSteps {
|
|
30
28
|
/**
|
|
31
29
|
* The step number
|
|
32
30
|
*/
|
|
@@ -34,7 +32,7 @@ interface ITickersSteps {
|
|
|
34
32
|
/**
|
|
35
33
|
* The steps of the tickers
|
|
36
34
|
*/
|
|
37
|
-
steps: (
|
|
35
|
+
steps: (TickersStep<any> | RepeatType | PauseType)[];
|
|
38
36
|
}
|
|
39
37
|
|
|
40
|
-
export type {
|
|
38
|
+
export type { TickersStep, TickersSteps as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/interface/canvas/TextureMemory.ts
|
|
17
|
+
var TextureMemory_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(TextureMemory_exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/interface/canvas/canvas-memory.ts
|
|
17
|
+
var canvas_memory_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(canvas_memory_exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ContainerOptions, SpriteOptions, TextOptions } from 'pixi.js';
|
|
2
|
+
import TextureMemory from './TextureMemory.cjs';
|
|
3
|
+
import { EventIdType } from '../../types/EventIdType.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for the canvas base memory
|
|
7
|
+
*/
|
|
8
|
+
interface CanvasBaseMemory {
|
|
9
|
+
pixivnId: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Interface for the canvas container memory
|
|
13
|
+
*/
|
|
14
|
+
interface CanvasContainerMemory extends ContainerOptions, CanvasBaseMemory {
|
|
15
|
+
elements: CanvasBaseMemory[];
|
|
16
|
+
}
|
|
17
|
+
interface CanvasSpriteBaseMemory extends SpriteOptions, CanvasBaseMemory {
|
|
18
|
+
textureImage: TextureMemory;
|
|
19
|
+
onEvents: {
|
|
20
|
+
[name: CanvasEventNamesType]: EventIdType;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Interface for the canvas sprite memory
|
|
25
|
+
*/
|
|
26
|
+
interface CanvasSpriteMemory extends CanvasSpriteBaseMemory {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Interface for the canvas text memory
|
|
30
|
+
*/
|
|
31
|
+
interface CanvasTextMemory extends TextOptions, CanvasBaseMemory {
|
|
32
|
+
onEvents: {
|
|
33
|
+
[name: CanvasEventNamesType]: EventIdType;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The memory of the image. It uses for save the state of the image.
|
|
38
|
+
*/
|
|
39
|
+
interface CanvasImageMemory extends CanvasSpriteBaseMemory {
|
|
40
|
+
imageLink: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The memory of the video. It uses for save the state of the video.
|
|
44
|
+
*/
|
|
45
|
+
interface CanvasVideoMemory extends CanvasImageMemory {
|
|
46
|
+
loop: boolean;
|
|
47
|
+
paused: boolean;
|
|
48
|
+
currentTime: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type { CanvasBaseMemory, CanvasContainerMemory, CanvasImageMemory, CanvasSpriteBaseMemory, CanvasSpriteMemory, CanvasTextMemory, CanvasVideoMemory };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ContainerOptions, SpriteOptions, TextOptions } from 'pixi.js';
|
|
2
|
+
import TextureMemory from './TextureMemory.js';
|
|
3
|
+
import { EventIdType } from '../../types/EventIdType.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for the canvas base memory
|
|
7
|
+
*/
|
|
8
|
+
interface CanvasBaseMemory {
|
|
9
|
+
pixivnId: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Interface for the canvas container memory
|
|
13
|
+
*/
|
|
14
|
+
interface CanvasContainerMemory extends ContainerOptions, CanvasBaseMemory {
|
|
15
|
+
elements: CanvasBaseMemory[];
|
|
16
|
+
}
|
|
17
|
+
interface CanvasSpriteBaseMemory extends SpriteOptions, CanvasBaseMemory {
|
|
18
|
+
textureImage: TextureMemory;
|
|
19
|
+
onEvents: {
|
|
20
|
+
[name: CanvasEventNamesType]: EventIdType;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Interface for the canvas sprite memory
|
|
25
|
+
*/
|
|
26
|
+
interface CanvasSpriteMemory extends CanvasSpriteBaseMemory {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Interface for the canvas text memory
|
|
30
|
+
*/
|
|
31
|
+
interface CanvasTextMemory extends TextOptions, CanvasBaseMemory {
|
|
32
|
+
onEvents: {
|
|
33
|
+
[name: CanvasEventNamesType]: EventIdType;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The memory of the image. It uses for save the state of the image.
|
|
38
|
+
*/
|
|
39
|
+
interface CanvasImageMemory extends CanvasSpriteBaseMemory {
|
|
40
|
+
imageLink: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The memory of the video. It uses for save the state of the video.
|
|
44
|
+
*/
|
|
45
|
+
interface CanvasVideoMemory extends CanvasImageMemory {
|
|
46
|
+
loop: boolean;
|
|
47
|
+
paused: boolean;
|
|
48
|
+
currentTime: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type { CanvasBaseMemory, CanvasContainerMemory, CanvasImageMemory, CanvasSpriteBaseMemory, CanvasSpriteMemory, CanvasTextMemory, CanvasVideoMemory };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/interface/canvas/effect-props.ts
|
|
17
|
+
var effect_props_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(effect_props_exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import TickerProgrationType from '../TickerProgrationType.cjs';
|
|
2
|
+
|
|
3
|
+
interface ShakeEffectProps {
|
|
4
|
+
/**
|
|
5
|
+
* The speed of the shake effect. @default 20
|
|
6
|
+
*/
|
|
7
|
+
speed?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The progression of the speed
|
|
10
|
+
*/
|
|
11
|
+
speedProgression?: TickerProgrationType;
|
|
12
|
+
/**
|
|
13
|
+
* If true, the effect only starts if the canvas element have a texture
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
startOnlyIfHaveTexture?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The number of shocks. **Must be at least 3**.
|
|
19
|
+
* @default 10
|
|
20
|
+
*/
|
|
21
|
+
shocksNumber?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The type of the shake effect
|
|
24
|
+
* @default "horizontal"
|
|
25
|
+
*/
|
|
26
|
+
type?: "horizontal" | "vertical";
|
|
27
|
+
/**
|
|
28
|
+
* The maximum size of the shock.
|
|
29
|
+
* For horizontal type, it is the maximum size of the x axis.
|
|
30
|
+
* For vertical type, it is the maximum size of the y axis.
|
|
31
|
+
* @default 10
|
|
32
|
+
*/
|
|
33
|
+
maximumShockSize?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type { ShakeEffectProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import TickerProgrationType from '../TickerProgrationType.js';
|
|
2
|
+
|
|
3
|
+
interface ShakeEffectProps {
|
|
4
|
+
/**
|
|
5
|
+
* The speed of the shake effect. @default 20
|
|
6
|
+
*/
|
|
7
|
+
speed?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The progression of the speed
|
|
10
|
+
*/
|
|
11
|
+
speedProgression?: TickerProgrationType;
|
|
12
|
+
/**
|
|
13
|
+
* If true, the effect only starts if the canvas element have a texture
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
startOnlyIfHaveTexture?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The number of shocks. **Must be at least 3**.
|
|
19
|
+
* @default 10
|
|
20
|
+
*/
|
|
21
|
+
shocksNumber?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The type of the shake effect
|
|
24
|
+
* @default "horizontal"
|
|
25
|
+
*/
|
|
26
|
+
type?: "horizontal" | "vertical";
|
|
27
|
+
/**
|
|
28
|
+
* The maximum size of the shock.
|
|
29
|
+
* For horizontal type, it is the maximum size of the x axis.
|
|
30
|
+
* For vertical type, it is the maximum size of the y axis.
|
|
31
|
+
* @default 10
|
|
32
|
+
*/
|
|
33
|
+
maximumShockSize?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type { ShakeEffectProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/interface/canvas/transition-props.ts
|
|
17
|
+
var transition_props_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(transition_props_exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FadeAlphaTickerProps } from '../../types/ticker/FadeAlphaTickerProps.cjs';
|
|
2
|
+
import { MoveTickerProps } from '../../types/ticker/MoveTickerProps.cjs';
|
|
3
|
+
import { ZoomTickerProps } from '../../types/ticker/ZoomTickerProps.cjs';
|
|
4
|
+
import { aliasToRemoveAfterType } from '../../types/ticker/AliasToRemoveAfterType.cjs';
|
|
5
|
+
import '../TickerProgrationType.cjs';
|
|
6
|
+
|
|
7
|
+
interface BaseTransitionProps {
|
|
8
|
+
/**
|
|
9
|
+
* If true, the transition will be completed before the next step.
|
|
10
|
+
* For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step.
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
mustBeCompletedBeforeNextStep?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface ShowWithDissolveTransitionProps extends BaseTransitionProps, Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture"> {
|
|
16
|
+
}
|
|
17
|
+
interface ShowWithFadeTransitionProps extends BaseTransitionProps, Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture"> {
|
|
18
|
+
}
|
|
19
|
+
interface MoveInOutProps extends BaseTransitionProps, Omit<MoveTickerProps, aliasToRemoveAfterType | "startOnlyIfHaveTexture" | "destination" | "isPushInOut"> {
|
|
20
|
+
/**
|
|
21
|
+
* The direction of the movement.
|
|
22
|
+
*/
|
|
23
|
+
direction?: "up" | "down" | "left" | "right";
|
|
24
|
+
}
|
|
25
|
+
interface ZoomInOutProps extends BaseTransitionProps, Omit<ZoomTickerProps, "startOnlyIfHaveTexture" | "type" | "limit" | "isZoomInOut"> {
|
|
26
|
+
/**
|
|
27
|
+
* The direction of the zoom effect.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "up" | "down" | "left" | "right";
|
|
30
|
+
}
|
|
31
|
+
interface PushInOutProps extends BaseTransitionProps, Omit<MoveTickerProps, "startOnlyIfHaveTexture" | "destination" | "isPushInOut"> {
|
|
32
|
+
/**
|
|
33
|
+
* The direction of the push effect.
|
|
34
|
+
*/
|
|
35
|
+
direction?: "up" | "down" | "left" | "right";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type { MoveInOutProps, PushInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FadeAlphaTickerProps } from '../../types/ticker/FadeAlphaTickerProps.js';
|
|
2
|
+
import { MoveTickerProps } from '../../types/ticker/MoveTickerProps.js';
|
|
3
|
+
import { ZoomTickerProps } from '../../types/ticker/ZoomTickerProps.js';
|
|
4
|
+
import { aliasToRemoveAfterType } from '../../types/ticker/AliasToRemoveAfterType.js';
|
|
5
|
+
import '../TickerProgrationType.js';
|
|
6
|
+
|
|
7
|
+
interface BaseTransitionProps {
|
|
8
|
+
/**
|
|
9
|
+
* If true, the transition will be completed before the next step.
|
|
10
|
+
* For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step.
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
mustBeCompletedBeforeNextStep?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface ShowWithDissolveTransitionProps extends BaseTransitionProps, Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture"> {
|
|
16
|
+
}
|
|
17
|
+
interface ShowWithFadeTransitionProps extends BaseTransitionProps, Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture"> {
|
|
18
|
+
}
|
|
19
|
+
interface MoveInOutProps extends BaseTransitionProps, Omit<MoveTickerProps, aliasToRemoveAfterType | "startOnlyIfHaveTexture" | "destination" | "isPushInOut"> {
|
|
20
|
+
/**
|
|
21
|
+
* The direction of the movement.
|
|
22
|
+
*/
|
|
23
|
+
direction?: "up" | "down" | "left" | "right";
|
|
24
|
+
}
|
|
25
|
+
interface ZoomInOutProps extends BaseTransitionProps, Omit<ZoomTickerProps, "startOnlyIfHaveTexture" | "type" | "limit" | "isZoomInOut"> {
|
|
26
|
+
/**
|
|
27
|
+
* The direction of the zoom effect.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "up" | "down" | "left" | "right";
|
|
30
|
+
}
|
|
31
|
+
interface PushInOutProps extends BaseTransitionProps, Omit<MoveTickerProps, "startOnlyIfHaveTexture" | "destination" | "isPushInOut"> {
|
|
32
|
+
/**
|
|
33
|
+
* The direction of the push effect.
|
|
34
|
+
*/
|
|
35
|
+
direction?: "up" | "down" | "left" | "right";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type { MoveInOutProps, PushInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import PauseTickerType from '../../types/PauseTickerType.cjs';
|
|
2
|
-
import
|
|
3
|
-
import ITickersSteps from '../ITickersSteps.cjs';
|
|
2
|
+
import { CanvasBaseMemory, CanvasContainerMemory } from '../canvas/canvas-memory.cjs';
|
|
4
3
|
import { TickerHistoryForExport } from '../TickerHistory.cjs';
|
|
4
|
+
import TickersSteps from '../TickersSteps.cjs';
|
|
5
5
|
import 'pixi.js';
|
|
6
|
-
import '
|
|
7
|
-
import '../../types/
|
|
6
|
+
import '../canvas/TextureMemory.cjs';
|
|
7
|
+
import '../../types/EventIdType.cjs';
|
|
8
8
|
import '../../types/TickerIdType.cjs';
|
|
9
|
+
import '../TickerArgs.cjs';
|
|
9
10
|
import '../../types/PauseType.cjs';
|
|
10
11
|
import '../../types/RepeatType.cjs';
|
|
11
12
|
|
|
@@ -18,12 +19,13 @@ interface ExportedCanvas {
|
|
|
18
19
|
};
|
|
19
20
|
tickersSteps: {
|
|
20
21
|
[alias: string]: {
|
|
21
|
-
[tickerId: string]:
|
|
22
|
+
[tickerId: string]: TickersSteps;
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
elements: {
|
|
25
|
-
[alias: string]:
|
|
26
|
+
[alias: string]: CanvasBaseMemory;
|
|
26
27
|
};
|
|
28
|
+
stage: Partial<CanvasContainerMemory>;
|
|
27
29
|
elementAliasesOrder: string[];
|
|
28
30
|
tickersOnPause: {
|
|
29
31
|
[alias: string]: PauseTickerType;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import PauseTickerType from '../../types/PauseTickerType.js';
|
|
2
|
-
import
|
|
3
|
-
import ITickersSteps from '../ITickersSteps.js';
|
|
2
|
+
import { CanvasBaseMemory, CanvasContainerMemory } from '../canvas/canvas-memory.js';
|
|
4
3
|
import { TickerHistoryForExport } from '../TickerHistory.js';
|
|
4
|
+
import TickersSteps from '../TickersSteps.js';
|
|
5
5
|
import 'pixi.js';
|
|
6
|
-
import '
|
|
7
|
-
import '../../types/
|
|
6
|
+
import '../canvas/TextureMemory.js';
|
|
7
|
+
import '../../types/EventIdType.js';
|
|
8
8
|
import '../../types/TickerIdType.js';
|
|
9
|
+
import '../TickerArgs.js';
|
|
9
10
|
import '../../types/PauseType.js';
|
|
10
11
|
import '../../types/RepeatType.js';
|
|
11
12
|
|
|
@@ -18,12 +19,13 @@ interface ExportedCanvas {
|
|
|
18
19
|
};
|
|
19
20
|
tickersSteps: {
|
|
20
21
|
[alias: string]: {
|
|
21
|
-
[tickerId: string]:
|
|
22
|
+
[tickerId: string]: TickersSteps;
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
elements: {
|
|
25
|
-
[alias: string]:
|
|
26
|
+
[alias: string]: CanvasBaseMemory;
|
|
26
27
|
};
|
|
28
|
+
stage: Partial<CanvasContainerMemory>;
|
|
27
29
|
elementAliasesOrder: string[];
|
|
28
30
|
tickersOnPause: {
|
|
29
31
|
[alias: string]: PauseTickerType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import HistoryStep, { HistoryStepData } from '../HistoryStep.cjs';
|
|
2
|
+
import OpenedLabel from '../OpenedLabel.cjs';
|
|
3
3
|
import 'deep-diff';
|
|
4
4
|
import '../../classes/ChoiceMenuOption.cjs';
|
|
5
|
-
import '../../types/StorageElementType.cjs';
|
|
6
5
|
import '../../types/LabelIdType.cjs';
|
|
6
|
+
import '../../types/StorageElementType.cjs';
|
|
7
7
|
import '../../classes/Label.cjs';
|
|
8
8
|
import '../../classes/LabelAbstract.cjs';
|
|
9
9
|
import '../../types/StepLabelType.cjs';
|
|
@@ -13,14 +13,16 @@ import '../../types/CloseType.cjs';
|
|
|
13
13
|
import '../../types/LabelRunModeType.cjs';
|
|
14
14
|
import './ExportedCanvas.cjs';
|
|
15
15
|
import '../../types/PauseTickerType.cjs';
|
|
16
|
-
import '../canvas/
|
|
17
|
-
import '../ITickersSteps.cjs';
|
|
16
|
+
import '../canvas/canvas-memory.cjs';
|
|
18
17
|
import 'pixi.js';
|
|
19
|
-
import '
|
|
18
|
+
import '../canvas/TextureMemory.cjs';
|
|
19
|
+
import '../../types/EventIdType.cjs';
|
|
20
|
+
import '../TickerHistory.cjs';
|
|
20
21
|
import '../../types/TickerIdType.cjs';
|
|
22
|
+
import '../TickerArgs.cjs';
|
|
23
|
+
import '../TickersSteps.cjs';
|
|
21
24
|
import '../../types/PauseType.cjs';
|
|
22
25
|
import '../../types/RepeatType.cjs';
|
|
23
|
-
import '../TickerHistory.cjs';
|
|
24
26
|
import './ExportedSounds.cjs';
|
|
25
27
|
import '../SoundOptions.cjs';
|
|
26
28
|
import '@pixi/sound';
|
|
@@ -33,10 +35,10 @@ import '../CharacterInterface.cjs';
|
|
|
33
35
|
* Interface exported step data
|
|
34
36
|
*/
|
|
35
37
|
interface ExportedStep {
|
|
36
|
-
stepsHistory:
|
|
37
|
-
openedLabels:
|
|
38
|
+
stepsHistory: HistoryStep[];
|
|
39
|
+
openedLabels: OpenedLabel[];
|
|
38
40
|
lastStepIndex: number;
|
|
39
|
-
originalStepData:
|
|
41
|
+
originalStepData: HistoryStepData | undefined;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export type { ExportedStep as default };
|