@drincs/pixi-vn 0.8.4 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/README.md +36 -27
  2. package/dist/{chunk-T4KKYU4J.js → chunk-4KV6VMUV.js} +92 -6
  3. package/dist/{chunk-M6X6FHCH.js → chunk-5A543GJ4.js} +2 -2
  4. package/dist/{chunk-FYCYVQTG.js → chunk-A4NKPUL5.js} +7 -3
  5. package/dist/{chunk-2FSBBQFF.js → chunk-BHVKSBFZ.js} +2 -2
  6. package/dist/{chunk-3FJYYZOP.js → chunk-D3ZQSJKZ.js} +292 -33
  7. package/dist/{chunk-66F5CGHV.js → chunk-DPUSONJ3.js} +1 -1
  8. package/dist/{chunk-6SZOXEOR.js → chunk-FHNQBWIZ.js} +1 -1
  9. package/dist/{chunk-MKN3AKFV.js → chunk-FIQXZ3P3.js} +2 -2
  10. package/dist/{chunk-UWXYEVOE.js → chunk-FM5SFYXO.js} +1 -1
  11. package/dist/{chunk-WJ5SUJTD.js → chunk-GEWQS6GP.js} +65 -4
  12. package/dist/{chunk-ENMHDS5Q.js → chunk-GKLIT4GX.js} +2 -2
  13. package/dist/{chunk-7IWXRHUU.js → chunk-GNFWXAOE.js} +2 -2
  14. package/dist/{chunk-D3NHF5OS.js → chunk-PIYIZHZL.js} +1 -1
  15. package/dist/{chunk-DI77NC2O.js → chunk-SZWI2CBA.js} +3 -3
  16. package/dist/{chunk-CUYGFKNS.js → chunk-TNQKYUOG.js} +2 -2
  17. package/dist/classes/CharacterBaseModel.cjs +61 -27
  18. package/dist/classes/CharacterBaseModel.js +5 -5
  19. package/dist/classes/CharacterStoredClass.cjs +61 -27
  20. package/dist/classes/CharacterStoredClass.js +5 -5
  21. package/dist/classes/ChoiceMenuOption.cjs +60 -26
  22. package/dist/classes/ChoiceMenuOption.d.cts +1 -1
  23. package/dist/classes/ChoiceMenuOption.d.ts +1 -1
  24. package/dist/classes/ChoiceMenuOption.js +5 -5
  25. package/dist/classes/Sound.cjs +60 -26
  26. package/dist/classes/Sound.js +5 -5
  27. package/dist/classes/StoredClassModel.cjs +61 -27
  28. package/dist/classes/StoredClassModel.js +5 -5
  29. package/dist/classes/canvas/CanvasAVideo.cjs +60 -26
  30. package/dist/classes/canvas/CanvasAVideo.d.cts +5 -8
  31. package/dist/classes/canvas/CanvasAVideo.d.ts +5 -8
  32. package/dist/classes/canvas/CanvasAVideo.js +5 -5
  33. package/dist/classes/canvas/CanvasBase.d.cts +4 -2
  34. package/dist/classes/canvas/CanvasBase.d.ts +4 -2
  35. package/dist/classes/canvas/CanvasContainer.cjs +60 -26
  36. package/dist/classes/canvas/CanvasContainer.d.cts +7 -6
  37. package/dist/classes/canvas/CanvasContainer.d.ts +7 -6
  38. package/dist/classes/canvas/CanvasContainer.js +5 -5
  39. package/dist/classes/canvas/CanvasImage.cjs +60 -26
  40. package/dist/classes/canvas/CanvasImage.d.cts +6 -8
  41. package/dist/classes/canvas/CanvasImage.d.ts +6 -8
  42. package/dist/classes/canvas/CanvasImage.js +5 -5
  43. package/dist/classes/canvas/CanvasSprite.cjs +60 -26
  44. package/dist/classes/canvas/CanvasSprite.d.cts +7 -8
  45. package/dist/classes/canvas/CanvasSprite.d.ts +7 -8
  46. package/dist/classes/canvas/CanvasSprite.js +5 -5
  47. package/dist/classes/canvas/CanvasText.cjs +60 -26
  48. package/dist/classes/canvas/CanvasText.d.cts +7 -7
  49. package/dist/classes/canvas/CanvasText.d.ts +7 -7
  50. package/dist/classes/canvas/CanvasText.js +5 -5
  51. package/dist/classes/index.cjs +61 -27
  52. package/dist/classes/index.d.cts +3 -8
  53. package/dist/classes/index.d.ts +3 -8
  54. package/dist/classes/index.js +5 -5
  55. package/dist/classes/ticker/FadeAlphaTicker.cjs +60 -26
  56. package/dist/classes/ticker/FadeAlphaTicker.d.cts +3 -2
  57. package/dist/classes/ticker/FadeAlphaTicker.d.ts +3 -2
  58. package/dist/classes/ticker/FadeAlphaTicker.js +5 -5
  59. package/dist/classes/ticker/MoveTicker.cjs +60 -26
  60. package/dist/classes/ticker/MoveTicker.d.cts +3 -2
  61. package/dist/classes/ticker/MoveTicker.d.ts +3 -2
  62. package/dist/classes/ticker/MoveTicker.js +5 -5
  63. package/dist/classes/ticker/RotateTicker.cjs +60 -26
  64. package/dist/classes/ticker/RotateTicker.d.cts +3 -2
  65. package/dist/classes/ticker/RotateTicker.d.ts +3 -2
  66. package/dist/classes/ticker/RotateTicker.js +5 -5
  67. package/dist/classes/ticker/TickerBase.cjs +60 -26
  68. package/dist/classes/ticker/TickerBase.d.cts +70 -4
  69. package/dist/classes/ticker/TickerBase.d.ts +70 -4
  70. package/dist/classes/ticker/TickerBase.js +5 -5
  71. package/dist/classes/ticker/ZoomTicker.cjs +60 -26
  72. package/dist/classes/ticker/ZoomTicker.d.cts +4 -3
  73. package/dist/classes/ticker/ZoomTicker.d.ts +4 -3
  74. package/dist/classes/ticker/ZoomTicker.js +5 -5
  75. package/dist/classes/ticker/index.cjs +60 -26
  76. package/dist/classes/ticker/index.d.cts +3 -2
  77. package/dist/classes/ticker/index.d.ts +3 -2
  78. package/dist/classes/ticker/index.js +5 -5
  79. package/dist/constants.cjs +11 -6
  80. package/dist/constants.d.cts +7 -2
  81. package/dist/constants.d.ts +7 -2
  82. package/dist/constants.js +5 -3
  83. package/dist/decorators/canvas-element-decorator.cjs +60 -26
  84. package/dist/decorators/canvas-element-decorator.d.cts +3 -1
  85. package/dist/decorators/canvas-element-decorator.d.ts +3 -1
  86. package/dist/decorators/canvas-element-decorator.js +5 -5
  87. package/dist/decorators/event-decorator.d.cts +2 -1
  88. package/dist/decorators/event-decorator.d.ts +2 -1
  89. package/dist/decorators/index.cjs +60 -26
  90. package/dist/decorators/index.d.cts +6 -4
  91. package/dist/decorators/index.d.ts +6 -4
  92. package/dist/decorators/index.js +5 -5
  93. package/dist/decorators/label-decorator.cjs +60 -26
  94. package/dist/decorators/label-decorator.js +5 -5
  95. package/dist/decorators/ticker-decorator.d.cts +4 -3
  96. package/dist/decorators/ticker-decorator.d.ts +4 -3
  97. package/dist/functions/canvas/canvas-effect.cjs +61821 -0
  98. package/dist/functions/canvas/canvas-effect.d.cts +15 -0
  99. package/dist/functions/canvas/canvas-effect.d.ts +15 -0
  100. package/dist/functions/canvas/canvas-effect.js +40 -0
  101. package/dist/functions/canvas/canvas-memory-utility.cjs +60 -26
  102. package/dist/functions/canvas/canvas-memory-utility.d.cts +5 -3
  103. package/dist/functions/canvas/canvas-memory-utility.d.ts +5 -3
  104. package/dist/functions/canvas/canvas-memory-utility.js +5 -5
  105. package/dist/functions/canvas/canvas-transition.cjs +586 -408
  106. package/dist/functions/canvas/canvas-transition.d.cts +43 -20
  107. package/dist/functions/canvas/canvas-transition.d.ts +43 -20
  108. package/dist/functions/canvas/canvas-transition.js +9 -5
  109. package/dist/functions/canvas/canvas-utility.cjs +60 -26
  110. package/dist/functions/canvas/canvas-utility.d.cts +2 -2
  111. package/dist/functions/canvas/canvas-utility.d.ts +2 -2
  112. package/dist/functions/canvas/canvas-utility.js +5 -5
  113. package/dist/functions/canvas/image-utility.cjs +60 -26
  114. package/dist/functions/canvas/image-utility.d.cts +2 -4
  115. package/dist/functions/canvas/image-utility.d.ts +2 -4
  116. package/dist/functions/canvas/image-utility.js +5 -5
  117. package/dist/functions/canvas/video-utility.cjs +60 -26
  118. package/dist/functions/canvas/video-utility.d.cts +3 -6
  119. package/dist/functions/canvas/video-utility.d.ts +3 -6
  120. package/dist/functions/canvas/video-utility.js +5 -5
  121. package/dist/functions/dialogue-utility.cjs +60 -26
  122. package/dist/functions/dialogue-utility.d.cts +1 -1
  123. package/dist/functions/dialogue-utility.d.ts +1 -1
  124. package/dist/functions/dialogue-utility.js +5 -5
  125. package/dist/functions/diff-utility.cjs +1 -1
  126. package/dist/functions/diff-utility.js +2 -2
  127. package/dist/functions/export-utility.cjs +1 -1
  128. package/dist/functions/export-utility.js +1 -1
  129. package/dist/functions/flags-utility.cjs +60 -26
  130. package/dist/functions/flags-utility.js +5 -5
  131. package/dist/functions/game-utility.cjs +60 -26
  132. package/dist/functions/game-utility.js +5 -5
  133. package/dist/functions/index.cjs +449 -183
  134. package/dist/functions/index.d.cts +17 -18
  135. package/dist/functions/index.d.ts +17 -18
  136. package/dist/functions/index.js +11 -5
  137. package/dist/functions/saves-utility.cjs +64 -28
  138. package/dist/functions/saves-utility.d.cts +13 -11
  139. package/dist/functions/saves-utility.d.ts +13 -11
  140. package/dist/functions/saves-utility.js +5 -5
  141. package/dist/functions/ticker-utility.d.cts +1 -1
  142. package/dist/functions/ticker-utility.d.ts +1 -1
  143. package/dist/index.cjs +363 -40
  144. package/dist/index.d.cts +16 -17
  145. package/dist/index.d.ts +16 -17
  146. package/dist/index.js +24 -18
  147. package/dist/interface/{IOpenedLabel.cjs → HistoryStep.cjs} +3 -3
  148. package/dist/interface/{IHistoryStep.d.cts → HistoryStep.d.cts} +12 -10
  149. package/dist/interface/{IHistoryStep.d.ts → HistoryStep.d.ts} +12 -10
  150. package/dist/interface/{IHistoryStep.cjs → OpenedLabel.cjs} +3 -3
  151. package/dist/interface/{IOpenedLabel.d.cts → OpenedLabel.d.cts} +2 -2
  152. package/dist/interface/{IOpenedLabel.d.ts → OpenedLabel.d.ts} +2 -2
  153. package/dist/interface/{ISaveData.cjs → SaveData.cjs} +3 -3
  154. package/dist/interface/{ISaveData.d.cts → SaveData.d.cts} +11 -9
  155. package/dist/interface/{ISaveData.d.ts → SaveData.d.ts} +11 -9
  156. package/dist/interface/{ITicker.cjs → Ticker.cjs} +3 -3
  157. package/dist/interface/Ticker.d.cts +24 -0
  158. package/dist/interface/Ticker.d.ts +24 -0
  159. package/dist/interface/TickerArgs.cjs +18 -0
  160. package/dist/interface/TickerArgs.d.cts +5 -0
  161. package/dist/interface/TickerArgs.d.ts +5 -0
  162. package/dist/interface/TickerHistory.d.cts +3 -4
  163. package/dist/interface/TickerHistory.d.ts +3 -4
  164. package/dist/interface/TickerProgrationType.d.cts +7 -6
  165. package/dist/interface/TickerProgrationType.d.ts +7 -6
  166. package/dist/interface/TickersSteps.cjs +18 -0
  167. package/dist/interface/{ITickersSteps.d.cts → TickersSteps.d.cts} +5 -7
  168. package/dist/interface/{ITickersSteps.d.ts → TickersSteps.d.ts} +5 -7
  169. package/dist/interface/canvas/TextureMemory.cjs +18 -0
  170. package/dist/interface/canvas/TextureMemory.d.cts +8 -0
  171. package/dist/interface/canvas/TextureMemory.d.ts +8 -0
  172. package/dist/interface/canvas/canvas-memory.cjs +18 -0
  173. package/dist/interface/canvas/canvas-memory.d.cts +51 -0
  174. package/dist/interface/canvas/canvas-memory.d.ts +51 -0
  175. package/dist/interface/canvas/effect-props.cjs +18 -0
  176. package/dist/interface/canvas/effect-props.d.cts +36 -0
  177. package/dist/interface/canvas/effect-props.d.ts +36 -0
  178. package/dist/interface/canvas/transition-props.cjs +18 -0
  179. package/dist/interface/canvas/transition-props.d.cts +38 -0
  180. package/dist/interface/canvas/transition-props.d.ts +38 -0
  181. package/dist/interface/export/ExportedCanvas.d.cts +8 -6
  182. package/dist/interface/export/ExportedCanvas.d.ts +8 -6
  183. package/dist/interface/export/ExportedStep.d.cts +12 -10
  184. package/dist/interface/export/ExportedStep.d.ts +12 -10
  185. package/dist/interface/index.d.cts +13 -16
  186. package/dist/interface/index.d.ts +13 -16
  187. package/dist/labels/BaseCanvasElementTestLabel.cjs +61 -27
  188. package/dist/labels/BaseCanvasElementTestLabel.js +7 -7
  189. package/dist/labels/CanvasEventsTestLabel.cjs +61 -27
  190. package/dist/labels/CanvasEventsTestLabel.d.cts +2 -3
  191. package/dist/labels/CanvasEventsTestLabel.d.ts +2 -3
  192. package/dist/labels/CanvasEventsTestLabel.js +7 -7
  193. package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +1692 -28
  194. package/dist/labels/CustomTickerCanvasElementTestLabel.d.cts +3 -2
  195. package/dist/labels/CustomTickerCanvasElementTestLabel.d.ts +3 -2
  196. package/dist/labels/CustomTickerCanvasElementTestLabel.js +17 -7
  197. package/dist/labels/ImagesAnimationsTestLabel.cjs +349 -36
  198. package/dist/labels/ImagesAnimationsTestLabel.js +7 -7
  199. package/dist/labels/InputTestLabel.cjs +61 -27
  200. package/dist/labels/InputTestLabel.js +7 -7
  201. package/dist/labels/MarkdownTest.cjs +61 -27
  202. package/dist/labels/MarkdownTest.js +7 -7
  203. package/dist/labels/SoundTestLabel.cjs +61 -27
  204. package/dist/labels/SoundTestLabel.js +7 -7
  205. package/dist/labels/StartLabel.cjs +359 -39
  206. package/dist/labels/StartLabel.js +17 -16
  207. package/dist/labels/StepLabelTest.cjs +61 -27
  208. package/dist/labels/StepLabelTest.js +7 -7
  209. package/dist/labels/TestConstant.cjs +61 -27
  210. package/dist/labels/TestConstant.js +6 -6
  211. package/dist/labels/VideoTestLabel.cjs +66 -29
  212. package/dist/labels/VideoTestLabel.js +7 -7
  213. package/dist/labels/index.cjs +359 -39
  214. package/dist/labels/index.js +17 -17
  215. package/dist/managers/CanvasManager.cjs +60 -26
  216. package/dist/managers/CanvasManager.d.cts +21 -11
  217. package/dist/managers/CanvasManager.d.ts +21 -11
  218. package/dist/managers/CanvasManager.js +5 -5
  219. package/dist/managers/CanvasManagerStatic.d.cts +7 -6
  220. package/dist/managers/CanvasManagerStatic.d.ts +7 -6
  221. package/dist/managers/NarrationManager.cjs +60 -26
  222. package/dist/managers/NarrationManager.d.cts +10 -8
  223. package/dist/managers/NarrationManager.d.ts +10 -8
  224. package/dist/managers/NarrationManager.js +5 -5
  225. package/dist/managers/NarrationManagerStatic.cjs +60 -26
  226. package/dist/managers/NarrationManagerStatic.d.cts +16 -14
  227. package/dist/managers/NarrationManagerStatic.d.ts +16 -14
  228. package/dist/managers/NarrationManagerStatic.js +5 -5
  229. package/dist/managers/SoundManager.cjs +60 -26
  230. package/dist/managers/SoundManager.js +5 -5
  231. package/dist/managers/StorageManager.cjs +60 -26
  232. package/dist/managers/StorageManager.js +5 -5
  233. package/dist/managers/StorageManagerStatic.cjs +1 -1
  234. package/dist/managers/StorageManagerStatic.js +2 -2
  235. package/dist/managers/index.cjs +60 -26
  236. package/dist/managers/index.d.cts +12 -8
  237. package/dist/managers/index.d.ts +12 -8
  238. package/dist/managers/index.js +5 -5
  239. package/dist/types/ChoiceMenuOptionsType.d.cts +1 -1
  240. package/dist/types/ChoiceMenuOptionsType.d.ts +1 -1
  241. package/dist/types/ticker/MoveTickerProps.d.cts +8 -2
  242. package/dist/types/ticker/MoveTickerProps.d.ts +8 -2
  243. package/dist/types/ticker/RotateTickerProps.d.cts +1 -1
  244. package/dist/types/ticker/RotateTickerProps.d.ts +1 -1
  245. package/dist/types/ticker/ZoomTickerProps.d.cts +1 -1
  246. package/dist/types/ticker/ZoomTickerProps.d.ts +1 -1
  247. package/package.json +4 -4
  248. package/dist/TickerBase-DbIg7gDS.d.ts +0 -94
  249. package/dist/TickerBase-eU4Hvvy0.d.cts +0 -94
  250. package/dist/chunk-II324FA5.js +0 -101
  251. package/dist/interface/ITicker.d.cts +0 -4
  252. package/dist/interface/ITicker.d.ts +0 -4
  253. package/dist/interface/ITickersSteps.cjs +0 -18
  254. package/dist/interface/canvas/ICanvasBaseMemory.cjs +0 -18
  255. package/dist/interface/canvas/ICanvasBaseMemory.d.cts +0 -8
  256. package/dist/interface/canvas/ICanvasBaseMemory.d.ts +0 -8
  257. package/dist/interface/canvas/ICanvasContainerMemory.cjs +0 -18
  258. package/dist/interface/canvas/ICanvasContainerMemory.d.cts +0 -11
  259. package/dist/interface/canvas/ICanvasContainerMemory.d.ts +0 -11
  260. package/dist/interface/canvas/ICanvasImageMemory.cjs +0 -18
  261. package/dist/interface/canvas/ICanvasImageMemory.d.cts +0 -14
  262. package/dist/interface/canvas/ICanvasImageMemory.d.ts +0 -14
  263. package/dist/interface/canvas/ICanvasSpriteMemory.cjs +0 -18
  264. package/dist/interface/canvas/ICanvasSpriteMemory.d.cts +0 -18
  265. package/dist/interface/canvas/ICanvasSpriteMemory.d.ts +0 -18
  266. package/dist/interface/canvas/ICanvasTextTextMemory.cjs +0 -18
  267. package/dist/interface/canvas/ICanvasTextTextMemory.d.cts +0 -14
  268. package/dist/interface/canvas/ICanvasTextTextMemory.d.ts +0 -14
  269. package/dist/interface/canvas/ICanvasTextTextMemory.js +0 -0
  270. package/dist/interface/canvas/ICanvasVideoMemory.cjs +0 -18
  271. package/dist/interface/canvas/ICanvasVideoMemory.d.cts +0 -17
  272. package/dist/interface/canvas/ICanvasVideoMemory.d.ts +0 -17
  273. package/dist/interface/canvas/ICanvasVideoMemory.js +0 -0
  274. package/dist/interface/canvas/ITextureMemory.cjs +0 -18
  275. package/dist/interface/canvas/ITextureMemory.d.cts +0 -8
  276. package/dist/interface/canvas/ITextureMemory.d.ts +0 -8
  277. package/dist/interface/canvas/ITextureMemory.js +0 -0
  278. package/dist/interface/canvas/ITransitionProps.cjs +0 -18
  279. package/dist/interface/canvas/ITransitionProps.d.cts +0 -22
  280. package/dist/interface/canvas/ITransitionProps.d.ts +0 -22
  281. package/dist/interface/canvas/ITransitionProps.js +0 -0
  282. /package/dist/{chunk-JQ2KK52M.js → interface/HistoryStep.js} +0 -0
  283. /package/dist/interface/{IHistoryStep.js → OpenedLabel.js} +0 -0
  284. /package/dist/interface/{IOpenedLabel.js → SaveData.js} +0 -0
  285. /package/dist/interface/{ISaveData.js → Ticker.js} +0 -0
  286. /package/dist/interface/{ITicker.js → TickerArgs.js} +0 -0
  287. /package/dist/interface/{ITickersSteps.js → TickersSteps.js} +0 -0
  288. /package/dist/interface/canvas/{ICanvasBaseMemory.js → TextureMemory.js} +0 -0
  289. /package/dist/interface/canvas/{ICanvasContainerMemory.js → canvas-memory.js} +0 -0
  290. /package/dist/interface/canvas/{ICanvasImageMemory.js → effect-props.js} +0 -0
  291. /package/dist/interface/canvas/{ICanvasSpriteMemory.js → transition-props.js} +0 -0
