@deck.gl/core 9.2.8 → 9.2.9

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
@@ -3,7 +3,7 @@
3
3
  "description": "deck.gl core library",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "9.2.8",
6
+ "version": "9.2.9",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -51,12 +51,12 @@
51
51
  "@math.gl/sun": "^4.1.0",
52
52
  "@math.gl/types": "^4.1.0",
53
53
  "@math.gl/web-mercator": "^4.1.0",
54
- "@probe.gl/env": "^4.1.0",
55
- "@probe.gl/log": "^4.1.0",
56
- "@probe.gl/stats": "^4.1.0",
54
+ "@probe.gl/env": "^4.1.1",
55
+ "@probe.gl/log": "^4.1.1",
56
+ "@probe.gl/stats": "^4.1.1",
57
57
  "@types/offscreencanvas": "^2019.6.4",
58
58
  "gl-matrix": "^3.0.0",
59
59
  "mjolnir.js": "^3.0.0"
60
60
  },
61
- "gitHead": "3c54db674548a7a0d18c4d572689f455b3532441"
61
+ "gitHead": "b0e908d0c51316514a44221fcdb30b777c09d118"
62
62
  }
@@ -102,7 +102,7 @@ export type DataColumnOptions<Options> = Options &
102
102
  /** Internal API, use `type` instead */
103
103
  logicalType?: LogicalDataType;
104
104
  isIndexed?: boolean;
105
- defaultValue?: number | number[];
105
+ defaultValue?: number | Readonly<number[]>;
106
106
  };
107
107
 
108
108
  export type DataColumnSettings<Options> = DataColumnOptions<Options> & {
@@ -53,14 +53,18 @@ export type Accessor<In, Out> = Out | AccessorFunction<In, Out>;
53
53
  /** A position in the format of `[lng, lat, alt?]` or `[x, y, z?]` depending on the coordinate system.
54
54
  * See https://deck.gl/docs/developer-guide/coordinate-systems#positions
55
55
  */
56
- export type Position = [number, number] | [number, number, number] | Float32Array | Float64Array;
56
+ export type Position =
57
+ | Readonly<[number, number]>
58
+ | Readonly<[number, number, number]>
59
+ | Readonly<Float32Array>
60
+ | Readonly<Float64Array>;
57
61
 
58
62
  /** A color in the format of `[r, g, b, a?]` */
59
63
  export type Color =
60
- | [number, number, number]
61
- | [number, number, number, number]
62
- | Uint8Array
63
- | Uint8ClampedArray;
64
+ | Readonly<[number, number, number]>
65
+ | Readonly<[number, number, number, number]>
66
+ | Readonly<Uint8Array>
67
+ | Readonly<Uint8ClampedArray>;
64
68
 
65
69
  export type Material = LightingModuleSettings['material'];
66
70