bard-legends-framework 0.12.0 → 1.0.0-rc0

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 (653) hide show
  1. package/dist/index.d.mts +976 -0
  2. package/dist/index.d.ts +976 -4
  3. package/dist/index.js +67 -21
  4. package/dist/index.mjs +67 -0
  5. package/package.json +26 -11
  6. package/dist/_interfaces/index.d.ts +0 -6
  7. package/dist/_interfaces/index.js +0 -2
  8. package/dist/actions-performance.test.d.ts +0 -1
  9. package/dist/actions-performance.test.js +0 -83
  10. package/dist/game-entities/_base/attachable.d.ts +0 -10
  11. package/dist/game-entities/_base/attachable.js +0 -47
  12. package/dist/game-entities/_base/attachable.store.d.ts +0 -8
  13. package/dist/game-entities/_base/attachable.store.js +0 -43
  14. package/dist/game-entities/_base/attachment-target.d.ts +0 -16
  15. package/dist/game-entities/_base/attachment-target.js +0 -53
  16. package/dist/game-entities/_base/destroyable.d.ts +0 -3
  17. package/dist/game-entities/_base/destroyable.js +0 -10
  18. package/dist/game-entities/_base/interfaces.d.ts +0 -3
  19. package/dist/game-entities/_base/interfaces.js +0 -3
  20. package/dist/game-entities/_base/mixins.d.ts +0 -22
  21. package/dist/game-entities/_base/mixins.js +0 -60
  22. package/dist/game-entities/attachable/attachable.d.ts +0 -10
  23. package/dist/game-entities/attachable/attachable.js +0 -34
  24. package/dist/game-entities/attachable/attachable.spec.d.ts +0 -1
  25. package/dist/game-entities/attachable/attachable.spec.js +0 -137
  26. package/dist/game-entities/attachable/attachable.store.d.ts +0 -8
  27. package/dist/game-entities/attachable/attachable.store.js +0 -41
  28. package/dist/game-entities/attachable/attachable.test.d.ts +0 -1
  29. package/dist/game-entities/attachable/attachable.test.js +0 -140
  30. package/dist/game-entities/attachable/destroyable.d.ts +0 -17
  31. package/dist/game-entities/attachable/destroyable.js +0 -71
  32. package/dist/game-entities/attachable/helpers/decorate-actions-lib.d.ts +0 -20
  33. package/dist/game-entities/attachable/helpers/decorate-actions-lib.js +0 -134
  34. package/dist/game-entities/attachable/helpers/referance-variable.d.ts +0 -19
  35. package/dist/game-entities/attachable/helpers/referance-variable.js +0 -51
  36. package/dist/game-entities/attachable/interfaces.d.ts +0 -14
  37. package/dist/game-entities/attachable/interfaces.js +0 -2
  38. package/dist/game-entities/base/attachable.d.ts +0 -18
  39. package/dist/game-entities/base/attachable.js +0 -94
  40. package/dist/game-entities/base/attachable.test.d.ts +0 -1
  41. package/dist/game-entities/base/attachable.test.js +0 -125
  42. package/dist/game-entities/base/attachment-target.d.ts +0 -9
  43. package/dist/game-entities/base/attachment-target.js +0 -53
  44. package/dist/game-entities/base/attachment-target.test.d.ts +0 -1
  45. package/dist/game-entities/base/attachment-target.test.js +0 -131
  46. package/dist/game-entities/base/destroyable.d.ts +0 -16
  47. package/dist/game-entities/base/destroyable.js +0 -61
  48. package/dist/game-entities/base/helpers/attachable.store.d.ts +0 -2
  49. package/dist/game-entities/base/helpers/attachable.store.js +0 -68
  50. package/dist/game-entities/base/helpers/attachable.store.test.d.ts +0 -1
  51. package/dist/game-entities/base/helpers/attachable.store.test.js +0 -234
  52. package/dist/game-entities/base/helpers/attachment-target.store.d.ts +0 -1
  53. package/dist/game-entities/base/helpers/attachment-target.store.js +0 -40
  54. package/dist/game-entities/base/helpers/decorate-actions-lib.d.ts +0 -20
  55. package/dist/game-entities/base/helpers/decorate-actions-lib.js +0 -124
  56. package/dist/game-entities/base/helpers/referance-variable.d.ts +0 -19
  57. package/dist/game-entities/base/helpers/referance-variable.js +0 -52
  58. package/dist/game-entities/base/interfaces.d.ts +0 -14
  59. package/dist/game-entities/base/interfaces.js +0 -3
  60. package/dist/game-entities/controller/controller.d.ts +0 -9
  61. package/dist/game-entities/controller/controller.js +0 -53
  62. package/dist/game-entities/controller/controller.spec.d.ts +0 -1
  63. package/dist/game-entities/controller/controller.spec.js +0 -131
  64. package/dist/game-entities/controller/controller.test.d.ts +0 -1
  65. package/dist/game-entities/controller/controller.test.js +0 -128
  66. package/dist/game-entities/entity/entity.d.ts +0 -15
  67. package/dist/game-entities/entity/entity.js +0 -73
  68. package/dist/game-entities/entity/entity.spec.d.ts +0 -1
  69. package/dist/game-entities/entity/entity.spec.js +0 -271
  70. package/dist/game-entities/entity/entity.test.d.ts +0 -1
  71. package/dist/game-entities/entity/entity.test.js +0 -253
  72. package/dist/game-entities/entity/helpers/entity-store.helper.d.ts +0 -11
  73. package/dist/game-entities/entity/helpers/entity-store.helper.js +0 -46
  74. package/dist/game-entities/entity/helpers/entity-store.helper.test.d.ts +0 -1
  75. package/dist/game-entities/entity/helpers/entity-store.helper.test.js +0 -136
  76. package/dist/game-entities/entity/helpers/entity-views.helper.d.ts +0 -14
  77. package/dist/game-entities/entity/helpers/entity-views.helper.js +0 -71
  78. package/dist/game-entities/entity/helpers/view-creation.helper.d.ts +0 -11
  79. package/dist/game-entities/entity/helpers/view-creation.helper.js +0 -57
  80. package/dist/game-entities/entity/singleton-entity.d.ts +0 -6
  81. package/dist/game-entities/entity/singleton-entity.js +0 -23
  82. package/dist/game-entities/entity/singleton-entity.test.d.ts +0 -1
  83. package/dist/game-entities/entity/singleton-entity.test.js +0 -66
  84. package/dist/game-entities/hard-reset.d.ts +0 -5
  85. package/dist/game-entities/hard-reset.js +0 -14
  86. package/dist/game-entities/index.d.ts +0 -8
  87. package/dist/game-entities/index.js +0 -25
  88. package/dist/game-entities/scene/scene.d.ts +0 -27
  89. package/dist/game-entities/scene/scene.js +0 -106
  90. package/dist/game-entities/scene/scene.spec.d.ts +0 -1
  91. package/dist/game-entities/scene/scene.spec.js +0 -227
  92. package/dist/game-entities/scene/scene.test.d.ts +0 -1
  93. package/dist/game-entities/scene/scene.test.js +0 -275
  94. package/dist/game-entities/service/service.d.ts +0 -6
  95. package/dist/game-entities/service/service.js +0 -59
  96. package/dist/game-entities/service/service.spec.d.ts +0 -1
  97. package/dist/game-entities/service/service.spec.js +0 -273
  98. package/dist/game-entities/service/service.test.d.ts +0 -1
  99. package/dist/game-entities/service/service.test.js +0 -273
  100. package/dist/game-entities/unit-test.helper.d.ts +0 -5
  101. package/dist/game-entities/unit-test.helper.js +0 -14
  102. package/dist/game-entities/update-cycle.d.ts +0 -25
  103. package/dist/game-entities/update-cycle.js +0 -67
  104. package/dist/game-entities/update-loop.d.ts +0 -21
  105. package/dist/game-entities/update-loop.js +0 -53
  106. package/dist/game-entities/view/view.d.ts +0 -16
  107. package/dist/game-entities/view/view.js +0 -56
  108. package/dist/game-entities/view/view.spec.d.ts +0 -1
  109. package/dist/game-entities/view/view.spec.js +0 -498
  110. package/dist/game-entities/view/view.test.d.ts +0 -1
  111. package/dist/game-entities/view/view.test.js +0 -348
  112. package/dist/lib/animator/animations.d.ts +0 -25
  113. package/dist/lib/animator/animations.js +0 -61
  114. package/dist/lib/animator/animator.d.ts +0 -52
  115. package/dist/lib/animator/animator.js +0 -219
  116. package/dist/lib/animator/animator.spec.d.ts +0 -1
  117. package/dist/lib/animator/animator.spec.js +0 -702
  118. package/dist/lib/animator/index.d.ts +0 -2
  119. package/dist/lib/animator/index.js +0 -24
  120. package/dist/lib/libraries/animator/animations.d.ts +0 -25
  121. package/dist/lib/libraries/animator/animations.js +0 -61
  122. package/dist/lib/libraries/animator/animator.d.ts +0 -52
  123. package/dist/lib/libraries/animator/animator.js +0 -219
  124. package/dist/lib/libraries/animator/animator.spec.d.ts +0 -1
  125. package/dist/lib/libraries/animator/animator.spec.js +0 -702
  126. package/dist/lib/libraries/animator/index.d.ts +0 -2
  127. package/dist/lib/libraries/animator/index.js +0 -24
  128. package/dist/lib/libraries/path-finder/path-finder.d.ts +0 -5
  129. package/dist/lib/libraries/path-finder/path-finder.js +0 -23
  130. package/dist/lib/path-finder/path-finder.d.ts +0 -5
  131. package/dist/lib/path-finder/path-finder.js +0 -23
  132. package/dist/lib/services/keyboard/keyboard.d.ts +0 -7
  133. package/dist/lib/services/keyboard/keyboard.js +0 -44
  134. package/dist/lib/services/mouse/mouse.service.d.ts +0 -12
  135. package/dist/lib/services/mouse/mouse.service.js +0 -70
  136. package/dist/lib/services/mouse/mouser-target-focus.service.d.ts +0 -16
  137. package/dist/lib/services/mouse/mouser-target-focus.service.js +0 -93
  138. package/dist/lib/update-loop.d.ts +0 -13
  139. package/dist/lib/update-loop.js +0 -44
  140. package/dist/physics/entitity-types/immovable-physics-entity.d.ts +0 -13
  141. package/dist/physics/entitity-types/immovable-physics-entity.js +0 -27
  142. package/dist/physics/entitity-types/movable-entity.d.ts +0 -11
  143. package/dist/physics/entitity-types/movable-entity.js +0 -25
  144. package/dist/physics/entitity-types/movable-physics-entity.d.ts +0 -21
  145. package/dist/physics/entitity-types/movable-physics-entity.js +0 -87
  146. package/dist/physics/entitity-types/physics-entity.d.ts +0 -31
  147. package/dist/physics/entitity-types/physics-entity.js +0 -106
  148. package/dist/physics/entity-types/immovable-physics-entity.d.ts +0 -9
  149. package/dist/physics/entity-types/immovable-physics-entity.js +0 -25
  150. package/dist/physics/entity-types/movable-entity.d.ts +0 -11
  151. package/dist/physics/entity-types/movable-entity.js +0 -26
  152. package/dist/physics/entity-types/movable-physics-entity.d.ts +0 -19
  153. package/dist/physics/entity-types/movable-physics-entity.js +0 -94
  154. package/dist/physics/entity-types/physics-entity.d.ts +0 -30
  155. package/dist/physics/entity-types/physics-entity.js +0 -90
  156. package/dist/physics/helpers/closest-available-space.helper.d.ts +0 -19
  157. package/dist/physics/helpers/closest-available-space.helper.js +0 -109
  158. package/dist/physics/helpers/closest-available-space.helper.spec.d.ts +0 -1
  159. package/dist/physics/helpers/closest-available-space.helper.spec.js +0 -118
  160. package/dist/physics/helpers/p2js.helper.d.ts +0 -7
  161. package/dist/physics/helpers/p2js.helper.js +0 -25
  162. package/dist/physics/helpers/shape-factory.d.ts +0 -13
  163. package/dist/physics/helpers/shape-factory.js +0 -109
  164. package/dist/physics/index.d.ts +0 -6
  165. package/dist/physics/index.js +0 -28
  166. package/dist/physics/interfaces.d.ts +0 -48
  167. package/dist/physics/interfaces.js +0 -13
  168. package/dist/physics/libs/p2js.helper.d.ts +0 -10
  169. package/dist/physics/libs/p2js.helper.js +0 -46
  170. package/dist/physics/libs/physics-body-groups.d.ts +0 -1
  171. package/dist/physics/libs/physics-body-groups.js +0 -3
  172. package/dist/physics/libs/position-to-grid-position-converter.d.ts +0 -6
  173. package/dist/physics/libs/position-to-grid-position-converter.js +0 -19
  174. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.d.ts +0 -29
  175. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.js +0 -62
  176. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.d.ts +0 -34
  177. package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.js +0 -80
  178. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -24
  179. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -3
  180. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.d.ts +0 -30
  181. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.js +0 -3
  182. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.d.ts +0 -21
  183. package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.js +0 -5
  184. package/dist/physics/module//342/232/234/357/270/217gateways/index.d.ts +0 -4
  185. package/dist/physics/module//342/232/234/357/270/217gateways/index.js +0 -26
  186. package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.d.ts +0 -20
  187. package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.js +0 -42
  188. package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.d.ts +0 -19
  189. package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.js +0 -49
  190. package/dist/physics/module//360/237/223/220services/availability-grid.service.d.ts +0 -17
  191. package/dist/physics/module//360/237/223/220services/availability-grid.service.js +0 -83
  192. package/dist/physics/module//360/237/223/220services/border.service.d.ts +0 -5
  193. package/dist/physics/module//360/237/223/220services/border.service.js +0 -62
  194. package/dist/physics/module//360/237/223/220services/collision/collisions.service.d.ts +0 -10
  195. package/dist/physics/module//360/237/223/220services/collision/collisions.service.js +0 -113
  196. package/dist/physics/module//360/237/223/220services/collision/hit-test.service.d.ts +0 -10
  197. package/dist/physics/module//360/237/223/220services/collision/hit-test.service.js +0 -75
  198. package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.d.ts +0 -12
  199. package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.js +0 -61
  200. package/dist/physics/module//360/237/223/220services/collisions.service.d.ts +0 -10
  201. package/dist/physics/module//360/237/223/220services/collisions.service.js +0 -118
  202. package/dist/physics/module//360/237/223/220services/creation/border.service.d.ts +0 -6
  203. package/dist/physics/module//360/237/223/220services/creation/border.service.js +0 -42
  204. package/dist/physics/module//360/237/223/220services/creation/materials.service.d.ts +0 -15
  205. package/dist/physics/module//360/237/223/220services/creation/materials.service.js +0 -120
  206. package/dist/physics/module//360/237/223/220services/creation/physics-world.service.d.ts +0 -21
  207. package/dist/physics/module//360/237/223/220services/creation/physics-world.service.js +0 -116
  208. package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.d.ts +0 -9
  209. package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.js +0 -98
  210. package/dist/physics/module//360/237/223/220services/debug-visuals.service.d.ts +0 -36
  211. package/dist/physics/module//360/237/223/220services/debug-visuals.service.js +0 -127
  212. package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.d.ts +0 -22
  213. package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.js +0 -126
  214. package/dist/physics/module//360/237/223/220services/explosion.service.d.ts +0 -21
  215. package/dist/physics/module//360/237/223/220services/explosion.service.js +0 -112
  216. package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.d.ts +0 -22
  217. package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.js +0 -126
  218. package/dist/physics/module//360/237/223/220services/explosions/explosion.service.d.ts +0 -21
  219. package/dist/physics/module//360/237/223/220services/explosions/explosion.service.js +0 -112
  220. package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.d.ts +0 -9
  221. package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.js +0 -77
  222. package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.d.ts +0 -9
  223. package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.js +0 -77
  224. package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.d.ts +0 -18
  225. package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.js +0 -107
  226. package/dist/physics/module//360/237/223/220services/impact/explosion.service.d.ts +0 -18
  227. package/dist/physics/module//360/237/223/220services/impact/explosion.service.js +0 -93
  228. package/dist/physics/module//360/237/223/220services/impact/impact.service.d.ts +0 -5
  229. package/dist/physics/module//360/237/223/220services/impact/impact.service.js +0 -23
  230. package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.d.ts +0 -9
  231. package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.js +0 -83
  232. package/dist/physics/module//360/237/223/220services/materials.service.d.ts +0 -20
  233. package/dist/physics/module//360/237/223/220services/materials.service.js +0 -130
  234. package/dist/physics/module//360/237/223/220services/path-finder.service.d.ts +0 -26
  235. package/dist/physics/module//360/237/223/220services/path-finder.service.js +0 -131
  236. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.d.ts +0 -15
  237. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.js +0 -51
  238. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.d.ts +0 -16
  239. package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.js +0 -76
  240. package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.d.ts +0 -14
  241. package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.js +0 -86
  242. package/dist/physics/module//360/237/223/220services/physics-world.service.d.ts +0 -41
  243. package/dist/physics/module//360/237/223/220services/physics-world.service.js +0 -134
  244. package/dist/physics/module//360/237/223/220services/query/physics-query.service.d.ts +0 -9
  245. package/dist/physics/module//360/237/223/220services/query/physics-query.service.js +0 -25
  246. package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.d.ts +0 -9
  247. package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.js +0 -91
  248. package/dist/physics/module//360/237/223/220services/ray-casting.service.d.ts +0 -9
  249. package/dist/physics/module//360/237/223/220services/ray-casting.service.js +0 -93
  250. package/dist/physics/module//360/237/223/220services/shape-creation.service.d.ts +0 -14
  251. package/dist/physics/module//360/237/223/220services/shape-creation.service.js +0 -124
  252. package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.d.ts +0 -22
  253. package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.js +0 -157
  254. package/dist/physics/module//360/237/247/212entities/border.entity.d.ts +0 -5
  255. package/dist/physics/module//360/237/247/212entities/border.entity.js +0 -25
  256. package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.d.ts +0 -12
  257. package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.js +0 -39
  258. package/dist/physics/module//360/237/247/212entities/physics-world.entity.d.ts +0 -33
  259. package/dist/physics/module//360/237/247/212entities/physics-world.entity.js +0 -51
  260. package/dist/physics/physics-world.d.ts +0 -62
  261. package/dist/physics/physics-world.js +0 -153
  262. package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.d.ts +0 -6
  263. package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.js +0 -19
  264. package/dist/physics/sub-elements/available-spaces/physics-availability-grid.d.ts +0 -15
  265. package/dist/physics/sub-elements/available-spaces/physics-availability-grid.js +0 -92
  266. package/dist/physics/sub-elements/available-spaces/physics-available-spaces.d.ts +0 -26
  267. package/dist/physics/sub-elements/available-spaces/physics-available-spaces.js +0 -102
  268. package/dist/physics/sub-elements/collisions/contact-equation-orginiser.d.ts +0 -18
  269. package/dist/physics/sub-elements/collisions/contact-equation-orginiser.js +0 -90
  270. package/dist/physics/sub-elements/collisions/physics-collision.d.ts +0 -12
  271. package/dist/physics/sub-elements/collisions/physics-collision.js +0 -50
  272. package/dist/physics/sub-elements/elements/physics-body-groups.d.ts +0 -15
  273. package/dist/physics/sub-elements/elements/physics-body-groups.js +0 -76
  274. package/dist/physics/sub-elements/elements/physics-materials.d.ts +0 -19
  275. package/dist/physics/sub-elements/elements/physics-materials.js +0 -108
  276. package/dist/physics/sub-elements/elements/physics-world-borders.d.ts +0 -11
  277. package/dist/physics/sub-elements/elements/physics-world-borders.js +0 -77
  278. package/dist/physics/sub-elements/physics-body-groups.d.ts +0 -12
  279. package/dist/physics/sub-elements/physics-body-groups.js +0 -54
  280. package/dist/physics/sub-elements/physics-collision.d.ts +0 -22
  281. package/dist/physics/sub-elements/physics-collision.js +0 -155
  282. package/dist/physics/sub-elements/physics-materials.d.ts +0 -19
  283. package/dist/physics/sub-elements/physics-materials.js +0 -108
  284. package/dist/physics/sub-elements/physics-world-borders.d.ts +0 -6
  285. package/dist/physics/sub-elements/physics-world-borders.js +0 -29
  286. package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.d.ts +0 -20
  287. package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.js +0 -65
  288. package/dist/physics/sub-elements/raycasting/physics-explosion.d.ts +0 -20
  289. package/dist/physics/sub-elements/raycasting/physics-explosion.js +0 -115
  290. package/dist/physics/sub-elements/raycasting/ray-cast.d.ts +0 -27
  291. package/dist/physics/sub-elements/raycasting/ray-cast.js +0 -101
  292. package/dist/pixi/components/display-object-array.d.ts +0 -28
  293. package/dist/pixi/components/display-object-array.js +0 -62
  294. package/dist/pixi/components/helpers/smooth-scroller.d.ts +0 -25
  295. package/dist/pixi/components/helpers/smooth-scroller.js +0 -63
  296. package/dist/pixi/components/helpers/smooth-scroller.test.d.ts +0 -1
  297. package/dist/pixi/components/helpers/smooth-scroller.test.js +0 -137
  298. package/dist/pixi/components/menu/menu-entity.d.ts +0 -14
  299. package/dist/pixi/components/menu/menu-entity.js +0 -48
  300. package/dist/pixi/components/menu/menu.ui.d.ts +0 -23
  301. package/dist/pixi/components/menu/menu.ui.js +0 -97
  302. package/dist/pixi/components/mouse-wheel-listener.ui.d.ts +0 -11
  303. package/dist/pixi/components/mouse-wheel-listener.ui.js +0 -63
  304. package/dist/pixi/components/scroll-area.ui.d.ts +0 -18
  305. package/dist/pixi/components/scroll-area.ui.js +0 -56
  306. package/dist/pixi/components/scroll-mask.ui.d.ts +0 -17
  307. package/dist/pixi/components/scroll-mask.ui.js +0 -132
  308. package/dist/pixi/display-object/components/filters.d.ts +0 -21
  309. package/dist/pixi/display-object/components/filters.js +0 -116
  310. package/dist/pixi/display-object/components/glow-effect.d.ts +0 -12
  311. package/dist/pixi/display-object/components/glow-effect.js +0 -40
  312. package/dist/pixi/display-object/components/glow-filter.d.ts +0 -12
  313. package/dist/pixi/display-object/components/glow-filter.js +0 -40
  314. package/dist/pixi/display-object/container-attributes.d.ts +0 -99
  315. package/dist/pixi/display-object/container-attributes.js +0 -313
  316. package/dist/pixi/display-object/container.d.ts +0 -22
  317. package/dist/pixi/display-object/container.js +0 -72
  318. package/dist/pixi/display-object/display-object-attributes.d.ts +0 -45
  319. package/dist/pixi/display-object/display-object-attributes.js +0 -152
  320. package/dist/pixi/display-object/display-object.d.ts +0 -25
  321. package/dist/pixi/display-object/display-object.js +0 -87
  322. package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.d.ts +0 -13
  323. package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.js +0 -103
  324. package/dist/pixi/display-object/filters/base-filters/blur.filter.d.ts +0 -11
  325. package/dist/pixi/display-object/filters/base-filters/blur.filter.js +0 -115
  326. package/dist/pixi/display-object/filters/base-filters/contrast-filter.d.ts +0 -12
  327. package/dist/pixi/display-object/filters/base-filters/contrast-filter.js +0 -72
  328. package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.d.ts +0 -14
  329. package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.js +0 -107
  330. package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.d.ts +0 -16
  331. package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.js +0 -133
  332. package/dist/pixi/display-object/filters/base-filters/expand-with-color.d.ts +0 -14
  333. package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.d.ts +0 -9
  334. package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.js +0 -103
  335. package/dist/pixi/display-object/filters/base-filters/expand-with-color.js +0 -107
  336. package/dist/pixi/display-object/filters/composite-filters/glow-filter.d.ts +0 -8
  337. package/dist/pixi/display-object/filters/composite-filters/glow-filter.js +0 -59
  338. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.d.ts +0 -10
  339. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.js +0 -64
  340. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.d.ts +0 -1
  341. package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.js +0 -31
  342. package/dist/pixi/display-object/filters/templates/checking-neighbors.template.d.ts +0 -7
  343. package/dist/pixi/display-object/filters/templates/checking-neighbors.template.js +0 -74
  344. package/dist/pixi/display-object/filters/templates/plane.template.d.ts +0 -7
  345. package/dist/pixi/display-object/filters/templates/plane.template.js +0 -65
  346. package/dist/pixi/display-object/filters.d.ts +0 -29
  347. package/dist/pixi/display-object/filters.js +0 -151
  348. package/dist/pixi/display-object/index.d.ts +0 -9
  349. package/dist/pixi/display-object/index.js +0 -19
  350. package/dist/pixi/display-object/objects/components/filters.d.ts +0 -21
  351. package/dist/pixi/display-object/objects/components/filters.js +0 -116
  352. package/dist/pixi/display-object/objects/container.d.ts +0 -6
  353. package/dist/pixi/display-object/objects/container.js +0 -47
  354. package/dist/pixi/display-object/objects/graphics/graphics.d.ts +0 -34
  355. package/dist/pixi/display-object/objects/graphics/graphics.js +0 -201
  356. package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.d.ts +0 -16
  357. package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.js +0 -45
  358. package/dist/pixi/display-object/objects/graphics.d.ts +0 -40
  359. package/dist/pixi/display-object/objects/graphics.js +0 -229
  360. package/dist/pixi/display-object/objects/helpers/filters.d.ts +0 -29
  361. package/dist/pixi/display-object/objects/helpers/filters.js +0 -161
  362. package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.d.ts +0 -11
  363. package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.js +0 -129
  364. package/dist/pixi/display-object/objects/placeholder.d.ts +0 -7
  365. package/dist/pixi/display-object/objects/placeholder.js +0 -46
  366. package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.d.ts +0 -9
  367. package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.js +0 -89
  368. package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.d.ts +0 -11
  369. package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.js +0 -113
  370. package/dist/pixi/display-object/objects/sprite/sprite.d.ts +0 -52
  371. package/dist/pixi/display-object/objects/sprite/sprite.js +0 -269
  372. package/dist/pixi/display-object/objects/sprite.d.ts +0 -51
  373. package/dist/pixi/display-object/objects/sprite.js +0 -273
  374. package/dist/pixi/display-object/objects/text/helpers/index.d.ts +0 -8
  375. package/dist/pixi/display-object/objects/text/helpers/index.js +0 -6
  376. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.d.ts +0 -30
  377. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.js +0 -53
  378. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.d.ts +0 -19
  379. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.js +0 -162
  380. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.d.ts +0 -1
  381. package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.js +0 -371
  382. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.d.ts +0 -6
  383. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.js +0 -70
  384. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.d.ts +0 -1
  385. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.js +0 -136
  386. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.d.ts +0 -37
  387. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.js +0 -169
  388. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.d.ts +0 -1
  389. package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.js +0 -283
  390. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.d.ts +0 -8
  391. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.js +0 -88
  392. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.d.ts +0 -1
  393. package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.js +0 -152
  394. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.d.ts +0 -28
  395. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.js +0 -37
  396. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.d.ts +0 -5
  397. package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.js +0 -669
  398. package/dist/pixi/display-object/objects/text/rich-text.d.ts +0 -19
  399. package/dist/pixi/display-object/objects/text/rich-text.js +0 -15
  400. package/dist/pixi/display-object/objects/text/text.d.ts +0 -25
  401. package/dist/pixi/display-object/objects/text/text.js +0 -132
  402. package/dist/pixi/display-object/objects/text.d.ts +0 -35
  403. package/dist/pixi/display-object/objects/text.js +0 -124
  404. package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.d.ts +0 -22
  405. package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.js +0 -107
  406. package/dist/pixi/game.d.ts +0 -47
  407. package/dist/pixi/game.js +0 -137
  408. package/dist/pixi/helpers/game-assets.d.ts +0 -15
  409. package/dist/pixi/helpers/game-assets.js +0 -103
  410. package/dist/pixi/helpers/glow-sprite-generator.d.ts +0 -10
  411. package/dist/pixi/helpers/glow-sprite-generator.js +0 -113
  412. package/dist/pixi/helpers/pixi-container.helper.d.ts +0 -5
  413. package/dist/pixi/helpers/pixi-container.helper.js +0 -14
  414. package/dist/pixi/helpers/position-conversion.helper.d.ts +0 -12
  415. package/dist/pixi/helpers/position-conversion.helper.js +0 -54
  416. package/dist/pixi/helpers/position-conversion.helper.test.d.ts +0 -1
  417. package/dist/pixi/helpers/position-conversion.helper.test.js +0 -83
  418. package/dist/pixi/helpers/screen-position-to-stage.helper.d.ts +0 -4
  419. package/dist/pixi/helpers/screen-position-to-stage.helper.js +0 -17
  420. package/dist/pixi/helpers/screen-position-to-stage.helper.test.d.ts +0 -1
  421. package/dist/pixi/helpers/screen-position-to-stage.helper.test.js +0 -178
  422. package/dist/pixi/index.d.ts +0 -14
  423. package/dist/pixi/index.js +0 -44
  424. package/dist/pixi/modules/CAMERA/camera.d.ts +0 -13
  425. package/dist/pixi/modules/CAMERA/camera.js +0 -27
  426. package/dist/pixi/modules/CAMERA/index.d.ts +0 -2
  427. package/dist/pixi/modules/CAMERA/index.js +0 -9
  428. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.d.ts +0 -8
  429. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.js +0 -24
  430. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.d.ts +0 -11
  431. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.js +0 -33
  432. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.d.ts +0 -6
  433. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.js +0 -30
  434. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.d.ts +0 -12
  435. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.js +0 -41
  436. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -19
  437. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -18
  438. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.d.ts +0 -3
  439. package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.js +0 -27
  440. package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.d.ts +0 -12
  441. package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.js +0 -96
  442. package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.d.ts +0 -18
  443. package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.js +0 -26
  444. package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.d.ts +0 -23
  445. package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.js +0 -115
  446. package/dist/pixi/pixi-definitions.d.ts +0 -38
  447. package/dist/pixi/pixi-definitions.js +0 -37
  448. package/dist/pixi/services/keyboard/keyboard.d.ts +0 -12
  449. package/dist/pixi/services/keyboard/keyboard.js +0 -54
  450. package/dist/pixi/services/mouse/mouse-target-focus.service.d.ts +0 -21
  451. package/dist/pixi/services/mouse/mouse-target-focus.service.js +0 -86
  452. package/dist/pixi/services/mouse/mouse.service.d.ts +0 -21
  453. package/dist/pixi/services/mouse/mouse.service.js +0 -101
  454. package/dist/services/keyboard/keyboard.d.ts +0 -7
  455. package/dist/services/keyboard/keyboard.js +0 -44
  456. package/dist/services/mouse/mouse.service.d.ts +0 -12
  457. package/dist/services/mouse/mouse.service.js +0 -70
  458. package/dist/services/mouse/mouser-target-focus.service.d.ts +0 -16
  459. package/dist/services/mouse/mouser-target-focus.service.js +0 -93
  460. package/dist/utilities/animator/animating-content/fade-in-content.d.ts +0 -18
  461. package/dist/utilities/animator/animating-content/fade-in-content.js +0 -37
  462. package/dist/utilities/animator/animating-content/fade-in-content.test.d.ts +0 -1
  463. package/dist/utilities/animator/animating-content/fade-in-content.test.js +0 -10
  464. package/dist/utilities/animator/animating-content/slide-in-content.d.ts +0 -37
  465. package/dist/utilities/animator/animating-content/slide-in-content.js +0 -99
  466. package/dist/utilities/animator/animating-content/slide-in-content.test.d.ts +0 -1
  467. package/dist/utilities/animator/animating-content/slide-in-content.test.js +0 -10
  468. package/dist/utilities/animator/animations.d.ts +0 -45
  469. package/dist/utilities/animator/animations.js +0 -92
  470. package/dist/utilities/animator/animator/animator.d.ts +0 -44
  471. package/dist/utilities/animator/animator/animator.js +0 -234
  472. package/dist/utilities/animator/animator/animator.memory-leak.test.d.ts +0 -1
  473. package/dist/utilities/animator/animator/animator.memory-leak.test.js +0 -73
  474. package/dist/utilities/animator/animator/animator.performance.test.d.ts +0 -1
  475. package/dist/utilities/animator/animator/animator.performance.test.js +0 -116
  476. package/dist/utilities/animator/animator/animator.test.d.ts +0 -1
  477. package/dist/utilities/animator/animator/animator.test.js +0 -1046
  478. package/dist/utilities/animator/animator.d.ts +0 -60
  479. package/dist/utilities/animator/animator.js +0 -322
  480. package/dist/utilities/animator/animator.performance.test.d.ts +0 -1
  481. package/dist/utilities/animator/animator.performance.test.js +0 -46
  482. package/dist/utilities/animator/animator.test.d.ts +0 -1
  483. package/dist/utilities/animator/animator.test.js +0 -928
  484. package/dist/utilities/animator/animator2/animator.d.ts +0 -42
  485. package/dist/utilities/animator/animator2/animator.js +0 -222
  486. package/dist/utilities/animator/animator2/animator.memory-leak.test.d.ts +0 -1
  487. package/dist/utilities/animator/animator2/animator.memory-leak.test.js +0 -73
  488. package/dist/utilities/animator/animator2/animator.performance.test.d.ts +0 -1
  489. package/dist/utilities/animator/animator2/animator.performance.test.js +0 -65
  490. package/dist/utilities/animator/animator2/animator.test.d.ts +0 -1
  491. package/dist/utilities/animator/animator2/animator.test.js +0 -1007
  492. package/dist/utilities/animator/animator_old/animator.d.ts +0 -60
  493. package/dist/utilities/animator/animator_old/animator.js +0 -337
  494. package/dist/utilities/animator/animator_old/animator.performance.test.d.ts +0 -1
  495. package/dist/utilities/animator/animator_old/animator.performance.test.js +0 -121
  496. package/dist/utilities/animator/animator_old/animator.test.d.ts +0 -1
  497. package/dist/utilities/animator/animator_old/animator.test.js +0 -996
  498. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.d.ts +0 -18
  499. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.js +0 -37
  500. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.d.ts +0 -1
  501. package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.js +0 -10
  502. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.d.ts +0 -38
  503. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.js +0 -208
  504. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.d.ts +0 -1
  505. package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.js +0 -439
  506. package/dist/utilities/animator/content-animations/slide/slide-in-content.d.ts +0 -41
  507. package/dist/utilities/animator/content-animations/slide/slide-in-content.js +0 -107
  508. package/dist/utilities/animator/content-animations/slide/slide-in-content.test.d.ts +0 -1
  509. package/dist/utilities/animator/content-animations/slide/slide-in-content.test.js +0 -10
  510. package/dist/utilities/animator/content-animations/slide/slide-state-animation.d.ts +0 -24
  511. package/dist/utilities/animator/content-animations/slide/slide-state-animation.js +0 -138
  512. package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.d.ts +0 -1
  513. package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.js +0 -307
  514. package/dist/utilities/animator/content-animations/slide/state-animation.d.ts +0 -37
  515. package/dist/utilities/animator/content-animations/slide/state-animation.js +0 -170
  516. package/dist/utilities/animator/content-animations/slide/state-animation.test.d.ts +0 -1
  517. package/dist/utilities/animator/content-animations/slide/state-animation.test.js +0 -340
  518. package/dist/utilities/animator/index.d.ts +0 -7
  519. package/dist/utilities/animator/index.js +0 -24
  520. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.d.ts +0 -18
  521. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.js +0 -37
  522. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.d.ts +0 -1
  523. package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.js +0 -10
  524. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.d.ts +0 -32
  525. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.js +0 -168
  526. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.d.ts +0 -1
  527. package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.js +0 -431
  528. package/dist/utilities/animator/state-animation/slide/slide-in-content.d.ts +0 -37
  529. package/dist/utilities/animator/state-animation/slide/slide-in-content.js +0 -100
  530. package/dist/utilities/animator/state-animation/slide/slide-in-content.test.d.ts +0 -1
  531. package/dist/utilities/animator/state-animation/slide/slide-in-content.test.js +0 -10
  532. package/dist/utilities/animator/state-animation/slide/slide-state-animation.d.ts +0 -24
  533. package/dist/utilities/animator/state-animation/slide/slide-state-animation.js +0 -130
  534. package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.d.ts +0 -1
  535. package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.js +0 -301
  536. package/dist/utilities/animator/state-animation/slide-state-animation.d.ts +0 -24
  537. package/dist/utilities/animator/state-animation/slide-state-animation.js +0 -130
  538. package/dist/utilities/animator/state-animation/slide-state-animation.test.d.ts +0 -1
  539. package/dist/utilities/animator/state-animation/slide-state-animation.test.js +0 -301
  540. package/dist/utilities/animator/state-animation/state-animation.d.ts +0 -33
  541. package/dist/utilities/animator/state-animation/state-animation.js +0 -146
  542. package/dist/utilities/animator/state-animation/state-animation.test.d.ts +0 -1
  543. package/dist/utilities/animator/state-animation/state-animation.test.js +0 -335
  544. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
  545. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.js +0 -168
  546. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
  547. package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.js +0 -431
  548. package/dist/utilities/data-structures/vector-set/vector-set.d.ts +0 -7
  549. package/dist/utilities/data-structures/vector-set/vector-set.js +0 -26
  550. package/dist/utilities/delta-time/delta-time.d.ts +0 -3
  551. package/dist/utilities/delta-time/delta-time.js +0 -10
  552. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
  553. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
  554. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
  555. package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
  556. package/dist/utilities/grid-algorithms/path-finder/path-finder.d.ts +0 -8
  557. package/dist/utilities/grid-algorithms/path-finder/path-finder.js +0 -98
  558. package/dist/utilities/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
  559. package/dist/utilities/grid-algorithms/path-finder/path-finder.test.js +0 -155
  560. package/dist/utilities/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
  561. package/dist/utilities/grid-algorithms/position-to-grid-position-converter.js +0 -17
  562. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
  563. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
  564. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
  565. package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
  566. package/dist/utilities/index.d.ts +0 -6
  567. package/dist/utilities/index.js +0 -29
  568. package/dist/utilities/libraries/animator/animating-content/fade-in-content.d.ts +0 -18
  569. package/dist/utilities/libraries/animator/animating-content/fade-in-content.js +0 -37
  570. package/dist/utilities/libraries/animator/animating-content/slide-in-content.d.ts +0 -37
  571. package/dist/utilities/libraries/animator/animating-content/slide-in-content.js +0 -99
  572. package/dist/utilities/libraries/animator/animating-content/state-animation.d.ts +0 -36
  573. package/dist/utilities/libraries/animator/animating-content/state-animation.js +0 -174
  574. package/dist/utilities/libraries/animator/animating-content/state-animation.test.d.ts +0 -1
  575. package/dist/utilities/libraries/animator/animating-content/state-animation.test.js +0 -399
  576. package/dist/utilities/libraries/animator/animations.d.ts +0 -37
  577. package/dist/utilities/libraries/animator/animations.js +0 -88
  578. package/dist/utilities/libraries/animator/animator.d.ts +0 -63
  579. package/dist/utilities/libraries/animator/animator.js +0 -325
  580. package/dist/utilities/libraries/animator/animator.spec.d.ts +0 -1
  581. package/dist/utilities/libraries/animator/animator.spec.js +0 -779
  582. package/dist/utilities/libraries/animator/animator.test.d.ts +0 -1
  583. package/dist/utilities/libraries/animator/animator.test.js +0 -893
  584. package/dist/utilities/libraries/animator/index.d.ts +0 -7
  585. package/dist/utilities/libraries/animator/index.js +0 -24
  586. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.d.ts +0 -24
  587. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.js +0 -131
  588. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.d.ts +0 -1
  589. package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.js +0 -326
  590. package/dist/utilities/libraries/animator/state-animation/state-animation.d.ts +0 -33
  591. package/dist/utilities/libraries/animator/state-animation/state-animation.js +0 -147
  592. package/dist/utilities/libraries/animator/state-animation/state-animation.test.d.ts +0 -1
  593. package/dist/utilities/libraries/animator/state-animation/state-animation.test.js +0 -360
  594. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
  595. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.js +0 -169
  596. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
  597. package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.js +0 -456
  598. package/dist/utilities/libraries/binary-heap/binary-heap.d.ts +0 -13
  599. package/dist/utilities/libraries/binary-heap/binary-heap.js +0 -110
  600. package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.d.ts +0 -13
  601. package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.js +0 -110
  602. package/dist/utilities/libraries/data-structures/grid/grid.d.ts +0 -38
  603. package/dist/utilities/libraries/data-structures/grid/grid.js +0 -133
  604. package/dist/utilities/libraries/data-structures/grid/grid.spec.d.ts +0 -1
  605. package/dist/utilities/libraries/data-structures/grid/grid.spec.js +0 -178
  606. package/dist/utilities/libraries/data-structures/grid/grid.test.d.ts +0 -1
  607. package/dist/utilities/libraries/data-structures/grid/grid.test.js +0 -220
  608. package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.d.ts +0 -6
  609. package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.js +0 -19
  610. package/dist/utilities/libraries/data-structures/queue/queue.d.ts +0 -23
  611. package/dist/utilities/libraries/data-structures/queue/queue.js +0 -72
  612. package/dist/utilities/libraries/data-structures/queue/queue.test.d.ts +0 -1
  613. package/dist/utilities/libraries/data-structures/queue/queue.test.js +0 -57
  614. package/dist/utilities/libraries/data-structures/vector-set/vector-set.d.ts +0 -7
  615. package/dist/utilities/libraries/data-structures/vector-set/vector-set.js +0 -26
  616. package/dist/utilities/libraries/delta-time/delta-time.d.ts +0 -3
  617. package/dist/utilities/libraries/delta-time/delta-time.js +0 -10
  618. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
  619. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
  620. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.d.ts +0 -1
  621. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.js +0 -124
  622. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
  623. package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
  624. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.d.ts +0 -8
  625. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.js +0 -98
  626. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.d.ts +0 -1
  627. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.js +0 -169
  628. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
  629. package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.js +0 -155
  630. package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
  631. package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.js +0 -17
  632. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
  633. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
  634. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.d.ts +0 -1
  635. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.js +0 -296
  636. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
  637. package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
  638. package/dist/utilities/libraries/path-finder/path-finder.d.ts +0 -12
  639. package/dist/utilities/libraries/path-finder/path-finder.js +0 -127
  640. package/dist/utilities/libraries/path-finder/path-finder.spec.d.ts +0 -1
  641. package/dist/utilities/libraries/path-finder/path-finder.spec.js +0 -158
  642. package/dist/utilities/services/keyboard/keyboard.d.ts +0 -7
  643. package/dist/utilities/services/keyboard/keyboard.js +0 -47
  644. package/dist/utilities/services/mouse/helpers/mouse-position.helper.d.ts +0 -4
  645. package/dist/utilities/services/mouse/helpers/mouse-position.helper.js +0 -17
  646. package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.d.ts +0 -1
  647. package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.js +0 -172
  648. package/dist/utilities/services/mouse/mouse-target-focus.service.d.ts +0 -20
  649. package/dist/utilities/services/mouse/mouse-target-focus.service.js +0 -88
  650. package/dist/utilities/services/mouse/mouse.service.d.ts +0 -13
  651. package/dist/utilities/services/mouse/mouse.service.js +0 -91
  652. package/dist/utilities/services/mouse/mouser-target-focus.service.d.ts +0 -16
  653. package/dist/utilities/services/mouse/mouser-target-focus.service.js +0 -93
