@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
@@ -1594,14 +1594,14 @@ var init_uid = __esm({
1594
1594
  });
1595
1595
 
1596
1596
  // node_modules/pixi.js/lib/utils/logging/deprecation.mjs
1597
- function deprecation(version, message, ignoreDepth = 3) {
1597
+ function deprecation(version2, message, ignoreDepth = 3) {
1598
1598
  if (warnings[message]) {
1599
1599
  return;
1600
1600
  }
1601
1601
  let stack = new Error().stack;
1602
1602
  if (typeof stack === "undefined") {
1603
1603
  console.warn("PixiJS Deprecation Warning: ", `${message}
1604
- Deprecated since v${version}`);
1604
+ Deprecated since v${version2}`);
1605
1605
  } else {
1606
1606
  stack = stack.split("\n").splice(ignoreDepth).join("\n");
1607
1607
  if (console.groupCollapsed) {
@@ -1610,13 +1610,13 @@ Deprecated since v${version}`);
1610
1610
  "color:#614108;background:#fffbe6",
1611
1611
  "font-weight:normal;color:#614108;background:#fffbe6",
1612
1612
  `${message}
1613
- Deprecated since v${version}`
1613
+ Deprecated since v${version2}`
1614
1614
  );
1615
1615
  console.warn(stack);
1616
1616
  console.groupEnd();
1617
1617
  } else {
1618
1618
  console.warn("PixiJS Deprecation Warning: ", `${message}
1619
- Deprecated since v${version}`);
1619
+ Deprecated since v${version2}`);
1620
1620
  console.warn(stack);
1621
1621
  }
1622
1622
  }