@@ -1,18 +1,14 @@
1
1
  import { UPDATE_PRIORITY } from 'pixi.js';
2
- import { ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps } from '../../interface/canvas/ITransitionProps.cjs';
3
- import CanvasSprite from '../../classes/canvas/CanvasSprite.cjs';
2
+ import { ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps } from '../../interface/canvas/transition-props.cjs';
4
3
  import CanvasBase from '../../classes/canvas/CanvasBase.cjs';
5
4
  import '../../types/ticker/FadeAlphaTickerProps.cjs';
6
5
  import '../../types/ticker/MoveTickerProps.cjs';
7
6
  import '../../interface/TickerProgrationType.cjs';
8
7
  import '../../types/ticker/ZoomTickerProps.cjs';
9
8
  import '../../types/ticker/AliasToRemoveAfterType.cjs';
10
- import '../../interface/canvas/ICanvasBaseMemory.cjs';
11
- import '../../interface/canvas/ICanvasSpriteMemory.cjs';
9
+ import '../../interface/canvas/canvas-memory.cjs';
10
+ import '../../interface/canvas/TextureMemory.cjs';
12
11
  import '../../types/EventIdType.cjs';
13
- import '../../interface/canvas/ITextureMemory.cjs';
14
- import '../../types/CanvasEventNamesType.cjs';
15
- import '../../classes/CanvasEvent.cjs';
16
12
 
