bard-legends-framework 0.9.6 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_interfaces/index.d.ts +2 -2
- package/dist/_interfaces/index.js +2 -3
- package/dist/game-entities/attachable/attachable.d.ts +6 -6
- package/dist/game-entities/attachable/attachable.js +28 -30
- package/dist/game-entities/attachable/attachable.spec.js +129 -128
- package/dist/game-entities/attachable/attachable.store.d.ts +5 -5
- package/dist/game-entities/attachable/attachable.store.js +34 -32
- package/dist/game-entities/attachable/attachable.test.js +132 -131
- package/dist/game-entities/attachable/destroyable.d.ts +13 -13
- package/dist/game-entities/attachable/destroyable.js +64 -69
- package/dist/game-entities/attachable/helpers/decorate-actions-lib.d.ts +15 -15
- package/dist/game-entities/attachable/helpers/decorate-actions-lib.js +125 -116
- package/dist/game-entities/attachable/helpers/referance-variable.d.ts +15 -15
- package/dist/game-entities/attachable/helpers/referance-variable.js +47 -48
- package/dist/game-entities/attachable/interfaces.d.ts +6 -6
- package/dist/game-entities/attachable/interfaces.js +2 -3
- package/dist/game-entities/base/helpers/decorate-actions-lib.js +0 -1
- package/dist/game-entities/controller/controller.js +0 -1
- package/dist/game-entities/controller/controller.spec.js +128 -125
- package/dist/game-entities/entity/entity.d.ts +4 -1
- package/dist/game-entities/entity/entity.js +5 -5
- package/dist/game-entities/entity/entity.spec.js +263 -293
- package/dist/game-entities/entity/helpers/view-creation.helper.d.ts +7 -7
- package/dist/game-entities/entity/helpers/view-creation.helper.js +48 -48
- package/dist/game-entities/scene/scene.spec.js +219 -223
- package/dist/game-entities/service/service.js +0 -4
- package/dist/game-entities/service/service.spec.js +265 -237
- package/dist/game-entities/service/service.test.js +4 -2
- package/dist/game-entities/update-loop.d.ts +18 -18
- package/dist/game-entities/update-loop.js +46 -28
- package/dist/game-entities/view/view.spec.js +490 -506
- package/dist/game-entities/view/view.test.js +1 -1
- package/dist/lib/animator/animations.d.ts +13 -13
- package/dist/lib/animator/animations.js +43 -40
- package/dist/lib/animator/animator.d.ts +41 -41
- package/dist/lib/animator/animator.js +194 -197
- package/dist/lib/animator/animator.spec.js +699 -612
- package/dist/lib/animator/index.js +24 -19
- package/dist/lib/libraries/animator/animations.d.ts +13 -13
- package/dist/lib/libraries/animator/animations.js +43 -40
- package/dist/lib/libraries/animator/animator.d.ts +41 -41
- package/dist/lib/libraries/animator/animator.js +194 -197
- package/dist/lib/libraries/animator/animator.spec.js +699 -612
- package/dist/lib/libraries/animator/index.js +24 -19
- package/dist/lib/libraries/path-finder/path-finder.d.ts +2 -2
- package/dist/lib/libraries/path-finder/path-finder.js +19 -20
- package/dist/lib/path-finder/path-finder.d.ts +2 -2
- package/dist/lib/path-finder/path-finder.js +19 -20
- package/dist/lib/services/keyboard/keyboard.d.ts +4 -4
- package/dist/lib/services/keyboard/keyboard.js +39 -31
- package/dist/lib/services/mouse/mouse.service.d.ts +8 -8
- package/dist/lib/services/mouse/mouse.service.js +65 -53
- package/dist/lib/services/mouse/mouser-target-focus.service.d.ts +11 -11
- package/dist/lib/services/mouse/mouser-target-focus.service.js +83 -81
- package/dist/lib/update-loop.d.ts +10 -10
- package/dist/lib/update-loop.js +35 -27
- package/dist/physics/entitity-types/immovable-physics-entity.d.ts +6 -6
- package/dist/physics/entitity-types/immovable-physics-entity.js +23 -24
- package/dist/physics/entitity-types/movable-entity.d.ts +6 -6
- package/dist/physics/entitity-types/movable-entity.js +21 -22
- package/dist/physics/entitity-types/movable-physics-entity.d.ts +14 -14
- package/dist/physics/entitity-types/movable-physics-entity.js +83 -88
- package/dist/physics/entitity-types/physics-entity.d.ts +23 -23
- package/dist/physics/entitity-types/physics-entity.js +97 -88
- package/dist/physics/helpers/closest-available-space.helper.d.ts +16 -16
- package/dist/physics/helpers/closest-available-space.helper.js +98 -96
- package/dist/physics/helpers/closest-available-space.helper.spec.js +115 -68
- package/dist/physics/helpers/p2js.helper.d.ts +3 -3
- package/dist/physics/helpers/p2js.helper.js +21 -22
- package/dist/physics/helpers/shape-factory.d.ts +9 -4
- package/dist/physics/helpers/shape-factory.js +99 -75
- package/dist/physics/libs/p2js.helper.js +1 -1
- package/dist/physics/libs/position-to-grid-position-converter.d.ts +3 -3
- package/dist/physics/libs/position-to-grid-position-converter.js +15 -13
- package/dist/physics/module//360/237/223/220services/availability-grid.service.d.ts +10 -5
- package/dist/physics/module//360/237/223/220services/availability-grid.service.js +77 -57
- package/dist/physics/module//360/237/223/220services/border.service.d.ts +2 -2
- package/dist/physics/module//360/237/223/220services/border.service.js +57 -37
- package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.js +1 -1
- package/dist/physics/module//360/237/223/220services/collisions.service.d.ts +7 -7
- package/dist/physics/module//360/237/223/220services/collisions.service.js +110 -98
- package/dist/physics/module//360/237/223/220services/debug-visuals.service.d.ts +28 -6
- package/dist/physics/module//360/237/223/220services/debug-visuals.service.js +121 -89
- package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.d.ts +15 -7
- package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.js +117 -93
- package/dist/physics/module//360/237/223/220services/explosion.service.d.ts +14 -7
- package/dist/physics/module//360/237/223/220services/explosion.service.js +102 -77
- package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.d.ts +15 -7
- package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.js +117 -93
- package/dist/physics/module//360/237/223/220services/explosions/explosion.service.d.ts +14 -7
- package/dist/physics/module//360/237/223/220services/explosions/explosion.service.js +102 -77
- package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.d.ts +3 -3
- package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.js +71 -67
- package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.d.ts +3 -3
- package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.js +71 -67
- package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.js +1 -1
- package/dist/physics/module//360/237/223/220services/materials.service.d.ts +16 -11
- package/dist/physics/module//360/237/223/220services/materials.service.js +118 -108
- package/dist/physics/module//360/237/223/220services/path-finder.service.d.ts +19 -8
- package/dist/physics/module//360/237/223/220services/path-finder.service.js +121 -82
- package/dist/physics/module//360/237/223/220services/physics-world.service.d.ts +30 -15
- package/dist/physics/module//360/237/223/220services/physics-world.service.js +122 -100
- package/dist/physics/module//360/237/223/220services/ray-casting.service.d.ts +3 -3
- package/dist/physics/module//360/237/223/220services/ray-casting.service.js +87 -86
- package/dist/physics/module//360/237/223/220services/shape-creation.service.d.ts +9 -4
- package/dist/physics/module//360/237/223/220services/shape-creation.service.js +113 -84
- package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.js +2 -1
- package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.d.ts +8 -8
- package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.js +32 -33
- package/dist/physics/physics-world.d.ts +50 -34
- package/dist/physics/physics-world.js +142 -133
- package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.d.ts +3 -3
- package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.js +15 -13
- package/dist/physics/sub-elements/available-spaces/physics-availability-grid.d.ts +9 -9
- package/dist/physics/sub-elements/available-spaces/physics-availability-grid.js +82 -77
- package/dist/physics/sub-elements/available-spaces/physics-available-spaces.d.ts +18 -14
- package/dist/physics/sub-elements/available-spaces/physics-available-spaces.js +91 -79
- package/dist/physics/sub-elements/collisions/contact-equation-orginiser.d.ts +11 -11
- package/dist/physics/sub-elements/collisions/contact-equation-orginiser.js +84 -76
- package/dist/physics/sub-elements/collisions/physics-collision.d.ts +7 -7
- package/dist/physics/sub-elements/collisions/physics-collision.js +43 -44
- package/dist/physics/sub-elements/elements/physics-body-groups.d.ts +11 -11
- package/dist/physics/sub-elements/elements/physics-body-groups.js +54 -54
- package/dist/physics/sub-elements/elements/physics-materials.d.ts +15 -10
- package/dist/physics/sub-elements/elements/physics-materials.js +101 -100
- package/dist/physics/sub-elements/elements/physics-world-borders.d.ts +3 -3
- package/dist/physics/sub-elements/elements/physics-world-borders.js +69 -45
- package/dist/physics/sub-elements/physics-body-groups.d.ts +8 -8
- package/dist/physics/sub-elements/physics-body-groups.js +41 -42
- package/dist/physics/sub-elements/physics-collision.d.ts +16 -16
- package/dist/physics/sub-elements/physics-collision.js +141 -121
- package/dist/physics/sub-elements/physics-materials.d.ts +15 -10
- package/dist/physics/sub-elements/physics-materials.js +101 -100
- package/dist/physics/sub-elements/physics-world-borders.d.ts +2 -2
- package/dist/physics/sub-elements/physics-world-borders.js +25 -26
- package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.d.ts +15 -11
- package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.js +59 -59
- package/dist/physics/sub-elements/raycasting/physics-explosion.d.ts +13 -6
- package/dist/physics/sub-elements/raycasting/physics-explosion.js +108 -73
- package/dist/physics/sub-elements/raycasting/ray-cast.d.ts +19 -19
- package/dist/physics/sub-elements/raycasting/ray-cast.js +93 -98
- package/dist/pixi/display-object/components/filters.d.ts +18 -18
- package/dist/pixi/display-object/components/filters.js +106 -81
- package/dist/pixi/display-object/components/glow-effect.d.ts +8 -8
- package/dist/pixi/display-object/components/glow-effect.js +33 -36
- package/dist/pixi/display-object/components/glow-filter.d.ts +8 -8
- package/dist/pixi/display-object/components/glow-filter.js +33 -36
- package/dist/pixi/display-object/container-attributes.js +1 -1
- package/dist/pixi/display-object/display-object-attributes.d.ts +41 -41
- package/dist/pixi/display-object/display-object-attributes.js +148 -150
- package/dist/pixi/display-object/display-object.d.ts +17 -17
- package/dist/pixi/display-object/display-object.js +79 -75
- package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.d.ts +9 -4
- package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.js +89 -77
- package/dist/pixi/display-object/filters/base-filters/blur.filter.js +30 -30
- package/dist/pixi/display-object/filters/base-filters/contrast-filter.d.ts +9 -4
- package/dist/pixi/display-object/filters/base-filters/contrast-filter.js +62 -53
- package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.d.ts +10 -5
- package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.js +93 -81
- package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.d.ts +12 -7
- package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.js +120 -109
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.d.ts +10 -5
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.js +32 -32
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.js +92 -85
- package/dist/pixi/display-object/filters/templates/checking-neighbors.template.js +28 -28
- package/dist/pixi/display-object/filters/templates/plane.template.js +20 -20
- package/dist/pixi/display-object/filters.js +20 -4
- package/dist/pixi/display-object/objects/components/filters.d.ts +18 -18
- package/dist/pixi/display-object/objects/components/filters.js +106 -81
- package/dist/pixi/display-object/objects/container.d.ts +2 -2
- package/dist/pixi/display-object/objects/container.js +39 -30
- package/dist/pixi/display-object/objects/graphics.d.ts +28 -28
- package/dist/pixi/display-object/objects/graphics.js +218 -202
- package/dist/pixi/display-object/objects/helpers/filters.d.ts +25 -25
- package/dist/pixi/display-object/objects/helpers/filters.js +150 -124
- package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.d.ts +7 -7
- package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.js +114 -95
- package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.d.ts +5 -5
- package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.js +81 -57
- package/dist/pixi/display-object/objects/sprite.d.ts +43 -43
- package/dist/pixi/display-object/objects/sprite.js +248 -233
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.js +1 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.js +9 -9
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.d.ts +1 -1
- package/dist/pixi/display-object/objects/text.d.ts +25 -25
- package/dist/pixi/display-object/objects/text.js +111 -102
- package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.d.ts +13 -9
- package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.js +96 -67
- package/dist/pixi/game.d.ts +1 -1
- package/dist/pixi/game.js +2 -2
- package/dist/pixi/helpers/glow-sprite-generator.d.ts +6 -6
- package/dist/pixi/helpers/glow-sprite-generator.js +99 -84
- package/dist/pixi/helpers/pixi-container.helper.d.ts +1 -1
- package/dist/pixi/helpers/pixi-container.helper.js +10 -8
- package/dist/pixi/helpers/screen-position-to-stage.helper.d.ts +1 -1
- package/dist/pixi/helpers/screen-position-to-stage.helper.js +12 -12
- package/dist/pixi/helpers/screen-position-to-stage.helper.test.js +174 -79
- package/dist/pixi/modules/CAMERA/index.d.ts +1 -1
- package/dist/pixi/modules/CAMERA/index.js +3 -3
- package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.js +1 -1
- package/dist/services/keyboard/keyboard.d.ts +4 -4
- package/dist/services/keyboard/keyboard.js +39 -31
- package/dist/services/mouse/mouse.service.d.ts +8 -8
- package/dist/services/mouse/mouse.service.js +65 -53
- package/dist/services/mouse/mouser-target-focus.service.d.ts +11 -11
- package/dist/services/mouse/mouser-target-focus.service.js +83 -81
- package/dist/utilities/libraries/animator/animating-content/state-animation.d.ts +29 -26
- package/dist/utilities/libraries/animator/animating-content/state-animation.js +159 -165
- package/dist/utilities/libraries/animator/animating-content/state-animation.test.js +386 -375
- package/dist/utilities/libraries/animator/animator.spec.js +765 -656
- package/dist/utilities/libraries/binary-heap/binary-heap.d.ts +11 -11
- package/dist/utilities/libraries/binary-heap/binary-heap.js +79 -81
- package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.d.ts +11 -11
- package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.js +79 -81
- package/dist/utilities/libraries/data-structures/grid/grid.d.ts +35 -31
- package/dist/utilities/libraries/data-structures/grid/grid.js +128 -117
- package/dist/utilities/libraries/data-structures/grid/grid.spec.js +176 -138
- package/dist/utilities/libraries/data-structures/grid/grid.test.js +218 -141
- package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.d.ts +3 -3
- package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.js +15 -13
- package/dist/utilities/libraries/data-structures/queue/queue.d.ts +21 -21
- package/dist/utilities/libraries/data-structures/queue/queue.js +63 -66
- package/dist/utilities/libraries/data-structures/queue/queue.test.js +54 -55
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.js +122 -68
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.js +140 -135
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.js +293 -229
- package/dist/utilities/libraries/path-finder/path-finder.d.ts +7 -7
- package/dist/utilities/libraries/path-finder/path-finder.js +113 -109
- package/dist/utilities/libraries/path-finder/path-finder.spec.js +131 -106
- package/dist/utilities/services/keyboard/keyboard.d.ts +4 -4
- package/dist/utilities/services/keyboard/keyboard.js +42 -34
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.d.ts +1 -1
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.js +12 -12
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.js +168 -73
- package/dist/utilities/services/mouse/mouse-target-focus.service.d.ts +15 -15
- package/dist/utilities/services/mouse/mouse-target-focus.service.js +79 -76
- package/dist/utilities/services/mouse/mouse.service.d.ts +9 -9
- package/dist/utilities/services/mouse/mouse.service.js +86 -72
- package/dist/utilities/services/mouse/mouser-target-focus.service.d.ts +11 -11
- package/dist/utilities/services/mouse/mouser-target-focus.service.js +83 -81
- package/package.json +8 -13
|
@@ -1,91 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
var __createBinding =
|
|
2
|
+
(this && this.__createBinding) ||
|
|
3
|
+
(Object.create
|
|
4
|
+
? (o, m, k, k2) => {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: () => m[k] };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}
|
|
12
|
+
: (o, m, k, k2) => {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
});
|
|
16
|
+
var __setModuleDefault =
|
|
17
|
+
(this && this.__setModuleDefault) ||
|
|
18
|
+
(Object.create
|
|
19
|
+
? (o, v) => {
|
|
20
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
21
|
+
}
|
|
22
|
+
: (o, v) => {
|
|
23
|
+
o['default'] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar =
|
|
26
|
+
(this && this.__importStar) ||
|
|
27
|
+
(mod => {
|
|
19
28
|
if (mod && mod.__esModule) return mod;
|
|
20
29
|
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !==
|
|
30
|
+
if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwn(mod, k)) __createBinding(result, mod, k);
|
|
22
31
|
__setModuleDefault(result, mod);
|
|
23
32
|
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports,
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
26
35
|
exports.Filters = void 0;
|
|
27
|
-
const PIXI = __importStar(require(
|
|
36
|
+
const PIXI = __importStar(require('pixi.js'));
|
|
28
37
|
class Filters {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
get brightness() {
|
|
39
|
+
return this._brightness;
|
|
40
|
+
}
|
|
41
|
+
set brightness(value) {
|
|
42
|
+
this._brightness = value;
|
|
43
|
+
this.refreshColorMatrix();
|
|
44
|
+
}
|
|
45
|
+
get red() {
|
|
46
|
+
return this._red;
|
|
47
|
+
}
|
|
48
|
+
set red(value) {
|
|
49
|
+
this._red = value;
|
|
50
|
+
this.refreshColorMatrix();
|
|
51
|
+
}
|
|
52
|
+
get green() {
|
|
53
|
+
return this._green;
|
|
54
|
+
}
|
|
55
|
+
set green(value) {
|
|
56
|
+
this._green = value;
|
|
57
|
+
this.refreshColorMatrix();
|
|
58
|
+
}
|
|
59
|
+
get blue() {
|
|
60
|
+
return this._blue;
|
|
61
|
+
}
|
|
62
|
+
set blue(value) {
|
|
63
|
+
this._blue = value;
|
|
64
|
+
this.refreshColorMatrix();
|
|
65
|
+
}
|
|
66
|
+
constructor(container) {
|
|
67
|
+
this.container = container;
|
|
68
|
+
this._red = 1.0;
|
|
69
|
+
this._green = 1.0;
|
|
70
|
+
this._blue = 1.0;
|
|
71
|
+
this._brightness = 1.0;
|
|
72
|
+
this.onFilterChange();
|
|
73
|
+
}
|
|
74
|
+
removeColorFilter() {
|
|
75
|
+
this.colorMatrix = undefined;
|
|
76
|
+
this.onFilterChange();
|
|
77
|
+
}
|
|
78
|
+
refreshColorMatrix() {
|
|
79
|
+
if (!this.colorMatrix) {
|
|
80
|
+
this.colorMatrix = new PIXI.ColorMatrixFilter();
|
|
81
|
+
this.onFilterChange();
|
|
49
82
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
0, 0, this._blue, 0, (this._brightness - 1),
|
|
79
|
-
0, 0, 0, 1, 0
|
|
80
|
-
];
|
|
81
|
-
}
|
|
82
|
-
onFilterChange() {
|
|
83
|
-
let filters = [];
|
|
84
|
-
if (this.colorMatrix) {
|
|
85
|
-
filters.push(this.colorMatrix);
|
|
86
|
-
}
|
|
87
|
-
this.container.filters = filters;
|
|
83
|
+
// prettier-ignore
|
|
84
|
+
this.colorMatrix.matrix = [
|
|
85
|
+
this._red,
|
|
86
|
+
0,
|
|
87
|
+
0,
|
|
88
|
+
0,
|
|
89
|
+
this._brightness - 1,
|
|
90
|
+
0,
|
|
91
|
+
this._green,
|
|
92
|
+
0,
|
|
93
|
+
0,
|
|
94
|
+
this._brightness - 1,
|
|
95
|
+
0,
|
|
96
|
+
0,
|
|
97
|
+
this._blue,
|
|
98
|
+
0,
|
|
99
|
+
this._brightness - 1,
|
|
100
|
+
0,
|
|
101
|
+
0,
|
|
102
|
+
0,
|
|
103
|
+
1,
|
|
104
|
+
0
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
onFilterChange() {
|
|
108
|
+
const filters = [];
|
|
109
|
+
if (this.colorMatrix) {
|
|
110
|
+
filters.push(this.colorMatrix);
|
|
88
111
|
}
|
|
112
|
+
this.container.filters = filters;
|
|
113
|
+
}
|
|
89
114
|
}
|
|
90
115
|
exports.Filters = Filters;
|
|
91
|
-
//# sourceMappingURL=filters.js.map
|
|
116
|
+
//# sourceMappingURL=filters.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as PIXI from 'pixi.js';
|
|
2
2
|
import { GlowEffectOptions } from '../..';
|
|
3
3
|
export declare class GlowEffect {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
private pixiSprite;
|
|
5
|
+
private glowSprite;
|
|
6
|
+
constructor(pixiSprite: PIXI.Sprite);
|
|
7
|
+
add(partialOptions: GlowEffectOptions): this;
|
|
8
|
+
setAlpha(alpha: number): this;
|
|
9
|
+
get alpha(): number;
|
|
10
|
+
set alpha(value: number);
|
|
11
|
+
remove(): void;
|
|
12
12
|
}
|
|
@@ -1,43 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
2
|
exports.GlowEffect = void 0;
|
|
4
|
-
const glow_sprite_generator_1 = require(
|
|
3
|
+
const glow_sprite_generator_1 = require('../../helpers/glow-sprite-generator');
|
|
5
4
|
class GlowEffect {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
constructor(pixiSprite) {
|
|
6
|
+
this.pixiSprite = pixiSprite;
|
|
7
|
+
}
|
|
8
|
+
add(partialOptions) {
|
|
9
|
+
this.remove();
|
|
10
|
+
this.glowSprite = glow_sprite_generator_1.GlowSpriteGenerator.createGlowSprite(this.pixiSprite, partialOptions);
|
|
11
|
+
this.pixiSprite.addChild(this.glowSprite);
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
setAlpha(alpha) {
|
|
15
|
+
this.alpha = alpha;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
get alpha() {
|
|
19
|
+
if (this.glowSprite) {
|
|
20
|
+
return this.glowSprite.alpha;
|
|
21
|
+
} else {
|
|
22
|
+
throw new Error(`Filters: getGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
8
23
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
24
|
+
}
|
|
25
|
+
set alpha(value) {
|
|
26
|
+
if (this.glowSprite) {
|
|
27
|
+
this.glowSprite.alpha = value;
|
|
28
|
+
} else {
|
|
29
|
+
throw new Error(`Filters: setGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
14
30
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (this.glowSprite) {
|
|
21
|
-
return this.glowSprite.alpha;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error(`Filters: getGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
set alpha(value) {
|
|
28
|
-
if (this.glowSprite) {
|
|
29
|
-
this.glowSprite.alpha = value;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
throw new Error(`Filters: setGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
remove() {
|
|
36
|
-
if (this.glowSprite) {
|
|
37
|
-
this.glowSprite.destroy();
|
|
38
|
-
this.glowSprite = undefined;
|
|
39
|
-
}
|
|
31
|
+
}
|
|
32
|
+
remove() {
|
|
33
|
+
if (this.glowSprite) {
|
|
34
|
+
this.glowSprite.destroy();
|
|
35
|
+
this.glowSprite = undefined;
|
|
40
36
|
}
|
|
37
|
+
}
|
|
41
38
|
}
|
|
42
39
|
exports.GlowEffect = GlowEffect;
|
|
43
|
-
//# sourceMappingURL=glow-effect.js.map
|
|
40
|
+
//# sourceMappingURL=glow-effect.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as PIXI from 'pixi.js';
|
|
2
2
|
import { GlowFilterOptions } from '../..';
|
|
3
3
|
export declare class GlowFilter {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
private pixiSprite;
|
|
5
|
+
private glowSprite;
|
|
6
|
+
constructor(pixiSprite: PIXI.Sprite);
|
|
7
|
+
add(options: GlowFilterOptions): void;
|
|
8
|
+
setAlpha(alpha: number): this;
|
|
9
|
+
get alpha(): number;
|
|
10
|
+
set alpha(value: number);
|
|
11
|
+
remove(): void;
|
|
12
12
|
}
|
|
@@ -1,43 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
2
|
exports.GlowFilter = void 0;
|
|
4
|
-
const glow_sprite_generator_1 = require(
|
|
3
|
+
const glow_sprite_generator_1 = require('../../helpers/glow-sprite-generator');
|
|
5
4
|
class GlowFilter {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
constructor(pixiSprite) {
|
|
6
|
+
this.pixiSprite = pixiSprite;
|
|
7
|
+
}
|
|
8
|
+
add(options) {
|
|
9
|
+
this.remove();
|
|
10
|
+
const { color, ...glowOptions } = options;
|
|
11
|
+
this.glowSprite = glow_sprite_generator_1.GlowSpriteGenerator.createGlowSprite(this.pixiSprite, color, glowOptions);
|
|
12
|
+
this.pixiSprite.addChild(this.glowSprite);
|
|
13
|
+
}
|
|
14
|
+
setAlpha(alpha) {
|
|
15
|
+
this.alpha = alpha;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
get alpha() {
|
|
19
|
+
if (this.glowSprite) {
|
|
20
|
+
return this.glowSprite.alpha;
|
|
21
|
+
} else {
|
|
22
|
+
throw new Error(`Filters: getGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
8
23
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
24
|
+
}
|
|
25
|
+
set alpha(value) {
|
|
26
|
+
if (this.glowSprite) {
|
|
27
|
+
this.glowSprite.alpha = value;
|
|
28
|
+
} else {
|
|
29
|
+
throw new Error(`Filters: setGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
14
30
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (this.glowSprite) {
|
|
21
|
-
return this.glowSprite.alpha;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error(`Filters: getGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
set alpha(value) {
|
|
28
|
-
if (this.glowSprite) {
|
|
29
|
-
this.glowSprite.alpha = value;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
throw new Error(`Filters: setGlowFilterAlpha cannot be called before glow filter is added.`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
remove() {
|
|
36
|
-
if (this.glowSprite) {
|
|
37
|
-
this.glowSprite.destroy();
|
|
38
|
-
this.glowSprite = undefined;
|
|
39
|
-
}
|
|
31
|
+
}
|
|
32
|
+
remove() {
|
|
33
|
+
if (this.glowSprite) {
|
|
34
|
+
this.glowSprite.destroy();
|
|
35
|
+
this.glowSprite = undefined;
|
|
40
36
|
}
|
|
37
|
+
}
|
|
41
38
|
}
|
|
42
39
|
exports.GlowFilter = GlowFilter;
|
|
43
|
-
//# sourceMappingURL=glow-filter.js.map
|
|
40
|
+
//# sourceMappingURL=glow-filter.js.map
|
|
@@ -230,7 +230,7 @@ class ContainerAttributes extends game_entities_1.Attachable {
|
|
|
230
230
|
if (this._mask) {
|
|
231
231
|
this.pixiContainer.removeChild(this._mask.pixiContainer);
|
|
232
232
|
}
|
|
233
|
-
//
|
|
233
|
+
// biome-ignore lint:all
|
|
234
234
|
this.pixiContainer.mask = null;
|
|
235
235
|
}
|
|
236
236
|
return this;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { Radian, Vector } from 'helpers-lib';
|
|
2
2
|
import * as PIXI from 'pixi.js';
|
|
3
3
|
export declare abstract class DisplayObjectAttributes {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
4
|
+
pixiContainer: PIXI.Container;
|
|
5
|
+
private isMirror;
|
|
6
|
+
protected constructor(pixiContainer: PIXI.Container);
|
|
7
|
+
get size(): Vector;
|
|
8
|
+
setPosition(value: Vector): this;
|
|
9
|
+
get position(): Vector;
|
|
10
|
+
set position(value: Vector);
|
|
11
|
+
get x(): number;
|
|
12
|
+
set x(value: number);
|
|
13
|
+
get y(): number;
|
|
14
|
+
set y(value: number);
|
|
15
|
+
setRotation(value: Radian): this;
|
|
16
|
+
get rotation(): Radian;
|
|
17
|
+
set rotation(value: Radian);
|
|
18
|
+
setZIndex(value: number): this;
|
|
19
|
+
get zIndex(): number;
|
|
20
|
+
set zIndex(value: number);
|
|
21
|
+
setSortableChildren(value: boolean): this;
|
|
22
|
+
get sortableChildren(): boolean;
|
|
23
|
+
set sortableChildren(value: boolean);
|
|
24
|
+
setScale(value: number): this;
|
|
25
|
+
get scale(): number;
|
|
26
|
+
set scale(value: number);
|
|
27
|
+
setAlpha(value: number): this;
|
|
28
|
+
get alpha(): number;
|
|
29
|
+
set alpha(value: number);
|
|
30
|
+
setMirror(mirror?: boolean): this;
|
|
31
|
+
get mirror(): boolean;
|
|
32
|
+
set mirror(value: boolean);
|
|
33
|
+
setInteractive(): this;
|
|
34
|
+
get interactive(): boolean;
|
|
35
|
+
set interactive(value: boolean);
|
|
36
|
+
setPointer(): this;
|
|
37
|
+
get pointer(): string;
|
|
38
|
+
set pointer(value: string);
|
|
39
|
+
setEventMode(eventMode: PIXI.EventMode): this;
|
|
40
|
+
get eventMode(): PIXI.EventMode;
|
|
41
|
+
set eventMode(value: PIXI.EventMode);
|
|
42
|
+
protected getMask(): PIXI.Container;
|
|
43
|
+
private _mask;
|
|
44
|
+
setMask(mask: DisplayObjectAttributes | undefined): this;
|
|
45
45
|
}
|