@woosh/meep-engine 2.47.2 → 2.47.3
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/package.json
CHANGED
|
@@ -228,6 +228,12 @@ export class NodeInstance {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
clearParameters(){
|
|
232
|
+
for (const key in this.parameters) {
|
|
233
|
+
this.deleteParameter(key);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
231
237
|
/**
|
|
232
238
|
*
|
|
233
239
|
* @param {NodeDescription} node
|
|
@@ -247,8 +253,9 @@ export class NodeInstance {
|
|
|
247
253
|
});
|
|
248
254
|
|
|
249
255
|
//clear parameters
|
|
250
|
-
this.
|
|
256
|
+
this.clearParameters();
|
|
251
257
|
|
|
258
|
+
// TODO address parameters in NodeDescription as well
|
|
252
259
|
//populate parameter defaults
|
|
253
260
|
node.parameters.forEach(pd => {
|
|
254
261
|
this.parameters[pd.id] = pd.defaultValue;
|