17
13
  /**
18
14
  * Show a image in the canvas with a disolve effect.
@@ -23,9 +19,9 @@ import '../../classes/CanvasEvent.cjs';
23
19
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
24
20
  * @param props The properties of the effect
25
21
  * @param priority The priority of the effect
26
- * @returns A promise that is resolved when the image is loaded.
22
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
27
23
  */
28
- declare function showWithDissolveTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): Promise<void>;
24
+ declare function showWithDissolveTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
29
25
  /**
30
26
  * Remove a image from the canvas with a disolve effect.
31
27
  * Disolve effect is a effect that the image is removed with a fade out.
@@ -34,8 +30,9 @@ declare function showWithDissolveTransition<T extends CanvasBase<any> | string =
34
30
  * @param alias The unique alias of the image. You can use this alias to refer to this image
35
31
  * @param props The properties of the effect
36
32
  * @param priority The priority of the effect
33
+ * @returns The ids of the tickers that are used in the effect.
37
34
  */
38
- declare function removeWithDissolveTransition(alias: string | string[], props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): void;
35
+ declare function removeWithDissolveTransition(alias: string | string[], props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): string[] | undefined;
39
36
  /**
40
37
  * Show a image in the canvas with a fade effect.
41
38
  * Fade effect is a effect that the image is shown with a fade in.
@@ -44,9 +41,9 @@ declare function removeWithDissolveTransition(alias: string | string[], props?:
44
41
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
45
42
  * @param props The properties of the effect
46
43
  * @param priority The priority of the effect
47
- * @returns A promise that is resolved when the image is loaded.
44
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
48
45
  */
