ol 7.0.0-dev.1659596410474 → 7.0.0-dev.1659654682842
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 +1 -1
- package/webgl/Buffer.d.ts +1 -1
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +2 -5
package/package.json
CHANGED
package/webgl/Buffer.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare class WebGLArrayBuffer {
|
|
|
62
62
|
*/
|
|
63
63
|
ofSize(size: number): void;
|
|
64
64
|
/**
|
|
65
|
-
* Populates the buffer with an array of the given size
|
|
65
|
+
* Populates the buffer with an array of the given size.
|
|
66
66
|
* @param {Array<number>} array Numerical array
|
|
67
67
|
*/
|
|
68
68
|
fromArray(array: Array<number>): void;
|
package/webgl/Buffer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Buffer.d.ts","sourceRoot":"","sources":["Buffer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Buffer.d.ts","sourceRoot":"","sources":["Buffer.js"],"names":[],"mappings":"AA2HA;;;;GAIG;AACH,2CAHW,MAAM,GACL,uBAAuB,GAAC,sBAAsB,CAWzD;;;;;0BA1HS,MAAM;;;;;;;;;;AAQhB;;;;;;;;;;;;;;;GAeG;AACH;IACE;;;;OAIG;IACH,kBAJW,MAAM,kCAwBhB;IAnBC;;;OAGG;IACH,cAAiB;IAEjB;;;OAGG;IACH,aAAgB;IAIhB;;;OAGG;IACH,cAA0E;IAG5E;;;OAGG;IACH,aAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,iBAFW,MAAM,MAAM,CAAC,QAIvB;IAED;;;;OAIG;IACH,wBAHW,WAAW,QAKrB;IAED;;OAEG;IACH,WAFY,MAAM,CAIjB;IAED;;;OAGG;IACH,YAFY,YAAY,GAAC,WAAW,CAInC;IAED;;OAEG;IACH,YAFY,MAAM,CAIjB;IAED;;;OAGG;IACH,WAFY,MAAM,CAIjB;CACF"}
|
package/webgl/Buffer.js
CHANGED
|
@@ -74,14 +74,11 @@ class WebGLArrayBuffer {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Populates the buffer with an array of the given size
|
|
77
|
+
* Populates the buffer with an array of the given size.
|
|
78
78
|
* @param {Array<number>} array Numerical array
|
|
79
79
|
*/
|
|
80
80
|
fromArray(array) {
|
|
81
|
-
|
|
82
|
-
this.array = arrayClass.from
|
|
83
|
-
? arrayClass.from(array)
|
|
84
|
-
: new arrayClass(array);
|
|
81
|
+
this.array = getArrayClassForType(this.type).from(array);
|
|
85
82
|
}
|
|
86
83
|
|
|
87
84
|
/**
|