@drincs/pixi-vn 0.4.7 → 0.4.8
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/TickerBase-CFEJHstJ.d.mts +73 -0
- package/dist/TickerBase-CjfyD6j5.d.ts +73 -0
- package/dist/classes/CanvasEvent.d.mts +24 -0
- package/dist/classes/CanvasEvent.d.ts +24 -0
- package/dist/classes/CanvasEvent.js +12 -0
- package/dist/classes/CanvasEvent.js.map +1 -0
- package/dist/classes/CanvasEvent.mjs +10 -0
- package/dist/classes/CanvasEvent.mjs.map +1 -0
- package/dist/classes/CharacterBaseModel.d.mts +90 -0
- package/dist/classes/CharacterBaseModel.d.ts +90 -0
- package/dist/classes/CharacterBaseModel.js +1529 -0
- package/dist/classes/CharacterBaseModel.js.map +1 -0
- package/dist/classes/CharacterBaseModel.mjs +1527 -0
- package/dist/classes/CharacterBaseModel.mjs.map +1 -0
- package/dist/classes/ChoiceMenuOptionLabel.d.mts +42 -0
- package/dist/classes/ChoiceMenuOptionLabel.d.ts +42 -0
- package/dist/classes/ChoiceMenuOptionLabel.js +19 -0
- package/dist/classes/ChoiceMenuOptionLabel.js.map +1 -0
- package/dist/classes/ChoiceMenuOptionLabel.mjs +17 -0
- package/dist/classes/ChoiceMenuOptionLabel.mjs.map +1 -0
- package/dist/classes/DialogueBaseModel.d.mts +58 -0
- package/dist/classes/DialogueBaseModel.d.ts +58 -0
- package/dist/classes/DialogueBaseModel.js +51 -0
- package/dist/classes/DialogueBaseModel.js.map +1 -0
- package/dist/classes/DialogueBaseModel.mjs +49 -0
- package/dist/classes/DialogueBaseModel.mjs.map +1 -0
- package/dist/classes/Label.d.mts +46 -0
- package/dist/classes/Label.d.ts +46 -0
- package/dist/classes/Label.js +41 -0
- package/dist/classes/Label.js.map +1 -0
- package/dist/classes/Label.mjs +39 -0
- package/dist/classes/Label.mjs.map +1 -0
- package/dist/classes/StoredClassModel.d.mts +55 -0
- package/dist/classes/StoredClassModel.d.ts +55 -0
- package/dist/classes/StoredClassModel.js +1470 -0
- package/dist/classes/StoredClassModel.js.map +1 -0
- package/dist/classes/StoredClassModel.mjs +1468 -0
- package/dist/classes/StoredClassModel.mjs.map +1 -0
- package/dist/classes/canvas/CanvasBase.d.mts +37 -0
- package/dist/classes/canvas/CanvasBase.d.ts +37 -0
- package/dist/classes/canvas/CanvasBase.js +23 -0
- package/dist/classes/canvas/CanvasBase.js.map +1 -0
- package/dist/classes/canvas/CanvasBase.mjs +21 -0
- package/dist/classes/canvas/CanvasBase.mjs.map +1 -0
- package/dist/classes/canvas/CanvasContainer.d.mts +30 -0
- package/dist/classes/canvas/CanvasContainer.d.ts +30 -0
- package/dist/classes/canvas/CanvasContainer.js +514 -0
- package/dist/classes/canvas/CanvasContainer.js.map +1 -0
- package/dist/classes/canvas/CanvasContainer.mjs +508 -0
- package/dist/classes/canvas/CanvasContainer.mjs.map +1 -0
- package/dist/classes/canvas/CanvasImage.d.mts +50 -0
- package/dist/classes/canvas/CanvasImage.d.ts +50 -0
- package/dist/classes/canvas/CanvasImage.js +326 -0
- package/dist/classes/canvas/CanvasImage.js.map +1 -0
- package/dist/classes/canvas/CanvasImage.mjs +324 -0
- package/dist/classes/canvas/CanvasImage.mjs.map +1 -0
- package/dist/classes/canvas/CanvasSprite.d.mts +90 -0
- package/dist/classes/canvas/CanvasSprite.d.ts +90 -0
- package/dist/classes/canvas/CanvasSprite.js +285 -0
- package/dist/classes/canvas/CanvasSprite.js.map +1 -0
- package/dist/classes/canvas/CanvasSprite.mjs +279 -0
- package/dist/classes/canvas/CanvasSprite.mjs.map +1 -0
- package/dist/classes/canvas/CanvasText.d.mts +79 -0
- package/dist/classes/canvas/CanvasText.d.ts +79 -0
- package/dist/classes/canvas/CanvasText.js +259 -0
- package/dist/classes/canvas/CanvasText.js.map +1 -0
- package/dist/classes/canvas/CanvasText.mjs +253 -0
- package/dist/classes/canvas/CanvasText.mjs.map +1 -0
- package/dist/classes/canvas/index.d.mts +15 -0
- package/dist/classes/canvas/index.d.ts +15 -0
- package/dist/classes/canvas/index.js +528 -0
- package/dist/classes/canvas/index.js.map +1 -0
- package/dist/classes/canvas/index.mjs +522 -0
- package/dist/classes/canvas/index.mjs.map +1 -0
- package/dist/classes/index.d.mts +14 -0
- package/dist/classes/index.d.ts +14 -0
- package/dist/classes/index.js +1633 -0
- package/dist/classes/index.js.map +1 -0
- package/dist/classes/index.mjs +1626 -0
- package/dist/classes/index.mjs.map +1 -0
- package/dist/classes/ticker/TickerBase.d.mts +3 -0
- package/dist/classes/ticker/TickerBase.d.ts +3 -0
- package/dist/classes/ticker/TickerBase.js +29 -0
- package/dist/classes/ticker/TickerBase.js.map +1 -0
- package/dist/classes/ticker/TickerBase.mjs +27 -0
- package/dist/classes/ticker/TickerBase.mjs.map +1 -0
- package/dist/classes/ticker/TickerFadeAlpha.d.mts +31 -0
- package/dist/classes/ticker/TickerFadeAlpha.d.ts +31 -0
- package/dist/classes/ticker/TickerFadeAlpha.js +1330 -0
- package/dist/classes/ticker/TickerFadeAlpha.js.map +1 -0
- package/dist/classes/ticker/TickerFadeAlpha.mjs +1328 -0
- package/dist/classes/ticker/TickerFadeAlpha.mjs.map +1 -0
- package/dist/classes/ticker/TickerMove.d.mts +29 -0
- package/dist/classes/ticker/TickerMove.d.ts +29 -0
- package/dist/classes/ticker/TickerMove.js +1328 -0
- package/dist/classes/ticker/TickerMove.js.map +1 -0
- package/dist/classes/ticker/TickerMove.mjs +1326 -0
- package/dist/classes/ticker/TickerMove.mjs.map +1 -0
- package/dist/classes/ticker/TickerRotate.d.mts +30 -0
- package/dist/classes/ticker/TickerRotate.d.ts +30 -0
- package/dist/classes/ticker/TickerRotate.js +1328 -0
- package/dist/classes/ticker/TickerRotate.js.map +1 -0
- package/dist/classes/ticker/TickerRotate.mjs +1326 -0
- package/dist/classes/ticker/TickerRotate.mjs.map +1 -0
- package/dist/classes/ticker/index.d.mts +10 -0
- package/dist/classes/ticker/index.d.ts +10 -0
- package/dist/classes/ticker/index.js +1330 -0
- package/dist/classes/ticker/index.js.map +1 -0
- package/dist/classes/ticker/index.mjs +1328 -0
- package/dist/classes/ticker/index.mjs.map +1 -0
- package/dist/constants.d.mts +3 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +8 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +6 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/decorators/CanvasElementDecorator.d.mts +18 -0
- package/dist/decorators/CanvasElementDecorator.d.ts +18 -0
- package/dist/decorators/CanvasElementDecorator.js +540 -0
- package/dist/decorators/CanvasElementDecorator.js.map +1 -0
- package/dist/decorators/CanvasElementDecorator.mjs +533 -0
- package/dist/decorators/CanvasElementDecorator.mjs.map +1 -0
- package/dist/decorators/CharacterDecorator.d.mts +39 -0
- package/dist/decorators/CharacterDecorator.d.ts +39 -0
- package/dist/decorators/CharacterDecorator.js +37 -0
- package/dist/decorators/CharacterDecorator.js.map +1 -0
- package/dist/decorators/CharacterDecorator.mjs +32 -0
- package/dist/decorators/CharacterDecorator.mjs.map +1 -0
- package/dist/decorators/EventDecorator.d.mts +35 -0
- package/dist/decorators/EventDecorator.d.ts +35 -0
- package/dist/decorators/EventDecorator.js +52 -0
- package/dist/decorators/EventDecorator.js.map +1 -0
- package/dist/decorators/EventDecorator.mjs +45 -0
- package/dist/decorators/EventDecorator.mjs.map +1 -0
- package/dist/decorators/LabelDecorator.d.mts +32 -0
- package/dist/decorators/LabelDecorator.d.ts +32 -0
- package/dist/decorators/LabelDecorator.js +56 -0
- package/dist/decorators/LabelDecorator.js.map +1 -0
- package/dist/decorators/LabelDecorator.mjs +49 -0
- package/dist/decorators/LabelDecorator.mjs.map +1 -0
- package/dist/decorators/TickerDecorator.d.mts +27 -0
- package/dist/decorators/TickerDecorator.d.ts +27 -0
- package/dist/decorators/TickerDecorator.js +36 -0
- package/dist/decorators/TickerDecorator.js.map +1 -0
- package/dist/decorators/TickerDecorator.mjs +30 -0
- package/dist/decorators/TickerDecorator.mjs.map +1 -0
- package/dist/decorators/index.d.mts +23 -0
- package/dist/decorators/index.d.ts +23 -0
- package/dist/decorators/index.js +100 -0
- package/dist/decorators/index.js.map +1 -0
- package/dist/decorators/index.mjs +92 -0
- package/dist/decorators/index.mjs.map +1 -0
- package/dist/enums/LabelRunModeEnum.d.mts +9 -0
- package/dist/enums/LabelRunModeEnum.d.ts +9 -0
- package/dist/enums/LabelRunModeEnum.js +12 -0
- package/dist/enums/LabelRunModeEnum.js.map +1 -0
- package/dist/enums/LabelRunModeEnum.mjs +10 -0
- package/dist/enums/LabelRunModeEnum.mjs.map +1 -0
- package/dist/enums/index.d.mts +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.js +12 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/enums/index.mjs +10 -0
- package/dist/enums/index.mjs.map +1 -0
- package/dist/functions/CanvasUtility.d.mts +25 -0
- package/dist/functions/CanvasUtility.d.ts +25 -0
- package/dist/functions/CanvasUtility.js +510 -0
- package/dist/functions/CanvasUtility.js.map +1 -0
- package/dist/functions/CanvasUtility.mjs +506 -0
- package/dist/functions/CanvasUtility.mjs.map +1 -0
- package/dist/functions/DialogueUtility.d.mts +72 -0
- package/dist/functions/DialogueUtility.d.ts +72 -0
- package/dist/functions/DialogueUtility.js +2189 -0
- package/dist/functions/DialogueUtility.js.map +1 -0
- package/dist/functions/DialogueUtility.mjs +2177 -0
- package/dist/functions/DialogueUtility.mjs.map +1 -0
- package/dist/functions/DiffUtility.d.mts +5 -0
- package/dist/functions/DiffUtility.d.ts +5 -0
- package/dist/functions/DiffUtility.js +57 -0
- package/dist/functions/DiffUtility.js.map +1 -0
- package/dist/functions/DiffUtility.mjs +55 -0
- package/dist/functions/DiffUtility.mjs.map +1 -0
- package/dist/functions/EasterEgg.d.mts +3 -0
- package/dist/functions/EasterEgg.d.ts +3 -0
- package/dist/functions/EasterEgg.js +16 -0
- package/dist/functions/EasterEgg.js.map +1 -0
- package/dist/functions/EasterEgg.mjs +14 -0
- package/dist/functions/EasterEgg.mjs.map +1 -0
- package/dist/functions/ErrorUtility.d.mts +24 -0
- package/dist/functions/ErrorUtility.d.ts +24 -0
- package/dist/functions/ErrorUtility.js +261 -0
- package/dist/functions/ErrorUtility.js.map +1 -0
- package/dist/functions/ErrorUtility.mjs +258 -0
- package/dist/functions/ErrorUtility.mjs.map +1 -0
- package/dist/functions/ExportUtility.d.mts +8 -0
- package/dist/functions/ExportUtility.d.ts +8 -0
- package/dist/functions/ExportUtility.js +16 -0
- package/dist/functions/ExportUtility.js.map +1 -0
- package/dist/functions/ExportUtility.mjs +14 -0
- package/dist/functions/ExportUtility.mjs.map +1 -0
- package/dist/functions/FlagsUtility.d.mts +14 -0
- package/dist/functions/FlagsUtility.d.ts +14 -0
- package/dist/functions/FlagsUtility.js +1436 -0
- package/dist/functions/FlagsUtility.js.map +1 -0
- package/dist/functions/FlagsUtility.mjs +1433 -0
- package/dist/functions/FlagsUtility.mjs.map +1 -0
- package/dist/functions/GameUtility.d.mts +6 -0
- package/dist/functions/GameUtility.d.ts +6 -0
- package/dist/functions/GameUtility.js +1335 -0
- package/dist/functions/GameUtility.js.map +1 -0
- package/dist/functions/GameUtility.mjs +1333 -0
- package/dist/functions/GameUtility.mjs.map +1 -0
- package/dist/functions/ImageUtility.d.mts +51 -0
- package/dist/functions/ImageUtility.d.ts +51 -0
- package/dist/functions/ImageUtility.js +1392 -0
- package/dist/functions/ImageUtility.js.map +1 -0
- package/dist/functions/ImageUtility.mjs +1387 -0
- package/dist/functions/ImageUtility.mjs.map +1 -0
- package/dist/functions/SavesUtility.d.mts +90 -0
- package/dist/functions/SavesUtility.d.ts +90 -0
- package/dist/functions/SavesUtility.js +2081 -0
- package/dist/functions/SavesUtility.js.map +1 -0
- package/dist/functions/SavesUtility.mjs +2071 -0
- package/dist/functions/SavesUtility.mjs.map +1 -0
- package/dist/functions/StepLabelUtility.d.mts +20 -0
- package/dist/functions/StepLabelUtility.d.ts +20 -0
- package/dist/functions/StepLabelUtility.js +21 -0
- package/dist/functions/StepLabelUtility.js.map +1 -0
- package/dist/functions/StepLabelUtility.mjs +14 -0
- package/dist/functions/StepLabelUtility.mjs.map +1 -0
- package/dist/functions/TextureUtility.d.mts +11 -0
- package/dist/functions/TextureUtility.d.ts +11 -0
- package/dist/functions/TextureUtility.js +78 -0
- package/dist/functions/TextureUtility.js.map +1 -0
- package/dist/functions/TextureUtility.mjs +75 -0
- package/dist/functions/TextureUtility.mjs.map +1 -0
- package/dist/functions/TickerUtility.d.mts +13 -0
- package/dist/functions/TickerUtility.d.ts +13 -0
- package/dist/functions/TickerUtility.js +33 -0
- package/dist/functions/TickerUtility.js.map +1 -0
- package/dist/functions/TickerUtility.mjs +31 -0
- package/dist/functions/TickerUtility.mjs.map +1 -0
- package/dist/functions/index.d.mts +41 -0
- package/dist/functions/index.d.ts +41 -0
- package/dist/functions/index.js +2313 -0
- package/dist/functions/index.js.map +1 -0
- package/dist/functions/index.mjs +2289 -0
- package/dist/functions/index.mjs.map +1 -0
- package/dist/index.d.mts +63 -1773
- package/dist/index.d.ts +63 -1773
- package/dist/index.js +89 -197
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -98
- package/dist/index.mjs.map +1 -1
- package/dist/interface/IClassWithArgsHistory.d.mts +25 -0
- package/dist/interface/IClassWithArgsHistory.d.ts +25 -0
- package/dist/interface/IClassWithArgsHistory.js +4 -0
- package/dist/interface/IClassWithArgsHistory.js.map +1 -0
- package/dist/interface/IClassWithArgsHistory.mjs +3 -0
- package/dist/interface/IClassWithArgsHistory.mjs.map +1 -0
- package/dist/interface/IDialogueHistory.d.mts +33 -0
- package/dist/interface/IDialogueHistory.d.ts +33 -0
- package/dist/interface/IDialogueHistory.js +4 -0
- package/dist/interface/IDialogueHistory.js.map +1 -0
- package/dist/interface/IDialogueHistory.mjs +3 -0
- package/dist/interface/IDialogueHistory.mjs.map +1 -0
- package/dist/interface/IHistoryStep.d.mts +75 -0
- package/dist/interface/IHistoryStep.d.ts +75 -0
- package/dist/interface/IHistoryStep.js +4 -0
- package/dist/interface/IHistoryStep.js.map +1 -0
- package/dist/interface/IHistoryStep.mjs +3 -0
- package/dist/interface/IHistoryStep.mjs.map +1 -0
- package/dist/interface/IOpenedLabel.d.mts +8 -0
- package/dist/interface/IOpenedLabel.d.ts +8 -0
- package/dist/interface/IOpenedLabel.js +4 -0
- package/dist/interface/IOpenedLabel.js.map +1 -0
- package/dist/interface/IOpenedLabel.mjs +3 -0
- package/dist/interface/IOpenedLabel.mjs.map +1 -0
- package/dist/interface/ISaveData.d.mts +33 -0
- package/dist/interface/ISaveData.d.ts +33 -0
- package/dist/interface/ISaveData.js +4 -0
- package/dist/interface/ISaveData.js.map +1 -0
- package/dist/interface/ISaveData.mjs +3 -0
- package/dist/interface/ISaveData.mjs.map +1 -0
- package/dist/interface/ITicker.d.mts +3 -0
- package/dist/interface/ITicker.d.ts +3 -0
- package/dist/interface/ITicker.js +4 -0
- package/dist/interface/ITicker.js.map +1 -0
- package/dist/interface/ITicker.mjs +3 -0
- package/dist/interface/ITicker.mjs.map +1 -0
- package/dist/interface/ITickersSteps.d.mts +31 -0
- package/dist/interface/ITickersSteps.d.ts +31 -0
- package/dist/interface/ITickersSteps.js +4 -0
- package/dist/interface/ITickersSteps.js.map +1 -0
- package/dist/interface/ITickersSteps.mjs +3 -0
- package/dist/interface/ITickersSteps.mjs.map +1 -0
- package/dist/interface/TickerProgrationType.d.mts +13 -0
- package/dist/interface/TickerProgrationType.d.ts +13 -0
- package/dist/interface/TickerProgrationType.js +4 -0
- package/dist/interface/TickerProgrationType.js.map +1 -0
- package/dist/interface/TickerProgrationType.mjs +3 -0
- package/dist/interface/TickerProgrationType.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasBaseMemory.d.mts +8 -0
- package/dist/interface/canvas/ICanvasBaseMemory.d.ts +8 -0
- package/dist/interface/canvas/ICanvasBaseMemory.js +4 -0
- package/dist/interface/canvas/ICanvasBaseMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasBaseMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasBaseMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasContainerMemory.d.mts +11 -0
- package/dist/interface/canvas/ICanvasContainerMemory.d.ts +11 -0
- package/dist/interface/canvas/ICanvasContainerMemory.js +4 -0
- package/dist/interface/canvas/ICanvasContainerMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasContainerMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasContainerMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasImageMemory.d.mts +14 -0
- package/dist/interface/canvas/ICanvasImageMemory.d.ts +14 -0
- package/dist/interface/canvas/ICanvasImageMemory.js +4 -0
- package/dist/interface/canvas/ICanvasImageMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasImageMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasImageMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.d.mts +19 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.d.ts +19 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.js +4 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.d.mts +15 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.d.ts +15 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.js +4 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.mjs.map +1 -0
- package/dist/interface/canvas/ITextureMemory.d.mts +8 -0
- package/dist/interface/canvas/ITextureMemory.d.ts +8 -0
- package/dist/interface/canvas/ITextureMemory.js +4 -0
- package/dist/interface/canvas/ITextureMemory.js.map +1 -0
- package/dist/interface/canvas/ITextureMemory.mjs +3 -0
- package/dist/interface/canvas/ITextureMemory.mjs.map +1 -0
- package/dist/interface/canvas/index.d.mts +8 -0
- package/dist/interface/canvas/index.d.ts +8 -0
- package/dist/interface/canvas/index.js +4 -0
- package/dist/interface/canvas/index.js.map +1 -0
- package/dist/interface/canvas/index.mjs +3 -0
- package/dist/interface/canvas/index.mjs.map +1 -0
- package/dist/interface/export/ExportedCanvas.d.mts +19 -0
- package/dist/interface/export/ExportedCanvas.d.ts +19 -0
- package/dist/interface/export/ExportedCanvas.js +4 -0
- package/dist/interface/export/ExportedCanvas.js.map +1 -0
- package/dist/interface/export/ExportedCanvas.mjs +3 -0
- package/dist/interface/export/ExportedCanvas.mjs.map +1 -0
- package/dist/interface/export/ExportedStep.d.mts +34 -0
- package/dist/interface/export/ExportedStep.d.ts +34 -0
- package/dist/interface/export/ExportedStep.js +4 -0
- package/dist/interface/export/ExportedStep.js.map +1 -0
- package/dist/interface/export/ExportedStep.mjs +3 -0
- package/dist/interface/export/ExportedStep.mjs.map +1 -0
- package/dist/interface/export/ExportedStorage.d.mts +10 -0
- package/dist/interface/export/ExportedStorage.d.ts +10 -0
- package/dist/interface/export/ExportedStorage.js +4 -0
- package/dist/interface/export/ExportedStorage.js.map +1 -0
- package/dist/interface/export/ExportedStorage.mjs +3 -0
- package/dist/interface/export/ExportedStorage.mjs.map +1 -0
- package/dist/interface/export/index.d.mts +23 -0
- package/dist/interface/export/index.d.ts +23 -0
- package/dist/interface/export/index.js +4 -0
- package/dist/interface/export/index.js.map +1 -0
- package/dist/interface/export/index.mjs +3 -0
- package/dist/interface/export/index.mjs.map +1 -0
- package/dist/interface/index.d.mts +29 -0
- package/dist/interface/index.d.ts +29 -0
- package/dist/interface/index.js +4 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/index.mjs +3 -0
- package/dist/interface/index.mjs.map +1 -0
- package/dist/managers/StepManager.d.mts +210 -0
- package/dist/managers/StepManager.d.ts +210 -0
- package/dist/managers/StepManager.js +2043 -0
- package/dist/managers/StepManager.js.map +1 -0
- package/dist/managers/StepManager.mjs +2037 -0
- package/dist/managers/StepManager.mjs.map +1 -0
- package/dist/managers/StorageManager.d.mts +45 -0
- package/dist/managers/StorageManager.d.ts +45 -0
- package/dist/managers/StorageManager.js +101 -0
- package/dist/managers/StorageManager.js.map +1 -0
- package/dist/managers/StorageManager.mjs +99 -0
- package/dist/managers/StorageManager.mjs.map +1 -0
- package/dist/managers/WindowManager.d.mts +265 -0
- package/dist/managers/WindowManager.d.ts +265 -0
- package/dist/managers/WindowManager.js +1142 -0
- package/dist/managers/WindowManager.js.map +1 -0
- package/dist/managers/WindowManager.mjs +1140 -0
- package/dist/managers/WindowManager.mjs.map +1 -0
- package/dist/managers/index.d.mts +30 -0
- package/dist/managers/index.d.ts +30 -0
- package/dist/managers/index.js +2049 -0
- package/dist/managers/index.js.map +1 -0
- package/dist/managers/index.mjs +2041 -0
- package/dist/managers/index.mjs.map +1 -0
- package/dist/override/StepLabelProps.d.mts +18 -0
- package/dist/override/StepLabelProps.d.ts +18 -0
- package/dist/override/StepLabelProps.js +4 -0
- package/dist/override/StepLabelProps.js.map +1 -0
- package/dist/override/StepLabelProps.mjs +3 -0
- package/dist/override/StepLabelProps.mjs.map +1 -0
- package/dist/override/StepLabelResult.d.mts +19 -0
- package/dist/override/StepLabelResult.d.ts +19 -0
- package/dist/override/StepLabelResult.js +4 -0
- package/dist/override/StepLabelResult.js.map +1 -0
- package/dist/override/StepLabelResult.mjs +3 -0
- package/dist/override/StepLabelResult.mjs.map +1 -0
- package/dist/override/index.d.mts +2 -0
- package/dist/override/index.d.ts +2 -0
- package/dist/override/index.js +4 -0
- package/dist/override/index.js.map +1 -0
- package/dist/override/index.mjs +3 -0
- package/dist/override/index.mjs.map +1 -0
- package/dist/types/CanvasElementTagType.d.mts +3 -0
- package/dist/types/CanvasElementTagType.d.ts +3 -0
- package/dist/types/CanvasElementTagType.js +4 -0
- package/dist/types/CanvasElementTagType.js.map +1 -0
- package/dist/types/CanvasElementTagType.mjs +3 -0
- package/dist/types/CanvasElementTagType.mjs.map +1 -0
- package/dist/types/CanvasEventNamesType.d.mts +6 -0
- package/dist/types/CanvasEventNamesType.d.ts +6 -0
- package/dist/types/CanvasEventNamesType.js +4 -0
- package/dist/types/CanvasEventNamesType.js.map +1 -0
- package/dist/types/CanvasEventNamesType.mjs +3 -0
- package/dist/types/CanvasEventNamesType.mjs.map +1 -0
- package/dist/types/ChoiceMenuOptionsType.d.mts +16 -0
- package/dist/types/ChoiceMenuOptionsType.d.ts +16 -0
- package/dist/types/ChoiceMenuOptionsType.js +4 -0
- package/dist/types/ChoiceMenuOptionsType.js.map +1 -0
- package/dist/types/ChoiceMenuOptionsType.mjs +3 -0
- package/dist/types/ChoiceMenuOptionsType.mjs.map +1 -0
- package/dist/types/EventIdType.d.mts +3 -0
- package/dist/types/EventIdType.d.ts +3 -0
- package/dist/types/EventIdType.js +4 -0
- package/dist/types/EventIdType.js.map +1 -0
- package/dist/types/EventIdType.mjs +3 -0
- package/dist/types/EventIdType.mjs.map +1 -0
- package/dist/types/LabelIdType.d.mts +7 -0
- package/dist/types/LabelIdType.d.ts +7 -0
- package/dist/types/LabelIdType.js +4 -0
- package/dist/types/LabelIdType.js.map +1 -0
- package/dist/types/LabelIdType.mjs +3 -0
- package/dist/types/LabelIdType.mjs.map +1 -0
- package/dist/types/PauseType.d.mts +8 -0
- package/dist/types/PauseType.d.ts +8 -0
- package/dist/types/PauseType.js +15 -0
- package/dist/types/PauseType.js.map +1 -0
- package/dist/types/PauseType.mjs +12 -0
- package/dist/types/PauseType.mjs.map +1 -0
- package/dist/types/RepeatType.d.mts +4 -0
- package/dist/types/RepeatType.d.ts +4 -0
- package/dist/types/RepeatType.js +8 -0
- package/dist/types/RepeatType.js.map +1 -0
- package/dist/types/RepeatType.mjs +6 -0
- package/dist/types/RepeatType.mjs.map +1 -0
- package/dist/types/StepHistoryDataType.d.mts +8 -0
- package/dist/types/StepHistoryDataType.d.ts +8 -0
- package/dist/types/StepHistoryDataType.js +4 -0
- package/dist/types/StepHistoryDataType.js.map +1 -0
- package/dist/types/StepHistoryDataType.mjs +3 -0
- package/dist/types/StepHistoryDataType.mjs.map +1 -0
- package/dist/types/StepLabelType.d.mts +11 -0
- package/dist/types/StepLabelType.d.ts +11 -0
- package/dist/types/StepLabelType.js +4 -0
- package/dist/types/StepLabelType.js.map +1 -0
- package/dist/types/StepLabelType.mjs +3 -0
- package/dist/types/StepLabelType.mjs.map +1 -0
- package/dist/types/StorageElementType.d.mts +10 -0
- package/dist/types/StorageElementType.d.ts +10 -0
- package/dist/types/StorageElementType.js +4 -0
- package/dist/types/StorageElementType.js.map +1 -0
- package/dist/types/StorageElementType.mjs +3 -0
- package/dist/types/StorageElementType.mjs.map +1 -0
- package/dist/types/TickerIdType.d.mts +7 -0
- package/dist/types/TickerIdType.d.ts +7 -0
- package/dist/types/TickerIdType.js +4 -0
- package/dist/types/TickerIdType.js.map +1 -0
- package/dist/types/TickerIdType.mjs +3 -0
- package/dist/types/TickerIdType.mjs.map +1 -0
- package/dist/types/index.d.mts +13 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +15 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types/ticker/TickerFadeAlphaProps.d.mts +26 -0
- package/dist/types/ticker/TickerFadeAlphaProps.d.ts +26 -0
- package/dist/types/ticker/TickerFadeAlphaProps.js +4 -0
- package/dist/types/ticker/TickerFadeAlphaProps.js.map +1 -0
- package/dist/types/ticker/TickerFadeAlphaProps.mjs +3 -0
- package/dist/types/ticker/TickerFadeAlphaProps.mjs.map +1 -0
- package/dist/types/ticker/TickerMoveProps.d.mts +26 -0
- package/dist/types/ticker/TickerMoveProps.d.ts +26 -0
- package/dist/types/ticker/TickerMoveProps.js +4 -0
- package/dist/types/ticker/TickerMoveProps.js.map +1 -0
- package/dist/types/ticker/TickerMoveProps.mjs +3 -0
- package/dist/types/ticker/TickerMoveProps.mjs.map +1 -0
- package/dist/types/ticker/TickerRotateProps.d.mts +24 -0
- package/dist/types/ticker/TickerRotateProps.d.ts +24 -0
- package/dist/types/ticker/TickerRotateProps.js +4 -0
- package/dist/types/ticker/TickerRotateProps.js.map +1 -0
- package/dist/types/ticker/TickerRotateProps.mjs +3 -0
- package/dist/types/ticker/TickerRotateProps.mjs.map +1 -0
- package/dist/types/ticker/index.d.mts +3 -0
- package/dist/types/ticker/index.d.ts +3 -0
- package/dist/types/ticker/index.js +4 -0
- package/dist/types/ticker/index.js.map +1 -0
- package/dist/types/ticker/index.mjs +3 -0
- package/dist/types/ticker/index.mjs.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Assets, Texture } from 'pixi.js';
|
|
2
|
+
|
|
3
|
+
var __async = (__this, __arguments, generator) => {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
var fulfilled = (value) => {
|
|
6
|
+
try {
|
|
7
|
+
step(generator.next(value));
|
|
8
|
+
} catch (e) {
|
|
9
|
+
reject(e);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
var rejected = (value) => {
|
|
13
|
+
try {
|
|
14
|
+
step(generator.throw(value));
|
|
15
|
+
} catch (e) {
|
|
16
|
+
reject(e);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
20
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
function getTexture(imageUrl) {
|
|
24
|
+
return __async(this, null, function* () {
|
|
25
|
+
if (Assets.cache.has(imageUrl)) {
|
|
26
|
+
return Assets.get(imageUrl);
|
|
27
|
+
}
|
|
28
|
+
return Assets.load(imageUrl).then((texture) => {
|
|
29
|
+
if (!texture) {
|
|
30
|
+
console.error("[Pixi'VN] Texture not found", imageUrl);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (!(texture instanceof Texture)) {
|
|
34
|
+
console.error("[Pixi'VN] File not is a image", imageUrl);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
return texture;
|
|
38
|
+
}).catch((e) => {
|
|
39
|
+
console.error("[Pixi'VN] Error loading image", e);
|
|
40
|
+
return;
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function getTextStyle(style) {
|
|
45
|
+
let fill = style.fill;
|
|
46
|
+
if (fill instanceof Object) {
|
|
47
|
+
console.warn("[Pixi'VN] CanvasText.style.fill is a FillGradient or FillPattern, this is not supported yet.", fill);
|
|
48
|
+
fill = "#00FF00";
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
align: style.align,
|
|
52
|
+
breakWords: style.breakWords,
|
|
53
|
+
dropShadow: style.dropShadow,
|
|
54
|
+
fill,
|
|
55
|
+
fontFamily: style.fontFamily,
|
|
56
|
+
fontSize: style.fontSize,
|
|
57
|
+
fontStyle: style.fontStyle,
|
|
58
|
+
fontVariant: style.fontVariant,
|
|
59
|
+
fontWeight: style.fontWeight,
|
|
60
|
+
leading: style.leading,
|
|
61
|
+
letterSpacing: style.letterSpacing,
|
|
62
|
+
lineHeight: style.lineHeight,
|
|
63
|
+
padding: style.padding,
|
|
64
|
+
stroke: style.stroke,
|
|
65
|
+
textBaseline: style.textBaseline,
|
|
66
|
+
trim: style.trim,
|
|
67
|
+
whiteSpace: style.whiteSpace,
|
|
68
|
+
wordWrap: style.wordWrap,
|
|
69
|
+
wordWrapWidth: style.wordWrapWidth
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { getTextStyle, getTexture };
|
|
74
|
+
//# sourceMappingURL=out.js.map
|
|
75
|
+
//# sourceMappingURL=TextureUtility.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/functions/TextureUtility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,QAAqC,eAAe;AAO7D,SAAsB,WAAW,UAA2C;AAAA;AACxE,QAAI,OAAO,MAAM,IAAI,QAAQ,GAAG;AAC5B,aAAO,OAAO,IAAI,QAAQ;AAAA,IAC9B;AACA,WAAO,OAAO,KAAK,QAAQ,EACtB,KAAK,CAAC,YAAY;AACf,UAAI,CAAC,SAAS;AACV,gBAAQ,MAAM,+BAA+B,QAAQ;AACrD;AAAA,MACJ;AAEA,UAAI,EAAE,mBAAmB,UAAU;AAC/B,gBAAQ,MAAM,iCAAiC,QAAQ;AACvD;AAAA,MACJ;AAEA,aAAO;AAAA,IACX,CAAC,EACA,MAAM,CAAC,MAAM;AACV,cAAQ,MAAM,iCAAiC,CAAC;AAChD;AAAA,IACJ,CAAC;AAAA,EACT;AAAA;AAEO,SAAS,aAAa,OAAoC;AAC7D,MAAI,OAAO,MAAM;AACjB,MAAI,gBAAgB,QAAQ;AAExB,YAAQ,KAAK,gGAAgG,IAAI;AACjH,WAAO;AAAA,EACX;AACA,SAAO;AAAA,IACH,OAAO,MAAM;AAAA,IACb,YAAY,MAAM;AAAA,IAClB,YAAY,MAAM;AAAA,IAClB;AAAA,IACA,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM;AAAA,IAChB,WAAW,MAAM;AAAA,IACjB,aAAa,MAAM;AAAA,IACnB,YAAY,MAAM;AAAA,IAClB,SAAS,MAAM;AAAA,IACf,eAAe,MAAM;AAAA,IACrB,YAAY,MAAM;AAAA,IAClB,SAAS,MAAM;AAAA,IACf,QAAQ,MAAM;AAAA,IACd,cAAc,MAAM;AAAA,IACpB,MAAM,MAAM;AAAA,IACZ,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM;AAAA,IAChB,eAAe,MAAM;AAAA,EACzB;AACJ","sourcesContent":["import { Assets, TextStyle, TextStyleOptions, Texture } from 'pixi.js';\n\n/**\n * Get a texture from a url.\n * @param imageUrl is the url of the image.\n * @returns the texture of the image, or a text with the error.\n */\nexport async function getTexture(imageUrl: string): Promise<Texture | void> {\n if (Assets.cache.has(imageUrl)) {\n return Assets.get(imageUrl)\n }\n return Assets.load(imageUrl)\n .then((texture) => {\n if (!texture) {\n console.error(\"[Pixi'VN] Texture not found\", imageUrl)\n return\n }\n // if texture not is a Texture, then it is a TextureResource\n if (!(texture instanceof Texture)) {\n console.error(\"[Pixi'VN] File not is a image\", imageUrl)\n return\n }\n\n return texture\n })\n .catch((e) => {\n console.error(\"[Pixi'VN] Error loading image\", e)\n return\n })\n}\n\nexport function getTextStyle(style: TextStyle): TextStyleOptions {\n let fill = style.fill\n if (fill instanceof Object) {\n // TODO: FillGradient and FillPattern are not supported yet\n console.warn(\"[Pixi'VN] CanvasText.style.fill is a FillGradient or FillPattern, this is not supported yet.\", fill)\n fill = \"#00FF00\"\n }\n return {\n align: style.align,\n breakWords: style.breakWords,\n dropShadow: style.dropShadow,\n fill: fill,\n fontFamily: style.fontFamily,\n fontSize: style.fontSize,\n fontStyle: style.fontStyle,\n fontVariant: style.fontVariant,\n fontWeight: style.fontWeight,\n leading: style.leading,\n letterSpacing: style.letterSpacing,\n lineHeight: style.lineHeight,\n padding: style.padding,\n stroke: style.stroke,\n textBaseline: style.textBaseline,\n trim: style.trim,\n whiteSpace: style.whiteSpace,\n wordWrap: style.wordWrap,\n wordWrapWidth: style.wordWrapWidth,\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TickerProgrationType } from '../interface/TickerProgrationType.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This function updates the progression of the ticker.
|
|
5
|
+
* For example, if the speed of the ticker is 0.1 and the progression is 0.01, then the speed will be 0.11.
|
|
6
|
+
* @param args The arguments that are passed to the ticker
|
|
7
|
+
* @param propertyName The property name that will be updated
|
|
8
|
+
* @param progression The progression of the ticker
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
declare function updateTickerProgression(args: any, propertyName: string, progression: TickerProgrationType): void;
|
|
12
|
+
|
|
13
|
+
export { updateTickerProgression };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TickerProgrationType } from '../interface/TickerProgrationType.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This function updates the progression of the ticker.
|
|
5
|
+
* For example, if the speed of the ticker is 0.1 and the progression is 0.01, then the speed will be 0.11.
|
|
6
|
+
* @param args The arguments that are passed to the ticker
|
|
7
|
+
* @param propertyName The property name that will be updated
|
|
8
|
+
* @param progression The progression of the ticker
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
declare function updateTickerProgression(args: any, propertyName: string, progression: TickerProgrationType): void;
|
|
12
|
+
|
|
13
|
+
export { updateTickerProgression };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/functions/TickerUtility.ts
|
|
4
|
+
function updateTickerProgression(args, propertyName, progression) {
|
|
5
|
+
if (args.hasOwnProperty(propertyName) && typeof args[propertyName] !== "number") {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (args[propertyName] !== void 0 && progression && args[propertyName] !== progression.limit) {
|
|
9
|
+
if (progression.type === "linear") {
|
|
10
|
+
args[propertyName] += progression.amt;
|
|
11
|
+
if (progression.limit !== void 0) {
|
|
12
|
+
if (args[propertyName] > progression.limit && progression.amt > 0) {
|
|
13
|
+
args[propertyName] = progression.limit;
|
|
14
|
+
} else if (args[propertyName] < progression.limit && progression.amt < 0) {
|
|
15
|
+
args[propertyName] = progression.limit;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
} else if (progression.type === "exponential") {
|
|
19
|
+
args[propertyName] += args[propertyName] * progression.percentage;
|
|
20
|
+
if (progression.limit !== void 0) {
|
|
21
|
+
if (args[propertyName] > progression.limit && progression.percentage > 0) {
|
|
22
|
+
args[propertyName] = progression.limit;
|
|
23
|
+
} else if (args[propertyName] < progression.limit && progression.percentage < 0) {
|
|
24
|
+
args[propertyName] = progression.limit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.updateTickerProgression = updateTickerProgression;
|
|
32
|
+
//# sourceMappingURL=out.js.map
|
|
33
|
+
//# sourceMappingURL=TickerUtility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/functions/TickerUtility.ts"],"names":[],"mappings":";AAUO,SAAS,wBAAwB,MAAW,cAAsB,aAAmC;AACxG,MAAI,KAAK,eAAe,YAAY,KAAK,OAAO,KAAK,YAAY,MAAM,UAAU;AAC7E;AAAA,EACJ;AACA,MAAI,KAAK,YAAY,MAAM,UACpB,eACA,KAAK,YAAY,MAAM,YAAY,OACxC;AACE,QAAI,YAAY,SAAS,UAAU;AAC/B,WAAK,YAAY,KAAK,YAAY;AAClC,UAAI,YAAY,UAAU,QAAW;AACjC,YAAI,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,MAAM,GAAG;AAC/D,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC,WACS,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,MAAM,GAAG;AACpE,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC;AAAA,MACJ;AAAA,IACJ,WACS,YAAY,SAAS,eAAe;AACzC,WAAK,YAAY,KAAK,KAAK,YAAY,IAAI,YAAY;AACvD,UAAI,YAAY,UAAU,QAAW;AACjC,YAAI,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,aAAa,GAAG;AACtE,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC,WACS,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,aAAa,GAAG;AAC3E,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { TickerProgrationType } from \"../interface/TickerProgrationType\"\n\n/**\n * This function updates the progression of the ticker.\n * For example, if the speed of the ticker is 0.1 and the progression is 0.01, then the speed will be 0.11.\n * @param args The arguments that are passed to the ticker\n * @param propertyName The property name that will be updated \n * @param progression The progression of the ticker\n * @returns \n */\nexport function updateTickerProgression(args: any, propertyName: string, progression: TickerProgrationType) {\n if (args.hasOwnProperty(propertyName) && typeof args[propertyName] !== \"number\") {\n return\n }\n if (args[propertyName] !== undefined\n && progression\n && args[propertyName] !== progression.limit\n ) {\n if (progression.type === \"linear\") {\n args[propertyName] += progression.amt\n if (progression.limit !== undefined) {\n if (args[propertyName] > progression.limit && progression.amt > 0) {\n args[propertyName] = progression.limit\n }\n else if (args[propertyName] < progression.limit && progression.amt < 0) {\n args[propertyName] = progression.limit\n }\n }\n }\n else if (progression.type === \"exponential\") {\n args[propertyName] += args[propertyName] * progression.percentage\n if (progression.limit !== undefined) {\n if (args[propertyName] > progression.limit && progression.percentage > 0) {\n args[propertyName] = progression.limit\n }\n else if (args[propertyName] < progression.limit && progression.percentage < 0) {\n args[propertyName] = progression.limit\n }\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/functions/TickerUtility.ts
|
|
2
|
+
function updateTickerProgression(args, propertyName, progression) {
|
|
3
|
+
if (args.hasOwnProperty(propertyName) && typeof args[propertyName] !== "number") {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
if (args[propertyName] !== void 0 && progression && args[propertyName] !== progression.limit) {
|
|
7
|
+
if (progression.type === "linear") {
|
|
8
|
+
args[propertyName] += progression.amt;
|
|
9
|
+
if (progression.limit !== void 0) {
|
|
10
|
+
if (args[propertyName] > progression.limit && progression.amt > 0) {
|
|
11
|
+
args[propertyName] = progression.limit;
|
|
12
|
+
} else if (args[propertyName] < progression.limit && progression.amt < 0) {
|
|
13
|
+
args[propertyName] = progression.limit;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
} else if (progression.type === "exponential") {
|
|
17
|
+
args[propertyName] += args[propertyName] * progression.percentage;
|
|
18
|
+
if (progression.limit !== void 0) {
|
|
19
|
+
if (args[propertyName] > progression.limit && progression.percentage > 0) {
|
|
20
|
+
args[propertyName] = progression.limit;
|
|
21
|
+
} else if (args[propertyName] < progression.limit && progression.percentage < 0) {
|
|
22
|
+
args[propertyName] = progression.limit;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { updateTickerProgression };
|
|
30
|
+
//# sourceMappingURL=out.js.map
|
|
31
|
+
//# sourceMappingURL=TickerUtility.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/functions/TickerUtility.ts"],"names":[],"mappings":";AAUO,SAAS,wBAAwB,MAAW,cAAsB,aAAmC;AACxG,MAAI,KAAK,eAAe,YAAY,KAAK,OAAO,KAAK,YAAY,MAAM,UAAU;AAC7E;AAAA,EACJ;AACA,MAAI,KAAK,YAAY,MAAM,UACpB,eACA,KAAK,YAAY,MAAM,YAAY,OACxC;AACE,QAAI,YAAY,SAAS,UAAU;AAC/B,WAAK,YAAY,KAAK,YAAY;AAClC,UAAI,YAAY,UAAU,QAAW;AACjC,YAAI,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,MAAM,GAAG;AAC/D,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC,WACS,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,MAAM,GAAG;AACpE,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC;AAAA,MACJ;AAAA,IACJ,WACS,YAAY,SAAS,eAAe;AACzC,WAAK,YAAY,KAAK,KAAK,YAAY,IAAI,YAAY;AACvD,UAAI,YAAY,UAAU,QAAW;AACjC,YAAI,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,aAAa,GAAG;AACtE,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC,WACS,KAAK,YAAY,IAAI,YAAY,SAAS,YAAY,aAAa,GAAG;AAC3E,eAAK,YAAY,IAAI,YAAY;AAAA,QACrC;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { TickerProgrationType } from \"../interface/TickerProgrationType\"\n\n/**\n * This function updates the progression of the ticker.\n * For example, if the speed of the ticker is 0.1 and the progression is 0.01, then the speed will be 0.11.\n * @param args The arguments that are passed to the ticker\n * @param propertyName The property name that will be updated \n * @param progression The progression of the ticker\n * @returns \n */\nexport function updateTickerProgression(args: any, propertyName: string, progression: TickerProgrationType) {\n if (args.hasOwnProperty(propertyName) && typeof args[propertyName] !== \"number\") {\n return\n }\n if (args[propertyName] !== undefined\n && progression\n && args[propertyName] !== progression.limit\n ) {\n if (progression.type === \"linear\") {\n args[propertyName] += progression.amt\n if (progression.limit !== undefined) {\n if (args[propertyName] > progression.limit && progression.amt > 0) {\n args[propertyName] = progression.limit\n }\n else if (args[propertyName] < progression.limit && progression.amt < 0) {\n args[propertyName] = progression.limit\n }\n }\n }\n else if (progression.type === \"exponential\") {\n args[propertyName] += args[propertyName] * progression.percentage\n if (progression.limit !== undefined) {\n if (args[propertyName] > progression.limit && progression.percentage > 0) {\n args[propertyName] = progression.limit\n }\n else if (args[propertyName] < progression.limit && progression.percentage < 0) {\n args[propertyName] = progression.limit\n }\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { clearChoiceMenuOptions, clearDialogue, getChoiceMenuOptions, getDialogue, getDialogueHistory, setChoiceMenuOptions, setDialogue } from './DialogueUtility.mjs';
|
|
2
|
+
export { getFlag, setFlag } from './FlagsUtility.mjs';
|
|
3
|
+
export { clearAllGameDatas } from './GameUtility.mjs';
|
|
4
|
+
export { addImage, loadImages, removeCanvasElement, showWithDissolveTransition } from './ImageUtility.mjs';
|
|
5
|
+
export { getSaveData, getSaveJson, loadSaveData, loadSaveJson } from './SavesUtility.mjs';
|
|
6
|
+
export { getTexture } from './TextureUtility.mjs';
|
|
7
|
+
import '../classes/CharacterBaseModel.mjs';
|
|
8
|
+
import '../classes/StoredClassModel.mjs';
|
|
9
|
+
import '../classes/DialogueBaseModel.mjs';
|
|
10
|
+
import '../types/StorageElementType.mjs';
|
|
11
|
+
import '../interface/IDialogueHistory.mjs';
|
|
12
|
+
import '../classes/ChoiceMenuOptionLabel.mjs';
|
|
13
|
+
import '../enums/LabelRunModeEnum.mjs';
|
|
14
|
+
import '../types/LabelIdType.mjs';
|
|
15
|
+
import '../classes/Label.mjs';
|
|
16
|
+
import '../types/StepHistoryDataType.mjs';
|
|
17
|
+
import '../types/StepLabelType.mjs';
|
|
18
|
+
import '../override/StepLabelProps.mjs';
|
|
19
|
+
import '../override/StepLabelResult.mjs';
|
|
20
|
+
import '../types/ChoiceMenuOptionsType.mjs';
|
|
21
|
+
import 'pixi.js';
|
|
22
|
+
import '../classes/canvas/CanvasBase.mjs';
|
|
23
|
+
import '../interface/canvas/ICanvasBaseMemory.mjs';
|
|
24
|
+
import '../classes/canvas/CanvasImage.mjs';
|
|
25
|
+
import '../interface/canvas/ICanvasImageMemory.mjs';
|
|
26
|
+
import '../interface/canvas/ICanvasSpriteMemory.mjs';
|
|
27
|
+
import '../types/EventIdType.mjs';
|
|
28
|
+
import '../interface/canvas/ITextureMemory.mjs';
|
|
29
|
+
import '../classes/canvas/CanvasSprite.mjs';
|
|
30
|
+
import '../types/CanvasEventNamesType.mjs';
|
|
31
|
+
import '../classes/CanvasEvent.mjs';
|
|
32
|
+
import '../interface/ISaveData.mjs';
|
|
33
|
+
import '../interface/export/ExportedCanvas.mjs';
|
|
34
|
+
import '../interface/IClassWithArgsHistory.mjs';
|
|
35
|
+
import '../TickerBase-CFEJHstJ.mjs';
|
|
36
|
+
import '../types/TickerIdType.mjs';
|
|
37
|
+
import '../interface/export/ExportedStep.mjs';
|
|
38
|
+
import '../interface/IHistoryStep.mjs';
|
|
39
|
+
import 'deep-diff';
|
|
40
|
+
import '../interface/export/ExportedStorage.mjs';
|
|
41
|
+
import '../interface/IOpenedLabel.mjs';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { clearChoiceMenuOptions, clearDialogue, getChoiceMenuOptions, getDialogue, getDialogueHistory, setChoiceMenuOptions, setDialogue } from './DialogueUtility.js';
|
|
2
|
+
export { getFlag, setFlag } from './FlagsUtility.js';
|
|
3
|
+
export { clearAllGameDatas } from './GameUtility.js';
|
|
4
|
+
export { addImage, loadImages, removeCanvasElement, showWithDissolveTransition } from './ImageUtility.js';
|
|
5
|
+
export { getSaveData, getSaveJson, loadSaveData, loadSaveJson } from './SavesUtility.js';
|
|
6
|
+
export { getTexture } from './TextureUtility.js';
|
|
7
|
+
import '../classes/CharacterBaseModel.js';
|
|
8
|
+
import '../classes/StoredClassModel.js';
|
|
9
|
+
import '../classes/DialogueBaseModel.js';
|
|
10
|
+
import '../types/StorageElementType.js';
|
|
11
|
+
import '../interface/IDialogueHistory.js';
|
|
12
|
+
import '../classes/ChoiceMenuOptionLabel.js';
|
|
13
|
+
import '../enums/LabelRunModeEnum.js';
|
|
14
|
+
import '../types/LabelIdType.js';
|
|
15
|
+
import '../classes/Label.js';
|
|
16
|
+
import '../types/StepHistoryDataType.js';
|
|
17
|
+
import '../types/StepLabelType.js';
|
|
18
|
+
import '../override/StepLabelProps.js';
|
|
19
|
+
import '../override/StepLabelResult.js';
|
|
20
|
+
import '../types/ChoiceMenuOptionsType.js';
|
|
21
|
+
import 'pixi.js';
|
|
22
|
+
import '../classes/canvas/CanvasBase.js';
|
|
23
|
+
import '../interface/canvas/ICanvasBaseMemory.js';
|
|
24
|
+
import '../classes/canvas/CanvasImage.js';
|
|
25
|
+
import '../interface/canvas/ICanvasImageMemory.js';
|
|
26
|
+
import '../interface/canvas/ICanvasSpriteMemory.js';
|
|
27
|
+
import '../types/EventIdType.js';
|
|
28
|
+
import '../interface/canvas/ITextureMemory.js';
|
|
29
|
+
import '../classes/canvas/CanvasSprite.js';
|
|
30
|
+
import '../types/CanvasEventNamesType.js';
|
|
31
|
+
import '../classes/CanvasEvent.js';
|
|
32
|
+
import '../interface/ISaveData.js';
|
|
33
|
+
import '../interface/export/ExportedCanvas.js';
|
|
34
|
+
import '../interface/IClassWithArgsHistory.js';
|
|
35
|
+
import '../TickerBase-CjfyD6j5.js';
|
|
36
|
+
import '../types/TickerIdType.js';
|
|
37
|
+
import '../interface/export/ExportedStep.js';
|
|
38
|
+
import '../interface/IHistoryStep.js';
|
|
39
|
+
import 'deep-diff';
|
|
40
|
+
import '../interface/export/ExportedStorage.js';
|
|
41
|
+
import '../interface/IOpenedLabel.js';
|