@woosh/meep-engine 2.118.6 → 2.118.7

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 CHANGED
@@ -54429,22 +54429,29 @@ class Color {
54429
54429
  /**
54430
54430
  *
54431
54431
  * @param {Color} input
54432
- * @param {Color} output
54432
+ * @param {Color} [output]
54433
+ * @returns {Color}
54433
54434
  */
54434
- static from_linear_to_sRGB(input, output) {
54435
+ static from_linear_to_sRGB(input, output=new Color()) {
54436
+
54435
54437
  linear_to_sRGB(output, 0, input, 0);
54438
+
54439
+ return output;
54436
54440
  }
54437
54441
 
54438
54442
  /**
54439
54443
  *
54440
54444
  * @param {Color} input
54441
- * @param {Color} output
54445
+ * @param {Color} [output]
54446
+ * @returns {Color}
54442
54447
  */
54443
- static from_sRGB_to_linear(input, output) {
54448
+ static from_sRGB_to_linear(input, output = new Color()) {
54444
54449
  sRGB_to_linear(output, 0, input, 0);
54450
+
54451
+ return output;
54445
54452
  }
54446
54453
  }
54447
-
54454
+ ex;
54448
54455
  /**
54449
54456
  * @deprecated use {@link Color#toArray} instead
54450
54457
  * @readonly
@@ -114200,7 +114207,7 @@ class LightSystem extends AbstractContextSystem {
114200
114207
  }
114201
114208
 
114202
114209
  if (settings.preAllocateLightsAmbient !== undefined) {
114203
- this.__three_light_cache.reserve(LightType.POINT, settings.preAllocateLightsAmbient);
114210
+ this.__three_light_cache.reserve(LightType.AMBIENT, settings.preAllocateLightsAmbient);
114204
114211
  }
114205
114212
  }
114206
114213