@drincs/pixi-vn 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/dist/TickerBase-CFEJHstJ.d.mts +73 -0
  2. package/dist/TickerBase-CjfyD6j5.d.ts +73 -0
  3. package/dist/classes/CanvasEvent.d.mts +24 -0
  4. package/dist/classes/CanvasEvent.d.ts +24 -0
  5. package/dist/classes/CanvasEvent.js +12 -0
  6. package/dist/classes/CanvasEvent.js.map +1 -0
  7. package/dist/classes/CanvasEvent.mjs +10 -0
  8. package/dist/classes/CanvasEvent.mjs.map +1 -0
  9. package/dist/classes/CharacterBaseModel.d.mts +90 -0
  10. package/dist/classes/CharacterBaseModel.d.ts +90 -0
  11. package/dist/classes/CharacterBaseModel.js +1529 -0
  12. package/dist/classes/CharacterBaseModel.js.map +1 -0
  13. package/dist/classes/CharacterBaseModel.mjs +1527 -0
  14. package/dist/classes/CharacterBaseModel.mjs.map +1 -0
  15. package/dist/classes/ChoiceMenuOptionLabel.d.mts +42 -0
  16. package/dist/classes/ChoiceMenuOptionLabel.d.ts +42 -0
  17. package/dist/classes/ChoiceMenuOptionLabel.js +19 -0
  18. package/dist/classes/ChoiceMenuOptionLabel.js.map +1 -0
  19. package/dist/classes/ChoiceMenuOptionLabel.mjs +17 -0
  20. package/dist/classes/ChoiceMenuOptionLabel.mjs.map +1 -0
  21. package/dist/classes/DialogueBaseModel.d.mts +58 -0
  22. package/dist/classes/DialogueBaseModel.d.ts +58 -0
  23. package/dist/classes/DialogueBaseModel.js +51 -0
  24. package/dist/classes/DialogueBaseModel.js.map +1 -0
  25. package/dist/classes/DialogueBaseModel.mjs +49 -0
  26. package/dist/classes/DialogueBaseModel.mjs.map +1 -0
  27. package/dist/classes/Label.d.mts +46 -0
  28. package/dist/classes/Label.d.ts +46 -0
  29. package/dist/classes/Label.js +41 -0
  30. package/dist/classes/Label.js.map +1 -0
  31. package/dist/classes/Label.mjs +39 -0
  32. package/dist/classes/Label.mjs.map +1 -0
  33. package/dist/classes/StoredClassModel.d.mts +55 -0
  34. package/dist/classes/StoredClassModel.d.ts +55 -0
  35. package/dist/classes/StoredClassModel.js +1470 -0
  36. package/dist/classes/StoredClassModel.js.map +1 -0
  37. package/dist/classes/StoredClassModel.mjs +1468 -0
  38. package/dist/classes/StoredClassModel.mjs.map +1 -0
  39. package/dist/classes/canvas/CanvasBase.d.mts +37 -0
  40. package/dist/classes/canvas/CanvasBase.d.ts +37 -0
  41. package/dist/classes/canvas/CanvasBase.js +23 -0
  42. package/dist/classes/canvas/CanvasBase.js.map +1 -0
  43. package/dist/classes/canvas/CanvasBase.mjs +21 -0
  44. package/dist/classes/canvas/CanvasBase.mjs.map +1 -0
  45. package/dist/classes/canvas/CanvasContainer.d.mts +30 -0
  46. package/dist/classes/canvas/CanvasContainer.d.ts +30 -0
  47. package/dist/classes/canvas/CanvasContainer.js +514 -0
  48. package/dist/classes/canvas/CanvasContainer.js.map +1 -0
  49. package/dist/classes/canvas/CanvasContainer.mjs +508 -0
  50. package/dist/classes/canvas/CanvasContainer.mjs.map +1 -0
  51. package/dist/classes/canvas/CanvasImage.d.mts +50 -0
  52. package/dist/classes/canvas/CanvasImage.d.ts +50 -0
  53. package/dist/classes/canvas/CanvasImage.js +326 -0
  54. package/dist/classes/canvas/CanvasImage.js.map +1 -0
  55. package/dist/classes/canvas/CanvasImage.mjs +324 -0
  56. package/dist/classes/canvas/CanvasImage.mjs.map +1 -0
  57. package/dist/classes/canvas/CanvasSprite.d.mts +90 -0
  58. package/dist/classes/canvas/CanvasSprite.d.ts +90 -0
  59. package/dist/classes/canvas/CanvasSprite.js +285 -0
  60. package/dist/classes/canvas/CanvasSprite.js.map +1 -0
  61. package/dist/classes/canvas/CanvasSprite.mjs +279 -0
  62. package/dist/classes/canvas/CanvasSprite.mjs.map +1 -0
  63. package/dist/classes/canvas/CanvasText.d.mts +79 -0
  64. package/dist/classes/canvas/CanvasText.d.ts +79 -0
  65. package/dist/classes/canvas/CanvasText.js +259 -0
  66. package/dist/classes/canvas/CanvasText.js.map +1 -0
  67. package/dist/classes/canvas/CanvasText.mjs +253 -0
  68. package/dist/classes/canvas/CanvasText.mjs.map +1 -0
  69. package/dist/classes/canvas/index.d.mts +15 -0
  70. package/dist/classes/canvas/index.d.ts +15 -0
  71. package/dist/classes/canvas/index.js +528 -0
  72. package/dist/classes/canvas/index.js.map +1 -0
  73. package/dist/classes/canvas/index.mjs +522 -0
  74. package/dist/classes/canvas/index.mjs.map +1 -0
  75. package/dist/classes/index.d.mts +14 -0
  76. package/dist/classes/index.d.ts +14 -0
  77. package/dist/classes/index.js +1633 -0
  78. package/dist/classes/index.js.map +1 -0
  79. package/dist/classes/index.mjs +1626 -0
  80. package/dist/classes/index.mjs.map +1 -0
  81. package/dist/classes/ticker/TickerBase.d.mts +3 -0
  82. package/dist/classes/ticker/TickerBase.d.ts +3 -0
  83. package/dist/classes/ticker/TickerBase.js +29 -0
  84. package/dist/classes/ticker/TickerBase.js.map +1 -0
  85. package/dist/classes/ticker/TickerBase.mjs +27 -0
  86. package/dist/classes/ticker/TickerBase.mjs.map +1 -0
  87. package/dist/classes/ticker/TickerFadeAlpha.d.mts +31 -0
  88. package/dist/classes/ticker/TickerFadeAlpha.d.ts +31 -0
  89. package/dist/classes/ticker/TickerFadeAlpha.js +1330 -0
  90. package/dist/classes/ticker/TickerFadeAlpha.js.map +1 -0
  91. package/dist/classes/ticker/TickerFadeAlpha.mjs +1328 -0
  92. package/dist/classes/ticker/TickerFadeAlpha.mjs.map +1 -0
  93. package/dist/classes/ticker/TickerMove.d.mts +29 -0
  94. package/dist/classes/ticker/TickerMove.d.ts +29 -0
  95. package/dist/classes/ticker/TickerMove.js +1328 -0
  96. package/dist/classes/ticker/TickerMove.js.map +1 -0
  97. package/dist/classes/ticker/TickerMove.mjs +1326 -0
  98. package/dist/classes/ticker/TickerMove.mjs.map +1 -0
  99. package/dist/classes/ticker/TickerRotate.d.mts +30 -0
  100. package/dist/classes/ticker/TickerRotate.d.ts +30 -0
  101. package/dist/classes/ticker/TickerRotate.js +1328 -0
  102. package/dist/classes/ticker/TickerRotate.js.map +1 -0
  103. package/dist/classes/ticker/TickerRotate.mjs +1326 -0
  104. package/dist/classes/ticker/TickerRotate.mjs.map +1 -0
  105. package/dist/classes/ticker/index.d.mts +10 -0
  106. package/dist/classes/ticker/index.d.ts +10 -0
  107. package/dist/classes/ticker/index.js +1330 -0
  108. package/dist/classes/ticker/index.js.map +1 -0
  109. package/dist/classes/ticker/index.mjs +1328 -0
  110. package/dist/classes/ticker/index.mjs.map +1 -0
  111. package/dist/constants.d.mts +3 -0
  112. package/dist/constants.d.ts +3 -0
  113. package/dist/constants.js +8 -0
  114. package/dist/constants.js.map +1 -0
  115. package/dist/constants.mjs +6 -0
  116. package/dist/constants.mjs.map +1 -0
  117. package/dist/decorators/CanvasElementDecorator.d.mts +18 -0
  118. package/dist/decorators/CanvasElementDecorator.d.ts +18 -0
  119. package/dist/decorators/CanvasElementDecorator.js +540 -0
  120. package/dist/decorators/CanvasElementDecorator.js.map +1 -0
  121. package/dist/decorators/CanvasElementDecorator.mjs +533 -0
  122. package/dist/decorators/CanvasElementDecorator.mjs.map +1 -0
  123. package/dist/decorators/CharacterDecorator.d.mts +39 -0
  124. package/dist/decorators/CharacterDecorator.d.ts +39 -0
  125. package/dist/decorators/CharacterDecorator.js +37 -0
  126. package/dist/decorators/CharacterDecorator.js.map +1 -0
  127. package/dist/decorators/CharacterDecorator.mjs +32 -0
  128. package/dist/decorators/CharacterDecorator.mjs.map +1 -0
  129. package/dist/decorators/EventDecorator.d.mts +35 -0
  130. package/dist/decorators/EventDecorator.d.ts +35 -0
  131. package/dist/decorators/EventDecorator.js +52 -0
  132. package/dist/decorators/EventDecorator.js.map +1 -0
  133. package/dist/decorators/EventDecorator.mjs +45 -0
  134. package/dist/decorators/EventDecorator.mjs.map +1 -0
  135. package/dist/decorators/LabelDecorator.d.mts +32 -0
  136. package/dist/decorators/LabelDecorator.d.ts +32 -0
  137. package/dist/decorators/LabelDecorator.js +56 -0
  138. package/dist/decorators/LabelDecorator.js.map +1 -0
  139. package/dist/decorators/LabelDecorator.mjs +49 -0
  140. package/dist/decorators/LabelDecorator.mjs.map +1 -0
  141. package/dist/decorators/TickerDecorator.d.mts +27 -0
  142. package/dist/decorators/TickerDecorator.d.ts +27 -0
  143. package/dist/decorators/TickerDecorator.js +36 -0
  144. package/dist/decorators/TickerDecorator.js.map +1 -0
  145. package/dist/decorators/TickerDecorator.mjs +30 -0
  146. package/dist/decorators/TickerDecorator.mjs.map +1 -0
  147. package/dist/decorators/index.d.mts +23 -0
  148. package/dist/decorators/index.d.ts +23 -0
  149. package/dist/decorators/index.js +100 -0
  150. package/dist/decorators/index.js.map +1 -0
  151. package/dist/decorators/index.mjs +92 -0
  152. package/dist/decorators/index.mjs.map +1 -0
  153. package/dist/enums/LabelRunModeEnum.d.mts +9 -0
  154. package/dist/enums/LabelRunModeEnum.d.ts +9 -0
  155. package/dist/enums/LabelRunModeEnum.js +12 -0
  156. package/dist/enums/LabelRunModeEnum.js.map +1 -0
  157. package/dist/enums/LabelRunModeEnum.mjs +10 -0
  158. package/dist/enums/LabelRunModeEnum.mjs.map +1 -0
  159. package/dist/enums/index.d.mts +1 -0
  160. package/dist/enums/index.d.ts +1 -0
  161. package/dist/enums/index.js +12 -0
  162. package/dist/enums/index.js.map +1 -0
  163. package/dist/enums/index.mjs +10 -0
  164. package/dist/enums/index.mjs.map +1 -0
  165. package/dist/functions/CanvasUtility.d.mts +25 -0
  166. package/dist/functions/CanvasUtility.d.ts +25 -0
  167. package/dist/functions/CanvasUtility.js +510 -0
  168. package/dist/functions/CanvasUtility.js.map +1 -0
  169. package/dist/functions/CanvasUtility.mjs +506 -0
  170. package/dist/functions/CanvasUtility.mjs.map +1 -0
  171. package/dist/functions/DialogueUtility.d.mts +72 -0
  172. package/dist/functions/DialogueUtility.d.ts +72 -0
  173. package/dist/functions/DialogueUtility.js +2189 -0
  174. package/dist/functions/DialogueUtility.js.map +1 -0
  175. package/dist/functions/DialogueUtility.mjs +2177 -0
  176. package/dist/functions/DialogueUtility.mjs.map +1 -0
  177. package/dist/functions/DiffUtility.d.mts +5 -0
  178. package/dist/functions/DiffUtility.d.ts +5 -0
  179. package/dist/functions/DiffUtility.js +57 -0
  180. package/dist/functions/DiffUtility.js.map +1 -0
  181. package/dist/functions/DiffUtility.mjs +55 -0
  182. package/dist/functions/DiffUtility.mjs.map +1 -0
  183. package/dist/functions/EasterEgg.d.mts +3 -0
  184. package/dist/functions/EasterEgg.d.ts +3 -0
  185. package/dist/functions/EasterEgg.js +16 -0
  186. package/dist/functions/EasterEgg.js.map +1 -0
  187. package/dist/functions/EasterEgg.mjs +14 -0
  188. package/dist/functions/EasterEgg.mjs.map +1 -0
  189. package/dist/functions/ErrorUtility.d.mts +24 -0
  190. package/dist/functions/ErrorUtility.d.ts +24 -0
  191. package/dist/functions/ErrorUtility.js +261 -0
  192. package/dist/functions/ErrorUtility.js.map +1 -0
  193. package/dist/functions/ErrorUtility.mjs +258 -0
  194. package/dist/functions/ErrorUtility.mjs.map +1 -0
  195. package/dist/functions/ExportUtility.d.mts +8 -0
  196. package/dist/functions/ExportUtility.d.ts +8 -0
  197. package/dist/functions/ExportUtility.js +16 -0
  198. package/dist/functions/ExportUtility.js.map +1 -0
  199. package/dist/functions/ExportUtility.mjs +14 -0
  200. package/dist/functions/ExportUtility.mjs.map +1 -0
  201. package/dist/functions/FlagsUtility.d.mts +14 -0
  202. package/dist/functions/FlagsUtility.d.ts +14 -0
  203. package/dist/functions/FlagsUtility.js +1436 -0
  204. package/dist/functions/FlagsUtility.js.map +1 -0
  205. package/dist/functions/FlagsUtility.mjs +1433 -0
  206. package/dist/functions/FlagsUtility.mjs.map +1 -0
  207. package/dist/functions/GameUtility.d.mts +6 -0
  208. package/dist/functions/GameUtility.d.ts +6 -0
  209. package/dist/functions/GameUtility.js +1335 -0
  210. package/dist/functions/GameUtility.js.map +1 -0
  211. package/dist/functions/GameUtility.mjs +1333 -0
  212. package/dist/functions/GameUtility.mjs.map +1 -0
  213. package/dist/functions/ImageUtility.d.mts +51 -0
  214. package/dist/functions/ImageUtility.d.ts +51 -0
  215. package/dist/functions/ImageUtility.js +1392 -0
  216. package/dist/functions/ImageUtility.js.map +1 -0
  217. package/dist/functions/ImageUtility.mjs +1387 -0
  218. package/dist/functions/ImageUtility.mjs.map +1 -0
  219. package/dist/functions/SavesUtility.d.mts +90 -0
  220. package/dist/functions/SavesUtility.d.ts +90 -0
  221. package/dist/functions/SavesUtility.js +2081 -0
  222. package/dist/functions/SavesUtility.js.map +1 -0
  223. package/dist/functions/SavesUtility.mjs +2071 -0
  224. package/dist/functions/SavesUtility.mjs.map +1 -0
  225. package/dist/functions/StepLabelUtility.d.mts +20 -0
  226. package/dist/functions/StepLabelUtility.d.ts +20 -0
  227. package/dist/functions/StepLabelUtility.js +21 -0
  228. package/dist/functions/StepLabelUtility.js.map +1 -0
  229. package/dist/functions/StepLabelUtility.mjs +14 -0
  230. package/dist/functions/StepLabelUtility.mjs.map +1 -0
  231. package/dist/functions/TextureUtility.d.mts +11 -0
  232. package/dist/functions/TextureUtility.d.ts +11 -0
  233. package/dist/functions/TextureUtility.js +78 -0
  234. package/dist/functions/TextureUtility.js.map +1 -0
  235. package/dist/functions/TextureUtility.mjs +75 -0
  236. package/dist/functions/TextureUtility.mjs.map +1 -0
  237. package/dist/functions/TickerUtility.d.mts +13 -0
  238. package/dist/functions/TickerUtility.d.ts +13 -0
  239. package/dist/functions/TickerUtility.js +33 -0
  240. package/dist/functions/TickerUtility.js.map +1 -0
  241. package/dist/functions/TickerUtility.mjs +31 -0
  242. package/dist/functions/TickerUtility.mjs.map +1 -0
  243. package/dist/functions/index.d.mts +41 -0
  244. package/dist/functions/index.d.ts +41 -0
  245. package/dist/functions/index.js +2313 -0
  246. package/dist/functions/index.js.map +1 -0
  247. package/dist/functions/index.mjs +2289 -0
  248. package/dist/functions/index.mjs.map +1 -0
  249. package/dist/index.d.mts +63 -1773
  250. package/dist/index.d.ts +63 -1773
  251. package/dist/index.js +89 -197
  252. package/dist/index.js.map +1 -1
  253. package/dist/index.mjs +16 -98
  254. package/dist/index.mjs.map +1 -1
  255. package/dist/interface/IClassWithArgsHistory.d.mts +25 -0
  256. package/dist/interface/IClassWithArgsHistory.d.ts +25 -0
  257. package/dist/interface/IClassWithArgsHistory.js +4 -0
  258. package/dist/interface/IClassWithArgsHistory.js.map +1 -0
  259. package/dist/interface/IClassWithArgsHistory.mjs +3 -0
  260. package/dist/interface/IClassWithArgsHistory.mjs.map +1 -0
  261. package/dist/interface/IDialogueHistory.d.mts +33 -0
  262. package/dist/interface/IDialogueHistory.d.ts +33 -0
  263. package/dist/interface/IDialogueHistory.js +4 -0
  264. package/dist/interface/IDialogueHistory.js.map +1 -0
  265. package/dist/interface/IDialogueHistory.mjs +3 -0
  266. package/dist/interface/IDialogueHistory.mjs.map +1 -0
  267. package/dist/interface/IHistoryStep.d.mts +75 -0
  268. package/dist/interface/IHistoryStep.d.ts +75 -0
  269. package/dist/interface/IHistoryStep.js +4 -0
  270. package/dist/interface/IHistoryStep.js.map +1 -0
  271. package/dist/interface/IHistoryStep.mjs +3 -0
  272. package/dist/interface/IHistoryStep.mjs.map +1 -0
  273. package/dist/interface/IOpenedLabel.d.mts +8 -0
  274. package/dist/interface/IOpenedLabel.d.ts +8 -0
  275. package/dist/interface/IOpenedLabel.js +4 -0
  276. package/dist/interface/IOpenedLabel.js.map +1 -0
  277. package/dist/interface/IOpenedLabel.mjs +3 -0
  278. package/dist/interface/IOpenedLabel.mjs.map +1 -0
  279. package/dist/interface/ISaveData.d.mts +33 -0
  280. package/dist/interface/ISaveData.d.ts +33 -0
  281. package/dist/interface/ISaveData.js +4 -0
  282. package/dist/interface/ISaveData.js.map +1 -0
  283. package/dist/interface/ISaveData.mjs +3 -0
  284. package/dist/interface/ISaveData.mjs.map +1 -0
  285. package/dist/interface/ITicker.d.mts +3 -0
  286. package/dist/interface/ITicker.d.ts +3 -0
  287. package/dist/interface/ITicker.js +4 -0
  288. package/dist/interface/ITicker.js.map +1 -0
  289. package/dist/interface/ITicker.mjs +3 -0
  290. package/dist/interface/ITicker.mjs.map +1 -0
  291. package/dist/interface/ITickersSteps.d.mts +31 -0
  292. package/dist/interface/ITickersSteps.d.ts +31 -0
  293. package/dist/interface/ITickersSteps.js +4 -0
  294. package/dist/interface/ITickersSteps.js.map +1 -0
  295. package/dist/interface/ITickersSteps.mjs +3 -0
  296. package/dist/interface/ITickersSteps.mjs.map +1 -0
  297. package/dist/interface/TickerProgrationType.d.mts +13 -0
  298. package/dist/interface/TickerProgrationType.d.ts +13 -0
  299. package/dist/interface/TickerProgrationType.js +4 -0
  300. package/dist/interface/TickerProgrationType.js.map +1 -0
  301. package/dist/interface/TickerProgrationType.mjs +3 -0
  302. package/dist/interface/TickerProgrationType.mjs.map +1 -0
  303. package/dist/interface/canvas/ICanvasBaseMemory.d.mts +8 -0
  304. package/dist/interface/canvas/ICanvasBaseMemory.d.ts +8 -0
  305. package/dist/interface/canvas/ICanvasBaseMemory.js +4 -0
  306. package/dist/interface/canvas/ICanvasBaseMemory.js.map +1 -0
  307. package/dist/interface/canvas/ICanvasBaseMemory.mjs +3 -0
  308. package/dist/interface/canvas/ICanvasBaseMemory.mjs.map +1 -0
  309. package/dist/interface/canvas/ICanvasContainerMemory.d.mts +11 -0
  310. package/dist/interface/canvas/ICanvasContainerMemory.d.ts +11 -0
  311. package/dist/interface/canvas/ICanvasContainerMemory.js +4 -0
  312. package/dist/interface/canvas/ICanvasContainerMemory.js.map +1 -0
  313. package/dist/interface/canvas/ICanvasContainerMemory.mjs +3 -0
  314. package/dist/interface/canvas/ICanvasContainerMemory.mjs.map +1 -0
  315. package/dist/interface/canvas/ICanvasImageMemory.d.mts +14 -0
  316. package/dist/interface/canvas/ICanvasImageMemory.d.ts +14 -0
  317. package/dist/interface/canvas/ICanvasImageMemory.js +4 -0
  318. package/dist/interface/canvas/ICanvasImageMemory.js.map +1 -0
  319. package/dist/interface/canvas/ICanvasImageMemory.mjs +3 -0
  320. package/dist/interface/canvas/ICanvasImageMemory.mjs.map +1 -0
  321. package/dist/interface/canvas/ICanvasSpriteMemory.d.mts +19 -0
  322. package/dist/interface/canvas/ICanvasSpriteMemory.d.ts +19 -0
  323. package/dist/interface/canvas/ICanvasSpriteMemory.js +4 -0
  324. package/dist/interface/canvas/ICanvasSpriteMemory.js.map +1 -0
  325. package/dist/interface/canvas/ICanvasSpriteMemory.mjs +3 -0
  326. package/dist/interface/canvas/ICanvasSpriteMemory.mjs.map +1 -0
  327. package/dist/interface/canvas/ICanvasTextTextMemory.d.mts +15 -0
  328. package/dist/interface/canvas/ICanvasTextTextMemory.d.ts +15 -0
  329. package/dist/interface/canvas/ICanvasTextTextMemory.js +4 -0
  330. package/dist/interface/canvas/ICanvasTextTextMemory.js.map +1 -0
  331. package/dist/interface/canvas/ICanvasTextTextMemory.mjs +3 -0
  332. package/dist/interface/canvas/ICanvasTextTextMemory.mjs.map +1 -0
  333. package/dist/interface/canvas/ITextureMemory.d.mts +8 -0
  334. package/dist/interface/canvas/ITextureMemory.d.ts +8 -0
  335. package/dist/interface/canvas/ITextureMemory.js +4 -0
  336. package/dist/interface/canvas/ITextureMemory.js.map +1 -0
  337. package/dist/interface/canvas/ITextureMemory.mjs +3 -0
  338. package/dist/interface/canvas/ITextureMemory.mjs.map +1 -0
  339. package/dist/interface/canvas/index.d.mts +8 -0
  340. package/dist/interface/canvas/index.d.ts +8 -0
  341. package/dist/interface/canvas/index.js +4 -0
  342. package/dist/interface/canvas/index.js.map +1 -0
  343. package/dist/interface/canvas/index.mjs +3 -0
  344. package/dist/interface/canvas/index.mjs.map +1 -0
  345. package/dist/interface/export/ExportedCanvas.d.mts +19 -0
  346. package/dist/interface/export/ExportedCanvas.d.ts +19 -0
  347. package/dist/interface/export/ExportedCanvas.js +4 -0
  348. package/dist/interface/export/ExportedCanvas.js.map +1 -0
  349. package/dist/interface/export/ExportedCanvas.mjs +3 -0
  350. package/dist/interface/export/ExportedCanvas.mjs.map +1 -0
  351. package/dist/interface/export/ExportedStep.d.mts +34 -0
  352. package/dist/interface/export/ExportedStep.d.ts +34 -0
  353. package/dist/interface/export/ExportedStep.js +4 -0
  354. package/dist/interface/export/ExportedStep.js.map +1 -0
  355. package/dist/interface/export/ExportedStep.mjs +3 -0
  356. package/dist/interface/export/ExportedStep.mjs.map +1 -0
  357. package/dist/interface/export/ExportedStorage.d.mts +10 -0
  358. package/dist/interface/export/ExportedStorage.d.ts +10 -0
  359. package/dist/interface/export/ExportedStorage.js +4 -0
  360. package/dist/interface/export/ExportedStorage.js.map +1 -0
  361. package/dist/interface/export/ExportedStorage.mjs +3 -0
  362. package/dist/interface/export/ExportedStorage.mjs.map +1 -0
  363. package/dist/interface/export/index.d.mts +23 -0
  364. package/dist/interface/export/index.d.ts +23 -0
  365. package/dist/interface/export/index.js +4 -0
  366. package/dist/interface/export/index.js.map +1 -0
  367. package/dist/interface/export/index.mjs +3 -0
  368. package/dist/interface/export/index.mjs.map +1 -0
  369. package/dist/interface/index.d.mts +29 -0
  370. package/dist/interface/index.d.ts +29 -0
  371. package/dist/interface/index.js +4 -0
  372. package/dist/interface/index.js.map +1 -0
  373. package/dist/interface/index.mjs +3 -0
  374. package/dist/interface/index.mjs.map +1 -0
  375. package/dist/managers/StepManager.d.mts +210 -0
  376. package/dist/managers/StepManager.d.ts +210 -0
  377. package/dist/managers/StepManager.js +2043 -0
  378. package/dist/managers/StepManager.js.map +1 -0
  379. package/dist/managers/StepManager.mjs +2037 -0
  380. package/dist/managers/StepManager.mjs.map +1 -0
  381. package/dist/managers/StorageManager.d.mts +45 -0
  382. package/dist/managers/StorageManager.d.ts +45 -0
  383. package/dist/managers/StorageManager.js +101 -0
  384. package/dist/managers/StorageManager.js.map +1 -0
  385. package/dist/managers/StorageManager.mjs +99 -0
  386. package/dist/managers/StorageManager.mjs.map +1 -0
  387. package/dist/managers/WindowManager.d.mts +265 -0
  388. package/dist/managers/WindowManager.d.ts +265 -0
  389. package/dist/managers/WindowManager.js +1142 -0
  390. package/dist/managers/WindowManager.js.map +1 -0
  391. package/dist/managers/WindowManager.mjs +1140 -0
  392. package/dist/managers/WindowManager.mjs.map +1 -0
  393. package/dist/managers/index.d.mts +30 -0
  394. package/dist/managers/index.d.ts +30 -0
  395. package/dist/managers/index.js +2049 -0
  396. package/dist/managers/index.js.map +1 -0
  397. package/dist/managers/index.mjs +2041 -0
  398. package/dist/managers/index.mjs.map +1 -0
  399. package/dist/override/StepLabelProps.d.mts +18 -0
  400. package/dist/override/StepLabelProps.d.ts +18 -0
  401. package/dist/override/StepLabelProps.js +4 -0
  402. package/dist/override/StepLabelProps.js.map +1 -0
  403. package/dist/override/StepLabelProps.mjs +3 -0
  404. package/dist/override/StepLabelProps.mjs.map +1 -0
  405. package/dist/override/StepLabelResult.d.mts +19 -0
  406. package/dist/override/StepLabelResult.d.ts +19 -0
  407. package/dist/override/StepLabelResult.js +4 -0
  408. package/dist/override/StepLabelResult.js.map +1 -0
  409. package/dist/override/StepLabelResult.mjs +3 -0
  410. package/dist/override/StepLabelResult.mjs.map +1 -0
  411. package/dist/override/index.d.mts +2 -0
  412. package/dist/override/index.d.ts +2 -0
  413. package/dist/override/index.js +4 -0
  414. package/dist/override/index.js.map +1 -0
  415. package/dist/override/index.mjs +3 -0
  416. package/dist/override/index.mjs.map +1 -0
  417. package/dist/types/CanvasElementTagType.d.mts +3 -0
  418. package/dist/types/CanvasElementTagType.d.ts +3 -0
  419. package/dist/types/CanvasElementTagType.js +4 -0
  420. package/dist/types/CanvasElementTagType.js.map +1 -0
  421. package/dist/types/CanvasElementTagType.mjs +3 -0
  422. package/dist/types/CanvasElementTagType.mjs.map +1 -0
  423. package/dist/types/CanvasEventNamesType.d.mts +6 -0
  424. package/dist/types/CanvasEventNamesType.d.ts +6 -0
  425. package/dist/types/CanvasEventNamesType.js +4 -0
  426. package/dist/types/CanvasEventNamesType.js.map +1 -0
  427. package/dist/types/CanvasEventNamesType.mjs +3 -0
  428. package/dist/types/CanvasEventNamesType.mjs.map +1 -0
  429. package/dist/types/ChoiceMenuOptionsType.d.mts +16 -0
  430. package/dist/types/ChoiceMenuOptionsType.d.ts +16 -0
  431. package/dist/types/ChoiceMenuOptionsType.js +4 -0
  432. package/dist/types/ChoiceMenuOptionsType.js.map +1 -0
  433. package/dist/types/ChoiceMenuOptionsType.mjs +3 -0
  434. package/dist/types/ChoiceMenuOptionsType.mjs.map +1 -0
  435. package/dist/types/EventIdType.d.mts +3 -0
  436. package/dist/types/EventIdType.d.ts +3 -0
  437. package/dist/types/EventIdType.js +4 -0
  438. package/dist/types/EventIdType.js.map +1 -0
  439. package/dist/types/EventIdType.mjs +3 -0
  440. package/dist/types/EventIdType.mjs.map +1 -0
  441. package/dist/types/LabelIdType.d.mts +7 -0
  442. package/dist/types/LabelIdType.d.ts +7 -0
  443. package/dist/types/LabelIdType.js +4 -0
  444. package/dist/types/LabelIdType.js.map +1 -0
  445. package/dist/types/LabelIdType.mjs +3 -0
  446. package/dist/types/LabelIdType.mjs.map +1 -0
  447. package/dist/types/PauseType.d.mts +8 -0
  448. package/dist/types/PauseType.d.ts +8 -0
  449. package/dist/types/PauseType.js +15 -0
  450. package/dist/types/PauseType.js.map +1 -0
  451. package/dist/types/PauseType.mjs +12 -0
  452. package/dist/types/PauseType.mjs.map +1 -0
  453. package/dist/types/RepeatType.d.mts +4 -0
  454. package/dist/types/RepeatType.d.ts +4 -0
  455. package/dist/types/RepeatType.js +8 -0
  456. package/dist/types/RepeatType.js.map +1 -0
  457. package/dist/types/RepeatType.mjs +6 -0
  458. package/dist/types/RepeatType.mjs.map +1 -0
  459. package/dist/types/StepHistoryDataType.d.mts +8 -0
  460. package/dist/types/StepHistoryDataType.d.ts +8 -0
  461. package/dist/types/StepHistoryDataType.js +4 -0
  462. package/dist/types/StepHistoryDataType.js.map +1 -0
  463. package/dist/types/StepHistoryDataType.mjs +3 -0
  464. package/dist/types/StepHistoryDataType.mjs.map +1 -0
  465. package/dist/types/StepLabelType.d.mts +11 -0
  466. package/dist/types/StepLabelType.d.ts +11 -0
  467. package/dist/types/StepLabelType.js +4 -0
  468. package/dist/types/StepLabelType.js.map +1 -0
  469. package/dist/types/StepLabelType.mjs +3 -0
  470. package/dist/types/StepLabelType.mjs.map +1 -0
  471. package/dist/types/StorageElementType.d.mts +10 -0
  472. package/dist/types/StorageElementType.d.ts +10 -0
  473. package/dist/types/StorageElementType.js +4 -0
  474. package/dist/types/StorageElementType.js.map +1 -0
  475. package/dist/types/StorageElementType.mjs +3 -0
  476. package/dist/types/StorageElementType.mjs.map +1 -0
  477. package/dist/types/TickerIdType.d.mts +7 -0
  478. package/dist/types/TickerIdType.d.ts +7 -0
  479. package/dist/types/TickerIdType.js +4 -0
  480. package/dist/types/TickerIdType.js.map +1 -0
  481. package/dist/types/TickerIdType.mjs +3 -0
  482. package/dist/types/TickerIdType.mjs.map +1 -0
  483. package/dist/types/index.d.mts +13 -0
  484. package/dist/types/index.d.ts +13 -0
  485. package/dist/types/index.js +19 -0
  486. package/dist/types/index.js.map +1 -0
  487. package/dist/types/index.mjs +15 -0
  488. package/dist/types/index.mjs.map +1 -0
  489. package/dist/types/ticker/TickerFadeAlphaProps.d.mts +26 -0
  490. package/dist/types/ticker/TickerFadeAlphaProps.d.ts +26 -0
  491. package/dist/types/ticker/TickerFadeAlphaProps.js +4 -0
  492. package/dist/types/ticker/TickerFadeAlphaProps.js.map +1 -0
  493. package/dist/types/ticker/TickerFadeAlphaProps.mjs +3 -0
  494. package/dist/types/ticker/TickerFadeAlphaProps.mjs.map +1 -0
  495. package/dist/types/ticker/TickerMoveProps.d.mts +26 -0
  496. package/dist/types/ticker/TickerMoveProps.d.ts +26 -0
  497. package/dist/types/ticker/TickerMoveProps.js +4 -0
  498. package/dist/types/ticker/TickerMoveProps.js.map +1 -0
  499. package/dist/types/ticker/TickerMoveProps.mjs +3 -0
  500. package/dist/types/ticker/TickerMoveProps.mjs.map +1 -0
  501. package/dist/types/ticker/TickerRotateProps.d.mts +24 -0
  502. package/dist/types/ticker/TickerRotateProps.d.ts +24 -0
  503. package/dist/types/ticker/TickerRotateProps.js +4 -0
  504. package/dist/types/ticker/TickerRotateProps.js.map +1 -0
  505. package/dist/types/ticker/TickerRotateProps.mjs +3 -0
  506. package/dist/types/ticker/TickerRotateProps.mjs.map +1 -0
  507. package/dist/types/ticker/index.d.mts +3 -0
  508. package/dist/types/ticker/index.d.ts +3 -0
  509. package/dist/types/ticker/index.js +4 -0
  510. package/dist/types/ticker/index.js.map +1 -0
  511. package/dist/types/ticker/index.mjs +3 -0
  512. package/dist/types/ticker/index.mjs.map +1 -0
  513. package/package.json +2 -1
