excalibur 0.33.0-alpha.255 → 0.33.0-alpha.258
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/esm/collision/detection/dynamic-tree.d.ts +6 -6
- package/build/esm/director/director.d.ts +7 -7
- package/build/esm/excalibur.development.js +116 -79
- package/build/esm/excalibur.js +116 -79
- package/build/esm/excalibur.min.development.js +92 -80
- package/build/esm/excalibur.min.js +92 -80
- package/build/esm/graphics/context/excalibur-graphics-context-2d-canvas.d.ts +3 -2
- package/build/esm/graphics/context/excalibur-graphics-context-webgl.d.ts +2 -2
- package/build/esm/graphics/context/excalibur-graphics-context.d.ts +2 -2
- package/build/esm/graphics/context/material.d.ts +4 -4
- package/build/esm/graphics/context/shader-pipeline/shader-pass.d.ts +3 -3
- package/build/esm/graphics/context/shader.d.ts +1 -1
- package/build/esm/graphics/filtering.d.ts +1 -1
- package/build/esm/graphics/font-text-instance.d.ts +3 -3
- package/build/esm/graphics/font.d.ts +1 -1
- package/build/esm/graphics/graphics-component.d.ts +5 -5
- package/build/esm/graphics/image-source.d.ts +1 -1
- package/build/esm/graphics/post-processor/shader-pipeline-post-processor.d.ts +1 -1
- package/build/esm/graphics/sprite-font.d.ts +3 -3
- package/build/esm/resources/sound/sound-manager.d.ts +1 -1
- package/build/esm/scene.d.ts +1 -1
- package/build/esm/util/log.d.ts +1 -1
- package/build/esm/util/serializer.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@ import type { DynamicTreeConfig } from '../physics-config';
|
|
|
8
8
|
* Dynamic Tree Node used for tracking bounds within the tree
|
|
9
9
|
*/
|
|
10
10
|
export declare class TreeNode<T> {
|
|
11
|
-
parent
|
|
12
|
-
left
|
|
13
|
-
right
|
|
11
|
+
parent: TreeNode<T> | null;
|
|
12
|
+
left: TreeNode<T> | null;
|
|
13
|
+
right: TreeNode<T> | null;
|
|
14
14
|
bounds: BoundingBox;
|
|
15
15
|
height: number;
|
|
16
|
-
data
|
|
17
|
-
constructor(parent?: TreeNode<T> |
|
|
16
|
+
data: T | null;
|
|
17
|
+
constructor(parent?: TreeNode<T> | null);
|
|
18
18
|
isLeaf(): boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface ColliderProxy<T> {
|
|
@@ -32,7 +32,7 @@ export interface ColliderProxy<T> {
|
|
|
32
32
|
export declare class DynamicTree<TProxy extends ColliderProxy<Entity>> {
|
|
33
33
|
private _config;
|
|
34
34
|
worldBounds: BoundingBox;
|
|
35
|
-
root
|
|
35
|
+
root: TreeNode<TProxy> | null;
|
|
36
36
|
nodes: Record<number, TreeNode<TProxy>>;
|
|
37
37
|
constructor(_config: Required<DynamicTreeConfig>, worldBounds?: BoundingBox);
|
|
38
38
|
/**
|
|
@@ -69,11 +69,11 @@ export interface GoToOptions<TActivationData = any> {
|
|
|
69
69
|
/**
|
|
70
70
|
* Optionally supply destination scene "in" transition, this will override any previously defined transition
|
|
71
71
|
*/
|
|
72
|
-
destinationIn?: Transition;
|
|
72
|
+
destinationIn?: Transition | null;
|
|
73
73
|
/**
|
|
74
74
|
* Optionally supply source scene "out" transition, this will override any previously defined transition
|
|
75
75
|
*/
|
|
76
|
-
sourceOut?: Transition;
|
|
76
|
+
sourceOut?: Transition | null;
|
|
77
77
|
/**
|
|
78
78
|
* Optionally supply a different loader for the destination scene, this will override any previously defined loader
|
|
79
79
|
*/
|
|
@@ -91,8 +91,8 @@ export declare class Director<TKnownScenes extends string = any> {
|
|
|
91
91
|
private _engine;
|
|
92
92
|
events: EventEmitter<DirectorEvents>;
|
|
93
93
|
private _logger;
|
|
94
|
-
private _deferredGoto
|
|
95
|
-
private _deferredTransition
|
|
94
|
+
private _deferredGoto;
|
|
95
|
+
private _deferredTransition;
|
|
96
96
|
private _initialized;
|
|
97
97
|
/**
|
|
98
98
|
* Current scene's name
|
|
@@ -105,7 +105,7 @@ export declare class Director<TKnownScenes extends string = any> {
|
|
|
105
105
|
/**
|
|
106
106
|
* Current transition if any
|
|
107
107
|
*/
|
|
108
|
-
currentTransition
|
|
108
|
+
currentTransition: Transition | null;
|
|
109
109
|
/**
|
|
110
110
|
* All registered scenes in Excalibur
|
|
111
111
|
*/
|
|
@@ -155,7 +155,7 @@ export declare class Director<TKnownScenes extends string = any> {
|
|
|
155
155
|
* Returns a scene by name if it exists, might be the constructor and not the instance of a scene
|
|
156
156
|
* @param name
|
|
157
157
|
*/
|
|
158
|
-
getSceneDefinition(name?: string): Scene | SceneConstructor |
|
|
158
|
+
getSceneDefinition(name?: string): Scene | SceneConstructor | null;
|
|
159
159
|
/**
|
|
160
160
|
* Returns the name of the registered scene, null if none can be found
|
|
161
161
|
* @param scene
|
|
@@ -192,7 +192,7 @@ export declare class Director<TKnownScenes extends string = any> {
|
|
|
192
192
|
* This will call any constructors that were given as a definition
|
|
193
193
|
* @param scene
|
|
194
194
|
*/
|
|
195
|
-
getSceneInstance(scene: string): Scene |
|
|
195
|
+
getSceneInstance(scene: string): Scene | null;
|
|
196
196
|
/**
|
|
197
197
|
* Triggers scene loading if has not already been loaded
|
|
198
198
|
* @param scene
|