49
- declare function showWithFadeTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): Promise<void>;
46
+ declare function showWithFadeTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
50
47
  /**
51
48
  * Remove a image from the canvas with a fade effect.
52
49
  * Fade effect is a effect that the image is removed with a fade out.
@@ -55,39 +52,65 @@ declare function showWithFadeTransition<T extends CanvasBase<any> | string = str
55
52
  * @param alias The unique alias of the image. You can use this alias to refer to this image
56
53
  * @param props The properties of the effect
57
54
  * @param priority The priority of the effect
55
+ * @returns The ids of the tickers that are used in the effect.
58
56
  */
59
- declare function removeWithFadeTransition(alias: string | string[], props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): void;
57
+ declare function removeWithFadeTransition(alias: string | string[], props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): string[] | undefined;
60
58
  /**
61
59
  * Show a image in the canvas with a move effect. The image is moved from outside the canvas to the x and y position of the image.
60
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
62
61
  * @param alias The unique alias of the image. You can use this alias to refer to this image
63
62
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
64
63
  * @param props The properties of the effect
65
64
  * @param priority The priority of the effect
66
- * @returns A promise that is resolved when the image is loaded.
65
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
67
66
  */
68
- declare function moveIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): Promise<void>;
67
+ declare function moveIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
69
68
  /**
70
69
  * Remove a image from the canvas with a move effect. The image is moved from the x and y position of the image to outside the canvas.
70
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
71
71
  * @param alias The unique alias of the image. You can use this alias to refer to this image
72
72
  * @param props The properties of the effect
73
73
  * @param priority The priority of the effect
74
+ * @returns The ids of the tickers that are used in the effect.
74
75
  */
