@rb-games/core 0.1.0

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 (388) hide show
  1. package/README.md +488 -0
  2. package/dist/devtools/DraggableController.d.ts +10 -0
  3. package/dist/devtools/DraggableController.d.ts.map +1 -0
  4. package/dist/devtools/ResizableController.d.ts +19 -0
  5. package/dist/devtools/ResizableController.d.ts.map +1 -0
  6. package/dist/devtools/index.d.ts +7 -0
  7. package/dist/devtools/index.d.ts.map +1 -0
  8. package/dist/devtools/index.js +884 -0
  9. package/dist/devtools/index.js.map +1 -0
  10. package/dist/devtools/overlayPlugin.d.ts +3 -0
  11. package/dist/devtools/overlayPlugin.d.ts.map +1 -0
  12. package/dist/devtools/spinePropertiesPlugin.d.ts +3 -0
  13. package/dist/devtools/spinePropertiesPlugin.d.ts.map +1 -0
  14. package/dist/devtools/spriteTextPropertiesPlugin.d.ts +3 -0
  15. package/dist/devtools/spriteTextPropertiesPlugin.d.ts.map +1 -0
  16. package/dist/devtools/treePlugin.d.ts +7 -0
  17. package/dist/devtools/treePlugin.d.ts.map +1 -0
  18. package/dist/engine/PixiEngine.d.ts +404 -0
  19. package/dist/engine/PixiEngine.d.ts.map +1 -0
  20. package/dist/engine/index.d.ts +2 -0
  21. package/dist/engine/index.d.ts.map +1 -0
  22. package/dist/engine/index.js +1818 -0
  23. package/dist/engine/index.js.map +1 -0
  24. package/dist/filters/ChromaKeyFilter.d.ts +64 -0
  25. package/dist/filters/ChromaKeyFilter.d.ts.map +1 -0
  26. package/dist/filters/index.d.ts +2 -0
  27. package/dist/filters/index.d.ts.map +1 -0
  28. package/dist/filters/index.js +248 -0
  29. package/dist/filters/index.js.map +1 -0
  30. package/dist/helpers/AssetHelper.d.ts +117 -0
  31. package/dist/helpers/AssetHelper.d.ts.map +1 -0
  32. package/dist/helpers/SVGAssetHelper.d.ts +397 -0
  33. package/dist/helpers/SVGAssetHelper.d.ts.map +1 -0
  34. package/dist/helpers/SVGLoader.d.ts +46 -0
  35. package/dist/helpers/SVGLoader.d.ts.map +1 -0
  36. package/dist/helpers/SVGParser.d.ts +121 -0
  37. package/dist/helpers/SVGParser.d.ts.map +1 -0
  38. package/dist/helpers/eventBridge.d.ts +150 -0
  39. package/dist/helpers/eventBridge.d.ts.map +1 -0
  40. package/dist/helpers/index.d.ts +8 -0
  41. package/dist/helpers/index.d.ts.map +1 -0
  42. package/dist/helpers/index.js +702 -0
  43. package/dist/helpers/index.js.map +1 -0
  44. package/dist/helpers/mergeUtils.d.ts +21 -0
  45. package/dist/helpers/mergeUtils.d.ts.map +1 -0
  46. package/dist/helpers/resolvePublicPath.d.ts +6 -0
  47. package/dist/helpers/resolvePublicPath.d.ts.map +1 -0
  48. package/dist/i18n/index.d.ts +2 -0
  49. package/dist/i18n/index.d.ts.map +1 -0
  50. package/dist/i18n/index.js +527 -0
  51. package/dist/i18n/index.js.map +1 -0
  52. package/dist/i18n/sharedI18n.d.ts +11 -0
  53. package/dist/i18n/sharedI18n.d.ts.map +1 -0
  54. package/dist/layout/Align.d.ts +126 -0
  55. package/dist/layout/Align.d.ts.map +1 -0
  56. package/dist/layout/Bounds.d.ts +120 -0
  57. package/dist/layout/Bounds.d.ts.map +1 -0
  58. package/dist/layout/Distribute.d.ts +103 -0
  59. package/dist/layout/Distribute.d.ts.map +1 -0
  60. package/dist/layout/Flow.d.ts +213 -0
  61. package/dist/layout/Flow.d.ts.map +1 -0
  62. package/dist/layout/PositionUtils.d.ts +57 -0
  63. package/dist/layout/PositionUtils.d.ts.map +1 -0
  64. package/dist/layout/index.d.ts +6 -0
  65. package/dist/layout/index.d.ts.map +1 -0
  66. package/dist/layout/index.js +673 -0
  67. package/dist/layout/index.js.map +1 -0
  68. package/dist/particle/Emitter.d.ts +290 -0
  69. package/dist/particle/Emitter.d.ts.map +1 -0
  70. package/dist/particle/EmitterConfig.d.ts +228 -0
  71. package/dist/particle/EmitterConfig.d.ts.map +1 -0
  72. package/dist/particle/LinkedListContainer.d.ts +7 -0
  73. package/dist/particle/LinkedListContainer.d.ts.map +1 -0
  74. package/dist/particle/Particle.d.ts +63 -0
  75. package/dist/particle/Particle.d.ts.map +1 -0
  76. package/dist/particle/ParticleUtils.d.ts +97 -0
  77. package/dist/particle/ParticleUtils.d.ts.map +1 -0
  78. package/dist/particle/PropertyList.d.ts +40 -0
  79. package/dist/particle/PropertyList.d.ts.map +1 -0
  80. package/dist/particle/PropertyNode.d.ts +74 -0
  81. package/dist/particle/PropertyNode.d.ts.map +1 -0
  82. package/dist/particle/SpineEmitter.d.ts +55 -0
  83. package/dist/particle/SpineEmitter.d.ts.map +1 -0
  84. package/dist/particle/SpineParticle.d.ts +74 -0
  85. package/dist/particle/SpineParticle.d.ts.map +1 -0
  86. package/dist/particle/behaviors/AccelerationMovement.d.ts +62 -0
  87. package/dist/particle/behaviors/AccelerationMovement.d.ts.map +1 -0
  88. package/dist/particle/behaviors/Alpha.d.ts +60 -0
  89. package/dist/particle/behaviors/Alpha.d.ts.map +1 -0
  90. package/dist/particle/behaviors/AnimatedTexture.d.ts +111 -0
  91. package/dist/particle/behaviors/AnimatedTexture.d.ts.map +1 -0
  92. package/dist/particle/behaviors/Behaviors.d.ts +71 -0
  93. package/dist/particle/behaviors/Behaviors.d.ts.map +1 -0
  94. package/dist/particle/behaviors/BlendMode.d.ts +31 -0
  95. package/dist/particle/behaviors/BlendMode.d.ts.map +1 -0
  96. package/dist/particle/behaviors/BurstSpawn.d.ts +43 -0
  97. package/dist/particle/behaviors/BurstSpawn.d.ts.map +1 -0
  98. package/dist/particle/behaviors/Color.d.ts +60 -0
  99. package/dist/particle/behaviors/Color.d.ts.map +1 -0
  100. package/dist/particle/behaviors/MultiStateAnimatedTexture.d.ts +99 -0
  101. package/dist/particle/behaviors/MultiStateAnimatedTexture.d.ts.map +1 -0
  102. package/dist/particle/behaviors/OrderedTexture.d.ts +33 -0
  103. package/dist/particle/behaviors/OrderedTexture.d.ts.map +1 -0
  104. package/dist/particle/behaviors/PathMovement.d.ts +68 -0
  105. package/dist/particle/behaviors/PathMovement.d.ts.map +1 -0
  106. package/dist/particle/behaviors/PointSpawn.d.ts +21 -0
  107. package/dist/particle/behaviors/PointSpawn.d.ts.map +1 -0
  108. package/dist/particle/behaviors/RandomColor.d.ts +17 -0
  109. package/dist/particle/behaviors/RandomColor.d.ts.map +1 -0
  110. package/dist/particle/behaviors/RandomTexture.d.ts +32 -0
  111. package/dist/particle/behaviors/RandomTexture.d.ts.map +1 -0
  112. package/dist/particle/behaviors/Rotation.d.ts +114 -0
  113. package/dist/particle/behaviors/Rotation.d.ts.map +1 -0
  114. package/dist/particle/behaviors/Scale.d.ts +74 -0
  115. package/dist/particle/behaviors/Scale.d.ts.map +1 -0
  116. package/dist/particle/behaviors/ShapeSpawn.d.ts +58 -0
  117. package/dist/particle/behaviors/ShapeSpawn.d.ts.map +1 -0
  118. package/dist/particle/behaviors/SingleTexture.d.ts +32 -0
  119. package/dist/particle/behaviors/SingleTexture.d.ts.map +1 -0
  120. package/dist/particle/behaviors/SpeedMovement.d.ts +76 -0
  121. package/dist/particle/behaviors/SpeedMovement.d.ts.map +1 -0
  122. package/dist/particle/behaviors/SpineTexture.d.ts +173 -0
  123. package/dist/particle/behaviors/SpineTexture.d.ts.map +1 -0
  124. package/dist/particle/behaviors/ZindexBehavior.d.ts +16 -0
  125. package/dist/particle/behaviors/ZindexBehavior.d.ts.map +1 -0
  126. package/dist/particle/behaviors/editor/Types.d.ts +104 -0
  127. package/dist/particle/behaviors/editor/Types.d.ts.map +1 -0
  128. package/dist/particle/behaviors/editor/behaviors/AccelerationMovement.d.ts +2 -0
  129. package/dist/particle/behaviors/editor/behaviors/AccelerationMovement.d.ts.map +1 -0
  130. package/dist/particle/behaviors/editor/behaviors/Alpha.d.ts +2 -0
  131. package/dist/particle/behaviors/editor/behaviors/Alpha.d.ts.map +1 -0
  132. package/dist/particle/behaviors/editor/behaviors/AnimatedTexture.d.ts +2 -0
  133. package/dist/particle/behaviors/editor/behaviors/AnimatedTexture.d.ts.map +1 -0
  134. package/dist/particle/behaviors/editor/behaviors/BlendMode.d.ts +2 -0
  135. package/dist/particle/behaviors/editor/behaviors/BlendMode.d.ts.map +1 -0
  136. package/dist/particle/behaviors/editor/behaviors/BurstSpawn.d.ts +2 -0
  137. package/dist/particle/behaviors/editor/behaviors/BurstSpawn.d.ts.map +1 -0
  138. package/dist/particle/behaviors/editor/behaviors/Color.d.ts +2 -0
  139. package/dist/particle/behaviors/editor/behaviors/Color.d.ts.map +1 -0
  140. package/dist/particle/behaviors/editor/behaviors/OrderedTexture.d.ts +2 -0
  141. package/dist/particle/behaviors/editor/behaviors/OrderedTexture.d.ts.map +1 -0
  142. package/dist/particle/behaviors/editor/behaviors/PathMovement.d.ts +2 -0
  143. package/dist/particle/behaviors/editor/behaviors/PathMovement.d.ts.map +1 -0
  144. package/dist/particle/behaviors/editor/behaviors/PointSpawn.d.ts +2 -0
  145. package/dist/particle/behaviors/editor/behaviors/PointSpawn.d.ts.map +1 -0
  146. package/dist/particle/behaviors/editor/behaviors/RandomTexture.d.ts +2 -0
  147. package/dist/particle/behaviors/editor/behaviors/RandomTexture.d.ts.map +1 -0
  148. package/dist/particle/behaviors/editor/behaviors/Rotation.d.ts +2 -0
  149. package/dist/particle/behaviors/editor/behaviors/Rotation.d.ts.map +1 -0
  150. package/dist/particle/behaviors/editor/behaviors/Scale.d.ts +2 -0
  151. package/dist/particle/behaviors/editor/behaviors/Scale.d.ts.map +1 -0
  152. package/dist/particle/behaviors/editor/behaviors/ShapeSpawn.d.ts +2 -0
  153. package/dist/particle/behaviors/editor/behaviors/ShapeSpawn.d.ts.map +1 -0
  154. package/dist/particle/behaviors/editor/behaviors/SingleTexture.d.ts +2 -0
  155. package/dist/particle/behaviors/editor/behaviors/SingleTexture.d.ts.map +1 -0
  156. package/dist/particle/behaviors/editor/behaviors/SpeedMovement.d.ts +2 -0
  157. package/dist/particle/behaviors/editor/behaviors/SpeedMovement.d.ts.map +1 -0
  158. package/dist/particle/behaviors/editor/behaviors/index.d.ts +15 -0
  159. package/dist/particle/behaviors/editor/behaviors/index.d.ts.map +1 -0
  160. package/dist/particle/behaviors/editor/index.d.ts +5 -0
  161. package/dist/particle/behaviors/editor/index.d.ts.map +1 -0
  162. package/dist/particle/behaviors/editor/shapes/PolygonalChain.d.ts +2 -0
  163. package/dist/particle/behaviors/editor/shapes/PolygonalChain.d.ts.map +1 -0
  164. package/dist/particle/behaviors/editor/shapes/Rectangle.d.ts +2 -0
  165. package/dist/particle/behaviors/editor/shapes/Rectangle.d.ts.map +1 -0
  166. package/dist/particle/behaviors/editor/shapes/Torus.d.ts +2 -0
  167. package/dist/particle/behaviors/editor/shapes/Torus.d.ts.map +1 -0
  168. package/dist/particle/behaviors/index.d.ts +25 -0
  169. package/dist/particle/behaviors/index.d.ts.map +1 -0
  170. package/dist/particle/behaviors/shapes/PolygonalChain.d.ts +57 -0
  171. package/dist/particle/behaviors/shapes/PolygonalChain.d.ts.map +1 -0
  172. package/dist/particle/behaviors/shapes/Rectangle.d.ts +59 -0
  173. package/dist/particle/behaviors/shapes/Rectangle.d.ts.map +1 -0
  174. package/dist/particle/behaviors/shapes/SpawnShape.d.ts +32 -0
  175. package/dist/particle/behaviors/shapes/SpawnShape.d.ts.map +1 -0
  176. package/dist/particle/behaviors/shapes/Torus.d.ts +71 -0
  177. package/dist/particle/behaviors/shapes/Torus.d.ts.map +1 -0
  178. package/dist/particle/behaviors/shapes/index.d.ts +5 -0
  179. package/dist/particle/behaviors/shapes/index.d.ts.map +1 -0
  180. package/dist/particle/index.d.ts +11 -0
  181. package/dist/particle/index.d.ts.map +1 -0
  182. package/dist/particle/index.js +2845 -0
  183. package/dist/particle/index.js.map +1 -0
  184. package/dist/plugins/Plugin.types.d.ts +80 -0
  185. package/dist/plugins/Plugin.types.d.ts.map +1 -0
  186. package/dist/plugins/device/DeviceOptimizerPlugin.d.ts +187 -0
  187. package/dist/plugins/device/DeviceOptimizerPlugin.d.ts.map +1 -0
  188. package/dist/plugins/device/DeviceOptimizerPlugin.types.d.ts +134 -0
  189. package/dist/plugins/device/DeviceOptimizerPlugin.types.d.ts.map +1 -0
  190. package/dist/plugins/device/index.d.ts +3 -0
  191. package/dist/plugins/device/index.d.ts.map +1 -0
  192. package/dist/plugins/display/DisplayPlugin.d.ts +208 -0
  193. package/dist/plugins/display/DisplayPlugin.d.ts.map +1 -0
  194. package/dist/plugins/display/DisplayPlugin.types.d.ts +174 -0
  195. package/dist/plugins/display/DisplayPlugin.types.d.ts.map +1 -0
  196. package/dist/plugins/display/displayViewport.d.ts +10 -0
  197. package/dist/plugins/display/displayViewport.d.ts.map +1 -0
  198. package/dist/plugins/display/index.d.ts +4 -0
  199. package/dist/plugins/display/index.d.ts.map +1 -0
  200. package/dist/plugins/eventbus/EventBusPlugin.d.ts +21 -0
  201. package/dist/plugins/eventbus/EventBusPlugin.d.ts.map +1 -0
  202. package/dist/plugins/eventbus/EventBusPlugin.types.d.ts +24 -0
  203. package/dist/plugins/eventbus/EventBusPlugin.types.d.ts.map +1 -0
  204. package/dist/plugins/eventbus/index.d.ts +3 -0
  205. package/dist/plugins/eventbus/index.d.ts.map +1 -0
  206. package/dist/plugins/gsap/GsapPlugin.d.ts +307 -0
  207. package/dist/plugins/gsap/GsapPlugin.d.ts.map +1 -0
  208. package/dist/plugins/gsap/index.d.ts +2 -0
  209. package/dist/plugins/gsap/index.d.ts.map +1 -0
  210. package/dist/plugins/index.d.ts +13 -0
  211. package/dist/plugins/index.d.ts.map +1 -0
  212. package/dist/plugins/index.js +12806 -0
  213. package/dist/plugins/index.js.map +1 -0
  214. package/dist/plugins/input/InputPlugin.const.d.ts +80 -0
  215. package/dist/plugins/input/InputPlugin.const.d.ts.map +1 -0
  216. package/dist/plugins/input/InputPlugin.d.ts +141 -0
  217. package/dist/plugins/input/InputPlugin.d.ts.map +1 -0
  218. package/dist/plugins/input/InputPlugin.types.d.ts +41 -0
  219. package/dist/plugins/input/InputPlugin.types.d.ts.map +1 -0
  220. package/dist/plugins/input/KeyboardManager.d.ts +139 -0
  221. package/dist/plugins/input/KeyboardManager.d.ts.map +1 -0
  222. package/dist/plugins/input/KeyboardManager.types.d.ts +27 -0
  223. package/dist/plugins/input/KeyboardManager.types.d.ts.map +1 -0
  224. package/dist/plugins/input/index.d.ts +4 -0
  225. package/dist/plugins/input/index.d.ts.map +1 -0
  226. package/dist/plugins/language/I18NextPlugin.d.ts +30 -0
  227. package/dist/plugins/language/I18NextPlugin.d.ts.map +1 -0
  228. package/dist/plugins/language/I18NextPlugin.types.d.ts +29 -0
  229. package/dist/plugins/language/I18NextPlugin.types.d.ts.map +1 -0
  230. package/dist/plugins/language/index.d.ts +3 -0
  231. package/dist/plugins/language/index.d.ts.map +1 -0
  232. package/dist/plugins/resource/ResourcePlugin.d.ts +189 -0
  233. package/dist/plugins/resource/ResourcePlugin.d.ts.map +1 -0
  234. package/dist/plugins/resource/ResourcePlugin.types.d.ts +153 -0
  235. package/dist/plugins/resource/ResourcePlugin.types.d.ts.map +1 -0
  236. package/dist/plugins/resource/index.d.ts +3 -0
  237. package/dist/plugins/resource/index.d.ts.map +1 -0
  238. package/dist/plugins/scene/Scene.d.ts +203 -0
  239. package/dist/plugins/scene/Scene.d.ts.map +1 -0
  240. package/dist/plugins/scene/ScenePlugin.d.ts +162 -0
  241. package/dist/plugins/scene/ScenePlugin.d.ts.map +1 -0
  242. package/dist/plugins/scene/ScenePlugin.types.d.ts +35 -0
  243. package/dist/plugins/scene/ScenePlugin.types.d.ts.map +1 -0
  244. package/dist/plugins/scene/index.d.ts +4 -0
  245. package/dist/plugins/scene/index.d.ts.map +1 -0
  246. package/dist/plugins/sentry/SentryPlugin.d.ts +66 -0
  247. package/dist/plugins/sentry/SentryPlugin.d.ts.map +1 -0
  248. package/dist/plugins/sentry/SentryPlugin.types.d.ts +8 -0
  249. package/dist/plugins/sentry/SentryPlugin.types.d.ts.map +1 -0
  250. package/dist/plugins/sentry/index.d.ts +3 -0
  251. package/dist/plugins/sentry/index.d.ts.map +1 -0
  252. package/dist/plugins/service/ServiceAdapter.d.ts +88 -0
  253. package/dist/plugins/service/ServiceAdapter.d.ts.map +1 -0
  254. package/dist/plugins/service/ServiceEventHelper.d.ts +6 -0
  255. package/dist/plugins/service/ServiceEventHelper.d.ts.map +1 -0
  256. package/dist/plugins/service/ServicePlugin.d.ts +135 -0
  257. package/dist/plugins/service/ServicePlugin.d.ts.map +1 -0
  258. package/dist/plugins/service/ServicePlugin.types.d.ts +14 -0
  259. package/dist/plugins/service/ServicePlugin.types.d.ts.map +1 -0
  260. package/dist/plugins/service/adapters/DevAuthAdapter.d.ts +56 -0
  261. package/dist/plugins/service/adapters/DevAuthAdapter.d.ts.map +1 -0
  262. package/dist/plugins/service/adapters/RGSAdapter.d.ts +82 -0
  263. package/dist/plugins/service/adapters/RGSAdapter.d.ts.map +1 -0
  264. package/dist/plugins/service/adapters/index.d.ts +7 -0
  265. package/dist/plugins/service/adapters/index.d.ts.map +1 -0
  266. package/dist/plugins/service/adapters/resolvePublicIp.d.ts +10 -0
  267. package/dist/plugins/service/adapters/resolvePublicIp.d.ts.map +1 -0
  268. package/dist/plugins/service/index.d.ts +10 -0
  269. package/dist/plugins/service/index.d.ts.map +1 -0
  270. package/dist/plugins/service/types/api.types.d.ts +299 -0
  271. package/dist/plugins/service/types/api.types.d.ts.map +1 -0
  272. package/dist/plugins/service/types/index.d.ts +6 -0
  273. package/dist/plugins/service/types/index.d.ts.map +1 -0
  274. package/dist/plugins/skin/ISkin.d.ts +62 -0
  275. package/dist/plugins/skin/ISkin.d.ts.map +1 -0
  276. package/dist/plugins/skin/Skin.d.ts +155 -0
  277. package/dist/plugins/skin/Skin.d.ts.map +1 -0
  278. package/dist/plugins/skin/SkinPlugin.d.ts +285 -0
  279. package/dist/plugins/skin/SkinPlugin.d.ts.map +1 -0
  280. package/dist/plugins/skin/SkinPlugin.types.d.ts +56 -0
  281. package/dist/plugins/skin/SkinPlugin.types.d.ts.map +1 -0
  282. package/dist/plugins/skin/index.d.ts +5 -0
  283. package/dist/plugins/skin/index.d.ts.map +1 -0
  284. package/dist/plugins/sound/SoundPlugin.d.ts +319 -0
  285. package/dist/plugins/sound/SoundPlugin.d.ts.map +1 -0
  286. package/dist/plugins/sound/SoundPlugin.types.d.ts +102 -0
  287. package/dist/plugins/sound/SoundPlugin.types.d.ts.map +1 -0
  288. package/dist/plugins/sound/SoundTestGUI.d.ts +42 -0
  289. package/dist/plugins/sound/SoundTestGUI.d.ts.map +1 -0
  290. package/dist/plugins/sound/index.d.ts +4 -0
  291. package/dist/plugins/sound/index.d.ts.map +1 -0
  292. package/dist/state-machine/ConfigBuilder.d.ts +239 -0
  293. package/dist/state-machine/ConfigBuilder.d.ts.map +1 -0
  294. package/dist/state-machine/StateMachine.d.ts +251 -0
  295. package/dist/state-machine/StateMachine.d.ts.map +1 -0
  296. package/dist/state-machine/guards.d.ts +151 -0
  297. package/dist/state-machine/guards.d.ts.map +1 -0
  298. package/dist/state-machine/index.d.ts +5 -0
  299. package/dist/state-machine/index.d.ts.map +1 -0
  300. package/dist/state-machine/index.js +954 -0
  301. package/dist/state-machine/index.js.map +1 -0
  302. package/dist/state-machine/types.d.ts +65 -0
  303. package/dist/state-machine/types.d.ts.map +1 -0
  304. package/dist/store/DataStore.d.ts +167 -0
  305. package/dist/store/DataStore.d.ts.map +1 -0
  306. package/dist/store/index.d.ts +3 -0
  307. package/dist/store/index.d.ts.map +1 -0
  308. package/dist/store/index.js +197 -0
  309. package/dist/store/index.js.map +1 -0
  310. package/dist/ui/behaviors/ButtonBehavior.d.ts +245 -0
  311. package/dist/ui/behaviors/ButtonBehavior.d.ts.map +1 -0
  312. package/dist/ui/behaviors/InputBehavior.d.ts +169 -0
  313. package/dist/ui/behaviors/InputBehavior.d.ts.map +1 -0
  314. package/dist/ui/behaviors/ScrollbarBehavior.d.ts +371 -0
  315. package/dist/ui/behaviors/ScrollbarBehavior.d.ts.map +1 -0
  316. package/dist/ui/behaviors/index.d.ts +4 -0
  317. package/dist/ui/behaviors/index.d.ts.map +1 -0
  318. package/dist/ui/components/ButtonComp.d.ts +138 -0
  319. package/dist/ui/components/ButtonComp.d.ts.map +1 -0
  320. package/dist/ui/components/Comp.utils.d.ts +390 -0
  321. package/dist/ui/components/Comp.utils.d.ts.map +1 -0
  322. package/dist/ui/components/Component.types.d.ts +41 -0
  323. package/dist/ui/components/Component.types.d.ts.map +1 -0
  324. package/dist/ui/components/InputComp.d.ts +43 -0
  325. package/dist/ui/components/InputComp.d.ts.map +1 -0
  326. package/dist/ui/components/LabelBox.d.ts +49 -0
  327. package/dist/ui/components/LabelBox.d.ts.map +1 -0
  328. package/dist/ui/components/ListTableComp.d.ts +106 -0
  329. package/dist/ui/components/ListTableComp.d.ts.map +1 -0
  330. package/dist/ui/components/Skinable.d.ts +261 -0
  331. package/dist/ui/components/Skinable.d.ts.map +1 -0
  332. package/dist/ui/components/SliderComp.d.ts +60 -0
  333. package/dist/ui/components/SliderComp.d.ts.map +1 -0
  334. package/dist/ui/components/SpriteTextBBCode.d.ts +16 -0
  335. package/dist/ui/components/SpriteTextBBCode.d.ts.map +1 -0
  336. package/dist/ui/components/StepperComp.d.ts +89 -0
  337. package/dist/ui/components/StepperComp.d.ts.map +1 -0
  338. package/dist/ui/components/index.d.ts +12 -0
  339. package/dist/ui/components/index.d.ts.map +1 -0
  340. package/dist/ui/components/spriteText/SpriteText.d.ts +114 -0
  341. package/dist/ui/components/spriteText/SpriteText.d.ts.map +1 -0
  342. package/dist/ui/components/spriteText/SpriteText.types.d.ts +109 -0
  343. package/dist/ui/components/spriteText/SpriteText.types.d.ts.map +1 -0
  344. package/dist/ui/components/spriteText/SpriteTextAlignment.d.ts +25 -0
  345. package/dist/ui/components/spriteText/SpriteTextAlignment.d.ts.map +1 -0
  346. package/dist/ui/components/spriteText/SpriteTextBezier.d.ts +20 -0
  347. package/dist/ui/components/spriteText/SpriteTextBezier.d.ts.map +1 -0
  348. package/dist/ui/components/spriteText/SpriteTextCurve.d.ts +4 -0
  349. package/dist/ui/components/spriteText/SpriteTextCurve.d.ts.map +1 -0
  350. package/dist/ui/components/spriteText/SpriteTextKerning.d.ts +7 -0
  351. package/dist/ui/components/spriteText/SpriteTextKerning.d.ts.map +1 -0
  352. package/dist/ui/components/spriteText/SpriteTextTexture.d.ts +16 -0
  353. package/dist/ui/components/spriteText/SpriteTextTexture.d.ts.map +1 -0
  354. package/dist/ui/components/spriteText/SpriteTextWrap.d.ts +19 -0
  355. package/dist/ui/components/spriteText/SpriteTextWrap.d.ts.map +1 -0
  356. package/dist/ui/components/spriteText/index.d.ts +3 -0
  357. package/dist/ui/components/spriteText/index.d.ts.map +1 -0
  358. package/dist/ui/index.d.ts +3 -0
  359. package/dist/ui/index.d.ts.map +1 -0
  360. package/dist/ui/index.js +4778 -0
  361. package/dist/ui/index.js.map +1 -0
  362. package/dist/utils/ArrayUtils.d.ts +24 -0
  363. package/dist/utils/ArrayUtils.d.ts.map +1 -0
  364. package/dist/utils/ColorUtils.d.ts +34 -0
  365. package/dist/utils/ColorUtils.d.ts.map +1 -0
  366. package/dist/utils/DataInjector.d.ts +67 -0
  367. package/dist/utils/DataInjector.d.ts.map +1 -0
  368. package/dist/utils/Logger.d.ts +332 -0
  369. package/dist/utils/Logger.d.ts.map +1 -0
  370. package/dist/utils/NumberFormatter.d.ts +126 -0
  371. package/dist/utils/NumberFormatter.d.ts.map +1 -0
  372. package/dist/utils/ObjectUtils.d.ts +64 -0
  373. package/dist/utils/ObjectUtils.d.ts.map +1 -0
  374. package/dist/utils/PixiUtils.d.ts +118 -0
  375. package/dist/utils/PixiUtils.d.ts.map +1 -0
  376. package/dist/utils/Throttle.d.ts +103 -0
  377. package/dist/utils/Throttle.d.ts.map +1 -0
  378. package/dist/utils/index.d.ts +9 -0
  379. package/dist/utils/index.d.ts.map +1 -0
  380. package/dist/utils/index.js +899 -0
  381. package/dist/utils/index.js.map +1 -0
  382. package/dist/vite/index.d.ts +3 -0
  383. package/dist/vite/index.d.ts.map +1 -0
  384. package/dist/vite/index.js +126 -0
  385. package/dist/vite/index.js.map +1 -0
  386. package/dist/vite/mergeLocalesPlugin.d.ts +22 -0
  387. package/dist/vite/mergeLocalesPlugin.d.ts.map +1 -0
  388. package/package.json +143 -0
