bard-legends-framework 0.12.1 → 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.
- package/dist/index.d.mts +976 -0
- package/dist/index.d.ts +976 -4
- package/dist/index.js +67 -21
- package/dist/index.mjs +67 -0
- package/package.json +26 -11
- package/dist/_interfaces/index.d.ts +0 -6
- package/dist/_interfaces/index.js +0 -2
- package/dist/actions-performance.test.d.ts +0 -1
- package/dist/actions-performance.test.js +0 -83
- package/dist/game-entities/_base/attachable.d.ts +0 -10
- package/dist/game-entities/_base/attachable.js +0 -47
- package/dist/game-entities/_base/attachable.store.d.ts +0 -8
- package/dist/game-entities/_base/attachable.store.js +0 -43
- package/dist/game-entities/_base/attachment-target.d.ts +0 -16
- package/dist/game-entities/_base/attachment-target.js +0 -53
- package/dist/game-entities/_base/destroyable.d.ts +0 -3
- package/dist/game-entities/_base/destroyable.js +0 -10
- package/dist/game-entities/_base/interfaces.d.ts +0 -3
- package/dist/game-entities/_base/interfaces.js +0 -3
- package/dist/game-entities/_base/mixins.d.ts +0 -22
- package/dist/game-entities/_base/mixins.js +0 -60
- package/dist/game-entities/attachable/attachable.d.ts +0 -10
- package/dist/game-entities/attachable/attachable.js +0 -34
- package/dist/game-entities/attachable/attachable.spec.d.ts +0 -1
- package/dist/game-entities/attachable/attachable.spec.js +0 -137
- package/dist/game-entities/attachable/attachable.store.d.ts +0 -8
- package/dist/game-entities/attachable/attachable.store.js +0 -41
- package/dist/game-entities/attachable/attachable.test.d.ts +0 -1
- package/dist/game-entities/attachable/attachable.test.js +0 -140
- package/dist/game-entities/attachable/destroyable.d.ts +0 -17
- package/dist/game-entities/attachable/destroyable.js +0 -71
- package/dist/game-entities/attachable/helpers/decorate-actions-lib.d.ts +0 -20
- package/dist/game-entities/attachable/helpers/decorate-actions-lib.js +0 -134
- package/dist/game-entities/attachable/helpers/referance-variable.d.ts +0 -19
- package/dist/game-entities/attachable/helpers/referance-variable.js +0 -51
- package/dist/game-entities/attachable/interfaces.d.ts +0 -14
- package/dist/game-entities/attachable/interfaces.js +0 -2
- package/dist/game-entities/base/attachable.d.ts +0 -18
- package/dist/game-entities/base/attachable.js +0 -94
- package/dist/game-entities/base/attachable.test.d.ts +0 -1
- package/dist/game-entities/base/attachable.test.js +0 -125
- package/dist/game-entities/base/attachment-target.d.ts +0 -9
- package/dist/game-entities/base/attachment-target.js +0 -53
- package/dist/game-entities/base/attachment-target.test.d.ts +0 -1
- package/dist/game-entities/base/attachment-target.test.js +0 -131
- package/dist/game-entities/base/destroyable.d.ts +0 -16
- package/dist/game-entities/base/destroyable.js +0 -61
- package/dist/game-entities/base/helpers/attachable.store.d.ts +0 -2
- package/dist/game-entities/base/helpers/attachable.store.js +0 -68
- package/dist/game-entities/base/helpers/attachable.store.test.d.ts +0 -1
- package/dist/game-entities/base/helpers/attachable.store.test.js +0 -234
- package/dist/game-entities/base/helpers/attachment-target.store.d.ts +0 -1
- package/dist/game-entities/base/helpers/attachment-target.store.js +0 -40
- package/dist/game-entities/base/helpers/decorate-actions-lib.d.ts +0 -20
- package/dist/game-entities/base/helpers/decorate-actions-lib.js +0 -124
- package/dist/game-entities/base/helpers/referance-variable.d.ts +0 -19
- package/dist/game-entities/base/helpers/referance-variable.js +0 -52
- package/dist/game-entities/base/interfaces.d.ts +0 -14
- package/dist/game-entities/base/interfaces.js +0 -3
- package/dist/game-entities/controller/controller.d.ts +0 -9
- package/dist/game-entities/controller/controller.js +0 -53
- package/dist/game-entities/controller/controller.spec.d.ts +0 -1
- package/dist/game-entities/controller/controller.spec.js +0 -131
- package/dist/game-entities/controller/controller.test.d.ts +0 -1
- package/dist/game-entities/controller/controller.test.js +0 -128
- package/dist/game-entities/entity/entity.d.ts +0 -15
- package/dist/game-entities/entity/entity.js +0 -73
- package/dist/game-entities/entity/entity.spec.d.ts +0 -1
- package/dist/game-entities/entity/entity.spec.js +0 -271
- package/dist/game-entities/entity/entity.test.d.ts +0 -1
- package/dist/game-entities/entity/entity.test.js +0 -253
- package/dist/game-entities/entity/helpers/entity-store.helper.d.ts +0 -11
- package/dist/game-entities/entity/helpers/entity-store.helper.js +0 -46
- package/dist/game-entities/entity/helpers/entity-store.helper.test.d.ts +0 -1
- package/dist/game-entities/entity/helpers/entity-store.helper.test.js +0 -136
- package/dist/game-entities/entity/helpers/entity-views.helper.d.ts +0 -14
- package/dist/game-entities/entity/helpers/entity-views.helper.js +0 -71
- package/dist/game-entities/entity/helpers/view-creation.helper.d.ts +0 -11
- package/dist/game-entities/entity/helpers/view-creation.helper.js +0 -57
- package/dist/game-entities/entity/singleton-entity.d.ts +0 -6
- package/dist/game-entities/entity/singleton-entity.js +0 -23
- package/dist/game-entities/entity/singleton-entity.test.d.ts +0 -1
- package/dist/game-entities/entity/singleton-entity.test.js +0 -66
- package/dist/game-entities/hard-reset.d.ts +0 -5
- package/dist/game-entities/hard-reset.js +0 -14
- package/dist/game-entities/index.d.ts +0 -8
- package/dist/game-entities/index.js +0 -25
- package/dist/game-entities/scene/scene.d.ts +0 -27
- package/dist/game-entities/scene/scene.js +0 -106
- package/dist/game-entities/scene/scene.spec.d.ts +0 -1
- package/dist/game-entities/scene/scene.spec.js +0 -227
- package/dist/game-entities/scene/scene.test.d.ts +0 -1
- package/dist/game-entities/scene/scene.test.js +0 -275
- package/dist/game-entities/service/service.d.ts +0 -6
- package/dist/game-entities/service/service.js +0 -59
- package/dist/game-entities/service/service.spec.d.ts +0 -1
- package/dist/game-entities/service/service.spec.js +0 -273
- package/dist/game-entities/service/service.test.d.ts +0 -1
- package/dist/game-entities/service/service.test.js +0 -273
- package/dist/game-entities/unit-test.helper.d.ts +0 -5
- package/dist/game-entities/unit-test.helper.js +0 -14
- package/dist/game-entities/update-cycle.d.ts +0 -25
- package/dist/game-entities/update-cycle.js +0 -67
- package/dist/game-entities/update-loop.d.ts +0 -21
- package/dist/game-entities/update-loop.js +0 -53
- package/dist/game-entities/view/view.d.ts +0 -16
- package/dist/game-entities/view/view.js +0 -56
- package/dist/game-entities/view/view.spec.d.ts +0 -1
- package/dist/game-entities/view/view.spec.js +0 -498
- package/dist/game-entities/view/view.test.d.ts +0 -1
- package/dist/game-entities/view/view.test.js +0 -348
- package/dist/lib/animator/animations.d.ts +0 -25
- package/dist/lib/animator/animations.js +0 -61
- package/dist/lib/animator/animator.d.ts +0 -52
- package/dist/lib/animator/animator.js +0 -219
- package/dist/lib/animator/animator.spec.d.ts +0 -1
- package/dist/lib/animator/animator.spec.js +0 -702
- package/dist/lib/animator/index.d.ts +0 -2
- package/dist/lib/animator/index.js +0 -24
- package/dist/lib/libraries/animator/animations.d.ts +0 -25
- package/dist/lib/libraries/animator/animations.js +0 -61
- package/dist/lib/libraries/animator/animator.d.ts +0 -52
- package/dist/lib/libraries/animator/animator.js +0 -219
- package/dist/lib/libraries/animator/animator.spec.d.ts +0 -1
- package/dist/lib/libraries/animator/animator.spec.js +0 -702
- package/dist/lib/libraries/animator/index.d.ts +0 -2
- package/dist/lib/libraries/animator/index.js +0 -24
- package/dist/lib/libraries/path-finder/path-finder.d.ts +0 -5
- package/dist/lib/libraries/path-finder/path-finder.js +0 -23
- package/dist/lib/path-finder/path-finder.d.ts +0 -5
- package/dist/lib/path-finder/path-finder.js +0 -23
- package/dist/lib/services/keyboard/keyboard.d.ts +0 -7
- package/dist/lib/services/keyboard/keyboard.js +0 -44
- package/dist/lib/services/mouse/mouse.service.d.ts +0 -12
- package/dist/lib/services/mouse/mouse.service.js +0 -70
- package/dist/lib/services/mouse/mouser-target-focus.service.d.ts +0 -16
- package/dist/lib/services/mouse/mouser-target-focus.service.js +0 -93
- package/dist/lib/update-loop.d.ts +0 -13
- package/dist/lib/update-loop.js +0 -44
- package/dist/physics/entitity-types/immovable-physics-entity.d.ts +0 -13
- package/dist/physics/entitity-types/immovable-physics-entity.js +0 -27
- package/dist/physics/entitity-types/movable-entity.d.ts +0 -11
- package/dist/physics/entitity-types/movable-entity.js +0 -25
- package/dist/physics/entitity-types/movable-physics-entity.d.ts +0 -21
- package/dist/physics/entitity-types/movable-physics-entity.js +0 -87
- package/dist/physics/entitity-types/physics-entity.d.ts +0 -31
- package/dist/physics/entitity-types/physics-entity.js +0 -106
- package/dist/physics/entity-types/immovable-physics-entity.d.ts +0 -9
- package/dist/physics/entity-types/immovable-physics-entity.js +0 -25
- package/dist/physics/entity-types/movable-entity.d.ts +0 -11
- package/dist/physics/entity-types/movable-entity.js +0 -26
- package/dist/physics/entity-types/movable-physics-entity.d.ts +0 -19
- package/dist/physics/entity-types/movable-physics-entity.js +0 -94
- package/dist/physics/entity-types/physics-entity.d.ts +0 -30
- package/dist/physics/entity-types/physics-entity.js +0 -90
- package/dist/physics/helpers/closest-available-space.helper.d.ts +0 -19
- package/dist/physics/helpers/closest-available-space.helper.js +0 -109
- package/dist/physics/helpers/closest-available-space.helper.spec.d.ts +0 -1
- package/dist/physics/helpers/closest-available-space.helper.spec.js +0 -118
- package/dist/physics/helpers/p2js.helper.d.ts +0 -7
- package/dist/physics/helpers/p2js.helper.js +0 -25
- package/dist/physics/helpers/shape-factory.d.ts +0 -13
- package/dist/physics/helpers/shape-factory.js +0 -109
- package/dist/physics/index.d.ts +0 -6
- package/dist/physics/index.js +0 -28
- package/dist/physics/interfaces.d.ts +0 -48
- package/dist/physics/interfaces.js +0 -13
- package/dist/physics/libs/p2js.helper.d.ts +0 -10
- package/dist/physics/libs/p2js.helper.js +0 -46
- package/dist/physics/libs/physics-body-groups.d.ts +0 -1
- package/dist/physics/libs/physics-body-groups.js +0 -3
- package/dist/physics/libs/position-to-grid-position-converter.d.ts +0 -6
- package/dist/physics/libs/position-to-grid-position-converter.js +0 -19
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.d.ts +0 -29
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.js +0 -62
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.d.ts +0 -34
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.js +0 -80
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -24
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -3
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.d.ts +0 -30
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.js +0 -3
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.d.ts +0 -21
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.js +0 -5
- package/dist/physics/module//342/232/234/357/270/217gateways/index.d.ts +0 -4
- package/dist/physics/module//342/232/234/357/270/217gateways/index.js +0 -26
- package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.d.ts +0 -20
- package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.js +0 -42
- package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.d.ts +0 -19
- package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.js +0 -49
- package/dist/physics/module//360/237/223/220services/availability-grid.service.d.ts +0 -17
- package/dist/physics/module//360/237/223/220services/availability-grid.service.js +0 -83
- package/dist/physics/module//360/237/223/220services/border.service.d.ts +0 -5
- package/dist/physics/module//360/237/223/220services/border.service.js +0 -62
- package/dist/physics/module//360/237/223/220services/collision/collisions.service.d.ts +0 -10
- package/dist/physics/module//360/237/223/220services/collision/collisions.service.js +0 -113
- package/dist/physics/module//360/237/223/220services/collision/hit-test.service.d.ts +0 -10
- package/dist/physics/module//360/237/223/220services/collision/hit-test.service.js +0 -75
- package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.d.ts +0 -12
- package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.js +0 -61
- package/dist/physics/module//360/237/223/220services/collisions.service.d.ts +0 -10
- package/dist/physics/module//360/237/223/220services/collisions.service.js +0 -118
- package/dist/physics/module//360/237/223/220services/creation/border.service.d.ts +0 -6
- package/dist/physics/module//360/237/223/220services/creation/border.service.js +0 -42
- package/dist/physics/module//360/237/223/220services/creation/materials.service.d.ts +0 -15
- package/dist/physics/module//360/237/223/220services/creation/materials.service.js +0 -120
- package/dist/physics/module//360/237/223/220services/creation/physics-world.service.d.ts +0 -21
- package/dist/physics/module//360/237/223/220services/creation/physics-world.service.js +0 -116
- package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.js +0 -98
- package/dist/physics/module//360/237/223/220services/debug-visuals.service.d.ts +0 -36
- package/dist/physics/module//360/237/223/220services/debug-visuals.service.js +0 -127
- package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.d.ts +0 -22
- package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.js +0 -126
- package/dist/physics/module//360/237/223/220services/explosion.service.d.ts +0 -21
- package/dist/physics/module//360/237/223/220services/explosion.service.js +0 -112
- package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.d.ts +0 -22
- package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.js +0 -126
- package/dist/physics/module//360/237/223/220services/explosions/explosion.service.d.ts +0 -21
- package/dist/physics/module//360/237/223/220services/explosions/explosion.service.js +0 -112
- package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.js +0 -77
- package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.js +0 -77
- package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.d.ts +0 -18
- package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.js +0 -107
- package/dist/physics/module//360/237/223/220services/impact/explosion.service.d.ts +0 -18
- package/dist/physics/module//360/237/223/220services/impact/explosion.service.js +0 -93
- package/dist/physics/module//360/237/223/220services/impact/impact.service.d.ts +0 -5
- package/dist/physics/module//360/237/223/220services/impact/impact.service.js +0 -23
- package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.js +0 -83
- package/dist/physics/module//360/237/223/220services/materials.service.d.ts +0 -20
- package/dist/physics/module//360/237/223/220services/materials.service.js +0 -130
- package/dist/physics/module//360/237/223/220services/path-finder.service.d.ts +0 -26
- package/dist/physics/module//360/237/223/220services/path-finder.service.js +0 -131
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.d.ts +0 -15
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.js +0 -51
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.d.ts +0 -16
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.js +0 -76
- package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.d.ts +0 -14
- package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.js +0 -86
- package/dist/physics/module//360/237/223/220services/physics-world.service.d.ts +0 -41
- package/dist/physics/module//360/237/223/220services/physics-world.service.js +0 -134
- package/dist/physics/module//360/237/223/220services/query/physics-query.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/query/physics-query.service.js +0 -25
- package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.js +0 -91
- package/dist/physics/module//360/237/223/220services/ray-casting.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/ray-casting.service.js +0 -93
- package/dist/physics/module//360/237/223/220services/shape-creation.service.d.ts +0 -14
- package/dist/physics/module//360/237/223/220services/shape-creation.service.js +0 -124
- package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.d.ts +0 -22
- package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.js +0 -157
- package/dist/physics/module//360/237/247/212entities/border.entity.d.ts +0 -5
- package/dist/physics/module//360/237/247/212entities/border.entity.js +0 -25
- package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.d.ts +0 -12
- package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.js +0 -39
- package/dist/physics/module//360/237/247/212entities/physics-world.entity.d.ts +0 -33
- package/dist/physics/module//360/237/247/212entities/physics-world.entity.js +0 -51
- package/dist/physics/physics-world.d.ts +0 -62
- package/dist/physics/physics-world.js +0 -153
- package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.d.ts +0 -6
- package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.js +0 -19
- package/dist/physics/sub-elements/available-spaces/physics-availability-grid.d.ts +0 -15
- package/dist/physics/sub-elements/available-spaces/physics-availability-grid.js +0 -92
- package/dist/physics/sub-elements/available-spaces/physics-available-spaces.d.ts +0 -26
- package/dist/physics/sub-elements/available-spaces/physics-available-spaces.js +0 -102
- package/dist/physics/sub-elements/collisions/contact-equation-orginiser.d.ts +0 -18
- package/dist/physics/sub-elements/collisions/contact-equation-orginiser.js +0 -90
- package/dist/physics/sub-elements/collisions/physics-collision.d.ts +0 -12
- package/dist/physics/sub-elements/collisions/physics-collision.js +0 -50
- package/dist/physics/sub-elements/elements/physics-body-groups.d.ts +0 -15
- package/dist/physics/sub-elements/elements/physics-body-groups.js +0 -76
- package/dist/physics/sub-elements/elements/physics-materials.d.ts +0 -19
- package/dist/physics/sub-elements/elements/physics-materials.js +0 -108
- package/dist/physics/sub-elements/elements/physics-world-borders.d.ts +0 -11
- package/dist/physics/sub-elements/elements/physics-world-borders.js +0 -77
- package/dist/physics/sub-elements/physics-body-groups.d.ts +0 -12
- package/dist/physics/sub-elements/physics-body-groups.js +0 -54
- package/dist/physics/sub-elements/physics-collision.d.ts +0 -22
- package/dist/physics/sub-elements/physics-collision.js +0 -155
- package/dist/physics/sub-elements/physics-materials.d.ts +0 -19
- package/dist/physics/sub-elements/physics-materials.js +0 -108
- package/dist/physics/sub-elements/physics-world-borders.d.ts +0 -6
- package/dist/physics/sub-elements/physics-world-borders.js +0 -29
- package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.d.ts +0 -20
- package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.js +0 -65
- package/dist/physics/sub-elements/raycasting/physics-explosion.d.ts +0 -20
- package/dist/physics/sub-elements/raycasting/physics-explosion.js +0 -115
- package/dist/physics/sub-elements/raycasting/ray-cast.d.ts +0 -27
- package/dist/physics/sub-elements/raycasting/ray-cast.js +0 -101
- package/dist/pixi/components/display-object-array.d.ts +0 -28
- package/dist/pixi/components/display-object-array.js +0 -62
- package/dist/pixi/components/helpers/smooth-scroller.d.ts +0 -25
- package/dist/pixi/components/helpers/smooth-scroller.js +0 -63
- package/dist/pixi/components/helpers/smooth-scroller.test.d.ts +0 -1
- package/dist/pixi/components/helpers/smooth-scroller.test.js +0 -137
- package/dist/pixi/components/menu/menu-entity.d.ts +0 -14
- package/dist/pixi/components/menu/menu-entity.js +0 -48
- package/dist/pixi/components/menu/menu.ui.d.ts +0 -23
- package/dist/pixi/components/menu/menu.ui.js +0 -97
- package/dist/pixi/components/mouse-wheel-listener.ui.d.ts +0 -11
- package/dist/pixi/components/mouse-wheel-listener.ui.js +0 -63
- package/dist/pixi/components/scroll-area.ui.d.ts +0 -18
- package/dist/pixi/components/scroll-area.ui.js +0 -56
- package/dist/pixi/components/scroll-mask.ui.d.ts +0 -17
- package/dist/pixi/components/scroll-mask.ui.js +0 -132
- package/dist/pixi/display-object/components/filters.d.ts +0 -21
- package/dist/pixi/display-object/components/filters.js +0 -116
- package/dist/pixi/display-object/components/glow-effect.d.ts +0 -12
- package/dist/pixi/display-object/components/glow-effect.js +0 -40
- package/dist/pixi/display-object/components/glow-filter.d.ts +0 -12
- package/dist/pixi/display-object/components/glow-filter.js +0 -40
- package/dist/pixi/display-object/container-attributes.d.ts +0 -99
- package/dist/pixi/display-object/container-attributes.js +0 -313
- package/dist/pixi/display-object/container.d.ts +0 -22
- package/dist/pixi/display-object/container.js +0 -72
- package/dist/pixi/display-object/display-object-attributes.d.ts +0 -45
- package/dist/pixi/display-object/display-object-attributes.js +0 -152
- package/dist/pixi/display-object/display-object.d.ts +0 -25
- package/dist/pixi/display-object/display-object.js +0 -87
- package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.d.ts +0 -13
- package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.js +0 -103
- package/dist/pixi/display-object/filters/base-filters/blur.filter.d.ts +0 -11
- package/dist/pixi/display-object/filters/base-filters/blur.filter.js +0 -115
- package/dist/pixi/display-object/filters/base-filters/contrast-filter.d.ts +0 -12
- package/dist/pixi/display-object/filters/base-filters/contrast-filter.js +0 -72
- package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.d.ts +0 -14
- package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.js +0 -107
- package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.d.ts +0 -16
- package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.js +0 -133
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.d.ts +0 -14
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.d.ts +0 -9
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.js +0 -103
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.js +0 -107
- package/dist/pixi/display-object/filters/composite-filters/glow-filter.d.ts +0 -8
- package/dist/pixi/display-object/filters/composite-filters/glow-filter.js +0 -59
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.d.ts +0 -10
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.js +0 -64
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.d.ts +0 -1
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.js +0 -31
- package/dist/pixi/display-object/filters/templates/checking-neighbors.template.d.ts +0 -7
- package/dist/pixi/display-object/filters/templates/checking-neighbors.template.js +0 -74
- package/dist/pixi/display-object/filters/templates/plane.template.d.ts +0 -7
- package/dist/pixi/display-object/filters/templates/plane.template.js +0 -65
- package/dist/pixi/display-object/filters.d.ts +0 -29
- package/dist/pixi/display-object/filters.js +0 -151
- package/dist/pixi/display-object/index.d.ts +0 -9
- package/dist/pixi/display-object/index.js +0 -19
- package/dist/pixi/display-object/objects/components/filters.d.ts +0 -21
- package/dist/pixi/display-object/objects/components/filters.js +0 -116
- package/dist/pixi/display-object/objects/container.d.ts +0 -6
- package/dist/pixi/display-object/objects/container.js +0 -47
- package/dist/pixi/display-object/objects/graphics/graphics.d.ts +0 -34
- package/dist/pixi/display-object/objects/graphics/graphics.js +0 -201
- package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.d.ts +0 -16
- package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.js +0 -45
- package/dist/pixi/display-object/objects/graphics.d.ts +0 -40
- package/dist/pixi/display-object/objects/graphics.js +0 -229
- package/dist/pixi/display-object/objects/helpers/filters.d.ts +0 -29
- package/dist/pixi/display-object/objects/helpers/filters.js +0 -161
- package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.d.ts +0 -11
- package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.js +0 -129
- package/dist/pixi/display-object/objects/placeholder.d.ts +0 -7
- package/dist/pixi/display-object/objects/placeholder.js +0 -46
- package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.d.ts +0 -9
- package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.js +0 -89
- package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.d.ts +0 -11
- package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.js +0 -113
- package/dist/pixi/display-object/objects/sprite/sprite.d.ts +0 -52
- package/dist/pixi/display-object/objects/sprite/sprite.js +0 -269
- package/dist/pixi/display-object/objects/sprite.d.ts +0 -51
- package/dist/pixi/display-object/objects/sprite.js +0 -273
- package/dist/pixi/display-object/objects/text/helpers/index.d.ts +0 -8
- package/dist/pixi/display-object/objects/text/helpers/index.js +0 -6
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.d.ts +0 -30
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.js +0 -53
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.d.ts +0 -19
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.js +0 -162
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.js +0 -371
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.d.ts +0 -6
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.js +0 -70
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.js +0 -136
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.d.ts +0 -37
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.js +0 -169
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.js +0 -283
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.d.ts +0 -8
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.js +0 -88
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.js +0 -152
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.d.ts +0 -28
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.js +0 -37
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.d.ts +0 -5
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.js +0 -669
- package/dist/pixi/display-object/objects/text/rich-text.d.ts +0 -19
- package/dist/pixi/display-object/objects/text/rich-text.js +0 -15
- package/dist/pixi/display-object/objects/text/text.d.ts +0 -25
- package/dist/pixi/display-object/objects/text/text.js +0 -132
- package/dist/pixi/display-object/objects/text.d.ts +0 -35
- package/dist/pixi/display-object/objects/text.js +0 -124
- package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.d.ts +0 -22
- package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.js +0 -107
- package/dist/pixi/game.d.ts +0 -47
- package/dist/pixi/game.js +0 -137
- package/dist/pixi/helpers/game-assets.d.ts +0 -15
- package/dist/pixi/helpers/game-assets.js +0 -103
- package/dist/pixi/helpers/glow-sprite-generator.d.ts +0 -10
- package/dist/pixi/helpers/glow-sprite-generator.js +0 -113
- package/dist/pixi/helpers/pixi-container.helper.d.ts +0 -5
- package/dist/pixi/helpers/pixi-container.helper.js +0 -14
- package/dist/pixi/helpers/position-conversion.helper.d.ts +0 -12
- package/dist/pixi/helpers/position-conversion.helper.js +0 -54
- package/dist/pixi/helpers/position-conversion.helper.test.d.ts +0 -1
- package/dist/pixi/helpers/position-conversion.helper.test.js +0 -83
- package/dist/pixi/helpers/screen-position-to-stage.helper.d.ts +0 -4
- package/dist/pixi/helpers/screen-position-to-stage.helper.js +0 -17
- package/dist/pixi/helpers/screen-position-to-stage.helper.test.d.ts +0 -1
- package/dist/pixi/helpers/screen-position-to-stage.helper.test.js +0 -178
- package/dist/pixi/index.d.ts +0 -14
- package/dist/pixi/index.js +0 -44
- package/dist/pixi/modules/CAMERA/camera.d.ts +0 -13
- package/dist/pixi/modules/CAMERA/camera.js +0 -27
- package/dist/pixi/modules/CAMERA/index.d.ts +0 -2
- package/dist/pixi/modules/CAMERA/index.js +0 -9
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.d.ts +0 -8
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.js +0 -24
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.d.ts +0 -11
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.js +0 -33
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.d.ts +0 -6
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.js +0 -30
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.d.ts +0 -12
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.js +0 -41
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -19
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -18
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.d.ts +0 -3
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.js +0 -27
- package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.d.ts +0 -12
- package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.js +0 -96
- package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.d.ts +0 -18
- package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.js +0 -26
- package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.d.ts +0 -23
- package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.js +0 -115
- package/dist/pixi/pixi-definitions.d.ts +0 -38
- package/dist/pixi/pixi-definitions.js +0 -37
- package/dist/pixi/services/keyboard/keyboard.d.ts +0 -12
- package/dist/pixi/services/keyboard/keyboard.js +0 -54
- package/dist/pixi/services/mouse/mouse-target-focus.service.d.ts +0 -21
- package/dist/pixi/services/mouse/mouse-target-focus.service.js +0 -86
- package/dist/pixi/services/mouse/mouse.service.d.ts +0 -21
- package/dist/pixi/services/mouse/mouse.service.js +0 -101
- package/dist/services/keyboard/keyboard.d.ts +0 -7
- package/dist/services/keyboard/keyboard.js +0 -44
- package/dist/services/mouse/mouse.service.d.ts +0 -12
- package/dist/services/mouse/mouse.service.js +0 -70
- package/dist/services/mouse/mouser-target-focus.service.d.ts +0 -16
- package/dist/services/mouse/mouser-target-focus.service.js +0 -93
- package/dist/utilities/animator/animating-content/fade-in-content.d.ts +0 -18
- package/dist/utilities/animator/animating-content/fade-in-content.js +0 -37
- package/dist/utilities/animator/animating-content/fade-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/animating-content/fade-in-content.test.js +0 -10
- package/dist/utilities/animator/animating-content/slide-in-content.d.ts +0 -37
- package/dist/utilities/animator/animating-content/slide-in-content.js +0 -99
- package/dist/utilities/animator/animating-content/slide-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/animating-content/slide-in-content.test.js +0 -10
- package/dist/utilities/animator/animations.d.ts +0 -45
- package/dist/utilities/animator/animations.js +0 -92
- package/dist/utilities/animator/animator/animator.d.ts +0 -44
- package/dist/utilities/animator/animator/animator.js +0 -234
- package/dist/utilities/animator/animator/animator.memory-leak.test.d.ts +0 -1
- package/dist/utilities/animator/animator/animator.memory-leak.test.js +0 -73
- package/dist/utilities/animator/animator/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator/animator.performance.test.js +0 -116
- package/dist/utilities/animator/animator/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator/animator.test.js +0 -1046
- package/dist/utilities/animator/animator.d.ts +0 -60
- package/dist/utilities/animator/animator.js +0 -322
- package/dist/utilities/animator/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator.performance.test.js +0 -46
- package/dist/utilities/animator/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator.test.js +0 -928
- package/dist/utilities/animator/animator2/animator.d.ts +0 -42
- package/dist/utilities/animator/animator2/animator.js +0 -222
- package/dist/utilities/animator/animator2/animator.memory-leak.test.d.ts +0 -1
- package/dist/utilities/animator/animator2/animator.memory-leak.test.js +0 -73
- package/dist/utilities/animator/animator2/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator2/animator.performance.test.js +0 -65
- package/dist/utilities/animator/animator2/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator2/animator.test.js +0 -1007
- package/dist/utilities/animator/animator_old/animator.d.ts +0 -60
- package/dist/utilities/animator/animator_old/animator.js +0 -337
- package/dist/utilities/animator/animator_old/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator_old/animator.performance.test.js +0 -121
- package/dist/utilities/animator/animator_old/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator_old/animator.test.js +0 -996
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.d.ts +0 -18
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.js +0 -37
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.js +0 -10
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.d.ts +0 -38
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.js +0 -208
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.js +0 -439
- package/dist/utilities/animator/content-animations/slide/slide-in-content.d.ts +0 -41
- package/dist/utilities/animator/content-animations/slide/slide-in-content.js +0 -107
- package/dist/utilities/animator/content-animations/slide/slide-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/slide/slide-in-content.test.js +0 -10
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.d.ts +0 -24
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.js +0 -138
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.js +0 -307
- package/dist/utilities/animator/content-animations/slide/state-animation.d.ts +0 -37
- package/dist/utilities/animator/content-animations/slide/state-animation.js +0 -170
- package/dist/utilities/animator/content-animations/slide/state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/slide/state-animation.test.js +0 -340
- package/dist/utilities/animator/index.d.ts +0 -7
- package/dist/utilities/animator/index.js +0 -24
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.d.ts +0 -18
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.js +0 -37
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.js +0 -10
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.d.ts +0 -32
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.js +0 -168
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.js +0 -431
- package/dist/utilities/animator/state-animation/slide/slide-in-content.d.ts +0 -37
- package/dist/utilities/animator/state-animation/slide/slide-in-content.js +0 -100
- package/dist/utilities/animator/state-animation/slide/slide-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/slide/slide-in-content.test.js +0 -10
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.d.ts +0 -24
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.js +0 -130
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.js +0 -301
- package/dist/utilities/animator/state-animation/slide-state-animation.d.ts +0 -24
- package/dist/utilities/animator/state-animation/slide-state-animation.js +0 -130
- package/dist/utilities/animator/state-animation/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/slide-state-animation.test.js +0 -301
- package/dist/utilities/animator/state-animation/state-animation.d.ts +0 -33
- package/dist/utilities/animator/state-animation/state-animation.js +0 -146
- package/dist/utilities/animator/state-animation/state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/state-animation.test.js +0 -335
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.js +0 -168
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.js +0 -431
- package/dist/utilities/data-structures/vector-set/vector-set.d.ts +0 -7
- package/dist/utilities/data-structures/vector-set/vector-set.js +0 -26
- package/dist/utilities/delta-time/delta-time.d.ts +0 -3
- package/dist/utilities/delta-time/delta-time.js +0 -10
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
- package/dist/utilities/grid-algorithms/path-finder/path-finder.d.ts +0 -8
- package/dist/utilities/grid-algorithms/path-finder/path-finder.js +0 -98
- package/dist/utilities/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
- package/dist/utilities/grid-algorithms/path-finder/path-finder.test.js +0 -155
- package/dist/utilities/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
- package/dist/utilities/grid-algorithms/position-to-grid-position-converter.js +0 -17
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
- package/dist/utilities/index.d.ts +0 -6
- package/dist/utilities/index.js +0 -29
- package/dist/utilities/libraries/animator/animating-content/fade-in-content.d.ts +0 -18
- package/dist/utilities/libraries/animator/animating-content/fade-in-content.js +0 -37
- package/dist/utilities/libraries/animator/animating-content/slide-in-content.d.ts +0 -37
- package/dist/utilities/libraries/animator/animating-content/slide-in-content.js +0 -99
- package/dist/utilities/libraries/animator/animating-content/state-animation.d.ts +0 -36
- package/dist/utilities/libraries/animator/animating-content/state-animation.js +0 -174
- package/dist/utilities/libraries/animator/animating-content/state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/animating-content/state-animation.test.js +0 -399
- package/dist/utilities/libraries/animator/animations.d.ts +0 -37
- package/dist/utilities/libraries/animator/animations.js +0 -88
- package/dist/utilities/libraries/animator/animator.d.ts +0 -63
- package/dist/utilities/libraries/animator/animator.js +0 -325
- package/dist/utilities/libraries/animator/animator.spec.d.ts +0 -1
- package/dist/utilities/libraries/animator/animator.spec.js +0 -779
- package/dist/utilities/libraries/animator/animator.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/animator.test.js +0 -893
- package/dist/utilities/libraries/animator/index.d.ts +0 -7
- package/dist/utilities/libraries/animator/index.js +0 -24
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.d.ts +0 -24
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.js +0 -131
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.js +0 -326
- package/dist/utilities/libraries/animator/state-animation/state-animation.d.ts +0 -33
- package/dist/utilities/libraries/animator/state-animation/state-animation.js +0 -147
- package/dist/utilities/libraries/animator/state-animation/state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/state-animation/state-animation.test.js +0 -360
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.js +0 -169
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.js +0 -456
- package/dist/utilities/libraries/binary-heap/binary-heap.d.ts +0 -13
- package/dist/utilities/libraries/binary-heap/binary-heap.js +0 -110
- package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.d.ts +0 -13
- package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.js +0 -110
- package/dist/utilities/libraries/data-structures/grid/grid.d.ts +0 -38
- package/dist/utilities/libraries/data-structures/grid/grid.js +0 -133
- package/dist/utilities/libraries/data-structures/grid/grid.spec.d.ts +0 -1
- package/dist/utilities/libraries/data-structures/grid/grid.spec.js +0 -178
- package/dist/utilities/libraries/data-structures/grid/grid.test.d.ts +0 -1
- package/dist/utilities/libraries/data-structures/grid/grid.test.js +0 -220
- package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.d.ts +0 -6
- package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.js +0 -19
- package/dist/utilities/libraries/data-structures/queue/queue.d.ts +0 -23
- package/dist/utilities/libraries/data-structures/queue/queue.js +0 -72
- package/dist/utilities/libraries/data-structures/queue/queue.test.d.ts +0 -1
- package/dist/utilities/libraries/data-structures/queue/queue.test.js +0 -57
- package/dist/utilities/libraries/data-structures/vector-set/vector-set.d.ts +0 -7
- package/dist/utilities/libraries/data-structures/vector-set/vector-set.js +0 -26
- package/dist/utilities/libraries/delta-time/delta-time.d.ts +0 -3
- package/dist/utilities/libraries/delta-time/delta-time.js +0 -10
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.js +0 -124
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.d.ts +0 -8
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.js +0 -98
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.js +0 -169
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.js +0 -155
- package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
- package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.js +0 -17
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.js +0 -296
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
- package/dist/utilities/libraries/path-finder/path-finder.d.ts +0 -12
- package/dist/utilities/libraries/path-finder/path-finder.js +0 -127
- package/dist/utilities/libraries/path-finder/path-finder.spec.d.ts +0 -1
- package/dist/utilities/libraries/path-finder/path-finder.spec.js +0 -158
- package/dist/utilities/services/keyboard/keyboard.d.ts +0 -7
- package/dist/utilities/services/keyboard/keyboard.js +0 -47
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.d.ts +0 -4
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.js +0 -17
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.d.ts +0 -1
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.js +0 -172
- package/dist/utilities/services/mouse/mouse-target-focus.service.d.ts +0 -20
- package/dist/utilities/services/mouse/mouse-target-focus.service.js +0 -88
- package/dist/utilities/services/mouse/mouse.service.d.ts +0 -13
- package/dist/utilities/services/mouse/mouse.service.js +0 -91
- package/dist/utilities/services/mouse/mouser-target-focus.service.d.ts +0 -16
- package/dist/utilities/services/mouse/mouser-target-focus.service.js +0 -93
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Vector } from 'helpers-lib';
|
|
2
|
-
import { Container } from '../../../pixi';
|
|
3
|
-
import { AnimatorAnimation } from '../animations';
|
|
4
|
-
export interface ScrollInContentOptions {
|
|
5
|
-
readonly duration: number;
|
|
6
|
-
readonly animation: AnimatorAnimation;
|
|
7
|
-
readonly size: Vector;
|
|
8
|
-
readonly margin: number;
|
|
9
|
-
readonly direction: 'horizontal' | 'vertical';
|
|
10
|
-
}
|
|
11
|
-
export declare class SlideInContentByIndex extends Container {
|
|
12
|
-
private createFunction;
|
|
13
|
-
private options;
|
|
14
|
-
private directionProperty;
|
|
15
|
-
private stateAnimation;
|
|
16
|
-
private contents;
|
|
17
|
-
constructor(createFunction: (value: {
|
|
18
|
-
index: number;
|
|
19
|
-
container: Container;
|
|
20
|
-
}) => void, partialOptions?: Partial<ScrollInContentOptions>);
|
|
21
|
-
setIndex(index: number, options?: {
|
|
22
|
-
instant?: boolean;
|
|
23
|
-
}): this;
|
|
24
|
-
private createMask;
|
|
25
|
-
}
|
|
26
|
-
export declare class SlideInContent<T> extends SlideInContentByIndex {
|
|
27
|
-
readonly itemToIndex: Map<T, number>;
|
|
28
|
-
readonly indexToItem: Map<number, T>;
|
|
29
|
-
constructor(items: T[], createFunction: (value: {
|
|
30
|
-
index: number;
|
|
31
|
-
item: T;
|
|
32
|
-
container: Container;
|
|
33
|
-
}) => void, partialOptions?: Partial<ScrollInContentOptions>);
|
|
34
|
-
setItem(item: T, options?: {
|
|
35
|
-
instant?: boolean;
|
|
36
|
-
}): this;
|
|
37
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SlideInContent = exports.SlideInContentByIndex = void 0;
|
|
4
|
-
const helpers_lib_1 = require("helpers-lib");
|
|
5
|
-
const pixi_1 = require("../../../pixi");
|
|
6
|
-
const animations_1 = require("../animations");
|
|
7
|
-
const slide_state_animation_1 = require("../state-animation/slide-state-animation");
|
|
8
|
-
class SlideInContentByIndex extends pixi_1.Container {
|
|
9
|
-
constructor(createFunction, partialOptions) {
|
|
10
|
-
super();
|
|
11
|
-
this.createFunction = createFunction;
|
|
12
|
-
this.directionProperty = 'x';
|
|
13
|
-
this.contents = new Map();
|
|
14
|
-
this.options = {
|
|
15
|
-
duration: 300,
|
|
16
|
-
animation: new animations_1.AnimationEaseInOutCubic(),
|
|
17
|
-
size: new helpers_lib_1.Vector(500, 500),
|
|
18
|
-
margin: 20,
|
|
19
|
-
direction: 'horizontal',
|
|
20
|
-
...partialOptions
|
|
21
|
-
};
|
|
22
|
-
let fullSize = this.options.direction === 'horizontal'
|
|
23
|
-
? new helpers_lib_1.Vector(this.options.size.x + this.options.margin * 2, this.options.size.y)
|
|
24
|
-
: new helpers_lib_1.Vector(this.options.size.x, this.options.size.y + this.options.margin * 2);
|
|
25
|
-
let wrapper = new pixi_1.Container()
|
|
26
|
-
.setPosition(this.options.direction === 'horizontal' ? new helpers_lib_1.Vector(-this.options.margin, 0) : new helpers_lib_1.Vector(0, -this.options.margin), { round: false })
|
|
27
|
-
.displayParent(this)
|
|
28
|
-
.attach(this);
|
|
29
|
-
this.createMask(fullSize, this.options.margin, this.options.direction, wrapper);
|
|
30
|
-
this.directionProperty = this.options.direction === 'horizontal' ? 'x' : 'y';
|
|
31
|
-
this.stateAnimation = new slide_state_animation_1.SlideStateAnimation({
|
|
32
|
-
duration: this.options.duration,
|
|
33
|
-
animation: this.options.animation
|
|
34
|
-
})
|
|
35
|
-
.onStateChange((state, index) => {
|
|
36
|
-
if (state === slide_state_animation_1.SlideStateAnimationState.appear) {
|
|
37
|
-
let container = new pixi_1.Container().displayParent(this).attach(this);
|
|
38
|
-
this.contents.set(index, container);
|
|
39
|
-
this.createFunction({ index, container });
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
let container = this.contents.get(index);
|
|
43
|
-
if (container) {
|
|
44
|
-
container.destroy();
|
|
45
|
-
this.contents.delete(index);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
.onValueChange((value, index) => {
|
|
50
|
-
let container = this.contents.get(index);
|
|
51
|
-
if (container) {
|
|
52
|
-
let vec = { x: 0, y: 0 };
|
|
53
|
-
vec[this.directionProperty] = fullSize[this.directionProperty] * value + this.options.margin;
|
|
54
|
-
container.setPosition(helpers_lib_1.Vector.fromVec2(vec), { round: false });
|
|
55
|
-
}
|
|
56
|
-
})
|
|
57
|
-
.attach(this);
|
|
58
|
-
this.addChildTo = wrapper;
|
|
59
|
-
}
|
|
60
|
-
setIndex(index, options) {
|
|
61
|
-
this.stateAnimation.setIndex(index, options);
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
createMask(size, padding, direction, container) {
|
|
65
|
-
new pixi_1.ScrollMaskUI(container, new helpers_lib_1.Vector(size.x, size.y), padding, direction).attach(this);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.SlideInContentByIndex = SlideInContentByIndex;
|
|
69
|
-
class SlideInContent extends SlideInContentByIndex {
|
|
70
|
-
constructor(items, createFunction, partialOptions) {
|
|
71
|
-
super((value) => {
|
|
72
|
-
let item = this.indexToItem.get(value.index);
|
|
73
|
-
if (item) {
|
|
74
|
-
createFunction({ index: value.index, item, container: value.container });
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
throw new Error(`SlideInContent: The item with index '${value.index}' is not part of the items list`);
|
|
78
|
-
}
|
|
79
|
-
}, partialOptions);
|
|
80
|
-
this.itemToIndex = new Map();
|
|
81
|
-
this.indexToItem = new Map();
|
|
82
|
-
items.forEach((item, index) => {
|
|
83
|
-
this.itemToIndex.set(item, index);
|
|
84
|
-
this.indexToItem.set(index, item);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
setItem(item, options) {
|
|
88
|
-
let index = this.itemToIndex.get(item);
|
|
89
|
-
if (index !== undefined) {
|
|
90
|
-
this.setIndex(index, options);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
throw new Error(`SlideInContent: The item '${item}' is not part of the items list`);
|
|
94
|
-
}
|
|
95
|
-
return this;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.SlideInContent = SlideInContent;
|
|
99
|
-
//# sourceMappingURL=slide-in-content.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const vitest_1 = require("vitest");
|
|
4
|
-
const slide_in_content_1 = require("./slide-in-content");
|
|
5
|
-
(0, vitest_1.describe)('Slide In Content', () => {
|
|
6
|
-
(0, vitest_1.test)('should exist', () => {
|
|
7
|
-
(0, vitest_1.expect)(slide_in_content_1.SlideInContent).toBeDefined();
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=slide-in-content.test.js.map
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export interface AnimatorAnimation {
|
|
2
|
-
start(): void;
|
|
3
|
-
multiplierFunction(t: number): number;
|
|
4
|
-
}
|
|
5
|
-
export declare class AnimationInterpolationFunctions {
|
|
6
|
-
static boomerangTime(time: number): number;
|
|
7
|
-
static lineer(time: number): number;
|
|
8
|
-
static easeIn(time: number): number;
|
|
9
|
-
static easeOut(time: number): number;
|
|
10
|
-
static easeInOut(time: number): number;
|
|
11
|
-
static easeInOutCubic(t: number): number;
|
|
12
|
-
}
|
|
13
|
-
declare class AnimationLineer implements AnimatorAnimation {
|
|
14
|
-
start(): void;
|
|
15
|
-
multiplierFunction(t: number): number;
|
|
16
|
-
}
|
|
17
|
-
declare class AnimationEaseIn implements AnimatorAnimation {
|
|
18
|
-
start(): void;
|
|
19
|
-
multiplierFunction(t: number): number;
|
|
20
|
-
}
|
|
21
|
-
declare class AnimationEaseOut implements AnimatorAnimation {
|
|
22
|
-
start(): void;
|
|
23
|
-
multiplierFunction(t: number): number;
|
|
24
|
-
}
|
|
25
|
-
declare class AnimationEaseInOut implements AnimatorAnimation {
|
|
26
|
-
start(): void;
|
|
27
|
-
multiplierFunction(t: number): number;
|
|
28
|
-
}
|
|
29
|
-
declare class AnimationEaseInOutCubic implements AnimatorAnimation {
|
|
30
|
-
start(): void;
|
|
31
|
-
multiplierFunction(t: number): number;
|
|
32
|
-
}
|
|
33
|
-
export declare class AnimationFlicker implements AnimatorAnimation {
|
|
34
|
-
private _timeGrid;
|
|
35
|
-
start(): void;
|
|
36
|
-
multiplierFunction(t: number): number;
|
|
37
|
-
}
|
|
38
|
-
export declare class Animations {
|
|
39
|
-
static lineer: AnimationLineer;
|
|
40
|
-
static easeIn: AnimationEaseIn;
|
|
41
|
-
static easeOut: AnimationEaseOut;
|
|
42
|
-
static easeInOut: AnimationEaseInOut;
|
|
43
|
-
static easeInOutCubic: AnimationEaseInOutCubic;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Animations = exports.AnimationFlicker = exports.AnimationInterpolationFunctions = void 0;
|
|
4
|
-
const helpers_lib_1 = require("helpers-lib");
|
|
5
|
-
class AnimationInterpolationFunctions {
|
|
6
|
-
static boomerangTime(time) {
|
|
7
|
-
return 1 - Math.abs(time - 0.5) * 2;
|
|
8
|
-
}
|
|
9
|
-
static lineer(time) {
|
|
10
|
-
return time;
|
|
11
|
-
}
|
|
12
|
-
static easeIn(time) {
|
|
13
|
-
return Math.pow(time, 2);
|
|
14
|
-
}
|
|
15
|
-
static easeOut(time) {
|
|
16
|
-
return 1 - Math.pow(1 - time, 2);
|
|
17
|
-
}
|
|
18
|
-
static easeInOut(time) {
|
|
19
|
-
if (time < 0.5) {
|
|
20
|
-
return 2 * time * time;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
time -= 1;
|
|
24
|
-
return 1 - 2 * time * time;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
static easeInOutCubic(t) {
|
|
28
|
-
let a = 2 * t - 2;
|
|
29
|
-
return t < 0.5 ? 4 * Math.pow(t, 3) : (t - 1) * Math.pow(a, 2) + 1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.AnimationInterpolationFunctions = AnimationInterpolationFunctions;
|
|
33
|
-
class AnimationLineer {
|
|
34
|
-
start() { }
|
|
35
|
-
multiplierFunction(t) {
|
|
36
|
-
return AnimationInterpolationFunctions.lineer(t);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
class AnimationEaseIn {
|
|
40
|
-
start() { }
|
|
41
|
-
multiplierFunction(t) {
|
|
42
|
-
return AnimationInterpolationFunctions.easeIn(t);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
class AnimationEaseOut {
|
|
46
|
-
start() { }
|
|
47
|
-
multiplierFunction(t) {
|
|
48
|
-
return AnimationInterpolationFunctions.easeOut(t);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
class AnimationEaseInOut {
|
|
52
|
-
start() { }
|
|
53
|
-
multiplierFunction(t) {
|
|
54
|
-
return AnimationInterpolationFunctions.easeInOut(t);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
class AnimationEaseInOutCubic {
|
|
58
|
-
start() { }
|
|
59
|
-
multiplierFunction(t) {
|
|
60
|
-
return AnimationInterpolationFunctions.easeInOutCubic(t);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
// Because AnimationFlicker is holding a state "timeGrid", it has to be a seperate instance on where it is used
|
|
64
|
-
class AnimationFlicker {
|
|
65
|
-
start() {
|
|
66
|
-
this._timeGrid = new Array(10).fill(0);
|
|
67
|
-
helpers_lib_1.Random.integerBetween(0, 9);
|
|
68
|
-
this._timeGrid[helpers_lib_1.Random.integerBetween(0, 9)] = Math.random();
|
|
69
|
-
if (Math.random() < 0.3) {
|
|
70
|
-
helpers_lib_1.Random.integerBetween(0, 9);
|
|
71
|
-
this._timeGrid[helpers_lib_1.Random.integerBetween(0, 9)] = Math.random();
|
|
72
|
-
}
|
|
73
|
-
if (Math.random() < 0.2) {
|
|
74
|
-
helpers_lib_1.Random.integerBetween(0, 9);
|
|
75
|
-
this._timeGrid[helpers_lib_1.Random.integerBetween(0, 9)] = Math.random();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
multiplierFunction(t) {
|
|
79
|
-
let index = Math.floor(t * 10);
|
|
80
|
-
return this._timeGrid[index];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.AnimationFlicker = AnimationFlicker;
|
|
84
|
-
class Animations {
|
|
85
|
-
static { this.lineer = new AnimationLineer(); }
|
|
86
|
-
static { this.easeIn = new AnimationEaseIn(); }
|
|
87
|
-
static { this.easeOut = new AnimationEaseOut(); }
|
|
88
|
-
static { this.easeInOut = new AnimationEaseInOut(); }
|
|
89
|
-
static { this.easeInOutCubic = new AnimationEaseInOutCubic(); }
|
|
90
|
-
}
|
|
91
|
-
exports.Animations = Animations;
|
|
92
|
-
//# sourceMappingURL=animations.js.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Notifier, SingleEvent } from 'actions-lib';
|
|
2
|
-
import { AnimatorAnimation } from '../animations';
|
|
3
|
-
export declare enum ReAnimateHandlingType {
|
|
4
|
-
ThrowError = 1,
|
|
5
|
-
IgnoreNewAnimation = 2,
|
|
6
|
-
CompletePrevious = 3
|
|
7
|
-
}
|
|
8
|
-
export declare enum AnimationsCompletionHandlingType {
|
|
9
|
-
ReturnToOriginal = 1,
|
|
10
|
-
StayInCurrentState = 2,
|
|
11
|
-
JumpToEnd = 3,
|
|
12
|
-
Loop = 4
|
|
13
|
-
}
|
|
14
|
-
export interface AnimationOptions {
|
|
15
|
-
readonly duration: number;
|
|
16
|
-
readonly animation: AnimatorAnimation;
|
|
17
|
-
readonly reAnimateHandling: ReAnimateHandlingType;
|
|
18
|
-
readonly completionHandling: AnimationsCompletionHandlingType;
|
|
19
|
-
}
|
|
20
|
-
type NumericKeys<T> = {
|
|
21
|
-
[P in keyof T]: T[P] extends number ? P : never;
|
|
22
|
-
}[keyof T] & string;
|
|
23
|
-
export declare class Animator<T extends object = any, K extends NumericKeys<T> = NumericKeys<T>> {
|
|
24
|
-
private static _animatedObjects;
|
|
25
|
-
private static _getAnimatedObjectProperties;
|
|
26
|
-
private _target;
|
|
27
|
-
private _options;
|
|
28
|
-
private _animatedProperties;
|
|
29
|
-
private _ongoingAnimation;
|
|
30
|
-
get animating(): boolean;
|
|
31
|
-
get target(): T;
|
|
32
|
-
private _value;
|
|
33
|
-
get value(): Notifier<T>;
|
|
34
|
-
constructor(target: T & Record<K, number>, animatedProperties: K | K[], partialOptions?: Partial<AnimationOptions>);
|
|
35
|
-
animate(values: Record<K, number>, partialOptions?: Partial<AnimationOptions>): SingleEvent<void>;
|
|
36
|
-
set(values: Record<K, number>): void;
|
|
37
|
-
completeAnimation(completionHandling?: AnimationsCompletionHandlingType): void;
|
|
38
|
-
private _isAnimatingToSameValues;
|
|
39
|
-
private _setCompletionValues;
|
|
40
|
-
private _returnToStartingValues;
|
|
41
|
-
private _jumpToTargetValues;
|
|
42
|
-
private _lockAnimatedProperties;
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Animator = exports.AnimationsCompletionHandlingType = exports.ReAnimateHandlingType = void 0;
|
|
4
|
-
const actions_lib_1 = require("actions-lib");
|
|
5
|
-
const helpers_lib_1 = require("helpers-lib");
|
|
6
|
-
const game_entities_1 = require("../../../game-entities");
|
|
7
|
-
const animations_1 = require("../animations");
|
|
8
|
-
var ReAnimateHandlingType;
|
|
9
|
-
(function (ReAnimateHandlingType) {
|
|
10
|
-
ReAnimateHandlingType[ReAnimateHandlingType["ThrowError"] = 1] = "ThrowError";
|
|
11
|
-
ReAnimateHandlingType[ReAnimateHandlingType["IgnoreNewAnimation"] = 2] = "IgnoreNewAnimation";
|
|
12
|
-
ReAnimateHandlingType[ReAnimateHandlingType["CompletePrevious"] = 3] = "CompletePrevious";
|
|
13
|
-
})(ReAnimateHandlingType || (exports.ReAnimateHandlingType = ReAnimateHandlingType = {}));
|
|
14
|
-
var AnimationsCompletionHandlingType;
|
|
15
|
-
(function (AnimationsCompletionHandlingType) {
|
|
16
|
-
AnimationsCompletionHandlingType[AnimationsCompletionHandlingType["ReturnToOriginal"] = 1] = "ReturnToOriginal";
|
|
17
|
-
AnimationsCompletionHandlingType[AnimationsCompletionHandlingType["StayInCurrentState"] = 2] = "StayInCurrentState";
|
|
18
|
-
AnimationsCompletionHandlingType[AnimationsCompletionHandlingType["JumpToEnd"] = 3] = "JumpToEnd";
|
|
19
|
-
AnimationsCompletionHandlingType[AnimationsCompletionHandlingType["Loop"] = 4] = "Loop";
|
|
20
|
-
})(AnimationsCompletionHandlingType || (exports.AnimationsCompletionHandlingType = AnimationsCompletionHandlingType = {}));
|
|
21
|
-
class Animator {
|
|
22
|
-
static { this._animatedObjects = new WeakMap(); }
|
|
23
|
-
static _getAnimatedObjectProperties(target) {
|
|
24
|
-
let animatedObjectProperties = Animator._animatedObjects.get(target);
|
|
25
|
-
if (!animatedObjectProperties) {
|
|
26
|
-
animatedObjectProperties = new helpers_lib_1.MapToWeakRefs();
|
|
27
|
-
Animator._animatedObjects.set(target, animatedObjectProperties);
|
|
28
|
-
}
|
|
29
|
-
return animatedObjectProperties;
|
|
30
|
-
}
|
|
31
|
-
get animating() {
|
|
32
|
-
return this._ongoingAnimation !== undefined;
|
|
33
|
-
}
|
|
34
|
-
get target() {
|
|
35
|
-
return this._target;
|
|
36
|
-
}
|
|
37
|
-
get value() {
|
|
38
|
-
if (!this._value) {
|
|
39
|
-
this._value = new actions_lib_1.Variable(this._target);
|
|
40
|
-
}
|
|
41
|
-
return this._value.notifier;
|
|
42
|
-
}
|
|
43
|
-
constructor(target, animatedProperties, partialOptions) {
|
|
44
|
-
this._target = target;
|
|
45
|
-
this._options = {
|
|
46
|
-
duration: 200,
|
|
47
|
-
animation: animations_1.Animations.lineer,
|
|
48
|
-
reAnimateHandling: ReAnimateHandlingType.ThrowError,
|
|
49
|
-
completionHandling: AnimationsCompletionHandlingType.StayInCurrentState,
|
|
50
|
-
...partialOptions
|
|
51
|
-
};
|
|
52
|
-
this._animatedProperties = helpers_lib_1.Comparator.isArray(animatedProperties) ? animatedProperties : [animatedProperties];
|
|
53
|
-
this._lockAnimatedProperties(target, this._animatedProperties); // NOTE: this can be removed in release mode
|
|
54
|
-
}
|
|
55
|
-
animate(values, partialOptions) {
|
|
56
|
-
let options = {
|
|
57
|
-
...this._options,
|
|
58
|
-
...partialOptions
|
|
59
|
-
};
|
|
60
|
-
if (this._ongoingAnimation) {
|
|
61
|
-
switch (options.reAnimateHandling) {
|
|
62
|
-
case ReAnimateHandlingType.ThrowError:
|
|
63
|
-
throw new Error(`Animator: new animation triggered while another is not complete yet.`);
|
|
64
|
-
case ReAnimateHandlingType.IgnoreNewAnimation:
|
|
65
|
-
return actions_lib_1.SingleEvent.instant();
|
|
66
|
-
case ReAnimateHandlingType.CompletePrevious:
|
|
67
|
-
this._setCompletionValues(options.completionHandling, this._ongoingAnimation._properties, true);
|
|
68
|
-
break;
|
|
69
|
-
default: {
|
|
70
|
-
let _ = options.reAnimateHandling;
|
|
71
|
-
throw new Error(`Animator: unknown re-animate handling type: "${options.reAnimateHandling}"`);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
let event = actions_lib_1.SingleEvent.create(resolve => {
|
|
76
|
-
let properties = this._animatedProperties.reduce((acc, key) => {
|
|
77
|
-
acc[key] = {
|
|
78
|
-
_startingValue: this._target[key],
|
|
79
|
-
_targetValue: values[key]
|
|
80
|
-
};
|
|
81
|
-
return acc;
|
|
82
|
-
}, {});
|
|
83
|
-
let updateCycleSubscription;
|
|
84
|
-
let animationState = {
|
|
85
|
-
_duration: options.duration,
|
|
86
|
-
_elapsedTime: 0,
|
|
87
|
-
_properties: properties,
|
|
88
|
-
_completionHandling: options.completionHandling,
|
|
89
|
-
_animation: options.animation,
|
|
90
|
-
_completionCallback: resolve
|
|
91
|
-
};
|
|
92
|
-
if (animationState._completionHandling !== AnimationsCompletionHandlingType.Loop &&
|
|
93
|
-
this._isAnimatingToSameValues(animationState)) {
|
|
94
|
-
this._ongoingAnimation = undefined;
|
|
95
|
-
resolve();
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
animationState._animation.start();
|
|
100
|
-
}
|
|
101
|
-
let previousAnimationState = this._ongoingAnimation;
|
|
102
|
-
this._ongoingAnimation = animationState;
|
|
103
|
-
updateCycleSubscription = game_entities_1.UpdateCycle.beforeSceneUpdateAction
|
|
104
|
-
.subscribe(update => {
|
|
105
|
-
animationState._elapsedTime += update.delta;
|
|
106
|
-
let animationIsCompete = animationState._elapsedTime >= animationState._duration;
|
|
107
|
-
if (animationIsCompete) {
|
|
108
|
-
if (animationState._completionHandling === AnimationsCompletionHandlingType.Loop) {
|
|
109
|
-
animationState._elapsedTime %= animationState._duration;
|
|
110
|
-
animationState._animation.start();
|
|
111
|
-
animationIsCompete = false;
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
this._setCompletionValues(animationState._completionHandling, animationState._properties, false);
|
|
115
|
-
this._ongoingAnimation = undefined;
|
|
116
|
-
animationState._completionCallback();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
if (!animationIsCompete) {
|
|
120
|
-
let multiplier = animationState._animation.multiplierFunction(animationState._elapsedTime / animationState._duration);
|
|
121
|
-
let changeHappened = false;
|
|
122
|
-
for (let i = 0; i < this._animatedProperties.length; i++) {
|
|
123
|
-
let key = this._animatedProperties[i];
|
|
124
|
-
let propertyState = animationState._properties[key];
|
|
125
|
-
let relativeTarget = propertyState._targetValue - propertyState._startingValue;
|
|
126
|
-
let newValue = relativeTarget * multiplier + propertyState._startingValue;
|
|
127
|
-
if (newValue !== this._target[key]) {
|
|
128
|
-
changeHappened = true;
|
|
129
|
-
this._target[key] = newValue;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
changeHappened && this._value?.set(this._target);
|
|
133
|
-
}
|
|
134
|
-
})
|
|
135
|
-
.attachToRoot();
|
|
136
|
-
previousAnimationState?._completionCallback();
|
|
137
|
-
return () => {
|
|
138
|
-
updateCycleSubscription.destroy();
|
|
139
|
-
if (this._ongoingAnimation === animationState) {
|
|
140
|
-
if (!(this._target instanceof actions_lib_1.Attachable && this._target.destroyed)) {
|
|
141
|
-
this._setCompletionValues(this._ongoingAnimation._completionHandling, this._ongoingAnimation._properties, true);
|
|
142
|
-
}
|
|
143
|
-
this._ongoingAnimation = undefined;
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
return event;
|
|
148
|
-
}
|
|
149
|
-
set(values) {
|
|
150
|
-
let changeHappened = false;
|
|
151
|
-
for (let i = 0; i < this._animatedProperties.length; i++) {
|
|
152
|
-
let key = this._animatedProperties[i];
|
|
153
|
-
if (this._target[key] !== values[key]) {
|
|
154
|
-
changeHappened = true;
|
|
155
|
-
this._target[key] = values[key];
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
changeHappened && this._value?.set(this._target);
|
|
159
|
-
this._ongoingAnimation?._completionCallback();
|
|
160
|
-
}
|
|
161
|
-
completeAnimation(completionHandling) {
|
|
162
|
-
if (this._ongoingAnimation) {
|
|
163
|
-
completionHandling = completionHandling ?? this._ongoingAnimation._completionHandling;
|
|
164
|
-
this._setCompletionValues(completionHandling, this._ongoingAnimation._properties, true);
|
|
165
|
-
let callback = this._ongoingAnimation._completionCallback;
|
|
166
|
-
this._ongoingAnimation = undefined;
|
|
167
|
-
callback();
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
_isAnimatingToSameValues(ongoingAnimation) {
|
|
171
|
-
for (let i = 0; i < this._animatedProperties.length; i++) {
|
|
172
|
-
let key = this._animatedProperties[i];
|
|
173
|
-
if (this._target[key] !== ongoingAnimation._properties[key]._targetValue) {
|
|
174
|
-
return false;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return true;
|
|
178
|
-
}
|
|
179
|
-
_setCompletionValues(completionHandling, values, interruptedCompletion) {
|
|
180
|
-
switch (completionHandling) {
|
|
181
|
-
case AnimationsCompletionHandlingType.ReturnToOriginal:
|
|
182
|
-
this._returnToStartingValues(values);
|
|
183
|
-
break;
|
|
184
|
-
case AnimationsCompletionHandlingType.StayInCurrentState:
|
|
185
|
-
if (!interruptedCompletion) {
|
|
186
|
-
this._jumpToTargetValues(values);
|
|
187
|
-
}
|
|
188
|
-
break;
|
|
189
|
-
case AnimationsCompletionHandlingType.JumpToEnd:
|
|
190
|
-
this._jumpToTargetValues(values);
|
|
191
|
-
break;
|
|
192
|
-
case AnimationsCompletionHandlingType.Loop:
|
|
193
|
-
this._returnToStartingValues(values);
|
|
194
|
-
break;
|
|
195
|
-
default: {
|
|
196
|
-
let _ = completionHandling;
|
|
197
|
-
throw new Error(`Animator: unknown completion handling type: "${completionHandling}"`);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
_returnToStartingValues(values) {
|
|
202
|
-
let changeHappened = false;
|
|
203
|
-
for (let i = 0; i < this._animatedProperties.length; i++) {
|
|
204
|
-
let key = this._animatedProperties[i];
|
|
205
|
-
if (this._target[key] !== values[key]._startingValue) {
|
|
206
|
-
changeHappened = true;
|
|
207
|
-
this._target[key] = values[key]._startingValue;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
changeHappened && this._value?.set(this._target);
|
|
211
|
-
}
|
|
212
|
-
_jumpToTargetValues(values) {
|
|
213
|
-
let changeHappened = false;
|
|
214
|
-
for (let i = 0; i < this._animatedProperties.length; i++) {
|
|
215
|
-
let key = this._animatedProperties[i];
|
|
216
|
-
if (this._target[key] !== values[key]._targetValue) {
|
|
217
|
-
changeHappened = true;
|
|
218
|
-
this._target[key] = values[key]._targetValue;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
changeHappened && this._value?.set(this._target);
|
|
222
|
-
}
|
|
223
|
-
_lockAnimatedProperties(target, animatedProperties) {
|
|
224
|
-
let animatedObjectProperties = Animator._getAnimatedObjectProperties(target);
|
|
225
|
-
for (let key of animatedProperties) {
|
|
226
|
-
if (animatedObjectProperties.has(key)) {
|
|
227
|
-
throw new Error(`Animator: target property is already animated! Target: "${JSON.stringify(target, undefined, 2)}", Property: "${key}"`);
|
|
228
|
-
}
|
|
229
|
-
animatedObjectProperties.set(key, this);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
exports.Animator = Animator;
|
|
234
|
-
//# sourceMappingURL=animator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@memlab/core");
|
|
4
|
-
const actions_lib_1 = require("actions-lib");
|
|
5
|
-
const helpers_lib_1 = require("helpers-lib");
|
|
6
|
-
const vitest_1 = require("vitest");
|
|
7
|
-
const game_entities_1 = require("../../../game-entities");
|
|
8
|
-
const animator_1 = require("./animator");
|
|
9
|
-
const ClassNamesToCheck = ['Animator', 'SingleEvent'];
|
|
10
|
-
vitest_1.describe.skipIf(process.env.QUICK)('Memory Leak', () => {
|
|
11
|
-
(0, vitest_1.beforeEach)(() => {
|
|
12
|
-
actions_lib_1.ActionLib.hardReset();
|
|
13
|
-
});
|
|
14
|
-
async function checkMemoryLeaks(...additionalNames) {
|
|
15
|
-
await helpers_lib_1.UnitTestHelper.waitForAllOperations();
|
|
16
|
-
await (0, helpers_lib_1.Wait)();
|
|
17
|
-
let snapshot = await (0, core_1.takeNodeMinimalHeap)();
|
|
18
|
-
ClassNamesToCheck.concat(additionalNames).forEach(name => {
|
|
19
|
-
if (snapshot.hasObjectWithClassName(name)) {
|
|
20
|
-
throw new Error(`"${name}" has at least one instance in the memory.`);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
(0, vitest_1.test)('simple animator', async () => {
|
|
25
|
-
let target = { x: 1 };
|
|
26
|
-
let animator = new animator_1.Animator(target, 'x');
|
|
27
|
-
(0, vitest_1.expect)(animator).toBeDefined();
|
|
28
|
-
animator = undefined;
|
|
29
|
-
await (0, vitest_1.expect)(checkMemoryLeaks()).resolves.not.toThrow();
|
|
30
|
-
}, 60000);
|
|
31
|
-
(0, vitest_1.test)('sample animation', async () => {
|
|
32
|
-
let target = { x: 1 };
|
|
33
|
-
let animator = new animator_1.Animator(target, 'x');
|
|
34
|
-
let animation = animator.animate({ x: 2 }).attachToRoot();
|
|
35
|
-
game_entities_1.UpdateCycle.triggerUpdateTick(1);
|
|
36
|
-
(0, vitest_1.expect)(animation).toBeDefined();
|
|
37
|
-
animation.destroy();
|
|
38
|
-
animator = undefined;
|
|
39
|
-
animation = undefined;
|
|
40
|
-
await (0, vitest_1.expect)(checkMemoryLeaks()).resolves.not.toThrow();
|
|
41
|
-
}, 60000);
|
|
42
|
-
(0, vitest_1.test)('target contains the animator', async () => {
|
|
43
|
-
class Foo {
|
|
44
|
-
constructor() {
|
|
45
|
-
this.x = 0;
|
|
46
|
-
this.animator = new animator_1.Animator(this, 'x');
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
let foo = new Foo();
|
|
50
|
-
(0, vitest_1.expect)(foo).toBeDefined();
|
|
51
|
-
foo = undefined;
|
|
52
|
-
await (0, vitest_1.expect)(checkMemoryLeaks(Foo.name)).resolves.not.toThrow();
|
|
53
|
-
}, 60000);
|
|
54
|
-
(0, vitest_1.test)('default animation contains the animator', async () => {
|
|
55
|
-
class FaultyAnimation {
|
|
56
|
-
start() { }
|
|
57
|
-
multiplierFunction(t) {
|
|
58
|
-
return 0;
|
|
59
|
-
}
|
|
60
|
-
setAnimator(anim) {
|
|
61
|
-
this._animator = anim;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
let animation = new FaultyAnimation();
|
|
65
|
-
let animator = new animator_1.Animator({ x: 1 }, 'x', { animation });
|
|
66
|
-
animation.setAnimator(animator);
|
|
67
|
-
(0, vitest_1.expect)(animator).toBeDefined();
|
|
68
|
-
animation = undefined;
|
|
69
|
-
animator = undefined;
|
|
70
|
-
await (0, vitest_1.expect)(checkMemoryLeaks(FaultyAnimation.name)).resolves.not.toThrow();
|
|
71
|
-
}, 60000);
|
|
72
|
-
});
|
|
73
|
-
//# sourceMappingURL=animator.memory-leak.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|