75
- declare function moveOut(alias: string, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): void;
76
+ declare function moveOut(alias: string, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): string[] | undefined;
76
77
  /**
77
78
  * Show a image in the canvas with a zoom effect. The image is zoomed in from the center of the canvas.
79
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
78
80
  * @param alias The unique alias of the image. You can use this alias to refer to this image
79
81
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
80
82
  * @param props The properties of the effect
81
83
  * @param priority The priority of the effect
84
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
82
85
  */
83
- declare function zoomIn<T extends CanvasSprite | string = string>(alias: string, image: T, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): Promise<void>;
86
+ declare function zoomIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
84
87
  /**
85
88
  * Remove a image from the canvas with a zoom effect. The image is zoomed out to the center of the canvas.
89
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
86
90
  * @param alias The unique alias of the image. You can use this alias to refer to this image
87
91
  * @param props The properties of the effect
88
92
  * @param priority The priority of the effect
89
- * @returns A promise that is resolved when the image is loaded.
93
+ * @returns The ids of the tickers that are used in the effect.
90
94
  */
91
- declare function zoomOut(alias: string, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): void;
95
+ declare function zoomOut(alias: string, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): string[] | undefined;
96
+ /**
97
+ * Show a image in the canvas with a push effect. The new image is pushed in from the inside of the canvas and the old image is pushed out to the outside of the canvas.
98
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
99
+ * @param alias The unique alias of the image. You can use this alias to refer to this image
100
+ * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
101
+ * @param props The properties of the effect
102
+ * @param priority The priority of the effect
103
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
104
+ */
105
+ declare function pushIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
106
+ /**
107
+ * Remove a image from the canvas with a push effect. The image is pushed out to the outside of the canvas.
108
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
109
+ * @param alias The unique alias of the image. You can use this alias to refer to this image
110
+ * @param props The properties of the effect
111
+ * @param priority The priority of the effect
112
+ * @returns The ids of the tickers that are used in the effect.
113
+ */
114
+ declare function pushOut(alias: string, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): string[] | undefined;
92
115
 
93
- export { moveIn, moveOut, removeWithDissolveTransition, removeWithFadeTransition, showWithDissolveTransition, showWithFadeTransition, zoomIn, zoomOut };
116
+ export { moveIn, moveOut, pushIn, pushOut, removeWithDissolveTransition, removeWithFadeTransition, showWithDissolveTransition, showWithFadeTransition, zoomIn, zoomOut };
@@ -1,18 +1,14 @@
1
1
  import { UPDATE_PRIORITY } from 'pixi.js';
2
- import { ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps } from '../../interface/canvas/ITransitionProps.js';
3
- import CanvasSprite from '../../classes/canvas/CanvasSprite.js';
2
+ import { ShowWithDissolveTransitionProps, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps } from '../../interface/canvas/transition-props.js';
4
3
  import CanvasBase from '../../classes/canvas/CanvasBase.js';
5
4
  import '../../types/ticker/FadeAlphaTickerProps.js';
6
5
  import '../../types/ticker/MoveTickerProps.js';
7
6
  import '../../interface/TickerProgrationType.js';
8
7
  import '../../types/ticker/ZoomTickerProps.js';
9
8
  import '../../types/ticker/AliasToRemoveAfterType.js';
10
- import '../../interface/canvas/ICanvasBaseMemory.js';
11
- import '../../interface/canvas/ICanvasSpriteMemory.js';
9
+ import '../../interface/canvas/canvas-memory.js';
10
+ import '../../interface/canvas/TextureMemory.js';
12
11
  import '../../types/EventIdType.js';
13
- import '../../interface/canvas/ITextureMemory.js';
14
- import '../../types/CanvasEventNamesType.js';
15
- import '../../classes/CanvasEvent.js';
16
12
 
17
13
  /**
18
14
  * Show a image in the canvas with a disolve effect.
@@ -23,9 +19,9 @@ import '../../classes/CanvasEvent.js';
23
19
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
24
20
  * @param props The properties of the effect
25
21
  * @param priority The priority of the effect
26
- * @returns A promise that is resolved when the image is loaded.
22
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
27
23
  */
28
- declare function showWithDissolveTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): Promise<void>;
24
+ declare function showWithDissolveTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
29
25
  /**
30
26
  * Remove a image from the canvas with a disolve effect.
31
27
  * Disolve effect is a effect that the image is removed with a fade out.
@@ -34,8 +30,9 @@ declare function showWithDissolveTransition<T extends CanvasBase<any> | string =
34
30
  * @param alias The unique alias of the image. You can use this alias to refer to this image
35
31
  * @param props The properties of the effect
36
32
  * @param priority The priority of the effect
33
+ * @returns The ids of the tickers that are used in the effect.
37
34
  */
38
- declare function removeWithDissolveTransition(alias: string | string[], props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): void;
35
+ declare function removeWithDissolveTransition(alias: string | string[], props?: ShowWithDissolveTransitionProps, priority?: UPDATE_PRIORITY): string[] | undefined;
39
36
  /**
40
37
  * Show a image in the canvas with a fade effect.
41
38
  * Fade effect is a effect that the image is shown with a fade in.
@@ -44,9 +41,9 @@ declare function removeWithDissolveTransition(alias: string | string[], props?:
44
41
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
45
42
  * @param props The properties of the effect
46
43
  * @param priority The priority of the effect
47
- * @returns A promise that is resolved when the image is loaded.
44
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
48
45
  */
49
- declare function showWithFadeTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): Promise<void>;
46
+ declare function showWithFadeTransition<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
50
47
  /**
51
48
  * Remove a image from the canvas with a fade effect.
52
49
  * Fade effect is a effect that the image is removed with a fade out.
@@ -55,39 +52,65 @@ declare function showWithFadeTransition<T extends CanvasBase<any> | string = str
55
52
  * @param alias The unique alias of the image. You can use this alias to refer to this image
56
53
  * @param props The properties of the effect
57
54
  * @param priority The priority of the effect
55
+ * @returns The ids of the tickers that are used in the effect.
58
56
  */
