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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "7.0.0-dev.1659596410474",
3
+ "version": "7.0.0-dev.1659654682842",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
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 (all values will be zeroes).
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;
@@ -1 +1 @@
1
- {"version":3,"file":"Buffer.d.ts","sourceRoot":"","sources":["Buffer.js"],"names":[],"mappings":"AA8HA;;;;GAIG;AACH,2CAHW,MAAM,GACL,uBAAuB,GAAC,sBAAsB,CAWzD;;;;;0BA7HS,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,QAOvB;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"}
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 (all values will be zeroes).
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
- const arrayClass = getArrayClassForType(this.type);
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
  /**