@@ -0,0 +1,174 @@
1
+ import { PluginConfig } from '../Plugin.types';
2
+ /**
3
+ * Alignment options for canvas positioning.
4
+ */
5
+ export type DisplayAlignment = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
6
+ /**
7
+ * Scale mode options.
8
+ *
9
+ * - `contain`: Fit entire game within window (letterboxing/pillarboxing may occur)
10
+ * - `cover`: Fill entire window (some content may be cropped)
11
+ * - `safe`: Cover mode with safe area constraints
12
+ */
13
+ export type DisplayScaleMode = 'contain' | 'cover' | 'safe';
14
+ /**
15
+ * Safe area margins in pixels.
16
+ *
17
+ * Defines the safe area that should never be cropped when using safe mode.
18
+ * The scale will be calculated to ensure the safe area always fits within the viewport.
19
+ */
20
+ export interface SafeAreaConfig {
21
+ top?: number;
22
+ right?: number;
23
+ bottom?: number;
24
+ left?: number;
25
+ }
26
+ /**
27
+ * Configuration for a specific orientation (landscape or portrait).
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * const landscapeConfig: OrientationConfig = {
32
+ * width: 1920,
33
+ * height: 1080,
34
+ * scaleMode: 'safe',
35
+ * safeArea: { left: 100, right: 100 },
36
+ * alignment: 'center'
37
+ * };
38
+ * ```
39
+ */
40
+ export interface OrientationConfig {
41
+ /**
42
+ * Design width in pixels for this orientation.
43
+ */
44
+ width: number;
45
+ /**
46
+ * Design height in pixels for this orientation.
47
+ */
48
+ height: number;
49
+ /**
50
+ * Scaling mode (default: 'contain').
51
+ */
52
+ scaleMode?: DisplayScaleMode;
53
+ /**
54
+ * Safe area margins in pixels (only applies to 'safe' mode).
55
+ */
56
+ safeArea?: SafeAreaConfig;
57
+ /**
58
+ * Alignment of the game canvas within the window (default: 'center').
59
+ */
60
+ alignment?: DisplayAlignment;
61
+ /**
62
+ * Supported aspect ratio range for this orientation.
63
+ * When window aspect ratio is outside this range, it will be clamped
64
+ * to the nearest supported ratio. The clamped area is always centered
65
+ * on screen, and the stage is positioned within it according to alignment.
66
+ *
67
+ * @example
68
+ * ```typescript
69
+ * // Portrait: support 9:16 to 9:21 (0.428 to 0.5625)
70
+ * aspectRatioRange: {
71
+ * min: 9 / 21, // 0.428 - narrowest supported
72
+ * max: 9 / 16 // 0.5625 - widest supported
73
+ * }
74
+ *
75
+ * // Landscape: support 16:9 to 21:9 (1.78 to 2.33)
76
+ * aspectRatioRange: {
77
+ * min: 16 / 9, // 1.78 - tallest supported
78
+ * max: 21 / 9 // 2.33 - widest supported
79
+ * }
80
+ * ```
81
+ */
82
+ aspectRatioRange?: {
83
+ min: number;
84
+ max: number;
85
+ };
86
+ }
87
+ /**
88
+ * Configuration for DisplayPlugin.
89
+ *
90
+ * Controls the game's design resolution, scaling behavior, and alignment within the browser window.
91
+ * DisplayPlugin maintains a fixed design resolution and scales the game to fit the window while
92
+ * preserving aspect ratio. Supports separate configurations for landscape and portrait orientations.
93
+ *
94
+ * @example
95
+ * ```typescript
96
+ * const config: DisplayPluginConfig = {
97
+ * landscape: {
98
+ * width: 1920,
99
+ * height: 1080,
100
+ * scaleMode: 'safe',
101
+ * safeArea: { left: 100, right: 100 },
102
+ * alignment: 'center'
103
+ * },
104
+ * portrait: {
105
+ * width: 1080,
106
+ * height: 1920,
107
+ * scaleMode: 'contain',
108
+ * alignment: 'center'
109
+ * }
110
+ * };
111
+ * ```
112
+ *
113
+ * @public
114
+ */
115
+ export interface DisplayPluginConfig extends PluginConfig {
116
+ /**
117
+ * Configuration for landscape orientation (required).
118
+ */
119
+ landscape: OrientationConfig;
120
+ /**
121
+ * Configuration for portrait orientation (optional).
122
+ * If not provided, landscape config will be used with a warning.
123
+ */
124
+ portrait?: OrientationConfig;
125
+ }
126
+ /**
127
+ * Payload emitted on `display:resize`.
128
+ */
129
+ export interface DisplayResizeData {
130
+ designWidth: number;
131
+ designHeight: number;
132
+ windowWidth: number;
133
+ windowHeight: number;
134
+ width: number;
135
+ height: number;
136
+ scale: number;
137
+ left: number;
138
+ top: number;
139
+ offsetX: number;
140
+ offsetY: number;
141
+ resolution: number;
142
+ orientation: 'landscape' | 'portrait';
143
+ /** Clamped viewport left edge in design coordinates: `-left / scale`. */
144
+ uiViewportLeftX: number;
145
+ /** Clamped viewport top edge in design coordinates: `-top / scale`. */
146
+ uiViewportTopY: number;
147
+ /** Clamped viewport right edge in design coordinates: `(width - left) / scale`. */
148
+ uiViewportRightX: number;
149
+ /** Clamped viewport bottom edge in design coordinates: `(height - top) / scale`. */
150
+ uiViewportBottomY: number;
151
+ }
152
+ /**
153
+ * Display events emitted by DisplayPlugin.
154
+ */
155
+ export interface DisplayEvents {
156
+ /**
157
+ * Emitted when the display is resized.
158
+ */
159
+ 'display:resize': (data: DisplayResizeData) => void;
160
+ /**
161
+ * Emitted when the orientation changes.
162
+ */
163
+ 'display:orientationChange': (data: {
164
+ oldOrientation: 'landscape' | 'portrait';
165
+ newOrientation: 'landscape' | 'portrait';
166
+ }) => void;
167
+ /**
168
+ * Emitted when fullscreen state changes.
169
+ */
170
+ 'display:fullscreenChange': (data: {
171
+ isFullscreen: boolean;
172
+ }) => void;
173
+ }
174
+ //# sourceMappingURL=DisplayPlugin.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DisplayPlugin.types.d.ts","sourceRoot":"","sources":["../../../plugins/display/DisplayPlugin.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,GACP,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB;;;;;;GAMG;AACH,MAAM,MAAM,gB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MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,GAAG,UAAU,CAAC;IACtC,yEAAyE;IACzE,eAAe,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,cAAc,EAAE,MAAM,CAAC;IACvB,mFAAmF;IACnF,gBAAgB,EAAE,MAAM,CAAC;IACzB,oFAAoF;IACpF,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,gBAAgB,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAEpD;;OAEG;IACH,2BAA2B,EAAE,CAAC,IAAI,EAAE;QAClC,cAAc,EAAE,WAAW,GAAG,UAAU,CAAC;QACzC,cAAc,EAAE,WAAW,GAAG,UAAU,CAAC;KAC1C,KAAK,IAAI,CAAC;IAEX;;OAEG;IACH,0BAA0B,EAAE,CAAC,IAAI,EAAE;QACjC,YAAY,EAAE,OAAO,CAAC;KACvB,KAAK,IAAI,CAAC;CACZ"}
@@ -0,0 +1,10 @@
1
+ import type { DisplayResizeData } from './DisplayPlugin.types';
2
+ export interface DesignViewportRect {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ height: number;
7
+ }
8
+ /** Maps DisplayPlugin clamp geometry to a rectangle in design coordinates. */
9
+ export declare function computeDesignViewportRect(data: DisplayResizeData): DesignViewportRect;
10
+ //# sourceMappingURL=displayViewport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"displayViewport.d.ts","sourceRoot":"","sources":["../../../plugins/display/displayViewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,iBAAiB,GAAG,kBAAkB,CAUrF"}
@@ -0,0 +1,4 @@
1
+ export * from './DisplayPlugin';
2
+ export * from './displayViewport';
3
+ export type { DisplayPluginConfig, DisplayResizeData } from './DisplayPlugin.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../plugins/display/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from 'pixi.js';
2
+ import type { EnginePlugin } from '../Plugin.types';
3
+ import { ENGINE_HOOKS } from '../Plugin.types';
4
+ import type { PixiEngine } from '../../engine/PixiEngine';
5
+ import type { EventResult, EngineEvents } from './EventBusPlugin.types';
6
+ export declare class EventBusPlugin<TEvents extends EngineEvents = EngineEvents> extends EventEmitter<TEvents> implements EnginePlugin {
7
+ [ENGINE_HOOKS.onEngineReady]: (_engine: PixiEngine) => void;
8
+ [ENGINE_HOOKS.onPause]: (_engine: PixiEngine) => void;
9
+ [ENGINE_HOOKS.onResume]: (_engine: PixiEngine) => void;
10
+ [ENGINE_HOOKS.onResize]: (width: number, height: number) => boolean;
11
+ readonly name = "eventBusPlugin";
12
+ readonly priority = 5;
13
+ constructor();
14
+ initialize(_engine: PixiEngine): Promise<void>;
15
+ cleanup(): void;
16
+ emit<T extends EventEmitter.EventNames<TEvents>>(event: T, ...args: Parameters<EventEmitter.EventListener<TEvents, T>>): boolean;
17
+ emitAsync<T extends EventEmitter.EventNames<TEvents>>(event: T, ...args: Parameters<EventEmitter.EventListener<TEvents, T>>): Promise<any>;
18
+ emitCancellable<T extends keyof TEvents>(event: T, ...args: any[]): EventResult;
19
+ emitCancellableAsync<T extends keyof TEvents>(event: T, ...args: any[]): Promise<EventResult>;
20
+ }
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EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IAOhJ,eAAe,CAAC,CAAC,SAAS,MAAM,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,WAAW;IA4BzE,oBAAoB,CAAC,CAAC,SAAS,MAAM,OAAO,EAChD,KAAK,EAAE,CAAC,EACR,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,WAAW,CAAC;CA+BxB"}
@@ -0,0 +1,24 @@
1
+ export interface EventResult {
2
+ cancelled: boolean;
3
+ data?: any;
4
+ priority: number;
5
+ cancel(priority?: number): void;
6
+ setData(data: any): void;
7
+ }
8
+ /**
9
+ * Base game events interface
10
+ * This is intentionally minimal - specific game types (slot, plinko, etc.) should extend this
11
+ *
12
+ * Engine lifecycle events are automatically emitted by EventBusPlugin via PixiEngine hooks:
13
+ * - 'engine:ready' - Emitted in onEngineReady() hook when entire engine is initialized
14
+ * - 'engine:resize' - Emitted in onResize() hook when window is resized
15
+ * - 'engine:pause' - Emitted in onPause() hook when engine.pause() is called
16
+ * - 'engine:resume' - Emitted in onResume() hook when engine.resume() is called
17
+ */
18
+ export interface EngineEvents {
19
+ 'engine:ready': () => void;
20
+ 'engine:resize': (width: number, height: number) => void;
21
+ 'engine:pause': () => void;
22
+ 'engine:resume': () => void;
23
+ }
24
+ //# sourceMappingURL=EventBusPlugin.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventBusPlugin.types.d.ts","sourceRoot":"","sources":["../../../plugins/eventbus/EventBusPlugin.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;CAC1B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY;IAE3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ export { EventBusPlugin } from './EventBusPlugin';
2
+ export type { EventResult, EngineEvents } from './EventBusPlugin.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../plugins/eventbus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,307 @@
1
+ import { PixiEngine } from '../../engine/PixiEngine';
2
+ import { Container } from 'pixi.js';
3
+ import type { EnginePlugin } from '../Plugin.types';
4
+ /**
5
+ * GSAP animation integration plugin for PixiJS games.
6
+ *
7
+ * GsapPlugin integrates the powerful GSAP (GreenSock Animation Platform) library
8
+ * with PixiJS, providing a unified animation loop and convenient animation helpers.
9
+ *
10
+ * ## Features
11
+ *
12
+ * - **Unified Ticker**: Single animation loop driven by GSAP
13
+ * - **Animation Helpers**: Pre-built fade, scale, move animations
14
+ * - **Timeline Support**: Create complex animation sequences
15
+ * - **PixiJS Integration**: Direct access to stage management
16
+ * - **Type-Safe**: Full TypeScript support
17
+ *
18
+ * ## How It Works
19
+ *
20
+ * GsapPlugin replaces PixiJS's default ticker with GSAP's ticker, ensuring all
21
+ * animations (both GSAP and PixiJS) run on the same timeline. This prevents
22
+ * timing conflicts and improves performance.
23
+ *
24
+ * ### Ticker Integration
25
+ *
26
+ * 1. GSAP ticker runs at 60 FPS (or requestAnimationFrame)
27
+ * 2. On each tick, GSAP updates all its tweens
28
+ * 3. Plugin forwards tick to PixiJS ticker
29
+ * 4. Engine's onUpdate is called for game logic
30
+ *
31
+ * ## Animation Helpers
32
+ *
33
+ * The plugin provides convenient methods for common animations:
34
+ * - `fadeIn()` / `fadeOut()` - Opacity animations
35
+ * - `scaleIn()` / `scaleOut()` - Scale animations with easing
36
+ * - `moveTo()` - Position animations
37
+ * - `animate()` - Generic property animations
38
+ * - `sequence()` - Staggered animation sequences
39
+ * - `createTimeline()` - Complex animation timelines
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * const gsapPlugin = new GsapPlugin();
44
+ * engine.registerPlugin(gsapPlugin);
45
+ * await engine.initialize();
46
+ *
47
+ * // Fade in a sprite
48
+ * const sprite = new Sprite(texture);
49
+ * gsapPlugin.addToStage(sprite);
50
+ * gsapPlugin.fadeIn(sprite, 1.0);
51
+ * ```
52
+ *
53
+ * @example
54
+ * ```typescript
55
+ * // Create a complex animation sequence
56
+ * const timeline = gsapPlugin.createTimeline();
57
+ *
58
+ * timeline
59
+ * .add(gsapPlugin.fadeIn(logo, 0.5))
60
+ * .add(gsapPlugin.scaleIn(button, 0.3), '-=0.2')
61
+ * .add(gsapPlugin.moveTo(panel, 100, 200, 0.5));
62
+ * ```
63
+ *
64
+ * @example
65
+ * ```typescript
66
+ * // Staggered animations
67
+ * const buttons = [button1, button2, button3];
68
+ *
69
+ * gsapPlugin.sequence(
70
+ * buttons.map(btn => () => gsapPlugin.fadeIn(btn, 0.3)),
71
+ * 0.1 // 0.1s delay between each
72
+ * );
73
+ * ```
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * // Custom animation with callbacks
78
+ * gsapPlugin.animate(sprite, { rotation: Math.PI * 2 }, 2.0, {
79
+ * ease: 'elastic.out',
80
+ * onComplete: () => console.log('Rotation complete!')
81
+ * });
82
+ * ```
83
+ *
84
+ * @category Plugins
85
+ * @public
86
+ */
87
+ export declare class GsapPlugin implements EnginePlugin {
88
+ /**
89
+ * Plugin name
90
+ */
91
+ name: string;
92
+ /**
93
+ * High priority to ensure it runs before other plugins
94
+ */
95
+ priority: number;
96
+ /**
97
+ * No dependencies - this is a core plugin
98
+ */
99
+ dependencies: string[];
100
+ private engine;
101
+ private gsapTickerCallback;
102
+ private isInitialized;
103
+ /**
104
+ * Initializes the GSAP plugin.
105
+ *
106
+ * Sets up the unified ticker system by connecting GSAP's ticker to PixiJS.
107
+ * Called automatically by PixiEngine during plugin initialization.
108
+ *
109
+ * @param engine - PixiEngine instance
110
+ */
111
+ initialize(engine: PixiEngine): void;
112
+ /**
113
+ * Plugin is ready immediately after initialization
114
+ */
115
+ onReady(engine: PixiEngine): void;
116
+ /**
117
+ * Check if plugin is ready for use
118
+ */
119
+ isReady(): boolean;
120
+ [key: symbol]: any;
121
+ /**
122
+ * Clean up when plugin is removed
123
+ */
124
+ cleanup(): void;
125
+ /**
126
+ * Plugin hook that runs every tick
127
+ * @param deltaTime The time elapsed since the last update
128
+ * @returns Returns false because GsapPlugin allows other plugins to continue updating.
129
+ * GSAP ticker and plugin onUpdate loops are different mechanisms.
130
+ */
131
+ onUpdate(_deltaTime: number): boolean;
132
+ /**
133
+ * Creates a GSAP timeline for complex animation sequences.
134
+ *
135
+ * Timelines allow you to choreograph multiple animations with precise timing control.
136
+ *
137
+ * @param vars - Timeline configuration options
138
+ * @returns GSAP Timeline instance
139
+ *
140
+ * @example
141
+ * ```typescript
142
+ * const timeline = gsapPlugin.createTimeline({ repeat: -1, yoyo: true });
143
+ * timeline
144
+ * .to(sprite, { x: 100, duration: 1 })
145
+ * .to(sprite, { y: 100, duration: 1 })
146
+ * .to(sprite, { rotation: Math.PI, duration: 1 });
147
+ * ```
148
+ */
149
+ createTimeline(vars?: gsap.TimelineVars): gsap.core.Timeline;
150
+ /**
151
+ * Fades in a container from transparent to opaque.
152
+ *
153
+ * Sets alpha to 0 and animates to 1.
154
+ *
155
+ * @param target - Container to animate
156
+ * @param duration - Animation duration in seconds (default: 0.5)
157
+ * @param vars - Additional GSAP tween options
158
+ * @returns Promise that resolves to GSAP Tween instance
159
+ *
160
+ * @example
161
+ * ```typescript
162
+ * gsapPlugin.fadeIn(sprite, 1.0, {
163
+ * ease: 'power2.out',
164
+ * onComplete: () => console.log('Fade complete!')
165
+ * });
166
+ * ```
167
+ */
168
+ fadeIn(target: Container, duration?: number, vars?: gsap.TweenVars): Promise<gsap.core.Tween>;
169
+ /**
170
+ * Fade out a Container
171
+ * @param target Container to animate
172
+ * @param duration Animation duration in seconds
173
+ * @param vars Additional animation variables
174
+ * @returns Promise that resolves to GSAP Tween instance
175
+ */
176
+ fadeOut(target: Container, duration?: number, vars?: gsap.TweenVars): Promise<gsap.core.Tween>;
177
+ /**
178
+ * Scales in a container with a bounce effect.
179
+ *
180
+ * Starts from 0.5 scale and animates to original scale with back.out easing.
181
+ *
182
+ * @param target - Container to animate
183
+ * @param duration - Animation duration in seconds (default: 0.5)
184
+ * @param vars - Additional GSAP tween options
185
+ * @returns Promise that resolves to GSAP Tween instance
186
+ *
187
+ * @example
188
+ * ```typescript
189
+ * gsapPlugin.scaleIn(button, 0.3, {
190
+ * delay: 0.5,
191
+ * onComplete: () => button.interactive = true
192
+ * });
193
+ * ```
194
+ */
195
+ scaleIn(target: Container, duration?: number, vars?: gsap.TweenVars): Promise<gsap.core.Tween>;
196
+ /**
197
+ * Scale out a Container
198
+ * @param target Container to animate
199
+ * @param duration Animation duration in seconds
200
+ * @param vars Additional animation variables
201
+ * @returns Promise that resolves to GSAP Tween instance
202
+ */
203
+ scaleOut(target: Container, duration?: number, vars?: gsap.TweenVars): Promise<gsap.core.Tween>;
204
+ /**
205
+ * Moves a container to a new position.
206
+ *
207
+ * Animates x and y properties with power2.out easing.
208
+ *
209
+ * @param target - Container to animate
210
+ * @param x - Target x position
211
+ * @param y - Target y position
212
+ * @param duration - Animation duration in seconds (default: 0.5)
213
+ * @param vars - Additional GSAP tween options
214
+ * @returns Promise that resolves to GSAP Tween instance
215
+ *
216
+ * @example
217
+ * ```typescript
218
+ * gsapPlugin.moveTo(sprite, 400, 300, 1.0, {
219
+ * ease: 'elastic.out',
220
+ * onUpdate: () => console.log('Moving...')
221
+ * });
222
+ * ```
223
+ */
224
+ moveTo(target: Container, x: number, y: number, duration?: number, vars?: gsap.TweenVars): Promise<gsap.core.Tween>;
225
+ /**
226
+ * Animates any properties of an object.
227
+ *
228
+ * Generic animation method for custom property animations.
229
+ *
230
+ * @param target - Object to animate (Container, Sprite, or any object)
231
+ * @param props - Properties to animate with target values
232
+ * @param duration - Animation duration in seconds (default: 0.5)
233
+ * @param vars - Additional GSAP tween options
234
+ * @returns Promise that resolves to GSAP Tween instance
235
+ *
236
+ * @example
237
+ * ```typescript
238
+ * gsapPlugin.animate(sprite, {
239
+ * rotation: Math.PI * 2,
240
+ * alpha: 0.5,
241
+ * scale: { x: 2, y: 2 }
242
+ * }, 2.0, {
243
+ * ease: 'bounce.out'
244
+ * });
245
+ * ```
246
+ */
247
+ animate(target: gsap.TweenTarget, props: object, vars?: gsap.TweenVars): Promise<gsap.core.Tween>;
248
+ /**
249
+ * Creates a staggered sequence of animations.
250
+ *
251
+ * Executes multiple animations with a time delay between each.
252
+ *
253
+ * @param animations - Array of functions that return GSAP Tweens
254
+ * @param stagger - Time delay between each animation in seconds (default: 0.1)
255
+ * @returns Promise that resolves to GSAP Timeline instance
256
+ *
257
+ * @example
258
+ * ```typescript
259
+ * const items = [item1, item2, item3, item4];
260
+ *
261
+ * gsapPlugin.timeline(
262
+ * items.map(item => () => gsapPlugin.fadeIn(item, 0.3)),
263
+ * 0.15 // 0.15s delay between each
264
+ * );
265
+ * ```
266
+ */
267
+ timeline(animations: Array<() => gsap.core.Tween>, stagger?: number): Promise<gsap.core.Timeline>;
268
+ /**
269
+ * Creates a delayed function call.
270
+ *
271
+ * Executes a callback after a specified delay.
272
+ *
273
+ * @param delay - Delay in seconds before executing the callback
274
+ * @param callback - Function to execute after the delay
275
+ * @param params - Optional parameters to pass to the callback
276
+ * @returns GSAP Tween instance (can be used to kill the delayed call)
277
+ *
278
+ * @example
279
+ * ```typescript
280
+ * // Simple delayed call
281
+ * gsapPlugin.delayedCall(2, () => console.log('2 seconds passed'));
282
+ *
283
+ * // With parameters
284
+ * gsapPlugin.delayedCall(1.5, (msg) => console.log(msg), ['Hello!']);
285
+ *
286
+ * // Store reference to cancel later
287
+ * const call = gsapPlugin.delayedCall(5, doSomething);
288
+ * call.kill(); // Cancel the delayed call
289
+ * ```
290
+ */
291
+ delayedCall(delay: number, callback: gsap.Callback, params?: any[]): gsap.core.Tween;
292
+ /**
293
+ * Waits for a duration using GSAP delayedCall.
294
+ * Respects engine pause/resume via GSAP ticker sleep/wake.
295
+ *
296
+ * @param duration - Delay in seconds
297
+ * @returns Promise that resolves after the delay
298
+ *
299
+ * @example
300
+ * ```typescript
301
+ * await gsapPlugin.delay(0.5);
302
+ * showPopup();
303
+ * ```
304
+ */
305
+ delay(duration: number): Promise<void>;
306
+ }
307
+ //# sourceMappingURL=GsapPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GsapPlugin.d.ts","sourceRoot":"","sources":["../../../plugins/gsap/GsapPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,qBAAa,UAAW,YAAW,YAAY;IAC7C;;OAEG;IACI,IAAI,EAAE,MAAM,CAAgB;IAEnC;;OAEG;IACI,QAAQ,EAAE,MAAM,CAAO;IAE9B;;OAEG;IACI,YAAY,EA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AC,SAAS,GACpB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IAkB3B;;;;;;;;;;;;;;;;;;;OAmBG;IACI,MAAM,CACX,MAAM,EAAE,SAAS,EACjB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,QAAQ,GAAE,MAAY,EACtB,IAAI,CAAC,EAAE,IAAI,CAAC,SAAS,GACpB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IAiB3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACI,OAAO,CACZ,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,IAAI,CAAC,SAAS,GACpB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IAe3B;;;;;;;;;;;;;;;;;;OAkBG;IACI,QAAQ,CACb,UAAU,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EACxC,OAAO,GAAE,MAAY,GACpB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IAU9B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACI,WAAW,CAChB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,MAAM,CAAC,EAAE,GAAG,EAAE,GACb,IAAI,CAAC,IAAI,CAAC,KAAK;IAKlB;;;;;;;;;;;;OAYG;IACI,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK9C"}
@@ -0,0 +1,2 @@
1
+ export * from './GsapPlugin';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../plugins/gsap/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ export * from './device';
2
+ export * from './resource';
3
+ export * from './display';
4
+ export * from './eventbus';
5
+ export * from './gsap';
6
+ export * from './input';
7
+ export * from './language';
8
+ export * from './scene';
9
+ export * from './sentry';
10
+ export * from './service';
11
+ export * from './skin';
12
+ export * from './sound';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}