59
- declare function removeWithFadeTransition(alias: string | string[], props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): void;
57
+ declare function removeWithFadeTransition(alias: string | string[], props?: ShowWithFadeTransitionProps, priority?: UPDATE_PRIORITY): string[] | undefined;
60
58
  /**
61
59
  * Show a image in the canvas with a move effect. The image is moved from outside the canvas to the x and y position of the image.
60
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
62
61
  * @param alias The unique alias of the image. You can use this alias to refer to this image
63
62
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
64
63
  * @param props The properties of the effect
65
64
  * @param priority The priority of the effect
66
- * @returns A promise that is resolved when the image is loaded.
65
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
67
66
  */
68
- declare function moveIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): Promise<void>;
67
+ declare function moveIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
69
68
  /**
70
69
  * Remove a image from the canvas with a move effect. The image is moved from the x and y position of the image to outside the canvas.
70
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
71
71
  * @param alias The unique alias of the image. You can use this alias to refer to this image
72
72
  * @param props The properties of the effect
73
73
  * @param priority The priority of the effect
74
+ * @returns The ids of the tickers that are used in the effect.
74
75
  */
75
- declare function moveOut(alias: string, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): void;
76
+ declare function moveOut(alias: string, props?: MoveInOutProps, priority?: UPDATE_PRIORITY): string[] | undefined;
76
77
  /**
77
78
  * Show a image in the canvas with a zoom effect. The image is zoomed in from the center of the canvas.
79
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
78
80
  * @param alias The unique alias of the image. You can use this alias to refer to this image
79
81
  * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
80
82
  * @param props The properties of the effect
81
83
  * @param priority The priority of the effect
84
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
82
85
  */
83
- declare function zoomIn<T extends CanvasSprite | string = string>(alias: string, image: T, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): Promise<void>;
86
+ declare function zoomIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
84
87
  /**
85
88
  * Remove a image from the canvas with a zoom effect. The image is zoomed out to the center of the canvas.
89
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
86
90
  * @param alias The unique alias of the image. You can use this alias to refer to this image
87
91
  * @param props The properties of the effect
88
92
  * @param priority The priority of the effect
89
- * @returns A promise that is resolved when the image is loaded.
93
+ * @returns The ids of the tickers that are used in the effect.
90
94
  */
91
- declare function zoomOut(alias: string, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): void;
95
+ declare function zoomOut(alias: string, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): string[] | undefined;
96
+ /**
97
+ * Show a image in the canvas with a push effect. The new image is pushed in from the inside of the canvas and the old image is pushed out to the outside of the canvas.
98
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
99
+ * @param alias The unique alias of the image. You can use this alias to refer to this image
100
+ * @param image The imageUrl or the canvas element. If imageUrl is a video, then the {@link CanvasVideo} is added to the canvas.
101
+ * @param props The properties of the effect
102
+ * @param priority The priority of the effect
103
+ * @returns A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded.
104
+ */
105
+ declare function pushIn<T extends CanvasBase<any> | string = string>(alias: string, image: T, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): Promise<string[] | undefined>;
106
+ /**
107
+ * Remove a image from the canvas with a push effect. The image is pushed out to the outside of the canvas.
108
+ * If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused.
109
+ * @param alias The unique alias of the image. You can use this alias to refer to this image
110
+ * @param props The properties of the effect
111
+ * @param priority The priority of the effect
112
+ * @returns The ids of the tickers that are used in the effect.
113
+ */
114
+ declare function pushOut(alias: string, props?: ZoomInOutProps, priority?: UPDATE_PRIORITY): string[] | undefined;
92
115
 
93
- export { moveIn, moveOut, removeWithDissolveTransition, removeWithFadeTransition, showWithDissolveTransition, showWithFadeTransition, zoomIn, zoomOut };
116
+ export { moveIn, moveOut, pushIn, pushOut, removeWithDissolveTransition, removeWithFadeTransition, showWithDissolveTransition, showWithFadeTransition, zoomIn, zoomOut };
@@ -1,18 +1,20 @@
1
1
  import {
2
2
  moveIn,
3
3
  moveOut,
4
+ pushIn,
5
+ pushOut,
4
6
  removeWithDissolveTransition,
5
7
  removeWithFadeTransition,
6
8
  showWithDissolveTransition,
7
9
  showWithFadeTransition,
8
10
  zoomIn,
9
11
  zoomOut
10
- } from "../../chunk-3FJYYZOP.js";
12
+ } from "../../chunk-D3ZQSJKZ.js";
11
13
  import "../../chunk-OMPJ74CO.js";
12
14
  import "../../chunk-2BUPSB7O.js";
13
15
  import "../../chunk-CZKJI26F.js";
14
16
  import "../../chunk-I6TNJEE3.js";
15
- import "../../chunk-66F5CGHV.js";
17
+ import "../../chunk-DPUSONJ3.js";
16
18
  import "../../chunk-P44J5BE2.js";
17
19
  import "../../chunk-CAUF2LKZ.js";
18
20
  import "../../chunk-VXCA724Z.js";
@@ -20,12 +22,12 @@ import "../../chunk-3DOISWD6.js";
20
22
  import "../../chunk-I4UGLC3A.js";
21
23
  import "../../chunk-ZZLQ3ILH.js";
22
24
  import "../../chunk-JTQGULTR.js";
23
- import "../../chunk-6SZOXEOR.js";
25
+ import "../../chunk-FHNQBWIZ.js";
24
26
  import "../../chunk-ZBUW3MBH.js";
25
- import "../../chunk-D3NHF5OS.js";
27
+ import "../../chunk-PIYIZHZL.js";
26
28
  import "../../chunk-WX267JP2.js";
27
29
  import "../../chunk-LEMOIFSV.js";
28
- import "../../chunk-FYCYVQTG.js";
30
+ import "../../chunk-A4NKPUL5.js";
29
31
  import "../../chunk-RATGPKD3.js";
30
32
  import "../../chunk-2PXN34ON.js";
31
33
  import "../../chunk-TAJJZPEH.js";
