dacha 0.18.0-alpha.2 → 0.18.0-alpha.4
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/build/contrib/components/animatable/index.d.ts +0 -1
- package/build/contrib/components/animatable/index.js +0 -6
- package/build/contrib/components/audio-source/index.d.ts +0 -1
- package/build/contrib/components/audio-source/index.js +0 -9
- package/build/contrib/components/behaviors/index.d.ts +0 -1
- package/build/contrib/components/behaviors/index.js +4 -9
- package/build/contrib/components/bitmap-text/index.d.ts +6 -4
- package/build/contrib/components/bitmap-text/index.js +4 -17
- package/build/contrib/components/camera/index.d.ts +0 -1
- package/build/contrib/components/camera/index.js +0 -6
- package/build/contrib/components/collider/index.d.ts +56 -24
- package/build/contrib/components/collider/index.js +38 -48
- package/build/contrib/components/index.d.ts +2 -2
- package/build/contrib/components/index.js +2 -2
- package/build/contrib/components/keyboard-control/index.d.ts +0 -1
- package/build/contrib/components/keyboard-control/index.js +0 -31
- package/build/contrib/components/mesh/index.d.ts +6 -4
- package/build/contrib/components/mesh/index.js +7 -23
- package/build/contrib/components/mouse-control/index.d.ts +0 -1
- package/build/contrib/components/mouse-control/index.js +0 -19
- package/build/contrib/components/pixi-view/index.d.ts +6 -4
- package/build/contrib/components/pixi-view/index.js +4 -10
- package/build/contrib/components/rigid-body/index.d.ts +53 -8
- package/build/contrib/components/rigid-body/index.js +62 -15
- package/build/contrib/components/shape/index.d.ts +44 -38
- package/build/contrib/components/shape/index.js +41 -59
- package/build/contrib/components/sprite/index.d.ts +6 -4
- package/build/contrib/components/sprite/index.js +4 -20
- package/build/contrib/components/transform/index.d.ts +0 -1
- package/build/contrib/components/transform/index.js +1 -10
- package/build/contrib/systems/audio-system/index.js +3 -3
- package/build/contrib/systems/audio-system/utils.d.ts +3 -2
- package/build/contrib/systems/audio-system/utils.js +12 -0
- package/build/contrib/systems/physics-system/api.d.ts +15 -15
- package/build/contrib/systems/physics-system/api.js +15 -15
- package/build/contrib/systems/physics-system/physics-system.js +1 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/aabb-builders/build-box-cast-aabb.d.ts +2 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/aabb-builders/build-box-cast-aabb.js +18 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/aabb-builders/build-capsule-cast-aabb.d.ts +2 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/aabb-builders/build-capsule-cast-aabb.js +21 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/aabb-builders/build-circle-cast-aabb.d.ts +2 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/aabb-builders/build-circle-cast-aabb.js +15 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/aabb-builders/index.js +6 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-box-cast-geometry.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-box-cast-geometry.js +24 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-box-geometry.js +8 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-capsule-cast-geometry.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-capsule-cast-geometry.js +43 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-capsule-geometry.d.ts +2 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-capsule-geometry.js +42 -18
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-circle-cast-geometry.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-circle-cast-geometry.js +9 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-circle-geometry.js +7 -4
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-point-geometry.js +1 -1
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/build-segment-geometry.js +12 -13
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/index.d.ts +6 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/geometry-builders/index.js +6 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/index.d.ts +7 -7
- package/build/contrib/systems/physics-system/subsystems/collision-detection/index.js +35 -44
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-box/check-boxes-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-box/check-boxes-intersection.js +1 -3
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-capsule/check-box-and-capsule-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-capsule/check-box-and-capsule-intersection.js +1 -3
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-capsule/utils.js +10 -10
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-circle/check-box-and-circle-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-circle/check-box-and-circle-intersection.js +3 -6
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-segment/check-box-and-segment-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-segment/check-box-and-segment-intersection.js +2 -4
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/box-segment/utils.js +8 -8
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/capsule-capsule/check-capsules-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/capsule-capsule/check-capsules-intersection.js +1 -3
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/circle-capsule/check-circle-and-capsule-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/circle-capsule/check-circle-and-capsule-intersection.js +3 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/circle-circle/check-circles-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/circle-circle/check-circles-intersection.js +5 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/circle-segment/check-circle-and-segment-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/circle-segment/check-circle-and-segment-intersection.js +3 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/common/capsule.js +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/common/cast.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/common/cast.js +9 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/common/points.js +2 -3
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/common/projections.js +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/common/segment-distance.js +6 -6
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/index.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/index.js +0 -10
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-box/check-point-and-box-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-box/check-point-and-box-intersection.js +4 -6
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-capsule/check-point-and-capsule-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-capsule/check-point-and-capsule-intersection.js +3 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-circle/check-point-and-circle-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-circle/check-point-and-circle-intersection.js +3 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-segment/check-point-and-segment-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/point-segment/check-point-and-segment-intersection.js +3 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/segment-capsule/check-segment-and-capsule-intersection.d.ts +2 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/segment-capsule/check-segment-and-capsule-intersection.js +1 -3
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/tests/helpers.d.ts +3 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/tests/helpers.js +40 -30
- package/build/contrib/systems/physics-system/subsystems/collision-detection/query-utils.d.ts +11 -6
- package/build/contrib/systems/physics-system/subsystems/collision-detection/query-utils.js +74 -14
- package/build/contrib/systems/physics-system/subsystems/collision-detection/raycast-checkers/index.d.ts +2 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/raycast-checkers/index.js +12 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-box/check-ray-and-box-intersection.d.ts +3 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-box/check-ray-and-box-intersection.js +8 -12
- package/build/contrib/systems/physics-system/subsystems/collision-detection/raycast-checkers/ray-capsule/check-ray-and-capsule-intersection.d.ts +20 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-capsule/check-ray-and-capsule-intersection.js +27 -39
- package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-circle/check-ray-and-circle-intersection.d.ts +3 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-circle/check-ray-and-circle-intersection.js +8 -10
- package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-segment/check-ray-and-segment-intersection.d.ts +3 -2
- package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-segment/check-ray-and-segment-intersection.js +9 -13
- package/build/contrib/systems/physics-system/subsystems/collision-detection/raycast-checkers/types.d.ts +4 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/raycast-checkers/types.js +1 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/reorientation-checkers/check-collider.js +16 -12
- package/build/contrib/systems/physics-system/subsystems/collision-detection/reorientation-checkers/get-orientation-data.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/reorientation-checkers/get-orientation-data.js +42 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/reorientation-checkers/index.d.ts +1 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/reorientation-checkers/index.js +1 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-box/check-box-cast-and-box.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-box/check-box-cast-and-box.js +12 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-capsule/check-box-cast-and-capsule.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-capsule/check-box-cast-and-capsule.js +12 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-circle/check-box-cast-and-circle.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-circle/check-box-cast-and-circle.js +12 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-segment/check-box-cast-and-segment.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-segment/check-box-cast-and-segment.js +15 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-utils.d.ts +7 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/box-utils.js +146 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-box/check-capsule-cast-and-box.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-box/check-capsule-cast-and-box.js +22 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-capsule/check-capsule-cast-and-capsule.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-capsule/check-capsule-cast-and-capsule.js +21 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-circle/check-capsule-cast-and-circle.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-circle/check-capsule-cast-and-circle.js +20 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-segment/check-capsule-cast-and-segment.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-segment/check-capsule-cast-and-segment.js +21 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-utils.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/capsule-utils.js +16 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-box/check-circle-cast-and-box.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-box/check-circle-cast-and-box.js +22 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-capsule/check-circle-cast-and-capsule.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-capsule/check-circle-cast-and-capsule.js +18 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-circle/check-circle-cast-and-circle.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-circle/check-circle-cast-and-circle.js +22 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-segment/check-circle-cast-and-segment.d.ts +3 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/circle-segment/check-circle-cast-and-segment.js +18 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/index.d.ts +2 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/index.js +32 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/tests/helpers.d.ts +6 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/tests/helpers.js +39 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/types.d.ts +4 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/types.js +1 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/utils.d.ts +4 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/shape-cast-checkers/utils.js +11 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/types.d.ts +18 -5
- package/build/contrib/systems/physics-system/subsystems/collision-detection/utils.d.ts +5 -0
- package/build/contrib/systems/physics-system/subsystems/collision-detection/utils.js +6 -0
- package/build/contrib/systems/physics-system/subsystems/constraint-solver/index.d.ts +6 -0
- package/build/contrib/systems/physics-system/subsystems/constraint-solver/index.js +65 -4
- package/build/contrib/systems/physics-system/subsystems/physics/index.d.ts +2 -0
- package/build/contrib/systems/physics-system/subsystems/physics/index.js +43 -5
- package/build/contrib/systems/physics-system/tests/helpers.d.ts +20 -0
- package/build/contrib/systems/physics-system/tests/helpers.js +129 -0
- package/build/contrib/systems/physics-system/types.d.ts +53 -6
- package/build/contrib/systems/renderer/assets/index.js +4 -4
- package/build/contrib/systems/renderer/assets/utils.d.ts +5 -3
- package/build/contrib/systems/renderer/assets/utils.js +25 -0
- package/build/contrib/systems/renderer/builders/shape-builder/index.d.ts +2 -0
- package/build/contrib/systems/renderer/builders/shape-builder/index.js +69 -29
- package/build/contrib/systems/renderer/builders/shape-builder/utils.js +31 -21
- package/build/contrib/systems/renderer/sort/sort-by-x-axis.js +2 -2
- package/build/contrib/systems/renderer/sort/sort-by-y-axis.js +2 -2
- package/build/engine/actor/actor-creator.d.ts +1 -0
- package/build/engine/actor/actor-creator.js +6 -8
- package/build/engine/component/component.d.ts +0 -1
- package/build/engine/engine.js +1 -1
- package/build/engine/entity/utils.d.ts +6 -3
- package/build/engine/math-lib/vector/ops.d.ts +9 -1
- package/build/engine/math-lib/vector/ops.js +15 -0
- package/build/engine/template/index.d.ts +0 -1
- package/build/engine/template/index.js +0 -1
- package/build/engine/template/template-collection.d.ts +4 -8
- package/build/engine/template/template-collection.js +25 -29
- package/build/engine/types/config.d.ts +4 -4
- package/build/types/global.d.ts +4 -1
- package/package.json +1 -1
- package/build/contrib/systems/physics-system/consts.d.ts +0 -4
- package/build/contrib/systems/physics-system/consts.js +0 -4
- package/build/contrib/systems/physics-system/subsystems/collision-detection/intersection-checkers/ray-capsule/check-ray-and-capsule-intersection.d.ts +0 -11
- package/build/engine/template/template.d.ts +0 -18
- package/build/engine/template/template.js +0 -46
- /package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-segment/utils.d.ts +0 -0
- /package/build/contrib/systems/physics-system/subsystems/collision-detection/{intersection-checkers → raycast-checkers}/ray-segment/utils.js +0 -0
|
@@ -50,14 +50,5 @@ export class AudioSource extends Component {
|
|
|
50
50
|
this.autoplay = config.autoplay;
|
|
51
51
|
this.playing = false;
|
|
52
52
|
}
|
|
53
|
-
clone() {
|
|
54
|
-
return new AudioSource({
|
|
55
|
-
src: this.src,
|
|
56
|
-
group: this.group,
|
|
57
|
-
looped: this.looped,
|
|
58
|
-
volume: this.volume,
|
|
59
|
-
autoplay: this.autoplay,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
53
|
}
|
|
63
54
|
AudioSource.componentName = 'AudioSource';
|
|
@@ -23,15 +23,10 @@ export class Behaviors extends Component {
|
|
|
23
23
|
constructor(config) {
|
|
24
24
|
super();
|
|
25
25
|
const { list } = config;
|
|
26
|
-
this.list = list
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
list: this.list.map(({ name, options }) => ({
|
|
31
|
-
name,
|
|
32
|
-
options: { ...options },
|
|
33
|
-
})),
|
|
34
|
-
});
|
|
26
|
+
this.list = list.map(({ name, options }) => ({
|
|
27
|
+
name,
|
|
28
|
+
options: { ...options },
|
|
29
|
+
}));
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
32
|
Behaviors.componentName = 'Behaviors';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BitmapText as PixiBitmapText } from 'pixi.js';
|
|
2
2
|
import { Component } from '../../../engine/component';
|
|
3
|
+
import type { Point } from '../../../engine/math-lib';
|
|
3
4
|
import { type BlendingMode } from '../../types/view';
|
|
4
5
|
interface RenderData {
|
|
5
6
|
view: PixiBitmapText;
|
|
@@ -16,7 +17,8 @@ export interface BitmapTextConfig {
|
|
|
16
17
|
blending: BlendingMode;
|
|
17
18
|
disabled: boolean;
|
|
18
19
|
sortingLayer: string;
|
|
19
|
-
|
|
20
|
+
sortOffsetX: number;
|
|
21
|
+
sortOffsetY: number;
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* BitmapText component for rendering text using a bitmap font.
|
|
@@ -37,7 +39,8 @@ export interface BitmapTextConfig {
|
|
|
37
39
|
* blending: 'normal',
|
|
38
40
|
* disabled: false,
|
|
39
41
|
* sortingLayer: 'text',
|
|
40
|
-
*
|
|
42
|
+
* sortOffsetX: 0,
|
|
43
|
+
* sortOffsetY: 0
|
|
41
44
|
* });
|
|
42
45
|
*
|
|
43
46
|
* // Add to actor
|
|
@@ -73,10 +76,9 @@ export declare class BitmapText extends Component {
|
|
|
73
76
|
/** Sorting layer of the text */
|
|
74
77
|
sortingLayer: string;
|
|
75
78
|
/** Center point of the text */
|
|
76
|
-
|
|
79
|
+
sortOffset: Point;
|
|
77
80
|
/** Internal rendering data */
|
|
78
81
|
renderData?: RenderData;
|
|
79
82
|
constructor(config: BitmapTextConfig);
|
|
80
|
-
clone(): BitmapText;
|
|
81
83
|
}
|
|
82
84
|
export {};
|
|
@@ -18,7 +18,8 @@ import { Component } from '../../../engine/component';
|
|
|
18
18
|
* blending: 'normal',
|
|
19
19
|
* disabled: false,
|
|
20
20
|
* sortingLayer: 'text',
|
|
21
|
-
*
|
|
21
|
+
* sortOffsetX: 0,
|
|
22
|
+
* sortOffsetY: 0
|
|
22
23
|
* });
|
|
23
24
|
*
|
|
24
25
|
* // Add to actor
|
|
@@ -54,7 +55,7 @@ export class BitmapText extends Component {
|
|
|
54
55
|
/** Sorting layer of the text */
|
|
55
56
|
sortingLayer;
|
|
56
57
|
/** Center point of the text */
|
|
57
|
-
|
|
58
|
+
sortOffset;
|
|
58
59
|
/** Internal rendering data */
|
|
59
60
|
renderData;
|
|
60
61
|
constructor(config) {
|
|
@@ -68,21 +69,7 @@ export class BitmapText extends Component {
|
|
|
68
69
|
this.blending = config.blending;
|
|
69
70
|
this.disabled = config.disabled;
|
|
70
71
|
this.sortingLayer = config.sortingLayer;
|
|
71
|
-
this.
|
|
72
|
-
}
|
|
73
|
-
clone() {
|
|
74
|
-
return new BitmapText({
|
|
75
|
-
text: this.text,
|
|
76
|
-
font: this.font,
|
|
77
|
-
fontSize: this.fontSize,
|
|
78
|
-
align: this.align,
|
|
79
|
-
color: this.color,
|
|
80
|
-
opacity: this.opacity,
|
|
81
|
-
blending: this.blending,
|
|
82
|
-
disabled: this.disabled,
|
|
83
|
-
sortingLayer: this.sortingLayer,
|
|
84
|
-
sortCenter: this.sortCenter.slice(0),
|
|
85
|
-
});
|
|
72
|
+
this.sortOffset = { x: config.sortOffsetX, y: config.sortOffsetY };
|
|
86
73
|
}
|
|
87
74
|
}
|
|
88
75
|
BitmapText.componentName = 'BitmapText';
|
|
@@ -1,19 +1,55 @@
|
|
|
1
1
|
import { Component } from '../../../engine/component';
|
|
2
2
|
import type { Point } from '../../../engine/math-lib';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
sizeY?: number;
|
|
9
|
-
point1X?: number;
|
|
10
|
-
point1Y?: number;
|
|
11
|
-
point2X?: number;
|
|
12
|
-
point2Y?: number;
|
|
13
|
-
radius?: number;
|
|
3
|
+
export type ColliderType = 'box' | 'circle' | 'segment' | 'capsule';
|
|
4
|
+
export interface BaseColliderConfig {
|
|
5
|
+
type: ColliderType;
|
|
6
|
+
offsetX: number;
|
|
7
|
+
offsetY: number;
|
|
14
8
|
layer: string;
|
|
15
9
|
debugColor?: string;
|
|
10
|
+
disabled: boolean;
|
|
16
11
|
}
|
|
12
|
+
export interface BoxColliderConfig extends BaseColliderConfig {
|
|
13
|
+
type: 'box';
|
|
14
|
+
sizeX: number;
|
|
15
|
+
sizeY: number;
|
|
16
|
+
}
|
|
17
|
+
export interface CircleColliderConfig extends BaseColliderConfig {
|
|
18
|
+
type: 'circle';
|
|
19
|
+
radius: number;
|
|
20
|
+
}
|
|
21
|
+
export interface SegmentColliderConfig extends BaseColliderConfig {
|
|
22
|
+
type: 'segment';
|
|
23
|
+
point1X: number;
|
|
24
|
+
point1Y: number;
|
|
25
|
+
point2X: number;
|
|
26
|
+
point2Y: number;
|
|
27
|
+
}
|
|
28
|
+
export interface CapsuleColliderConfig extends BaseColliderConfig {
|
|
29
|
+
type: 'capsule';
|
|
30
|
+
height: number;
|
|
31
|
+
radius: number;
|
|
32
|
+
}
|
|
33
|
+
export type ColliderConfig = BoxColliderConfig | CircleColliderConfig | SegmentColliderConfig | CapsuleColliderConfig;
|
|
34
|
+
export interface BoxColliderShape {
|
|
35
|
+
type: 'box';
|
|
36
|
+
size: Point;
|
|
37
|
+
}
|
|
38
|
+
export interface CircleColliderShape {
|
|
39
|
+
type: 'circle';
|
|
40
|
+
radius: number;
|
|
41
|
+
}
|
|
42
|
+
export interface SegmentColliderShape {
|
|
43
|
+
type: 'segment';
|
|
44
|
+
point1: Point;
|
|
45
|
+
point2: Point;
|
|
46
|
+
}
|
|
47
|
+
export interface CapsuleColliderShape {
|
|
48
|
+
type: 'capsule';
|
|
49
|
+
height: number;
|
|
50
|
+
radius: number;
|
|
51
|
+
}
|
|
52
|
+
export type ColliderShape = BoxColliderShape | CircleColliderShape | SegmentColliderShape | CapsuleColliderShape;
|
|
17
53
|
/**
|
|
18
54
|
* Collider component for defining collision boundaries.
|
|
19
55
|
*
|
|
@@ -25,20 +61,22 @@ export interface ColliderConfig {
|
|
|
25
61
|
* // Create a box collider
|
|
26
62
|
* const boxCollider = new Collider({
|
|
27
63
|
* type: 'box',
|
|
28
|
-
*
|
|
29
|
-
*
|
|
64
|
+
* offsetX: 0,
|
|
65
|
+
* offsetY: 0,
|
|
30
66
|
* sizeX: 64,
|
|
31
67
|
* sizeY: 64,
|
|
32
68
|
* layer: 'default',
|
|
69
|
+
* disabled: false,
|
|
33
70
|
* });
|
|
34
71
|
*
|
|
35
72
|
* // Create a circle collider
|
|
36
73
|
* const circleCollider = new Collider({
|
|
37
74
|
* type: 'circle',
|
|
38
|
-
*
|
|
39
|
-
*
|
|
75
|
+
* offsetX: 0,
|
|
76
|
+
* offsetY: 0,
|
|
40
77
|
* radius: 32,
|
|
41
78
|
* layer: 'default',
|
|
79
|
+
* disabled: false,
|
|
42
80
|
* });
|
|
43
81
|
*
|
|
44
82
|
* // Add to actor
|
|
@@ -48,16 +86,10 @@ export interface ColliderConfig {
|
|
|
48
86
|
* @category Components
|
|
49
87
|
*/
|
|
50
88
|
export declare class Collider extends Component {
|
|
51
|
-
|
|
52
|
-
centerX: number;
|
|
53
|
-
centerY: number;
|
|
54
|
-
sizeX?: number;
|
|
55
|
-
sizeY?: number;
|
|
56
|
-
radius?: number;
|
|
57
|
-
point1?: Point;
|
|
58
|
-
point2?: Point;
|
|
89
|
+
offset: Point;
|
|
59
90
|
layer: string;
|
|
60
91
|
debugColor?: string;
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
shape: ColliderShape;
|
|
61
94
|
constructor(config: ColliderConfig);
|
|
62
|
-
clone(): Collider;
|
|
63
95
|
}
|
|
@@ -10,20 +10,22 @@ import { Component } from '../../../engine/component';
|
|
|
10
10
|
* // Create a box collider
|
|
11
11
|
* const boxCollider = new Collider({
|
|
12
12
|
* type: 'box',
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* offsetX: 0,
|
|
14
|
+
* offsetY: 0,
|
|
15
15
|
* sizeX: 64,
|
|
16
16
|
* sizeY: 64,
|
|
17
17
|
* layer: 'default',
|
|
18
|
+
* disabled: false,
|
|
18
19
|
* });
|
|
19
20
|
*
|
|
20
21
|
* // Create a circle collider
|
|
21
22
|
* const circleCollider = new Collider({
|
|
22
23
|
* type: 'circle',
|
|
23
|
-
*
|
|
24
|
-
*
|
|
24
|
+
* offsetX: 0,
|
|
25
|
+
* offsetY: 0,
|
|
25
26
|
* radius: 32,
|
|
26
27
|
* layer: 'default',
|
|
28
|
+
* disabled: false,
|
|
27
29
|
* });
|
|
28
30
|
*
|
|
29
31
|
* // Add to actor
|
|
@@ -33,56 +35,44 @@ import { Component } from '../../../engine/component';
|
|
|
33
35
|
* @category Components
|
|
34
36
|
*/
|
|
35
37
|
export class Collider extends Component {
|
|
36
|
-
|
|
37
|
-
centerX;
|
|
38
|
-
centerY;
|
|
39
|
-
sizeX;
|
|
40
|
-
sizeY;
|
|
41
|
-
radius;
|
|
42
|
-
point1;
|
|
43
|
-
point2;
|
|
38
|
+
offset;
|
|
44
39
|
layer;
|
|
45
40
|
debugColor;
|
|
41
|
+
disabled;
|
|
42
|
+
shape;
|
|
46
43
|
constructor(config) {
|
|
47
44
|
super();
|
|
48
|
-
this.
|
|
49
|
-
this.centerX = config.centerX;
|
|
50
|
-
this.centerY = config.centerY;
|
|
51
|
-
this.sizeX = config.sizeX;
|
|
52
|
-
this.sizeY = config.sizeY;
|
|
53
|
-
this.radius = config.radius;
|
|
54
|
-
this.point1 =
|
|
55
|
-
config.point1X !== undefined || config.point1Y !== undefined
|
|
56
|
-
? {
|
|
57
|
-
x: config.point1X ?? 0,
|
|
58
|
-
y: config.point1Y ?? 0,
|
|
59
|
-
}
|
|
60
|
-
: undefined;
|
|
61
|
-
this.point2 =
|
|
62
|
-
config.point2X !== undefined || config.point2Y !== undefined
|
|
63
|
-
? {
|
|
64
|
-
x: config.point2X ?? 0,
|
|
65
|
-
y: config.point2Y ?? 0,
|
|
66
|
-
}
|
|
67
|
-
: undefined;
|
|
45
|
+
this.offset = { x: config.offsetX, y: config.offsetY };
|
|
68
46
|
this.layer = config.layer;
|
|
69
47
|
this.debugColor = config.debugColor;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
48
|
+
this.disabled = config.disabled;
|
|
49
|
+
switch (config.type) {
|
|
50
|
+
case 'box':
|
|
51
|
+
this.shape = {
|
|
52
|
+
type: config.type,
|
|
53
|
+
size: { x: config.sizeX, y: config.sizeY },
|
|
54
|
+
};
|
|
55
|
+
break;
|
|
56
|
+
case 'circle':
|
|
57
|
+
this.shape = {
|
|
58
|
+
type: config.type,
|
|
59
|
+
radius: config.radius,
|
|
60
|
+
};
|
|
61
|
+
break;
|
|
62
|
+
case 'segment':
|
|
63
|
+
this.shape = {
|
|
64
|
+
type: config.type,
|
|
65
|
+
point1: { x: config.point1X, y: config.point1Y },
|
|
66
|
+
point2: { x: config.point2X, y: config.point2Y },
|
|
67
|
+
};
|
|
68
|
+
break;
|
|
69
|
+
case 'capsule':
|
|
70
|
+
this.shape = {
|
|
71
|
+
type: config.type,
|
|
72
|
+
height: config.height,
|
|
73
|
+
radius: config.radius,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
86
76
|
}
|
|
87
77
|
}
|
|
88
78
|
Collider.componentName = 'Collider';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Camera, type CameraConfig } from './camera';
|
|
2
2
|
export { KeyboardControl, type KeyboardControlConfig, } from './keyboard-control';
|
|
3
|
-
export { Collider, type ColliderConfig } from './collider';
|
|
3
|
+
export { Collider, type ColliderConfig, type ColliderShape, type ColliderType, type BoxColliderShape, type CircleColliderShape, type SegmentColliderShape, type CapsuleColliderShape, } from './collider';
|
|
4
4
|
export { RigidBody, type RigidBodyConfig } from './rigid-body';
|
|
5
5
|
export { Animatable, type AnimatableConfig } from './animatable';
|
|
6
6
|
export { Sprite, type SpriteConfig } from './sprite';
|
|
@@ -8,7 +8,7 @@ export { Transform, type TransformConfig } from './transform';
|
|
|
8
8
|
export { MouseControl, type MouseControlConfig } from './mouse-control';
|
|
9
9
|
export { Behaviors, type BehaviorsConfig } from './behaviors';
|
|
10
10
|
export { AudioSource, type AudioSourceConfig } from './audio-source';
|
|
11
|
-
export { Shape, type ShapeConfig } from './shape';
|
|
11
|
+
export { Shape, type ShapeConfig, type ShapeGeometry, type RectangleShapeGeometry, type RoundRectangleShapeGeometry, type CircleShapeGeometry, type EllipseShapeGeometry, type LineShapeGeometry, } from './shape';
|
|
12
12
|
export { PixiView } from './pixi-view';
|
|
13
13
|
export { BitmapText, type BitmapTextConfig } from './bitmap-text';
|
|
14
14
|
export { Mesh, type MeshConfig } from './mesh';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Camera } from './camera';
|
|
2
2
|
export { KeyboardControl, } from './keyboard-control';
|
|
3
|
-
export { Collider } from './collider';
|
|
3
|
+
export { Collider, } from './collider';
|
|
4
4
|
export { RigidBody } from './rigid-body';
|
|
5
5
|
export { Animatable } from './animatable';
|
|
6
6
|
export { Sprite } from './sprite';
|
|
@@ -8,7 +8,7 @@ export { Transform } from './transform';
|
|
|
8
8
|
export { MouseControl } from './mouse-control';
|
|
9
9
|
export { Behaviors } from './behaviors';
|
|
10
10
|
export { AudioSource } from './audio-source';
|
|
11
|
-
export { Shape } from './shape';
|
|
11
|
+
export { Shape, } from './shape';
|
|
12
12
|
export { PixiView } from './pixi-view';
|
|
13
13
|
export { BitmapText } from './bitmap-text';
|
|
14
14
|
export { Mesh } from './mesh';
|
|
@@ -56,36 +56,5 @@ export class KeyboardControl extends Component {
|
|
|
56
56
|
return acc;
|
|
57
57
|
}, {});
|
|
58
58
|
}
|
|
59
|
-
clone() {
|
|
60
|
-
return new KeyboardControl({
|
|
61
|
-
inputEventBindings: Object.keys(this.inputEventBindings).reduce((acc, inputEvent) => {
|
|
62
|
-
const { pressed, released } = this.inputEventBindings[inputEvent];
|
|
63
|
-
if (pressed !== undefined) {
|
|
64
|
-
acc.push({
|
|
65
|
-
key: inputEvent,
|
|
66
|
-
eventType: pressed.eventType,
|
|
67
|
-
pressed: true,
|
|
68
|
-
keepEmit: pressed.keepEmit,
|
|
69
|
-
attrs: Object.keys(pressed.attrs).map((name) => ({
|
|
70
|
-
name,
|
|
71
|
-
value: pressed.attrs[name],
|
|
72
|
-
})),
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
if (released !== undefined) {
|
|
76
|
-
acc.push({
|
|
77
|
-
key: inputEvent,
|
|
78
|
-
eventType: released.eventType,
|
|
79
|
-
pressed: false,
|
|
80
|
-
attrs: Object.keys(released.attrs).map((name) => ({
|
|
81
|
-
name,
|
|
82
|
-
value: released.attrs[name],
|
|
83
|
-
})),
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return acc;
|
|
87
|
-
}, []),
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
59
|
}
|
|
91
60
|
KeyboardControl.componentName = 'KeyboardControl';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Mesh as PixiMesh } from 'pixi.js';
|
|
2
2
|
import { Component } from '../../../engine/component';
|
|
3
|
+
import type { Point } from '../../../engine/math-lib';
|
|
3
4
|
import { type BlendingMode } from '../../types/view';
|
|
4
5
|
interface RenderData {
|
|
5
6
|
view: PixiMesh;
|
|
@@ -19,7 +20,8 @@ export interface MeshConfig {
|
|
|
19
20
|
flipX: boolean;
|
|
20
21
|
flipY: boolean;
|
|
21
22
|
sortingLayer: string;
|
|
22
|
-
|
|
23
|
+
sortOffsetX: number;
|
|
24
|
+
sortOffsetY: number;
|
|
23
25
|
color: string;
|
|
24
26
|
blending: BlendingMode;
|
|
25
27
|
opacity: number;
|
|
@@ -46,7 +48,8 @@ export interface MeshConfig {
|
|
|
46
48
|
* flipX: false,
|
|
47
49
|
* flipY: false,
|
|
48
50
|
* sortingLayer: 'units',
|
|
49
|
-
*
|
|
51
|
+
* sortOffsetX: 0,
|
|
52
|
+
* sortOffsetY: 0,
|
|
50
53
|
* color: '#ffffff',
|
|
51
54
|
* blending: 'normal',
|
|
52
55
|
* opacity: 1,
|
|
@@ -84,7 +87,7 @@ export declare class Mesh extends Component {
|
|
|
84
87
|
/** Sorting layer name for rendering order */
|
|
85
88
|
sortingLayer: string;
|
|
86
89
|
/** Center point for sorting calculations */
|
|
87
|
-
|
|
90
|
+
sortOffset: Point;
|
|
88
91
|
/** Current frame to render */
|
|
89
92
|
currentFrame: number;
|
|
90
93
|
/** Color tint applied to the mesh */
|
|
@@ -103,5 +106,4 @@ export declare class Mesh extends Component {
|
|
|
103
106
|
* @param config - Configuration for the sprite
|
|
104
107
|
*/
|
|
105
108
|
constructor(config: MeshConfig);
|
|
106
|
-
clone(): Mesh;
|
|
107
109
|
}
|
|
@@ -19,7 +19,8 @@ import { Component } from '../../../engine/component';
|
|
|
19
19
|
* flipX: false,
|
|
20
20
|
* flipY: false,
|
|
21
21
|
* sortingLayer: 'units',
|
|
22
|
-
*
|
|
22
|
+
* sortOffsetX: 0,
|
|
23
|
+
* sortOffsetY: 0,
|
|
23
24
|
* color: '#ffffff',
|
|
24
25
|
* blending: 'normal',
|
|
25
26
|
* opacity: 1,
|
|
@@ -57,7 +58,7 @@ export class Mesh extends Component {
|
|
|
57
58
|
/** Sorting layer name for rendering order */
|
|
58
59
|
sortingLayer;
|
|
59
60
|
/** Center point for sorting calculations */
|
|
60
|
-
|
|
61
|
+
sortOffset;
|
|
61
62
|
/** Current frame to render */
|
|
62
63
|
currentFrame;
|
|
63
64
|
/** Color tint applied to the mesh */
|
|
@@ -86,30 +87,13 @@ export class Mesh extends Component {
|
|
|
86
87
|
this.flipY = config.flipY;
|
|
87
88
|
this.disabled = config.disabled;
|
|
88
89
|
this.sortingLayer = config.sortingLayer;
|
|
89
|
-
this.
|
|
90
|
+
this.sortOffset = { x: config.sortOffsetX, y: config.sortOffsetY };
|
|
90
91
|
this.color = config.color ?? '#ffffff';
|
|
91
92
|
this.blending = config.blending ?? 'normal';
|
|
92
93
|
this.opacity = config.opacity ?? 1;
|
|
93
|
-
this.material = config.material
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return new Mesh({
|
|
97
|
-
src: this.src,
|
|
98
|
-
width: this.width,
|
|
99
|
-
height: this.height,
|
|
100
|
-
slice: this.slice,
|
|
101
|
-
flipX: this.flipX,
|
|
102
|
-
flipY: this.flipY,
|
|
103
|
-
disabled: this.disabled,
|
|
104
|
-
sortingLayer: this.sortingLayer,
|
|
105
|
-
sortCenter: this.sortCenter.slice(0),
|
|
106
|
-
color: this.color,
|
|
107
|
-
blending: this.blending,
|
|
108
|
-
opacity: this.opacity,
|
|
109
|
-
material: this.material
|
|
110
|
-
? { name: this.material.name, options: { ...this.material.options } }
|
|
111
|
-
: undefined,
|
|
112
|
-
});
|
|
94
|
+
this.material = config.material
|
|
95
|
+
? { name: config.material.name, options: { ...config.material.options } }
|
|
96
|
+
: undefined;
|
|
113
97
|
}
|
|
114
98
|
}
|
|
115
99
|
Mesh.componentName = 'Mesh';
|
|
@@ -76,24 +76,5 @@ export class MouseControl extends Component {
|
|
|
76
76
|
return acc;
|
|
77
77
|
}, {});
|
|
78
78
|
}
|
|
79
|
-
clone() {
|
|
80
|
-
return new MouseControl({
|
|
81
|
-
inputEventBindings: Object.keys(this.inputEventBindings).reduce((acc, inputEvent) => {
|
|
82
|
-
const buttonBinds = this.inputEventBindings[inputEvent];
|
|
83
|
-
Object.keys(buttonBinds).forEach((button) => {
|
|
84
|
-
acc.push({
|
|
85
|
-
event: inputEvent,
|
|
86
|
-
button: Number(button),
|
|
87
|
-
eventType: buttonBinds[button].eventType,
|
|
88
|
-
attrs: Object.keys(buttonBinds[button].attrs).map((name) => ({
|
|
89
|
-
name,
|
|
90
|
-
value: buttonBinds[button].attrs[name],
|
|
91
|
-
})),
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
return acc;
|
|
95
|
-
}, []),
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
79
|
}
|
|
99
80
|
MouseControl.componentName = 'MouseControl';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { ViewContainer } from 'pixi.js';
|
|
2
2
|
import { Component } from '../../../engine/component';
|
|
3
|
+
import type { Point } from '../../../engine/math-lib';
|
|
3
4
|
interface RenderData {
|
|
4
5
|
view: ViewContainer;
|
|
5
6
|
}
|
|
6
7
|
export interface PixiViewConfig {
|
|
7
8
|
createView: () => ViewContainer;
|
|
8
9
|
sortingLayer: string;
|
|
9
|
-
|
|
10
|
+
sortOffsetX: number;
|
|
11
|
+
sortOffsetY: number;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* PixiView component for rendering a view.
|
|
@@ -27,7 +29,8 @@ export interface PixiViewConfig {
|
|
|
27
29
|
* return graphics;
|
|
28
30
|
* },
|
|
29
31
|
* sortingLayer: 'units',
|
|
30
|
-
*
|
|
32
|
+
* sortOffsetX: 0,
|
|
33
|
+
* sortOffsetY: 0,
|
|
31
34
|
* });
|
|
32
35
|
*
|
|
33
36
|
* // Add to actor
|
|
@@ -42,7 +45,7 @@ export declare class PixiView extends Component {
|
|
|
42
45
|
/** Sorting layer of the pixi view */
|
|
43
46
|
sortingLayer: string;
|
|
44
47
|
/** Center point of the pixi view */
|
|
45
|
-
|
|
48
|
+
sortOffset: Point;
|
|
46
49
|
/** Internal rendering data */
|
|
47
50
|
renderData?: RenderData;
|
|
48
51
|
/**
|
|
@@ -53,6 +56,5 @@ export declare class PixiView extends Component {
|
|
|
53
56
|
constructor(config: PixiViewConfig);
|
|
54
57
|
/** Get the pixi.js view. It's only available after the actor with this component is added to a scene */
|
|
55
58
|
get view(): ViewContainer | undefined;
|
|
56
|
-
clone(): PixiView;
|
|
57
59
|
}
|
|
58
60
|
export {};
|