@woosh/meep-engine 2.113.15 → 2.113.16
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 +16 -2
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +16 -2
- package/package.json +1 -1
- package/src/core/collection/table/RowFirstTable.d.ts +2 -2
- package/src/core/collection/table/RowFirstTable.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTable.js +30 -8
- package/src/core/color/Color.d.ts +5 -1
- package/src/core/color/Color.d.ts.map +1 -1
- package/src/core/color/Color.js +16 -2
package/build/meep.cjs
CHANGED
|
@@ -53733,7 +53733,7 @@ class Color {
|
|
|
53733
53733
|
this.b = b;
|
|
53734
53734
|
|
|
53735
53735
|
/**
|
|
53736
|
-
* Alpha channel
|
|
53736
|
+
* Alpha channel (transparency)
|
|
53737
53737
|
* Value from 0 to 1
|
|
53738
53738
|
* @type {number}
|
|
53739
53739
|
*/
|
|
@@ -54230,6 +54230,20 @@ class Color {
|
|
|
54230
54230
|
return destination;
|
|
54231
54231
|
}
|
|
54232
54232
|
|
|
54233
|
+
/**
|
|
54234
|
+
*
|
|
54235
|
+
* @param {number[]|Float32Array} source
|
|
54236
|
+
* @param {number} [offset]
|
|
54237
|
+
*/
|
|
54238
|
+
fromArray(source, offset = 0) {
|
|
54239
|
+
const r = source[offset + 0];
|
|
54240
|
+
const g = source[offset + 1];
|
|
54241
|
+
const b = source[offset + 2];
|
|
54242
|
+
const a = source[offset + 3];
|
|
54243
|
+
|
|
54244
|
+
this.set(r, g, b, a);
|
|
54245
|
+
}
|
|
54246
|
+
|
|
54233
54247
|
|
|
54234
54248
|
/**
|
|
54235
54249
|
*
|
|
@@ -54345,7 +54359,7 @@ class Color {
|
|
|
54345
54359
|
}
|
|
54346
54360
|
|
|
54347
54361
|
/**
|
|
54348
|
-
*
|
|
54362
|
+
* @deprecated use {@link Color#toArray} instead
|
|
54349
54363
|
* @readonly
|
|
54350
54364
|
*/
|
|
54351
54365
|
Color.prototype.writeToArray = Color.prototype.toArray;
|