@@ -1,779 +0,0 @@
1
- var __createBinding =
2
- (this && this.__createBinding) ||
3
- (Object.create
4
- ? (o, m, k, k2) => {
5
- if (k2 === undefined) k2 = k;
6
- var desc = Object.getOwnPropertyDescriptor(m, k);
7
- if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
- desc = { enumerable: true, get: () => m[k] };
9
- }
10
- Object.defineProperty(o, k2, desc);
11
- }
12
- : (o, m, k, k2) => {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- });
16
- var __setModuleDefault =
17
- (this && this.__setModuleDefault) ||
18
- (Object.create
19
- ? (o, v) => {
20
- Object.defineProperty(o, 'default', { enumerable: true, value: v });
21
- }
22
- : (o, v) => {
23
- o['default'] = v;
24
- });
25
- var __importStar =
26
- (this && this.__importStar) ||
27
- (mod => {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwn(mod, k)) __createBinding(result, mod, k);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- });
34
- Object.defineProperty(exports, '__esModule', { value: true });
35
- const vitest_1 = require('vitest');
36
- const helpers_lib_1 = require('helpers-lib');
37
- const ActionsLib = __importStar(require('actions-lib'));
38
- const animator_1 = require('./animator');
39
- const animations_1 = require('./animations');
40
- const decorate_actions_lib_1 = require('../../../game-entities/attachable/helpers/decorate-actions-lib');
41
- decorate_actions_lib_1.ActionsLibDecorator.decorate(ActionsLib);
42
- (0, vitest_1.describe)('ANIMATOR', () => {
43
- (0, vitest_1.describe)('Setup', () => {
44
- (0, vitest_1.test)('constructor should throw error if target is not an object', () => {
45
- const obj = 'string';
46
- (0, vitest_1.expect)(() => {
47
- new animator_1.Animator(obj, 'x');
48
- }).toThrow();
49
- });
50
- (0, vitest_1.test)('constructor should throw error if target does not have all target properties', () => {
51
- const obj = { x: 1, y: 2, z: 3 };
52
- (0, vitest_1.expect)(() => {
53
- new animator_1.Animator(obj, ['x', 't']);
54
- }).toThrow();
55
- });
56
- (0, vitest_1.test)('constructor should throw error if target property is not a number', () => {
57
- const obj = { x: 'fail' };
58
- (0, vitest_1.expect)(() => {
59
- new animator_1.Animator(obj, ['x']);
60
- }).toThrow();
61
- });
62
- (0, vitest_1.test)('animate should throw error if non effected property tried to animate', () => {
63
- (0, vitest_1.expect)(() => {
64
- const obj = { x: 0, y: 0 };
65
- const animator = new animator_1.Animator(obj, ['x', 't']);
66
- animator.animate({ x: 5, y: 5 });
67
- }).toThrow();
68
- });
69
- (0, vitest_1.test)('should throw error if multiple animators decorate the same object', () => {
70
- (0, vitest_1.expect)(() => {
71
- const obj = { x: 0 };
72
- new animator_1.Animator(obj, 'x');
73
- new animator_1.Animator(obj, 'x');
74
- }).toThrow();
75
- });
76
- (0, vitest_1.test)('setting multiple update callbacks should throw error', () => {
77
- (0, vitest_1.expect)(() => {
78
- const obj = { x: 0 };
79
- new animator_1.Animator(obj, 'x').onChange(() => {}).onChange(() => {});
80
- }).toThrow();
81
- });
82
- });
83
- (0, vitest_1.describe)('Animate', () => {
84
- (0, vitest_1.test)('animate should not change the value before the update ticks', () => {
85
- const obj = { x: 0 };
86
- const animator = new animator_1.Animator(obj, 'x');
87
- animator.animate({ x: 5 });
88
- (0, vitest_1.expect)(obj.x).toEqual(0);
89
- });
90
- (0, vitest_1.test)('animate to target in lineer', () => {
91
- const obj = { x: 0 };
92
- const animator = new animator_1.Animator(obj, 'x', {
93
- duration: 4,
94
- animation: new animations_1.AnimationLineer()
95
- });
96
- animator.animate({ x: 4 });
97
- animator['update'](1);
98
- (0, vitest_1.expect)(obj.x).toEqual(1);
99
- animator['update'](1);
100
- (0, vitest_1.expect)(obj.x).toEqual(2);
101
- animator['update'](1);
102
- (0, vitest_1.expect)(obj.x).toEqual(3);
103
- animator['update'](1);
104
- (0, vitest_1.expect)(obj.x).toEqual(4);
105
- });
106
- (0, vitest_1.test)('animate only one property should not effect the other', () => {
107
- const obj = { x: 0, y: 0 };
108
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
109
- duration: 4,
110
- animation: new animations_1.AnimationLineer()
111
- });
112
- animator.animate({ x: 4 });
113
- animator['update'](1);
114
- (0, vitest_1.expect)(obj).toEqual({ x: 1, y: 0 });
115
- animator['update'](1);
116
- (0, vitest_1.expect)(obj).toEqual({ x: 2, y: 0 });
117
- animator['update'](1);
118
- (0, vitest_1.expect)(obj).toEqual({ x: 3, y: 0 });
119
- animator['update'](1);
120
- (0, vitest_1.expect)(obj).toEqual({ x: 4, y: 0 });
121
- });
122
- (0, vitest_1.test)('animate with custom values should override the default settings', () => {
123
- const obj = { x: 0 };
124
- const animator = new animator_1.Animator(obj, 'x', {
125
- duration: 10,
126
- animation: new animations_1.AnimationLineer()
127
- });
128
- animator.animate({ x: 10 }, { duration: 4, animation: new animations_1.AnimationEaseInOut() });
129
- animator['update'](1);
130
- (0, vitest_1.expect)(obj).toEqual({ x: 1.25 });
131
- animator['update'](1);
132
- (0, vitest_1.expect)(obj).toEqual({ x: 5 });
133
- animator['update'](1);
134
- (0, vitest_1.expect)(obj).toEqual({ x: 8.75 });
135
- animator['update'](1);
136
- (0, vitest_1.expect)(obj).toEqual({ x: 10 });
137
- });
138
- (0, vitest_1.test)('animate to target in easeInOut starting from zero', () => {
139
- const obj = { x: 0 };
140
- const animator = new animator_1.Animator(obj, 'x', {
141
- duration: 4,
142
- animation: new animations_1.AnimationEaseInOut()
143
- });
144
- animator.animate({ x: 10 });
145
- animator['update'](1);
146
- (0, vitest_1.expect)(obj.x).toEqual(1.25);
147
- animator['update'](1);
148
- (0, vitest_1.expect)(obj.x).toEqual(5);
149
- animator['update'](1);
150
- (0, vitest_1.expect)(obj.x).toEqual(8.75);
151
- animator['update'](1);
152
- (0, vitest_1.expect)(obj.x).toEqual(10);
153
- });
154
- (0, vitest_1.test)('animate to target in easeInOut starting from different value than zero', () => {
155
- const obj = { x: 10 };
156
- const animator = new animator_1.Animator(obj, 'x', {
157
- duration: 4,
158
- animation: new animations_1.AnimationEaseInOut()
159
- });
160
- animator.animate({ x: 20 });
161
- animator['update'](1);
162
- (0, vitest_1.expect)(obj.x).toEqual(11.25);
163
- animator['update'](1);
164
- (0, vitest_1.expect)(obj.x).toEqual(15);
165
- animator['update'](1);
166
- (0, vitest_1.expect)(obj.x).toEqual(18.75);
167
- animator['update'](1);
168
- (0, vitest_1.expect)(obj.x).toEqual(20);
169
- });
170
- (0, vitest_1.test)('animate to target and return back', () => {
171
- const obj = { x: 0 };
172
- const animator = new animator_1.Animator(obj, 'x', {
173
- duration: 1,
174
- animation: new animations_1.AnimationLineer()
175
- });
176
- animator.animate({ x: 4 });
177
- animator['update'](1);
178
- animator.animate({ x: 0 });
179
- animator['update'](1);
180
- (0, vitest_1.expect)(obj.x).toEqual(0);
181
- });
182
- (0, vitest_1.test)('animate onChange callbacks', () => {
183
- const obj = { x: 0 };
184
- let valueFromOnStep = 0;
185
- let onStepCallCount = 0;
186
- const animator = new animator_1.Animator(obj, 'x', {
187
- duration: 4,
188
- animation: new animations_1.AnimationEaseInOut()
189
- }).onChange(item => {
190
- valueFromOnStep = item.x;
191
- onStepCallCount++;
192
- });
193
- animator.animate({ x: 10 });
194
- (0, vitest_1.expect)(valueFromOnStep).toEqual(0);
195
- (0, vitest_1.expect)(onStepCallCount).toEqual(0);
196
- animator['update'](1);
197
- (0, vitest_1.expect)(onStepCallCount).toEqual(1);
198
- (0, vitest_1.expect)(valueFromOnStep).toEqual(1.25);
199
- animator['update'](1);
200
- (0, vitest_1.expect)(onStepCallCount).toEqual(2);
201
- (0, vitest_1.expect)(valueFromOnStep).toEqual(5);
202
- animator['update'](1);
203
- (0, vitest_1.expect)(onStepCallCount).toEqual(3);
204
- (0, vitest_1.expect)(valueFromOnStep).toEqual(8.75);
205
- animator['update'](1);
206
- (0, vitest_1.expect)(onStepCallCount).toEqual(4);
207
- (0, vitest_1.expect)(valueFromOnStep).toEqual(10);
208
- animator['update'](1);
209
- animator['update'](1);
210
- animator['update'](1);
211
- (0, vitest_1.expect)(onStepCallCount).toEqual(4);
212
- });
213
- (0, vitest_1.test)('animate onChange should not be triggered before starting the animation', () => {
214
- let onStepCallCount = 0;
215
- const animator = new animator_1.Animator({ x: 0 }, 'x', {
216
- duration: 4,
217
- animation: new animations_1.AnimationEaseInOut()
218
- }).onChange(() => {
219
- onStepCallCount++;
220
- });
221
- animator['update'](1);
222
- (0, vitest_1.expect)(onStepCallCount).toEqual(0);
223
- });
224
- (0, vitest_1.test)('animation complete promise', async () => {
225
- const obj = { x: 0 };
226
- let completed = false;
227
- const animator = new animator_1.Animator(obj, 'x');
228
- animator.animate({ x: 1 }, { duration: 2 }).then(() => {
229
- completed = true;
230
- });
231
- (0, vitest_1.expect)(completed).toBeFalsy();
232
- animator['update'](1);
233
- (0, vitest_1.expect)(completed).toBeFalsy();
234
- animator['update'](1);
235
- await (0, helpers_lib_1.Wait)();
236
- (0, vitest_1.expect)(completed).toBeTruthy();
237
- });
238
- (0, vitest_1.test)('animate getter/setter property', () => {
239
- class Foo {
240
- constructor() {
241
- this._x = 10;
242
- }
243
- get x() {
244
- return this._x;
245
- }
246
- set x(value) {
247
- this._x = value;
248
- }
249
- }
250
- const obj = new Foo();
251
- const animator = new animator_1.Animator(obj, ['x'], {
252
- duration: 4,
253
- animation: new animations_1.AnimationEaseInOut()
254
- });
255
- animator.animate({ x: 20 });
256
- animator['update'](1);
257
- (0, vitest_1.expect)(obj.x).toEqual(11.25);
258
- animator['update'](1);
259
- (0, vitest_1.expect)(obj.x).toEqual(15);
260
- animator['update'](1);
261
- (0, vitest_1.expect)(obj.x).toEqual(18.75);
262
- animator['update'](1);
263
- (0, vitest_1.expect)(obj.x).toEqual(20);
264
- });
265
- (0, vitest_1.test)('is animating should return true if it is animating', () => {
266
- const animator = new animator_1.Animator({ x: 0 }, 'x', {
267
- duration: 1,
268
- animation: new animations_1.AnimationLineer()
269
- });
270
- animator.animate({ x: 1 });
271
- (0, vitest_1.expect)(animator.isAnimating).toBeTruthy();
272
- });
273
- (0, vitest_1.test)('is animating should return false if it is not animating', () => {
274
- const obj = { x: 0 };
275
- const animator = new animator_1.Animator(obj, 'x', {
276
- duration: 1,
277
- animation: new animations_1.AnimationLineer()
278
- });
279
- (0, vitest_1.expect)(animator.isAnimating).toBeFalsy();
280
- animator.animate({ x: 1 });
281
- animator['update'](1);
282
- (0, vitest_1.expect)(animator.isAnimating).toBeFalsy();
283
- });
284
- });
285
- (0, vitest_1.describe)('Animation Cycle Changes', () => {
286
- (0, vitest_1.test)('pause animations should halt the progress', async () => {
287
- const obj = { x: 0 };
288
- const animator = new animator_1.Animator(obj, 'x', {
289
- duration: 4,
290
- animation: new animations_1.AnimationLineer()
291
- });
292
- animator.animate({ x: 4 });
293
- animator['update'](1);
294
- (0, vitest_1.expect)(obj).toEqual({ x: 1 });
295
- animator['update'](1);
296
- (0, vitest_1.expect)(obj).toEqual({ x: 2 });
297
- animator.pauseAnimations();
298
- animator['update'](1);
299
- (0, vitest_1.expect)(obj).toEqual({ x: 2 });
300
- animator['update'](1);
301
- (0, vitest_1.expect)(obj).toEqual({ x: 2 });
302
- animator.resumeAnimations();
303
- animator['update'](1);
304
- (0, vitest_1.expect)(obj).toEqual({ x: 3 });
305
- animator['update'](1);
306
- (0, vitest_1.expect)(obj).toEqual({ x: 4 });
307
- });
308
- (0, vitest_1.test)('new animations should not proceed while the animations are paused', async () => {
309
- const obj = { x: 0 };
310
- const animator = new animator_1.Animator(obj, 'x', {
311
- duration: 2,
312
- animation: new animations_1.AnimationLineer()
313
- });
314
- animator.pauseAnimations();
315
- animator.animate({ x: 2 });
316
- animator['update'](1);
317
- (0, vitest_1.expect)(obj).toEqual({ x: 0 });
318
- animator['update'](1);
319
- (0, vitest_1.expect)(obj).toEqual({ x: 0 });
320
- animator.resumeAnimations();
321
- animator['update'](1);
322
- (0, vitest_1.expect)(obj).toEqual({ x: 1 });
323
- animator['update'](1);
324
- (0, vitest_1.expect)(obj).toEqual({ x: 2 });
325
- });
326
- (0, vitest_1.test)('animation loop', async () => {
327
- const obj = { x: 0 };
328
- const animator = new animator_1.Animator(obj, 'x', {
329
- duration: 2,
330
- animation: new animations_1.AnimationLineer(),
331
- loop: true
332
- });
333
- animator.animate({ x: 2 }, { duration: 2 });
334
- animator['update'](1);
335
- (0, vitest_1.expect)(obj.x).toEqual(1);
336
- animator['update'](1);
337
- (0, vitest_1.expect)(obj.x).toEqual(0);
338
- animator['update'](1);
339
- (0, vitest_1.expect)(obj.x).toEqual(1);
340
- animator['update'](0.8);
341
- (0, vitest_1.expect)(obj.x).toEqual(1.8);
342
- animator['update'](0.7);
343
- (0, vitest_1.expect)(obj.x).toEqual(0.5);
344
- });
345
- });
346
- (0, vitest_1.describe)('Animation Type Switch', () => {
347
- (0, vitest_1.test)('re-animation handling option throw error should throw error', () => {
348
- const obj = { x: 0 };
349
- const animator = new animator_1.Animator(obj, 'x', {
350
- duration: 4,
351
- reAnimateHandling: animator_1.ReAnimateHandlingType.throwError
352
- });
353
- animator.animate({ x: 1 });
354
- (0, vitest_1.expect)(async () => await animator.animate({ x: 0 })).rejects.toThrow();
355
- animator['update'](1);
356
- (0, vitest_1.expect)(async () => await animator.animate({ x: 0 })).rejects.toThrow();
357
- });
358
- (0, vitest_1.test)('re-animation handling option ignore should ignore new animation', () => {
359
- const obj = { x: 0 };
360
- const animator = new animator_1.Animator(obj, 'x', {
361
- duration: 1,
362
- reAnimateHandling: animator_1.ReAnimateHandlingType.ignore
363
- });
364
- animator.animate({ x: 1 });
365
- animator.animate({ x: 2 });
366
- animator['update'](1);
367
- (0, vitest_1.expect)(obj.x).toEqual(1);
368
- });
369
- (0, vitest_1.test)('re-animation handling option ignore should ignore multiple property animation', () => {
370
- const obj = { x: 0, y: 0 };
371
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
372
- duration: 1,
373
- reAnimateHandling: animator_1.ReAnimateHandlingType.ignore
374
- });
375
- animator.animate({ x: 1 });
376
- animator.animate({ x: 2, y: 1 });
377
- animator['update'](1);
378
- (0, vitest_1.expect)(obj).toEqual({ x: 1, y: 1 });
379
- });
380
- (0, vitest_1.test)('animate switch after finishes to a different animation type should not throw error', () => {
381
- const obj = { x: 1 };
382
- const animator = new animator_1.Animator(obj, 'x', { duration: 1 });
383
- animator.animate({ x: 0 }, { animation: new animations_1.AnimationLineer() });
384
- animator['update'](1);
385
- (0, vitest_1.expect)(obj.x).toEqual(0);
386
- animator.animate({ x: 10 }, { duration: 4, animation: new animations_1.AnimationEaseInOut() });
387
- animator['update'](1);
388
- (0, vitest_1.expect)(obj.x).toEqual(1.25);
389
- animator['update'](1);
390
- (0, vitest_1.expect)(obj.x).toEqual(5);
391
- animator['update'](1);
392
- (0, vitest_1.expect)(obj.x).toEqual(8.75);
393
- animator['update'](1);
394
- (0, vitest_1.expect)(obj.x).toEqual(10);
395
- });
396
- (0, vitest_1.test)('re-animation handling option canceling should cancel the ongoing animation', () => {
397
- const obj = { x: 0 };
398
- const animator = new animator_1.Animator(obj, 'x', {
399
- duration: 1,
400
- reAnimateHandling: animator_1.ReAnimateHandlingType.cancelPrevious
401
- });
402
- animator.animate({ x: 1 });
403
- animator.animate({ x: 2 });
404
- animator['update'](1);
405
- (0, vitest_1.expect)(obj.x).toEqual(2);
406
- });
407
- (0, vitest_1.test)('re-animation handling option canceling should cancel the ongoing multiple property animation', () => {
408
- const obj = { x: 0, y: 0 };
409
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
410
- duration: 1,
411
- reAnimateHandling: animator_1.ReAnimateHandlingType.cancelPrevious
412
- });
413
- animator.animate({ x: 1 });
414
- animator.animate({ x: 2, y: 1 });
415
- animator['update'](1);
416
- (0, vitest_1.expect)(obj).toEqual({ x: 2, y: 1 });
417
- });
418
- (0, vitest_1.test)(
419
- 're-animation handling option canceling should cancel the animation with keeping the current value',
420
- () => {
421
- const obj = { x: 0 };
422
- const animator = new animator_1.Animator(obj, 'x', {
423
- duration: 2,
424
- reAnimateHandling: animator_1.ReAnimateHandlingType.cancelPrevious
425
- });
426
- animator.animate({ x: 2 });
427
- animator['update'](1);
428
- animator.animate({ x: 3 });
429
- (0, vitest_1.expect)(obj.x).toEqual(1);
430
- animator['update'](1);
431
- (0, vitest_1.expect)(obj.x).toEqual(2);
432
- animator['update'](1);
433
- (0, vitest_1.expect)(obj.x).toEqual(3);
434
- }
435
- );
436
- });
437
- (0, vitest_1.describe)('Set', () => {
438
- (0, vitest_1.test)('it should throw error if it is animating', () => {
439
- const animator = new animator_1.Animator({ x: 0 }, 'x', { duration: 1 });
440
- animator.animate({ x: 1 });
441
- (0, vitest_1.expect)(() => {
442
- animator.set({ x: 0 });
443
- }).toThrow();
444
- });
445
- (0, vitest_1.test)('it should throw error if the property is not valid', () => {
446
- const animator = new animator_1.Animator({ x: 0 }, 'x');
447
- (0, vitest_1.expect)(() => {
448
- animator.set({ t: 0 });
449
- }).toThrow();
450
- });
451
- (0, vitest_1.test)('it should change the original value', () => {
452
- const obj = { x: 0, y: 1, z: 2 };
453
- const animator = new animator_1.Animator(obj, ['x', 'y', 'z']);
454
- animator.set({ x: 3, y: 4 });
455
- (0, vitest_1.expect)(obj).toEqual({ x: 3, y: 4, z: 2 });
456
- });
457
- (0, vitest_1.test)('it should trigger onChange', () => {
458
- const obj = { x: 0 };
459
- let valueFromOnStep = 0;
460
- let onStepCallCount = 0;
461
- const animator = new animator_1.Animator(obj, 'x').onChange(item => {
462
- valueFromOnStep = item.x;
463
- onStepCallCount++;
464
- });
465
- animator.set({ x: 1 });
466
- (0, vitest_1.expect)(valueFromOnStep).toEqual(1);
467
- (0, vitest_1.expect)(onStepCallCount).toEqual(1);
468
- });
469
- (0, vitest_1.test)('it should not trigger onChange if the value is the same', () => {
470
- const obj = { x: 0 };
471
- let onStepCallCount = 0;
472
- const animator = new animator_1.Animator(obj, 'x').onChange(() => {
473
- onStepCallCount++;
474
- });
475
- animator.set({ x: 0 });
476
- (0, vitest_1.expect)(onStepCallCount).toEqual(0);
477
- });
478
- });
479
- (0, vitest_1.describe)('Complete Animations', () => {
480
- (0, vitest_1.test)('when animation is done it should respect the complete animaitons option', () => {
481
- const obj = { x: 0 };
482
- const animator = new animator_1.Animator(obj, 'x', {
483
- duration: 1,
484
- animation: new animations_1.AnimationLineer(),
485
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
486
- });
487
- animator.animate({ x: 1 });
488
- animator['update'](1);
489
- (0, vitest_1.expect)(obj.x).toEqual(0);
490
- });
491
- (0, vitest_1.test)('complete animations should finalize the ongoing animation', async () => {
492
- const obj = { x: 0 };
493
- let completed = false;
494
- const animator = new animator_1.Animator(obj, 'x');
495
- animator.animate({ x: 1 }, { duration: 4 }).then(() => {
496
- completed = true;
497
- });
498
- animator['update'](1);
499
- await (0, helpers_lib_1.Wait)();
500
- (0, vitest_1.expect)(completed).toBeFalsy();
501
- animator.completeAnimations();
502
- await (0, helpers_lib_1.Wait)();
503
- (0, vitest_1.expect)(completed).toBeTruthy();
504
- });
505
- (0, vitest_1.test)('complete animations should finalize the all ongoing animations', async () => {
506
- let completed1 = false;
507
- let completed2 = false;
508
- const obj = { x: 0, y: 0 };
509
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
510
- duration: 4,
511
- animation: new animations_1.AnimationEaseInOut()
512
- });
513
- animator.animate({ y: 10 }, { loop: true }).then(() => {
514
- completed1 = true;
515
- });
516
- animator['update'](1);
517
- animator.animate({ x: 10 }).then(() => {
518
- completed2 = true;
519
- });
520
- animator['update'](1);
521
- await (0, helpers_lib_1.Wait)();
522
- (0, vitest_1.expect)(completed1).toBeFalsy();
523
- (0, vitest_1.expect)(completed2).toBeFalsy();
524
- animator.completeAnimations();
525
- await (0, helpers_lib_1.Wait)();
526
- (0, vitest_1.expect)(completed1).toBeTruthy();
527
- (0, vitest_1.expect)(completed2).toBeTruthy();
528
- });
529
- (0, vitest_1.test)('complete animations stay in current state', async () => {
530
- const obj = { x: 0 };
531
- const animator = new animator_1.Animator(obj, 'x');
532
- animator.animate(
533
- { x: 4 },
534
- {
535
- duration: 4,
536
- animation: new animations_1.AnimationLineer(),
537
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.stayInCurrentState
538
- }
539
- );
540
- animator['update'](1);
541
- await (0, helpers_lib_1.Wait)();
542
- (0, vitest_1.expect)(obj.x).toEqual(1);
543
- animator.completeAnimations();
544
- animator['update'](1);
545
- await (0, helpers_lib_1.Wait)();
546
- (0, vitest_1.expect)(obj.x).toEqual(1);
547
- });
548
- (0, vitest_1.test)('complete animations jump to end', async () => {
549
- const obj = { x: 0 };
550
- const animator = new animator_1.Animator(obj, 'x');
551
- animator.animate(
552
- { x: 4 },
553
- {
554
- duration: 4,
555
- animation: new animations_1.AnimationLineer(),
556
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.jumpToEnd
557
- }
558
- );
559
- animator['update'](1);
560
- await (0, helpers_lib_1.Wait)();
561
- (0, vitest_1.expect)(obj.x).toEqual(1);
562
- animator.completeAnimations();
563
- animator['update'](1);
564
- await (0, helpers_lib_1.Wait)();
565
- (0, vitest_1.expect)(obj.x).toEqual(4);
566
- });
567
- (0, vitest_1.test)('complete animations return to original', async () => {
568
- const obj = { x: 0 };
569
- const animator = new animator_1.Animator(obj, 'x');
570
- animator.animate(
571
- { x: 4 },
572
- {
573
- duration: 4,
574
- animation: new animations_1.AnimationLineer(),
575
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
576
- }
577
- );
578
- animator['update'](1);
579
- await (0, helpers_lib_1.Wait)();
580
- (0, vitest_1.expect)(obj.x).toEqual(1);
581
- animator.completeAnimations();
582
- animator['update'](1);
583
- await (0, helpers_lib_1.Wait)();
584
- (0, vitest_1.expect)(obj.x).toEqual(0);
585
- });
586
- (0, vitest_1.test)('complete animations options overriden in animate', async () => {
587
- const obj = { x: 0 };
588
- const animator = new animator_1.Animator(obj, 'x', {
589
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
590
- });
591
- animator.animate(
592
- { x: 4 },
593
- {
594
- duration: 4,
595
- animation: new animations_1.AnimationLineer(),
596
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.jumpToEnd
597
- }
598
- );
599
- animator['update'](1);
600
- await (0, helpers_lib_1.Wait)();
601
- (0, vitest_1.expect)(obj.x).toEqual(1);
602
- animator.completeAnimations();
603
- animator['update'](1);
604
- await (0, helpers_lib_1.Wait)();
605
- (0, vitest_1.expect)(obj.x).toEqual(4);
606
- });
607
- (0, vitest_1.test)('complete animations options overriden in complete animations funciton', async () => {
608
- const obj = { x: 0 };
609
- const animator = new animator_1.Animator(obj, 'x', {
610
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
611
- });
612
- animator.animate(
613
- { x: 4 },
614
- {
615
- duration: 4,
616
- animation: new animations_1.AnimationLineer(),
617
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.jumpToEnd
618
- }
619
- );
620
- animator['update'](1);
621
- await (0, helpers_lib_1.Wait)();
622
- (0, vitest_1.expect)(obj.x).toEqual(1);
623
- animator.completeAnimations(animator_1.CompleteAnimationsHandlingType.stayInCurrentState);
624
- animator['update'](1);
625
- await (0, helpers_lib_1.Wait)();
626
- (0, vitest_1.expect)(obj.x).toEqual(1);
627
- });
628
- (0, vitest_1.test)('complete animations should trigger onChange', async () => {
629
- const obj = { x: 0 };
630
- let completed = false;
631
- const animator = new animator_1.Animator(obj, 'x', {
632
- duration: 1
633
- }).onChange(() => {
634
- completed = true;
635
- });
636
- animator.animate({ x: 1 });
637
- animator.completeAnimations();
638
- await (0, helpers_lib_1.Wait)();
639
- (0, vitest_1.expect)(completed).toBeTruthy();
640
- });
641
- (0, vitest_1.test)('complete animations should not trigger on change if it is not animating', async () => {
642
- let completed = false;
643
- const animator = new animator_1.Animator({ x: 0 }, 'x').onChange(() => {
644
- completed = true;
645
- });
646
- animator.completeAnimations();
647
- await (0, helpers_lib_1.Wait)();
648
- (0, vitest_1.expect)(completed).toBeFalsy();
649
- });
650
- });
651
- (0, vitest_1.describe)('Mixing Different Configurations', () => {
652
- (0, vitest_1.test)('animate multiple properties without mixing animation type', () => {
653
- const obj = { x: 0, y: 10 };
654
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
655
- duration: 4,
656
- animation: new animations_1.AnimationEaseInOut()
657
- });
658
- animator.animate({ x: 10, y: 0 });
659
- animator['update'](1);
660
- (0, vitest_1.expect)(obj).toEqual({ x: 1.25, y: 8.75 });
661
- animator['update'](1);
662
- (0, vitest_1.expect)(obj).toEqual({ x: 5, y: 5 });
663
- animator['update'](1);
664
- (0, vitest_1.expect)(obj).toEqual({ x: 8.75, y: 1.25 });
665
- animator['update'](1);
666
- (0, vitest_1.expect)(obj).toEqual({ x: 10, y: 0 });
667
- });
668
- (0, vitest_1.test)('animate multiple properties with mixing animation type', () => {
669
- const obj = { x: 0, y: 4 };
670
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
671
- duration: 4
672
- });
673
- animator.animate({ x: 10 }, { animation: new animations_1.AnimationEaseInOut() });
674
- animator.animate({ y: 0 }, { animation: new animations_1.AnimationLineer() });
675
- animator['update'](1);
676
- (0, vitest_1.expect)(obj).toEqual({ x: 1.25, y: 3 });
677
- animator['update'](1);
678
- (0, vitest_1.expect)(obj).toEqual({ x: 5, y: 2 });
679
- animator['update'](1);
680
- (0, vitest_1.expect)(obj).toEqual({ x: 8.75, y: 1 });
681
- animator['update'](1);
682
- (0, vitest_1.expect)(obj).toEqual({ x: 10, y: 0 });
683
- });
684
- (0, vitest_1.test)('animate multiple properties async', () => {
685
- const obj = { x: 0, y: 0 };
686
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
687
- duration: 4,
688
- animation: new animations_1.AnimationEaseInOut()
689
- });
690
- animator.animate({ y: 10 });
691
- animator['update'](1);
692
- (0, vitest_1.expect)(obj).toEqual({ x: 0, y: 1.25 });
693
- animator.animate({ x: 10 });
694
- animator['update'](1);
695
- (0, vitest_1.expect)(obj).toEqual({ x: 1.25, y: 5 });
696
- animator['update'](1);
697
- (0, vitest_1.expect)(obj).toEqual({ x: 5, y: 8.75 });
698
- animator['update'](1);
699
- (0, vitest_1.expect)(obj).toEqual({ x: 8.75, y: 10 });
700
- animator['update'](1);
701
- (0, vitest_1.expect)(obj).toEqual({ x: 10, y: 10 });
702
- });
703
- (0, vitest_1.test)('animate multiple properties mixed with loop', () => {
704
- const obj = { x: 0, y: 0 };
705
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
706
- duration: 4,
707
- animation: new animations_1.AnimationEaseInOut()
708
- });
709
- animator.animate({ y: 10 }, { loop: true });
710
- animator['update'](1);
711
- (0, vitest_1.expect)(obj).toEqual({ x: 0, y: 1.25 });
712
- animator.animate({ x: 10 });
713
- animator['update'](1);
714
- (0, vitest_1.expect)(obj).toEqual({ x: 1.25, y: 5 });
715
- animator['update'](1);
716
- (0, vitest_1.expect)(obj).toEqual({ x: 5, y: 8.75 });
717
- animator['update'](1);
718
- (0, vitest_1.expect)(obj).toEqual({ x: 8.75, y: 0 });
719
- animator['update'](1);
720
- (0, vitest_1.expect)(obj).toEqual({ x: 10, y: 1.25 });
721
- animator['update'](1);
722
- (0, vitest_1.expect)(obj).toEqual({ x: 10, y: 5 });
723
- });
724
- (0, vitest_1.test)('animate multiple properties complete promise', async () => {
725
- let completed1 = false;
726
- let completed2 = false;
727
- const obj = { x: 0, y: 0 };
728
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
729
- duration: 4
730
- });
731
- animator.animate({ y: 10 }).then(() => {
732
- completed1 = true;
733
- });
734
- animator['update'](1);
735
- animator.animate({ x: 10 }).then(() => {
736
- completed2 = true;
737
- });
738
- animator['update'](2);
739
- await (0, helpers_lib_1.Wait)();
740
- (0, vitest_1.expect)(completed1).toBeFalsy();
741
- (0, vitest_1.expect)(completed2).toBeFalsy();
742
- animator['update'](1);
743
- await (0, helpers_lib_1.Wait)();
744
- (0, vitest_1.expect)(completed1).toBeTruthy();
745
- (0, vitest_1.expect)(completed2).toBeFalsy();
746
- animator['update'](1);
747
- await (0, helpers_lib_1.Wait)();
748
- (0, vitest_1.expect)(completed1).toBeTruthy();
749
- (0, vitest_1.expect)(completed2).toBeTruthy();
750
- });
751
- (0, vitest_1.test)('pause animations with mixed commands', async () => {
752
- const obj = { x: 0, y: 0 };
753
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
754
- duration: 4,
755
- animation: new animations_1.AnimationLineer()
756
- });
757
- animator.resumeAnimations();
758
- animator.animate({ x: 4 });
759
- animator['update'](1);
760
- (0, vitest_1.expect)(obj).toEqual({ x: 1, y: 0 });
761
- animator['update'](1);
762
- (0, vitest_1.expect)(obj).toEqual({ x: 2, y: 0 });
763
- animator.pauseAnimations();
764
- animator['update'](1);
765
- (0, vitest_1.expect)(obj).toEqual({ x: 2, y: 0 });
766
- animator.pauseAnimations();
767
- animator.animate({ y: 4 });
768
- animator['update'](1);
769
- (0, vitest_1.expect)(obj).toEqual({ x: 2, y: 0 });
770
- animator.resumeAnimations();
771
- animator['update'](1);
772
- (0, vitest_1.expect)(obj).toEqual({ x: 3, y: 1 });
773
- animator.resumeAnimations();
774
- animator['update'](1);
775
- (0, vitest_1.expect)(obj).toEqual({ x: 4, y: 2 });
776
- });
777
- });
778
- });
779
- //# sourceMappingURL=animator.spec.js.map