@drincs/pixi-vn 0.6.2 → 0.6.3
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/classes/CanvasEvent.js +1 -1
- package/dist/classes/CanvasEvent.js.map +1 -1
- package/dist/classes/CanvasEvent.mjs +1 -1
- package/dist/classes/CanvasEvent.mjs.map +1 -1
- package/dist/classes/CharacterBaseModel.js +15 -15
- package/dist/classes/CharacterBaseModel.js.map +1 -1
- package/dist/classes/CharacterBaseModel.mjs +15 -15
- package/dist/classes/CharacterBaseModel.mjs.map +1 -1
- package/dist/classes/ChoiceMenuOption.js +15 -15
- package/dist/classes/ChoiceMenuOption.js.map +1 -1
- package/dist/classes/ChoiceMenuOption.mjs +15 -15
- package/dist/classes/ChoiceMenuOption.mjs.map +1 -1
- package/dist/classes/CloseLabel.js +1 -1
- package/dist/classes/CloseLabel.js.map +1 -1
- package/dist/classes/CloseLabel.mjs +1 -1
- package/dist/classes/CloseLabel.mjs.map +1 -1
- package/dist/classes/DialogueBaseModel.js +1 -1
- package/dist/classes/DialogueBaseModel.js.map +1 -1
- package/dist/classes/DialogueBaseModel.mjs +1 -1
- package/dist/classes/DialogueBaseModel.mjs.map +1 -1
- package/dist/classes/Label.js +1 -1
- package/dist/classes/Label.js.map +1 -1
- package/dist/classes/Label.mjs +1 -1
- package/dist/classes/Label.mjs.map +1 -1
- package/dist/classes/StoredClassModel.js +15 -15
- package/dist/classes/StoredClassModel.js.map +1 -1
- package/dist/classes/StoredClassModel.mjs +15 -15
- package/dist/classes/StoredClassModel.mjs.map +1 -1
- package/dist/classes/canvas/CanvasBase.js +1 -1
- package/dist/classes/canvas/CanvasBase.js.map +1 -1
- package/dist/classes/canvas/CanvasBase.mjs +1 -1
- package/dist/classes/canvas/CanvasBase.mjs.map +1 -1
- package/dist/classes/canvas/CanvasContainer.js +13 -13
- package/dist/classes/canvas/CanvasContainer.js.map +1 -1
- package/dist/classes/canvas/CanvasContainer.mjs +13 -13
- package/dist/classes/canvas/CanvasContainer.mjs.map +1 -1
- package/dist/classes/canvas/CanvasImage.js +2 -4
- package/dist/classes/canvas/CanvasImage.js.map +1 -1
- package/dist/classes/canvas/CanvasImage.mjs +2 -4
- package/dist/classes/canvas/CanvasImage.mjs.map +1 -1
- package/dist/classes/canvas/CanvasSprite.js +2 -4
- package/dist/classes/canvas/CanvasSprite.js.map +1 -1
- package/dist/classes/canvas/CanvasSprite.mjs +2 -4
- package/dist/classes/canvas/CanvasSprite.mjs.map +1 -1
- package/dist/classes/canvas/CanvasText.js +11 -11
- package/dist/classes/canvas/CanvasText.js.map +1 -1
- package/dist/classes/canvas/CanvasText.mjs +11 -11
- package/dist/classes/canvas/CanvasText.mjs.map +1 -1
- package/dist/classes/canvas/index.js +13 -13
- package/dist/classes/canvas/index.js.map +1 -1
- package/dist/classes/canvas/index.mjs +13 -13
- package/dist/classes/canvas/index.mjs.map +1 -1
- package/dist/classes/index.js +15 -15
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/index.mjs +15 -15
- package/dist/classes/index.mjs.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.js +15 -15
- package/dist/classes/ticker/FadeAlphaTicker.js.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.mjs +15 -15
- package/dist/classes/ticker/FadeAlphaTicker.mjs.map +1 -1
- package/dist/classes/ticker/MoveTicker.js +15 -15
- package/dist/classes/ticker/MoveTicker.js.map +1 -1
- package/dist/classes/ticker/MoveTicker.mjs +15 -15
- package/dist/classes/ticker/MoveTicker.mjs.map +1 -1
- package/dist/classes/ticker/RotateTicker.js +15 -15
- package/dist/classes/ticker/RotateTicker.js.map +1 -1
- package/dist/classes/ticker/RotateTicker.mjs +15 -15
- package/dist/classes/ticker/RotateTicker.mjs.map +1 -1
- package/dist/classes/ticker/TickerBase.js +1 -1
- package/dist/classes/ticker/TickerBase.js.map +1 -1
- package/dist/classes/ticker/TickerBase.mjs +1 -1
- package/dist/classes/ticker/TickerBase.mjs.map +1 -1
- package/dist/classes/ticker/ZoomTicker.js +15 -15
- package/dist/classes/ticker/ZoomTicker.js.map +1 -1
- package/dist/classes/ticker/ZoomTicker.mjs +15 -15
- package/dist/classes/ticker/ZoomTicker.mjs.map +1 -1
- package/dist/classes/ticker/index.js +15 -15
- package/dist/classes/ticker/index.js.map +1 -1
- package/dist/classes/ticker/index.mjs +15 -15
- package/dist/classes/ticker/index.mjs.map +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +2 -2
- package/dist/constants.mjs.map +1 -1
- package/dist/decorators/CanvasElementDecorator.js +13 -13
- package/dist/decorators/CanvasElementDecorator.js.map +1 -1
- package/dist/decorators/CanvasElementDecorator.mjs +13 -13
- package/dist/decorators/CanvasElementDecorator.mjs.map +1 -1
- package/dist/decorators/CharacterDecorator.js +1 -1
- package/dist/decorators/CharacterDecorator.js.map +1 -1
- package/dist/decorators/CharacterDecorator.mjs +1 -1
- package/dist/decorators/CharacterDecorator.mjs.map +1 -1
- package/dist/decorators/EventDecorator.js +1 -1
- package/dist/decorators/EventDecorator.js.map +1 -1
- package/dist/decorators/EventDecorator.mjs +1 -1
- package/dist/decorators/EventDecorator.mjs.map +1 -1
- package/dist/decorators/LabelDecorator.js +15 -15
- package/dist/decorators/LabelDecorator.js.map +1 -1
- package/dist/decorators/LabelDecorator.mjs +15 -15
- package/dist/decorators/LabelDecorator.mjs.map +1 -1
- package/dist/decorators/TickerDecorator.js +1 -1
- package/dist/decorators/TickerDecorator.js.map +1 -1
- package/dist/decorators/TickerDecorator.mjs +1 -1
- package/dist/decorators/TickerDecorator.mjs.map +1 -1
- package/dist/decorators/index.js +15 -15
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/index.mjs +15 -15
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/functions/CanvasUtility.js +13 -13
- package/dist/functions/CanvasUtility.js.map +1 -1
- package/dist/functions/CanvasUtility.mjs +13 -13
- package/dist/functions/CanvasUtility.mjs.map +1 -1
- package/dist/functions/DialogueUtility.js +15 -15
- package/dist/functions/DialogueUtility.js.map +1 -1
- package/dist/functions/DialogueUtility.mjs +15 -15
- package/dist/functions/DialogueUtility.mjs.map +1 -1
- package/dist/functions/DiffUtility.js +1 -1
- package/dist/functions/DiffUtility.js.map +1 -1
- package/dist/functions/DiffUtility.mjs +1 -1
- package/dist/functions/DiffUtility.mjs.map +1 -1
- package/dist/functions/EasterEgg.js +1 -1
- package/dist/functions/EasterEgg.js.map +1 -1
- package/dist/functions/EasterEgg.mjs +1 -1
- package/dist/functions/EasterEgg.mjs.map +1 -1
- package/dist/functions/ExportUtility.js +1 -1
- package/dist/functions/ExportUtility.js.map +1 -1
- package/dist/functions/ExportUtility.mjs +1 -1
- package/dist/functions/ExportUtility.mjs.map +1 -1
- package/dist/functions/FlagsUtility.js +15 -15
- package/dist/functions/FlagsUtility.js.map +1 -1
- package/dist/functions/FlagsUtility.mjs +15 -15
- package/dist/functions/FlagsUtility.mjs.map +1 -1
- package/dist/functions/GameUtility.js +15 -15
- package/dist/functions/GameUtility.js.map +1 -1
- package/dist/functions/GameUtility.mjs +15 -15
- package/dist/functions/GameUtility.mjs.map +1 -1
- package/dist/functions/ImageUtility.js +15 -15
- package/dist/functions/ImageUtility.js.map +1 -1
- package/dist/functions/ImageUtility.mjs +15 -15
- package/dist/functions/ImageUtility.mjs.map +1 -1
- package/dist/functions/SavesUtility.js +16 -16
- package/dist/functions/SavesUtility.js.map +1 -1
- package/dist/functions/SavesUtility.mjs +16 -16
- package/dist/functions/SavesUtility.mjs.map +1 -1
- package/dist/functions/StepLabelUtility.js +1 -1
- package/dist/functions/StepLabelUtility.js.map +1 -1
- package/dist/functions/StepLabelUtility.mjs +1 -1
- package/dist/functions/StepLabelUtility.mjs.map +1 -1
- package/dist/functions/TextureUtility.js +10 -8
- package/dist/functions/TextureUtility.js.map +1 -1
- package/dist/functions/TextureUtility.mjs +10 -8
- package/dist/functions/TextureUtility.mjs.map +1 -1
- package/dist/functions/TickerUtility.js +1 -1
- package/dist/functions/TickerUtility.js.map +1 -1
- package/dist/functions/TickerUtility.mjs +1 -1
- package/dist/functions/TickerUtility.mjs.map +1 -1
- package/dist/functions/index.js +16 -16
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +16 -16
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.js +119 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +120 -18
- package/dist/index.mjs.map +1 -1
- package/dist/interface/CharacterBaseModelProps.js +1 -1
- package/dist/interface/CharacterBaseModelProps.js.map +1 -1
- package/dist/interface/CharacterBaseModelProps.mjs +1 -1
- package/dist/interface/CharacterBaseModelProps.mjs.map +1 -1
- package/dist/interface/DialogueHistory.js +1 -1
- package/dist/interface/DialogueHistory.js.map +1 -1
- package/dist/interface/DialogueHistory.mjs +1 -1
- package/dist/interface/DialogueHistory.mjs.map +1 -1
- package/dist/interface/IHistoryStep.js +1 -1
- package/dist/interface/IHistoryStep.js.map +1 -1
- package/dist/interface/IHistoryStep.mjs +1 -1
- package/dist/interface/IHistoryStep.mjs.map +1 -1
- package/dist/interface/IOpenedLabel.js +1 -1
- package/dist/interface/IOpenedLabel.js.map +1 -1
- package/dist/interface/IOpenedLabel.mjs +1 -1
- package/dist/interface/IOpenedLabel.mjs.map +1 -1
- package/dist/interface/ISaveData.js +1 -1
- package/dist/interface/ISaveData.js.map +1 -1
- package/dist/interface/ISaveData.mjs +1 -1
- package/dist/interface/ISaveData.mjs.map +1 -1
- package/dist/interface/ITicker.js +1 -1
- package/dist/interface/ITicker.js.map +1 -1
- package/dist/interface/ITicker.mjs +1 -1
- package/dist/interface/ITicker.mjs.map +1 -1
- package/dist/interface/ITickersSteps.js +1 -1
- package/dist/interface/ITickersSteps.js.map +1 -1
- package/dist/interface/ITickersSteps.mjs +1 -1
- package/dist/interface/ITickersSteps.mjs.map +1 -1
- package/dist/interface/TickerHistory.js +1 -1
- package/dist/interface/TickerHistory.js.map +1 -1
- package/dist/interface/TickerHistory.mjs +1 -1
- package/dist/interface/TickerHistory.mjs.map +1 -1
- package/dist/interface/TickerProgrationType.js +1 -1
- package/dist/interface/TickerProgrationType.js.map +1 -1
- package/dist/interface/TickerProgrationType.mjs +1 -1
- package/dist/interface/TickerProgrationType.mjs.map +1 -1
- package/dist/interface/TickerTimeoutHistory.js +1 -1
- package/dist/interface/TickerTimeoutHistory.js.map +1 -1
- package/dist/interface/TickerTimeoutHistory.mjs +1 -1
- package/dist/interface/TickerTimeoutHistory.mjs.map +1 -1
- package/dist/interface/canvas/ICanvasBaseMemory.js +1 -1
- package/dist/interface/canvas/ICanvasBaseMemory.js.map +1 -1
- package/dist/interface/canvas/ICanvasBaseMemory.mjs +1 -1
- package/dist/interface/canvas/ICanvasBaseMemory.mjs.map +1 -1
- package/dist/interface/canvas/ICanvasContainerMemory.js +1 -1
- package/dist/interface/canvas/ICanvasContainerMemory.js.map +1 -1
- package/dist/interface/canvas/ICanvasContainerMemory.mjs +1 -1
- package/dist/interface/canvas/ICanvasContainerMemory.mjs.map +1 -1
- package/dist/interface/canvas/ICanvasImageMemory.js +1 -1
- package/dist/interface/canvas/ICanvasImageMemory.js.map +1 -1
- package/dist/interface/canvas/ICanvasImageMemory.mjs +1 -1
- package/dist/interface/canvas/ICanvasImageMemory.mjs.map +1 -1
- package/dist/interface/canvas/ICanvasSpriteMemory.js +1 -1
- package/dist/interface/canvas/ICanvasSpriteMemory.js.map +1 -1
- package/dist/interface/canvas/ICanvasSpriteMemory.mjs +1 -1
- package/dist/interface/canvas/ICanvasSpriteMemory.mjs.map +1 -1
- package/dist/interface/canvas/ICanvasTextTextMemory.js +1 -1
- package/dist/interface/canvas/ICanvasTextTextMemory.js.map +1 -1
- package/dist/interface/canvas/ICanvasTextTextMemory.mjs +1 -1
- package/dist/interface/canvas/ICanvasTextTextMemory.mjs.map +1 -1
- package/dist/interface/canvas/ITextureMemory.js +1 -1
- package/dist/interface/canvas/ITextureMemory.js.map +1 -1
- package/dist/interface/canvas/ITextureMemory.mjs +1 -1
- package/dist/interface/canvas/ITextureMemory.mjs.map +1 -1
- package/dist/interface/canvas/index.js +1 -1
- package/dist/interface/canvas/index.js.map +1 -1
- package/dist/interface/canvas/index.mjs +1 -1
- package/dist/interface/canvas/index.mjs.map +1 -1
- package/dist/interface/export/ExportedCanvas.js +1 -1
- package/dist/interface/export/ExportedCanvas.js.map +1 -1
- package/dist/interface/export/ExportedCanvas.mjs +1 -1
- package/dist/interface/export/ExportedCanvas.mjs.map +1 -1
- package/dist/interface/export/ExportedStep.js +1 -1
- package/dist/interface/export/ExportedStep.js.map +1 -1
- package/dist/interface/export/ExportedStep.mjs +1 -1
- package/dist/interface/export/ExportedStep.mjs.map +1 -1
- package/dist/interface/export/ExportedStorage.js +1 -1
- package/dist/interface/export/ExportedStorage.js.map +1 -1
- package/dist/interface/export/ExportedStorage.mjs +1 -1
- package/dist/interface/export/ExportedStorage.mjs.map +1 -1
- package/dist/interface/export/index.js +1 -1
- package/dist/interface/export/index.js.map +1 -1
- package/dist/interface/export/index.mjs +1 -1
- package/dist/interface/export/index.mjs.map +1 -1
- package/dist/interface/index.js +1 -1
- package/dist/interface/index.js.map +1 -1
- package/dist/interface/index.mjs +1 -1
- package/dist/interface/index.mjs.map +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.js +917 -23
- package/dist/labels/BaseCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.mjs +917 -23
- package/dist/labels/BaseCanvasElementTestLabel.mjs.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.js +15 -15
- package/dist/labels/CanvasEventsTestLabel.js.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.mjs +15 -15
- package/dist/labels/CanvasEventsTestLabel.mjs.map +1 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +15 -18
- package/dist/labels/CustomTickerCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.mjs +15 -18
- package/dist/labels/CustomTickerCanvasElementTestLabel.mjs.map +1 -1
- package/dist/labels/ImagesAnimationsTestLabel.js +15 -15
- package/dist/labels/ImagesAnimationsTestLabel.js.map +1 -1
- package/dist/labels/ImagesAnimationsTestLabel.mjs +15 -15
- package/dist/labels/ImagesAnimationsTestLabel.mjs.map +1 -1
- package/dist/labels/MarkdownTest.js +15 -15
- package/dist/labels/MarkdownTest.js.map +1 -1
- package/dist/labels/MarkdownTest.mjs +15 -15
- package/dist/labels/MarkdownTest.mjs.map +1 -1
- package/dist/labels/StartLabel.js +121 -19
- package/dist/labels/StartLabel.js.map +1 -1
- package/dist/labels/StartLabel.mjs +122 -20
- package/dist/labels/StartLabel.mjs.map +1 -1
- package/dist/labels/TestConstant.js +15 -15
- package/dist/labels/TestConstant.js.map +1 -1
- package/dist/labels/TestConstant.mjs +15 -15
- package/dist/labels/TestConstant.mjs.map +1 -1
- package/dist/labels/index.js +121 -19
- package/dist/labels/index.js.map +1 -1
- package/dist/labels/index.mjs +122 -20
- package/dist/labels/index.mjs.map +1 -1
- package/dist/managers/StepManager.js +15 -15
- package/dist/managers/StepManager.js.map +1 -1
- package/dist/managers/StepManager.mjs +15 -15
- package/dist/managers/StepManager.mjs.map +1 -1
- package/dist/managers/StorageManager.js +1 -1
- package/dist/managers/StorageManager.js.map +1 -1
- package/dist/managers/StorageManager.mjs +1 -1
- package/dist/managers/StorageManager.mjs.map +1 -1
- package/dist/managers/WindowManager.d.mts +1 -1
- package/dist/managers/WindowManager.d.ts +1 -1
- package/dist/managers/WindowManager.js +15 -15
- package/dist/managers/WindowManager.js.map +1 -1
- package/dist/managers/WindowManager.mjs +15 -15
- package/dist/managers/WindowManager.mjs.map +1 -1
- package/dist/managers/index.js +15 -15
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/index.mjs +15 -15
- package/dist/managers/index.mjs.map +1 -1
- package/dist/override/StepLabelProps.js +1 -1
- package/dist/override/StepLabelProps.js.map +1 -1
- package/dist/override/StepLabelProps.mjs +1 -1
- package/dist/override/StepLabelProps.mjs.map +1 -1
- package/dist/override/StepLabelResult.js +1 -1
- package/dist/override/StepLabelResult.js.map +1 -1
- package/dist/override/StepLabelResult.mjs +1 -1
- package/dist/override/StepLabelResult.mjs.map +1 -1
- package/dist/override/index.js +1 -1
- package/dist/override/index.js.map +1 -1
- package/dist/override/index.mjs +1 -1
- package/dist/override/index.mjs.map +1 -1
- package/dist/types/CanvasElementTagType.js +1 -1
- package/dist/types/CanvasElementTagType.js.map +1 -1
- package/dist/types/CanvasElementTagType.mjs +1 -1
- package/dist/types/CanvasElementTagType.mjs.map +1 -1
- package/dist/types/CanvasEventNamesType.js +1 -1
- package/dist/types/CanvasEventNamesType.js.map +1 -1
- package/dist/types/CanvasEventNamesType.mjs +1 -1
- package/dist/types/CanvasEventNamesType.mjs.map +1 -1
- package/dist/types/ChoiceMenuOptionsType.js +1 -1
- package/dist/types/ChoiceMenuOptionsType.js.map +1 -1
- package/dist/types/ChoiceMenuOptionsType.mjs +1 -1
- package/dist/types/ChoiceMenuOptionsType.mjs.map +1 -1
- package/dist/types/CloseType.js +1 -1
- package/dist/types/CloseType.js.map +1 -1
- package/dist/types/CloseType.mjs +1 -1
- package/dist/types/CloseType.mjs.map +1 -1
- package/dist/types/EventIdType.js +1 -1
- package/dist/types/EventIdType.js.map +1 -1
- package/dist/types/EventIdType.mjs +1 -1
- package/dist/types/EventIdType.mjs.map +1 -1
- package/dist/types/HistoryChoiceMenuOption.js +1 -1
- package/dist/types/HistoryChoiceMenuOption.js.map +1 -1
- package/dist/types/HistoryChoiceMenuOption.mjs +1 -1
- package/dist/types/HistoryChoiceMenuOption.mjs.map +1 -1
- package/dist/types/LabelIdType.js +1 -1
- package/dist/types/LabelIdType.js.map +1 -1
- package/dist/types/LabelIdType.mjs +1 -1
- package/dist/types/LabelIdType.mjs.map +1 -1
- package/dist/types/LabelRunModeType.js +1 -1
- package/dist/types/LabelRunModeType.js.map +1 -1
- package/dist/types/LabelRunModeType.mjs +1 -1
- package/dist/types/LabelRunModeType.mjs.map +1 -1
- package/dist/types/PauseType.js +1 -1
- package/dist/types/PauseType.js.map +1 -1
- package/dist/types/PauseType.mjs +1 -1
- package/dist/types/PauseType.mjs.map +1 -1
- package/dist/types/RepeatType.js +1 -1
- package/dist/types/RepeatType.js.map +1 -1
- package/dist/types/RepeatType.mjs +1 -1
- package/dist/types/RepeatType.mjs.map +1 -1
- package/dist/types/StepHistoryDataType.js +1 -1
- package/dist/types/StepHistoryDataType.js.map +1 -1
- package/dist/types/StepHistoryDataType.mjs +1 -1
- package/dist/types/StepHistoryDataType.mjs.map +1 -1
- package/dist/types/StepLabelType.js +1 -1
- package/dist/types/StepLabelType.js.map +1 -1
- package/dist/types/StepLabelType.mjs +1 -1
- package/dist/types/StepLabelType.mjs.map +1 -1
- package/dist/types/StorageElementType.js +1 -1
- package/dist/types/StorageElementType.js.map +1 -1
- package/dist/types/StorageElementType.mjs +1 -1
- package/dist/types/StorageElementType.mjs.map +1 -1
- package/dist/types/TickerIdType.js +1 -1
- package/dist/types/TickerIdType.js.map +1 -1
- package/dist/types/TickerIdType.mjs +1 -1
- package/dist/types/TickerIdType.mjs.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/dist/types/ticker/FadeAlphaTickerProps.js +1 -1
- package/dist/types/ticker/FadeAlphaTickerProps.js.map +1 -1
- package/dist/types/ticker/FadeAlphaTickerProps.mjs +1 -1
- package/dist/types/ticker/FadeAlphaTickerProps.mjs.map +1 -1
- package/dist/types/ticker/MoveTickerProps.js +1 -1
- package/dist/types/ticker/MoveTickerProps.js.map +1 -1
- package/dist/types/ticker/MoveTickerProps.mjs +1 -1
- package/dist/types/ticker/MoveTickerProps.mjs.map +1 -1
- package/dist/types/ticker/RotateTickerProps.js +1 -1
- package/dist/types/ticker/RotateTickerProps.js.map +1 -1
- package/dist/types/ticker/RotateTickerProps.mjs +1 -1
- package/dist/types/ticker/RotateTickerProps.mjs.map +1 -1
- package/dist/types/ticker/TagToRemoveAfterType.js +1 -1
- package/dist/types/ticker/TagToRemoveAfterType.js.map +1 -1
- package/dist/types/ticker/TagToRemoveAfterType.mjs +1 -1
- package/dist/types/ticker/TagToRemoveAfterType.mjs.map +1 -1
- package/dist/types/ticker/ZoomTickerProps.js +1 -1
- package/dist/types/ticker/ZoomTickerProps.js.map +1 -1
- package/dist/types/ticker/ZoomTickerProps.mjs +1 -1
- package/dist/types/ticker/ZoomTickerProps.mjs.map +1 -1
- package/dist/types/ticker/index.js +1 -1
- package/dist/types/ticker/index.js.map +1 -1
- package/dist/types/ticker/index.mjs +1 -1
- package/dist/types/ticker/index.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/labels/TickerTestLabel.d.mts +0 -9
- package/dist/labels/TickerTestLabel.d.ts +0 -9
- package/dist/labels/TickerTestLabel.js +0 -2675
- package/dist/labels/TickerTestLabel.js.map +0 -1
- package/dist/labels/TickerTestLabel.mjs +0 -2669
- package/dist/labels/TickerTestLabel.mjs.map +0 -1
|
@@ -17,5 +17,5 @@ function checkIfStepsIsEqual(step1, step2) {
|
|
|
17
17
|
|
|
18
18
|
exports.checkIfStepsIsEqual = checkIfStepsIsEqual;
|
|
19
19
|
exports.getStepSha1 = getStepSha1;
|
|
20
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=StepLabelUtility.js.map
|
|
21
21
|
//# sourceMappingURL=StepLabelUtility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/functions/StepLabelUtility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/functions/StepLabelUtility.ts"],"names":["sha1"],"mappings":";;;;;;;;;AASO,SAAS,YAAY,IAA0C,EAAA;AAClE,EAAA,IAAI,aAAaA,qBAAK,CAAA,IAAA,CAAK,QAAS,EAAA,CAAE,mBAAmB,CAAA,CAAA;AACzD,EAAA,OAAO,WAAW,QAAS,EAAA,CAAA;AAC/B,CAAA;AAOO,SAAS,mBAAA,CAAoB,OAAiD,KAA0D,EAAA;AAC3I,EAAA,OAAO,KAAU,KAAA,KAAA,CAAA;AACrB","file":"StepLabelUtility.js","sourcesContent":["import sha1 from 'crypto-js/sha1';\nimport { StepHistoryDataType } from \"../types/StepHistoryDataType\";\nimport { StepLabelType } from \"../types/StepLabelType\";\n\n/**\n * Convert StepLabel to StepHistoryData\n * @param step\n * @returns\n */\nexport function getStepSha1(step: StepLabelType): StepHistoryDataType {\n let sha1String = sha1(step.toString().toLocaleLowerCase())\n return sha1String.toString()\n}\n/**\n * Check if two steps are equal\n * @param step1\n * @param step2\n * @returns\n */\nexport function checkIfStepsIsEqual(step1: StepHistoryDataType | StepLabelType<any>, step2: StepHistoryDataType | StepLabelType<any>): boolean {\n return step1 === step2\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/functions/StepLabelUtility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/functions/StepLabelUtility.ts"],"names":[],"mappings":";;;AASO,SAAS,YAAY,IAA0C,EAAA;AAClE,EAAA,IAAI,aAAa,IAAK,CAAA,IAAA,CAAK,QAAS,EAAA,CAAE,mBAAmB,CAAA,CAAA;AACzD,EAAA,OAAO,WAAW,QAAS,EAAA,CAAA;AAC/B,CAAA;AAOO,SAAS,mBAAA,CAAoB,OAAiD,KAA0D,EAAA;AAC3I,EAAA,OAAO,KAAU,KAAA,KAAA,CAAA;AACrB","file":"StepLabelUtility.mjs","sourcesContent":["import sha1 from 'crypto-js/sha1';\nimport { StepHistoryDataType } from \"../types/StepHistoryDataType\";\nimport { StepLabelType } from \"../types/StepLabelType\";\n\n/**\n * Convert StepLabel to StepHistoryData\n * @param step\n * @returns\n */\nexport function getStepSha1(step: StepLabelType): StepHistoryDataType {\n let sha1String = sha1(step.toString().toLocaleLowerCase())\n return sha1String.toString()\n}\n/**\n * Check if two steps are equal\n * @param step1\n * @param step2\n * @returns\n */\nexport function checkIfStepsIsEqual(step1: StepHistoryDataType | StepLabelType<any>, step2: StepHistoryDataType | StepLabelType<any>): boolean {\n return step1 === step2\n}\n"]}
|
|
@@ -43,17 +43,19 @@ function getTexture(imageUrl) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
console.warn("[Pixi'VN] CanvasText.style.fill is a FillGradient or FillPattern, this is not supported yet.", fill);
|
|
50
|
-
fill = "#00FF00";
|
|
46
|
+
function getFillGradientFillPattern(prop, propName) {
|
|
47
|
+
if (!(prop instanceof Object)) {
|
|
48
|
+
return prop;
|
|
51
49
|
}
|
|
50
|
+
console.warn(`[Pixi'VN] CanvasText.style.${propName} is a FillGradient or FillPattern, this is not supported yet.`, prop);
|
|
51
|
+
return void 0;
|
|
52
|
+
}
|
|
53
|
+
function getTextStyle(style) {
|
|
52
54
|
return {
|
|
53
55
|
align: style.align,
|
|
54
56
|
breakWords: style.breakWords,
|
|
55
57
|
dropShadow: style.dropShadow,
|
|
56
|
-
fill,
|
|
58
|
+
fill: getFillGradientFillPattern(style.stroke, "fill"),
|
|
57
59
|
fontFamily: style.fontFamily,
|
|
58
60
|
fontSize: style.fontSize,
|
|
59
61
|
fontStyle: style.fontStyle,
|
|
@@ -63,7 +65,7 @@ function getTextStyle(style) {
|
|
|
63
65
|
letterSpacing: style.letterSpacing,
|
|
64
66
|
lineHeight: style.lineHeight,
|
|
65
67
|
padding: style.padding,
|
|
66
|
-
stroke: style.stroke,
|
|
68
|
+
stroke: getFillGradientFillPattern(style.stroke, "stroke"),
|
|
67
69
|
textBaseline: style.textBaseline,
|
|
68
70
|
trim: style.trim,
|
|
69
71
|
whiteSpace: style.whiteSpace,
|
|
@@ -74,5 +76,5 @@ function getTextStyle(style) {
|
|
|
74
76
|
|
|
75
77
|
exports.getTextStyle = getTextStyle;
|
|
76
78
|
exports.getTexture = getTexture;
|
|
77
|
-
//# sourceMappingURL=
|
|
79
|
+
//# sourceMappingURL=TextureUtility.js.map
|
|
78
80
|
//# sourceMappingURL=TextureUtility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/functions/TextureUtility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/functions/TextureUtility.ts"],"names":["Assets","Texture"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAsB,WAAW,QAA2C,EAAA;AAAA,EAAA,OAAA,OAAA,CAAA,IAAA,EAAA,IAAA,EAAA,aAAA;AACxE,IAAA,IAAIA,cAAO,CAAA,KAAA,CAAM,GAAI,CAAA,QAAQ,CAAG,EAAA;AAC5B,MAAO,OAAAA,cAAA,CAAO,IAAI,QAAQ,CAAA,CAAA;AAAA,KAC9B;AACA,IAAA,OAAOA,eAAO,IAAK,CAAA,QAAQ,CACtB,CAAA,IAAA,CAAK,CAAC,OAAY,KAAA;AACf,MAAA,IAAI,CAAC,OAAS,EAAA;AACV,QAAQ,OAAA,CAAA,KAAA,CAAM,+BAA+B,QAAQ,CAAA,CAAA;AACrD,QAAA,OAAA;AAAA,OACJ;AAEA,MAAI,IAAA,EAAE,mBAAmBC,eAAU,CAAA,EAAA;AAC/B,QAAQ,OAAA,CAAA,KAAA,CAAM,iCAAiC,QAAQ,CAAA,CAAA;AACvD,QAAA,OAAA;AAAA,OACJ;AAEA,MAAO,OAAA,OAAA,CAAA;AAAA,KACV,CAAA,CACA,KAAM,CAAA,CAAC,CAAM,KAAA;AACV,MAAQ,OAAA,CAAA,KAAA,CAAM,iCAAiC,CAAC,CAAA,CAAA;AAChD,MAAA,OAAA;AAAA,KACH,CAAA,CAAA;AAAA,GACT,CAAA,CAAA;AAAA,CAAA;AAEA,SAAS,0BAAA,CAA2B,MAA8D,QAA2B,EAAA;AACzH,EAAI,IAAA,EAAE,gBAAgB,MAAS,CAAA,EAAA;AAC3B,IAAO,OAAA,IAAA,CAAA;AAAA,GACX;AAEA,EAAA,OAAA,CAAQ,IAAK,CAAA,CAAA,2BAAA,EAA8B,QAAQ,CAAA,6DAAA,CAAA,EAAiE,IAAI,CAAA,CAAA;AACxH,EAAO,OAAA,KAAA,CAAA,CAAA;AACX,CAAA;AAEO,SAAS,aAAa,KAAoC,EAAA;AAC7D,EAAO,OAAA;AAAA,IACH,OAAO,KAAM,CAAA,KAAA;AAAA,IACb,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,IAAM,EAAA,0BAAA,CAA2B,KAAM,CAAA,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrD,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,UAAU,KAAM,CAAA,QAAA;AAAA,IAChB,WAAW,KAAM,CAAA,SAAA;AAAA,IACjB,aAAa,KAAM,CAAA,WAAA;AAAA,IACnB,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,SAAS,KAAM,CAAA,OAAA;AAAA,IACf,eAAe,KAAM,CAAA,aAAA;AAAA,IACrB,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,SAAS,KAAM,CAAA,OAAA;AAAA,IACf,MAAQ,EAAA,0BAAA,CAA2B,KAAM,CAAA,MAAA,EAAQ,QAAQ,CAAA;AAAA,IACzD,cAAc,KAAM,CAAA,YAAA;AAAA,IACpB,MAAM,KAAM,CAAA,IAAA;AAAA,IACZ,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,UAAU,KAAM,CAAA,QAAA;AAAA,IAChB,eAAe,KAAM,CAAA,aAAA;AAAA,GACzB,CAAA;AACJ","file":"TextureUtility.js","sourcesContent":["import { Assets, ColorSource, FillGradient, FillPattern, StrokeStyle, 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\nfunction getFillGradientFillPattern(prop: ColorSource | FillGradient | FillPattern | StrokeStyle, propName: keyof TextStyle) {\n if (!(prop instanceof Object)) {\n return prop\n }\n // TODO: FillGradient and FillPattern are not supported yet\n console.warn(`[Pixi'VN] CanvasText.style.${propName} is a FillGradient or FillPattern, this is not supported yet.`, prop)\n return undefined\n}\n\nexport function getTextStyle(style: TextStyle): TextStyleOptions {\n return {\n align: style.align,\n breakWords: style.breakWords,\n dropShadow: style.dropShadow,\n fill: getFillGradientFillPattern(style.stroke, \"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: getFillGradientFillPattern(style.stroke, \"stroke\"),\n textBaseline: style.textBaseline,\n trim: style.trim,\n whiteSpace: style.whiteSpace,\n wordWrap: style.wordWrap,\n wordWrapWidth: style.wordWrapWidth,\n }\n}\n"]}
|
|
@@ -41,17 +41,19 @@ function getTexture(imageUrl) {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
console.warn("[Pixi'VN] CanvasText.style.fill is a FillGradient or FillPattern, this is not supported yet.", fill);
|
|
48
|
-
fill = "#00FF00";
|
|
44
|
+
function getFillGradientFillPattern(prop, propName) {
|
|
45
|
+
if (!(prop instanceof Object)) {
|
|
46
|
+
return prop;
|
|
49
47
|
}
|
|
48
|
+
console.warn(`[Pixi'VN] CanvasText.style.${propName} is a FillGradient or FillPattern, this is not supported yet.`, prop);
|
|
49
|
+
return void 0;
|
|
50
|
+
}
|
|
51
|
+
function getTextStyle(style) {
|
|
50
52
|
return {
|
|
51
53
|
align: style.align,
|
|
52
54
|
breakWords: style.breakWords,
|
|
53
55
|
dropShadow: style.dropShadow,
|
|
54
|
-
fill,
|
|
56
|
+
fill: getFillGradientFillPattern(style.stroke, "fill"),
|
|
55
57
|
fontFamily: style.fontFamily,
|
|
56
58
|
fontSize: style.fontSize,
|
|
57
59
|
fontStyle: style.fontStyle,
|
|
@@ -61,7 +63,7 @@ function getTextStyle(style) {
|
|
|
61
63
|
letterSpacing: style.letterSpacing,
|
|
62
64
|
lineHeight: style.lineHeight,
|
|
63
65
|
padding: style.padding,
|
|
64
|
-
stroke: style.stroke,
|
|
66
|
+
stroke: getFillGradientFillPattern(style.stroke, "stroke"),
|
|
65
67
|
textBaseline: style.textBaseline,
|
|
66
68
|
trim: style.trim,
|
|
67
69
|
whiteSpace: style.whiteSpace,
|
|
@@ -71,5 +73,5 @@ function getTextStyle(style) {
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
export { getTextStyle, getTexture };
|
|
74
|
-
//# sourceMappingURL=
|
|
76
|
+
//# sourceMappingURL=TextureUtility.mjs.map
|
|
75
77
|
//# sourceMappingURL=TextureUtility.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/functions/TextureUtility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../src/functions/TextureUtility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAOA,SAAsB,WAAW,QAA2C,EAAA;AAAA,EAAA,OAAA,OAAA,CAAA,IAAA,EAAA,IAAA,EAAA,aAAA;AACxE,IAAA,I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CAAA;AAAA,IACrD,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,UAAU,KAAM,CAAA,QAAA;AAAA,IAChB,WAAW,KAAM,CAAA,SAAA;AAAA,IACjB,aAAa,KAAM,CAAA,WAAA;AAAA,IACnB,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,SAAS,KAAM,CAAA,OAAA;AAAA,IACf,eAAe,KAAM,CAAA,aAAA;AAAA,IACrB,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,SAAS,KAAM,CAAA,OAAA;AAAA,IACf,MAAQ,EAAA,0BAAA,CAA2B,KAAM,CAAA,MAAA,EAAQ,QAAQ,CAAA;AAAA,IACzD,cAAc,KAAM,CAAA,YAAA;AAAA,IACpB,MAAM,KAAM,CAAA,IAAA;AAAA,IACZ,YAAY,KAAM,CAAA,UAAA;AAAA,IAClB,UAAU,KAAM,CAAA,QAAA;AAAA,IAChB,eAAe,KAAM,CAAA,aAAA;AAAA,GACzB,CAAA;AACJ","file":"TextureUtility.mjs","sourcesContent":["import { Assets, ColorSource, FillGradient, FillPattern, StrokeStyle, 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\nfunction getFillGradientFillPattern(prop: ColorSource | FillGradient | FillPattern | StrokeStyle, propName: keyof TextStyle) {\n if (!(prop instanceof Object)) {\n return prop\n }\n // TODO: FillGradient and FillPattern are not supported yet\n console.warn(`[Pixi'VN] CanvasText.style.${propName} is a FillGradient or FillPattern, this is not supported yet.`, prop)\n return undefined\n}\n\nexport function getTextStyle(style: TextStyle): TextStyleOptions {\n return {\n align: style.align,\n breakWords: style.breakWords,\n dropShadow: style.dropShadow,\n fill: getFillGradientFillPattern(style.stroke, \"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: getFillGradientFillPattern(style.stroke, \"stroke\"),\n textBaseline: style.textBaseline,\n trim: style.trim,\n whiteSpace: style.whiteSpace,\n wordWrap: style.wordWrap,\n wordWrapWidth: style.wordWrapWidth,\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/functions/TickerUtility.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/functions/TickerUtility.ts"],"names":[],"mappings":";;;AAUO,SAAS,uBAAA,CAAsC,IAAS,EAAA,YAAA,EAAuB,WAAmC,EAAA;AACrH,EAAI,IAAA,IAAA,CAAK,YAAY,CAAA,KAAM,KACpB,CAAA,IAAA,CAAC,eACD,IAAK,CAAA,YAAY,CAAM,KAAA,WAAA,CAAY,KACxC,EAAA;AACE,IAAA,OAAA;AAAA,GACJ;AACA,EAAA,IAAI,OAAO,IAAA,CAAK,YAAY,CAAA,KAAM,QAAU,EAAA;AACxC,IAAI,IAAA,WAAA,CAAY,SAAS,QAAU,EAAA;AAC/B,MAAC,KAAa,YAAY,CAAA,GAAI,qBAAqB,IAAK,CAAA,YAAY,GAAG,WAAW,CAAA,CAAA;AAAA,KACtF,MAAA,IACS,WAAY,CAAA,IAAA,KAAS,aAAe,EAAA;AACzC,MAAC,KAAa,YAAY,CAAA,GAAI,0BAA0B,IAAK,CAAA,YAAY,GAAG,WAAW,CAAA,CAA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MAAS,GAAA,WAAA,CAAY,KAAS,IAAA,WAAA,CAAY,MAAM,CAAG,EAAA;AACxD,MAAA,OAAO,WAAY,CAAA,KAAA,CAAA;AAAA,KACvB;AAAA,GACJ;AACA,EAAO,OAAA,MAAA,GAAU,YAAY,GAAM,GAAA,EAAA,CAAA;AACvC,CAAA;AAEA,SAAS,yBAAA,CAA0B,QAAgB,WAAmD,EAAA;AAClG,EAAI,IAAA,WAAA,CAAY,UAAU,KAAW,CAAA,EAAA;AACjC,IAAA,IAAI,MAAS,GAAA,WAAA,CAAY,KAAS,IAAA,WAAA,CAAY,aAAa,CAAG,EAAA;AAC1D,MAAA,OAAO,WAAY,CAAA,KAAA,CAAA;AAAA,eAEd,MAAS,GAAA,WAAA,CAAY,KAAS,IAAA,WAAA,CAAY,aAAa,CAAG,EAAA;AAC/D,MAAA,OAAO,WAAY,CAAA,KAAA,CAAA;AAAA,KACvB;AAAA,GACJ;AACA,EAAO,OAAA,MAAA,GAAS,SAAS,WAAY,CAAA,UAAA,CAAA;AACzC","file":"TickerUtility.js","sourcesContent":["import { ITickerProgrationExponential, ITickerProgrationLinear, 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<T extends {}>(args: T, propertyName: keyof T, progression: TickerProgrationType) {\n if (args[propertyName] === undefined\n || !progression\n || args[propertyName] === progression.limit\n ) {\n return\n }\n if (typeof args[propertyName] === \"number\") {\n if (progression.type === \"linear\") {\n (args as any)[propertyName] = getLinearProgression(args[propertyName], progression)\n }\n else if (progression.type === \"exponential\") {\n (args as any)[propertyName] = getExponentialProgression(args[propertyName], progression)\n }\n }\n // args[propertyName] is { x: number, y: number }\n else if (\n args[propertyName] !== undefined &&\n typeof args[propertyName] === \"object\" &&\n (args as any)[propertyName].haveOwnProperty(\"x\") &&\n (args as any)[propertyName].haveOwnProperty(\"y\") &&\n typeof (args as any)[propertyName].x === \"number\" &&\n typeof (args as any)[propertyName].y === \"number\"\n ) {\n if (progression.type === \"linear\") {\n (args as any)[propertyName].x = getLinearProgression((args as any)[propertyName].x, progression);\n (args as any)[propertyName].y = getLinearProgression((args as any)[propertyName].y, progression)\n }\n else if (progression.type === \"exponential\") {\n (args as any)[propertyName].x = getExponentialProgression((args as any)[propertyName].x, progression);\n (args as any)[propertyName].y = getExponentialProgression((args as any)[propertyName].y, progression)\n }\n }\n}\n\nfunction getLinearProgression(number: number, progression: ITickerProgrationLinear): number {\n if (progression.limit !== undefined) {\n if (number > progression.limit && progression.amt > 0) {\n return progression.limit\n }\n else if (number < progression.limit && progression.amt < 0) {\n return progression.limit\n }\n }\n return number + (progression.amt / 60)\n}\n\nfunction getExponentialProgression(number: number, progression: ITickerProgrationExponential): number {\n if (progression.limit !== undefined) {\n if (number > progression.limit && progression.percentage > 0) {\n return progression.limit\n }\n else if (number < progression.limit && progression.percentage < 0) {\n return progression.limit\n }\n }\n return number + number * progression.percentage\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/functions/TickerUtility.ts"],"names":[],"mappings":";AAUO,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../src/functions/TickerUtility.ts"],"names":[],"mappings":";AAUO,SAAS,uBAAA,CAAsC,IAAS,EAAA,YAAA,EAAuB,WAAmC,EAAA;AACrH,EAAI,IAAA,IAAA,CAAK,YAAY,CAAA,KAAM,KACpB,CAAA,IAAA,CAAC,eACD,IAAK,CAAA,YAAY,CAAM,KAAA,WAAA,CAAY,KACxC,EAAA;AACE,IAAA,OAAA;AAAA,GACJ;AACA,EAAA,IAAI,OAAO,IAAA,CAAK,YAAY,CAAA,KAAM,QAAU,EAAA;AACxC,IAAI,IAAA,WAAA,CAAY,SAAS,QAAU,EAAA;AAC/B,MAAC,KAAa,YAAY,CAA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8C,EAAA;AACxF,EAAI,IAAA,WAAA,CAAY,UAAU,KAAW,CAAA,EAAA;AACjC,IAAA,IAAI,MAAS,GAAA,WAAA,CAAY,KAAS,IAAA,WAAA,CAAY,MAAM,CAAG,EAAA;AACnD,MAAA,OAAO,WAAY,CAAA,KAAA,CAAA;AAAA,eAEd,MAAS,GAAA,WAAA,CAAY,KAAS,IAAA,WAAA,CAAY,MAAM,CAAG,EAAA;AACxD,MAAA,OAAO,WAAY,CAAA,KAAA,CAAA;AAAA,KACvB;AAAA,GACJ;AACA,EAAO,OAAA,MAAA,GAAU,YAAY,GAAM,GAAA,EAAA,CAAA;AACvC,CAAA;AAEA,SAAS,yBAAA,CAA0B,QAAgB,WAAmD,EAAA;AAClG,EAAI,IAAA,WAAA,CAAY,UAAU,KAAW,CAAA,EAAA;AACjC,IAAA,IAAI,MAAS,GAAA,WAAA,CAAY,KAAS,IAAA,WAAA,CAAY,aAAa,CAAG,EAAA;AAC1D,MAAA,OAAO,WAAY,CAAA,KAAA,CAAA;AAAA,eAEd,MAAS,GAAA,WAAA,CAAY,KAAS,IAAA,WAAA,CAAY,aAAa,CAAG,EAAA;AAC/D,MAAA,OAAO,WAAY,CAAA,KAAA,CAAA;AAAA,KACvB;AAAA,GACJ;AACA,EAAO,OAAA,MAAA,GAAS,SAAS,WAAY,CAAA,UAAA,CAAA;AACzC","file":"TickerUtility.mjs","sourcesContent":["import { ITickerProgrationExponential, ITickerProgrationLinear, 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<T extends {}>(args: T, propertyName: keyof T, progression: TickerProgrationType) {\n if (args[propertyName] === undefined\n || !progression\n || args[propertyName] === progression.limit\n ) {\n return\n }\n if (typeof args[propertyName] === \"number\") {\n if (progression.type === \"linear\") {\n (args as any)[propertyName] = getLinearProgression(args[propertyName], progression)\n }\n else if (progression.type === \"exponential\") {\n (args as any)[propertyName] = getExponentialProgression(args[propertyName], progression)\n }\n }\n // args[propertyName] is { x: number, y: number }\n else if (\n args[propertyName] !== undefined &&\n typeof args[propertyName] === \"object\" &&\n (args as any)[propertyName].haveOwnProperty(\"x\") &&\n (args as any)[propertyName].haveOwnProperty(\"y\") &&\n typeof (args as any)[propertyName].x === \"number\" &&\n typeof (args as any)[propertyName].y === \"number\"\n ) {\n if (progression.type === \"linear\") {\n (args as any)[propertyName].x = getLinearProgression((args as any)[propertyName].x, progression);\n (args as any)[propertyName].y = getLinearProgression((args as any)[propertyName].y, progression)\n }\n else if (progression.type === \"exponential\") {\n (args as any)[propertyName].x = getExponentialProgression((args as any)[propertyName].x, progression);\n (args as any)[propertyName].y = getExponentialProgression((args as any)[propertyName].y, progression)\n }\n }\n}\n\nfunction getLinearProgression(number: number, progression: ITickerProgrationLinear): number {\n if (progression.limit !== undefined) {\n if (number > progression.limit && progression.amt > 0) {\n return progression.limit\n }\n else if (number < progression.limit && progression.amt < 0) {\n return progression.limit\n }\n }\n return number + (progression.amt / 60)\n}\n\nfunction getExponentialProgression(number: number, progression: ITickerProgrationExponential): number {\n if (progression.limit !== undefined) {\n if (number > progression.limit && progression.percentage > 0) {\n return progression.limit\n }\n else if (number < progression.limit && progression.percentage < 0) {\n return progression.limit\n }\n }\n return number + number * progression.percentage\n}\n"]}
|
package/dist/functions/index.js
CHANGED
|
@@ -316,7 +316,7 @@ var TickerBase = class {
|
|
|
316
316
|
};
|
|
317
317
|
|
|
318
318
|
// src/constants.ts
|
|
319
|
-
var PIXIVN_VERSION = "0.6.
|
|
319
|
+
var PIXIVN_VERSION = "0.6.3";
|
|
320
320
|
var Repeat = "repeat";
|
|
321
321
|
function Pause(duration) {
|
|
322
322
|
return {
|
|
@@ -357,7 +357,7 @@ var CanvasContainer = class extends pixi_js.Container {
|
|
|
357
357
|
constructor(options) {
|
|
358
358
|
super(options);
|
|
359
359
|
this.pixivnId = CANVAS_CONTAINER_ID;
|
|
360
|
-
this.pixivnId = this.constructor.prototype.pixivnId;
|
|
360
|
+
this.pixivnId = this.constructor.prototype.pixivnId || CANVAS_CONTAINER_ID;
|
|
361
361
|
}
|
|
362
362
|
get memory() {
|
|
363
363
|
let memory = getMemoryContainer(this);
|
|
@@ -395,7 +395,6 @@ function getMemoryContainer(element) {
|
|
|
395
395
|
position: { x: element.position.x, y: element.position.y },
|
|
396
396
|
skew: { x: element.skew.x, y: element.skew.y },
|
|
397
397
|
visible: element.visible,
|
|
398
|
-
culled: element.culled,
|
|
399
398
|
x: element.x,
|
|
400
399
|
y: element.y,
|
|
401
400
|
boundsArea: element.boundsArea,
|
|
@@ -433,7 +432,6 @@ function setMemoryContainer(element, memory) {
|
|
|
433
432
|
memory.position && element.position.set(memory.position.x, memory.position.y);
|
|
434
433
|
memory.skew && element.skew.set(memory.skew.x, memory.skew.y);
|
|
435
434
|
memory.visible && (element.visible = memory.visible);
|
|
436
|
-
memory.culled && (element.culled = memory.culled);
|
|
437
435
|
memory.x && (element.x = memory.x);
|
|
438
436
|
memory.y && (element.y = memory.y);
|
|
439
437
|
memory.boundsArea && (element.boundsArea = memory.boundsArea);
|
|
@@ -464,17 +462,19 @@ function getTexture(imageUrl) {
|
|
|
464
462
|
});
|
|
465
463
|
});
|
|
466
464
|
}
|
|
467
|
-
function
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
console.warn("[Pixi'VN] CanvasText.style.fill is a FillGradient or FillPattern, this is not supported yet.", fill);
|
|
471
|
-
fill = "#00FF00";
|
|
465
|
+
function getFillGradientFillPattern(prop, propName) {
|
|
466
|
+
if (!(prop instanceof Object)) {
|
|
467
|
+
return prop;
|
|
472
468
|
}
|
|
469
|
+
console.warn(`[Pixi'VN] CanvasText.style.${propName} is a FillGradient or FillPattern, this is not supported yet.`, prop);
|
|
470
|
+
return void 0;
|
|
471
|
+
}
|
|
472
|
+
function getTextStyle(style) {
|
|
473
473
|
return {
|
|
474
474
|
align: style.align,
|
|
475
475
|
breakWords: style.breakWords,
|
|
476
476
|
dropShadow: style.dropShadow,
|
|
477
|
-
fill,
|
|
477
|
+
fill: getFillGradientFillPattern(style.stroke, "fill"),
|
|
478
478
|
fontFamily: style.fontFamily,
|
|
479
479
|
fontSize: style.fontSize,
|
|
480
480
|
fontStyle: style.fontStyle,
|
|
@@ -484,7 +484,7 @@ function getTextStyle(style) {
|
|
|
484
484
|
letterSpacing: style.letterSpacing,
|
|
485
485
|
lineHeight: style.lineHeight,
|
|
486
486
|
padding: style.padding,
|
|
487
|
-
stroke: style.stroke,
|
|
487
|
+
stroke: getFillGradientFillPattern(style.stroke, "stroke"),
|
|
488
488
|
textBaseline: style.textBaseline,
|
|
489
489
|
trim: style.trim,
|
|
490
490
|
whiteSpace: style.whiteSpace,
|
|
@@ -531,7 +531,7 @@ var CanvasSprite = class _CanvasSprite extends pixi_js.Sprite {
|
|
|
531
531
|
super(options);
|
|
532
532
|
this.pixivnId = CANVAS_SPRITE_ID;
|
|
533
533
|
this._onEvents = {};
|
|
534
|
-
this.pixivnId = this.constructor.prototype.pixivnId;
|
|
534
|
+
this.pixivnId = this.constructor.prototype.pixivnId || CANVAS_SPRITE_ID;
|
|
535
535
|
}
|
|
536
536
|
get memory() {
|
|
537
537
|
return getMemorySprite(this);
|
|
@@ -687,7 +687,7 @@ var CanvasText = class extends pixi_js.Text {
|
|
|
687
687
|
super(options);
|
|
688
688
|
this.pixivnId = CANVAS_TEXT_ID;
|
|
689
689
|
this._onEvents = {};
|
|
690
|
-
this.pixivnId = this.constructor.prototype.pixivnId;
|
|
690
|
+
this.pixivnId = this.constructor.prototype.pixivnId || CANVAS_TEXT_ID;
|
|
691
691
|
}
|
|
692
692
|
get memory() {
|
|
693
693
|
return getMemoryText(this);
|
|
@@ -900,7 +900,7 @@ var _GameWindowManager = class _GameWindowManager {
|
|
|
900
900
|
height
|
|
901
901
|
}, options)).then(() => {
|
|
902
902
|
_GameWindowManager._isInitialized = true;
|
|
903
|
-
this.
|
|
903
|
+
this.addCanvasIntoHTMLElement(element);
|
|
904
904
|
window.addEventListener("resize", _GameWindowManager.resize);
|
|
905
905
|
_GameWindowManager.resize();
|
|
906
906
|
asciiArtLog();
|
|
@@ -911,7 +911,7 @@ var _GameWindowManager = class _GameWindowManager {
|
|
|
911
911
|
* Add the canvas into a html element.
|
|
912
912
|
* @param element it is the html element where I will put the canvas. Example: document.body
|
|
913
913
|
*/
|
|
914
|
-
static
|
|
914
|
+
static addCanvasIntoHTMLElement(element) {
|
|
915
915
|
if (_GameWindowManager.isInitialized) {
|
|
916
916
|
element.appendChild(_GameWindowManager.app.canvas);
|
|
917
917
|
} else {
|
|
@@ -2967,5 +2967,5 @@ exports.showWithDissolveTransition = showWithDissolveTransition;
|
|
|
2967
2967
|
exports.showWithFadeTransition = showWithFadeTransition;
|
|
2968
2968
|
exports.zoomIn = zoomIn;
|
|
2969
2969
|
exports.zoomOut = zoomOut;
|
|
2970
|
-
//# sourceMappingURL=
|
|
2970
|
+
//# sourceMappingURL=index.js.map
|
|
2971
2971
|
//# sourceMappingURL=index.js.map
|