@woosh/meep-engine 2.59.4 → 2.59.6
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/meep.cjs +12 -12
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +12 -12
- package/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.js +1 -1
- package/package.json +1 -1
- package/src/core/collection/list/List.js +2 -2
- package/src/core/debug/matchers/DescribeAs.js +2 -2
- package/src/core/debug/matchers/IsIn.js +4 -1
- package/src/core/debug/matchers/matchers.js +1 -1
- package/src/core/events/signal/Signal.js +1 -1
- package/src/core/primitives/strings/prefixTree/PrefixTree.js +2 -2
- package/src/core/process/buildPromiseChain.js +1 -1
- package/src/core/process/worker/OnDemandWorkerManager.js +1 -1
- package/src/core/process/worker/WorkerProxy.js +1 -1
- package/src/core/process/worker/extractTransferables.js +1 -1
- package/src/engine/asset/loaders/material/computeTextureEquality.js +2 -2
- package/src/engine/ecs/Entity.d.ts +1 -1
- package/src/engine/ecs/Entity.js +1 -1
- package/src/engine/ecs/EntityBlueprint.js +1 -1
- package/src/engine/ecs/EntityComponentDataset.js +2 -2
- package/src/engine/ecs/System.js +1 -1
- package/src/engine/graphics/ecs/animation/animator/graph/definition/serialization/readAnimationGraphDefinitionFromJSON.js +4 -4
- package/src/engine/graphics/ecs/mesh-v2/sample/prototypeShadedGeometry.js +3 -3
- package/src/engine/graphics/particles/node-based/simulation/GLSLSimulationShader.js +1 -1
- package/src/engine/graphics/particles/node-based/simulation/TransformFeedback.js +1 -1
- package/src/engine/input/ecs/components/InputController.js +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.js +1 -1
package/build/meep.cjs
CHANGED
|
@@ -766,7 +766,7 @@ const dispatch_stack = [];
|
|
|
766
766
|
let dispatch_stack_top = 0;
|
|
767
767
|
|
|
768
768
|
/**
|
|
769
|
-
* Signal is a type of event bus. You can subscribe to events using {@link add
|
|
769
|
+
* Signal is a type of event bus. You can subscribe to events using {@link add} method and dispatch using sendN method where N is the number of arguments you wish to pass
|
|
770
770
|
* Signal is different from a normal event bus in that 1 signal corresponds to 1 event type. For example, in HTML you have `addEventListener` which lets you subscribe to any kind of event, let's use "mousedown" as a reference. Using a Signal you would instead have a signal corresponding to "mousedown" and dispatch this signal only for this event.
|
|
771
771
|
* @example `const mouseDown = new Signal<MouseEvent>(); mouseDown.send1(myMouseEvent);`
|
|
772
772
|
*/
|
|
@@ -62753,8 +62753,8 @@ class List {
|
|
|
62753
62753
|
}
|
|
62754
62754
|
|
|
62755
62755
|
/**
|
|
62756
|
-
*
|
|
62757
|
-
* @param {[]} json
|
|
62756
|
+
* @template J
|
|
62757
|
+
* @param {J[]} json
|
|
62758
62758
|
* @param {function} constructor
|
|
62759
62759
|
*/
|
|
62760
62760
|
fromJSON(json, constructor) {
|
|
@@ -65112,7 +65112,7 @@ class WorkerProxy {
|
|
|
65112
65112
|
/**
|
|
65113
65113
|
* @template T
|
|
65114
65114
|
* @param {number} name
|
|
65115
|
-
* @param {
|
|
65115
|
+
* @param {Array} args
|
|
65116
65116
|
* @return {Promise<T>}
|
|
65117
65117
|
*/
|
|
65118
65118
|
$submitRequest(name, args) {
|
|
@@ -69420,7 +69420,7 @@ class System {
|
|
|
69420
69420
|
|
|
69421
69421
|
|
|
69422
69422
|
/**
|
|
69423
|
-
* @returns {
|
|
69423
|
+
* @returns {Array} Component classes
|
|
69424
69424
|
*/
|
|
69425
69425
|
get referenced_components() {
|
|
69426
69426
|
const result = [];
|
|
@@ -71585,7 +71585,7 @@ class OnDemandWorkerManager {
|
|
|
71585
71585
|
/**
|
|
71586
71586
|
* @template T
|
|
71587
71587
|
* @param {string} name
|
|
71588
|
-
* @param {
|
|
71588
|
+
* @param {Array} [parameters]
|
|
71589
71589
|
* @return {Promise<T>}
|
|
71590
71590
|
*/
|
|
71591
71591
|
request(name, parameters) {
|
|
@@ -74823,7 +74823,7 @@ class Entity {
|
|
|
74823
74823
|
* @returns {Entity}
|
|
74824
74824
|
*/
|
|
74825
74825
|
add(componentInstance) {
|
|
74826
|
-
if (componentInstance === undefined) {
|
|
74826
|
+
if (componentInstance === undefined || componentInstance === null) {
|
|
74827
74827
|
throw new Error(`Can not add ${componentInstance} to Entity`);
|
|
74828
74828
|
}
|
|
74829
74829
|
|
|
@@ -77112,8 +77112,8 @@ function textureImagesEqual(a, b) {
|
|
|
77112
77112
|
|
|
77113
77113
|
/**
|
|
77114
77114
|
*
|
|
77115
|
-
* @param {
|
|
77116
|
-
* @param {
|
|
77115
|
+
* @param {Array} a
|
|
77116
|
+
* @param {Array} b
|
|
77117
77117
|
* @returns {boolean}
|
|
77118
77118
|
*/
|
|
77119
77119
|
function textureMipChainEqual(a, b) {
|
|
@@ -93049,8 +93049,8 @@ class EntityComponentDataset {
|
|
|
93049
93049
|
/**
|
|
93050
93050
|
* Convenience method for retrieving a collection of components for a given entity
|
|
93051
93051
|
* @param {number} entity ID of the entity
|
|
93052
|
-
* @param {
|
|
93053
|
-
* @returns {
|
|
93052
|
+
* @param {Array} componentClasses Classes of components to extract
|
|
93053
|
+
* @returns {Array}
|
|
93054
93054
|
*/
|
|
93055
93055
|
getComponents(entity, componentClasses) {
|
|
93056
93056
|
assert.ok(this.entityExists(entity), `Entity ${entity} doesn't exist`);
|
|
@@ -110346,7 +110346,7 @@ class InputController {
|
|
|
110346
110346
|
|
|
110347
110347
|
/**
|
|
110348
110348
|
*
|
|
110349
|
-
* @param {
|
|
110349
|
+
* @param {Array} bindings
|
|
110350
110350
|
*/
|
|
110351
110351
|
static from(bindings) {
|
|
110352
110352
|
const ic = new InputController();
|