bard-legends-framework 0.12.1 → 1.0.0-rc1

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,702 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- const helpers_lib_1 = require('helpers-lib');
3
- const animator_1 = require('./animator');
4
- const animations_1 = require('./animations');
5
- describe('ANIMATOR', () => {
6
- describe('Setup', () => {
7
- test('constructor should throw error if target is not an object', () => {
8
- const obj = 'string';
9
- expect(() => {
10
- new animator_1.Animator(obj, 'x');
11
- }).toThrow();
12
- });
13
- test('constructor should throw error if target does not have all target properties', () => {
14
- const obj = { x: 1, y: 2, z: 3 };
15
- expect(() => {
16
- new animator_1.Animator(obj, ['x', 't']);
17
- }).toThrow();
18
- });
19
- test('constructor should throw error if target property is not a number', () => {
20
- const obj = { x: 'fail' };
21
- expect(() => {
22
- new animator_1.Animator(obj, ['x']);
23
- }).toThrow();
24
- });
25
- test('animate should throw error if non effected property tried to animate', () => {
26
- expect(() => {
27
- const obj = { x: 0, y: 0 };
28
- const animator = new animator_1.Animator(obj, ['x', 't']);
29
- animator.animate({ x: 5, y: 5 });
30
- }).toThrow();
31
- });
32
- test('should throw error if multiple animators decorate the same object', () => {
33
- expect(() => {
34
- const obj = { x: 0 };
35
- new animator_1.Animator(obj, 'x');
36
- new animator_1.Animator(obj, 'x');
37
- }).toThrow();
38
- });
39
- test('setting multiple update callbacks should throw error', () => {
40
- expect(() => {
41
- const obj = { x: 0 };
42
- new animator_1.Animator(obj, 'x').onChange(() => {}).onChange(() => {});
43
- }).toThrow();
44
- });
45
- });
46
- describe('Animate', () => {
47
- test('animate should not change the value before the update ticks', () => {
48
- const obj = { x: 0 };
49
- const animator = new animator_1.Animator(obj, 'x');
50
- animator.animate({ x: 5 });
51
- expect(obj.x).toEqual(0);
52
- });
53
- test('animate to target in lineer', () => {
54
- const obj = { x: 0 };
55
- const animator = new animator_1.Animator(obj, 'x', {
56
- duration: 4,
57
- animation: new animations_1.AnimationLineer()
58
- });
59
- animator.animate({ x: 4 });
60
- animator['update'](1);
61
- expect(obj.x).toEqual(1);
62
- animator['update'](1);
63
- expect(obj.x).toEqual(2);
64
- animator['update'](1);
65
- expect(obj.x).toEqual(3);
66
- animator['update'](1);
67
- expect(obj.x).toEqual(4);
68
- });
69
- test('animate only one property should not effect the other', () => {
70
- const obj = { x: 0, y: 0 };
71
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
72
- duration: 4,
73
- animation: new animations_1.AnimationLineer()
74
- });
75
- animator.animate({ x: 4 });
76
- animator['update'](1);
77
- expect(obj).toEqual({ x: 1, y: 0 });
78
- animator['update'](1);
79
- expect(obj).toEqual({ x: 2, y: 0 });
80
- animator['update'](1);
81
- expect(obj).toEqual({ x: 3, y: 0 });
82
- animator['update'](1);
83
- expect(obj).toEqual({ x: 4, y: 0 });
84
- });
85
- test('animate with custom values should override the default settings', () => {
86
- const obj = { x: 0 };
87
- const animator = new animator_1.Animator(obj, 'x', {
88
- duration: 10,
89
- animation: new animations_1.AnimationLineer()
90
- });
91
- animator.animate({ x: 10 }, { duration: 4, animation: new animations_1.AnimationEaseInOut() });
92
- animator['update'](1);
93
- expect(obj).toEqual({ x: 1.25 });
94
- animator['update'](1);
95
- expect(obj).toEqual({ x: 5 });
96
- animator['update'](1);
97
- expect(obj).toEqual({ x: 8.75 });
98
- animator['update'](1);
99
- expect(obj).toEqual({ x: 10 });
100
- });
101
- test('animate to target in easeInOut starting from zero', () => {
102
- const obj = { x: 0 };
103
- const animator = new animator_1.Animator(obj, 'x', {
104
- duration: 4,
105
- animation: new animations_1.AnimationEaseInOut()
106
- });
107
- animator.animate({ x: 10 });
108
- animator['update'](1);
109
- expect(obj.x).toEqual(1.25);
110
- animator['update'](1);
111
- expect(obj.x).toEqual(5);
112
- animator['update'](1);
113
- expect(obj.x).toEqual(8.75);
114
- animator['update'](1);
115
- expect(obj.x).toEqual(10);
116
- });
117
- test('animate to target in easeInOut starting from different value than zero', () => {
118
- const obj = { x: 10 };
119
- const animator = new animator_1.Animator(obj, 'x', {
120
- duration: 4,
121
- animation: new animations_1.AnimationEaseInOut()
122
- });
123
- animator.animate({ x: 20 });
124
- animator['update'](1);
125
- expect(obj.x).toEqual(11.25);
126
- animator['update'](1);
127
- expect(obj.x).toEqual(15);
128
- animator['update'](1);
129
- expect(obj.x).toEqual(18.75);
130
- animator['update'](1);
131
- expect(obj.x).toEqual(20);
132
- });
133
- test('animate to target and return back', () => {
134
- const obj = { x: 0 };
135
- const animator = new animator_1.Animator(obj, 'x', {
136
- duration: 1,
137
- animation: new animations_1.AnimationLineer()
138
- });
139
- animator.animate({ x: 4 });
140
- animator['update'](1);
141
- animator.animate({ x: 0 });
142
- animator['update'](1);
143
- expect(obj.x).toEqual(0);
144
- });
145
- test('animate onChange callbacks', () => {
146
- const obj = { x: 0 };
147
- let valueFromOnStep = 0;
148
- let onStepCallCount = 0;
149
- const animator = new animator_1.Animator(obj, 'x', {
150
- duration: 4,
151
- animation: new animations_1.AnimationEaseInOut()
152
- }).onChange(item => {
153
- valueFromOnStep = item.x;
154
- onStepCallCount++;
155
- });
156
- animator.animate({ x: 10 });
157
- expect(valueFromOnStep).toEqual(0);
158
- expect(onStepCallCount).toEqual(0);
159
- animator['update'](1);
160
- expect(onStepCallCount).toEqual(1);
161
- expect(valueFromOnStep).toEqual(1.25);
162
- animator['update'](1);
163
- expect(onStepCallCount).toEqual(2);
164
- expect(valueFromOnStep).toEqual(5);
165
- animator['update'](1);
166
- expect(onStepCallCount).toEqual(3);
167
- expect(valueFromOnStep).toEqual(8.75);
168
- animator['update'](1);
169
- expect(onStepCallCount).toEqual(4);
170
- expect(valueFromOnStep).toEqual(10);
171
- animator['update'](1);
172
- animator['update'](1);
173
- animator['update'](1);
174
- expect(onStepCallCount).toEqual(4);
175
- });
176
- test('animate onChange should not be triggered before starting the animation', () => {
177
- let onStepCallCount = 0;
178
- const animator = new animator_1.Animator({ x: 0 }, 'x', {
179
- duration: 4,
180
- animation: new animations_1.AnimationEaseInOut()
181
- }).onChange(() => {
182
- onStepCallCount++;
183
- });
184
- animator['update'](1);
185
- expect(onStepCallCount).toEqual(0);
186
- });
187
- test('animation complete promise', async () => {
188
- const obj = { x: 0 };
189
- let completed = false;
190
- const animator = new animator_1.Animator(obj, 'x');
191
- animator.animate({ x: 1 }, { duration: 2 }).then(() => {
192
- completed = true;
193
- });
194
- expect(completed).toBeFalsy();
195
- animator['update'](1);
196
- expect(completed).toBeFalsy();
197
- animator['update'](1);
198
- await (0, helpers_lib_1.Wait)();
199
- expect(completed).toBeTruthy();
200
- });
201
- test('animate getter/setter property', () => {
202
- class Foo {
203
- constructor() {
204
- this._x = 10;
205
- }
206
- get x() {
207
- return this._x;
208
- }
209
- set x(value) {
210
- this._x = value;
211
- }
212
- }
213
- const obj = new Foo();
214
- const animator = new animator_1.Animator(obj, ['x'], {
215
- duration: 4,
216
- animation: new animations_1.AnimationEaseInOut()
217
- });
218
- animator.animate({ x: 20 });
219
- animator['update'](1);
220
- expect(obj.x).toEqual(11.25);
221
- animator['update'](1);
222
- expect(obj.x).toEqual(15);
223
- animator['update'](1);
224
- expect(obj.x).toEqual(18.75);
225
- animator['update'](1);
226
- expect(obj.x).toEqual(20);
227
- });
228
- test('is animating should return true if it is animating', () => {
229
- const animator = new animator_1.Animator({ x: 0 }, 'x', {
230
- duration: 1,
231
- animation: new animations_1.AnimationLineer()
232
- });
233
- animator.animate({ x: 1 });
234
- expect(animator.isAnimating).toBeTruthy();
235
- });
236
- test('is animating should return false if it is not animating', () => {
237
- const obj = { x: 0 };
238
- const animator = new animator_1.Animator(obj, 'x', {
239
- duration: 1,
240
- animation: new animations_1.AnimationLineer()
241
- });
242
- expect(animator.isAnimating).toBeFalsy();
243
- animator.animate({ x: 1 });
244
- animator['update'](1);
245
- expect(animator.isAnimating).toBeFalsy();
246
- });
247
- });
248
- describe('Animation Cycle Changes', () => {
249
- test('pause animations should halt the progress', async () => {
250
- const obj = { x: 0 };
251
- const animator = new animator_1.Animator(obj, 'x', {
252
- duration: 4,
253
- animation: new animations_1.AnimationLineer()
254
- });
255
- animator.animate({ x: 4 });
256
- animator['update'](1);
257
- expect(obj).toEqual({ x: 1 });
258
- animator['update'](1);
259
- expect(obj).toEqual({ x: 2 });
260
- animator.pauseAnimations();
261
- animator['update'](1);
262
- expect(obj).toEqual({ x: 2 });
263
- animator['update'](1);
264
- expect(obj).toEqual({ x: 2 });
265
- animator.resumeAnimations();
266
- animator['update'](1);
267
- expect(obj).toEqual({ x: 3 });
268
- animator['update'](1);
269
- expect(obj).toEqual({ x: 4 });
270
- });
271
- test('new animations should not proceed while the animations are paused', async () => {
272
- const obj = { x: 0 };
273
- const animator = new animator_1.Animator(obj, 'x', {
274
- duration: 2,
275
- animation: new animations_1.AnimationLineer()
276
- });
277
- animator.pauseAnimations();
278
- animator.animate({ x: 2 });
279
- animator['update'](1);
280
- expect(obj).toEqual({ x: 0 });
281
- animator['update'](1);
282
- expect(obj).toEqual({ x: 0 });
283
- animator.resumeAnimations();
284
- animator['update'](1);
285
- expect(obj).toEqual({ x: 1 });
286
- animator['update'](1);
287
- expect(obj).toEqual({ x: 2 });
288
- });
289
- test('animation loop', async () => {
290
- const obj = { x: 0 };
291
- const animator = new animator_1.Animator(obj, 'x', {
292
- duration: 2,
293
- animation: new animations_1.AnimationLineer(),
294
- loop: true
295
- });
296
- animator.animate({ x: 2 }, { duration: 2 });
297
- animator['update'](1);
298
- expect(obj.x).toEqual(1);
299
- animator['update'](1);
300
- expect(obj.x).toEqual(0);
301
- animator['update'](1);
302
- expect(obj.x).toEqual(1);
303
- animator['update'](0.8);
304
- expect(obj.x).toEqual(1.8);
305
- animator['update'](0.7);
306
- expect(obj.x).toEqual(0.5);
307
- });
308
- });
309
- describe('Animation Type Switch', () => {
310
- test('re-animation handling option throw error should throw error', () => {
311
- const obj = { x: 0 };
312
- const animator = new animator_1.Animator(obj, 'x', {
313
- duration: 4,
314
- reAnimateHandling: animator_1.ReAnimateHandlingType.throwError
315
- });
316
- animator.animate({ x: 1 });
317
- expect(async () => await animator.animate({ x: 0 })).rejects.toThrow();
318
- animator['update'](1);
319
- expect(async () => await animator.animate({ x: 0 })).rejects.toThrow();
320
- });
321
- test('re-animation handling option ignore should ignore new animation', () => {
322
- const obj = { x: 0 };
323
- const animator = new animator_1.Animator(obj, 'x', {
324
- duration: 1,
325
- reAnimateHandling: animator_1.ReAnimateHandlingType.ignore
326
- });
327
- animator.animate({ x: 1 });
328
- animator.animate({ x: 2 });
329
- animator['update'](1);
330
- expect(obj.x).toEqual(1);
331
- });
332
- test('re-animation handling option ignore should ignore multiple property animation', () => {
333
- const obj = { x: 0, y: 0 };
334
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
335
- duration: 1,
336
- reAnimateHandling: animator_1.ReAnimateHandlingType.ignore
337
- });
338
- animator.animate({ x: 1 });
339
- animator.animate({ x: 2, y: 1 });
340
- animator['update'](1);
341
- expect(obj).toEqual({ x: 1, y: 1 });
342
- });
343
- test('animate switch after finishes to a different animation type should not throw error', () => {
344
- const obj = { x: 1 };
345
- const animator = new animator_1.Animator(obj, 'x', { duration: 1 });
346
- animator.animate({ x: 0 }, { animation: new animations_1.AnimationLineer() });
347
- animator['update'](1);
348
- expect(obj.x).toEqual(0);
349
- animator.animate({ x: 10 }, { duration: 4, animation: new animations_1.AnimationEaseInOut() });
350
- animator['update'](1);
351
- expect(obj.x).toEqual(1.25);
352
- animator['update'](1);
353
- expect(obj.x).toEqual(5);
354
- animator['update'](1);
355
- expect(obj.x).toEqual(8.75);
356
- animator['update'](1);
357
- expect(obj.x).toEqual(10);
358
- });
359
- });
360
- describe('Set', () => {
361
- test('it should throw error if it is animating', () => {
362
- const animator = new animator_1.Animator({ x: 0 }, 'x', { duration: 1 });
363
- animator.animate({ x: 1 });
364
- expect(() => {
365
- animator.set({ x: 0 });
366
- }).toThrow();
367
- });
368
- test('it should throw error if the property is not valid', () => {
369
- const animator = new animator_1.Animator({ x: 0 }, 'x');
370
- expect(() => {
371
- animator.set({ t: 0 });
372
- }).toThrow();
373
- });
374
- test('it should change the original value', () => {
375
- const obj = { x: 0, y: 1, z: 2 };
376
- const animator = new animator_1.Animator(obj, ['x', 'y', 'z']);
377
- animator.set({ x: 3, y: 4 });
378
- expect(obj).toEqual({ x: 3, y: 4, z: 2 });
379
- });
380
- test('it should trigger onChange', () => {
381
- const obj = { x: 0 };
382
- let valueFromOnStep = 0;
383
- let onStepCallCount = 0;
384
- const animator = new animator_1.Animator(obj, 'x').onChange(item => {
385
- valueFromOnStep = item.x;
386
- onStepCallCount++;
387
- });
388
- animator.set({ x: 1 });
389
- expect(valueFromOnStep).toEqual(1);
390
- expect(onStepCallCount).toEqual(1);
391
- });
392
- test('it should not trigger onChange if the value is the same', () => {
393
- const obj = { x: 0 };
394
- let onStepCallCount = 0;
395
- const animator = new animator_1.Animator(obj, 'x').onChange(() => {
396
- onStepCallCount++;
397
- });
398
- animator.set({ x: 0 });
399
- expect(onStepCallCount).toEqual(0);
400
- });
401
- });
402
- describe('Complete Animations', () => {
403
- test('when animation is done it should respect the complete animaitons option', () => {
404
- const obj = { x: 0 };
405
- const animator = new animator_1.Animator(obj, 'x', {
406
- duration: 1,
407
- animation: new animations_1.AnimationLineer(),
408
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
409
- });
410
- animator.animate({ x: 1 });
411
- animator['update'](1);
412
- expect(obj.x).toEqual(0);
413
- });
414
- test('complete animations should finalize the ongoing animation', async () => {
415
- const obj = { x: 0 };
416
- let completed = false;
417
- const animator = new animator_1.Animator(obj, 'x');
418
- animator.animate({ x: 1 }, { duration: 4 }).then(() => {
419
- completed = true;
420
- });
421
- animator['update'](1);
422
- await (0, helpers_lib_1.Wait)();
423
- expect(completed).toBeFalsy();
424
- animator.completeAnimations();
425
- await (0, helpers_lib_1.Wait)();
426
- expect(completed).toBeTruthy();
427
- });
428
- test('complete animations should finalize the all ongoing animations', async () => {
429
- let completed1 = false;
430
- let completed2 = false;
431
- const obj = { x: 0, y: 0 };
432
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
433
- duration: 4,
434
- animation: new animations_1.AnimationEaseInOut()
435
- });
436
- animator.animate({ y: 10 }, { loop: true }).then(() => {
437
- completed1 = true;
438
- });
439
- animator['update'](1);
440
- animator.animate({ x: 10 }).then(() => {
441
- completed2 = true;
442
- });
443
- animator['update'](1);
444
- await (0, helpers_lib_1.Wait)();
445
- expect(completed1).toBeFalsy();
446
- expect(completed2).toBeFalsy();
447
- animator.completeAnimations();
448
- await (0, helpers_lib_1.Wait)();
449
- expect(completed1).toBeTruthy();
450
- expect(completed2).toBeTruthy();
451
- });
452
- test('complete animations stay in current state', async () => {
453
- const obj = { x: 0 };
454
- const animator = new animator_1.Animator(obj, 'x');
455
- animator.animate(
456
- { x: 4 },
457
- {
458
- duration: 4,
459
- animation: new animations_1.AnimationLineer(),
460
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.stayInCurrentState
461
- }
462
- );
463
- animator['update'](1);
464
- await (0, helpers_lib_1.Wait)();
465
- expect(obj.x).toEqual(1);
466
- animator.completeAnimations();
467
- animator['update'](1);
468
- await (0, helpers_lib_1.Wait)();
469
- expect(obj.x).toEqual(1);
470
- });
471
- test('complete animations jump to end', async () => {
472
- const obj = { x: 0 };
473
- const animator = new animator_1.Animator(obj, 'x');
474
- animator.animate(
475
- { x: 4 },
476
- {
477
- duration: 4,
478
- animation: new animations_1.AnimationLineer(),
479
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.jumpToEnd
480
- }
481
- );
482
- animator['update'](1);
483
- await (0, helpers_lib_1.Wait)();
484
- expect(obj.x).toEqual(1);
485
- animator.completeAnimations();
486
- animator['update'](1);
487
- await (0, helpers_lib_1.Wait)();
488
- expect(obj.x).toEqual(4);
489
- });
490
- test('complete animations return to original', async () => {
491
- const obj = { x: 0 };
492
- const animator = new animator_1.Animator(obj, 'x');
493
- animator.animate(
494
- { x: 4 },
495
- {
496
- duration: 4,
497
- animation: new animations_1.AnimationLineer(),
498
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
499
- }
500
- );
501
- animator['update'](1);
502
- await (0, helpers_lib_1.Wait)();
503
- expect(obj.x).toEqual(1);
504
- animator.completeAnimations();
505
- animator['update'](1);
506
- await (0, helpers_lib_1.Wait)();
507
- expect(obj.x).toEqual(0);
508
- });
509
- test('complete animations options overriden in animate', async () => {
510
- const obj = { x: 0 };
511
- const animator = new animator_1.Animator(obj, 'x', {
512
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
513
- });
514
- animator.animate(
515
- { x: 4 },
516
- {
517
- duration: 4,
518
- animation: new animations_1.AnimationLineer(),
519
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.jumpToEnd
520
- }
521
- );
522
- animator['update'](1);
523
- await (0, helpers_lib_1.Wait)();
524
- expect(obj.x).toEqual(1);
525
- animator.completeAnimations();
526
- animator['update'](1);
527
- await (0, helpers_lib_1.Wait)();
528
- expect(obj.x).toEqual(4);
529
- });
530
- test('complete animations options overriden in complete animations funciton', async () => {
531
- const obj = { x: 0 };
532
- const animator = new animator_1.Animator(obj, 'x', {
533
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.returnToOriginal
534
- });
535
- animator.animate(
536
- { x: 4 },
537
- {
538
- duration: 4,
539
- animation: new animations_1.AnimationLineer(),
540
- completeAnimationsHandling: animator_1.CompleteAnimationsHandlingType.jumpToEnd
541
- }
542
- );
543
- animator['update'](1);
544
- await (0, helpers_lib_1.Wait)();
545
- expect(obj.x).toEqual(1);
546
- animator.completeAnimations(animator_1.CompleteAnimationsHandlingType.stayInCurrentState);
547
- animator['update'](1);
548
- await (0, helpers_lib_1.Wait)();
549
- expect(obj.x).toEqual(1);
550
- });
551
- test('complete animations should trigger onChange', async () => {
552
- const obj = { x: 0 };
553
- let completed = false;
554
- const animator = new animator_1.Animator(obj, 'x', {
555
- duration: 1
556
- }).onChange(() => {
557
- completed = true;
558
- });
559
- animator.animate({ x: 1 });
560
- animator.completeAnimations();
561
- await (0, helpers_lib_1.Wait)();
562
- expect(completed).toBeTruthy();
563
- });
564
- test('complete animations should not trigger on change if it is not animating', async () => {
565
- let completed = false;
566
- const animator = new animator_1.Animator({ x: 0 }, 'x').onChange(() => {
567
- completed = true;
568
- });
569
- animator.completeAnimations();
570
- await (0, helpers_lib_1.Wait)();
571
- expect(completed).toBeFalsy();
572
- });
573
- });
574
- describe('Mixing Different Configurations', () => {
575
- test('animate multiple properties without mixing animation type', () => {
576
- const obj = { x: 0, y: 10 };
577
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
578
- duration: 4,
579
- animation: new animations_1.AnimationEaseInOut()
580
- });
581
- animator.animate({ x: 10, y: 0 });
582
- animator['update'](1);
583
- expect(obj).toEqual({ x: 1.25, y: 8.75 });
584
- animator['update'](1);
585
- expect(obj).toEqual({ x: 5, y: 5 });
586
- animator['update'](1);
587
- expect(obj).toEqual({ x: 8.75, y: 1.25 });
588
- animator['update'](1);
589
- expect(obj).toEqual({ x: 10, y: 0 });
590
- });
591
- test('animate multiple properties with mixing animation type', () => {
592
- const obj = { x: 0, y: 4 };
593
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
594
- duration: 4
595
- });
596
- animator.animate({ x: 10 }, { animation: new animations_1.AnimationEaseInOut() });
597
- animator.animate({ y: 0 }, { animation: new animations_1.AnimationLineer() });
598
- animator['update'](1);
599
- expect(obj).toEqual({ x: 1.25, y: 3 });
600
- animator['update'](1);
601
- expect(obj).toEqual({ x: 5, y: 2 });
602
- animator['update'](1);
603
- expect(obj).toEqual({ x: 8.75, y: 1 });
604
- animator['update'](1);
605
- expect(obj).toEqual({ x: 10, y: 0 });
606
- });
607
- test('animate multiple properties async', () => {
608
- const obj = { x: 0, y: 0 };
609
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
610
- duration: 4,
611
- animation: new animations_1.AnimationEaseInOut()
612
- });
613
- animator.animate({ y: 10 });
614
- animator['update'](1);
615
- expect(obj).toEqual({ x: 0, y: 1.25 });
616
- animator.animate({ x: 10 });
617
- animator['update'](1);
618
- expect(obj).toEqual({ x: 1.25, y: 5 });
619
- animator['update'](1);
620
- expect(obj).toEqual({ x: 5, y: 8.75 });
621
- animator['update'](1);
622
- expect(obj).toEqual({ x: 8.75, y: 10 });
623
- animator['update'](1);
624
- expect(obj).toEqual({ x: 10, y: 10 });
625
- });
626
- test('animate multiple properties mixed with loop', () => {
627
- const obj = { x: 0, y: 0 };
628
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
629
- duration: 4,
630
- animation: new animations_1.AnimationEaseInOut()
631
- });
632
- animator.animate({ y: 10 }, { loop: true });
633
- animator['update'](1);
634
- expect(obj).toEqual({ x: 0, y: 1.25 });
635
- animator.animate({ x: 10 });
636
- animator['update'](1);
637
- expect(obj).toEqual({ x: 1.25, y: 5 });
638
- animator['update'](1);
639
- expect(obj).toEqual({ x: 5, y: 8.75 });
640
- animator['update'](1);
641
- expect(obj).toEqual({ x: 8.75, y: 0 });
642
- animator['update'](1);
643
- expect(obj).toEqual({ x: 10, y: 1.25 });
644
- animator['update'](1);
645
- expect(obj).toEqual({ x: 10, y: 5 });
646
- });
647
- test('animate multiple properties complete promise', async () => {
648
- let completed1 = false;
649
- let completed2 = false;
650
- const obj = { x: 0, y: 0 };
651
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
652
- duration: 4
653
- });
654
- animator.animate({ y: 10 }).then(() => {
655
- completed1 = true;
656
- });
657
- animator['update'](1);
658
- animator.animate({ x: 10 }).then(() => {
659
- completed2 = true;
660
- });
661
- animator['update'](2);
662
- await (0, helpers_lib_1.Wait)();
663
- expect(completed1).toBeFalsy();
664
- expect(completed2).toBeFalsy();
665
- animator['update'](1);
666
- await (0, helpers_lib_1.Wait)();
667
- expect(completed1).toBeTruthy();
668
- expect(completed2).toBeFalsy();
669
- animator['update'](1);
670
- await (0, helpers_lib_1.Wait)();
671
- expect(completed1).toBeTruthy();
672
- expect(completed2).toBeTruthy();
673
- });
674
- test('pause animations with mixed commands', async () => {
675
- const obj = { x: 0, y: 0 };
676
- const animator = new animator_1.Animator(obj, ['x', 'y'], {
677
- duration: 4,
678
- animation: new animations_1.AnimationLineer()
679
- });
680
- animator.resumeAnimations();
681
- animator.animate({ x: 4 });
682
- animator['update'](1);
683
- expect(obj).toEqual({ x: 1, y: 0 });
684
- animator['update'](1);
685
- expect(obj).toEqual({ x: 2, y: 0 });
686
- animator.pauseAnimations();
687
- animator['update'](1);
688
- expect(obj).toEqual({ x: 2, y: 0 });
689
- animator.pauseAnimations();
690
- animator.animate({ y: 4 });
691
- animator['update'](1);
692
- expect(obj).toEqual({ x: 2, y: 0 });
693
- animator.resumeAnimations();
694
- animator['update'](1);
695
- expect(obj).toEqual({ x: 3, y: 1 });
696
- animator.resumeAnimations();
697
- animator['update'](1);
698
- expect(obj).toEqual({ x: 4, y: 2 });
699
- });
700
- });
701
- });
702
- //# sourceMappingURL=animator.spec.js.map
@@ -1,2 +0,0 @@
1
- export * from './animator';
2
- export * from './animations';