@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,94 +0,0 @@
|
|
|
1
|
-
import { UPDATE_PRIORITY, Ticker } from 'pixi.js';
|
|
2
|
-
import { StorageElementType } from './types/StorageElementType.cjs';
|
|
3
|
-
import { TickerIdType } from './types/TickerIdType.cjs';
|
|
4
|
-
|
|
5
|
-
interface ITicker<TArgs extends TickerArgsType> {
|
|
6
|
-
/**
|
|
7
|
-
* Arguments to pass to the ticker
|
|
8
|
-
*/
|
|
9
|
-
args: TArgs;
|
|
10
|
-
/**
|
|
11
|
-
* Duration in seconds to run the ticker
|
|
12
|
-
*/
|
|
13
|
-
duration?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Priority of the ticker
|
|
16
|
-
*/
|
|
17
|
-
priority?: UPDATE_PRIORITY;
|
|
18
|
-
/**
|
|
19
|
-
* Get the id of the ticker. This variable is used in the system to get the ticker by id, {@link geTickerInstanceById}
|
|
20
|
-
*/
|
|
21
|
-
id: TickerIdType;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
type TickerArgsType = {
|
|
25
|
-
[id: string]: StorageElementType;
|
|
26
|
-
} | {
|
|
27
|
-
aliasToRemoveAfter?: string[] | string;
|
|
28
|
-
[id: string]: StorageElementType;
|
|
29
|
-
}[];
|
|
30
|
-
/**
|
|
31
|
-
* A class is used to create a ticker element to add into a Pixi Application.
|
|
32
|
-
* You can use {@link canvas.addTicker()} to add this element into the application.
|
|
33
|
-
* This class should be extended and the fn method should be overridden.
|
|
34
|
-
* You must use the {@link tickerDecorator} to register the ticker in the game.
|
|
35
|
-
* In Ren'Py is a transform.
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* \@tickerDecorator() // this is equivalent to tickerDecorator("RotateTicker")
|
|
39
|
-
* export class RotateTicker extends TickerBase<{ speed?: number }> {
|
|
40
|
-
* override fn(
|
|
41
|
-
* t: Ticker, // the ticker that is calling this method
|
|
42
|
-
* args: { // the arguments that you passed when you added the ticker
|
|
43
|
-
* speed?: number,
|
|
44
|
-
* },
|
|
45
|
-
* aliases: string[], // the aliases of the canvas elements that are connected to this ticker
|
|
46
|
-
* tickerId: string, // the id of the ticker. You can use this to get the ticker from the canvas.currentTickers
|
|
47
|
-
* ): void {
|
|
48
|
-
* let speed = args.speed === undefined ? 0.1 : args.speed
|
|
49
|
-
* aliases.forEach((alias) => {
|
|
50
|
-
* let element = canvas.find(alias)
|
|
51
|
-
* if (element && element instanceof Container) {
|
|
52
|
-
* if (clockwise)
|
|
53
|
-
* element.rotation += speed * t.deltaTime
|
|
54
|
-
* else
|
|
55
|
-
* element.rotation -= speed * t.deltaTime
|
|
56
|
-
* }
|
|
57
|
-
* })
|
|
58
|
-
* }
|
|
59
|
-
* }
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
declare class TickerBase<TArgs extends TickerArgsType> implements ITicker<TArgs> {
|
|
63
|
-
/**
|
|
64
|
-
* @param args The arguments that you want to pass to the ticker.
|
|
65
|
-
* @param duration The duration of the ticker in seconds. If is undefined, the step will end only when the animation is finished (if the animation doesn't have a goal to reach then it won't finish). @default undefined
|
|
66
|
-
* @param priority The priority of the ticker. @default UPDATE_PRIORITY.NORMAL
|
|
67
|
-
*/
|
|
68
|
-
constructor(args: TArgs, duration?: number, priority?: UPDATE_PRIORITY);
|
|
69
|
-
/**
|
|
70
|
-
* Get the id of the ticker. This variable is used in the system to get the ticker by id, {@link geTickerInstanceById}
|
|
71
|
-
*/
|
|
72
|
-
id: TickerIdType;
|
|
73
|
-
args: TArgs;
|
|
74
|
-
duration?: number;
|
|
75
|
-
priority?: UPDATE_PRIORITY;
|
|
76
|
-
/**
|
|
77
|
-
* The method that will be called every frame.
|
|
78
|
-
* This method should be overridden and you can use {@link canvas.add()} to get the canvas element of the canvas, and edit them.
|
|
79
|
-
* @param _ticker The ticker that is calling this method
|
|
80
|
-
* @param _args The arguments that you passed when you added the ticker
|
|
81
|
-
* @param _alias The alias of the canvas elements that are connected to this ticker
|
|
82
|
-
* @param _tickerId The id of the ticker. You can use this to get the ticker from the {@link canvas.currentTickers}
|
|
83
|
-
*/
|
|
84
|
-
fn(_ticker: Ticker, _args: TArgs, _alias: string | string[], _tickerId: string): void;
|
|
85
|
-
/**
|
|
86
|
-
* This method is called when the ticker is added to the canvas.
|
|
87
|
-
* @param alias The alias of the canvas elements that are connected to this ticker
|
|
88
|
-
* @param tickerId The id of the ticker. You can use this to get the ticker from the {@link canvas.currentTickers}
|
|
89
|
-
* @param options The options that you passed when you added the ticker
|
|
90
|
-
*/
|
|
91
|
-
onEndOfTicker(_alias: string | string[], tickerId: string, args: TArgs): void;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export { type ITicker as I, TickerBase as T, type TickerArgsType as a };
|
package/dist/chunk-II324FA5.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
imagesAnimationsTest
|
|
3
|
-
} from "./chunk-WJ5SUJTD.js";
|
|
4
|
-
import {
|
|
5
|
-
inputTestLabel
|
|
6
|
-
} from "./chunk-MKN3AKFV.js";
|
|
7
|
-
import {
|
|
8
|
-
markdownTest
|
|
9
|
-
} from "./chunk-CUYGFKNS.js";
|
|
10
|
-
import {
|
|
11
|
-
soundTestLabel
|
|
12
|
-
} from "./chunk-DI77NC2O.js";
|
|
13
|
-
import {
|
|
14
|
-
stepLabelTestLAbel
|
|
15
|
-
} from "./chunk-M6X6FHCH.js";
|
|
16
|
-
import {
|
|
17
|
-
videoTest
|
|
18
|
-
} from "./chunk-7IWXRHUU.js";
|
|
19
|
-
import {
|
|
20
|
-
baseCanvasElementTestLabel
|
|
21
|
-
} from "./chunk-2FSBBQFF.js";
|
|
22
|
-
import {
|
|
23
|
-
canvasEventsTestLabel
|
|
24
|
-
} from "./chunk-ENMHDS5Q.js";
|
|
25
|
-
import {
|
|
26
|
-
customTickerCanvasElementTestLabel
|
|
27
|
-
} from "./chunk-T4KKYU4J.js";
|
|
28
|
-
import {
|
|
29
|
-
juliette
|
|
30
|
-
} from "./chunk-UWXYEVOE.js";
|
|
31
|
-
import {
|
|
32
|
-
ChoiceMenuOption,
|
|
33
|
-
canvas,
|
|
34
|
-
narration,
|
|
35
|
-
newLabel
|
|
36
|
-
} from "./chunk-3FJYYZOP.js";
|
|
37
|
-
import {
|
|
38
|
-
PIXIVN_VERSION
|
|
39
|
-
} from "./chunk-FYCYVQTG.js";
|
|
40
|
-
|
|
41
|
-
// src/labels/StartLabel.ts
|
|
42
|
-
var pixivnTestStartLabel = newLabel(
|
|
43
|
-
"___pixi_vn_example_start_label___",
|
|
44
|
-
[
|
|
45
|
-
() => {
|
|
46
|
-
let currentTimeName = "";
|
|
47
|
-
const hour = (/* @__PURE__ */ new Date()).getHours();
|
|
48
|
-
if (hour >= 5 && hour < 12) {
|
|
49
|
-
currentTimeName = "morning\u{1F505}";
|
|
50
|
-
} else if (hour >= 12 && hour < 18) {
|
|
51
|
-
currentTimeName = "afternoon\u{1F506}";
|
|
52
|
-
} else if (hour >= 18 && hour < 22) {
|
|
53
|
-
currentTimeName = "evening\u26C5";
|
|
54
|
-
} else {
|
|
55
|
-
currentTimeName = "night\u{1F319}";
|
|
56
|
-
}
|
|
57
|
-
narration.dialogue = { character: juliette, text: `Good ${currentTimeName}! I'm ${juliette.name}, your virtual assistant. I'm here to help you with your tests.` };
|
|
58
|
-
},
|
|
59
|
-
() => narration.dialogue = { character: juliette, text: `You are running the Pixi\u2019VN v${PIXIVN_VERSION} test. This test will guide you through the different features of the library.` },
|
|
60
|
-
(props) => narration.jumpLabel(pixivnTestStartLabel2, props)
|
|
61
|
-
]
|
|
62
|
-
);
|
|
63
|
-
var openLink = newLabel(
|
|
64
|
-
"___pixi_vn_open_link___",
|
|
65
|
-
[
|
|
66
|
-
async (props) => {
|
|
67
|
-
window.open(props.link);
|
|
68
|
-
await narration.goNext(props);
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
);
|
|
72
|
-
var RESTART_TEST_LABEL = "___pixi_vn_restart_test_label___";
|
|
73
|
-
var pixivnTestStartLabel2 = newLabel(
|
|
74
|
-
RESTART_TEST_LABEL,
|
|
75
|
-
[
|
|
76
|
-
() => {
|
|
77
|
-
canvas.clear();
|
|
78
|
-
narration.dialogue = { character: juliette, text: "Which test would you like to start with?" };
|
|
79
|
-
narration.choiceMenuOptions = [
|
|
80
|
-
new ChoiceMenuOption("Open Pixi\u2019VN Wiki", openLink, { link: "https://pixi-vn.web.app/" }),
|
|
81
|
-
new ChoiceMenuOption("Open Pixi\u2019VN Discord", openLink, { link: "https://discord.gg/E95FZWakzp" }),
|
|
82
|
-
new ChoiceMenuOption("Open Pixi\u2019VN Github Issues", openLink, { link: "https://github.com/DRincs-Productions/pixi-vn/issues" }),
|
|
83
|
-
new ChoiceMenuOption("Images, Transitions and Animations Test", imagesAnimationsTest, {}),
|
|
84
|
-
new ChoiceMenuOption("Video Test", videoTest, {}),
|
|
85
|
-
new ChoiceMenuOption("Canvas Events Test", canvasEventsTestLabel, {}),
|
|
86
|
-
new ChoiceMenuOption("Sound Test", soundTestLabel, {}),
|
|
87
|
-
new ChoiceMenuOption("Base Canvas Element Test", baseCanvasElementTestLabel, {}),
|
|
88
|
-
new ChoiceMenuOption("Custom Ticker Canvas Element Test", customTickerCanvasElementTestLabel, {}),
|
|
89
|
-
new ChoiceMenuOption("Steps and Labels Test", stepLabelTestLAbel, {}),
|
|
90
|
-
new ChoiceMenuOption("Markdown Test", markdownTest, {}),
|
|
91
|
-
new ChoiceMenuOption("Input Test", inputTestLabel, {})
|
|
92
|
-
];
|
|
93
|
-
},
|
|
94
|
-
(props) => narration.jumpLabel(RESTART_TEST_LABEL, props)
|
|
95
|
-
]
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
pixivnTestStartLabel,
|
|
100
|
-
pixivnTestStartLabel2
|
|
101
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ITickersSteps.ts
|
|
17
|
-
var ITickersSteps_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ITickersSteps_exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ICanvasBaseMemory.ts
|
|
17
|
-
var ICanvasBaseMemory_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ICanvasBaseMemory_exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ICanvasContainerMemory.ts
|
|
17
|
-
var ICanvasContainerMemory_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ICanvasContainerMemory_exports);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContainerOptions } from 'pixi.js';
|
|
2
|
-
import ICanvasBaseMemory from './ICanvasBaseMemory.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface for the canvas container memory
|
|
6
|
-
*/
|
|
7
|
-
interface ICanvasContainerMemory extends ContainerOptions, ICanvasBaseMemory {
|
|
8
|
-
elements: ICanvasBaseMemory[];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type { ICanvasContainerMemory as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContainerOptions } from 'pixi.js';
|
|
2
|
-
import ICanvasBaseMemory from './ICanvasBaseMemory.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface for the canvas container memory
|
|
6
|
-
*/
|
|
7
|
-
interface ICanvasContainerMemory extends ContainerOptions, ICanvasBaseMemory {
|
|
8
|
-
elements: ICanvasBaseMemory[];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type { ICanvasContainerMemory as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ICanvasImageMemory.ts
|
|
17
|
-
var ICanvasImageMemory_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ICanvasImageMemory_exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ICanvasSpriteBaseMemory } from './ICanvasSpriteMemory.cjs';
|
|
2
|
-
import 'pixi.js';
|
|
3
|
-
import './ICanvasBaseMemory.cjs';
|
|
4
|
-
import '../../types/EventIdType.cjs';
|
|
5
|
-
import './ITextureMemory.cjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The memory of the image. It uses for save the state of the image.
|
|
9
|
-
*/
|
|
10
|
-
interface ICanvasImageMemory extends ICanvasSpriteBaseMemory {
|
|
11
|
-
imageLink: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { ICanvasImageMemory as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ICanvasSpriteBaseMemory } from './ICanvasSpriteMemory.js';
|
|
2
|
-
import 'pixi.js';
|
|
3
|
-
import './ICanvasBaseMemory.js';
|
|
4
|
-
import '../../types/EventIdType.js';
|
|
5
|
-
import './ITextureMemory.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The memory of the image. It uses for save the state of the image.
|
|
9
|
-
*/
|
|
10
|
-
interface ICanvasImageMemory extends ICanvasSpriteBaseMemory {
|
|
11
|
-
imageLink: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { ICanvasImageMemory as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ICanvasSpriteMemory.ts
|
|
17
|
-
var ICanvasSpriteMemory_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ICanvasSpriteMemory_exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SpriteOptions } from 'pixi.js';
|
|
2
|
-
import ICanvasBaseMemory from './ICanvasBaseMemory.cjs';
|
|
3
|
-
import { EventIdType } from '../../types/EventIdType.cjs';
|
|
4
|
-
import ITextureMemory from './ITextureMemory.cjs';
|
|
5
|
-
|
|
6
|
-
interface ICanvasSpriteBaseMemory extends SpriteOptions, ICanvasBaseMemory {
|
|
7
|
-
textureImage: ITextureMemory;
|
|
8
|
-
onEvents: {
|
|
9
|
-
[name: CanvasEventNamesType]: EventIdType;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Interface for the canvas sprite memory
|
|
14
|
-
*/
|
|
15
|
-
interface ICanvasSpriteMemory extends ICanvasSpriteBaseMemory {
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type { ICanvasSpriteBaseMemory, ICanvasSpriteMemory as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SpriteOptions } from 'pixi.js';
|
|
2
|
-
import ICanvasBaseMemory from './ICanvasBaseMemory.js';
|
|
3
|
-
import { EventIdType } from '../../types/EventIdType.js';
|
|
4
|
-
import ITextureMemory from './ITextureMemory.js';
|
|
5
|
-
|
|
6
|
-
interface ICanvasSpriteBaseMemory extends SpriteOptions, ICanvasBaseMemory {
|
|
7
|
-
textureImage: ITextureMemory;
|
|
8
|
-
onEvents: {
|
|
9
|
-
[name: CanvasEventNamesType]: EventIdType;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Interface for the canvas sprite memory
|
|
14
|
-
*/
|
|
15
|
-
interface ICanvasSpriteMemory extends ICanvasSpriteBaseMemory {
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type { ICanvasSpriteBaseMemory, ICanvasSpriteMemory as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ICanvasTextTextMemory.ts
|
|
17
|
-
var ICanvasTextTextMemory_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ICanvasTextTextMemory_exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TextOptions } from 'pixi.js';
|
|
2
|
-
import ICanvasBaseMemory from './ICanvasBaseMemory.cjs';
|
|
3
|
-
import { EventIdType } from '../../types/EventIdType.cjs';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interface for the canvas text memory
|
|
7
|
-
*/
|
|
8
|
-
interface ICanvasTextMemory extends TextOptions, ICanvasBaseMemory {
|
|
9
|
-
onEvents: {
|
|
10
|
-
[name: CanvasEventNamesType]: EventIdType;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { ICanvasTextMemory as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TextOptions } from 'pixi.js';
|
|
2
|
-
import ICanvasBaseMemory from './ICanvasBaseMemory.js';
|
|
3
|
-
import { EventIdType } from '../../types/EventIdType.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interface for the canvas text memory
|
|
7
|
-
*/
|
|
8
|
-
interface ICanvasTextMemory extends TextOptions, ICanvasBaseMemory {
|
|
9
|
-
onEvents: {
|
|
10
|
-
[name: CanvasEventNamesType]: EventIdType;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type { ICanvasTextMemory as default };
|
|
File without changes
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ICanvasVideoMemory.ts
|
|
17
|
-
var ICanvasVideoMemory_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ICanvasVideoMemory_exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import ICanvasImageMemory from './ICanvasImageMemory.cjs';
|
|
2
|
-
import './ICanvasSpriteMemory.cjs';
|
|
3
|
-
import 'pixi.js';
|
|
4
|
-
import './ICanvasBaseMemory.cjs';
|
|
5
|
-
import '../../types/EventIdType.cjs';
|
|
6
|
-
import './ITextureMemory.cjs';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* The memory of the video. It uses for save the state of the video.
|
|
10
|
-
*/
|
|
11
|
-
interface ICanvasVideoMemory extends ICanvasImageMemory {
|
|
12
|
-
loop: boolean;
|
|
13
|
-
paused: boolean;
|
|
14
|
-
currentTime: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type { ICanvasVideoMemory as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import ICanvasImageMemory from './ICanvasImageMemory.js';
|
|
2
|
-
import './ICanvasSpriteMemory.js';
|
|
3
|
-
import 'pixi.js';
|
|
4
|
-
import './ICanvasBaseMemory.js';
|
|
5
|
-
import '../../types/EventIdType.js';
|
|
6
|
-
import './ITextureMemory.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* The memory of the video. It uses for save the state of the video.
|
|
10
|
-
*/
|
|
11
|
-
interface ICanvasVideoMemory extends ICanvasImageMemory {
|
|
12
|
-
loop: boolean;
|
|
13
|
-
paused: boolean;
|
|
14
|
-
currentTime: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type { ICanvasVideoMemory as default };
|
|
File without changes
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ITextureMemory.ts
|
|
17
|
-
var ITextureMemory_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ITextureMemory_exports);
|
|
File without changes
|
|
@@ -1,18 +0,0 @@
|
|
|
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/ITransitionProps.ts
|
|
17
|
-
var ITransitionProps_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ITransitionProps_exports);
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
type ShowWithDissolveTransitionProps = Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture">;
|
|
8
|
-
type ShowWithFadeTransitionProps = Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture">;
|
|
9
|
-
type MoveInOutProps = {
|
|
10
|
-
/**
|
|
11
|
-
* The direction of the movement.
|
|
12
|
-
*/
|
|
13
|
-
direction?: "up" | "down" | "left" | "right";
|
|
14
|
-
} & Omit<MoveTickerProps, aliasToRemoveAfterType | "startOnlyIfHaveTexture" | "destination">;
|
|
15
|
-
type ZoomInOutProps = {
|
|
16
|
-
/**
|
|
17
|
-
* The direction of the zoom effect.
|
|
18
|
-
*/
|
|
19
|
-
direction?: "up" | "down" | "left" | "right";
|
|
20
|
-
} & Omit<ZoomTickerProps, aliasToRemoveAfterType | "startOnlyIfHaveTexture" | "type">;
|
|
21
|
-
|
|
22
|
-
export type { MoveInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps };
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
type ShowWithDissolveTransitionProps = Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture">;
|
|
8
|
-
type ShowWithFadeTransitionProps = Omit<FadeAlphaTickerProps, "type" | aliasToRemoveAfterType | "startOnlyIfHaveTexture">;
|
|
9
|
-
type MoveInOutProps = {
|
|
10
|
-
/**
|
|
11
|
-
* The direction of the movement.
|
|
12
|
-
*/
|
|
13
|
-
direction?: "up" | "down" | "left" | "right";
|
|
14
|
-
} & Omit<MoveTickerProps, aliasToRemoveAfterType | "startOnlyIfHaveTexture" | "destination">;
|
|
15
|
-
type ZoomInOutProps = {
|
|
16
|
-
/**
|
|
17
|
-
* The direction of the zoom effect.
|
|
18
|
-
*/
|
|
19
|
-
direction?: "up" | "down" | "left" | "right";
|
|
20
|
-
} & Omit<ZoomTickerProps, aliasToRemoveAfterType | "startOnlyIfHaveTexture" | "type">;
|
|
21
|
-
|
|
22
|
-
export type { MoveInOutProps, ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, ZoomInOutProps };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|