@@ -25982,7 +25982,8 @@ var init_webworkerAll = __esm({
25982
25982
  // src/constants.ts
25983
25983
  var constants_exports = {};
25984
25984
  __export(constants_exports, {
25985
- PIXIVN_VERSION: () => PIXIVN_VERSION,
25985
+ CANVAS_APP_STAGE_ALIAS: () => CANVAS_APP_STAGE_ALIAS,
25986
+ PIXIVN_VERSION: () => version,
25986
25987
  Pause: () => Pause,
25987
25988
  Repeat: () => Repeat,
25988
25989
  filters: () => filters,
@@ -28615,8 +28616,10 @@ extensions.add(soundAsset);
28615
28616
  // node_modules/@pixi/sound/lib/index.mjs
28616
28617
  var sound = setInstance(new SoundLibrary());
28617
28618
 
28619
+ // package.json
28620
+ var version = "0.8.9";
28621
+
28618
28622
  // src/constants.ts
28619
- var PIXIVN_VERSION = "0.8.3";
28620
28623
  var Repeat = "repeat";
28621
28624
  function Pause(duration) {
28622
28625
  return {
@@ -28735,8 +28738,10 @@ var videoFormats = [
28735
28738
  "asf",
28736
28739
  "vob"
28737
28740
  ];
28741
+ var CANVAS_APP_STAGE_ALIAS = "_stage_";
28738
28742
  // Annotate the CommonJS export names for ESM import in node:
28739
28743
  0 && (module.exports = {
28744
+ CANVAS_APP_STAGE_ALIAS,
28740
28745
  PIXIVN_VERSION,
28741
28746
  Pause,
28742
28747
  Repeat,
@@ -2,7 +2,8 @@ import { filters as filters$1 } from '@pixi/sound';
2
2
  import { PauseType } from './types/PauseType.cjs';
3
3
  import { RepeatType } from './types/RepeatType.cjs';
4
4
 
5
- declare const PIXIVN_VERSION = "0.8.3";
5
+ var version = "0.8.9";
6
+
6
7
  declare const Repeat: RepeatType;
7
8
  /**
8
9
  * Pause the tickers for a duration.
@@ -20,5 +21,9 @@ declare const filters: {
20
21
  TelephoneFilter: typeof filters$1.TelephoneFilter;
21
22
  };
22
23
  declare const videoFormats: string[];
24
+ /**
25
+ * Is a special alias to indicate {@link canvas.app.stage}.
26
+ */
27
+ declare const CANVAS_APP_STAGE_ALIAS = "_stage_";
23
28
 
24
- export { PIXIVN_VERSION, Pause, Repeat, filters, videoFormats };
29
+ export { CANVAS_APP_STAGE_ALIAS, version as PIXIVN_VERSION, Pause, Repeat, filters, videoFormats };
@@ -2,7 +2,8 @@ import { filters as filters$1 } from '@pixi/sound';
2
2
  import { PauseType } from './types/PauseType.js';
3
3
  import { RepeatType } from './types/RepeatType.js';
4
4
 
5
- declare const PIXIVN_VERSION = "0.8.3";
5
+ var version = "0.8.9";
6
+
6
7
  declare const Repeat: RepeatType;
7
8
  /**
8
9
  * Pause the tickers for a duration.
@@ -20,5 +21,9 @@ declare const filters: {
20
21
  TelephoneFilter: typeof filters$1.TelephoneFilter;
21
22
  };
22
23
  declare const videoFormats: string[];
24
+ /**
25
+ * Is a special alias to indicate {@link canvas.app.stage}.
26
+ */
27
+ declare const CANVAS_APP_STAGE_ALIAS = "_stage_";
23
28
 
24
- export { PIXIVN_VERSION, Pause, Repeat, filters, videoFormats };
29
+ export { CANVAS_APP_STAGE_ALIAS, version as PIXIVN_VERSION, Pause, Repeat, filters, videoFormats };
package/dist/constants.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import {
2
- PIXIVN_VERSION,
2
+ CANVAS_APP_STAGE_ALIAS,
3
3
  Pause,
4
4
  Repeat,
5
5
  filters,
6
+ version,
6
7
  videoFormats
7
- } from "./chunk-FYCYVQTG.js";
8
+ } from "./chunk-A4NKPUL5.js";
8
9
  import "./chunk-RATGPKD3.js";
9
10
  import "./chunk-2PXN34ON.js";
10
11
  import "./chunk-TAJJZPEH.js";
@@ -16,7 +17,8 @@ import "./chunk-445UQMDC.js";
16
17
  import "./chunk-PZXJFPCN.js";
17
18
  import "./chunk-N342G4HO.js";
18
19
  export {
19
- PIXIVN_VERSION,
20
+ CANVAS_APP_STAGE_ALIAS,
21
+ version as PIXIVN_VERSION,
20
22
  Pause,
21
23
  Repeat,
22
24
  filters,
@@ -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() {
@@ -57406,6 +57406,7 @@ var filters = {
57406
57406
  StreamFilter: filters_exports.StreamFilter,
57407
57407
  TelephoneFilter: filters_exports.TelephoneFilter
57408
57408
  };
57409
+ var CANVAS_APP_STAGE_ALIAS = "_stage_";
57409
57410
 
57410
57411
  // src/managers/CanvasManager.ts
57411
57412
  init_lib();
@@ -57716,7 +57717,7 @@ function createExportableElement(element) {
57716
57717
  let elementString = JSON.stringify(element);
57717
57718
  return JSON.parse(elementString);
57718
57719
  } catch (e2) {
57719
- console.error("[Pixi\u2019VN] Error creating exportable element", e2);
57720
+ console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
57720
57721
  throw new Error("[Pixi\u2019VN] Error creating exportable element");
57721
57722
  }
57722
57723
  }
@@ -58149,6 +58150,10 @@ var CanvasManager = class {
58149
58150
  * ```
58150
58151
  */
58151
58152
  add(alias, canvasElement, options = {}) {
58153
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58154
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58155
+ return;
58156
+ }
58152
58157
  let ignoreOldStyle = options?.ignoreOldStyle;
58153
58158
  let oldCanvasElement = this.find(alias);
58154
58159
  if (oldCanvasElement) {
@@ -58179,6 +58184,10 @@ var CanvasManager = class {
58179
58184
  * ```
58180
58185
  */
58181
58186
  remove(alias, options = {}) {
58187
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58188
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58189
+ return;
58190
+ }
58182
58191
  let ignoreTickers = options.ignoreTickers;
58183
58192
  if (typeof alias === "string") {
58184
58193
  alias = [alias];
@@ -58207,6 +58216,9 @@ var CanvasManager = class {
58207
58216
  * ```
58208
58217
  */
58209
58218
  find(alias) {
58219
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58220
+ return this.app.stage;
58221
+ }
58210
58222
  return CanvasManagerStatic._children[alias];
58211
58223
  }
58212
58224
  /**
@@ -58233,16 +58245,17 @@ var CanvasManager = class {
58233
58245
  this.removeAllTickers();
58234
58246
  }
58235
58247
  /**
58236
- * Edit the alias of a canvas element.
58248
+ * Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
58237
58249
  * @param oldAlias The old alias of the canvas element.
58238
58250
  * @param newAlias The new alias of the canvas element.
58251
+ * @param options The options of the canvas element.
58239
58252
  */
58240
- editAlias(oldAlias, newAlias) {
58253
+ editAlias(oldAlias, newAlias, options = {}) {
58241
58254
  if (CanvasManagerStatic._children[oldAlias]) {
58242
58255
  CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
58243
58256
  delete CanvasManagerStatic._children[oldAlias];
58244
58257
  }
58245
- this.transferTickers(oldAlias, newAlias, "move");
58258
+ !options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
58246
58259
  }
58247
58260
  /** Edit Tickers Methods */
58248
58261
  /**
@@ -58317,12 +58330,16 @@ var CanvasManager = class {
58317
58330
  pushTicker(id3, tickerData, ticker) {
58318
58331
  CanvasManagerStatic._currentTickers[id3] = tickerData;
58319
58332
  tickerData.fn = (t2) => {
58320
- if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
58321
- return;
58322
- }
58323
58333
  let data = CanvasManagerStatic._currentTickers[id3];
58324
58334
  if (data) {
58325
- let canvasElementAliases = data.canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
58335
+ let canvasElementAliases = data.canvasElementAliases;
58336
+ if (tickerData.createdByTicketSteps) {
58337
+ if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
58338
+ return;
58339
+ }
58340
+ } else {
58341
+ canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
58342
+ }
58326
58343
  ticker?.fn(t2, data.args, canvasElementAliases, id3);
58327
58344
  }
58328
58345
  };
@@ -58669,15 +58686,19 @@ var CanvasManager = class {
58669
58686
  });
58670
58687
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
58671
58688
  let ticker = CanvasManagerStatic._currentTickersSteps[alias];
58672
- if (ticker && ticker[id3] && !ticker[id3].steps.includes(Repeat)) {
58673
- ticker[id3].steps.forEach((step) => {
58674
- if (typeof step === "object" && "ticker" in step) {
58675
- let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
58676
- if (ticker2) {
58677
- ticker2.onEndOfTicker([alias], id3, step.args);
58689
+ if (ticker && ticker[id3]) {
58690
+ if (ticker[id3].steps.includes(Repeat)) {
58691
+ console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
58692
+ } else {
58693
+ ticker[id3].steps.forEach((step) => {
58694
+ if (typeof step === "object" && "ticker" in step) {
58695
+ let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
58696
+ if (ticker2) {
58697
+ ticker2.onEndOfTicker([alias], id3, step.args);
58698
+ }
58678
58699
  }
58679
- }
58680
- });
58700
+ });
58701
+ }
58681
58702
  }
58682
58703
  });
58683
58704
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
@@ -58718,6 +58739,7 @@ var CanvasManager = class {
58718
58739
  tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
58719
58740
  tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
58720
58741
  elements: createExportableElement(currentElements),
58742
+ stage: createExportableElement(getMemoryContainer(this.app.stage)),
58721
58743
  elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
58722
58744
  tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
58723
58745
  };
@@ -58751,6 +58773,11 @@ var CanvasManager = class {
58751
58773
  console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
58752
58774
  return;
58753
58775
  }
58776
+ if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
58777
+ setMemoryContainer(this.app.stage, data["stage"]);
58778
+ } else {
58779
+ console.error("[Pixi\u2019VN] The data does not have the properties stage");
58780
+ }
58754
58781
  if (data.hasOwnProperty("tickers")) {
58755
58782
  let tickers = data["tickers"];
58756
58783
  Object.entries(tickers).forEach(([oldId, t2]) => {
@@ -59178,8 +59205,8 @@ function getExponentialProgression(number, progression, valueConvert) {
59178
59205
  // src/classes/ticker/MoveTicker.ts
59179
59206
  var MoveTicker = class extends TickerBase {
59180
59207
  fn(ticker, args, aliases, tickerId) {
59181
- let xSpeed = 1;
59182
- let ySpeed = 1;
59208
+ let xSpeed = 10;
59209
+ let ySpeed = 10;
59183
59210
  if (args.speed) {
59184
59211
  if (typeof args.speed === "number") {
59185
59212
  xSpeed = this.speedConvert(args.speed);
@@ -59243,6 +59270,10 @@ var MoveTicker = class extends TickerBase {
59243
59270
  let destination = args.destination;
59244
59271
  element.x = destination.x;
59245
59272
  element.y = destination.y;
59273
+ if (args.isPushInOut && element.children.length > 0) {
59274
+ let elementChild = element.children[0];
59275
+ canvas.add(alias2, elementChild, { ignoreOldStyle: true });
59276
+ }
59246
59277
  }
59247
59278
  });
59248
59279
  super.onEndOfTicker(alias, tickerId, args);
@@ -59675,6 +59706,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
59675
59706
  canvas: {
59676
59707
  elementAliasesOrder: [],
59677
59708
  elements: {},
59709
+ stage: {},
59678
59710
  tickers: {},
59679
59711
  tickersSteps: {},
59680
59712
  tickersOnPause: {}
@@ -60254,8 +60286,10 @@ var NarrationManager = class {
60254
60286
  console.warn("[Pixi\u2019VN] stepSha not found");
60255
60287
  }
60256
60288
  try {
60289
+ if (NarrationManagerStatic.stepsRunning === 0) {
60290
+ canvas.forceCompletionOfReportedTickers();
60291
+ }
60257
60292
  NarrationManagerStatic.stepsRunning++;
60258
- canvas.forceCompletionOfReportedTickers();
60259
60293
  let result = await step(props);
60260
60294
  if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
60261
60295
  let choice = this.choiceMenuOptions[0];
@@ -1,7 +1,9 @@
1
1
  import CanvasBase from '../classes/canvas/CanvasBase.cjs';
2
2
  import { CanvasElementAliasType } from '../types/CanvasElementAliasType.cjs';
3
3
  import 'pixi.js';
4
- import '../interface/canvas/ICanvasBaseMemory.cjs';
4
+ import '../interface/canvas/canvas-memory.cjs';
5
+ import '../interface/canvas/TextureMemory.cjs';
6
+ import '../types/EventIdType.cjs';
5
7
 
6
8
  declare const registeredCanvasElement: {
7
9
  [name: CanvasElementAliasType]: typeof CanvasBase<any>;
@@ -1,7 +1,9 @@
1
1
  import CanvasBase from '../classes/canvas/CanvasBase.js';
2
2
  import { CanvasElementAliasType } from '../types/CanvasElementAliasType.js';
3
3
  import 'pixi.js';
4
- import '../interface/canvas/ICanvasBaseMemory.js';
4
+ import '../interface/canvas/canvas-memory.js';
5
+ import '../interface/canvas/TextureMemory.js';
6
+ import '../types/EventIdType.js';
5
7
 
6
8
  declare const registeredCanvasElement: {
7
9
  [name: CanvasElementAliasType]: typeof CanvasBase<any>;
@@ -3,12 +3,12 @@ import {
3
3
  getCanvasElementInstanceById,
4
4
  getCanvasElementTypeById,
5
5
  registeredCanvasElement
6
- } from "../chunk-3FJYYZOP.js";
6
+ } from "../chunk-D3ZQSJKZ.js";
7
7
  import "../chunk-OMPJ74CO.js";
8
8
  import "../chunk-2BUPSB7O.js";
9
9
  import "../chunk-CZKJI26F.js";
10
10
  import "../chunk-I6TNJEE3.js";
11
- import "../chunk-66F5CGHV.js";
11
+ import "../chunk-DPUSONJ3.js";
12
12
  import "../chunk-P44J5BE2.js";
13
13
  import "../chunk-CAUF2LKZ.js";
14
14
  import "../chunk-VXCA724Z.js";
@@ -16,12 +16,12 @@ import "../chunk-3DOISWD6.js";
16
16
  import "../chunk-I4UGLC3A.js";
17
17
  import "../chunk-ZZLQ3ILH.js";
18
18
  import "../chunk-JTQGULTR.js";
19
- import "../chunk-6SZOXEOR.js";
19
+ import "../chunk-FHNQBWIZ.js";
20
20
  import "../chunk-ZBUW3MBH.js";
21
- import "../chunk-D3NHF5OS.js";
21
+ import "../chunk-PIYIZHZL.js";
22
22
  import "../chunk-WX267JP2.js";
23
23
  import "../chunk-LEMOIFSV.js";
24
- import "../chunk-FYCYVQTG.js";
24
+ import "../chunk-A4NKPUL5.js";
25
25
  import "../chunk-RATGPKD3.js";
26
26
  import "../chunk-2PXN34ON.js";
27
27
  import "../chunk-TAJJZPEH.js";
@@ -3,7 +3,8 @@ import CanvasEvent from '../classes/CanvasEvent.cjs';
3
3
  import CanvasBase from '../classes/canvas/CanvasBase.cjs';
4
4
  import '../types/CanvasEventNamesType.cjs';
5
5
  import 'pixi.js';
6
- import '../interface/canvas/ICanvasBaseMemory.cjs';
6
+ import '../interface/canvas/canvas-memory.cjs';
7
+ import '../interface/canvas/TextureMemory.cjs';
7
8
 
8
9
  /**
9
10
  * Canvas Event Register
@@ -3,7 +3,8 @@ import CanvasEvent from '../classes/CanvasEvent.js';
3
3
  import CanvasBase from '../classes/canvas/CanvasBase.js';
4
4
  import '../types/CanvasEventNamesType.js';
5
5
  import 'pixi.js';
6
- import '../interface/canvas/ICanvasBaseMemory.js';
6
+ import '../interface/canvas/canvas-memory.js';
7
+ import '../interface/canvas/TextureMemory.js';
7
8
 
8
9
  /**
9
10
  * Canvas Event Register
@@ -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() {
@@ -57423,6 +57423,7 @@ var filters = {
57423
57423
  StreamFilter: filters_exports.StreamFilter,
57424
57424
  TelephoneFilter: filters_exports.TelephoneFilter
57425
57425
  };
57426
+ var CANVAS_APP_STAGE_ALIAS = "_stage_";
57426
57427
 
57427
57428
  // src/managers/CanvasManager.ts
57428
57429
  init_lib();
@@ -57733,7 +57734,7 @@ function createExportableElement(element) {
57733
57734
  let elementString = JSON.stringify(element);
57734
57735
  return JSON.parse(elementString);
57735
57736
  } catch (e2) {
57736
- console.error("[Pixi\u2019VN] Error creating exportable element", e2);
57737
+ console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
57737
57738
  throw new Error("[Pixi\u2019VN] Error creating exportable element");
57738
57739
  }
57739
57740
  }
@@ -58166,6 +58167,10 @@ var CanvasManager = class {
58166
58167
  * ```
58167
58168
  */
58168
58169
  add(alias, canvasElement, options = {}) {
58170
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58171
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58172
+ return;
58173
+ }
58169
58174
  let ignoreOldStyle = options?.ignoreOldStyle;
58170
58175
  let oldCanvasElement = this.find(alias);
58171
58176
  if (oldCanvasElement) {
@@ -58196,6 +58201,10 @@ var CanvasManager = class {
58196
58201
  * ```
58197
58202
  */
58198
58203
  remove(alias, options = {}) {
58204
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58205
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58206
+ return;
58207
+ }
58199
58208
  let ignoreTickers = options.ignoreTickers;
58200
58209
  if (typeof alias === "string") {
58201
58210
  alias = [alias];
@@ -58224,6 +58233,9 @@ var CanvasManager = class {
58224
58233
  * ```
58225
58234
  */
58226
58235
  find(alias) {
58236
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58237
+ return this.app.stage;
58238
+ }
58227
58239
  return CanvasManagerStatic._children[alias];
58228
58240
  }
58229
58241
  /**
@@ -58250,16 +58262,17 @@ var CanvasManager = class {
58250
58262
  this.removeAllTickers();
58251
58263
  }
58252
58264
  /**
58253
- * Edit the alias of a canvas element.
58265
+ * Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
58254
58266
  * @param oldAlias The old alias of the canvas element.
58255
58267
  * @param newAlias The new alias of the canvas element.
58268
+ * @param options The options of the canvas element.
58256
58269
  */
58257
- editAlias(oldAlias, newAlias) {
58270
+ editAlias(oldAlias, newAlias, options = {}) {
58258
58271
  if (CanvasManagerStatic._children[oldAlias]) {
58259
58272
  CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
58260
58273
  delete CanvasManagerStatic._children[oldAlias];
58261
58274
  }
58262
- this.transferTickers(oldAlias, newAlias, "move");
58275
+ !options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
58263
58276
  }
58264
58277
  /** Edit Tickers Methods */
58265
58278
  /**
@@ -58334,12 +58347,16 @@ var CanvasManager = class {
58334
58347
  pushTicker(id3, tickerData, ticker) {
58335
58348
  CanvasManagerStatic._currentTickers[id3] = tickerData;
58336
58349
  tickerData.fn = (t2) => {
58337
- if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
58338
- return;
58339
- }
58340
58350
  let data = CanvasManagerStatic._currentTickers[id3];
58341
58351
  if (data) {
58342
- let canvasElementAliases = data.canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
58352
+ let canvasElementAliases = data.canvasElementAliases;
58353
+ if (tickerData.createdByTicketSteps) {
58354
+ if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
58355
+ return;
58356
+ }
58357
+ } else {
58358
+ canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
58359
+ }
58343
58360
  ticker?.fn(t2, data.args, canvasElementAliases, id3);
58344
58361
  }
58345
58362
  };
@@ -58686,15 +58703,19 @@ var CanvasManager = class {
58686
58703
  });
58687
58704
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
58688
58705
  let ticker = CanvasManagerStatic._currentTickersSteps[alias];
58689
- if (ticker && ticker[id3] && !ticker[id3].steps.includes(Repeat)) {
58690
- ticker[id3].steps.forEach((step) => {
58691
- if (typeof step === "object" && "ticker" in step) {
58692
- let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
58693
- if (ticker2) {
58694
- ticker2.onEndOfTicker([alias], id3, step.args);
58706
+ if (ticker && ticker[id3]) {
58707
+ if (ticker[id3].steps.includes(Repeat)) {
58708
+ console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
58709
+ } else {
58710
+ ticker[id3].steps.forEach((step) => {
58711
+ if (typeof step === "object" && "ticker" in step) {
58712
+ let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
58713
+ if (ticker2) {
58714
+ ticker2.onEndOfTicker([alias], id3, step.args);
58715
+ }
58695
58716
  }
58696
- }
58697
- });
58717
+ });
58718
+ }
58698
58719
  }
58699
58720
  });
58700
58721
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
@@ -58735,6 +58756,7 @@ var CanvasManager = class {
58735
58756
  tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
58736
58757
  tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
58737
58758
  elements: createExportableElement(currentElements),
58759
+ stage: createExportableElement(getMemoryContainer(this.app.stage)),
58738
58760
  elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
58739
58761
  tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
58740
58762
  };
@@ -58768,6 +58790,11 @@ var CanvasManager = class {
58768
58790
  console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
58769
58791
  return;
58770
58792
  }
58793
+ if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
58794
+ setMemoryContainer(this.app.stage, data["stage"]);
58795
+ } else {
58796
+ console.error("[Pixi\u2019VN] The data does not have the properties stage");
58797
+ }
58771
58798
  if (data.hasOwnProperty("tickers")) {
58772
58799
  let tickers = data["tickers"];
58773
58800
  Object.entries(tickers).forEach(([oldId, t2]) => {
@@ -59206,8 +59233,8 @@ function getExponentialProgression(number, progression, valueConvert) {
59206
59233
  // src/classes/ticker/MoveTicker.ts
59207
59234
  var MoveTicker = class extends TickerBase {
59208
59235
  fn(ticker, args, aliases, tickerId) {
59209
- let xSpeed = 1;
59210
- let ySpeed = 1;
59236
+ let xSpeed = 10;
59237
+ let ySpeed = 10;
59211
59238
  if (args.speed) {
59212
59239
  if (typeof args.speed === "number") {
59213
59240
  xSpeed = this.speedConvert(args.speed);
@@ -59271,6 +59298,10 @@ var MoveTicker = class extends TickerBase {
59271
59298
  let destination = args.destination;
59272
59299
  element.x = destination.x;
59273
59300
  element.y = destination.y;
59301
+ if (args.isPushInOut && element.children.length > 0) {
59302
+ let elementChild = element.children[0];
59303
+ canvas.add(alias2, elementChild, { ignoreOldStyle: true });
59304
+ }
59274
59305
  }
59275
59306
  });
59276
59307
  super.onEndOfTicker(alias, tickerId, args);
@@ -59703,6 +59734,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
59703
59734
  canvas: {
59704
59735
  elementAliasesOrder: [],
59705
59736
  elements: {},
59737
+ stage: {},
59706
59738
  tickers: {},
59707
59739
  tickersSteps: {},
59708
59740
  tickersOnPause: {}
@@ -60282,8 +60314,10 @@ var NarrationManager = class {
60282
60314
  console.warn("[Pixi\u2019VN] stepSha not found");
60283
60315
  }
60284
60316
  try {
60317
+ if (NarrationManagerStatic.stepsRunning === 0) {
60318
+ canvas.forceCompletionOfReportedTickers();
60319
+ }
60285
60320
  NarrationManagerStatic.stepsRunning++;
60286
- canvas.forceCompletionOfReportedTickers();
60287
60321
  let result = await step(props);
60288
60322
  if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
60289
60323
  let choice = this.choiceMenuOptions[0];