@navaramap/engine 0.0.4 → 0.0.6

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/navara_wasm.js CHANGED
@@ -64,91 +64,6 @@ export class Aabb {
64
64
  }
65
65
  if (Symbol.dispose) Aabb.prototype[Symbol.dispose] = Aabb.prototype.free;
66
66
 
67
- export class B3dmLayerDescription {
68
- __destroy_into_raw() {
69
- const ptr = this.__wbg_ptr;
70
- this.__wbg_ptr = 0;
71
- B3dmLayerDescriptionFinalization.unregister(this);
72
- return ptr;
73
- }
74
- free() {
75
- const ptr = this.__destroy_into_raw();
76
- wasm.__wbg_b3dmlayerdescription_free(ptr, 0);
77
- }
78
- /**
79
- * @returns {string | undefined}
80
- */
81
- get crs() {
82
- const ret = wasm.__wbg_get_b3dmlayerdescription_crs(this.__wbg_ptr);
83
- let v1;
84
- if (ret[0] !== 0) {
85
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
86
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
87
- }
88
- return v1;
89
- }
90
- /**
91
- * @returns {any}
92
- */
93
- get data() {
94
- const ret = wasm.__wbg_get_b3dmlayerdescription_data(this.__wbg_ptr);
95
- return ret;
96
- }
97
- /**
98
- * @returns {ModelMaterial | undefined}
99
- */
100
- get model() {
101
- const ret = wasm.__wbg_get_b3dmlayerdescription_model(this.__wbg_ptr);
102
- return ret === 0 ? undefined : ModelMaterial.__wrap(ret);
103
- }
104
- /**
105
- * @returns {string | undefined}
106
- */
107
- get type() {
108
- const ret = wasm.__wbg_get_b3dmlayerdescription_type(this.__wbg_ptr);
109
- let v1;
110
- if (ret[0] !== 0) {
111
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
112
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
113
- }
114
- return v1;
115
- }
116
- /**
117
- * @param {string | null} [arg0]
118
- */
119
- set crs(arg0) {
120
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
121
- var len0 = WASM_VECTOR_LEN;
122
- wasm.__wbg_set_b3dmlayerdescription_crs(this.__wbg_ptr, ptr0, len0);
123
- }
124
- /**
125
- * @param {any} arg0
126
- */
127
- set data(arg0) {
128
- wasm.__wbg_set_b3dmlayerdescription_data(this.__wbg_ptr, arg0);
129
- }
130
- /**
131
- * @param {ModelMaterial | null} [arg0]
132
- */
133
- set model(arg0) {
134
- let ptr0 = 0;
135
- if (!isLikeNone(arg0)) {
136
- _assertClass(arg0, ModelMaterial);
137
- ptr0 = arg0.__destroy_into_raw();
138
- }
139
- wasm.__wbg_set_b3dmlayerdescription_model(this.__wbg_ptr, ptr0);
140
- }
141
- /**
142
- * @param {string | null} [arg0]
143
- */
144
- set type(arg0) {
145
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
146
- var len0 = WASM_VECTOR_LEN;
147
- wasm.__wbg_set_b3dmlayerdescription_type(this.__wbg_ptr, ptr0, len0);
148
- }
149
- }
150
- if (Symbol.dispose) B3dmLayerDescription.prototype[Symbol.dispose] = B3dmLayerDescription.prototype.free;
151
-
152
67
  export class BatchPropResult {
153
68
  static __wrap(ptr) {
154
69
  const obj = Object.create(BatchPropResult.prototype);
@@ -1248,91 +1163,6 @@ export const CameraStatusType = Object.freeze({
1248
1163
  MoveEnd: 5, "5": "MoveEnd",
1249
1164
  });
1250
1165
 
1251
- export class Cesium3dTilesLayerDescription {
1252
- __destroy_into_raw() {
1253
- const ptr = this.__wbg_ptr;
1254
- this.__wbg_ptr = 0;
1255
- Cesium3dTilesLayerDescriptionFinalization.unregister(this);
1256
- return ptr;
1257
- }
1258
- free() {
1259
- const ptr = this.__destroy_into_raw();
1260
- wasm.__wbg_cesium3dtileslayerdescription_free(ptr, 0);
1261
- }
1262
- /**
1263
- * @returns {string | undefined}
1264
- */
1265
- get crs() {
1266
- const ret = wasm.__wbg_get_cesium3dtileslayerdescription_crs(this.__wbg_ptr);
1267
- let v1;
1268
- if (ret[0] !== 0) {
1269
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
1270
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1271
- }
1272
- return v1;
1273
- }
1274
- /**
1275
- * @returns {any}
1276
- */
1277
- get data() {
1278
- const ret = wasm.__wbg_get_cesium3dtileslayerdescription_data(this.__wbg_ptr);
1279
- return ret;
1280
- }
1281
- /**
1282
- * @returns {ModelMaterial | undefined}
1283
- */
1284
- get model() {
1285
- const ret = wasm.__wbg_get_cesium3dtileslayerdescription_model(this.__wbg_ptr);
1286
- return ret === 0 ? undefined : ModelMaterial.__wrap(ret);
1287
- }
1288
- /**
1289
- * @returns {string | undefined}
1290
- */
1291
- get type() {
1292
- const ret = wasm.__wbg_get_cesium3dtileslayerdescription_type(this.__wbg_ptr);
1293
- let v1;
1294
- if (ret[0] !== 0) {
1295
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
1296
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1297
- }
1298
- return v1;
1299
- }
1300
- /**
1301
- * @param {string | null} [arg0]
1302
- */
1303
- set crs(arg0) {
1304
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1305
- var len0 = WASM_VECTOR_LEN;
1306
- wasm.__wbg_set_cesium3dtileslayerdescription_crs(this.__wbg_ptr, ptr0, len0);
1307
- }
1308
- /**
1309
- * @param {any} arg0
1310
- */
1311
- set data(arg0) {
1312
- wasm.__wbg_set_cesium3dtileslayerdescription_data(this.__wbg_ptr, arg0);
1313
- }
1314
- /**
1315
- * @param {ModelMaterial | null} [arg0]
1316
- */
1317
- set model(arg0) {
1318
- let ptr0 = 0;
1319
- if (!isLikeNone(arg0)) {
1320
- _assertClass(arg0, ModelMaterial);
1321
- ptr0 = arg0.__destroy_into_raw();
1322
- }
1323
- wasm.__wbg_set_cesium3dtileslayerdescription_model(this.__wbg_ptr, ptr0);
1324
- }
1325
- /**
1326
- * @param {string | null} [arg0]
1327
- */
1328
- set type(arg0) {
1329
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1330
- var len0 = WASM_VECTOR_LEN;
1331
- wasm.__wbg_set_cesium3dtileslayerdescription_type(this.__wbg_ptr, ptr0, len0);
1332
- }
1333
- }
1334
- if (Symbol.dispose) Cesium3dTilesLayerDescription.prototype[Symbol.dispose] = Cesium3dTilesLayerDescription.prototype.free;
1335
-
1336
1166
  export class CompiledExpression {
1337
1167
  __destroy_into_raw() {
1338
1168
  const ptr = this.__wbg_ptr;
@@ -4922,38 +4752,22 @@ export class FloatAttribute {
4922
4752
  }
4923
4753
  if (Symbol.dispose) FloatAttribute.prototype[Symbol.dispose] = FloatAttribute.prototype.free;
4924
4754
 
4925
- /**
4926
- * GeoJSON layer description for configuring feature rendering.
4927
- *
4928
- * **Note**: Model appearance is intentionally not supported for GeoJSON layers.
4929
- * The batched feature pipeline requires per-batch coordinate transforms (model matrices)
4930
- * and animation support, which are incompatible with the current GeoJSON batching approach.
4931
- * For 3D model rendering at geographic coordinates, use a mesh description (e.g. `GLTFModelDesc`)
4932
- * instead.
4933
- */
4934
- export class GeoJsonLayerDescription {
4755
+ export class GeoJsonSourceDescription {
4935
4756
  __destroy_into_raw() {
4936
4757
  const ptr = this.__wbg_ptr;
4937
4758
  this.__wbg_ptr = 0;
4938
- GeoJsonLayerDescriptionFinalization.unregister(this);
4759
+ GeoJsonSourceDescriptionFinalization.unregister(this);
4939
4760
  return ptr;
4940
4761
  }
4941
4762
  free() {
4942
4763
  const ptr = this.__destroy_into_raw();
4943
- wasm.__wbg_geojsonlayerdescription_free(ptr, 0);
4944
- }
4945
- /**
4946
- * @returns {BillboardMaterial | undefined}
4947
- */
4948
- get billboard() {
4949
- const ret = wasm.__wbg_get_geojsonlayerdescription_billboard(this.__wbg_ptr);
4950
- return ret === 0 ? undefined : BillboardMaterial.__wrap(ret);
4764
+ wasm.__wbg_geojsonsourcedescription_free(ptr, 0);
4951
4765
  }
4952
4766
  /**
4953
4767
  * @returns {string | undefined}
4954
4768
  */
4955
4769
  get crs() {
4956
- const ret = wasm.__wbg_get_geojsonlayerdescription_crs(this.__wbg_ptr);
4770
+ const ret = wasm.__wbg_get_geojsonsourcedescription_crs(this.__wbg_ptr);
4957
4771
  let v1;
4958
4772
  if (ret[0] !== 0) {
4959
4773
  v1 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -4962,55 +4776,27 @@ export class GeoJsonLayerDescription {
4962
4776
  return v1;
4963
4777
  }
4964
4778
  /**
4779
+ * Inline GeoJSON document (`FeatureCollection` / `Feature` / `Geometry`).
4780
+ * Used when `url` is not given.
4965
4781
  * @returns {any}
4966
4782
  */
4967
4783
  get data() {
4968
- const ret = wasm.__wbg_get_geojsonlayerdescription_data(this.__wbg_ptr);
4784
+ const ret = wasm.__wbg_get_geojsonsourcedescription_data(this.__wbg_ptr);
4969
4785
  return ret;
4970
4786
  }
4971
4787
  /**
4972
- * Per-layer horizon dynamic-SSE relaxation strength for the tiled render
4973
- * path (`0.0` off … `1.0` raster-equivalent). Omit for a content-based
4974
- * default.
4975
- * @returns {number | undefined}
4976
- */
4977
- get dynamicSseScale() {
4978
- const ret = wasm.__wbg_get_geojsonlayerdescription_dynamicSseScale(this.__wbg_ptr);
4979
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
4980
- }
4981
- /**
4982
- * @returns {PointMaterial | undefined}
4983
- */
4984
- get point() {
4985
- const ret = wasm.__wbg_get_geojsonlayerdescription_point(this.__wbg_ptr);
4986
- return ret === 0 ? undefined : PointMaterial.__wrap(ret);
4987
- }
4988
- /**
4989
- * @returns {PolygonMaterial | undefined}
4990
- */
4991
- get polygon() {
4992
- const ret = wasm.__wbg_get_geojsonlayerdescription_polygon(this.__wbg_ptr);
4993
- return ret === 0 ? undefined : PolygonMaterial.__wrap(ret);
4994
- }
4995
- /**
4996
- * @returns {PolylineMaterial | undefined}
4997
- */
4998
- get polyline() {
4999
- const ret = wasm.__wbg_get_geojsonlayerdescription_polyline(this.__wbg_ptr);
5000
- return ret === 0 ? undefined : PolylineMaterial.__wrap(ret);
5001
- }
5002
- /**
5003
- * @returns {TextMaterial | undefined}
4788
+ * Whether to build a tiled spatial index (GeoJSON-VT) for large datasets.
4789
+ * @returns {boolean | undefined}
5004
4790
  */
5005
- get text() {
5006
- const ret = wasm.__wbg_get_geojsonlayerdescription_text(this.__wbg_ptr);
5007
- return ret === 0 ? undefined : TextMaterial.__wrap(ret);
4791
+ get tiled() {
4792
+ const ret = wasm.__wbg_get_geojsonsourcedescription_tiled(this.__wbg_ptr);
4793
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
5008
4794
  }
5009
4795
  /**
5010
4796
  * @returns {string | undefined}
5011
4797
  */
5012
4798
  get type() {
5013
- const ret = wasm.__wbg_get_geojsonlayerdescription_type(this.__wbg_ptr);
4799
+ const ret = wasm.__wbg_get_geojsonsourcedescription_type(this.__wbg_ptr);
5014
4800
  let v1;
5015
4801
  if (ret[0] !== 0) {
5016
4802
  v1 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -5019,15 +4805,18 @@ export class GeoJsonLayerDescription {
5019
4805
  return v1;
5020
4806
  }
5021
4807
  /**
5022
- * @param {BillboardMaterial | null} [arg0]
4808
+ * URL to fetch the GeoJSON document from. Mutually exclusive with `data`;
4809
+ * like the other sources, the URL is given directly at the top level.
4810
+ * @returns {string | undefined}
5023
4811
  */
5024
- set billboard(arg0) {
5025
- let ptr0 = 0;
5026
- if (!isLikeNone(arg0)) {
5027
- _assertClass(arg0, BillboardMaterial);
5028
- ptr0 = arg0.__destroy_into_raw();
4812
+ get url() {
4813
+ const ret = wasm.__wbg_get_geojsonsourcedescription_url(this.__wbg_ptr);
4814
+ let v1;
4815
+ if (ret[0] !== 0) {
4816
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
4817
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5029
4818
  }
5030
- wasm.__wbg_set_geojsonlayerdescription_billboard(this.__wbg_ptr, ptr0);
4819
+ return v1;
5031
4820
  }
5032
4821
  /**
5033
4822
  * @param {string | null} [arg0]
@@ -5035,184 +4824,40 @@ export class GeoJsonLayerDescription {
5035
4824
  set crs(arg0) {
5036
4825
  var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5037
4826
  var len0 = WASM_VECTOR_LEN;
5038
- wasm.__wbg_set_geojsonlayerdescription_crs(this.__wbg_ptr, ptr0, len0);
4827
+ wasm.__wbg_set_geojsonsourcedescription_crs(this.__wbg_ptr, ptr0, len0);
5039
4828
  }
5040
4829
  /**
4830
+ * Inline GeoJSON document (`FeatureCollection` / `Feature` / `Geometry`).
4831
+ * Used when `url` is not given.
5041
4832
  * @param {any} arg0
5042
4833
  */
5043
4834
  set data(arg0) {
5044
- wasm.__wbg_set_geojsonlayerdescription_data(this.__wbg_ptr, arg0);
4835
+ wasm.__wbg_set_geojsonsourcedescription_data(this.__wbg_ptr, arg0);
5045
4836
  }
5046
4837
  /**
5047
- * Per-layer horizon dynamic-SSE relaxation strength for the tiled render
5048
- * path (`0.0` off … `1.0` raster-equivalent). Omit for a content-based
5049
- * default.
5050
- * @param {number | null} [arg0]
4838
+ * Whether to build a tiled spatial index (GeoJSON-VT) for large datasets.
4839
+ * @param {boolean | null} [arg0]
5051
4840
  */
5052
- set dynamicSseScale(arg0) {
5053
- wasm.__wbg_set_geojsonlayerdescription_dynamicSseScale(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
4841
+ set tiled(arg0) {
4842
+ wasm.__wbg_set_geojsonsourcedescription_tiled(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5054
4843
  }
5055
4844
  /**
5056
- * @param {PointMaterial | null} [arg0]
4845
+ * @param {string | null} [arg0]
5057
4846
  */
5058
- set point(arg0) {
5059
- let ptr0 = 0;
5060
- if (!isLikeNone(arg0)) {
5061
- _assertClass(arg0, PointMaterial);
5062
- ptr0 = arg0.__destroy_into_raw();
5063
- }
5064
- wasm.__wbg_set_geojsonlayerdescription_point(this.__wbg_ptr, ptr0);
4847
+ set type(arg0) {
4848
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4849
+ var len0 = WASM_VECTOR_LEN;
4850
+ wasm.__wbg_set_geojsonsourcedescription_type(this.__wbg_ptr, ptr0, len0);
5065
4851
  }
5066
4852
  /**
5067
- * @param {PolygonMaterial | null} [arg0]
4853
+ * URL to fetch the GeoJSON document from. Mutually exclusive with `data`;
4854
+ * like the other sources, the URL is given directly at the top level.
4855
+ * @param {string | null} [arg0]
5068
4856
  */
5069
- set polygon(arg0) {
5070
- let ptr0 = 0;
5071
- if (!isLikeNone(arg0)) {
5072
- _assertClass(arg0, PolygonMaterial);
5073
- ptr0 = arg0.__destroy_into_raw();
5074
- }
5075
- wasm.__wbg_set_geojsonlayerdescription_polygon(this.__wbg_ptr, ptr0);
5076
- }
5077
- /**
5078
- * @param {PolylineMaterial | null} [arg0]
5079
- */
5080
- set polyline(arg0) {
5081
- let ptr0 = 0;
5082
- if (!isLikeNone(arg0)) {
5083
- _assertClass(arg0, PolylineMaterial);
5084
- ptr0 = arg0.__destroy_into_raw();
5085
- }
5086
- wasm.__wbg_set_geojsonlayerdescription_polyline(this.__wbg_ptr, ptr0);
5087
- }
5088
- /**
5089
- * @param {TextMaterial | null} [arg0]
5090
- */
5091
- set text(arg0) {
5092
- let ptr0 = 0;
5093
- if (!isLikeNone(arg0)) {
5094
- _assertClass(arg0, TextMaterial);
5095
- ptr0 = arg0.__destroy_into_raw();
5096
- }
5097
- wasm.__wbg_set_geojsonlayerdescription_text(this.__wbg_ptr, ptr0);
5098
- }
5099
- /**
5100
- * @param {string | null} [arg0]
5101
- */
5102
- set type(arg0) {
5103
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5104
- var len0 = WASM_VECTOR_LEN;
5105
- wasm.__wbg_set_geojsonlayerdescription_type(this.__wbg_ptr, ptr0, len0);
5106
- }
5107
- }
5108
- if (Symbol.dispose) GeoJsonLayerDescription.prototype[Symbol.dispose] = GeoJsonLayerDescription.prototype.free;
5109
-
5110
- export class GeoJsonSourceDescription {
5111
- __destroy_into_raw() {
5112
- const ptr = this.__wbg_ptr;
5113
- this.__wbg_ptr = 0;
5114
- GeoJsonSourceDescriptionFinalization.unregister(this);
5115
- return ptr;
5116
- }
5117
- free() {
5118
- const ptr = this.__destroy_into_raw();
5119
- wasm.__wbg_geojsonsourcedescription_free(ptr, 0);
5120
- }
5121
- /**
5122
- * @returns {string | undefined}
5123
- */
5124
- get crs() {
5125
- const ret = wasm.__wbg_get_geojsonsourcedescription_crs(this.__wbg_ptr);
5126
- let v1;
5127
- if (ret[0] !== 0) {
5128
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
5129
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5130
- }
5131
- return v1;
5132
- }
5133
- /**
5134
- * Inline GeoJSON document (`FeatureCollection` / `Feature` / `Geometry`).
5135
- * Used when `url` is not given.
5136
- * @returns {any}
5137
- */
5138
- get data() {
5139
- const ret = wasm.__wbg_get_geojsonsourcedescription_data(this.__wbg_ptr);
5140
- return ret;
5141
- }
5142
- /**
5143
- * Whether to build a tiled spatial index (GeoJSON-VT) for large datasets.
5144
- * @returns {boolean | undefined}
5145
- */
5146
- get tiled() {
5147
- const ret = wasm.__wbg_get_geojsonsourcedescription_tiled(this.__wbg_ptr);
5148
- return ret === 0xFFFFFF ? undefined : ret !== 0;
5149
- }
5150
- /**
5151
- * @returns {string | undefined}
5152
- */
5153
- get type() {
5154
- const ret = wasm.__wbg_get_geojsonsourcedescription_type(this.__wbg_ptr);
5155
- let v1;
5156
- if (ret[0] !== 0) {
5157
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
5158
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5159
- }
5160
- return v1;
5161
- }
5162
- /**
5163
- * URL to fetch the GeoJSON document from. Mutually exclusive with `data`;
5164
- * like the other sources, the URL is given directly at the top level.
5165
- * @returns {string | undefined}
5166
- */
5167
- get url() {
5168
- const ret = wasm.__wbg_get_geojsonsourcedescription_url(this.__wbg_ptr);
5169
- let v1;
5170
- if (ret[0] !== 0) {
5171
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
5172
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5173
- }
5174
- return v1;
5175
- }
5176
- /**
5177
- * @param {string | null} [arg0]
5178
- */
5179
- set crs(arg0) {
5180
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5181
- var len0 = WASM_VECTOR_LEN;
5182
- wasm.__wbg_set_geojsonsourcedescription_crs(this.__wbg_ptr, ptr0, len0);
5183
- }
5184
- /**
5185
- * Inline GeoJSON document (`FeatureCollection` / `Feature` / `Geometry`).
5186
- * Used when `url` is not given.
5187
- * @param {any} arg0
5188
- */
5189
- set data(arg0) {
5190
- wasm.__wbg_set_geojsonsourcedescription_data(this.__wbg_ptr, arg0);
5191
- }
5192
- /**
5193
- * Whether to build a tiled spatial index (GeoJSON-VT) for large datasets.
5194
- * @param {boolean | null} [arg0]
5195
- */
5196
- set tiled(arg0) {
5197
- wasm.__wbg_set_geojsonsourcedescription_tiled(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5198
- }
5199
- /**
5200
- * @param {string | null} [arg0]
5201
- */
5202
- set type(arg0) {
5203
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5204
- var len0 = WASM_VECTOR_LEN;
5205
- wasm.__wbg_set_geojsonsourcedescription_type(this.__wbg_ptr, ptr0, len0);
5206
- }
5207
- /**
5208
- * URL to fetch the GeoJSON document from. Mutually exclusive with `data`;
5209
- * like the other sources, the URL is given directly at the top level.
5210
- * @param {string | null} [arg0]
5211
- */
5212
- set url(arg0) {
5213
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5214
- var len0 = WASM_VECTOR_LEN;
5215
- wasm.__wbg_set_geojsonsourcedescription_url(this.__wbg_ptr, ptr0, len0);
4857
+ set url(arg0) {
4858
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4859
+ var len0 = WASM_VECTOR_LEN;
4860
+ wasm.__wbg_set_geojsonsourcedescription_url(this.__wbg_ptr, ptr0, len0);
5216
4861
  }
5217
4862
  }
5218
4863
  if (Symbol.dispose) GeoJsonSourceDescription.prototype[Symbol.dispose] = GeoJsonSourceDescription.prototype.free;
@@ -5738,6 +5383,10 @@ export class LLE {
5738
5383
  }
5739
5384
  if (Symbol.dispose) LLE.prototype[Symbol.dispose] = LLE.prototype.free;
5740
5385
 
5386
+ /**
5387
+ * Minimal discriminator that reads only a layer's `type` tag, so `add_layer`
5388
+ * can route the payload to the matching source-based builder.
5389
+ */
5741
5390
  export class LayerDescription {
5742
5391
  __destroy_into_raw() {
5743
5392
  const ptr = this.__wbg_ptr;
@@ -5753,969 +5402,24 @@ export class LayerDescription {
5753
5402
  * @returns {string | undefined}
5754
5403
  */
5755
5404
  get type() {
5756
- const ret = wasm.__wbg_get_layerdescription_type(this.__wbg_ptr);
5757
- let v1;
5758
- if (ret[0] !== 0) {
5759
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
5760
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5761
- }
5762
- return v1;
5763
- }
5764
- /**
5765
- * @param {string | null} [arg0]
5766
- */
5767
- set type(arg0) {
5768
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5769
- var len0 = WASM_VECTOR_LEN;
5770
- wasm.__wbg_set_layerdescription_type(this.__wbg_ptr, ptr0, len0);
5771
- }
5772
- }
5773
- if (Symbol.dispose) LayerDescription.prototype[Symbol.dispose] = LayerDescription.prototype.free;
5774
-
5775
- export class LayerDescriptionData {
5776
- __destroy_into_raw() {
5777
- const ptr = this.__wbg_ptr;
5778
- this.__wbg_ptr = 0;
5779
- LayerDescriptionDataFinalization.unregister(this);
5780
- return ptr;
5781
- }
5782
- free() {
5783
- const ptr = this.__destroy_into_raw();
5784
- wasm.__wbg_layerdescriptiondata_free(ptr, 0);
5785
- }
5786
- /**
5787
- * @returns {any}
5788
- */
5789
- get data() {
5790
- const ret = wasm.__wbg_get_layerdescriptiondata_data(this.__wbg_ptr);
5791
- return ret;
5792
- }
5793
- /**
5794
- * @param {any} arg0
5795
- */
5796
- set data(arg0) {
5797
- wasm.__wbg_set_layerdescriptiondata_data(this.__wbg_ptr, arg0);
5798
- }
5799
- }
5800
- if (Symbol.dispose) LayerDescriptionData.prototype[Symbol.dispose] = LayerDescriptionData.prototype.free;
5801
-
5802
- export class LayerDescriptionUrl {
5803
- __destroy_into_raw() {
5804
- const ptr = this.__wbg_ptr;
5805
- this.__wbg_ptr = 0;
5806
- LayerDescriptionUrlFinalization.unregister(this);
5807
- return ptr;
5808
- }
5809
- free() {
5810
- const ptr = this.__destroy_into_raw();
5811
- wasm.__wbg_layerdescriptionurl_free(ptr, 0);
5812
- }
5813
- /**
5814
- * @returns {string}
5815
- */
5816
- get url() {
5817
- let deferred1_0;
5818
- let deferred1_1;
5819
- try {
5820
- const ret = wasm.__wbg_get_layerdescriptionurl_url(this.__wbg_ptr);
5821
- deferred1_0 = ret[0];
5822
- deferred1_1 = ret[1];
5823
- return getStringFromWasm0(ret[0], ret[1]);
5824
- } finally {
5825
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5826
- }
5827
- }
5828
- /**
5829
- * @param {string} arg0
5830
- */
5831
- set url(arg0) {
5832
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5833
- const len0 = WASM_VECTOR_LEN;
5834
- wasm.__wbg_set_layerdescriptionurl_url(this.__wbg_ptr, ptr0, len0);
5835
- }
5836
- }
5837
- if (Symbol.dispose) LayerDescriptionUrl.prototype[Symbol.dispose] = LayerDescriptionUrl.prototype.free;
5838
-
5839
- export class LegacyElevationHeatmapMaterial {
5840
- static __wrap(ptr) {
5841
- const obj = Object.create(LegacyElevationHeatmapMaterial.prototype);
5842
- obj.__wbg_ptr = ptr;
5843
- LegacyElevationHeatmapMaterialFinalization.register(obj, obj.__wbg_ptr, obj);
5844
- return obj;
5845
- }
5846
- __destroy_into_raw() {
5847
- const ptr = this.__wbg_ptr;
5848
- this.__wbg_ptr = 0;
5849
- LegacyElevationHeatmapMaterialFinalization.unregister(this);
5850
- return ptr;
5851
- }
5852
- free() {
5853
- const ptr = this.__destroy_into_raw();
5854
- wasm.__wbg_legacyelevationheatmapmaterial_free(ptr, 0);
5855
- }
5856
- /**
5857
- * @returns {ElevationDecoder | undefined}
5858
- */
5859
- get elevationDecoder() {
5860
- const ret = wasm.__wbg_get_legacyelevationheatmapmaterial_elevationDecoder(this.__wbg_ptr);
5861
- return ret === 0 ? undefined : ElevationDecoder.__wrap(ret);
5862
- }
5863
- /**
5864
- * @returns {number | undefined}
5865
- */
5866
- get logBoundary() {
5867
- const ret = wasm.__wbg_get_legacyelevationheatmapmaterial_logBoundary(this.__wbg_ptr);
5868
- return ret[0] === 0 ? undefined : ret[1];
5869
- }
5870
- /**
5871
- * @returns {boolean | undefined}
5872
- */
5873
- get logarithmic() {
5874
- const ret = wasm.__wbg_get_legacyelevationheatmapmaterial_logarithmic(this.__wbg_ptr);
5875
- return ret === 0xFFFFFF ? undefined : ret !== 0;
5876
- }
5877
- /**
5878
- * @returns {number | undefined}
5879
- */
5880
- get maxHeight() {
5881
- const ret = wasm.__wbg_get_legacyelevationheatmapmaterial_maxHeight(this.__wbg_ptr);
5882
- return ret[0] === 0 ? undefined : ret[1];
5883
- }
5884
- /**
5885
- * @returns {number | undefined}
5886
- */
5887
- get minHeight() {
5888
- const ret = wasm.__wbg_get_legacyelevationheatmapmaterial_minHeight(this.__wbg_ptr);
5889
- return ret[0] === 0 ? undefined : ret[1];
5890
- }
5891
- /**
5892
- * @param {ElevationDecoder | null} [arg0]
5893
- */
5894
- set elevationDecoder(arg0) {
5895
- let ptr0 = 0;
5896
- if (!isLikeNone(arg0)) {
5897
- _assertClass(arg0, ElevationDecoder);
5898
- ptr0 = arg0.__destroy_into_raw();
5899
- }
5900
- wasm.__wbg_set_legacyelevationheatmapmaterial_elevationDecoder(this.__wbg_ptr, ptr0);
5901
- }
5902
- /**
5903
- * @param {number | null} [arg0]
5904
- */
5905
- set logBoundary(arg0) {
5906
- wasm.__wbg_set_legacyelevationheatmapmaterial_logBoundary(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
5907
- }
5908
- /**
5909
- * @param {boolean | null} [arg0]
5910
- */
5911
- set logarithmic(arg0) {
5912
- wasm.__wbg_set_legacyelevationheatmapmaterial_logarithmic(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5913
- }
5914
- /**
5915
- * @param {number | null} [arg0]
5916
- */
5917
- set maxHeight(arg0) {
5918
- wasm.__wbg_set_legacyelevationheatmapmaterial_maxHeight(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
5919
- }
5920
- /**
5921
- * @param {number | null} [arg0]
5922
- */
5923
- set minHeight(arg0) {
5924
- wasm.__wbg_set_legacyelevationheatmapmaterial_minHeight(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
5925
- }
5926
- }
5927
- if (Symbol.dispose) LegacyElevationHeatmapMaterial.prototype[Symbol.dispose] = LegacyElevationHeatmapMaterial.prototype.free;
5928
-
5929
- export class LegacyEllipsoidTerrainMaterial {
5930
- static __wrap(ptr) {
5931
- const obj = Object.create(LegacyEllipsoidTerrainMaterial.prototype);
5932
- obj.__wbg_ptr = ptr;
5933
- LegacyEllipsoidTerrainMaterialFinalization.register(obj, obj.__wbg_ptr, obj);
5934
- return obj;
5935
- }
5936
- __destroy_into_raw() {
5937
- const ptr = this.__wbg_ptr;
5938
- this.__wbg_ptr = 0;
5939
- LegacyEllipsoidTerrainMaterialFinalization.unregister(this);
5940
- return ptr;
5941
- }
5942
- free() {
5943
- const ptr = this.__destroy_into_raw();
5944
- wasm.__wbg_legacyellipsoidterrainmaterial_free(ptr, 0);
5945
- }
5946
- /**
5947
- * @returns {boolean | undefined}
5948
- */
5949
- get castShadow() {
5950
- const ret = wasm.__wbg_get_legacyellipsoidterrainmaterial_castShadow(this.__wbg_ptr);
5951
- return ret === 0xFFFFFF ? undefined : ret !== 0;
5952
- }
5953
- /**
5954
- * @returns {number | undefined}
5955
- */
5956
- get maxZoom() {
5957
- const ret = wasm.__wbg_get_legacyellipsoidterrainmaterial_maxZoom(this.__wbg_ptr);
5958
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
5959
- }
5960
- /**
5961
- * @returns {number | undefined}
5962
- */
5963
- get minZoom() {
5964
- const ret = wasm.__wbg_get_legacyellipsoidterrainmaterial_minZoom(this.__wbg_ptr);
5965
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
5966
- }
5967
- /**
5968
- * @returns {boolean | undefined}
5969
- */
5970
- get receiveShadow() {
5971
- const ret = wasm.__wbg_get_legacyellipsoidterrainmaterial_receiveShadow(this.__wbg_ptr);
5972
- return ret === 0xFFFFFF ? undefined : ret !== 0;
5973
- }
5974
- /**
5975
- * @returns {boolean | undefined}
5976
- */
5977
- get showBoundingBox() {
5978
- const ret = wasm.__wbg_get_legacyellipsoidterrainmaterial_showBoundingBox(this.__wbg_ptr);
5979
- return ret === 0xFFFFFF ? undefined : ret !== 0;
5980
- }
5981
- /**
5982
- * @param {boolean | null} [arg0]
5983
- */
5984
- set castShadow(arg0) {
5985
- wasm.__wbg_set_legacyellipsoidterrainmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5986
- }
5987
- /**
5988
- * @param {number | null} [arg0]
5989
- */
5990
- set maxZoom(arg0) {
5991
- wasm.__wbg_set_legacyellipsoidterrainmaterial_maxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
5992
- }
5993
- /**
5994
- * @param {number | null} [arg0]
5995
- */
5996
- set minZoom(arg0) {
5997
- wasm.__wbg_set_legacyellipsoidterrainmaterial_minZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
5998
- }
5999
- /**
6000
- * @param {boolean | null} [arg0]
6001
- */
6002
- set receiveShadow(arg0) {
6003
- wasm.__wbg_set_legacyellipsoidterrainmaterial_receiveShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6004
- }
6005
- /**
6006
- * @param {boolean | null} [arg0]
6007
- */
6008
- set showBoundingBox(arg0) {
6009
- wasm.__wbg_set_legacyellipsoidterrainmaterial_showBoundingBox(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6010
- }
6011
- }
6012
- if (Symbol.dispose) LegacyEllipsoidTerrainMaterial.prototype[Symbol.dispose] = LegacyEllipsoidTerrainMaterial.prototype.free;
6013
-
6014
- export class LegacyHillshadeMaterial {
6015
- static __wrap(ptr) {
6016
- const obj = Object.create(LegacyHillshadeMaterial.prototype);
6017
- obj.__wbg_ptr = ptr;
6018
- LegacyHillshadeMaterialFinalization.register(obj, obj.__wbg_ptr, obj);
6019
- return obj;
6020
- }
6021
- __destroy_into_raw() {
6022
- const ptr = this.__wbg_ptr;
6023
- this.__wbg_ptr = 0;
6024
- LegacyHillshadeMaterialFinalization.unregister(this);
6025
- return ptr;
6026
- }
6027
- free() {
6028
- const ptr = this.__destroy_into_raw();
6029
- wasm.__wbg_legacyhillshadematerial_free(ptr, 0);
6030
- }
6031
- /**
6032
- * @returns {ElevationDecoder | undefined}
6033
- */
6034
- get elevationDecoder() {
6035
- const ret = wasm.__wbg_get_legacyhillshadematerial_elevationDecoder(this.__wbg_ptr);
6036
- return ret === 0 ? undefined : ElevationDecoder.__wrap(ret);
6037
- }
6038
- /**
6039
- * Exaggeration factor for hillshade effect (default: 1.0)
6040
- * @returns {number | undefined}
6041
- */
6042
- get exaggeration() {
6043
- const ret = wasm.__wbg_get_legacyhillshadematerial_exaggeration(this.__wbg_ptr);
6044
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6045
- }
6046
- /**
6047
- * @param {ElevationDecoder | null} [arg0]
6048
- */
6049
- set elevationDecoder(arg0) {
6050
- let ptr0 = 0;
6051
- if (!isLikeNone(arg0)) {
6052
- _assertClass(arg0, ElevationDecoder);
6053
- ptr0 = arg0.__destroy_into_raw();
6054
- }
6055
- wasm.__wbg_set_legacyhillshadematerial_elevationDecoder(this.__wbg_ptr, ptr0);
6056
- }
6057
- /**
6058
- * Exaggeration factor for hillshade effect (default: 1.0)
6059
- * @param {number | null} [arg0]
6060
- */
6061
- set exaggeration(arg0) {
6062
- wasm.__wbg_set_legacyhillshadematerial_exaggeration(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
6063
- }
6064
- }
6065
- if (Symbol.dispose) LegacyHillshadeMaterial.prototype[Symbol.dispose] = LegacyHillshadeMaterial.prototype.free;
6066
-
6067
- export class LegacyQuantizedMeshTerrainMaterial {
6068
- static __wrap(ptr) {
6069
- const obj = Object.create(LegacyQuantizedMeshTerrainMaterial.prototype);
6070
- obj.__wbg_ptr = ptr;
6071
- LegacyQuantizedMeshTerrainMaterialFinalization.register(obj, obj.__wbg_ptr, obj);
6072
- return obj;
6073
- }
6074
- __destroy_into_raw() {
6075
- const ptr = this.__wbg_ptr;
6076
- this.__wbg_ptr = 0;
6077
- LegacyQuantizedMeshTerrainMaterialFinalization.unregister(this);
6078
- return ptr;
6079
- }
6080
- free() {
6081
- const ptr = this.__destroy_into_raw();
6082
- wasm.__wbg_legacyquantizedmeshterrainmaterial_free(ptr, 0);
6083
- }
6084
- /**
6085
- * @returns {boolean | undefined}
6086
- */
6087
- get castShadow() {
6088
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_castShadow(this.__wbg_ptr);
6089
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6090
- }
6091
- /**
6092
- * @returns {boolean | undefined}
6093
- */
6094
- get geographic() {
6095
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_geographic(this.__wbg_ptr);
6096
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6097
- }
6098
- /**
6099
- * @returns {number | undefined}
6100
- */
6101
- get maxZoom() {
6102
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_maxZoom(this.__wbg_ptr);
6103
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6104
- }
6105
- /**
6106
- * @returns {number | undefined}
6107
- */
6108
- get minZoom() {
6109
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_minZoom(this.__wbg_ptr);
6110
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6111
- }
6112
- /**
6113
- * @returns {number | undefined}
6114
- */
6115
- get overscaledMaxZoom() {
6116
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_overscaledMaxZoom(this.__wbg_ptr);
6117
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6118
- }
6119
- /**
6120
- * @returns {boolean | undefined}
6121
- */
6122
- get receiveShadow() {
6123
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_receiveShadow(this.__wbg_ptr);
6124
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6125
- }
6126
- /**
6127
- * @returns {boolean | undefined}
6128
- */
6129
- get requestVertexNormals() {
6130
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_requestVertexNormals(this.__wbg_ptr);
6131
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6132
- }
6133
- /**
6134
- * @returns {boolean | undefined}
6135
- */
6136
- get requestWaterMask() {
6137
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_requestWaterMask(this.__wbg_ptr);
6138
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6139
- }
6140
- /**
6141
- * @returns {boolean | undefined}
6142
- */
6143
- get showBoundingBox() {
6144
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_showBoundingBox(this.__wbg_ptr);
6145
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6146
- }
6147
- /**
6148
- * @returns {boolean | undefined}
6149
- */
6150
- get show() {
6151
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_show(this.__wbg_ptr);
6152
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6153
- }
6154
- /**
6155
- * @returns {number | undefined}
6156
- */
6157
- get skirtExaggeration() {
6158
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_skirtExaggeration(this.__wbg_ptr);
6159
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6160
- }
6161
- /**
6162
- * @returns {boolean | undefined}
6163
- */
6164
- get skirt() {
6165
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_skirt(this.__wbg_ptr);
6166
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6167
- }
6168
- /**
6169
- * @returns {boolean | undefined}
6170
- */
6171
- get tms() {
6172
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_tms(this.__wbg_ptr);
6173
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6174
- }
6175
- /**
6176
- * @returns {string | undefined}
6177
- */
6178
- get token() {
6179
- const ret = wasm.__wbg_get_legacyquantizedmeshterrainmaterial_token(this.__wbg_ptr);
6180
- let v1;
6181
- if (ret[0] !== 0) {
6182
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
6183
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
6184
- }
6185
- return v1;
6186
- }
6187
- /**
6188
- * @param {boolean | null} [arg0]
6189
- */
6190
- set castShadow(arg0) {
6191
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6192
- }
6193
- /**
6194
- * @param {boolean | null} [arg0]
6195
- */
6196
- set geographic(arg0) {
6197
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_geographic(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6198
- }
6199
- /**
6200
- * @param {number | null} [arg0]
6201
- */
6202
- set maxZoom(arg0) {
6203
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_maxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6204
- }
6205
- /**
6206
- * @param {number | null} [arg0]
6207
- */
6208
- set minZoom(arg0) {
6209
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_minZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6210
- }
6211
- /**
6212
- * @param {number | null} [arg0]
6213
- */
6214
- set overscaledMaxZoom(arg0) {
6215
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_overscaledMaxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6216
- }
6217
- /**
6218
- * @param {boolean | null} [arg0]
6219
- */
6220
- set receiveShadow(arg0) {
6221
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_receiveShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6222
- }
6223
- /**
6224
- * @param {boolean | null} [arg0]
6225
- */
6226
- set requestVertexNormals(arg0) {
6227
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_requestVertexNormals(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6228
- }
6229
- /**
6230
- * @param {boolean | null} [arg0]
6231
- */
6232
- set requestWaterMask(arg0) {
6233
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_requestWaterMask(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6234
- }
6235
- /**
6236
- * @param {boolean | null} [arg0]
6237
- */
6238
- set showBoundingBox(arg0) {
6239
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_showBoundingBox(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6240
- }
6241
- /**
6242
- * @param {boolean | null} [arg0]
6243
- */
6244
- set show(arg0) {
6245
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_show(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6246
- }
6247
- /**
6248
- * @param {number | null} [arg0]
6249
- */
6250
- set skirtExaggeration(arg0) {
6251
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_skirtExaggeration(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
6252
- }
6253
- /**
6254
- * @param {boolean | null} [arg0]
6255
- */
6256
- set skirt(arg0) {
6257
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_skirt(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6258
- }
6259
- /**
6260
- * @param {boolean | null} [arg0]
6261
- */
6262
- set tms(arg0) {
6263
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_tms(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6264
- }
6265
- /**
6266
- * @param {string | null} [arg0]
6267
- */
6268
- set token(arg0) {
6269
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6270
- var len0 = WASM_VECTOR_LEN;
6271
- wasm.__wbg_set_legacyquantizedmeshterrainmaterial_token(this.__wbg_ptr, ptr0, len0);
6272
- }
6273
- }
6274
- if (Symbol.dispose) LegacyQuantizedMeshTerrainMaterial.prototype[Symbol.dispose] = LegacyQuantizedMeshTerrainMaterial.prototype.free;
6275
-
6276
- export class LegacyRasterTerrainMaterial {
6277
- static __wrap(ptr) {
6278
- const obj = Object.create(LegacyRasterTerrainMaterial.prototype);
6279
- obj.__wbg_ptr = ptr;
6280
- LegacyRasterTerrainMaterialFinalization.register(obj, obj.__wbg_ptr, obj);
6281
- return obj;
6282
- }
6283
- __destroy_into_raw() {
6284
- const ptr = this.__wbg_ptr;
6285
- this.__wbg_ptr = 0;
6286
- LegacyRasterTerrainMaterialFinalization.unregister(this);
6287
- return ptr;
6288
- }
6289
- free() {
6290
- const ptr = this.__destroy_into_raw();
6291
- wasm.__wbg_legacyrasterterrainmaterial_free(ptr, 0);
6292
- }
6293
- /**
6294
- * @returns {boolean | undefined}
6295
- */
6296
- get castShadow() {
6297
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_castShadow(this.__wbg_ptr);
6298
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6299
- }
6300
- /**
6301
- * @returns {ElevationDecoder | undefined}
6302
- */
6303
- get elevationDecoder() {
6304
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_elevationDecoder(this.__wbg_ptr);
6305
- return ret === 0 ? undefined : ElevationDecoder.__wrap(ret);
6306
- }
6307
- /**
6308
- * @returns {number | undefined}
6309
- */
6310
- get maxZoom() {
6311
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_maxZoom(this.__wbg_ptr);
6312
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6313
- }
6314
- /**
6315
- * @returns {number | undefined}
6316
- */
6317
- get minZoom() {
6318
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_minZoom(this.__wbg_ptr);
6319
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6320
- }
6321
- /**
6322
- * @returns {number | undefined}
6323
- */
6324
- get overscaledMaxZoom() {
6325
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_overscaledMaxZoom(this.__wbg_ptr);
6326
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6327
- }
6328
- /**
6329
- * @returns {boolean | undefined}
6330
- */
6331
- get receiveShadow() {
6332
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_receiveShadow(this.__wbg_ptr);
6333
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6334
- }
6335
- /**
6336
- * @returns {boolean | undefined}
6337
- */
6338
- get showBoundingBox() {
6339
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_showBoundingBox(this.__wbg_ptr);
6340
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6341
- }
6342
- /**
6343
- * @returns {boolean | undefined}
6344
- */
6345
- get show() {
6346
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_show(this.__wbg_ptr);
6347
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6348
- }
6349
- /**
6350
- * @returns {number | undefined}
6351
- */
6352
- get skirtExaggeration() {
6353
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_skirtExaggeration(this.__wbg_ptr);
6354
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6355
- }
6356
- /**
6357
- * @returns {boolean | undefined}
6358
- */
6359
- get skirt() {
6360
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_skirt(this.__wbg_ptr);
6361
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6362
- }
6363
- /**
6364
- * @returns {number | undefined}
6365
- */
6366
- get tileSize() {
6367
- const ret = wasm.__wbg_get_legacyrasterterrainmaterial_tileSize(this.__wbg_ptr);
6368
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6369
- }
6370
- /**
6371
- * @param {boolean | null} [arg0]
6372
- */
6373
- set castShadow(arg0) {
6374
- wasm.__wbg_set_legacyrasterterrainmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6375
- }
6376
- /**
6377
- * @param {ElevationDecoder | null} [arg0]
6378
- */
6379
- set elevationDecoder(arg0) {
6380
- let ptr0 = 0;
6381
- if (!isLikeNone(arg0)) {
6382
- _assertClass(arg0, ElevationDecoder);
6383
- ptr0 = arg0.__destroy_into_raw();
6384
- }
6385
- wasm.__wbg_set_legacyrasterterrainmaterial_elevationDecoder(this.__wbg_ptr, ptr0);
6386
- }
6387
- /**
6388
- * @param {number | null} [arg0]
6389
- */
6390
- set maxZoom(arg0) {
6391
- wasm.__wbg_set_legacyrasterterrainmaterial_maxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6392
- }
6393
- /**
6394
- * @param {number | null} [arg0]
6395
- */
6396
- set minZoom(arg0) {
6397
- wasm.__wbg_set_legacyrasterterrainmaterial_minZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6398
- }
6399
- /**
6400
- * @param {number | null} [arg0]
6401
- */
6402
- set overscaledMaxZoom(arg0) {
6403
- wasm.__wbg_set_legacyrasterterrainmaterial_overscaledMaxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6404
- }
6405
- /**
6406
- * @param {boolean | null} [arg0]
6407
- */
6408
- set receiveShadow(arg0) {
6409
- wasm.__wbg_set_legacyrasterterrainmaterial_receiveShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6410
- }
6411
- /**
6412
- * @param {boolean | null} [arg0]
6413
- */
6414
- set showBoundingBox(arg0) {
6415
- wasm.__wbg_set_legacyrasterterrainmaterial_showBoundingBox(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6416
- }
6417
- /**
6418
- * @param {boolean | null} [arg0]
6419
- */
6420
- set show(arg0) {
6421
- wasm.__wbg_set_legacyrasterterrainmaterial_show(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6422
- }
6423
- /**
6424
- * @param {number | null} [arg0]
6425
- */
6426
- set skirtExaggeration(arg0) {
6427
- wasm.__wbg_set_legacyrasterterrainmaterial_skirtExaggeration(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
6428
- }
6429
- /**
6430
- * @param {boolean | null} [arg0]
6431
- */
6432
- set skirt(arg0) {
6433
- wasm.__wbg_set_legacyrasterterrainmaterial_skirt(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6434
- }
6435
- /**
6436
- * @param {number | null} [arg0]
6437
- */
6438
- set tileSize(arg0) {
6439
- wasm.__wbg_set_legacyrasterterrainmaterial_tileSize(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6440
- }
6441
- }
6442
- if (Symbol.dispose) LegacyRasterTerrainMaterial.prototype[Symbol.dispose] = LegacyRasterTerrainMaterial.prototype.free;
6443
-
6444
- export class LegacyRasterTileMaterial {
6445
- static __wrap(ptr) {
6446
- const obj = Object.create(LegacyRasterTileMaterial.prototype);
6447
- obj.__wbg_ptr = ptr;
6448
- LegacyRasterTileMaterialFinalization.register(obj, obj.__wbg_ptr, obj);
6449
- return obj;
6450
- }
6451
- __destroy_into_raw() {
6452
- const ptr = this.__wbg_ptr;
6453
- this.__wbg_ptr = 0;
6454
- LegacyRasterTileMaterialFinalization.unregister(this);
6455
- return ptr;
6456
- }
6457
- free() {
6458
- const ptr = this.__destroy_into_raw();
6459
- wasm.__wbg_legacyrastertilematerial_free(ptr, 0);
6460
- }
6461
- /**
6462
- * @returns {number | undefined}
6463
- */
6464
- get color() {
6465
- const ret = wasm.__wbg_get_legacyrastertilematerial_color(this.__wbg_ptr);
6466
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6467
- }
6468
- /**
6469
- * @returns {number | undefined}
6470
- */
6471
- get maxZoom() {
6472
- const ret = wasm.__wbg_get_legacyrastertilematerial_maxZoom(this.__wbg_ptr);
6473
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6474
- }
6475
- /**
6476
- * @returns {number | undefined}
6477
- */
6478
- get minZoom() {
6479
- const ret = wasm.__wbg_get_legacyrastertilematerial_minZoom(this.__wbg_ptr);
6480
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6481
- }
6482
- /**
6483
- * @returns {number | undefined}
6484
- */
6485
- get opacity() {
6486
- const ret = wasm.__wbg_get_legacyrastertilematerial_opacity(this.__wbg_ptr);
6487
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6488
- }
6489
- /**
6490
- * @returns {number | undefined}
6491
- */
6492
- get overscaledMaxZoom() {
6493
- const ret = wasm.__wbg_get_legacyrastertilematerial_overscaledMaxZoom(this.__wbg_ptr);
6494
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6495
- }
6496
- /**
6497
- * @returns {boolean | undefined}
6498
- */
6499
- get showBoundingBox() {
6500
- const ret = wasm.__wbg_get_legacyrastertilematerial_showBoundingBox(this.__wbg_ptr);
6501
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6502
- }
6503
- /**
6504
- * @returns {boolean | undefined}
6505
- */
6506
- get show() {
6507
- const ret = wasm.__wbg_get_legacyrastertilematerial_show(this.__wbg_ptr);
6508
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6509
- }
6510
- /**
6511
- * @returns {boolean | undefined}
6512
- */
6513
- get tms() {
6514
- const ret = wasm.__wbg_get_legacyrastertilematerial_tms(this.__wbg_ptr);
6515
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6516
- }
6517
- /**
6518
- * @param {number | null} [arg0]
6519
- */
6520
- set color(arg0) {
6521
- wasm.__wbg_set_legacyrastertilematerial_color(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6522
- }
6523
- /**
6524
- * @param {number | null} [arg0]
6525
- */
6526
- set maxZoom(arg0) {
6527
- wasm.__wbg_set_legacyrastertilematerial_maxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6528
- }
6529
- /**
6530
- * @param {number | null} [arg0]
6531
- */
6532
- set minZoom(arg0) {
6533
- wasm.__wbg_set_legacyrastertilematerial_minZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6534
- }
6535
- /**
6536
- * @param {number | null} [arg0]
6537
- */
6538
- set opacity(arg0) {
6539
- wasm.__wbg_set_legacyrastertilematerial_opacity(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
6540
- }
6541
- /**
6542
- * @param {number | null} [arg0]
6543
- */
6544
- set overscaledMaxZoom(arg0) {
6545
- wasm.__wbg_set_legacyrastertilematerial_overscaledMaxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6546
- }
6547
- /**
6548
- * @param {boolean | null} [arg0]
6549
- */
6550
- set showBoundingBox(arg0) {
6551
- wasm.__wbg_set_legacyrastertilematerial_showBoundingBox(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6552
- }
6553
- /**
6554
- * @param {boolean | null} [arg0]
6555
- */
6556
- set show(arg0) {
6557
- wasm.__wbg_set_legacyrastertilematerial_show(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6558
- }
6559
- /**
6560
- * @param {boolean | null} [arg0]
6561
- */
6562
- set tms(arg0) {
6563
- wasm.__wbg_set_legacyrastertilematerial_tms(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6564
- }
6565
- }
6566
- if (Symbol.dispose) LegacyRasterTileMaterial.prototype[Symbol.dispose] = LegacyRasterTileMaterial.prototype.free;
6567
-
6568
- export class LegacyVectorTileMaterial {
6569
- static __wrap(ptr) {
6570
- const obj = Object.create(LegacyVectorTileMaterial.prototype);
6571
- obj.__wbg_ptr = ptr;
6572
- LegacyVectorTileMaterialFinalization.register(obj, obj.__wbg_ptr, obj);
6573
- return obj;
6574
- }
6575
- __destroy_into_raw() {
6576
- const ptr = this.__wbg_ptr;
6577
- this.__wbg_ptr = 0;
6578
- LegacyVectorTileMaterialFinalization.unregister(this);
6579
- return ptr;
6580
- }
6581
- free() {
6582
- const ptr = this.__destroy_into_raw();
6583
- wasm.__wbg_legacyvectortilematerial_free(ptr, 0);
6584
- }
6585
- /**
6586
- * @returns {boolean | undefined}
6587
- */
6588
- get castShadow() {
6589
- const ret = wasm.__wbg_get_legacyvectortilematerial_castShadow(this.__wbg_ptr);
6590
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6591
- }
6592
- /**
6593
- * Per-layer horizon dynamic-SSE relaxation strength (`0.0` off … `1.0`
6594
- * raster-equivalent). Omit for a content-based default.
6595
- * @returns {number | undefined}
6596
- */
6597
- get dynamicSseScale() {
6598
- const ret = wasm.__wbg_get_legacyvectortilematerial_dynamicSseScale(this.__wbg_ptr);
6599
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6600
- }
6601
- /**
6602
- * Sub-layer filter (MapLibre's `source-layer`). This is the only render-side
6603
- * field; the rest is fetch config carried onto the implicit source.
6604
- * @returns {string[] | undefined}
6605
- */
6606
- get layers() {
6607
- const ret = wasm.__wbg_get_legacyvectortilematerial_layers(this.__wbg_ptr);
6608
- let v1;
6609
- if (ret[0] !== 0) {
6610
- v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
6611
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
6612
- }
6613
- return v1;
6614
- }
6615
- /**
6616
- * @returns {number | undefined}
6617
- */
6618
- get maxSse() {
6619
- const ret = wasm.__wbg_get_legacyvectortilematerial_maxSse(this.__wbg_ptr);
6620
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6621
- }
6622
- /**
6623
- * @returns {number | undefined}
6624
- */
6625
- get maxZoom() {
6626
- const ret = wasm.__wbg_get_legacyvectortilematerial_maxZoom(this.__wbg_ptr);
6627
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6628
- }
6629
- /**
6630
- * @returns {number | undefined}
6631
- */
6632
- get minZoom() {
6633
- const ret = wasm.__wbg_get_legacyvectortilematerial_minZoom(this.__wbg_ptr);
6634
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6635
- }
6636
- /**
6637
- * @returns {number | undefined}
6638
- */
6639
- get overscaledMaxZoom() {
6640
- const ret = wasm.__wbg_get_legacyvectortilematerial_overscaledMaxZoom(this.__wbg_ptr);
6641
- return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
6642
- }
6643
- /**
6644
- * @returns {boolean | undefined}
6645
- */
6646
- get receiveShadow() {
6647
- const ret = wasm.__wbg_get_legacyvectortilematerial_receiveShadow(this.__wbg_ptr);
6648
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6649
- }
6650
- /**
6651
- * @returns {boolean | undefined}
6652
- */
6653
- get show() {
6654
- const ret = wasm.__wbg_get_legacyvectortilematerial_show(this.__wbg_ptr);
6655
- return ret === 0xFFFFFF ? undefined : ret !== 0;
6656
- }
6657
- /**
6658
- * @param {boolean | null} [arg0]
6659
- */
6660
- set castShadow(arg0) {
6661
- wasm.__wbg_set_legacyvectortilematerial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6662
- }
6663
- /**
6664
- * Per-layer horizon dynamic-SSE relaxation strength (`0.0` off … `1.0`
6665
- * raster-equivalent). Omit for a content-based default.
6666
- * @param {number | null} [arg0]
6667
- */
6668
- set dynamicSseScale(arg0) {
6669
- wasm.__wbg_set_legacyvectortilematerial_dynamicSseScale(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
6670
- }
6671
- /**
6672
- * Sub-layer filter (MapLibre's `source-layer`). This is the only render-side
6673
- * field; the rest is fetch config carried onto the implicit source.
6674
- * @param {string[] | null} [arg0]
6675
- */
6676
- set layers(arg0) {
6677
- var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
6678
- var len0 = WASM_VECTOR_LEN;
6679
- wasm.__wbg_set_legacyvectortilematerial_layers(this.__wbg_ptr, ptr0, len0);
6680
- }
6681
- /**
6682
- * @param {number | null} [arg0]
6683
- */
6684
- set maxSse(arg0) {
6685
- wasm.__wbg_set_legacyvectortilematerial_maxSse(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
6686
- }
6687
- /**
6688
- * @param {number | null} [arg0]
6689
- */
6690
- set maxZoom(arg0) {
6691
- wasm.__wbg_set_legacyvectortilematerial_maxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6692
- }
6693
- /**
6694
- * @param {number | null} [arg0]
6695
- */
6696
- set minZoom(arg0) {
6697
- wasm.__wbg_set_legacyvectortilematerial_minZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6698
- }
6699
- /**
6700
- * @param {number | null} [arg0]
6701
- */
6702
- set overscaledMaxZoom(arg0) {
6703
- wasm.__wbg_set_legacyvectortilematerial_overscaledMaxZoom(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : (arg0) >>> 0);
6704
- }
6705
- /**
6706
- * @param {boolean | null} [arg0]
6707
- */
6708
- set receiveShadow(arg0) {
6709
- wasm.__wbg_set_legacyvectortilematerial_receiveShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5405
+ const ret = wasm.__wbg_get_layerdescription_type(this.__wbg_ptr);
5406
+ let v1;
5407
+ if (ret[0] !== 0) {
5408
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
5409
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5410
+ }
5411
+ return v1;
6710
5412
  }
6711
5413
  /**
6712
- * @param {boolean | null} [arg0]
5414
+ * @param {string | null} [arg0]
6713
5415
  */
6714
- set show(arg0) {
6715
- wasm.__wbg_set_legacyvectortilematerial_show(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5416
+ set type(arg0) {
5417
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5418
+ var len0 = WASM_VECTOR_LEN;
5419
+ wasm.__wbg_set_layerdescription_type(this.__wbg_ptr, ptr0, len0);
6716
5420
  }
6717
5421
  }
6718
- if (Symbol.dispose) LegacyVectorTileMaterial.prototype[Symbol.dispose] = LegacyVectorTileMaterial.prototype.free;
5422
+ if (Symbol.dispose) LayerDescription.prototype[Symbol.dispose] = LayerDescription.prototype.free;
6719
5423
 
6720
5424
  /**
6721
5425
  * Engine memory usage snapshot for diagnostics. Byte counts are `f64`
@@ -7383,13 +6087,6 @@ export class ModelMaterial {
7383
6087
  const ret = wasm.__wbg_get_modelmaterial_castShadow(this.__wbg_ptr);
7384
6088
  return ret === 0xFFFFFF ? undefined : ret !== 0;
7385
6089
  }
7386
- /**
7387
- * @returns {boolean | undefined}
7388
- */
7389
- get clampToGround() {
7390
- const ret = wasm.__wbg_get_modelmaterial_clampToGround(this.__wbg_ptr);
7391
- return ret === 0xFFFFFF ? undefined : ret !== 0;
7392
- }
7393
6090
  /**
7394
6091
  * @returns {number | undefined}
7395
6092
  */
@@ -7457,6 +6154,16 @@ export class ModelMaterial {
7457
6154
  const ret = wasm.__wbg_get_modelmaterial_ior(this.__wbg_ptr);
7458
6155
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
7459
6156
  }
6157
+ /**
6158
+ * Applies the lighting equation to the color output. When `false` the
6159
+ * material outputs plain albedo (for deferred lighting) while normals and
6160
+ * the shadow G-buffer keep being written.
6161
+ * @returns {boolean | undefined}
6162
+ */
6163
+ get lit() {
6164
+ const ret = wasm.__wbg_get_modelmaterial_lit(this.__wbg_ptr);
6165
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
6166
+ }
7460
6167
  /**
7461
6168
  * @returns {number | undefined}
7462
6169
  */
@@ -7650,12 +6357,6 @@ export class ModelMaterial {
7650
6357
  set castShadow(arg0) {
7651
6358
  wasm.__wbg_set_modelmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
7652
6359
  }
7653
- /**
7654
- * @param {boolean | null} [arg0]
7655
- */
7656
- set clampToGround(arg0) {
7657
- wasm.__wbg_set_modelmaterial_clampToGround(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
7658
- }
7659
6360
  /**
7660
6361
  * @param {number | null} [arg0]
7661
6362
  */
@@ -7712,6 +6413,15 @@ export class ModelMaterial {
7712
6413
  set ior(arg0) {
7713
6414
  wasm.__wbg_set_modelmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
7714
6415
  }
6416
+ /**
6417
+ * Applies the lighting equation to the color output. When `false` the
6418
+ * material outputs plain albedo (for deferred lighting) while normals and
6419
+ * the shadow G-buffer keep being written.
6420
+ * @param {boolean | null} [arg0]
6421
+ */
6422
+ set lit(arg0) {
6423
+ wasm.__wbg_set_modelmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
6424
+ }
7715
6425
  /**
7716
6426
  * @param {number | null} [arg0]
7717
6427
  */
@@ -7967,181 +6677,6 @@ export class ModelMesh {
7967
6677
  }
7968
6678
  if (Symbol.dispose) ModelMesh.prototype[Symbol.dispose] = ModelMesh.prototype.free;
7969
6679
 
7970
- export class MvtLayerDescription {
7971
- __destroy_into_raw() {
7972
- const ptr = this.__wbg_ptr;
7973
- this.__wbg_ptr = 0;
7974
- MvtLayerDescriptionFinalization.unregister(this);
7975
- return ptr;
7976
- }
7977
- free() {
7978
- const ptr = this.__destroy_into_raw();
7979
- wasm.__wbg_mvtlayerdescription_free(ptr, 0);
7980
- }
7981
- /**
7982
- * @returns {BillboardMaterial | undefined}
7983
- */
7984
- get billboard() {
7985
- const ret = wasm.__wbg_get_mvtlayerdescription_billboard(this.__wbg_ptr);
7986
- return ret === 0 ? undefined : BillboardMaterial.__wrap(ret);
7987
- }
7988
- /**
7989
- * @returns {string | undefined}
7990
- */
7991
- get crs() {
7992
- const ret = wasm.__wbg_get_mvtlayerdescription_crs(this.__wbg_ptr);
7993
- let v1;
7994
- if (ret[0] !== 0) {
7995
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
7996
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
7997
- }
7998
- return v1;
7999
- }
8000
- /**
8001
- * @returns {any}
8002
- */
8003
- get data() {
8004
- const ret = wasm.__wbg_get_mvtlayerdescription_data(this.__wbg_ptr);
8005
- return ret;
8006
- }
8007
- /**
8008
- * @returns {PointMaterial | undefined}
8009
- */
8010
- get point() {
8011
- const ret = wasm.__wbg_get_mvtlayerdescription_point(this.__wbg_ptr);
8012
- return ret === 0 ? undefined : PointMaterial.__wrap(ret);
8013
- }
8014
- /**
8015
- * @returns {PolygonMaterial | undefined}
8016
- */
8017
- get polygon() {
8018
- const ret = wasm.__wbg_get_mvtlayerdescription_polygon(this.__wbg_ptr);
8019
- return ret === 0 ? undefined : PolygonMaterial.__wrap(ret);
8020
- }
8021
- /**
8022
- * @returns {PolylineMaterial | undefined}
8023
- */
8024
- get polyline() {
8025
- const ret = wasm.__wbg_get_mvtlayerdescription_polyline(this.__wbg_ptr);
8026
- return ret === 0 ? undefined : PolylineMaterial.__wrap(ret);
8027
- }
8028
- /**
8029
- * @returns {TextMaterial | undefined}
8030
- */
8031
- get text() {
8032
- const ret = wasm.__wbg_get_mvtlayerdescription_text(this.__wbg_ptr);
8033
- return ret === 0 ? undefined : TextMaterial.__wrap(ret);
8034
- }
8035
- /**
8036
- * @returns {string | undefined}
8037
- */
8038
- get type() {
8039
- const ret = wasm.__wbg_get_mvtlayerdescription_type(this.__wbg_ptr);
8040
- let v1;
8041
- if (ret[0] !== 0) {
8042
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
8043
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
8044
- }
8045
- return v1;
8046
- }
8047
- /**
8048
- * @returns {LegacyVectorTileMaterial | undefined}
8049
- */
8050
- get vectorTile() {
8051
- const ret = wasm.__wbg_get_mvtlayerdescription_vectorTile(this.__wbg_ptr);
8052
- return ret === 0 ? undefined : LegacyVectorTileMaterial.__wrap(ret);
8053
- }
8054
- /**
8055
- * @param {BillboardMaterial | null} [arg0]
8056
- */
8057
- set billboard(arg0) {
8058
- let ptr0 = 0;
8059
- if (!isLikeNone(arg0)) {
8060
- _assertClass(arg0, BillboardMaterial);
8061
- ptr0 = arg0.__destroy_into_raw();
8062
- }
8063
- wasm.__wbg_set_mvtlayerdescription_billboard(this.__wbg_ptr, ptr0);
8064
- }
8065
- /**
8066
- * @param {string | null} [arg0]
8067
- */
8068
- set crs(arg0) {
8069
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8070
- var len0 = WASM_VECTOR_LEN;
8071
- wasm.__wbg_set_mvtlayerdescription_crs(this.__wbg_ptr, ptr0, len0);
8072
- }
8073
- /**
8074
- * @param {any} arg0
8075
- */
8076
- set data(arg0) {
8077
- wasm.__wbg_set_mvtlayerdescription_data(this.__wbg_ptr, arg0);
8078
- }
8079
- /**
8080
- * @param {PointMaterial | null} [arg0]
8081
- */
8082
- set point(arg0) {
8083
- let ptr0 = 0;
8084
- if (!isLikeNone(arg0)) {
8085
- _assertClass(arg0, PointMaterial);
8086
- ptr0 = arg0.__destroy_into_raw();
8087
- }
8088
- wasm.__wbg_set_mvtlayerdescription_point(this.__wbg_ptr, ptr0);
8089
- }
8090
- /**
8091
- * @param {PolygonMaterial | null} [arg0]
8092
- */
8093
- set polygon(arg0) {
8094
- let ptr0 = 0;
8095
- if (!isLikeNone(arg0)) {
8096
- _assertClass(arg0, PolygonMaterial);
8097
- ptr0 = arg0.__destroy_into_raw();
8098
- }
8099
- wasm.__wbg_set_mvtlayerdescription_polygon(this.__wbg_ptr, ptr0);
8100
- }
8101
- /**
8102
- * @param {PolylineMaterial | null} [arg0]
8103
- */
8104
- set polyline(arg0) {
8105
- let ptr0 = 0;
8106
- if (!isLikeNone(arg0)) {
8107
- _assertClass(arg0, PolylineMaterial);
8108
- ptr0 = arg0.__destroy_into_raw();
8109
- }
8110
- wasm.__wbg_set_mvtlayerdescription_polyline(this.__wbg_ptr, ptr0);
8111
- }
8112
- /**
8113
- * @param {TextMaterial | null} [arg0]
8114
- */
8115
- set text(arg0) {
8116
- let ptr0 = 0;
8117
- if (!isLikeNone(arg0)) {
8118
- _assertClass(arg0, TextMaterial);
8119
- ptr0 = arg0.__destroy_into_raw();
8120
- }
8121
- wasm.__wbg_set_mvtlayerdescription_text(this.__wbg_ptr, ptr0);
8122
- }
8123
- /**
8124
- * @param {string | null} [arg0]
8125
- */
8126
- set type(arg0) {
8127
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8128
- var len0 = WASM_VECTOR_LEN;
8129
- wasm.__wbg_set_mvtlayerdescription_type(this.__wbg_ptr, ptr0, len0);
8130
- }
8131
- /**
8132
- * @param {LegacyVectorTileMaterial | null} [arg0]
8133
- */
8134
- set vectorTile(arg0) {
8135
- let ptr0 = 0;
8136
- if (!isLikeNone(arg0)) {
8137
- _assertClass(arg0, LegacyVectorTileMaterial);
8138
- ptr0 = arg0.__destroy_into_raw();
8139
- }
8140
- wasm.__wbg_set_mvtlayerdescription_vectorTile(this.__wbg_ptr, ptr0);
8141
- }
8142
- }
8143
- if (Symbol.dispose) MvtLayerDescription.prototype[Symbol.dispose] = MvtLayerDescription.prototype.free;
8144
-
8145
6680
  export class NearFar {
8146
6681
  __destroy_into_raw() {
8147
6682
  const ptr = this.__wbg_ptr;
@@ -8563,123 +7098,38 @@ export class Plane {
8563
7098
  }
8564
7099
  free() {
8565
7100
  const ptr = this.__destroy_into_raw();
8566
- wasm.__wbg_plane_free(ptr, 0);
8567
- }
8568
- /**
8569
- * @returns {number}
8570
- */
8571
- get distance() {
8572
- const ret = wasm.__wbg_get_plane_distance(this.__wbg_ptr);
8573
- return ret;
8574
- }
8575
- /**
8576
- * @returns {Vec3}
8577
- */
8578
- get normal() {
8579
- const ret = wasm.__wbg_get_plane_normal(this.__wbg_ptr);
8580
- return Vec3.__wrap(ret);
8581
- }
8582
- /**
8583
- * @param {number} arg0
8584
- */
8585
- set distance(arg0) {
8586
- wasm.__wbg_set_plane_distance(this.__wbg_ptr, arg0);
8587
- }
8588
- /**
8589
- * @param {Vec3} arg0
8590
- */
8591
- set normal(arg0) {
8592
- _assertClass(arg0, Vec3);
8593
- var ptr0 = arg0.__destroy_into_raw();
8594
- wasm.__wbg_set_plane_normal(this.__wbg_ptr, ptr0);
8595
- }
8596
- }
8597
- if (Symbol.dispose) Plane.prototype[Symbol.dispose] = Plane.prototype.free;
8598
-
8599
- export class PntsLayerDescription {
8600
- __destroy_into_raw() {
8601
- const ptr = this.__wbg_ptr;
8602
- this.__wbg_ptr = 0;
8603
- PntsLayerDescriptionFinalization.unregister(this);
8604
- return ptr;
8605
- }
8606
- free() {
8607
- const ptr = this.__destroy_into_raw();
8608
- wasm.__wbg_pntslayerdescription_free(ptr, 0);
8609
- }
8610
- /**
8611
- * @returns {string | undefined}
8612
- */
8613
- get crs() {
8614
- const ret = wasm.__wbg_get_pntslayerdescription_crs(this.__wbg_ptr);
8615
- let v1;
8616
- if (ret[0] !== 0) {
8617
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
8618
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
8619
- }
8620
- return v1;
8621
- }
8622
- /**
8623
- * @returns {any}
8624
- */
8625
- get data() {
8626
- const ret = wasm.__wbg_get_pntslayerdescription_data(this.__wbg_ptr);
8627
- return ret;
8628
- }
8629
- /**
8630
- * @returns {ModelMaterial | undefined}
8631
- */
8632
- get model() {
8633
- const ret = wasm.__wbg_get_pntslayerdescription_model(this.__wbg_ptr);
8634
- return ret === 0 ? undefined : ModelMaterial.__wrap(ret);
8635
- }
8636
- /**
8637
- * @returns {string | undefined}
8638
- */
8639
- get type() {
8640
- const ret = wasm.__wbg_get_pntslayerdescription_type(this.__wbg_ptr);
8641
- let v1;
8642
- if (ret[0] !== 0) {
8643
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
8644
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
8645
- }
8646
- return v1;
7101
+ wasm.__wbg_plane_free(ptr, 0);
8647
7102
  }
8648
7103
  /**
8649
- * @param {string | null} [arg0]
7104
+ * @returns {number}
8650
7105
  */
8651
- set crs(arg0) {
8652
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8653
- var len0 = WASM_VECTOR_LEN;
8654
- wasm.__wbg_set_pntslayerdescription_crs(this.__wbg_ptr, ptr0, len0);
7106
+ get distance() {
7107
+ const ret = wasm.__wbg_get_plane_distance(this.__wbg_ptr);
7108
+ return ret;
8655
7109
  }
8656
7110
  /**
8657
- * @param {any} arg0
7111
+ * @returns {Vec3}
8658
7112
  */
8659
- set data(arg0) {
8660
- wasm.__wbg_set_pntslayerdescription_data(this.__wbg_ptr, arg0);
7113
+ get normal() {
7114
+ const ret = wasm.__wbg_get_plane_normal(this.__wbg_ptr);
7115
+ return Vec3.__wrap(ret);
8661
7116
  }
8662
7117
  /**
8663
- * @param {ModelMaterial | null} [arg0]
7118
+ * @param {number} arg0
8664
7119
  */
8665
- set model(arg0) {
8666
- let ptr0 = 0;
8667
- if (!isLikeNone(arg0)) {
8668
- _assertClass(arg0, ModelMaterial);
8669
- ptr0 = arg0.__destroy_into_raw();
8670
- }
8671
- wasm.__wbg_set_pntslayerdescription_model(this.__wbg_ptr, ptr0);
7120
+ set distance(arg0) {
7121
+ wasm.__wbg_set_plane_distance(this.__wbg_ptr, arg0);
8672
7122
  }
8673
7123
  /**
8674
- * @param {string | null} [arg0]
7124
+ * @param {Vec3} arg0
8675
7125
  */
8676
- set type(arg0) {
8677
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8678
- var len0 = WASM_VECTOR_LEN;
8679
- wasm.__wbg_set_pntslayerdescription_type(this.__wbg_ptr, ptr0, len0);
7126
+ set normal(arg0) {
7127
+ _assertClass(arg0, Vec3);
7128
+ var ptr0 = arg0.__destroy_into_raw();
7129
+ wasm.__wbg_set_plane_normal(this.__wbg_ptr, ptr0);
8680
7130
  }
8681
7131
  }
8682
- if (Symbol.dispose) PntsLayerDescription.prototype[Symbol.dispose] = PntsLayerDescription.prototype.free;
7132
+ if (Symbol.dispose) Plane.prototype[Symbol.dispose] = Plane.prototype.free;
8683
7133
 
8684
7134
  export class PointMaterial {
8685
7135
  static __wrap(ptr) {
@@ -9408,6 +7858,16 @@ export class PolygonMaterial {
9408
7858
  const ret = wasm.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);
9409
7859
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
9410
7860
  }
7861
+ /**
7862
+ * Applies the lighting equation to the color output. When `false` the
7863
+ * material outputs plain albedo (for deferred lighting) while normals and
7864
+ * the shadow G-buffer keep being written.
7865
+ * @returns {boolean | undefined}
7866
+ */
7867
+ get lit() {
7868
+ const ret = wasm.__wbg_get_polygonmaterial_lit(this.__wbg_ptr);
7869
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
7870
+ }
9411
7871
  /**
9412
7872
  * Need to enable `transparent`.
9413
7873
  * @returns {number | undefined}
@@ -9670,6 +8130,15 @@ export class PolygonMaterial {
9670
8130
  set ior(arg0) {
9671
8131
  wasm.__wbg_set_polygonmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
9672
8132
  }
8133
+ /**
8134
+ * Applies the lighting equation to the color output. When `false` the
8135
+ * material outputs plain albedo (for deferred lighting) while normals and
8136
+ * the shadow G-buffer keep being written.
8137
+ * @param {boolean | null} [arg0]
8138
+ */
8139
+ set lit(arg0) {
8140
+ wasm.__wbg_set_polygonmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
8141
+ }
9673
8142
  /**
9674
8143
  * Need to enable `transparent`.
9675
8144
  * @param {number | null} [arg0]
@@ -10494,6 +8963,16 @@ export class PolylineMaterial {
10494
8963
  const ret = wasm.__wbg_get_polylinematerial_height(this.__wbg_ptr);
10495
8964
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
10496
8965
  }
8966
+ /**
8967
+ * Applies the lighting equation to the color output. When `false` the
8968
+ * material outputs plain albedo (for deferred lighting) while normals and
8969
+ * the shadow G-buffer keep being written.
8970
+ * @returns {boolean | undefined}
8971
+ */
8972
+ get lit() {
8973
+ const ret = wasm.__wbg_get_polylinematerial_lit(this.__wbg_ptr);
8974
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
8975
+ }
10497
8976
  /**
10498
8977
  * Maximum line width in pixels, clamping the rendered width regardless of zoom level.
10499
8978
  * Smaller values are cheaper to render as they reduce fragment shader overdraw.
@@ -10640,6 +9119,15 @@ export class PolylineMaterial {
10640
9119
  set height(arg0) {
10641
9120
  wasm.__wbg_set_polylinematerial_height(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
10642
9121
  }
9122
+ /**
9123
+ * Applies the lighting equation to the color output. When `false` the
9124
+ * material outputs plain albedo (for deferred lighting) while normals and
9125
+ * the shadow G-buffer keep being written.
9126
+ * @param {boolean | null} [arg0]
9127
+ */
9128
+ set lit(arg0) {
9129
+ wasm.__wbg_set_polylinematerial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
9130
+ }
10643
9131
  /**
10644
9132
  * Maximum line width in pixels, clamping the rendered width regardless of zoom level.
10645
9133
  * Smaller values are cheaper to render as they reduce fragment shader overdraw.
@@ -11137,9 +9625,6 @@ export class RasterLayerDescription {
11137
9625
  /**
11138
9626
  * Imagery rendering options for the raster texture. Parallel to `hillshade`
11139
9627
  * and `elevationHeatmap`; `show`/`color`/etc. apply only to the imagery.
11140
- * Accepts the legacy `rasterTile` key too so old-API tile layers can still
11141
- * be updated (extra legacy fields like `maxZoom`/`tms` are ignored here —
11142
- * they live on the source).
11143
9628
  * @returns {RasterMaterial | undefined}
11144
9629
  */
11145
9630
  get raster() {
@@ -11195,9 +9680,6 @@ export class RasterLayerDescription {
11195
9680
  /**
11196
9681
  * Imagery rendering options for the raster texture. Parallel to `hillshade`
11197
9682
  * and `elevationHeatmap`; `show`/`color`/etc. apply only to the imagery.
11198
- * Accepts the legacy `rasterTile` key too so old-API tile layers can still
11199
- * be updated (extra legacy fields like `maxZoom`/`tms` are ignored here —
11200
- * they live on the source).
11201
9683
  * @param {RasterMaterial | null} [arg0]
11202
9684
  */
11203
9685
  set raster(arg0) {
@@ -11497,6 +9979,16 @@ export class RasterTileInternalMaterial {
11497
9979
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
11498
9980
  return v1;
11499
9981
  }
9982
+ /**
9983
+ * Applies the lighting equation to the color output. When `false` the
9984
+ * material outputs plain albedo (for deferred lighting) while normals and
9985
+ * the shadow G-buffer keep being written.
9986
+ * @returns {boolean | undefined}
9987
+ */
9988
+ get lit() {
9989
+ const ret = wasm.__wbg_get_rastertileinternalmaterial_lit(this.__wbg_ptr);
9990
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
9991
+ }
11500
9992
  /**
11501
9993
  * @returns {number}
11502
9994
  */
@@ -11725,6 +10217,15 @@ export class RasterTileInternalMaterial {
11725
10217
  const len0 = WASM_VECTOR_LEN;
11726
10218
  wasm.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr, ptr0, len0);
11727
10219
  }
10220
+ /**
10221
+ * Applies the lighting equation to the color output. When `false` the
10222
+ * material outputs plain albedo (for deferred lighting) while normals and
10223
+ * the shadow G-buffer keep being written.
10224
+ * @param {boolean | null} [arg0]
10225
+ */
10226
+ set lit(arg0) {
10227
+ wasm.__wbg_set_rastertileinternalmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
10228
+ }
11728
10229
  /**
11729
10230
  * @param {number} arg0
11730
10231
  */
@@ -12904,6 +11405,38 @@ export class ReturnedTransferablePolylineBatchedFeature {
12904
11405
  }
12905
11406
  if (Symbol.dispose) ReturnedTransferablePolylineBatchedFeature.prototype[Symbol.dispose] = ReturnedTransferablePolylineBatchedFeature.prototype.free;
12906
11407
 
11408
+ /**
11409
+ * Re-extracts a source description's inline `data` field. `serde` skips it on
11410
+ * the typed source structs (it can be an arbitrary GeoJSON document), so the
11411
+ * geojson source builder reads it back through this shape.
11412
+ */
11413
+ export class SourceData {
11414
+ __destroy_into_raw() {
11415
+ const ptr = this.__wbg_ptr;
11416
+ this.__wbg_ptr = 0;
11417
+ SourceDataFinalization.unregister(this);
11418
+ return ptr;
11419
+ }
11420
+ free() {
11421
+ const ptr = this.__destroy_into_raw();
11422
+ wasm.__wbg_sourcedata_free(ptr, 0);
11423
+ }
11424
+ /**
11425
+ * @returns {any}
11426
+ */
11427
+ get data() {
11428
+ const ret = wasm.__wbg_get_sourcedata_data(this.__wbg_ptr);
11429
+ return ret;
11430
+ }
11431
+ /**
11432
+ * @param {any} arg0
11433
+ */
11434
+ set data(arg0) {
11435
+ wasm.__wbg_set_sourcedata_data(this.__wbg_ptr, arg0);
11436
+ }
11437
+ }
11438
+ if (Symbol.dispose) SourceData.prototype[Symbol.dispose] = SourceData.prototype.free;
11439
+
12907
11440
  /**
12908
11441
  * Discriminator used to read the `type` tag (and optional caller-provided `id`)
12909
11442
  * before dispatching.
@@ -13053,110 +11586,6 @@ export class TerrainHeightUpdatedEvent {
13053
11586
  }
13054
11587
  if (Symbol.dispose) TerrainHeightUpdatedEvent.prototype[Symbol.dispose] = TerrainHeightUpdatedEvent.prototype.free;
13055
11588
 
13056
- export class TerrainLayerDescription {
13057
- __destroy_into_raw() {
13058
- const ptr = this.__wbg_ptr;
13059
- this.__wbg_ptr = 0;
13060
- TerrainLayerDescriptionFinalization.unregister(this);
13061
- return ptr;
13062
- }
13063
- free() {
13064
- const ptr = this.__destroy_into_raw();
13065
- wasm.__wbg_terrainlayerdescription_free(ptr, 0);
13066
- }
13067
- /**
13068
- * @returns {any}
13069
- */
13070
- get data() {
13071
- const ret = wasm.__wbg_get_terrainlayerdescription_data(this.__wbg_ptr);
13072
- return ret;
13073
- }
13074
- /**
13075
- * @returns {LegacyEllipsoidTerrainMaterial | undefined}
13076
- */
13077
- get ellipsoid() {
13078
- const ret = wasm.__wbg_get_terrainlayerdescription_ellipsoid(this.__wbg_ptr);
13079
- return ret === 0 ? undefined : LegacyEllipsoidTerrainMaterial.__wrap(ret);
13080
- }
13081
- /**
13082
- * @returns {LegacyQuantizedMeshTerrainMaterial | undefined}
13083
- */
13084
- get quantizedMesh() {
13085
- const ret = wasm.__wbg_get_terrainlayerdescription_quantizedMesh(this.__wbg_ptr);
13086
- return ret === 0 ? undefined : LegacyQuantizedMeshTerrainMaterial.__wrap(ret);
13087
- }
13088
- /**
13089
- * @returns {LegacyRasterTerrainMaterial | undefined}
13090
- */
13091
- get rasterTerrain() {
13092
- const ret = wasm.__wbg_get_terrainlayerdescription_rasterTerrain(this.__wbg_ptr);
13093
- return ret === 0 ? undefined : LegacyRasterTerrainMaterial.__wrap(ret);
13094
- }
13095
- /**
13096
- * @returns {string}
13097
- */
13098
- get type() {
13099
- let deferred1_0;
13100
- let deferred1_1;
13101
- try {
13102
- const ret = wasm.__wbg_get_terrainlayerdescription_type(this.__wbg_ptr);
13103
- deferred1_0 = ret[0];
13104
- deferred1_1 = ret[1];
13105
- return getStringFromWasm0(ret[0], ret[1]);
13106
- } finally {
13107
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
13108
- }
13109
- }
13110
- /**
13111
- * @param {any} arg0
13112
- */
13113
- set data(arg0) {
13114
- wasm.__wbg_set_terrainlayerdescription_data(this.__wbg_ptr, arg0);
13115
- }
13116
- /**
13117
- * @param {LegacyEllipsoidTerrainMaterial | null} [arg0]
13118
- */
13119
- set ellipsoid(arg0) {
13120
- let ptr0 = 0;
13121
- if (!isLikeNone(arg0)) {
13122
- _assertClass(arg0, LegacyEllipsoidTerrainMaterial);
13123
- ptr0 = arg0.__destroy_into_raw();
13124
- }
13125
- wasm.__wbg_set_terrainlayerdescription_ellipsoid(this.__wbg_ptr, ptr0);
13126
- }
13127
- /**
13128
- * @param {LegacyQuantizedMeshTerrainMaterial | null} [arg0]
13129
- */
13130
- set quantizedMesh(arg0) {
13131
- let ptr0 = 0;
13132
- if (!isLikeNone(arg0)) {
13133
- _assertClass(arg0, LegacyQuantizedMeshTerrainMaterial);
13134
- ptr0 = arg0.__destroy_into_raw();
13135
- }
13136
- wasm.__wbg_set_terrainlayerdescription_quantizedMesh(this.__wbg_ptr, ptr0);
13137
- }
13138
- /**
13139
- * @param {LegacyRasterTerrainMaterial | null} [arg0]
13140
- */
13141
- set rasterTerrain(arg0) {
13142
- let ptr0 = 0;
13143
- if (!isLikeNone(arg0)) {
13144
- _assertClass(arg0, LegacyRasterTerrainMaterial);
13145
- ptr0 = arg0.__destroy_into_raw();
13146
- }
13147
- wasm.__wbg_set_terrainlayerdescription_rasterTerrain(this.__wbg_ptr, ptr0);
13148
- }
13149
- /**
13150
- * @param {string} arg0
13151
- */
13152
- set type(arg0) {
13153
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
13154
- const len0 = WASM_VECTOR_LEN;
13155
- wasm.__wbg_set_terrainlayerdescription_type(this.__wbg_ptr, ptr0, len0);
13156
- }
13157
- }
13158
- if (Symbol.dispose) TerrainLayerDescription.prototype[Symbol.dispose] = TerrainLayerDescription.prototype.free;
13159
-
13160
11589
  /**
13161
11590
  * Render-only appearance for a `terrain` layer's mesh, regardless of the
13162
11591
  * referenced source's data format (raster-dem, quantized-mesh, or the
@@ -13187,6 +11616,16 @@ export class TerrainMaterial {
13187
11616
  const ret = wasm.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);
13188
11617
  return ret === 0xFFFFFF ? undefined : ret !== 0;
13189
11618
  }
11619
+ /**
11620
+ * Applies the lighting equation to the color output. When `false` the
11621
+ * material outputs plain albedo (for deferred lighting) while normals and
11622
+ * the shadow G-buffer keep being written.
11623
+ * @returns {boolean | undefined}
11624
+ */
11625
+ get lit() {
11626
+ const ret = wasm.__wbg_get_terrainmaterial_lit(this.__wbg_ptr);
11627
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
11628
+ }
13190
11629
  /**
13191
11630
  * @returns {boolean | undefined}
13192
11631
  */
@@ -13232,6 +11671,15 @@ export class TerrainMaterial {
13232
11671
  set castShadow(arg0) {
13233
11672
  wasm.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
13234
11673
  }
11674
+ /**
11675
+ * Applies the lighting equation to the color output. When `false` the
11676
+ * material outputs plain albedo (for deferred lighting) while normals and
11677
+ * the shadow G-buffer keep being written.
11678
+ * @param {boolean | null} [arg0]
11679
+ */
11680
+ set lit(arg0) {
11681
+ wasm.__wbg_set_terrainmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
11682
+ }
13235
11683
  /**
13236
11684
  * @param {boolean | null} [arg0]
13237
11685
  */
@@ -13300,9 +11748,8 @@ export class TerrainSourceLayerDescription {
13300
11748
  /**
13301
11749
  * Terrain mesh rendering options. Nested like the other layers' render
13302
11750
  * inputs (`raster`, `model`, ...); all fetch/geometry config lives on the
13303
- * referenced source. Accepts the legacy terrain material keys too so
13304
- * old-API terrain layers can still be updated (extra legacy fetch fields
13305
- * are ignored — they live on the source).
11751
+ * referenced source. A source-less terrain layer (a flat ellipsoid surface
11752
+ * to drape clamp-to-ground data on) is written with the `ellipsoid` key.
13306
11753
  * @returns {TerrainMaterial | undefined}
13307
11754
  */
13308
11755
  get terrain() {
@@ -13332,9 +11779,8 @@ export class TerrainSourceLayerDescription {
13332
11779
  /**
13333
11780
  * Terrain mesh rendering options. Nested like the other layers' render
13334
11781
  * inputs (`raster`, `model`, ...); all fetch/geometry config lives on the
13335
- * referenced source. Accepts the legacy terrain material keys too so
13336
- * old-API terrain layers can still be updated (extra legacy fetch fields
13337
- * are ignored — they live on the source).
11782
+ * referenced source. A source-less terrain layer (a flat ellipsoid surface
11783
+ * to drape clamp-to-ground data on) is written with the `ellipsoid` key.
13338
11784
  * @param {TerrainMaterial | null} [arg0]
13339
11785
  */
13340
11786
  set terrain(arg0) {
@@ -14066,107 +12512,6 @@ export const TextureFragmentStatus = Object.freeze({
14066
12512
  Pending: 2, "2": "Pending",
14067
12513
  });
14068
12514
 
14069
- export class TileLayerDescription {
14070
- __destroy_into_raw() {
14071
- const ptr = this.__wbg_ptr;
14072
- this.__wbg_ptr = 0;
14073
- TileLayerDescriptionFinalization.unregister(this);
14074
- return ptr;
14075
- }
14076
- free() {
14077
- const ptr = this.__destroy_into_raw();
14078
- wasm.__wbg_tilelayerdescription_free(ptr, 0);
14079
- }
14080
- /**
14081
- * @returns {any}
14082
- */
14083
- get data() {
14084
- const ret = wasm.__wbg_get_tilelayerdescription_data(this.__wbg_ptr);
14085
- return ret;
14086
- }
14087
- /**
14088
- * @returns {LegacyElevationHeatmapMaterial | undefined}
14089
- */
14090
- get elevationHeatmap() {
14091
- const ret = wasm.__wbg_get_tilelayerdescription_elevationHeatmap(this.__wbg_ptr);
14092
- return ret === 0 ? undefined : LegacyElevationHeatmapMaterial.__wrap(ret);
14093
- }
14094
- /**
14095
- * @returns {LegacyHillshadeMaterial | undefined}
14096
- */
14097
- get hillshade() {
14098
- const ret = wasm.__wbg_get_tilelayerdescription_hillshade(this.__wbg_ptr);
14099
- return ret === 0 ? undefined : LegacyHillshadeMaterial.__wrap(ret);
14100
- }
14101
- /**
14102
- * @returns {LegacyRasterTileMaterial | undefined}
14103
- */
14104
- get rasterTile() {
14105
- const ret = wasm.__wbg_get_tilelayerdescription_rasterTile(this.__wbg_ptr);
14106
- return ret === 0 ? undefined : LegacyRasterTileMaterial.__wrap(ret);
14107
- }
14108
- /**
14109
- * @returns {string | undefined}
14110
- */
14111
- get type() {
14112
- const ret = wasm.__wbg_get_tilelayerdescription_type(this.__wbg_ptr);
14113
- let v1;
14114
- if (ret[0] !== 0) {
14115
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
14116
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
14117
- }
14118
- return v1;
14119
- }
14120
- /**
14121
- * @param {any} arg0
14122
- */
14123
- set data(arg0) {
14124
- wasm.__wbg_set_tilelayerdescription_data(this.__wbg_ptr, arg0);
14125
- }
14126
- /**
14127
- * @param {LegacyElevationHeatmapMaterial | null} [arg0]
14128
- */
14129
- set elevationHeatmap(arg0) {
14130
- let ptr0 = 0;
14131
- if (!isLikeNone(arg0)) {
14132
- _assertClass(arg0, LegacyElevationHeatmapMaterial);
14133
- ptr0 = arg0.__destroy_into_raw();
14134
- }
14135
- wasm.__wbg_set_tilelayerdescription_elevationHeatmap(this.__wbg_ptr, ptr0);
14136
- }
14137
- /**
14138
- * @param {LegacyHillshadeMaterial | null} [arg0]
14139
- */
14140
- set hillshade(arg0) {
14141
- let ptr0 = 0;
14142
- if (!isLikeNone(arg0)) {
14143
- _assertClass(arg0, LegacyHillshadeMaterial);
14144
- ptr0 = arg0.__destroy_into_raw();
14145
- }
14146
- wasm.__wbg_set_tilelayerdescription_hillshade(this.__wbg_ptr, ptr0);
14147
- }
14148
- /**
14149
- * @param {LegacyRasterTileMaterial | null} [arg0]
14150
- */
14151
- set rasterTile(arg0) {
14152
- let ptr0 = 0;
14153
- if (!isLikeNone(arg0)) {
14154
- _assertClass(arg0, LegacyRasterTileMaterial);
14155
- ptr0 = arg0.__destroy_into_raw();
14156
- }
14157
- wasm.__wbg_set_tilelayerdescription_rasterTile(this.__wbg_ptr, ptr0);
14158
- }
14159
- /**
14160
- * @param {string | null} [arg0]
14161
- */
14162
- set type(arg0) {
14163
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
14164
- var len0 = WASM_VECTOR_LEN;
14165
- wasm.__wbg_set_tilelayerdescription_type(this.__wbg_ptr, ptr0, len0);
14166
- }
14167
- }
14168
- if (Symbol.dispose) TileLayerDescription.prototype[Symbol.dispose] = TileLayerDescription.prototype.free;
14169
-
14170
12515
  export class TileUvTransform {
14171
12516
  static __wrap(ptr) {
14172
12517
  const obj = Object.create(TileUvTransform.prototype);
@@ -17763,9 +16108,6 @@ function __wbg_get_imports() {
17763
16108
  const AabbFinalization = (typeof FinalizationRegistry === 'undefined')
17764
16109
  ? { register: () => {}, unregister: () => {} }
17765
16110
  : new FinalizationRegistry(ptr => wasm.__wbg_aabb_free(ptr, 1));
17766
- const B3dmLayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
17767
- ? { register: () => {}, unregister: () => {} }
17768
- : new FinalizationRegistry(ptr => wasm.__wbg_b3dmlayerdescription_free(ptr, 1));
17769
16111
  const BatchPropResultFinalization = (typeof FinalizationRegistry === 'undefined')
17770
16112
  ? { register: () => {}, unregister: () => {} }
17771
16113
  : new FinalizationRegistry(ptr => wasm.__wbg_batchpropresult_free(ptr, 1));
@@ -17793,9 +16135,6 @@ const CameraOrientationFinalization = (typeof FinalizationRegistry === 'undefine
17793
16135
  const CameraStatusFinalization = (typeof FinalizationRegistry === 'undefined')
17794
16136
  ? { register: () => {}, unregister: () => {} }
17795
16137
  : new FinalizationRegistry(ptr => wasm.__wbg_camerastatus_free(ptr, 1));
17796
- const Cesium3dTilesLayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
17797
- ? { register: () => {}, unregister: () => {} }
17798
- : new FinalizationRegistry(ptr => wasm.__wbg_cesium3dtileslayerdescription_free(ptr, 1));
17799
16138
  const CompiledExpressionFinalization = (typeof FinalizationRegistry === 'undefined')
17800
16139
  ? { register: () => {}, unregister: () => {} }
17801
16140
  : new FinalizationRegistry(ptr => wasm.__wbg_compiledexpression_free(ptr, 1));
@@ -17871,9 +16210,6 @@ const ExtentRadianF32Finalization = (typeof FinalizationRegistry === 'undefined'
17871
16210
  const FloatAttributeFinalization = (typeof FinalizationRegistry === 'undefined')
17872
16211
  ? { register: () => {}, unregister: () => {} }
17873
16212
  : new FinalizationRegistry(ptr => wasm.__wbg_floatattribute_free(ptr, 1));
17874
- const GeoJsonLayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
17875
- ? { register: () => {}, unregister: () => {} }
17876
- : new FinalizationRegistry(ptr => wasm.__wbg_geojsonlayerdescription_free(ptr, 1));
17877
16213
  const GeoJsonSourceDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
17878
16214
  ? { register: () => {}, unregister: () => {} }
17879
16215
  : new FinalizationRegistry(ptr => wasm.__wbg_geojsonsourcedescription_free(ptr, 1));
@@ -17895,33 +16231,6 @@ const LLEFinalization = (typeof FinalizationRegistry === 'undefined')
17895
16231
  const LayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
17896
16232
  ? { register: () => {}, unregister: () => {} }
17897
16233
  : new FinalizationRegistry(ptr => wasm.__wbg_layerdescription_free(ptr, 1));
17898
- const LayerDescriptionDataFinalization = (typeof FinalizationRegistry === 'undefined')
17899
- ? { register: () => {}, unregister: () => {} }
17900
- : new FinalizationRegistry(ptr => wasm.__wbg_layerdescriptiondata_free(ptr, 1));
17901
- const LayerDescriptionUrlFinalization = (typeof FinalizationRegistry === 'undefined')
17902
- ? { register: () => {}, unregister: () => {} }
17903
- : new FinalizationRegistry(ptr => wasm.__wbg_layerdescriptionurl_free(ptr, 1));
17904
- const LegacyElevationHeatmapMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17905
- ? { register: () => {}, unregister: () => {} }
17906
- : new FinalizationRegistry(ptr => wasm.__wbg_legacyelevationheatmapmaterial_free(ptr, 1));
17907
- const LegacyEllipsoidTerrainMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17908
- ? { register: () => {}, unregister: () => {} }
17909
- : new FinalizationRegistry(ptr => wasm.__wbg_legacyellipsoidterrainmaterial_free(ptr, 1));
17910
- const LegacyHillshadeMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17911
- ? { register: () => {}, unregister: () => {} }
17912
- : new FinalizationRegistry(ptr => wasm.__wbg_legacyhillshadematerial_free(ptr, 1));
17913
- const LegacyQuantizedMeshTerrainMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17914
- ? { register: () => {}, unregister: () => {} }
17915
- : new FinalizationRegistry(ptr => wasm.__wbg_legacyquantizedmeshterrainmaterial_free(ptr, 1));
17916
- const LegacyRasterTerrainMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17917
- ? { register: () => {}, unregister: () => {} }
17918
- : new FinalizationRegistry(ptr => wasm.__wbg_legacyrasterterrainmaterial_free(ptr, 1));
17919
- const LegacyRasterTileMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17920
- ? { register: () => {}, unregister: () => {} }
17921
- : new FinalizationRegistry(ptr => wasm.__wbg_legacyrastertilematerial_free(ptr, 1));
17922
- const LegacyVectorTileMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17923
- ? { register: () => {}, unregister: () => {} }
17924
- : new FinalizationRegistry(ptr => wasm.__wbg_legacyvectortilematerial_free(ptr, 1));
17925
16234
  const MemoryStatsFinalization = (typeof FinalizationRegistry === 'undefined')
17926
16235
  ? { register: () => {}, unregister: () => {} }
17927
16236
  : new FinalizationRegistry(ptr => wasm.__wbg_memorystats_free(ptr, 1));
@@ -17943,9 +16252,6 @@ const ModelMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17943
16252
  const ModelMeshFinalization = (typeof FinalizationRegistry === 'undefined')
17944
16253
  ? { register: () => {}, unregister: () => {} }
17945
16254
  : new FinalizationRegistry(ptr => wasm.__wbg_modelmesh_free(ptr, 1));
17946
- const MvtLayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
17947
- ? { register: () => {}, unregister: () => {} }
17948
- : new FinalizationRegistry(ptr => wasm.__wbg_mvtlayerdescription_free(ptr, 1));
17949
16255
  const NearFarFinalization = (typeof FinalizationRegistry === 'undefined')
17950
16256
  ? { register: () => {}, unregister: () => {} }
17951
16257
  : new FinalizationRegistry(ptr => wasm.__wbg_nearfar_free(ptr, 1));
@@ -17967,9 +16273,6 @@ const ParseMvtTileResultFinalization = (typeof FinalizationRegistry === 'undefin
17967
16273
  const PlaneFinalization = (typeof FinalizationRegistry === 'undefined')
17968
16274
  ? { register: () => {}, unregister: () => {} }
17969
16275
  : new FinalizationRegistry(ptr => wasm.__wbg_plane_free(ptr, 1));
17970
- const PntsLayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
17971
- ? { register: () => {}, unregister: () => {} }
17972
- : new FinalizationRegistry(ptr => wasm.__wbg_pntslayerdescription_free(ptr, 1));
17973
16276
  const PointMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
17974
16277
  ? { register: () => {}, unregister: () => {} }
17975
16278
  : new FinalizationRegistry(ptr => wasm.__wbg_pointmaterial_free(ptr, 1));
@@ -18054,15 +16357,15 @@ const ReturnedTransferablePolygonBatchedFeatureFinalization = (typeof Finalizati
18054
16357
  const ReturnedTransferablePolylineBatchedFeatureFinalization = (typeof FinalizationRegistry === 'undefined')
18055
16358
  ? { register: () => {}, unregister: () => {} }
18056
16359
  : new FinalizationRegistry(ptr => wasm.__wbg_returnedtransferablepolylinebatchedfeature_free(ptr, 1));
16360
+ const SourceDataFinalization = (typeof FinalizationRegistry === 'undefined')
16361
+ ? { register: () => {}, unregister: () => {} }
16362
+ : new FinalizationRegistry(ptr => wasm.__wbg_sourcedata_free(ptr, 1));
18057
16363
  const SourceDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
18058
16364
  ? { register: () => {}, unregister: () => {} }
18059
16365
  : new FinalizationRegistry(ptr => wasm.__wbg_sourcedescription_free(ptr, 1));
18060
16366
  const TerrainHeightUpdatedEventFinalization = (typeof FinalizationRegistry === 'undefined')
18061
16367
  ? { register: () => {}, unregister: () => {} }
18062
16368
  : new FinalizationRegistry(ptr => wasm.__wbg_terrainheightupdatedevent_free(ptr, 1));
18063
- const TerrainLayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
18064
- ? { register: () => {}, unregister: () => {} }
18065
- : new FinalizationRegistry(ptr => wasm.__wbg_terrainlayerdescription_free(ptr, 1));
18066
16369
  const TerrainMaterialFinalization = (typeof FinalizationRegistry === 'undefined')
18067
16370
  ? { register: () => {}, unregister: () => {} }
18068
16371
  : new FinalizationRegistry(ptr => wasm.__wbg_terrainmaterial_free(ptr, 1));
@@ -18081,9 +16384,6 @@ const TextureFragmentFinalization = (typeof FinalizationRegistry === 'undefined'
18081
16384
  const TextureFragmentRequestedEventFinalization = (typeof FinalizationRegistry === 'undefined')
18082
16385
  ? { register: () => {}, unregister: () => {} }
18083
16386
  : new FinalizationRegistry(ptr => wasm.__wbg_texturefragmentrequestedevent_free(ptr, 1));
18084
- const TileLayerDescriptionFinalization = (typeof FinalizationRegistry === 'undefined')
18085
- ? { register: () => {}, unregister: () => {} }
18086
- : new FinalizationRegistry(ptr => wasm.__wbg_tilelayerdescription_free(ptr, 1));
18087
16387
  const TileUvTransformFinalization = (typeof FinalizationRegistry === 'undefined')
18088
16388
  ? { register: () => {}, unregister: () => {} }
18089
16389
  : new FinalizationRegistry(ptr => wasm.__wbg_tileuvtransform_free(ptr, 1));