@@ -45,6 +47,8 @@ import "../../chunk-N342G4HO.js";
45
47
  export {
46
48
  moveIn,
47
49
  moveOut,
50
+ pushIn,
51
+ pushOut,
48
52
  removeWithDissolveTransition,
49
53
  removeWithFadeTransition,
50
54
  showWithDissolveTransition,
@@ -1607,14 +1607,14 @@ var init_uid = __esm({
1607
1607
  });
1608
1608
 
1609
1609
  // node_modules/pixi.js/lib/utils/logging/deprecation.mjs
1610
- function deprecation(version, message, ignoreDepth = 3) {
1610
+ function deprecation(version2, message, ignoreDepth = 3) {
1611
1611
  if (warnings[message]) {
1612
1612
  return;
1613
1613
  }
1614
1614
  let stack = new Error().stack;
1615
1615
  if (typeof stack === "undefined") {
1616
1616
  console.warn("PixiJS Deprecation Warning: ", `${message}
1617
- Deprecated since v${version}`);
1617
+ Deprecated since v${version2}`);
1618
1618
  } else {
1619
1619
  stack = stack.split("\n").splice(ignoreDepth).join("\n");
1620
1620
  if (console.groupCollapsed) {
@@ -1623,13 +1623,13 @@ Deprecated since v${version}`);
1623
1623
  "color:#614108;background:#fffbe6",
1624
1624
  "font-weight:normal;color:#614108;background:#fffbe6",
1625
1625
  `${message}
1626
- Deprecated since v${version}`
1626
+ Deprecated since v${version2}`
1627
1627
  );
1628
1628
  console.warn(stack);
1629
1629
  console.groupEnd();
1630
1630
  } else {
1631
1631
  console.warn("PixiJS Deprecation Warning: ", `${message}
1632
- Deprecated since v${version}`);
1632
+ Deprecated since v${version2}`);
1633
1633
  console.warn(stack);
1634
1634
  }
1635
1635
  }
