@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
@@ -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() {
@@ -57511,6 +57511,7 @@ var videoFormats = [
57511
57511
  "asf",
57512
57512
  "vob"
57513
57513
  ];
57514
+ var CANVAS_APP_STAGE_ALIAS = "_stage_";
57514
57515
 
57515
57516
  // src/managers/CanvasManager.ts
57516
57517
  init_lib();
@@ -57851,7 +57852,7 @@ function createExportableElement(element) {
57851
57852
  let elementString = JSON.stringify(element);
57852
57853
  return JSON.parse(elementString);
57853
57854
  } catch (e2) {
57854
- console.error("[Pixi\u2019VN] Error creating exportable element", e2);
57855
+ console.error("[Pixi\u2019VN] Error creating exportable element", element, e2);
57855
57856
  throw new Error("[Pixi\u2019VN] Error creating exportable element");
57856
57857
  }
57857
57858
  }
@@ -58284,6 +58285,10 @@ var CanvasManager = class {
58284
58285
  * ```
58285
58286
  */
58286
58287
  add(alias, canvasElement, options = {}) {
58288
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58289
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58290
+ return;
58291
+ }
58287
58292
  let ignoreOldStyle = options?.ignoreOldStyle;
58288
58293
  let oldCanvasElement = this.find(alias);
58289
58294
  if (oldCanvasElement) {
@@ -58314,6 +58319,10 @@ var CanvasManager = class {
58314
58319
  * ```
58315
58320
  */
58316
58321
  remove(alias, options = {}) {
58322
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58323
+ console.error(`[Pixi\u2019VN] The alias ${CANVAS_APP_STAGE_ALIAS} is reserved`);
58324
+ return;
58325
+ }
58317
58326
  let ignoreTickers = options.ignoreTickers;
58318
58327
  if (typeof alias === "string") {
58319
58328
  alias = [alias];
@@ -58342,6 +58351,9 @@ var CanvasManager = class {
58342
58351
  * ```
58343
58352
  */
58344
58353
  find(alias) {
58354
+ if (alias === CANVAS_APP_STAGE_ALIAS) {
58355
+ return this.app.stage;
58356
+ }
58345
58357
  return CanvasManagerStatic._children[alias];
58346
58358
  }
58347
58359
  /**
@@ -58368,16 +58380,17 @@ var CanvasManager = class {
58368
58380
  this.removeAllTickers();
58369
58381
  }
58370
58382
  /**
58371
- * Edit the alias of a canvas element.
58383
+ * Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
58372
58384
  * @param oldAlias The old alias of the canvas element.
58373
58385
  * @param newAlias The new alias of the canvas element.
58386
+ * @param options The options of the canvas element.
58374
58387
  */
58375
- editAlias(oldAlias, newAlias) {
58388
+ editAlias(oldAlias, newAlias, options = {}) {
58376
58389
  if (CanvasManagerStatic._children[oldAlias]) {
58377
58390
  CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
58378
58391
  delete CanvasManagerStatic._children[oldAlias];
58379
58392
  }
58380
- this.transferTickers(oldAlias, newAlias, "move");
58393
+ !options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
58381
58394
  }
58382
58395
  /** Edit Tickers Methods */
58383
58396
  /**
@@ -58452,12 +58465,16 @@ var CanvasManager = class {
58452
58465
  pushTicker(id3, tickerData, ticker) {
58453
58466
  CanvasManagerStatic._currentTickers[id3] = tickerData;
58454
58467
  tickerData.fn = (t2) => {
58455
- if (tickerData.createdByTicketSteps && this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
58456
- return;
58457
- }
58458
58468
  let data = CanvasManagerStatic._currentTickers[id3];
58459
58469
  if (data) {
58460
- let canvasElementAliases = data.canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
58470
+ let canvasElementAliases = data.canvasElementAliases;
58471
+ if (tickerData.createdByTicketSteps) {
58472
+ if (this.isTickerPaused(tickerData.createdByTicketSteps.canvasElementAlias, tickerData.createdByTicketSteps.id)) {
58473
+ return;
58474
+ }
58475
+ } else {
58476
+ canvasElementAliases = canvasElementAliases.filter((alias) => !this.isTickerPaused(alias, id3));
58477
+ }
58461
58478
  ticker?.fn(t2, data.args, canvasElementAliases, id3);
58462
58479
  }
58463
58480
  };
@@ -58804,15 +58821,19 @@ var CanvasManager = class {
58804
58821
  });
58805
58822
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep.stepAlias.forEach(({ alias, id: id3 }) => {
58806
58823
  let ticker = CanvasManagerStatic._currentTickersSteps[alias];
58807
- if (ticker && ticker[id3] && !ticker[id3].steps.includes(Repeat)) {
58808
- ticker[id3].steps.forEach((step) => {
58809
- if (typeof step === "object" && "ticker" in step) {
58810
- let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
58811
- if (ticker2) {
58812
- ticker2.onEndOfTicker([alias], id3, step.args);
58824
+ if (ticker && ticker[id3]) {
58825
+ if (ticker[id3].steps.includes(Repeat)) {
58826
+ console.error(`[Pixi\u2019VN] The ticker alias: ${alias} id: ${id3} contains a RepeatType, so it can't be forced to complete`, ticker[id3]);
58827
+ } else {
58828
+ ticker[id3].steps.forEach((step) => {
58829
+ if (typeof step === "object" && "ticker" in step) {
58830
+ let ticker2 = geTickerInstanceById(step.ticker, step.args, step.duration, step.priority);
58831
+ if (ticker2) {
58832
+ ticker2.onEndOfTicker([alias], id3, step.args);
58833
+ }
58813
58834
  }
58814
- }
58815
- });
58835
+ });
58836
+ }
58816
58837
  }
