@woosh/meep-engine 2.46.34 → 2.46.36
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 +8 -4
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +8 -4
- package/package.json +1 -1
- package/src/core/geom/3d/plane/orient3d_fast.js +2 -2
- package/src/core/model/node-graph/NodeGraph.js +4 -0
- package/src/core/model/node-graph/node/NodeDescription.js +55 -4
- package/src/engine/graphics/texture/sampler/Sampler2D.js +7 -3
- package/src/engine/intelligence/behavior/SelectorBehavior.js +1 -1
package/build/meep.cjs
CHANGED
|
@@ -48167,6 +48167,10 @@ class Sampler2D {
|
|
|
48167
48167
|
throw new Error("data was undefined");
|
|
48168
48168
|
}
|
|
48169
48169
|
|
|
48170
|
+
if (data.length < width * height * itemSize) {
|
|
48171
|
+
throw new Error(`Buffer underflow, data.length(=${data.length}) is too small. Expected at least ${width * height * itemSize}`);
|
|
48172
|
+
}
|
|
48173
|
+
|
|
48170
48174
|
/**
|
|
48171
48175
|
*
|
|
48172
48176
|
* @type {Number}
|
|
@@ -48210,9 +48214,9 @@ class Sampler2D {
|
|
|
48210
48214
|
computeMax(channel = 0) {
|
|
48211
48215
|
const itemSize = this.itemSize;
|
|
48212
48216
|
|
|
48213
|
-
assert.
|
|
48214
|
-
assert.
|
|
48215
|
-
assert.
|
|
48217
|
+
assert.isNumber(channel, "channel");
|
|
48218
|
+
assert.isNonNegativeInteger(channel , 'channel');
|
|
48219
|
+
assert.lessThan(channel, itemSize, `channel must be less than itemSize(=${itemSize}), was ${channel}`);
|
|
48216
48220
|
|
|
48217
48221
|
const data = this.data;
|
|
48218
48222
|
|
|
@@ -125753,7 +125757,7 @@ class SelectorBehavior extends CompositeBehavior {
|
|
|
125753
125757
|
this.__currentBehaviourIndex = 0;
|
|
125754
125758
|
this.__currentBehaviour = children[0];
|
|
125755
125759
|
|
|
125756
|
-
this.__currentBehaviour.initialize();
|
|
125760
|
+
this.__currentBehaviour.initialize(this.context);
|
|
125757
125761
|
|
|
125758
125762
|
} else {
|
|
125759
125763
|
// no children
|