@@ -42998,7 +42998,7 @@ var require_dom = __commonJS({
42998
42998
  * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
42999
42999
  * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
43000
43000
  */
43001
- hasFeature: function(feature, version) {
43001
+ hasFeature: function(feature, version2) {
43002
43002
  return true;
43003
43003
  },
43004
43004
  /**
@@ -43119,8 +43119,8 @@ var require_dom = __commonJS({
43119
43119
  }
43120
43120
  },
43121
43121
  // Introduced in DOM Level 2:
43122
- isSupported: function(feature, version) {
43123
- return this.ownerDocument.implementation.hasFeature(feature, version);
43122
+ isSupported: function(feature, version2) {
43123
+ return this.ownerDocument.implementation.hasFeature(feature, version2);
43124
43124
  },
43125
43125
  // Introduced in DOM Level 2:
43126
43126
  hasAttributes: function() {
@@ -57415,6 +57415,7 @@ var videoFormats = [
57415
57415
  "asf",
57416
57416
  "vob"
57417
57417
  ];
57418
+ var CANVAS_APP_STAGE_ALIAS = "_stage_";
57418
57419
 
57419
57420
  // src/managers/CanvasManager.ts
57420
57421
  init_lib();
@@ -58519,7 +58520,7 @@ function createExportableElement(element) {
58519
58520
  let elementString = JSON.stringify(element);
58520
58521
  return JSON.parse(elementString);
58521
58522
  } catch (e2) {
58522
- console.error("[Pixi\u2019VN] Error creating exportable element", e2);
58523
+ console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
58523
58524
  throw new Error("[Pixi\u2019VN] Error creating exportable element");
58524
58525
  }
58525
58526
  }
@@ -58952,6 +58953,10 @@ var CanvasManager = class {
58952
58953
  * ```
58953
58954
  */
58954
58955
  add(alias, canvasElement, options = {}) {
58956
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58957
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58958
+ return;
58959
+ }
58955
58960
  let ignoreOldStyle = options?.ignoreOldStyle;
58956
58961
  let oldCanvasElement = this.find(alias);
58957
58962
  if (oldCanvasElement) {
@@ -58982,6 +58987,10 @@ var CanvasManager = class {
58982
58987
  * ```
58983
58988
  */
58984
58989
  remove(alias, options = {}) {
58990
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58991
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58992
+ return;
58993
+ }
58985
58994
  let ignoreTickers = options.ignoreTickers;
58986
58995
  if (typeof alias === "string") {
58987
58996
  alias = [alias];
@@ -59010,6 +59019,9 @@ var CanvasManager = class {
59010
59019
  * ```
59011
59020
  */
59012
59021
  find(alias) {
59022
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
59023
+ return this.app.stage;
59024
+ }
59013
59025
  return CanvasManagerStatic._children[alias];
59014
59026
  }
59015
59027
  /**
@@ -59036,16 +59048,17 @@ var CanvasManager = class {
59036
59048
  this.removeAllTickers();
59037
59049
  }
59038
59050
  /**
59039
- * Edit the alias of a canvas element.
59051
+ * Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
59040
59052
  * @param oldAlias The old alias of the canvas element.
59041
59053
  * @param newAlias The new alias of the canvas element.
59054
+ * @param options The options of the canvas element.
59042
59055
  */
59043
- editAlias(oldAlias, newAlias) {
59056
+ editAlias(oldAlias, newAlias, options = {}) {
59044
59057
  if (CanvasManagerStatic._children[oldAlias]) {
59045
59058
  CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
59046
59059
  delete CanvasManagerStatic._children[oldAlias];
59047
59060
  }
59048
- this.transferTickers(oldAlias, newAlias, "move");
59061
+ !options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
59049
59062
  }
59050
59063
  /** Edit Tickers Methods */
59051
59064
  /**
@@ -59120,12 +59133,16 @@ var CanvasManager = class {
59120
59133
  pushTicker(id3, tickerData, ticker) {
59121
59134
  CanvasManagerStatic._currentTickers[id3] = tickerData;
59122
59135
  tickerData.fn = (t2) => {
59123
- if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
59124
- return;
59125
- }
59126
59136
  let data = CanvasManagerStatic._currentTickers[id3];
59127
59137
  if (data) {
59128
- let canvasElementAliases = data.canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
59138
+ let canvasElementAliases = data.canvasElementAliases;
59139
+ if (tickerData.createdByTicketSteps) {
59140
+ if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
59141
+ return;
59142
+ }
59143
+ } else {
59144
+ canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
59145
+ }
59129
59146
  ticker?.fn(t2, data.args, canvasElementAliases, id3);
59130
59147
  }
59131
59148
  };
@@ -59472,15 +59489,19 @@ var CanvasManager = class {
59472
59489
  });
59473
59490
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
59474
59491
  let ticker = CanvasManagerStatic._currentTickersSteps[alias];
59475
- if (ticker && ticker[id3] && !ticker[id3].steps.includes(Repeat)) {
59476
- ticker[id3].steps.forEach((step) => {
59477
- if (typeof step === "object" && "ticker" in step) {
59478
- let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
59479
- if (ticker2) {
59480
- ticker2.onEndOfTicker([alias], id3, step.args);
59492
+ if (ticker && ticker[id3]) {
59493
+ if (ticker[id3].steps.includes(Repeat)) {
59494
+ console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
59495
+ } else {
59496
+ ticker[id3].steps.forEach((step) => {
59497
+ if (typeof step === "object" && "ticker" in step) {
59498
+ let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
59499
+ if (ticker2) {
59500
+ ticker2.onEndOfTicker([alias], id3, step.args);
59501
+ }
59481
59502
  }
59482
- }
59483
- });
59503
+ });
59504
+ }
59484
59505
  }
59485
59506
  });
59486
59507
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
@@ -59521,6 +59542,7 @@ var CanvasManager = class {
59521
59542
  tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
59522
59543
  tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
59523
59544
  elements: createExportableElement(currentElements),
59545
+ stage: createExportableElement(getMemoryContainer(this.app.stage)),
59524
59546
  elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
59525
59547
  tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
59526
59548
  };
@@ -59554,6 +59576,11 @@ var CanvasManager = class {
59554
59576
  console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
59555
59577
  return;
59556
59578
  }
59579
+ if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
59580
+ setMemoryContainer(this.app.stage, data["stage"]);
59581
+ } else {
59582
+ console.error("[Pixi\u2019VN] The data does not have the properties stage");
59583
+ }
59557
59584
  if (data.hasOwnProperty("tickers")) {
59558
59585
  let tickers = data["tickers"];
59559
59586
  Object.entries(tickers).forEach(([oldId, t2]) => {
@@ -59715,8 +59742,8 @@ function getExponentialProgression(number, progression, valueConvert) {
59715
59742
  // src/classes/ticker/MoveTicker.ts
59716
59743
  var MoveTicker = class extends TickerBase {
59717
59744
  fn(ticker, args, aliases, tickerId) {
59718
- let xSpeed = 1;
59719
- let ySpeed = 1;
59745
+ let xSpeed = 10;
59746
+ let ySpeed = 10;
59720
59747
  if (args.speed) {
59721
59748
  if (typeof args.speed === "number") {
59722
59749
  xSpeed = this.speedConvert(args.speed);
@@ -59780,6 +59807,10 @@ var MoveTicker = class extends TickerBase {
59780
59807
  let destination = args.destination;
59781
59808
  element.x = destination.x;
59782
59809
  element.y = destination.y;
59810
+ if (args.isPushInOut && element.children.length > 0) {
59811
+ let elementChild = element.children[0];
59812
+ canvas.add(alias2, elementChild, { ignoreOldStyle: true });
59813
+ }
59783
59814
  }
59784
59815
  });
59785
59816
  super.onEndOfTicker(alias, tickerId, args);
@@ -60212,6 +60243,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
60212
60243
  canvas: {
60213
60244
  elementAliasesOrder: [],
60214
60245
  elements: {},
60246
+ stage: {},
60215
60247
  tickers: {},
60216
60248
  tickersSteps: {},
60217
60249
  tickersOnPause: {}
@@ -60791,8 +60823,10 @@ var NarrationManager = class {
60791
60823
  console.warn("[Pixi\u2019VN] stepSha not found");
60792
60824
  }
60793
60825
  try {
60826
+ if (NarrationManagerStatic.stepsRunning === 0) {
60827
+ canvas.forceCompletionOfReportedTickers();
60828
+ }
60794
60829
  NarrationManagerStatic.stepsRunning++;
60795
- canvas.forceCompletionOfReportedTickers();
60796
60830
  let result = await step(props);
60797
60831
  if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
60798
60832
  let choice = this.choiceMenuOptions[0];
@@ -1,12 +1,12 @@
1
1
  import { Texture } from 'pixi.js';
2
- import ITextureMemory from '../../interface/canvas/ITextureMemory.cjs';
2
+ import TextureMemory from '../../interface/canvas/TextureMemory.cjs';
3
3
 
4
4
  /**
5
5
  * Get the memory object of the PixiJS texture
6
6
  * @param texture PixiJS Texture object
7
7
  * @returns Memory object of the texture
8
8
  */
9
- declare function getTextureMemory(texture: Texture): ITextureMemory;
9
+ declare function getTextureMemory(texture: Texture): TextureMemory;
10
10
  /**
11
11
  * @deprecated use canvas.remove
12
12
  */
@@ -1,12 +1,12 @@
1
1
  import { Texture } from 'pixi.js';
2
- import ITextureMemory from '../../interface/canvas/ITextureMemory.js';
2
+ import TextureMemory from '../../interface/canvas/TextureMemory.js';
3
3
 
4
4
  /**
5
5
  * Get the memory object of the PixiJS texture
6
6
  * @param texture PixiJS Texture object
7
7
  * @returns Memory object of the texture
8
8
  */
9
- declare function getTextureMemory(texture: Texture): ITextureMemory;
9
+ declare function getTextureMemory(texture: Texture): TextureMemory;
10
10
  /**
11
11
  * @deprecated use canvas.remove
12
12
  */
@@ -2,12 +2,12 @@ import {
2
2
  checkIfVideo,
3
3
  getTextureMemory,
4
4
  removeCanvasElement
5
- } from "../../chunk-3FJYYZOP.js";
5
+ } from "../../chunk-D3ZQSJKZ.js";
6
6
  import "../../chunk-OMPJ74CO.js";
7
7
  import "../../chunk-2BUPSB7O.js";
8
8
  import "../../chunk-CZKJI26F.js";
9
9
  import "../../chunk-I6TNJEE3.js";
10
- import "../../chunk-66F5CGHV.js";
10
+ import "../../chunk-DPUSONJ3.js";
11
11
  import "../../chunk-P44J5BE2.js";
12
12
  import "../../chunk-CAUF2LKZ.js";
13
13
  import "../../chunk-VXCA724Z.js";
@@ -15,12 +15,12 @@ import "../../chunk-3DOISWD6.js";
15
15
  import "../../chunk-I4UGLC3A.js";
16
16
  import "../../chunk-ZZLQ3ILH.js";
17
17
  import "../../chunk-JTQGULTR.js";
18
- import "../../chunk-6SZOXEOR.js";
18
+ import "../../chunk-FHNQBWIZ.js";
19
19
  import "../../chunk-ZBUW3MBH.js";
20
- import "../../chunk-D3NHF5OS.js";
20
+ import "../../chunk-PIYIZHZL.js";
21
21
  import "../../chunk-WX267JP2.js";
22
22
  import "../../chunk-LEMOIFSV.js";
23
- import "../../chunk-FYCYVQTG.js";
23
+ import "../../chunk-A4NKPUL5.js";
24
24
  import "../../chunk-RATGPKD3.js";
25
25
  import "../../chunk-2PXN34ON.js";
26
26
  import "../../chunk-TAJJZPEH.js";