58817
58838
  });
58818
58839
  CanvasManagerStatic._tickersMustBeCompletedBeforeNextStep = { tikersIds: [], stepAlias: [] };
@@ -58853,6 +58874,7 @@ var CanvasManager = class {
58853
58874
  tickers: createExportableElement(CanvasManagerStatic.currentTickersWithoutCreatedBySteps),
58854
58875
  tickersSteps: createExportableElement(CanvasManagerStatic._currentTickersSteps),
58855
58876
  elements: createExportableElement(currentElements),
58877
+ stage: createExportableElement(getMemoryContainer(this.app.stage)),
58856
58878
  elementAliasesOrder: createExportableElement(CanvasManagerStatic.childrenAliasesOrder),
58857
58879
  tickersOnPause: createExportableElement(CanvasManagerStatic._tickersOnPause)
58858
58880
  };
@@ -58886,6 +58908,11 @@ var CanvasManager = class {
58886
58908
  console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
58887
58909
  return;
58888
58910
  }
58911
+ if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
58912
+ setMemoryContainer(this.app.stage, data["stage"]);
58913
+ } else {
58914
+ console.error("[Pixi\u2019VN] The data does not have the properties stage");
58915
+ }
58889
58916
  if (data.hasOwnProperty("tickers")) {
58890
58917
  let tickers = data["tickers"];
58891
58918
  Object.entries(tickers).forEach(([oldId, t2]) => {
@@ -59334,8 +59361,8 @@ function getExponentialProgression(number, progression, valueConvert) {
59334
59361
  // src/classes/ticker/MoveTicker.ts
59335
59362
  var MoveTicker = class extends TickerBase {
59336
59363
  fn(ticker, args, aliases, tickerId) {
59337
- let xSpeed = 1;
59338
- let ySpeed = 1;
59364
+ let xSpeed = 10;
59365
+ let ySpeed = 10;
59339
59366
  if (args.speed) {
59340
59367
  if (typeof args.speed === "number") {
59341
59368
  xSpeed = this.speedConvert(args.speed);
@@ -59399,6 +59426,10 @@ var MoveTicker = class extends TickerBase {
59399
59426
  let destination = args.destination;
59400
59427
  element.x = destination.x;
59401
59428
  element.y = destination.y;
59429
+ if (args.isPushInOut && element.children.length > 0) {
59430
+ let elementChild = element.children[0];
59431
+ canvas.add(alias2, elementChild, { ignoreOldStyle: true });
59432
+ }
59402
59433
  }
59403
59434
  });
59404
59435
  super.onEndOfTicker(alias, tickerId, args);
@@ -59589,6 +59620,88 @@ ZoomTicker = __decorateClass([
59589
59620
  tickerDecorator()
59590
59621
  ], ZoomTicker);
59591
59622
 
59623
+ // src/functions/canvas/canvas-effect.ts
59624
+ async function shakeEffect(alias, props = {}, priority) {
59625
+ let elemet = canvas.find(alias);
59626
+ if (!elemet) {
59627
+ console.error(`[Pixi\u2019VN] The element with the alias ${alias} does not exist. So the shake effect can't be applied.`);
59628
+ return;
59629
+ }
59630
+ let position = { x: elemet.position.x, y: elemet.position.y };
59631
+ let speed = props.speed || 20;
59632
+ let speedProgression = props.speedProgression || void 0;
59633
+ let startOnlyIfHaveTexture = props.startOnlyIfHaveTexture || false;
59634
+ let type = props.type || "horizontal";
59635
+ let maximumShockSize = props.maximumShockSize || 10;
59636
+ let shocksNumber = (props.shocksNumber || 10) - 1;
59637
+ if (shocksNumber < 2) {
59638
+ console.error("[Pixi\u2019VN] The number of shocks must be at least 3.");
59639
+ return;
59640
+ }
59641
+ let upshocksNumber = Math.floor(shocksNumber / 2);
59642
+ let downshocksNumber = Math.ceil(shocksNumber / 2);
59643
+ let moveTickers = [];
59644
+ for (let i3 = 0; i3 < upshocksNumber; i3++) {
59645
+ let destination = { x: position.x, y: position.y };
59646
+ let shockSize = maximumShockSize * (i3 + 1) / upshocksNumber;
59647
+ if (type === "horizontal") {
59648
+ if (i3 % 2 !== 0) {
59649
+ destination.x = position.x + shockSize;
59650
+ } else {
59651
+ destination.x = position.x - shockSize;
59652
+ }
59653
+ } else {
59654
+ if (i3 % 2 !== 0) {
59655
+ destination.y = position.y + shockSize;
59656
+ } else {
59657
+ destination.y = position.y - shockSize;
59658
+ }
59659
+ }
59660
+ moveTickers.push(new MoveTicker({
59661
+ destination,
59662
+ speed,
59663
+ speedProgression,
59664
+ startOnlyIfHaveTexture
59665
+ }, void 0, priority));
59666
+ }
59667
+ let lastItemIsLeft = upshocksNumber % 2 === 0;
59668
+ for (let i3 = downshocksNumber; i3 > 0; i3--) {
59669
+ let destination = { x: position.x, y: position.y };
59670
+ let shockSize = maximumShockSize * (i3 + 1) / (downshocksNumber - 1);
59671
+ if (type === "horizontal") {
59672
+ if (i3 % 2 === 0 && !lastItemIsLeft || i3 % 2 !== 0 && lastItemIsLeft) {
59673
+ destination.x = position.x - shockSize;
59674
+ } else {
59675
+ destination.x = position.x + shockSize;
59676
+ }
59677
+ } else {
59678
+ if (i3 % 2 === 0 && !lastItemIsLeft || i3 % 2 !== 0 && lastItemIsLeft) {
59679
+ destination.y = position.y - shockSize;
59680
+ } else {
59681
+ destination.y = position.y + shockSize;
59682
+ }
59683
+ }
59684
+ moveTickers.push(new MoveTicker({
59685
+ destination,
59686
+ speed,
59687
+ speedProgression,
59688
+ startOnlyIfHaveTexture
59689
+ }, void 0, priority));
59690
+ }
59691
+ moveTickers.push(new MoveTicker({
59692
+ destination: position,
59693
+ speed,
59694
+ speedProgression,
59695
+ startOnlyIfHaveTexture,
59696
+ tickerAliasToResume: alias
59697
+ }, void 0, priority));
59698
+ let id3 = canvas.addTickersSteps(alias, moveTickers);
59699
+ if (id3) {
59700
+ canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3, alias });
59701
+ canvas.putOnPauseTicker(alias, id3);
59702
+ }
59703
+ }
59704
+
59592
59705
  // src/functions/canvas/image-utility.ts
59593
59706
  function addImage(alias, imageUrl) {
59594
59707
  let image = new CanvasImage();
@@ -59631,6 +59744,7 @@ function addVideo(alias, videoUrl) {
59631
59744
 
59632
59745
  // src/functions/canvas/canvas-transition.ts
59633
59746
  async function showWithDissolveTransition(alias, image, props = {}, priority) {
59747
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
59634
59748
  let oldCanvasAlias = void 0;
59635
59749
  if (canvas.find(alias)) {
59636
59750
  oldCanvasAlias = alias + "_temp_disolve";
@@ -59660,10 +59774,13 @@ async function showWithDissolveTransition(alias, image, props = {}, priority) {
59660
59774
  startOnlyIfHaveTexture: true
59661
59775
  }, 10, priority);
59662
59776
  let id3 = canvas.addTicker(alias, effect);
59663
- id3 && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
59664
- return;
59777
+ if (id3) {
59778
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
59779
+ return [id3];
59780
+ }
59665
59781
  }
59666
59782
  function removeWithDissolveTransition(alias, props = {}, priority) {
59783
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
59667
59784
  if (typeof alias === "string") {
59668
59785
  alias = [alias];
59669
59786
  }
@@ -59673,12 +59790,17 @@ function removeWithDissolveTransition(alias, props = {}, priority) {
59673
59790
  aliasToRemoveAfter: alias,
59674
59791
  startOnlyIfHaveTexture: true
59675
59792
  }, 10, priority);
59676
- canvas.addTicker(alias, effect);
59793
+ let id3 = canvas.addTicker(alias, effect);
59794
+ if (id3) {
59795
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
59796
+ return [id3];
59797
+ }
59677
59798
  }
59678
59799
  async function showWithFadeTransition(alias, image, props = {}, priority) {
59679
59800
  if (!canvas.find(alias)) {
59680
59801
  return showWithDissolveTransition(alias, image, props, priority);
59681
59802
  }
59803
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
59682
59804
  let oldCanvasAlias = alias + "_temp_fade";
59683
59805
  canvas.editAlias(alias, oldCanvasAlias);
59684
59806
  let canvasElement;
@@ -59714,14 +59836,23 @@ async function showWithFadeTransition(alias, image, props = {}, priority) {
59714
59836
  aliasToRemoveAfter: oldCanvasAlias
59715
59837
  }, void 0, priority)
59716
59838
  ]);
59717
- id1 && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id1, alias });
59718
- id22 && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id22, alias });
59839
+ let res = void 0;
59840
+ if (id1) {
59841
+ res = [id1];
59842
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id1, alias });
59843
+ }
59844
+ if (id22) {
59845
+ res ? res.push(id22) : res = [id22];
59846
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id22, alias });
59847
+ }
59848
+ return res;
59719
59849
  }