@@ -0,0 +1,99 @@
1
+ // src/functions/ExportUtility.ts
2
+ function createExportableElement(element) {
3
+ try {
4
+ let elementString = JSON.stringify(element);
5
+ return JSON.parse(elementString);
6
+ } catch (e) {
7
+ console.error("[Pixi'VN] Error creating exportable element", e);
8
+ throw new Error("[Pixi'VN] Error creating exportable element");
9
+ }
10
+ }
11
+
12
+ // src/managers/StorageManager.ts
13
+ var _GameStorageManager = class _GameStorageManager {
14
+ constructor() {
15
+ }
16
+ static get keysSystem() {
17
+ return {
18
+ CURRENT_DIALOGUE_MEMORY_KEY: "___current_dialogue_memory___",
19
+ LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY: "___last_dialogue_added_in_step_memory___",
20
+ CURRENT_MENU_OPTIONS_MEMORY_KEY: "___current_menu_options_memory___",
21
+ LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY: "___last_menu_options_added_in_step_memory___",
22
+ CHARACTER_CATEGORY_KEY: "___character___",
23
+ FLAGS_CATEGORY_KEY: "___flags___"
24
+ };
25
+ }
26
+ /**
27
+ * Set a variable in the storage
28
+ * @param key The key of the variable
29
+ * @param value The value of the variable. If undefined, the variable will be removed
30
+ * @returns
31
+ */
32
+ static setVariable(key, value) {
33
+ key = key.toLowerCase();
34
+ if (value === void 0 || value === null) {
35
+ if (_GameStorageManager.storage.hasOwnProperty(key)) {
36
+ delete _GameStorageManager.storage[key];
37
+ }
38
+ return;
39
+ }
40
+ _GameStorageManager.storage[key] = value;
41
+ }
42
+ /**
43
+ * Get a variable from the storage
44
+ * @param key The key of the variable
45
+ * @returns The value of the variable. If the variable does not exist, it will return undefined
46
+ */
47
+ static getVariable(key) {
48
+ key = key.toLowerCase();
49
+ if (_GameStorageManager.storage.hasOwnProperty(key)) {
50
+ return _GameStorageManager.storage[key];
51
+ }
52
+ return void 0;
53
+ }
54
+ /**
55
+ * Remove a variable from the storage
56
+ * @param key The key of the variable
57
+ * @returns
58
+ */
59
+ static removeVariable(key) {
60
+ key = key.toLowerCase();
61
+ if (_GameStorageManager.storage.hasOwnProperty(key)) {
62
+ delete _GameStorageManager.storage[key];
63
+ }
64
+ }
65
+ /**
66
+ * Clear the storage and the oidsUsed
67
+ * @returns
68
+ */
69
+ static clear() {
70
+ _GameStorageManager.storage = {};
71
+ }
72
+ static exportJson() {
73
+ return JSON.stringify(this.export());
74
+ }
75
+ static export() {
76
+ return createExportableElement(_GameStorageManager.storage);
77
+ }
78
+ static importJson(dataString) {
79
+ _GameStorageManager.import(JSON.parse(dataString));
80
+ }
81
+ static import(data) {
82
+ _GameStorageManager.clear();
83
+ try {
84
+ if (data) {
85
+ _GameStorageManager.storage = data;
86
+ } else {
87
+ console.warn("[Pixi'VN] No storage data found");
88
+ }
89
+ } catch (e) {
90
+ console.error("[Pixi'VN] Error importing data", e);
91
+ }
92
+ }
93
+ };
94
+ _GameStorageManager.storage = {};
95
+ var GameStorageManager = _GameStorageManager;
96
+
97
+ export { GameStorageManager as default };
98
+ //# sourceMappingURL=out.js.map
99
+ //# sourceMappingURL=StorageManager.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/functions/ExportUtility.ts","../../src/managers/StorageManager.ts"],"names":[],"mappings":";AAKO,SAAS,wBAA2B,SAAe;AACtD,MAAI;AACA,QAAI,gBAAgB,KAAK,UAAU,OAAO;AAC1C,WAAO,KAAK,MAAM,aAAa;AAAA,EACnC,SACO,GAAG;AACN,YAAQ,MAAM,+CAA+C,CAAC;AAC9D,UAAM,IAAI,MAAM,6CAA6C;AAAA,EACjE;AACJ;;;ACVA,IAAqB,sBAArB,MAAqB,oBAAmB;AAAA,EAE5B,cAAc;AAAA,EAAE;AAAA,EACxB,WAAkB,aAAa;AAC3B,WAAO;AAAA,MACH,6BAA6B;AAAA,MAC7B,wCAAwC;AAAA,MACxC,iCAAiC;AAAA,MACjC,4CAA4C;AAAA,MAC5C,wBAAwB;AAAA,MACxB,oBAAoB;AAAA,IACxB;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAc,YAAY,KAAa,OAA2B;AAC9D,UAAM,IAAI,YAAY;AACtB,QAAI,UAAU,UAAa,UAAU,MAAM;AACvC,UAAI,oBAAmB,QAAQ,eAAe,GAAG,GAAG;AAChD,eAAO,oBAAmB,QAAQ,GAAG;AAAA,MACzC;AACA;AAAA,IACJ;AACA,wBAAmB,QAAQ,GAAG,IAAI;AAAA,EACtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAc,YAA0C,KAA4B;AAChF,UAAM,IAAI,YAAY;AACtB,QAAI,oBAAmB,QAAQ,eAAe,GAAG,GAAG;AAChD,aAAO,oBAAmB,QAAQ,GAAG;AAAA,IACzC;AACA,WAAO;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAc,eAAe,KAAa;AACtC,UAAM,IAAI,YAAY;AACtB,QAAI,oBAAmB,QAAQ,eAAe,GAAG,GAAG;AAChD,aAAO,oBAAmB,QAAQ,GAAG;AAAA,IACzC;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAc,QAAQ;AAClB,wBAAmB,UAAU,CAAC;AAAA,EAClC;AAAA,EACA,OAAc,aAAqB;AAC/B,WAAO,KAAK,UAAU,KAAK,OAAO,CAAC;AAAA,EACvC;AAAA,EACA,OAAc,SAA0B;AACpC,WAAO,wBAAwB,oBAAmB,OAAO;AAAA,EAC7D;AAAA,EACA,OAAc,WAAW,YAAoB;AACzC,wBAAmB,OAAO,KAAK,MAAM,UAAU,CAAC;AAAA,EACpD;AAAA,EACA,OAAc,OAAO,MAAc;AAC/B,wBAAmB,MAAM;AACzB,QAAI;AACA,UAAI,MAAM;AACN,4BAAmB,UAAW;AAAA,MAClC,OACK;AACD,gBAAQ,KAAK,iCAAiC;AAAA,MAClD;AAAA,IACJ,SACO,GAAG;AACN,cAAQ,MAAM,kCAAkC,CAAC;AAAA,IACrD;AAAA,EACJ;AACJ;AAlFqB,oBACF,UAAiD,CAAC;AADrE,IAAqB,qBAArB","sourcesContent":["/**\n * This function is used to create a deep copy of the element\n * @param element The element to be copied\n * @returns The copied element\n */\nexport function createExportableElement<T>(element: T): T {\n try {\n let elementString = JSON.stringify(element)\n return JSON.parse(elementString)\n }\n catch (e) {\n console.error(\"[Pixi'VN] Error creating exportable element\", e)\n throw new Error(\"[Pixi'VN] Error creating exportable element\")\n }\n}\n","import { createExportableElement } from \"../functions/ExportUtility\"\nimport { ExportedStorage } from \"../interface/export\"\nimport { StorageElementType } from \"../types/StorageElementType\"\n\nexport default class GameStorageManager {\n private static storage: { [key: string]: StorageElementType } = {}\n private constructor() { }\n public static get keysSystem() {\n return {\n CURRENT_DIALOGUE_MEMORY_KEY: \"___current_dialogue_memory___\",\n LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY: \"___last_dialogue_added_in_step_memory___\",\n CURRENT_MENU_OPTIONS_MEMORY_KEY: \"___current_menu_options_memory___\",\n LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY: \"___last_menu_options_added_in_step_memory___\",\n CHARACTER_CATEGORY_KEY: \"___character___\",\n FLAGS_CATEGORY_KEY: \"___flags___\",\n }\n }\n /**\n * Set a variable in the storage\n * @param key The key of the variable\n * @param value The value of the variable. If undefined, the variable will be removed\n * @returns\n */\n public static setVariable(key: string, value: StorageElementType) {\n key = key.toLowerCase()\n if (value === undefined || value === null) {\n if (GameStorageManager.storage.hasOwnProperty(key)) {\n delete GameStorageManager.storage[key]\n }\n return\n }\n GameStorageManager.storage[key] = value\n }\n /**\n * Get a variable from the storage\n * @param key The key of the variable\n * @returns The value of the variable. If the variable does not exist, it will return undefined\n */\n public static getVariable<T extends StorageElementType>(key: string): T | undefined {\n key = key.toLowerCase()\n if (GameStorageManager.storage.hasOwnProperty(key)) {\n return GameStorageManager.storage[key] as T\n }\n return undefined\n }\n /**\n * Remove a variable from the storage\n * @param key The key of the variable\n * @returns\n */\n public static removeVariable(key: string) {\n key = key.toLowerCase()\n if (GameStorageManager.storage.hasOwnProperty(key)) {\n delete GameStorageManager.storage[key]\n }\n }\n /**\n * Clear the storage and the oidsUsed\n * @returns\n */\n public static clear() {\n GameStorageManager.storage = {}\n }\n public static exportJson(): string {\n return JSON.stringify(this.export())\n }\n public static export(): ExportedStorage {\n return createExportableElement(GameStorageManager.storage)\n }\n public static importJson(dataString: string) {\n GameStorageManager.import(JSON.parse(dataString))\n }\n public static import(data: object) {\n GameStorageManager.clear()\n try {\n if (data) {\n GameStorageManager.storage = (data as ExportedStorage)\n }\n else {\n console.warn(\"[Pixi'VN] No storage data found\")\n }\n }\n catch (e) {\n console.error(\"[Pixi'VN] Error importing data\", e)\n }\n }\n}\n"]}
@@ -0,0 +1,265 @@
1
+ import * as pixi_js from 'pixi.js';
2
+ import { Application, ApplicationOptions, Container } from 'pixi.js';
3
+ import CanvasBase from '../classes/canvas/CanvasBase.mjs';
4
+ import { a as TickerArgsType, T as TickerBase, I as ITicker } from '../TickerBase-CFEJHstJ.mjs';
5
+ import { IClassWithArgsHistory } from '../interface/IClassWithArgsHistory.mjs';
6
+ import { PauseType } from '../types/PauseType.mjs';
7
+ import { RepeatType } from '../types/RepeatType.mjs';
8
+ import ExportedCanvas from '../interface/export/ExportedCanvas.mjs';
9
+ import ITickersSteps from '../interface/ITickersSteps.mjs';
10
+ import '../interface/canvas/ICanvasBaseMemory.mjs';
11
+ import '../types/StorageElementType.mjs';
12
+ import '../types/TickerIdType.mjs';
13
+
14
+ /**
15
+ * This class is responsible for managing the canvas, the tickers, the events, and the window size and the children of the window.
16
+ */
17
+ declare class GameWindowManager {
18
+ private constructor();
19
+ private static _app;
20
+ /**
21
+ * The PIXI Application instance.
22
+ * It not recommended to use this property directly.
23
+ */
24
+ static get app(): Application<pixi_js.Renderer>;
25
+ private static _isInitialized;
26
+ /**
27
+ * If the manager is initialized.
28
+ */
29
+ static get isInitialized(): boolean;
30
+ /**
31
+ * This is the div that have same size of the canvas.
32
+ * This is useful to put interface elements.
33
+ * You can use React or other framework to put elements in this div.
34
+ */
35
+ static htmlLayout: HTMLElement;
36
+ static canvasWidth: number;
37
+ static canvasHeight: number;
38
+ static get screen(): pixi_js.Rectangle;
39
+ /**
40
+ * Initialize the PIXI Application and the interface div.
41
+ * This method should be called before any other method.
42
+ * @param element The html element where I will put the canvas. Example: document.body
43
+ * @param width The width of the canvas
44
+ * @param height The height of the canvas
45
+ * @param options The options of PIXI Application
46
+ * @example
47
+ * ```typescript
48
+ * const body = document.body
49
+ * if (!body) {
50
+ * throw new Error('body element not found')
51
+ * }
52
+ * await GameWindowManager.initialize(body, 1920, 1080, {
53
+ * backgroundColor: "#303030"
54
+ * })
55
+ * ```
56
+ */
57
+ static initialize(element: HTMLElement, width: number, height: number, options?: Partial<ApplicationOptions>): Promise<void>;
58
+ /**
59
+ * Add the canvas into a html element.
60
+ * @param element it is the html element where I will put the canvas. Example: document.body
61
+ */
62
+ private static addCanvasIntoElement;
63
+ /**
64
+ * Initialize the interface div and add it into a html element.
65
+ * @param element it is the html element where I will put the interface div. Example: document.getElementById('root')
66
+ * @example
67
+ * ```typescript
68
+ * const root = document.getElementById('root')
69
+ * if (!root) {
70
+ * throw new Error('root element not found')
71
+ * }
72
+ * GameWindowManager.initializeHTMLLayout(root)
73
+ * const reactRoot = createRoot(GameWindowManager.htmlLayout)
74
+ * reactRoot.render(
75
+ * <App />
76
+ * )
77
+ * ```
78
+ */
79
+ static initializeHTMLLayout(element: HTMLElement): void;
80
+ /**
81
+ * This method returns the scale of the screen.
82
+ */
83
+ static get screenScale(): number;
84
+ /**
85
+ * This method returns the width of the screen enlarged by the scale.
86
+ */
87
+ static get screenWidth(): number;
88
+ /**
89
+ * This method returns the height of the screen enlarged by the scale.
90
+ */
91
+ static get screenHeight(): number;
92
+ /**
93
+ * This method returns the horizontal margin of the screen.
94
+ */
95
+ static get horizontalMargin(): number;
96
+ /**
97
+ * This method returns the vertical margin of the screen.
98
+ */
99
+ static get verticalMargin(): number;
100
+ /**
101
+ * This method is called when the screen is resized.
102
+ */
103
+ private static resize;
104
+ /**
105
+ * This is a dictionary that contains all Canvas Elements of Canvas, currently.
106
+ */
107
+ static get currentCanvasElements(): {
108
+ [tag: string]: CanvasBase<any>;
109
+ };
110
+ private static _children;
111
+ /**
112
+ * The order of the children tags.
113
+ */
114
+ private static childrenTagsOrder;
115
+ /**
116
+ * Add a canvas element to the canvas.
117
+ * If there is a canvas element with the same tag, it will be removed.
118
+ * @param tag The tag of the canvas element.
119
+ * @param canvasElement The canvas elements to be added.
120
+ * @example
121
+ * ```typescript
122
+ * const texture = await Assets.load('https://pixijs.com/assets/bunny.png');
123
+ * const sprite = CanvasSprite.from(texture);
124
+ * GameWindowManager.addCanvasElement("bunny", sprite);
125
+ * ```
126
+ */
127
+ static addCanvasElement(tag: string, canvasElement: CanvasBase<any>): void;
128
+ /**
129
+ * Remove a canvas element from the canvas.
130
+ * And remove all tickers that are not connected to any canvas element.
131
+ * @param tag The tag of the canvas element to be removed.
132
+ * @returns
133
+ * @example
134
+ * ```typescript
135
+ * GameWindowManager.removeCanvasElement("bunny");
136
+ * ```
137
+ */
138
+ static removeCanvasElement(tag: string | string[]): void;
139
+ /**
140
+ * Get a canvas element by the tag.
141
+ * @param tag The tag of the canvas element.
142
+ * @returns The canvas element.
143
+ * @example
144
+ * ```typescript
145
+ * const sprite = GameWindowManager.getCanvasElement<CanvasSprite>("bunny");
146
+ * ```
147
+ */
148
+ static getCanvasElement<T extends CanvasBase<any>>(tag: string): T | undefined;
149
+ /**
150
+ * Check if a DisplayObject is on the canvas.
151
+ * @param pixiElement The DisplayObject to be checked.
152
+ * @returns If the DisplayObject is on the canvas.
153
+ */
154
+ static canvasElementIsOnCanvas<T extends Container>(pixiElement: T): boolean;
155
+ /**
156
+ * Remove all canvas elements from the canvas.
157
+ * And remove all tickers that are not connected to any canvas element.
158
+ */
159
+ static removeCanvasElements(): void;
160
+ /**
161
+ * Edit the tag of a canvas element.
162
+ * @param oldTag The old tag of the canvas element.
163
+ * @param newTag The new tag of the canvas element.
164
+ */
165
+ static editTagCanvasElement(oldTag: string, newTag: string): void;
166
+ /** Edit Tickers Methods */
167
+ /**
168
+ * Currently tickers that are running.
169
+ */
170
+ static get currentTickers(): IClassWithArgsHistory<any>[];
171
+ private static _currentTickers;
172
+ /**
173
+ * The steps of the tickers
174
+ */
175
+ static get currentTickersSteps(): {
176
+ [tag: string]: ITickersSteps;
177
+ };
178
+ private static _currentTickersSteps;
179
+ static currentTickersTimeouts: {
180
+ [timeout: string]: {
181
+ tags: string[];
182
+ ticker: string;
183
+ };
184
+ };
185
+ /**
186
+ * Run a ticker.
187
+ * @param canvasEslementTag The tag of the canvas element that will use the ticker.
188
+ * @param ticker The ticker class to be run.
189
+ * @param args The arguments to be used in the ticker.
190
+ * @param duration The time to be used in the ticker. This number is in milliseconds. If it is undefined, the ticker will run forever.
191
+ * @param priority The priority to be used in the ticker.
192
+ * @returns
193
+ * @example
194
+ * ```typescript
195
+ * GameWindowManager.addTicker("alien", new TickerRotate({ speed: 0.2 }))
196
+ * ```
197
+ */
198
+ static addTicker<TArgs extends TickerArgsType>(canvasElementTag: string | string[], ticker: TickerBase<TArgs>): void;
199
+ private static pushTicker;
200
+ /**
201
+ * Run a sequence of tickers.
202
+ * @param tag The tag of canvas element that will use the tickers.
203
+ * @param steps The steps of the tickers.
204
+ * @returns
205
+ * @example
206
+ * ```typescript
207
+ * GameWindowManager.addTickersSteps("alien", [
208
+ * new TickerRotate({ speed: 0.1, clockwise: true }, 2000),
209
+ * Pause(500),
210
+ * new TickerRotate({ speed: 0.2, clockwise: false }, 2000),
211
+ * Repeat,
212
+ * ])
213
+ * ```
214
+ */
215
+ static addTickersSteps<TArgs extends TickerArgsType>(tag: string, steps: (ITicker<TArgs> | RepeatType | PauseType)[]): void;
216
+ private static runTickersSteps;
217
+ private static nextTickerStep;
218
+ /**
219
+ * Remove a connection between a canvas element and a ticker.
220
+ * And remove the ticker if there is no canvas element connected to it.
221
+ * @param tag The tag of the canvas element that will use the ticker.
222
+ * @param ticker The ticker class to be removed.
223
+ * @example
224
+ * ```typescript
225
+ * GameWindowManager.removeAssociationBetweenTickerCanvasElement("alien", TickerRotate)
226
+ * ```
227
+ */
228
+ static removeAssociationBetweenTickerCanvasElement(tag: string | string[], ticker: typeof TickerBase<any> | TickerBase<any>): void;
229
+ /**
230
+ * Remove all tickers that are not connected to any existing canvas element.
231
+ */
232
+ private static removeTickersWithoutAssociatedCanvasElement;
233
+ private static addTickerTimeoutInfo;
234
+ private static removeTickerTimeoutInfo;
235
+ /**
236
+ * Remove all tickers from the canvas.
237
+ */
238
+ static removeTickers(): void;
239
+ /**
240
+ * Clear the canvas and the tickers.
241
+ */
242
+ static clear(): void;
243
+ /**
244
+ * Export the canvas and the tickers to a JSON string.
245
+ * @returns The JSON string.
246
+ */
247
+ static exportJson(): string;
248
+ /**
249
+ * Export the canvas and the tickers to an object.
250
+ * @returns The object.
251
+ */
252
+ static export(): ExportedCanvas;
253
+ /**
254
+ * Import the canvas and the tickers from a JSON string.
255
+ * @param dataString The JSON string.
256
+ */
257
+ static importJson(dataString: string): void;
258
+ /**
259
+ * Import the canvas and the tickers from an object.
260
+ * @param data The object.
261
+ */
262
+ static import(data: object): void;
263
+ }
264
+
265
+ export { GameWindowManager as default };
@@ -0,0 +1,265 @@
1
+ import * as pixi_js from 'pixi.js';
2
+ import { Application, ApplicationOptions, Container } from 'pixi.js';
3
+ import CanvasBase from '../classes/canvas/CanvasBase.js';
4
+ import { a as TickerArgsType, T as TickerBase, I as ITicker } from '../TickerBase-CjfyD6j5.js';
5
+ import { IClassWithArgsHistory } from '../interface/IClassWithArgsHistory.js';
6
+ import { PauseType } from '../types/PauseType.js';
7
+ import { RepeatType } from '../types/RepeatType.js';
8
+ import ExportedCanvas from '../interface/export/ExportedCanvas.js';
9
+ import ITickersSteps from '../interface/ITickersSteps.js';
10
+ import '../interface/canvas/ICanvasBaseMemory.js';
11
+ import '../types/StorageElementType.js';
12
+ import '../types/TickerIdType.js';
13
+
14
+ /**
15
+ * This class is responsible for managing the canvas, the tickers, the events, and the window size and the children of the window.
16
+ */
17
+ declare class GameWindowManager {
18
+ private constructor();
19
+ private static _app;
20
+ /**
21
+ * The PIXI Application instance.
22
+ * It not recommended to use this property directly.
23
+ */
24
+ static get app(): Application<pixi_js.Renderer>;
25
+ private static _isInitialized;
26
+ /**
27
+ * If the manager is initialized.
28
+ */
29
+ static get isInitialized(): boolean;
30
+ /**
31
+ * This is the div that have same size of the canvas.
32
+ * This is useful to put interface elements.
33
+ * You can use React or other framework to put elements in this div.
34
+ */
35
+ static htmlLayout: HTMLElement;
36
+ static canvasWidth: number;
37
+ static canvasHeight: number;
38
+ static get screen(): pixi_js.Rectangle;
39
+ /**
40
+ * Initialize the PIXI Application and the interface div.
41
+ * This method should be called before any other method.
42
+ * @param element The html element where I will put the canvas. Example: document.body
43
+ * @param width The width of the canvas
44
+ * @param height The height of the canvas
45
+ * @param options The options of PIXI Application
46
+ * @example
47
+ * ```typescript
48
+ * const body = document.body
49
+ * if (!body) {
50
+ * throw new Error('body element not found')
51
+ * }
52
+ * await GameWindowManager.initialize(body, 1920, 1080, {
53
+ * backgroundColor: "#303030"
54
+ * })
55
+ * ```
56
+ */
57
+ static initialize(element: HTMLElement, width: number, height: number, options?: Partial<ApplicationOptions>): Promise<void>;
58
+ /**
59
+ * Add the canvas into a html element.
60
+ * @param element it is the html element where I will put the canvas. Example: document.body
61
+ */
62
+ private static addCanvasIntoElement;
63
+ /**
64
+ * Initialize the interface div and add it into a html element.
65
+ * @param element it is the html element where I will put the interface div. Example: document.getElementById('root')
66
+ * @example
67
+ * ```typescript
68
+ * const root = document.getElementById('root')
69
+ * if (!root) {
70
+ * throw new Error('root element not found')
71
+ * }
72
+ * GameWindowManager.initializeHTMLLayout(root)
73
+ * const reactRoot = createRoot(GameWindowManager.htmlLayout)
74
+ * reactRoot.render(
75
+ * <App />
76
+ * )
77
+ * ```
78
+ */
79
+ static initializeHTMLLayout(element: HTMLElement): void;
80
+ /**
81
+ * This method returns the scale of the screen.
82
+ */
83
+ static get screenScale(): number;
84
+ /**
85
+ * This method returns the width of the screen enlarged by the scale.
86
+ */
87
+ static get screenWidth(): number;
88
+ /**
89
+ * This method returns the height of the screen enlarged by the scale.
90
+ */
91
+ static get screenHeight(): number;
92
+ /**
93
+ * This method returns the horizontal margin of the screen.
94
+ */
95
+ static get horizontalMargin(): number;
96
+ /**
97
+ * This method returns the vertical margin of the screen.
98
+ */
99
+ static get verticalMargin(): number;
100
+ /**
101
+ * This method is called when the screen is resized.
102
+ */
103
+ private static resize;
104
+ /**
105
+ * This is a dictionary that contains all Canvas Elements of Canvas, currently.
106
+ */
107
+ static get currentCanvasElements(): {
108
+ [tag: string]: CanvasBase<any>;
109
+ };
110
+ private static _children;
111
+ /**
112
+ * The order of the children tags.
113
+ */
114
+ private static childrenTagsOrder;
115
+ /**
116
+ * Add a canvas element to the canvas.
117
+ * If there is a canvas element with the same tag, it will be removed.
118
+ * @param tag The tag of the canvas element.
119
+ * @param canvasElement The canvas elements to be added.
120
+ * @example
121
+ * ```typescript
122
+ * const texture = await Assets.load('https://pixijs.com/assets/bunny.png');
123
+ * const sprite = CanvasSprite.from(texture);
124
+ * GameWindowManager.addCanvasElement("bunny", sprite);
125
+ * ```
126
+ */
127
+ static addCanvasElement(tag: string, canvasElement: CanvasBase<any>): void;
128
+ /**
129
+ * Remove a canvas element from the canvas.
130
+ * And remove all tickers that are not connected to any canvas element.
131
+ * @param tag The tag of the canvas element to be removed.
132
+ * @returns
133
+ * @example
134
+ * ```typescript
135
+ * GameWindowManager.removeCanvasElement("bunny");
136
+ * ```
137
+ */
138
+ static removeCanvasElement(tag: string | string[]): void;
139
+ /**
140
+ * Get a canvas element by the tag.
141
+ * @param tag The tag of the canvas element.
142
+ * @returns The canvas element.
143
+ * @example
144
+ * ```typescript
145
+ * const sprite = GameWindowManager.getCanvasElement<CanvasSprite>("bunny");
146
+ * ```
147
+ */
148
+ static getCanvasElement<T extends CanvasBase<any>>(tag: string): T | undefined;
149
+ /**
150
+ * Check if a DisplayObject is on the canvas.
151
+ * @param pixiElement The DisplayObject to be checked.
152
+ * @returns If the DisplayObject is on the canvas.
153
+ */
154
+ static canvasElementIsOnCanvas<T extends Container>(pixiElement: T): boolean;
155
+ /**
156
+ * Remove all canvas elements from the canvas.
157
+ * And remove all tickers that are not connected to any canvas element.
158
+ */
159
+ static removeCanvasElements(): void;
160
+ /**
161
+ * Edit the tag of a canvas element.
162
+ * @param oldTag The old tag of the canvas element.
163
+ * @param newTag The new tag of the canvas element.
164
+ */
165
+ static editTagCanvasElement(oldTag: string, newTag: string): void;
166
+ /** Edit Tickers Methods */
167
+ /**
168
+ * Currently tickers that are running.
169
+ */
170
+ static get currentTickers(): IClassWithArgsHistory<any>[];
171
+ private static _currentTickers;
172
+ /**
173
+ * The steps of the tickers
174
+ */
175
+ static get currentTickersSteps(): {
176
+ [tag: string]: ITickersSteps;
177
+ };
178
+ private static _currentTickersSteps;
179
+ static currentTickersTimeouts: {
180
+ [timeout: string]: {
181
+ tags: string[];
182
+ ticker: string;
183
+ };
184
+ };
185
+ /**
186
+ * Run a ticker.
187
+ * @param canvasEslementTag The tag of the canvas element that will use the ticker.
188
+ * @param ticker The ticker class to be run.
189
+ * @param args The arguments to be used in the ticker.
190
+ * @param duration The time to be used in the ticker. This number is in milliseconds. If it is undefined, the ticker will run forever.
191
+ * @param priority The priority to be used in the ticker.
192
+ * @returns
193
+ * @example
194
+ * ```typescript
195
+ * GameWindowManager.addTicker("alien", new TickerRotate({ speed: 0.2 }))
196
+ * ```
197
+ */
198
+ static addTicker<TArgs extends TickerArgsType>(canvasElementTag: string | string[], ticker: TickerBase<TArgs>): void;
199
+ private static pushTicker;
200
+ /**
201
+ * Run a sequence of tickers.
202
+ * @param tag The tag of canvas element that will use the tickers.
203
+ * @param steps The steps of the tickers.
204
+ * @returns
205
+ * @example
206
+ * ```typescript
207
+ * GameWindowManager.addTickersSteps("alien", [
208
+ * new TickerRotate({ speed: 0.1, clockwise: true }, 2000),
209
+ * Pause(500),
210
+ * new TickerRotate({ speed: 0.2, clockwise: false }, 2000),
211
+ * Repeat,
212
+ * ])
213
+ * ```
214
+ */
215
+ static addTickersSteps<TArgs extends TickerArgsType>(tag: string, steps: (ITicker<TArgs> | RepeatType | PauseType)[]): void;
216
+ private static runTickersSteps;
217
+ private static nextTickerStep;
218
+ /**
219
+ * Remove a connection between a canvas element and a ticker.
220
+ * And remove the ticker if there is no canvas element connected to it.
221
+ * @param tag The tag of the canvas element that will use the ticker.
222
+ * @param ticker The ticker class to be removed.
223
+ * @example
224
+ * ```typescript
225
+ * GameWindowManager.removeAssociationBetweenTickerCanvasElement("alien", TickerRotate)
226
+ * ```
227
+ */
228
+ static removeAssociationBetweenTickerCanvasElement(tag: string | string[], ticker: typeof TickerBase<any> | TickerBase<any>): void;
229
+ /**
230
+ * Remove all tickers that are not connected to any existing canvas element.
231
+ */
232
+ private static removeTickersWithoutAssociatedCanvasElement;
233
+ private static addTickerTimeoutInfo;
234
+ private static removeTickerTimeoutInfo;
235
+ /**
236
+ * Remove all tickers from the canvas.
237
+ */
238
+ static removeTickers(): void;
239
+ /**
240
+ * Clear the canvas and the tickers.
241
+ */
242
+ static clear(): void;
243
+ /**
244
+ * Export the canvas and the tickers to a JSON string.
245
+ * @returns The JSON string.
246
+ */
247
+ static exportJson(): string;
248
+ /**
249
+ * Export the canvas and the tickers to an object.
250
+ * @returns The object.
251
+ */
252
+ static export(): ExportedCanvas;
253
+ /**
254
+ * Import the canvas and the tickers from a JSON string.
255
+ * @param dataString The JSON string.
256
+ */
257
+ static importJson(dataString: string): void;
258
+ /**
259
+ * Import the canvas and the tickers from an object.
260
+ * @param data The object.
261
+ */
262
+ static import(data: object): void;
263
+ }
264
+
265
+ export { GameWindowManager as default };