@woosh/meep-engine 2.47.11 → 2.47.12
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
|
@@ -184,10 +184,23 @@ export class NodeInstance {
|
|
|
184
184
|
|
|
185
185
|
parameters[id] = value;
|
|
186
186
|
|
|
187
|
+
|
|
187
188
|
if (old_value === undefined) {
|
|
188
189
|
this.on.parameterAdded.send2(id, value);
|
|
189
190
|
}
|
|
190
191
|
|
|
192
|
+
// perform .equals check if available
|
|
193
|
+
if (
|
|
194
|
+
value !== undefined
|
|
195
|
+
&& old_value !== undefined
|
|
196
|
+
&& typeof value === "object"
|
|
197
|
+
&& typeof value.equals === "function"
|
|
198
|
+
&& value.equals(old_value)
|
|
199
|
+
) {
|
|
200
|
+
// parameter value has not changed
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
|
|
191
204
|
this.on.parameterChanged.send3(id, value, old_value);
|
|
192
205
|
}
|
|
193
206
|
|
|
@@ -228,7 +241,7 @@ export class NodeInstance {
|
|
|
228
241
|
}
|
|
229
242
|
}
|
|
230
243
|
|
|
231
|
-
clearParameters(){
|
|
244
|
+
clearParameters() {
|
|
232
245
|
for (const key in this.parameters) {
|
|
233
246
|
this.deleteParameter(key);
|
|
234
247
|
}
|