@woosh/meep-engine 2.85.0 → 2.85.1
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 +23 -6
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +23 -6
- package/package.json +1 -1
- package/src/core/cache/LoadingCache.js +11 -10
- package/src/core/cache/LoadingCache.spec.js +37 -36
- package/src/engine/Engine.d.ts +9 -8
- package/src/engine/Engine.js +24 -21
- package/src/engine/knowledge/database/StaticKnowledgeDatabase.js +20 -6
package/build/meep.cjs
CHANGED
|
@@ -91076,7 +91076,21 @@ class StaticKnowledgeDatabase {
|
|
|
91076
91076
|
* @private
|
|
91077
91077
|
*/
|
|
91078
91078
|
__specs = [];
|
|
91079
|
-
|
|
91079
|
+
|
|
91080
|
+
/**
|
|
91081
|
+
*
|
|
91082
|
+
* @type {boolean}
|
|
91083
|
+
*/
|
|
91084
|
+
#validation_enabled = false;
|
|
91085
|
+
|
|
91086
|
+
/**
|
|
91087
|
+
*
|
|
91088
|
+
* @param {boolean} v
|
|
91089
|
+
*/
|
|
91090
|
+
set validation_enabled(v) {
|
|
91091
|
+
this.#validation_enabled = v;
|
|
91092
|
+
}
|
|
91093
|
+
|
|
91080
91094
|
|
|
91081
91095
|
/**
|
|
91082
91096
|
* Reset database, drop all table data
|
|
@@ -91319,7 +91333,7 @@ class StaticKnowledgeDatabase {
|
|
|
91319
91333
|
return Promise.all(promises).then(() => {
|
|
91320
91334
|
let p = this.link(am, executor);
|
|
91321
91335
|
|
|
91322
|
-
if (
|
|
91336
|
+
if (this.#validation_enabled) {
|
|
91323
91337
|
p = p.then(() => this.validate(executor));
|
|
91324
91338
|
}
|
|
91325
91339
|
|
|
@@ -103166,14 +103180,16 @@ class Engine {
|
|
|
103166
103180
|
*
|
|
103167
103181
|
* @param {EnginePlatform} platform
|
|
103168
103182
|
* @param {EntityManager} [entityManager]
|
|
103169
|
-
* @param enableGraphics
|
|
103170
|
-
* @param enableAudio
|
|
103183
|
+
* @param {boolean} [enableGraphics]
|
|
103184
|
+
* @param {boolean} [enableAudio]
|
|
103185
|
+
* @param {boolean} [validation]
|
|
103171
103186
|
* @constructor
|
|
103172
103187
|
*/
|
|
103173
103188
|
constructor(platform, {
|
|
103174
103189
|
entityManager,
|
|
103175
103190
|
enableGraphics = true,
|
|
103176
|
-
enableAudio = true
|
|
103191
|
+
enableAudio = true,
|
|
103192
|
+
validation = true
|
|
103177
103193
|
} = {}) {
|
|
103178
103194
|
|
|
103179
103195
|
/**
|
|
@@ -103187,6 +103203,7 @@ class Engine {
|
|
|
103187
103203
|
* @type {StaticKnowledgeDatabase}
|
|
103188
103204
|
*/
|
|
103189
103205
|
this.staticKnowledge = new StaticKnowledgeDatabase();
|
|
103206
|
+
this.staticKnowledge.validation_enabled = validation;
|
|
103190
103207
|
|
|
103191
103208
|
/**
|
|
103192
103209
|
*
|
|
@@ -103580,7 +103597,7 @@ class Engine {
|
|
|
103580
103597
|
requestAnimationFrame(this.#animation_frame);
|
|
103581
103598
|
|
|
103582
103599
|
//start simulation
|
|
103583
|
-
this.ticker.start({maxTimeout: 200});
|
|
103600
|
+
this.ticker.start({ maxTimeout: 200 });
|
|
103584
103601
|
//self.uiController.init(self);
|
|
103585
103602
|
|
|
103586
103603
|
//load options
|