59720
59850
  function removeWithFadeTransition(alias, props = {}, priority) {
59721
59851
  return removeWithDissolveTransition(alias, props, priority);
59722
59852
  }
59723
59853
  async function moveIn(alias, image, props = {}, priority) {
59724
59854
  let direction = props.direction || "right";
59855
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
59725
59856
  let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
59726
59857
  tickerAliasToResume.push(alias);
59727
59858
  let canvasElement;
@@ -59762,10 +59893,15 @@ async function moveIn(alias, image, props = {}, priority) {
59762
59893
  let id3 = canvas.addTicker(alias, effect);
59763
59894
  if (id3) {
59764
59895
  canvas.putOnPauseTicker(alias, id3);
59896
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
59897
+ return [id3];
59765
59898
  }
59766
59899
  }
59767
59900
  function moveOut(alias, props = {}, priority) {
59768
59901
  let direction = props.direction || "right";
59902
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
59903
+ let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
59904
+ tickerAliasToResume.push(alias);
59769
59905
  let canvasElement = canvas.find(alias);
59770
59906
  if (!canvasElement) {
59771
59907
  console.warn("[Pixi\u2019VN] The canvas element is not found.");
@@ -59788,13 +59924,20 @@ function moveOut(alias, props = {}, priority) {
59788
59924
  }
59789
59925
  let effect = new MoveTicker({
59790
59926
  ...props,
59927
+ tickerAliasToResume,
59791
59928
  destination,
59792
59929
  startOnlyIfHaveTexture: true,
59793
59930
  aliasToRemoveAfter: alias
59794
59931
  }, void 0, priority);
59795
- canvas.addTicker(alias, effect);
59932
+ let id3 = canvas.addTicker(alias, effect);
59933
+ if (id3) {
59934
+ canvas.putOnPauseTicker(alias, id3);
59935
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
59936
+ return [id3];
59937
+ }
59796
59938
  }
59797
59939
  async function zoomIn(alias, image, props = { direction: "right" }, priority) {
59940
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
59798
59941
  let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
59799
59942
  tickerAliasToResume.push(alias);
59800
59943
  let canvasElement;
@@ -59807,7 +59950,9 @@ async function zoomIn(alias, image, props = { direction: "right" }, priority) {
59807
59950
  } else {
59808
59951
  canvasElement = image;
59809
59952
  }
59810
- canvas.copyCanvasElementProperty(alias, canvasElement);
59953
+ if (canvas.find(alias)) {
59954
+ canvas.copyCanvasElementProperty(alias, canvasElement);
59955
+ }
59811
59956
  let container = new CanvasContainer();
59812
59957
  container.addChild(canvasElement);
59813
59958
  container.height = canvas.canvasHeight;
@@ -59849,9 +59994,14 @@ async function zoomIn(alias, image, props = { direction: "right" }, priority) {
59849
59994
  let id3 = canvas.addTicker(alias, effect);
59850
59995
  if (id3) {
59851
59996
  canvas.putOnPauseTicker(alias, id3);
59997
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
59998
+ return [id3];
59852
59999
  }
59853
60000
  }
59854
60001
  function zoomOut(alias, props = { direction: "right" }, priority) {
60002
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
60003
+ let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
60004
+ tickerAliasToResume.push(alias);
59855
60005
  let canvasElement = canvas.find(alias);
59856
60006
  if (!canvasElement) {
59857
60007
  console.warn("[Pixi\u2019VN] The canvas element is not found.");
@@ -59886,13 +60036,116 @@ function zoomOut(alias, props = { direction: "right" }, priority) {
59886
60036
  container.scale.set(1);
59887
60037
  let effect = new ZoomTicker({
59888
60038
  ...props,
60039
+ tickerAliasToResume,
59889
60040
  startOnlyIfHaveTexture: true,
59890
60041
  type: "unzoom",
59891
60042
  limit: 0,
59892
60043
  aliasToRemoveAfter: alias,
59893
60044
  isZoomInOut: true
59894
60045
  }, void 0, priority);
59895
- canvas.addTicker(alias, effect);
60046
+ let id3 = canvas.addTicker(alias, effect);
60047
+ if (id3) {
60048
+ canvas.putOnPauseTicker(alias, id3);
60049
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
60050
+ return [id3];
60051
+ }
60052
+ }
60053
+ async function pushIn(alias, image, props = { direction: "right" }, priority) {
60054
+ let oldCanvasAlias = alias + "_temp_push";
60055
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
60056
+ let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
60057
+ tickerAliasToResume.push(alias);
60058
+ let canvasElement;
60059
+ if (typeof image === "string") {
60060
+ if (checkIfVideo(image)) {
60061
+ canvasElement = new CanvasVideo({}, image);
60062
+ } else {
60063
+ canvasElement = new CanvasImage({}, image);
60064
+ }
60065
+ } else {
60066
+ canvasElement = image;
60067
+ }
60068
+ let oldCanvas = canvas.find(alias);
60069
+ if (oldCanvas) {
60070
+ canvas.copyCanvasElementProperty(oldCanvas, canvasElement);
60071
+ canvas.editAlias(alias, oldCanvasAlias, { ignoreTickers: true });
60072
+ pushOut(oldCanvasAlias, props, priority);
60073
+ }
60074
+ let container = new CanvasContainer();
60075
+ container.height = canvas.canvasHeight;
60076
+ container.width = canvas.canvasWidth;
60077
+ container.addChild(canvasElement);
60078
+ canvas.add(alias, container, { ignoreOldStyle: true });
60079
+ if (canvasElement instanceof CanvasImage && canvasElement.texture?.label == "EMPTY") {
60080
+ await canvasElement.load();
60081
+ }
60082
+ if (props.direction == "up") {
60083
+ container.x = 0;
60084
+ container.y = -canvas.canvasHeight;
60085
+ } else if (props.direction == "down") {
60086
+ container.x = 0;
60087
+ container.y = canvas.canvasHeight;
60088
+ } else if (props.direction == "left") {
60089
+ container.x = canvas.canvasWidth;
60090
+ container.y = 0;
60091
+ } else if (props.direction == "right") {
60092
+ container.x = -canvas.canvasWidth;
60093
+ container.y = 0;
60094
+ }
60095
+ let effect = new MoveTicker({
60096
+ ...props,
60097
+ tickerAliasToResume,
60098
+ startOnlyIfHaveTexture: true,
60099
+ isPushInOut: true,
60100
+ destination: { x: 0, y: 0 }
60101
+ }, void 0, priority);
60102
+ let id3 = canvas.addTicker(alias, effect);
60103
+ if (id3) {
60104
+ canvas.putOnPauseTicker(alias, id3);
60105
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
60106
+ return [id3];
60107
+ }
60108
+ }
60109
+ function pushOut(alias, props = { direction: "right" }, priority) {
60110
+ let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
60111
+ let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
60112
+ tickerAliasToResume.push(alias);
60113
+ let canvasElement = canvas.find(alias);
60114
+ if (!canvasElement) {
60115
+ console.warn("[Pixi\u2019VN] The canvas element is not found.");
60116
+ return;
60117
+ }
60118
+ let container = new CanvasContainer();
60119
+ container.pivot.x = 0;
60120
+ container.pivot.y = 0;
60121
+ container.x = 0;
60122
+ container.y = 0;
60123
+ container.addChild(canvasElement);
60124
+ canvas.add(alias, container, { ignoreOldStyle: true });
60125
+ let destination = { x: 0, y: 0 };
60126
+ if (props.direction == "up") {
60127
+ destination.y = canvas.canvasHeight;
60128
+ } else if (props.direction == "down") {
60129
+ destination.y = -canvas.canvasHeight;
60130
+ } else if (props.direction == "left") {
60131
+ destination.x = -canvas.canvasWidth;
60132
+ } else if (props.direction == "right") {
60133
+ destination.x = canvas.canvasWidth;
60134
+ }
60135
+ let effect = new MoveTicker({
60136
+ ...props,
60137
+ tickerAliasToResume,
60138
+ startOnlyIfHaveTexture: true,
60139
+ destination,
60140
+ aliasToRemoveAfter: alias,
60141
+ isPushInOut: true
60142
+ }, void 0, priority);
60143
+ let id3 = canvas.addTicker(alias, effect);
60144
+ if (id3) {
60145
+ canvas.putOnPauseTicker(alias, id3);
60146
+ mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id3 });
60147
+ return [id3];
60148
+ }
59896
60149
  }
59897
60150
 
59898
60151
  // src/functions/flags-utility.ts
@@ -60137,6 +60390,7 @@ var NarrationManagerStatic = class _NarrationManagerStatic {
60137
60390
  canvas: {
60138
60391
  elementAliasesOrder: [],
60139
60392
  elements: {},
60393
+ stage: {},
60140
60394
  tickers: {},
60141
60395
  tickersSteps: {},
60142
60396
  tickersOnPause: {}
@@ -60716,8 +60970,10 @@ var NarrationManager = class {
60716
60970
  console.warn("[Pixi\u2019VN] stepSha not found");
60717
60971
  }
60718
60972
  try {
60973
+ if (NarrationManagerStatic.stepsRunning === 0) {
60974
+ canvas.forceCompletionOfReportedTickers();
60975
+ }
60719
60976
  NarrationManagerStatic.stepsRunning++;
60720
- canvas.forceCompletionOfReportedTickers();
60721
60977
  let result = await step(props);
60722
60978
  if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
60723
60979
  let choice = this.choiceMenuOptions[0];
@@ -62063,7 +62319,7 @@ var StoredClassModel = class {
62063
62319
  if (Object.keys(storageValue[this.id]).length === 0) {
62064
62320
  delete storageValue[this.id];
62065
62321
  }
62066
- storageValue.setVariable(this.categoryId, storageValue);
62322
+ storage.setVariable(this.categoryId, storageValue);
62067
62323
  }
62068
62324
  /**
62069
62325
  * Get a property from the storage.
@@ -62327,6 +62583,8 @@ var imagesAnimationsTest = newLabel(IMAGE_ANIMAIONS_TEST_LABEL, [
62327
62583
  new ChoiceMenuOption("Zoom", imagesZoomTest, {}),
62328
62584
  new ChoiceMenuOption("Move in/out", imagesMoveInOutTest, {}),
62329
62585
  new ChoiceMenuOption("Zoom in/out", imagesZoomInOutTest, {}),
62586
+ new ChoiceMenuOption("Push in/out", imagesPushInOutTest, {}),
62587
+ new ChoiceMenuOption("Shake", shakeStageTest, {}),
62330
62588
  new ChoiceMenuOption("Add same alias", imagesAddSameAliasTestLabel, {}),
62331
62589
  new ChoiceMenuOptionClose("Cancel", { closeCurrentLabel: true })
62332
62590
  ];
@@ -62659,6 +62917,44 @@ var imagesZoomInOutTest = newLabel("___pixi_vn_images_zoom_in_out_test___", [
62659
62917
  });
62660
62918
  }
62661
62919
  ]);
62920
+ var imagesPushInOutTest = newLabel("___pixi_vn_images_push_in_out_test___", [
62921
+ async () => {
62922
+ narration.dialogue = {
62923
+ character: juliette,
62924
+ text: `Here's what's going to happen:`
62925
+ };
62926
+ let eggHead = new CanvasImage({ x: 100, y: 100 }, eggHeadImage);
62927
+ let flowerTop = new CanvasImage({ x: 300, y: 100 }, flowerTopImage);
62928
+ let helmlok = new CanvasImage({ x: 100, y: 300 }, helmlokImage);
62929
+ let skully = new CanvasImage({ x: 300, y: 300 }, skullyImage);
62930
+ pushIn("eggHead", eggHead, { speed: 20, direction: "down" });
62931
+ pushIn("flowerTop", flowerTop, {
62932
+ speed: 3,
62933
+ direction: "left",
62934
+ speedProgression: { type: "exponential", percentage: 0.02 }
62935
+ });
62936
+ pushIn("helmlok", helmlok, { speed: 30, direction: "right" });
62937
+ pushIn("skully", skully, {
62938
+ speed: 3,
62939
+ direction: "up",
62940
+ speedProgression: { type: "exponential", percentage: 0.02 }
62941
+ });
62942
+ },
62943
+ async () => {
62944
+ pushOut("eggHead", {
62945
+ speed: 3,
62946
+ direction: "down",
62947
+ speedProgression: { type: "exponential", percentage: 0.02 }
62948
+ });
62949
+ pushOut("flowerTop", { speed: 30, direction: "left" });
62950
+ pushOut("helmlok", { speed: 10, direction: "right" });
62951
+ pushOut("skully", {
62952
+ speed: 3,
62953
+ direction: "up",
62954
+ speedProgression: { type: "exponential", percentage: 0.02 }
62955
+ });
62956
+ }
62957
+ ]);
62662
62958
  var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test___", [
62663
62959
  () => {
62664
62960
  narration.dialogue = {
@@ -62700,7 +62996,24 @@ var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test_
62700
62996
  async () => await showWithDissolveTransition("eggHead", helmlokImage),
62701
62997
  async () => await showWithFadeTransition("eggHead", skullyImage),
62702
62998
  async () => await moveIn("eggHead", eggHeadImage, { speed: 100 }),
62703
- async () => await zoomIn("eggHead", eggHeadImage)
62999
+ async () => await zoomIn("eggHead", eggHeadImage),
63000
+ async () => await pushIn("eggHead", eggHeadImage)
63001
+ ]);
63002
+ var shakeStageTest = newLabel("___pixi_vn_images_shake_stage_test___", [
63003
+ () => {
63004
+ narration.dialogue = {
63005
+ character: juliette,
63006
+ text: `Ok this is a test for the shake effect. The ${eggHeadName} will shake.`
63007
+ };
63008
+ shakeEffect("eggHead");
63009
+ },
63010
+ () => {
63011
+ narration.dialogue = {
63012
+ character: juliette,
63013
+ text: `Now the whole stage will shake.`
63014
+ };
63015
+ shakeEffect(CANVAS_APP_STAGE_ALIAS);
63016
+ }
62704
63017
  ]);
62705
63018
  // Annotate the CommonJS export names for ESM import in node:
62706
63019
  0 && (module.exports = {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  imagesAnimationsTest
3
- } from "../chunk-WJ5SUJTD.js";
4
- import "../chunk-UWXYEVOE.js";
5
- import "../chunk-3FJYYZOP.js";
3
+ } from "../chunk-GEWQS6GP.js";
4
+ import "../chunk-FM5SFYXO.js";
5
+ import "../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";