bard-legends-framework 0.11.0 → 0.12.1
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/actions-performance.test.d.ts +1 -0
- package/dist/actions-performance.test.js +83 -0
- package/dist/game-entities/controller/controller.d.ts +2 -2
- package/dist/game-entities/controller/controller.js +8 -8
- package/dist/game-entities/controller/controller.test.js +2 -2
- package/dist/game-entities/entity/entity.d.ts +7 -7
- package/dist/game-entities/entity/entity.js +18 -12
- package/dist/game-entities/entity/entity.test.js +93 -30
- package/dist/game-entities/entity/helpers/entity-store.helper.d.ts +3 -3
- package/dist/game-entities/entity/helpers/entity-store.helper.js +12 -12
- package/dist/game-entities/entity/helpers/entity-store.helper.test.js +11 -11
- package/dist/game-entities/entity/helpers/entity-views.helper.d.ts +6 -6
- package/dist/game-entities/entity/helpers/entity-views.helper.js +25 -22
- package/dist/game-entities/entity/singleton-entity.test.js +9 -4
- package/dist/game-entities/hard-reset.d.ts +5 -0
- package/dist/game-entities/hard-reset.js +14 -0
- package/dist/game-entities/index.d.ts +1 -1
- package/dist/game-entities/index.js +3 -3
- package/dist/game-entities/scene/scene.d.ts +13 -13
- package/dist/game-entities/scene/scene.js +41 -46
- package/dist/game-entities/scene/scene.test.js +95 -37
- package/dist/game-entities/service/service.d.ts +1 -4
- package/dist/game-entities/service/service.js +12 -13
- package/dist/game-entities/service/service.test.js +33 -12
- package/dist/game-entities/unit-test.helper.js +1 -1
- package/dist/game-entities/update-cycle.d.ts +7 -17
- package/dist/game-entities/update-cycle.js +25 -19
- package/dist/game-entities/view/view.d.ts +6 -6
- package/dist/game-entities/view/view.js +15 -21
- package/dist/game-entities/view/view.test.js +40 -9
- package/dist/physics/entity-types/immovable-physics-entity.d.ts +1 -1
- package/dist/physics/entity-types/immovable-physics-entity.js +4 -4
- package/dist/physics/entity-types/movable-entity.d.ts +1 -1
- package/dist/physics/entity-types/movable-entity.js +2 -2
- package/dist/physics/entity-types/movable-physics-entity.d.ts +8 -8
- package/dist/physics/entity-types/movable-physics-entity.js +27 -27
- package/dist/physics/entity-types/physics-entity.d.ts +10 -14
- package/dist/physics/entity-types/physics-entity.js +27 -26
- package/dist/physics/interfaces.d.ts +6 -6
- package/dist/physics/interfaces.js +4 -4
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.d.ts +16 -16
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.js +22 -22
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.d.ts +19 -19
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.js +30 -30
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +3 -3
- package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.d.ts +10 -10
- package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.js +16 -16
- package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.d.ts +10 -10
- package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.js +18 -18
- package/dist/physics/module//360/237/223/220services/collision/collisions.service.d.ts +5 -5
- package/dist/physics/module//360/237/223/220services/collision/collisions.service.js +17 -17
- package/dist/physics/module//360/237/223/220services/collision/hit-test.service.d.ts +4 -4
- package/dist/physics/module//360/237/223/220services/collision/hit-test.service.js +11 -11
- package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.d.ts +2 -2
- package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.js +4 -4
- package/dist/physics/module//360/237/223/220services/creation/border.service.d.ts +2 -2
- package/dist/physics/module//360/237/223/220services/creation/border.service.js +9 -9
- package/dist/physics/module//360/237/223/220services/creation/materials.service.d.ts +7 -7
- package/dist/physics/module//360/237/223/220services/creation/materials.service.js +17 -17
- package/dist/physics/module//360/237/223/220services/creation/physics-world.service.d.ts +11 -11
- package/dist/physics/module//360/237/223/220services/creation/physics-world.service.js +27 -26
- package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.d.ts +4 -4
- package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.js +13 -13
- package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.d.ts +9 -9
- package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.js +19 -19
- package/dist/physics/module//360/237/223/220services/impact/explosion.service.d.ts +9 -9
- package/dist/physics/module//360/237/223/220services/impact/explosion.service.js +20 -20
- package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.d.ts +1 -1
- package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.js +4 -4
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.d.ts +2 -2
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.js +3 -3
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.d.ts +5 -5
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.js +12 -12
- package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.d.ts +4 -4
- package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.js +12 -12
- package/dist/physics/module//360/237/223/220services/query/physics-query.service.d.ts +4 -4
- package/dist/physics/module//360/237/223/220services/query/physics-query.service.js +4 -4
- package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.d.ts +1 -4
- package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.js +7 -15
- package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.d.ts +9 -9
- package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.js +43 -42
- package/dist/physics/module//360/237/247/212entities/border.entity.d.ts +1 -1
- package/dist/physics/module//360/237/247/212entities/border.entity.js +3 -3
- package/dist/pixi/components/display-object-array.d.ts +5 -5
- package/dist/pixi/components/display-object-array.js +14 -14
- package/dist/pixi/components/helpers/smooth-scroller.d.ts +7 -7
- package/dist/pixi/components/helpers/smooth-scroller.js +23 -23
- package/dist/pixi/components/helpers/smooth-scroller.test.js +14 -14
- package/dist/pixi/components/menu/menu-entity.d.ts +14 -0
- package/dist/pixi/components/menu/menu-entity.js +48 -0
- package/dist/pixi/components/menu/menu.ui.d.ts +23 -0
- package/dist/pixi/components/menu/menu.ui.js +97 -0
- package/dist/pixi/components/mouse-wheel-listener.ui.d.ts +2 -2
- package/dist/pixi/components/mouse-wheel-listener.ui.js +11 -11
- package/dist/pixi/components/scroll-area.ui.d.ts +1 -1
- package/dist/pixi/components/scroll-area.ui.js +9 -9
- package/dist/pixi/components/scroll-mask.ui.d.ts +9 -8
- package/dist/pixi/components/scroll-mask.ui.js +25 -24
- package/dist/pixi/display-object/container-attributes.d.ts +24 -25
- package/dist/pixi/display-object/container-attributes.js +26 -26
- package/dist/pixi/display-object/container.d.ts +3 -3
- package/dist/pixi/display-object/container.js +2 -2
- package/dist/pixi/display-object/filters/base-filters/blur.filter.d.ts +9 -9
- package/dist/pixi/display-object/filters/base-filters/blur.filter.js +25 -25
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.d.ts +7 -7
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.js +17 -17
- package/dist/pixi/display-object/filters/composite-filters/glow-filter.d.ts +6 -6
- package/dist/pixi/display-object/filters/composite-filters/glow-filter.js +10 -11
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.d.ts +2 -2
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.js +5 -5
- package/dist/pixi/display-object/filters/templates/checking-neighbors.template.d.ts +5 -5
- package/dist/pixi/display-object/filters/templates/checking-neighbors.template.js +8 -8
- package/dist/pixi/display-object/filters/templates/plane.template.d.ts +5 -5
- package/dist/pixi/display-object/filters/templates/plane.template.js +7 -7
- package/dist/pixi/display-object/filters.d.ts +7 -7
- package/dist/pixi/display-object/filters.js +34 -34
- package/dist/pixi/display-object/index.d.ts +1 -1
- package/dist/pixi/display-object/objects/graphics/graphics.d.ts +9 -9
- package/dist/pixi/display-object/objects/graphics/graphics.js +25 -25
- package/dist/pixi/display-object/objects/placeholder.d.ts +1 -1
- package/dist/pixi/display-object/objects/placeholder.js +7 -7
- package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.d.ts +9 -9
- package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.js +26 -25
- package/dist/pixi/display-object/objects/sprite/sprite.d.ts +10 -9
- package/dist/pixi/display-object/objects/sprite/sprite.js +62 -53
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.d.ts +4 -3
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.d.ts +6 -6
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.js +16 -16
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.js +28 -28
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.d.ts +1 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.js +3 -3
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.d.ts +17 -17
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.js +62 -62
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.js +2 -2
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.d.ts +3 -3
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.js +6 -6
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.js +12 -12
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.d.ts +2 -2
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.js +5 -5
- package/dist/pixi/display-object/objects/text/rich-text.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/rich-text.js +0 -1
- package/dist/pixi/display-object/objects/text/text.d.ts +9 -10
- package/dist/pixi/display-object/objects/text/text.js +34 -35
- package/dist/pixi/game.d.ts +20 -15
- package/dist/pixi/game.js +40 -35
- package/dist/pixi/helpers/game-assets.d.ts +5 -5
- package/dist/pixi/helpers/game-assets.js +14 -11
- package/dist/pixi/helpers/position-conversion.helper.d.ts +4 -4
- package/dist/pixi/helpers/position-conversion.helper.js +3 -3
- package/dist/pixi/index.d.ts +3 -37
- package/dist/pixi/index.js +6 -22
- package/dist/pixi/modules/CAMERA/camera.d.ts +5 -4
- package/dist/pixi/modules/CAMERA/camera.js +9 -9
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.d.ts +3 -2
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.js +1 -1
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.d.ts +3 -2
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.js +5 -5
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.d.ts +3 -3
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.js +7 -7
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +8 -8
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.js +8 -8
- package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.d.ts +2 -2
- package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.js +12 -12
- package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.d.ts +17 -16
- package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.js +49 -48
- package/dist/pixi/pixi-definitions.d.ts +38 -0
- package/dist/pixi/pixi-definitions.js +37 -0
- package/dist/pixi/services/keyboard/keyboard.d.ts +2 -2
- package/dist/pixi/services/keyboard/keyboard.js +9 -9
- package/dist/pixi/services/mouse/mouse-target-focus.service.d.ts +10 -10
- package/dist/pixi/services/mouse/mouse-target-focus.service.js +28 -28
- package/dist/pixi/services/mouse/mouse.service.d.ts +1 -1
- package/dist/pixi/services/mouse/mouse.service.js +5 -5
- package/dist/utilities/animator/animating-content/fade-in-content.test.d.ts +1 -0
- package/dist/utilities/animator/animating-content/fade-in-content.test.js +10 -0
- package/dist/utilities/animator/animating-content/slide-in-content.test.d.ts +1 -0
- package/dist/utilities/animator/animating-content/slide-in-content.test.js +10 -0
- package/dist/utilities/animator/animations.d.ts +14 -6
- package/dist/utilities/animator/animations.js +15 -11
- package/dist/utilities/animator/animator/animator.d.ts +44 -0
- package/dist/utilities/animator/animator/animator.js +234 -0
- package/dist/utilities/animator/animator/animator.memory-leak.test.d.ts +1 -0
- package/dist/utilities/animator/animator/animator.memory-leak.test.js +73 -0
- package/dist/utilities/animator/animator/animator.performance.test.d.ts +1 -0
- package/dist/utilities/animator/animator/animator.performance.test.js +116 -0
- package/dist/utilities/animator/animator/animator.test.d.ts +1 -0
- package/dist/utilities/animator/animator/animator.test.js +1046 -0
- package/dist/utilities/animator/animator.d.ts +2 -3
- package/dist/utilities/animator/animator.js +66 -59
- package/dist/utilities/animator/animator.performance.test.d.ts +1 -0
- package/dist/utilities/animator/animator.performance.test.js +46 -0
- package/dist/utilities/animator/animator.test.js +89 -28
- package/dist/utilities/animator/animator2/animator.d.ts +42 -0
- package/dist/utilities/animator/animator2/animator.js +222 -0
- package/dist/utilities/animator/animator2/animator.memory-leak.test.d.ts +1 -0
- package/dist/utilities/animator/animator2/animator.memory-leak.test.js +73 -0
- package/dist/utilities/animator/animator2/animator.performance.test.d.ts +1 -0
- package/dist/utilities/animator/animator2/animator.performance.test.js +65 -0
- package/dist/utilities/animator/animator2/animator.test.d.ts +1 -0
- package/dist/utilities/animator/animator2/animator.test.js +1007 -0
- package/dist/utilities/animator/animator_old/animator.d.ts +60 -0
- package/dist/utilities/animator/animator_old/animator.js +337 -0
- package/dist/utilities/animator/animator_old/animator.performance.test.d.ts +1 -0
- package/dist/utilities/animator/animator_old/animator.performance.test.js +121 -0
- package/dist/utilities/animator/animator_old/animator.test.d.ts +1 -0
- package/dist/utilities/animator/animator_old/animator.test.js +996 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.d.ts +18 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.js +37 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.d.ts +1 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.js +10 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.d.ts +38 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.js +208 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.d.ts +1 -0
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.js +439 -0
- package/dist/utilities/animator/content-animations/slide/slide-in-content.d.ts +41 -0
- package/dist/utilities/animator/content-animations/slide/slide-in-content.js +107 -0
- package/dist/utilities/animator/content-animations/slide/slide-in-content.test.d.ts +1 -0
- package/dist/utilities/animator/content-animations/slide/slide-in-content.test.js +10 -0
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.d.ts +24 -0
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.js +138 -0
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.d.ts +1 -0
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.js +307 -0
- package/dist/utilities/animator/content-animations/slide/state-animation.d.ts +37 -0
- package/dist/utilities/animator/content-animations/slide/state-animation.js +170 -0
- package/dist/utilities/animator/content-animations/slide/state-animation.test.d.ts +1 -0
- package/dist/utilities/animator/content-animations/slide/state-animation.test.js +340 -0
- package/dist/utilities/animator/index.d.ts +6 -6
- package/dist/utilities/animator/index.js +6 -6
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.d.ts +18 -0
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.js +37 -0
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.d.ts +1 -0
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.js +10 -0
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.d.ts +32 -0
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.js +168 -0
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.d.ts +1 -0
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.js +431 -0
- package/dist/utilities/animator/state-animation/slide/slide-in-content.d.ts +37 -0
- package/dist/utilities/animator/state-animation/slide/slide-in-content.js +100 -0
- package/dist/utilities/animator/state-animation/slide/slide-in-content.test.d.ts +1 -0
- package/dist/utilities/animator/state-animation/slide/slide-in-content.test.js +10 -0
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.d.ts +24 -0
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.js +130 -0
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.d.ts +1 -0
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.js +301 -0
- package/dist/utilities/animator/state-animation/slide-state-animation.test.js +30 -30
- package/dist/utilities/animator/state-animation/state-animation.js +7 -7
- package/dist/utilities/animator/state-animation/state-animation.test.js +24 -24
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.js +30 -30
- package/dist/utilities/data-structures/vector-set/vector-set.d.ts +1 -1
- package/dist/utilities/data-structures/vector-set/vector-set.js +5 -5
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +1 -1
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.js +5 -5
- package/dist/utilities/grid-algorithms/path-finder/path-finder.js +21 -21
- package/dist/utilities/grid-algorithms/path-finder/path-finder.test.js +9 -9
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +14 -14
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +43 -43
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +21 -21
- package/package.json +7 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.BlendMode = exports.DEFAULT_RESOLUTION = void 0;
|
|
27
|
+
const Pixi = __importStar(require("pixi.js"));
|
|
28
|
+
exports.DEFAULT_RESOLUTION = 2;
|
|
29
|
+
var BlendMode;
|
|
30
|
+
(function (BlendMode) {
|
|
31
|
+
BlendMode[BlendMode["Normal"] = 0] = "Normal";
|
|
32
|
+
BlendMode[BlendMode["Add"] = 1] = "Add";
|
|
33
|
+
BlendMode[BlendMode["Screen"] = 3] = "Screen";
|
|
34
|
+
BlendMode[BlendMode["Luminosity"] = 16] = "Luminosity";
|
|
35
|
+
BlendMode[BlendMode["ColorDodge"] = 7] = "ColorDodge";
|
|
36
|
+
})(BlendMode || (exports.BlendMode = BlendMode = {}));
|
|
37
|
+
//# sourceMappingURL=pixi-definitions.js.map
|
|
@@ -4,8 +4,8 @@ export declare class KeyboardService {
|
|
|
4
4
|
readonly keyPressed: import("actions-lib").Notifier<string>;
|
|
5
5
|
readonly _keyReleased: Action<string>;
|
|
6
6
|
readonly keyReleased: import("actions-lib").Notifier<string>;
|
|
7
|
-
private
|
|
8
|
-
private
|
|
7
|
+
private _listOfPressedKeys;
|
|
8
|
+
private _listOfJustPressedKeys;
|
|
9
9
|
constructor();
|
|
10
10
|
isKeyDown(key: string): boolean;
|
|
11
11
|
isKeyJustPressed(key: string): boolean;
|
|
@@ -19,31 +19,31 @@ let KeyboardService = class KeyboardService {
|
|
|
19
19
|
this.keyPressed = this._keyPressed.notifier;
|
|
20
20
|
this._keyReleased = new actions_lib_1.Action();
|
|
21
21
|
this.keyReleased = this._keyReleased.notifier;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this._listOfPressedKeys = new Set();
|
|
23
|
+
this._listOfJustPressedKeys = new Set();
|
|
24
24
|
window.addEventListener('keydown', event => {
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
25
|
+
this._listOfPressedKeys.add(event.key);
|
|
26
|
+
this._listOfJustPressedKeys.add(event.key);
|
|
27
27
|
!event.repeat && this._keyPressed.trigger(event.key);
|
|
28
28
|
});
|
|
29
29
|
window.addEventListener('keyup', event => {
|
|
30
|
-
this.
|
|
30
|
+
this._listOfPressedKeys.delete(event.key);
|
|
31
31
|
this._keyReleased.trigger(event.key);
|
|
32
32
|
});
|
|
33
33
|
window.addEventListener('blur', () => {
|
|
34
|
-
this.
|
|
34
|
+
this._listOfPressedKeys.clear();
|
|
35
35
|
});
|
|
36
36
|
game_entities_1.UpdateCycle.afterSceneUpdateAction
|
|
37
37
|
.subscribe(() => {
|
|
38
|
-
this.
|
|
38
|
+
this._listOfJustPressedKeys.clear();
|
|
39
39
|
})
|
|
40
40
|
.attachToRoot();
|
|
41
41
|
}
|
|
42
42
|
isKeyDown(key) {
|
|
43
|
-
return this.
|
|
43
|
+
return this._listOfPressedKeys.has(key);
|
|
44
44
|
}
|
|
45
45
|
isKeyJustPressed(key) {
|
|
46
|
-
return this.
|
|
46
|
+
return this._listOfJustPressedKeys.has(key);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
exports.KeyboardService = KeyboardService;
|
|
@@ -2,20 +2,20 @@ import { Action } from 'actions-lib';
|
|
|
2
2
|
import { Vector } from 'helpers-lib';
|
|
3
3
|
import { MouseService } from './mouse.service';
|
|
4
4
|
export declare class MouseTargetFocusService {
|
|
5
|
-
private
|
|
5
|
+
private _mouseService;
|
|
6
6
|
readonly _onTargetFocus: Action<Vector>;
|
|
7
7
|
readonly onTargetFocus: import("actions-lib").Notifier<Vector>;
|
|
8
8
|
get focusedInLastFrame(): boolean;
|
|
9
9
|
get lastFocusedPosition(): Vector | undefined;
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
10
|
+
private _mouseStagePositionPrevious;
|
|
11
|
+
private _peakValueChange;
|
|
12
|
+
private _timePassFromLastTrigger;
|
|
13
|
+
private _triggerAfterCooldown;
|
|
14
14
|
private _focusedInLastFrame;
|
|
15
15
|
private _lastFocusedPosition;
|
|
16
|
-
constructor(
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
16
|
+
constructor(_mouseService: MouseService);
|
|
17
|
+
private _update;
|
|
18
|
+
private _check;
|
|
19
|
+
private _iterateValues;
|
|
20
|
+
private _getPositionChange;
|
|
21
21
|
}
|
|
@@ -22,58 +22,58 @@ let MouseTargetFocusService = class MouseTargetFocusService {
|
|
|
22
22
|
get lastFocusedPosition() {
|
|
23
23
|
return this._lastFocusedPosition;
|
|
24
24
|
}
|
|
25
|
-
constructor(
|
|
26
|
-
this.
|
|
25
|
+
constructor(_mouseService) {
|
|
26
|
+
this._mouseService = _mouseService;
|
|
27
27
|
this._onTargetFocus = new actions_lib_1.Action();
|
|
28
28
|
this.onTargetFocus = this._onTargetFocus.notifier;
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
29
|
+
this._timePassFromLastTrigger = 0;
|
|
30
|
+
this._triggerAfterCooldown = false;
|
|
31
31
|
this._focusedInLastFrame = false;
|
|
32
32
|
this._lastFocusedPosition = undefined;
|
|
33
33
|
update_cycle_1.UpdateCycle.beforeSceneUpdateAction
|
|
34
|
-
.subscribe((event) => this.
|
|
34
|
+
.subscribe((event) => this._update(event.delta))
|
|
35
35
|
.attachToRoot();
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
if (this.
|
|
39
|
-
let mousePositionChange = this.
|
|
40
|
-
if (this.
|
|
41
|
-
this.
|
|
37
|
+
_update(delta) {
|
|
38
|
+
if (this._mouseStagePositionPrevious) {
|
|
39
|
+
let mousePositionChange = this._getPositionChange(this._mouseService.getStagePosition(), this._mouseStagePositionPrevious);
|
|
40
|
+
if (this._peakValueChange === undefined) {
|
|
41
|
+
this._peakValueChange = mousePositionChange;
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
|
-
this.
|
|
44
|
+
this._check(mousePositionChange, delta);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
this.
|
|
47
|
+
this._mouseStagePositionPrevious = this._mouseService.getStagePosition();
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
if (this.
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
49
|
+
_check(mousePositionChange, delta) {
|
|
50
|
+
if (this._peakValueChange - mousePositionChange > 10) {
|
|
51
|
+
this._timePassFromLastTrigger = Math.max(250, this._timePassFromLastTrigger);
|
|
52
|
+
this._triggerAfterCooldown = true;
|
|
53
53
|
}
|
|
54
|
-
else if (this.
|
|
55
|
-
this.
|
|
54
|
+
else if (this._timePassFromLastTrigger > 1000) {
|
|
55
|
+
this._triggerAfterCooldown = true;
|
|
56
56
|
}
|
|
57
|
-
let focusHappened = this.
|
|
58
|
-
this.
|
|
57
|
+
let focusHappened = this._timePassFromLastTrigger >= 300 && this._triggerAfterCooldown;
|
|
58
|
+
this._iterateValues(focusHappened, mousePositionChange, delta);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
if (focusHappened || mousePositionChange > this.
|
|
62
|
-
this.
|
|
60
|
+
_iterateValues(focusHappened, mousePositionChange, delta) {
|
|
61
|
+
if (focusHappened || mousePositionChange > this._peakValueChange) {
|
|
62
|
+
this._peakValueChange = mousePositionChange;
|
|
63
63
|
}
|
|
64
64
|
if (focusHappened) {
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
65
|
+
this._triggerAfterCooldown = false;
|
|
66
|
+
this._timePassFromLastTrigger = 0;
|
|
67
67
|
this._focusedInLastFrame = true;
|
|
68
|
-
this._lastFocusedPosition = this.
|
|
68
|
+
this._lastFocusedPosition = this._mouseService.getStagePosition();
|
|
69
69
|
this._onTargetFocus.trigger(this._lastFocusedPosition);
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
72
|
-
this.
|
|
72
|
+
this._timePassFromLastTrigger += delta;
|
|
73
73
|
this._focusedInLastFrame = false;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
_getPositionChange(positionA, positionB) {
|
|
77
77
|
let changeVector = helpers_lib_1.Vector.fromTo(positionA, positionB);
|
|
78
78
|
return Math.abs(changeVector.x) + Math.abs(changeVector.y);
|
|
79
79
|
}
|
|
@@ -14,7 +14,7 @@ const actions_lib_1 = require("actions-lib");
|
|
|
14
14
|
const helpers_lib_1 = require("helpers-lib");
|
|
15
15
|
const service_1 = require("../../../game-entities/service/service");
|
|
16
16
|
const update_cycle_1 = require("../../../game-entities/update-cycle");
|
|
17
|
-
const
|
|
17
|
+
const game_1 = require("../../game");
|
|
18
18
|
let MouseService = class MouseService {
|
|
19
19
|
get initialMouseMoveHappened() {
|
|
20
20
|
return this._initialMouseMovementHappened.value;
|
|
@@ -42,7 +42,7 @@ let MouseService = class MouseService {
|
|
|
42
42
|
this.mainButtonState = this._mainButtonState.notifier;
|
|
43
43
|
this._secondaryButtonState = new actions_lib_1.Variable(false);
|
|
44
44
|
this.secondaryButtonState = this._secondaryButtonState.notifier;
|
|
45
|
-
this.
|
|
45
|
+
this._startListeningMouseMove();
|
|
46
46
|
window.addEventListener('mousedown', event => {
|
|
47
47
|
if (event.button === 0) {
|
|
48
48
|
this._mainButtonState.value = true;
|
|
@@ -64,7 +64,7 @@ let MouseService = class MouseService {
|
|
|
64
64
|
this._secondaryButtonState.value = false;
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
_startListeningMouseMove() {
|
|
68
68
|
let mouseScreenPosition = helpers_lib_1.Vector.zero;
|
|
69
69
|
window.addEventListener('mousemove', event => {
|
|
70
70
|
mouseScreenPosition = new helpers_lib_1.Vector(event.clientX, event.clientY);
|
|
@@ -77,10 +77,10 @@ let MouseService = class MouseService {
|
|
|
77
77
|
.attachToRoot();
|
|
78
78
|
update_cycle_1.UpdateCycle.afterSceneUpdateAction
|
|
79
79
|
.subscribe(() => {
|
|
80
|
-
let newStagePosition =
|
|
80
|
+
let newStagePosition = game_1.Game.instance.screenPositonToStagePosition(this._screenPosition.value);
|
|
81
81
|
if (newStagePosition.isEqual(this._stagePosition.value)) {
|
|
82
82
|
// Trigger pointer move event, because content might slide under the mouse cursor
|
|
83
|
-
|
|
83
|
+
game_1.Game.instance.renderer.events['onPointerMove'](new PointerEvent('pointermove', {
|
|
84
84
|
clientX: this._screenPosition.value.x,
|
|
85
85
|
clientY: this._screenPosition.value.y,
|
|
86
86
|
pointerType: 'mouse'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vitest_1 = require("vitest");
|
|
4
|
+
const fade_in_content_1 = require("./fade-in-content");
|
|
5
|
+
(0, vitest_1.describe)('Fade In Content', () => {
|
|
6
|
+
(0, vitest_1.test)('should exist', () => {
|
|
7
|
+
(0, vitest_1.expect)(fade_in_content_1.FadeInContent).toBeDefined();
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=fade-in-content.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -10,28 +10,36 @@ export declare class AnimationInterpolationFunctions {
|
|
|
10
10
|
static easeInOut(time: number): number;
|
|
11
11
|
static easeInOutCubic(t: number): number;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare class AnimationLineer implements AnimatorAnimation {
|
|
14
14
|
start(): void;
|
|
15
15
|
multiplierFunction(t: number): number;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
declare class AnimationEaseIn implements AnimatorAnimation {
|
|
18
18
|
start(): void;
|
|
19
19
|
multiplierFunction(t: number): number;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
declare class AnimationEaseOut implements AnimatorAnimation {
|
|
22
22
|
start(): void;
|
|
23
23
|
multiplierFunction(t: number): number;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
declare class AnimationEaseInOut implements AnimatorAnimation {
|
|
26
26
|
start(): void;
|
|
27
27
|
multiplierFunction(t: number): number;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
declare class AnimationEaseInOutCubic implements AnimatorAnimation {
|
|
30
30
|
start(): void;
|
|
31
31
|
multiplierFunction(t: number): number;
|
|
32
32
|
}
|
|
33
33
|
export declare class AnimationFlicker implements AnimatorAnimation {
|
|
34
|
-
private
|
|
34
|
+
private _timeGrid;
|
|
35
35
|
start(): void;
|
|
36
36
|
multiplierFunction(t: number): number;
|
|
37
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Animations = exports.AnimationFlicker = exports.AnimationInterpolationFunctions = void 0;
|
|
4
4
|
const helpers_lib_1 = require("helpers-lib");
|
|
5
5
|
class AnimationInterpolationFunctions {
|
|
6
6
|
static boomerangTime(time) {
|
|
@@ -36,53 +36,57 @@ class AnimationLineer {
|
|
|
36
36
|
return AnimationInterpolationFunctions.lineer(t);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
exports.AnimationLineer = AnimationLineer;
|
|
40
39
|
class AnimationEaseIn {
|
|
41
40
|
start() { }
|
|
42
41
|
multiplierFunction(t) {
|
|
43
42
|
return AnimationInterpolationFunctions.easeIn(t);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
exports.AnimationEaseIn = AnimationEaseIn;
|
|
47
45
|
class AnimationEaseOut {
|
|
48
46
|
start() { }
|
|
49
47
|
multiplierFunction(t) {
|
|
50
48
|
return AnimationInterpolationFunctions.easeOut(t);
|
|
51
49
|
}
|
|
52
50
|
}
|
|
53
|
-
exports.AnimationEaseOut = AnimationEaseOut;
|
|
54
51
|
class AnimationEaseInOut {
|
|
55
52
|
start() { }
|
|
56
53
|
multiplierFunction(t) {
|
|
57
54
|
return AnimationInterpolationFunctions.easeInOut(t);
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
|
-
exports.AnimationEaseInOut = AnimationEaseInOut;
|
|
61
57
|
class AnimationEaseInOutCubic {
|
|
62
58
|
start() { }
|
|
63
59
|
multiplierFunction(t) {
|
|
64
60
|
return AnimationInterpolationFunctions.easeInOutCubic(t);
|
|
65
61
|
}
|
|
66
62
|
}
|
|
67
|
-
|
|
63
|
+
// Because AnimationFlicker is holding a state "timeGrid", it has to be a seperate instance on where it is used
|
|
68
64
|
class AnimationFlicker {
|
|
69
65
|
start() {
|
|
70
|
-
this.
|
|
66
|
+
this._timeGrid = new Array(10).fill(0);
|
|
71
67
|
helpers_lib_1.Random.integerBetween(0, 9);
|
|
72
|
-
this.
|
|
68
|
+
this._timeGrid[helpers_lib_1.Random.integerBetween(0, 9)] = Math.random();
|
|
73
69
|
if (Math.random() < 0.3) {
|
|
74
70
|
helpers_lib_1.Random.integerBetween(0, 9);
|
|
75
|
-
this.
|
|
71
|
+
this._timeGrid[helpers_lib_1.Random.integerBetween(0, 9)] = Math.random();
|
|
76
72
|
}
|
|
77
73
|
if (Math.random() < 0.2) {
|
|
78
74
|
helpers_lib_1.Random.integerBetween(0, 9);
|
|
79
|
-
this.
|
|
75
|
+
this._timeGrid[helpers_lib_1.Random.integerBetween(0, 9)] = Math.random();
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
78
|
multiplierFunction(t) {
|
|
83
79
|
let index = Math.floor(t * 10);
|
|
84
|
-
return this.
|
|
80
|
+
return this._timeGrid[index];
|
|
85
81
|
}
|
|
86
82
|
}
|
|
87
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;
|
|
88
92
|
//# sourceMappingURL=animations.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
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 {};
|