@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,228 @@
1
+ import { PointData } from 'pixi.js';
2
+ import { EaseSegment, SimpleEase } from './ParticleUtils';
3
+ import { ValueList } from './PropertyNode';
4
+ /**
5
+ * Full Emitter configuration for initializing an Emitter instance.
6
+ */
7
+ export interface EmitterConfigV3 {
8
+ /**
9
+ * Random number configuration for picking the lifetime for each particle..
10
+ */
11
+ lifetime: RandNumber;
12
+ /**
13
+ * Easing to be applied to all interpolated or stepped values across the particle lifetime.
14
+ */
15
+ ease?: SimpleEase | EaseSegment[];
16
+ /**
17
+ * How many particles to spawn at once, each time that it is determined that particles should be spawned.
18
+ * If omitted, only one particle will spawn at a time.
19
+ */
20
+ particlesPerWave?: number;
21
+ /**
22
+ * How often to spawn particles. This is a value in seconds, so a value of 0.5 would be twice a second.
23
+ */
24
+ frequency: number;
25
+ /**
26
+ * Defines a chance to not spawn particles. Values lower than 1 mean particles may not be spawned each time.
27
+ * If omitted, particles will always spawn.
28
+ */
29
+ spawnChance?: number;
30
+ /**
31
+ * How long to run the Emitter before it stops spawning particles. If omitted, runs forever (or until told to stop
32
+ * manually).
33
+ */
34
+ emitterLifetime?: number;
35
+ /**
36
+ * Maximum number of particles that can be alive at any given time for this emitter.
37
+ */
38
+ maxParticles?: number;
39
+ /**
40
+ * If newly spawned particles should be added to the back of the parent container (to make them less conspicuous
41
+ * as they pop in). If omitted, particles will be added to the top of the container.
42
+ */
43
+ addAtBack?: boolean;
44
+ /**
45
+ * Default position to spawn particles from inside the parent container.
46
+ */
47
+ pos: {
48
+ x: number;
49
+ y: number;
50
+ };
51
+ /**
52
+ * If the emitter should start out emitting particles. If omitted, it will be treated as `true` and will emit particles
53
+ * immediately.
54
+ */
55
+ emit?: boolean;
56
+ /**
57
+ * If the Emitter should hook into PixiJS's shared ticker. If this is false or emitted, you will be responsible for
58
+ * connecting it to update ticks.
59
+ */
60
+ autoUpdate?: boolean;
61
+ /**
62
+ * The list of behaviors to apply to this emitter. See the behaviors namespace for
63
+ * a list of built in behaviors. Custom behaviors may be registered with {@link Emitter.registerBehavior}.
64
+ */
65
+ behaviors: BehaviorEntry[];
66
+ }
67
+ /**
68
+ * See {@link EmitterConfigV3.behaviors}
69
+ */
70
+ export interface BehaviorEntry {
71
+ /**
72
+ * The behavior type, as defined as the static `type` property of a behavior class.
73
+ */
74
+ type: string;
75
+ /**
76
+ * Configuration data specific to that behavior.
77
+ */
78
+ config: any;
79
+ }
80
+ /**
81
+ * Configuration for how to pick a random number (inclusive).
82
+ */
83
+ export interface RandNumber {
84
+ /**
85
+ * Maximum pickable value.
86
+ */
87
+ max: number;
88
+ /**
89
+ * Minimum pickable value.
90
+ */
91
+ min: number;
92
+ }
93
+ /**
94
+ * Converts emitter configuration from pre-5.0.0 library values into the current version.
95
+ *
96
+ * Example usage:
97
+ * ```javascript
98
+ * const emitter = new Emitter(myContainer, upgradeConfig(myOldConfig, [myTexture, myOtherTexture]));
99
+ * ```
100
+ * @param config The old emitter config to upgrade.
101
+ * @param art The old art values as would have been passed into the Emitter constructor or `Emitter.init()`
102
+ */
103
+ export declare function upgradeConfig(config: EmitterConfigV2 | EmitterConfigV1, art: any): EmitterConfigV3;
104
+ /**
105
+ * The obsolete emitter configuration format from version 3.0.0 of the library.
106
+ * This type information is kept to make it easy to upgrade, but otherwise
107
+ * configuration should be made as {@link EmitterConfigV3}.
108
+ */
109
+ export interface EmitterConfigV2 {
110
+ alpha?: ValueList<number>;
111
+ speed?: ValueList<number>;
112
+ minimumSpeedMultiplier?: number;
113
+ maxSpeed?: number;
114
+ acceleration?: {
115
+ x: number;
116
+ y: number;
117
+ };
118
+ scale?: ValueList<number>;
119
+ minimumScaleMultiplier?: number;
120
+ color?: ValueList<string>;
121
+ startRotation?: RandNumber;
122
+ noRotation?: boolean;
123
+ rotationSpeed?: RandNumber;
124
+ rotationAcceleration?: number;
125
+ lifetime: RandNumber;
126
+ blendMode?: string;
127
+ ease?: SimpleEase | EaseSegment[];
128
+ extraData?: any;
129
+ particlesPerWave?: number;
130
+ /**
131
+ * Really "rect"|"circle"|"ring"|"burst"|"point"|"polygonalChain", but that
132
+ * tends to be too strict for random object creation.
133
+ */
134
+ spawnType?: string;
135
+ spawnRect?: {
136
+ x: number;
137
+ y: number;
138
+ w: number;
139
+ h: number;
140
+ };
141
+ spawnCircle?: {
142
+ x: number;
143
+ y: number;
144
+ r: number;
145
+ minR?: number;
146
+ };
147
+ particleSpacing?: number;
148
+ angleStart?: number;
149
+ spawnPolygon?: PointData[] | PointData[][];
150
+ frequency: number;
151
+ spawnChance?: number;
152
+ emitterLifetime?: number;
153
+ maxParticles?: number;
154
+ addAtBack?: boolean;
155
+ pos: {
156
+ x: number;
157
+ y: number;
158
+ };
159
+ emit?: boolean;
160
+ autoUpdate?: boolean;
161
+ orderedArt?: boolean;
162
+ }
163
+ export interface BasicTweenable<T> {
164
+ start: T;
165
+ end: T;
166
+ }
167
+ /**
168
+ * The obsolete emitter configuration format of the initial library release.
169
+ * This type information is kept to maintain compatibility with the older particle tool, but otherwise
170
+ * configuration should be made as {@link EmitterConfigV3}.
171
+ */
172
+ export interface EmitterConfigV1 {
173
+ alpha?: BasicTweenable<number>;
174
+ speed?: BasicTweenable<number> & {
175
+ minimumSpeedMultiplier?: number;
176
+ };
177
+ maxSpeed?: number;
178
+ acceleration?: {
179
+ x: number;
180
+ y: number;
181
+ };
182
+ scale?: BasicTweenable<number> & {
183
+ minimumScaleMultiplier?: number;
184
+ };
185
+ color?: BasicTweenable<string>;
186
+ startRotation?: RandNumber;
187
+ noRotation?: boolean;
188
+ rotationSpeed?: RandNumber;
189
+ rotationAcceleration?: number;
190
+ lifetime: RandNumber;
191
+ blendMode?: string;
192
+ ease?: SimpleEase | EaseSegment[];
193
+ extraData?: any;
194
+ particlesPerWave?: number;
195
+ /**
196
+ * Really "rect"|"circle"|"ring"|"burst"|"point"|"polygonalChain", but that
197
+ * tends to be too strict for random object creation.
198
+ */
199
+ spawnType?: string;
200
+ spawnRect?: {
201
+ x: number;
202
+ y: number;
203
+ w: number;
204
+ h: number;
205
+ };
206
+ spawnCircle?: {
207
+ x: number;
208
+ y: number;
209
+ r: number;
210
+ minR?: number;
211
+ };
212
+ particleSpacing?: number;
213
+ angleStart?: number;
214
+ spawnPolygon?: PointData[] | PointData[][];
215
+ frequency: number;
216
+ spawnChance?: number;
217
+ emitterLifetime?: number;
218
+ maxParticles?: number;
219
+ addAtBack?: boolean;
220
+ pos: {
221
+ x: number;
222
+ y: number;
223
+ };
224
+ emit?: boolean;
225
+ autoUpdate?: boolean;
226
+ orderedArt?: boolean;
227
+ }
228
+ //# sourceMappingURL=EmitterConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmitterConfig.d.ts","sourceRoot":"","sources":["../../particle/EmitterConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,EAAE,CAAC;IAClC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SA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AM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,CAAC;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -0,0 +1,7 @@
1
+ import { Container } from "pixi.js";
2
+ /** Interface for a child of a LinkedListContainer (has the prev/next properties added) */
3
+ export interface LinkedListChild extends Container {
4
+ nextChild: LinkedListChild | null;
5
+ prevChild: LinkedListChild | null;
6
+ }
7
+ //# sourceMappingURL=LinkedListContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkedListContainer.d.ts","sourceRoot":"","sources":["../../particle/LinkedListContainer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,0FAA0F;AAC1F,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAC9C,SAAS,EAAE,eAAe,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,eAAe,GAAG,IAAI,CAAC;CACrC"}
@@ -0,0 +1,63 @@
1
+ import { Sprite } from 'pixi.js';
2
+ import { Emitter } from './Emitter';
3
+ import { LinkedListChild } from './LinkedListContainer';
4
+ /**
5
+ * An individual particle image. You shouldn't have to deal with these.
6
+ */
7
+ export declare class Particle extends Sprite implements LinkedListChild {
8
+ /**
9
+ * The emitter that controls this particle.
10
+ */
11
+ emitter: Emitter;
12
+ /**
13
+ * The maximum lifetime of this particle, in seconds.
14
+ */
15
+ maxLife: number;
16
+ /**
17
+ * The current age of the particle, in seconds.
18
+ */
19
+ age: number;
20
+ /**
21
+ * The current age of the particle as a normalized value between 0 and 1.
22
+ */
23
+ agePercent: number;
24
+ /**
25
+ * One divided by the max life of the particle, saved for slightly faster math.
26
+ */
27
+ oneOverLife: number;
28
+ /**
29
+ * Reference to the next particle in the list.
30
+ */
31
+ next: Particle;
32
+ /**
33
+ * Reference to the previous particle in the list.
34
+ */
35
+ prev: Particle;
36
+ prevChild: LinkedListChild;
37
+ nextChild: LinkedListChild;
38
+ /**
39
+ * Static per-particle configuration for behaviors to use. Is not cleared when recycling.
40
+ */
41
+ config: {
42
+ [key: string]: any;
43
+ };
44
+ /**
45
+ * @param emitter The emitter that controls this particle.
46
+ */
47
+ constructor(emitter: Emitter);
48
+ /**
49
+ * Initializes the particle for use, based on the properties that have to
50
+ * have been set already on the particle.
51
+ */
52
+ init(maxLife: number): void;
53
+ /**
54
+ * Kills the particle, removing it from the display list
55
+ * and telling the emitter to recycle it.
56
+ */
57
+ kill(): void;
58
+ /**
59
+ * Destroys the particle, removing references and preventing future use.
60
+ */
61
+ destroy(): void;
62
+ }
63
+ //# sourceMappingURL=Particle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Particle.d.ts","sourceRoot":"","sources":["../../particle/Particle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD;;GAEG;AACH,qBAAa,QAAS,SAAQ,MAAO,YAAW,eAAe;IAC3D;;OAEG;IACI,OAAO,EAAE,OAAO,CAAC;IACxB;;OAEG;IACI,OAAO,EAAE,MAAM,CAAC;IACvB;;OAEG;IACI,GAAG,EAAE,MAAM,CAAC;IACnB;;OAEG;IACI,UAAU,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACI,WAAW,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACI,IAAI,EAAE,QAAQ,CAAC;IAEtB;;OAEG;IACI,IAAI,EAAE,QAAQ,CAAC;IAEf,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAElC;;OAEG;IACI,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAEtC;;OAEG;gBACS,OAAO,EAAE,OAAO;IAuB5B;;;OAGG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAiBlC;;;OAGG;IACI,IAAI,IAAI,IAAI;IAInB;;OAEG;IACI,OAAO,IAAI,IAAI;CAOzB"}
@@ -0,0 +1,97 @@
1
+ import { PointData, Texture } from 'pixi.js';
2
+ import { PropertyNode, ValueStep } from './PropertyNode';
3
+ /**
4
+ * The method used by behaviors to fetch textures. Defaults to Texture.from.
5
+ */
6
+ export declare let GetTextureFromString: (d: string) => Texture;
7
+ /**
8
+ * A color value, split apart for interpolation.
9
+ */
10
+ export interface Color {
11
+ r: number;
12
+ g: number;
13
+ b: number;
14
+ a?: number;
15
+ }
16
+ export interface EaseSegment {
17
+ cp: number;
18
+ s: number;
19
+ e: number;
20
+ }
21
+ /**
22
+ * The basic easing function used. Takes in a value between 0-1, and outputs another value between 0-1.
23
+ * For example, a basic quadratic in ease would be `(time) => time * time`
24
+ */
25
+ export type SimpleEase = (time: number) => number;
26
+ /**
27
+ * If errors and warnings should be logged within the library.
28
+ */
29
+ export declare const verbose = false;
30
+ export declare const DEG_TO_RADS: number;
31
+ /**
32
+ * Rotates a point by a given angle.
33
+ * @param angle The angle to rotate by in radians
34
+ * @param p The point to rotate around 0,0.
35
+ */
36
+ export declare function rotatePoint(angle: number, p: PointData): void;
37
+ /**
38
+ * Combines separate color components (0-255) into a single uint color.
39
+ * @param r The red value of the color
40
+ * @param g The green value of the color
41
+ * @param b The blue value of the color
42
+ * @return The color in the form of 0xRRGGBB
43
+ */
44
+ export declare function combineRGBComponents(r: number, g: number, b: number): number;
45
+ /**
46
+ * Returns the length (or magnitude) of this point.
47
+ * @param point The point to measure length
48
+ * @return The length of this point.
49
+ */
50
+ export declare function length(point: PointData): number;
51
+ /**
52
+ * Reduces the point to a length of 1.
53
+ * @param point The point to normalize
54
+ */
55
+ export declare function normalize(point: PointData): void;
56
+ /**
57
+ * Multiplies the x and y values of this point by a value.
58
+ * @param point The point to scaleBy
59
+ * @param value The value to scale by.
60
+ */
61
+ export declare function scaleBy(point: PointData, value: number): void;
62
+ /**
63
+ * Converts a hex string from "#AARRGGBB", "#RRGGBB", "0xAARRGGBB", "0xRRGGBB",
64
+ * "AARRGGBB", or "RRGGBB" to an object of ints of 0-255, as
65
+ * {r, g, b, (a)}.
66
+ * @param color The input color string.
67
+ * @param output An object to put the output in. If omitted, a new object is created.
68
+ * @return The object with r, g, and b properties, possibly with an a property.
69
+ */
70
+ export declare function hexToRGB(color: string, output?: Color): Color;
71
+ /**
72
+ * Generates a custom ease function, based on the GreenSock custom ease, as demonstrated
73
+ * by the related tool at http://www.greensock.com/customease/.
74
+ * @param segments An array of segments, as created by
75
+ * http://www.greensock.com/customease/.
76
+ * @return A function that calculates the percentage of change at
77
+ * a given point in time (0-1 inclusive).
78
+ */
79
+ export declare function generateEase(segments: EaseSegment[]): SimpleEase;
80
+ type BLEND_MODES = 'inherit' | 'normal' | 'add' | 'multiply' | 'screen' | 'darken' | 'lighten' | 'erase' | 'color-dodge' | 'color-burn' | 'linear-burn' | 'linear-dodge' | 'linear-light' | 'hard-light' | 'soft-light' | 'pin-light' | 'difference' | 'exclusion' | 'overlay' | 'saturation' | 'color' | 'luminosity' | 'normal-npm' | 'add-npm' | 'screen-npm' | 'none' | 'subtract' | 'divide' | 'vivid-light' | 'hard-mix' | 'negation' | 'min' | 'max';
81
+ /**
82
+ * Gets a blend mode, ensuring that it is valid.
83
+ * @param name The name of the blend mode to get.
84
+ * @return The blend mode as specified in the PIXI.BLEND_MODES enumeration.
85
+ */
86
+ export declare function getBlendMode(name: string): BLEND_MODES;
87
+ /**
88
+ * Converts a list of {value, time} objects starting at time 0 and ending at time 1 into an evenly
89
+ * spaced stepped list of PropertyNodes for color values. This is primarily to handle conversion of
90
+ * linear gradients to fewer colors, allowing for some optimization for Canvas2d fallbacks.
91
+ * @param list The list of data to convert.
92
+ * @param [numSteps=10] The number of steps to use.
93
+ * @return The blend mode as specified in the PIXI.blendModes enumeration.
94
+ */
95
+ export declare function createSteppedGradient(list: ValueStep<string>[], numSteps?: number): PropertyNode<Color>;
96
+ export {};
97
+ //# sourceMappingURL=ParticleUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParticleUtils.d.ts","sourceRoot":"","sources":["../../particle/ParticleUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEzD;;GAEG;AAGH,eAAO,IAAI,oBAAoB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAsB,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,KAAK;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,OAAO,QAAQ,CAAC;AAE7B,eAAO,MAAM,WAAW,QAAgB,CAAC;AAEzC;;;;GAIG;AACH,wBAAg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AC,MAAM,CAAC,EAAE,EAAE,QAAQ,SAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAqCnG"}
@@ -0,0 +1,40 @@
1
+ import { SimpleEase } from './ParticleUtils';
2
+ import { PropertyNode } from './PropertyNode';
3
+ /**
4
+ * Singly linked list container for keeping track of interpolated properties for particles.
5
+ * Each Particle will have one of these for each interpolated property.
6
+ */
7
+ export declare class PropertyList<V> {
8
+ /**
9
+ * The first property node in the linked list.
10
+ */
11
+ first: PropertyNode<V>;
12
+ /**
13
+ * Calculates the correct value for the current interpolation value. This method is set in
14
+ * the reset() method.
15
+ * @param lerp The interpolation value from 0-1.
16
+ * @return The interpolated value. Colors are converted to the hex value.
17
+ */
18
+ interpolate: (lerp: number) => number;
19
+ /**
20
+ * A custom easing method for this list.
21
+ * @param lerp The interpolation value from 0-1.
22
+ * @return The eased value, also from 0-1.
23
+ */
24
+ ease: SimpleEase;
25
+ /**
26
+ * If this list manages colors, which requires a different method for interpolation.
27
+ */
28
+ private isColor;
29
+ /**
30
+ * @param isColor If this list handles color values
31
+ */
32
+ constructor(isColor?: boolean);
33
+ /**
34
+ * Resets the list for use.
35
+ * @param first The first node in the list.
36
+ * @param first.isStepped If the values should be stepped instead of interpolated linearly.
37
+ */
38
+ reset(first: PropertyNode<V>): void;
39
+ }
40
+ //# sourceMappingURL=PropertyList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyList.d.ts","sourceRoot":"","sources":["../../particle/PropertyList.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,UAAU,EAAS,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAsF9C;;;GAGG;AACH,qBAAa,YAAY,CAAC,CAAC;IACvB;;OAEG;IACI,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B;;;;;OAKG;IACI,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C;;;;OAIG;IACI,IAAI,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,OAAO,CAAU;IAEzB;;OAEG;gBACS,OAAO,UAAQ;IAO3B;;;;OAIG;IACI,KAAK,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI;CAe7C"}
@@ -0,0 +1,74 @@
1
+ import { EaseSegment, SimpleEase, Color } from './ParticleUtils';
2
+ import { BasicTweenable } from './EmitterConfig';
3
+ /**
4
+ * A single step of a ValueList.
5
+ */
6
+ export interface ValueStep<T> {
7
+ /**
8
+ * The color or number to use at this step.
9
+ */
10
+ value: T;
11
+ /**
12
+ * The percentage time of the particle's lifespan that this step happens at.
13
+ * Values are between 0 and 1, inclusive.
14
+ */
15
+ time: number;
16
+ }
17
+ /**
18
+ * Configuration for an interpolated or stepped list of numeric or color particle values.
19
+ */
20
+ export interface ValueList<T> {
21
+ /**
22
+ * The ordered list of values.
23
+ */
24
+ list: ValueStep<T>[];
25
+ /**
26
+ * If the list is stepped. Stepped lists don't determine any in-between values, instead sticking with each value
27
+ * until its time runs out.
28
+ */
29
+ isStepped?: boolean;
30
+ /**
31
+ * Easing that should be applied to this list, in order to alter how quickly the steps progress.
32
+ */
33
+ ease?: SimpleEase | EaseSegment[];
34
+ }
35
+ /**
36
+ * A single node in a PropertyList.
37
+ */
38
+ export declare class PropertyNode<V> {
39
+ /**
40
+ * Value for the node.
41
+ */
42
+ value: V;
43
+ /**
44
+ * Time value for the node. Between 0-1.
45
+ */
46
+ time: number;
47
+ /**
48
+ * The next node in line.
49
+ */
50
+ next: PropertyNode<V>;
51
+ /**
52
+ * If this is the first node in the list, controls if the entire list is stepped or not.
53
+ */
54
+ isStepped: boolean;
55
+ ease: SimpleEase;
56
+ /**
57
+ * @param value The value for this node
58
+ * @param time The time for this node, between 0-1
59
+ * @param [ease] Custom ease for this list. Only relevant for the first node.
60
+ */
61
+ constructor(value: V, time: number, ease?: SimpleEase | EaseSegment[]);
62
+ /**
63
+ * Creates a list of property values from a data object {list, isStepped} with a list of objects in
64
+ * the form {value, time}. Alternatively, the data object can be in the deprecated form of
65
+ * {start, end}.
66
+ * @param data The data for the list.
67
+ * @param data.list The array of value and time objects.
68
+ * @param data.isStepped If the list is stepped rather than interpolated.
69
+ * @param data.ease Custom ease for this list.
70
+ * @return The first node in the list
71
+ */
72
+ static createList<T extends (string | number)>(data: ValueList<T> | BasicTweenable<T>): PropertyNode<T extends string ? Color : T>;
73
+ }
74
+ //# sourceMappingURL=PropertyNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyNode.d.ts","sourceRoot":"","sources":["../../particle/PropertyNode.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC;IACT;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,EAAE,CAAC;CACrC;AACD;;GAEG;AACH,qBAAa,YAAY,CAAC,CAAC;IACvB;;OAEG;IACI,KAAK,EAAE,CAAC,CAAC;IAChB;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IACpB;;OAEG;IACI,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC7B;;OAEG;IACI,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;IAExB;;;;OAIG;gBACS,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,EAAE;IAarE;;;;;;;;;OASG;WAEW,UAAU,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,GAAG,CAAC,CAAC;CAiC5I"}
@@ -0,0 +1,55 @@
1
+ import { Container } from 'pixi.js';
2
+ import { Emitter } from './Emitter';
3
+ import { EmitterConfigV3 } from './EmitterConfig';
4
+ /**
5
+ * Configuration for SpineEmitter, extends standard EmitterConfigV3
6
+ * Makes 'pos' optional since SpineEmitter can default to {x: 0, y: 0}
7
+ */
8
+ export interface SpineEmitterConfig extends Omit<EmitterConfigV3, 'pos'> {
9
+ /**
10
+ * Spine data configuration
11
+ */
12
+ spineData: {
13
+ /**
14
+ * Skeleton asset key (without extension)
15
+ */
16
+ skeleton: string;
17
+ /**
18
+ * Atlas asset key (without extension)
19
+ */
20
+ atlas: string;
21
+ };
22
+ /**
23
+ * Default position to spawn particles from inside the parent container.
24
+ * Defaults to {x: 0, y: 0} if not provided.
25
+ */
26
+ pos?: {
27
+ x: number;
28
+ y: number;
29
+ };
30
+ }
31
+ /**
32
+ * A particle emitter that uses Spine animations instead of sprite textures.
33
+ * Each particle is a SpineParticle containing a Spine instance.
34
+ *
35
+ * Overrides createParticle() to create SpineParticle instances instead of
36
+ * regular Particle (Sprite) instances.
37
+ */
38
+ export declare class SpineEmitter extends Emitter {
39
+ /**
40
+ * Skeleton asset key for creating Spine instances
41
+ */
42
+ protected skeletonKey: string;
43
+ /**
44
+ * Atlas asset key for creating Spine instances
45
+ */
46
+ protected atlasKey: string;
47
+ constructor(particleParent: Container, config: SpineEmitterConfig);
48
+ /**
49
+ * Override createParticle to return SpineParticle instead of Particle.
50
+ * This is called by the base Emitter when spawning new particles.
51
+ * Returns any to satisfy base class signature while actually returning SpineParticle.
52
+ */
53
+ protected createParticle(): any;
54
+ }
55
+ //# sourceMappingURL=SpineEmitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpineEmitter.d.ts","sourceRoot":"","sources":["../../particle/SpineEmitter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC;IACtE;;OAEG;IACH,SAAS,EAAE;QACT;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF;;;OAGG;IACH,GAAG,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC;AAED;;;;;;GAMG;AACH,qBAAa,YAAa,SAAQ,OAAO;IACvC;;OAEG;IACH,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEf,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB;IAkBjE;;;;OAIG;cACgB,cAAc,IAAI,GAAG;CASzC"}
@@ -0,0 +1,74 @@
1
+ import { Container } from 'pixi.js';
2
+ import { Spine } from '@esotericsoftware/spine-pixi-v8';
3
+ import { LinkedListChild } from './LinkedListContainer';
4
+ /**
5
+ * A Spine-based particle. Uses a Spine animation instead of a Sprite texture.
6
+ * Extends Container to hold the Spine instance.
7
+ */
8
+ export declare class SpineParticle extends Container implements LinkedListChild {
9
+ /**
10
+ * The Spine instance for this particle.
11
+ */
12
+ spine: Spine;
13
+ /**
14
+ * The emitter that controls this particle.
15
+ * Using any to avoid circular dependency with SpineEmitter.
16
+ */
17
+ emitter: any;
18
+ /**
19
+ * The maximum lifetime of this particle, in seconds.
20
+ */
21
+ maxLife: number;
22
+ /**
23
+ * The current age of the particle, in seconds.
24
+ */
25
+ age: number;
26
+ /**
27
+ * The current age of the particle as a normalized value between 0 and 1.
28
+ */
29
+ agePercent: number;
30
+ /**
31
+ * One divided by the max life of the particle, saved for slightly faster math.
32
+ */
33
+ oneOverLife: number;
34
+ /**
35
+ * Reference to the next particle in the list.
36
+ */
37
+ next: SpineParticle;
38
+ /**
39
+ * Reference to the previous particle in the list.
40
+ */
41
+ prev: SpineParticle;
42
+ prevChild: LinkedListChild;
43
+ nextChild: LinkedListChild;
44
+ /**
45
+ * Static per-particle configuration for behaviors to use. Is not cleared when recycling.
46
+ */
47
+ config: {
48
+ [key: string]: any;
49
+ };
50
+ /**
51
+ * @param emitter The emitter that controls this particle.
52
+ */
53
+ constructor(emitter: any);
54
+ /**
55
+ * Sets the Spine instance for this particle.
56
+ * Called by SpineEmitter when creating the particle.
57
+ */
58
+ setSpine(spine: Spine): void;
59
+ /**
60
+ * Initializes the particle for use, based on the properties that have to
61
+ * have been set already on the particle.
62
+ */
63
+ init(maxLife: number): void;
64
+ /**
65
+ * Kills the particle, removing it from the display list
66
+ * and telling the emitter to recycle it.
67
+ */
68
+ kill(): void;
69
+ /**
70
+ * Destroys the particle, removing references and preventing future use.
71
+ */
72
+ destroy(): void;
73
+ }
74
+ //# sourceMappingURL=SpineParticle.d.ts.map