@navaramap/engine-api 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_api.d.ts +75 -4
- package/navara_wasm_api.js +100 -13
- package/navara_wasm_api_bg.wasm +0 -0
- package/package.json +1 -1
package/navara_wasm_api.d.ts
CHANGED
|
@@ -699,8 +699,6 @@ export class ModelMaterial {
|
|
|
699
699
|
set applyWaterNormal(value: boolean | null | undefined);
|
|
700
700
|
get castShadow(): boolean | undefined;
|
|
701
701
|
set castShadow(value: boolean | null | undefined);
|
|
702
|
-
get clampToGround(): boolean | undefined;
|
|
703
|
-
set clampToGround(value: boolean | null | undefined);
|
|
704
702
|
get color(): number | undefined;
|
|
705
703
|
set color(value: number | null | undefined);
|
|
706
704
|
/**
|
|
@@ -749,6 +747,18 @@ export class ModelMaterial {
|
|
|
749
747
|
set height(value: number | null | undefined);
|
|
750
748
|
get ior(): number | undefined;
|
|
751
749
|
set ior(value: number | null | undefined);
|
|
750
|
+
/**
|
|
751
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
752
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
753
|
+
* the shadow G-buffer keep being written.
|
|
754
|
+
*/
|
|
755
|
+
get lit(): boolean | undefined;
|
|
756
|
+
/**
|
|
757
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
758
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
759
|
+
* the shadow G-buffer keep being written.
|
|
760
|
+
*/
|
|
761
|
+
set lit(value: boolean | null | undefined);
|
|
752
762
|
get maxSse(): number | undefined;
|
|
753
763
|
set maxSse(value: number | null | undefined);
|
|
754
764
|
get metalness(): number | undefined;
|
|
@@ -1064,6 +1074,18 @@ export class PolygonMaterial {
|
|
|
1064
1074
|
set height(value: number | null | undefined);
|
|
1065
1075
|
get ior(): number | undefined;
|
|
1066
1076
|
set ior(value: number | null | undefined);
|
|
1077
|
+
/**
|
|
1078
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1079
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1080
|
+
* the shadow G-buffer keep being written.
|
|
1081
|
+
*/
|
|
1082
|
+
get lit(): boolean | undefined;
|
|
1083
|
+
/**
|
|
1084
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1085
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1086
|
+
* the shadow G-buffer keep being written.
|
|
1087
|
+
*/
|
|
1088
|
+
set lit(value: boolean | null | undefined);
|
|
1067
1089
|
/**
|
|
1068
1090
|
* Need to enable `transparent`.
|
|
1069
1091
|
*/
|
|
@@ -1330,6 +1352,18 @@ export class PolylineMaterial {
|
|
|
1330
1352
|
set emissiveIntensity(value: number | null | undefined);
|
|
1331
1353
|
get height(): number | undefined;
|
|
1332
1354
|
set height(value: number | null | undefined);
|
|
1355
|
+
/**
|
|
1356
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1357
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1358
|
+
* the shadow G-buffer keep being written.
|
|
1359
|
+
*/
|
|
1360
|
+
get lit(): boolean | undefined;
|
|
1361
|
+
/**
|
|
1362
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1363
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1364
|
+
* the shadow G-buffer keep being written.
|
|
1365
|
+
*/
|
|
1366
|
+
set lit(value: boolean | null | undefined);
|
|
1333
1367
|
/**
|
|
1334
1368
|
* Maximum line width in pixels, clamping the rendered width regardless of zoom level.
|
|
1335
1369
|
* Smaller values are cheaper to render as they reduce fragment shader overdraw.
|
|
@@ -1430,6 +1464,18 @@ export class RasterTileInternalMaterial {
|
|
|
1430
1464
|
isElevationHeatmaps: Uint8Array;
|
|
1431
1465
|
isHillshades: Uint8Array;
|
|
1432
1466
|
layerReproject: Uint8Array;
|
|
1467
|
+
/**
|
|
1468
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1469
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1470
|
+
* the shadow G-buffer keep being written.
|
|
1471
|
+
*/
|
|
1472
|
+
get lit(): boolean | undefined;
|
|
1473
|
+
/**
|
|
1474
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1475
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1476
|
+
* the shadow G-buffer keep being written.
|
|
1477
|
+
*/
|
|
1478
|
+
set lit(value: boolean | null | undefined);
|
|
1433
1479
|
logBoundary: number;
|
|
1434
1480
|
logarithmic: boolean;
|
|
1435
1481
|
opacities: Float32Array;
|
|
@@ -1485,6 +1531,18 @@ export class TerrainMaterial {
|
|
|
1485
1531
|
[Symbol.dispose](): void;
|
|
1486
1532
|
get castShadow(): boolean | undefined;
|
|
1487
1533
|
set castShadow(value: boolean | null | undefined);
|
|
1534
|
+
/**
|
|
1535
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1536
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1537
|
+
* the shadow G-buffer keep being written.
|
|
1538
|
+
*/
|
|
1539
|
+
get lit(): boolean | undefined;
|
|
1540
|
+
/**
|
|
1541
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
1542
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
1543
|
+
* the shadow G-buffer keep being written.
|
|
1544
|
+
*/
|
|
1545
|
+
set lit(value: boolean | null | undefined);
|
|
1488
1546
|
get receiveShadow(): boolean | undefined;
|
|
1489
1547
|
set receiveShadow(value: boolean | null | undefined);
|
|
1490
1548
|
get showBoundingBox(): boolean | undefined;
|
|
@@ -1899,6 +1957,11 @@ export function angleToRadian(degree: number): number;
|
|
|
1899
1957
|
* module docs); `view` and `proj` are column-major 4×4 matrices (16 values each).
|
|
1900
1958
|
* `padding_px` pads every box; `hysteresis_px` is the collision-test shrink
|
|
1901
1959
|
* applied only to currently-shown labels.
|
|
1960
|
+
*
|
|
1961
|
+
* The result is *hidden-by-default*: only a label that claimed space inside the
|
|
1962
|
+
* tracked area (viewport + grid margin) comes back shown. Off-screen and
|
|
1963
|
+
* GPU-culled labels stay hidden so they cannot fade in unseen and then pan into
|
|
1964
|
+
* view at full opacity.
|
|
1902
1965
|
*/
|
|
1903
1966
|
export function declutterPlace(candidates: Float64Array, view: Float64Array, proj: Float64Array, camera_x: number, camera_y: number, camera_z: number, near: number, width_px: number, height_px: number, fov_rad: number, padding_px: number, hysteresis_px: number): Uint8Array;
|
|
1904
1967
|
|
|
@@ -2089,7 +2152,6 @@ export interface InitOutput {
|
|
|
2089
2152
|
readonly __wbg_get_modelmaterial_animationSpeed: (a: number) => number;
|
|
2090
2153
|
readonly __wbg_get_modelmaterial_applyWaterNormal: (a: number) => number;
|
|
2091
2154
|
readonly __wbg_get_modelmaterial_castShadow: (a: number) => number;
|
|
2092
|
-
readonly __wbg_get_modelmaterial_clampToGround: (a: number) => number;
|
|
2093
2155
|
readonly __wbg_get_modelmaterial_color: (a: number) => number;
|
|
2094
2156
|
readonly __wbg_get_modelmaterial_creaseNormalAngle: (a: number) => number;
|
|
2095
2157
|
readonly __wbg_get_modelmaterial_depthWrite: (a: number) => number;
|
|
@@ -2098,6 +2160,7 @@ export interface InitOutput {
|
|
|
2098
2160
|
readonly __wbg_get_modelmaterial_emissiveIntensity: (a: number) => number;
|
|
2099
2161
|
readonly __wbg_get_modelmaterial_height: (a: number) => number;
|
|
2100
2162
|
readonly __wbg_get_modelmaterial_ior: (a: number) => number;
|
|
2163
|
+
readonly __wbg_get_modelmaterial_lit: (a: number) => number;
|
|
2101
2164
|
readonly __wbg_get_modelmaterial_maxSse: (a: number) => number;
|
|
2102
2165
|
readonly __wbg_get_modelmaterial_metalness: (a: number) => number;
|
|
2103
2166
|
readonly __wbg_get_modelmaterial_normals: (a: number) => number;
|
|
@@ -2134,6 +2197,7 @@ export interface InitOutput {
|
|
|
2134
2197
|
readonly __wbg_get_polygonmaterial_extrudedHeight: (a: number) => number;
|
|
2135
2198
|
readonly __wbg_get_polygonmaterial_height: (a: number) => number;
|
|
2136
2199
|
readonly __wbg_get_polygonmaterial_ior: (a: number) => number;
|
|
2200
|
+
readonly __wbg_get_polygonmaterial_lit: (a: number) => number;
|
|
2137
2201
|
readonly __wbg_get_polygonmaterial_opacity: (a: number) => number;
|
|
2138
2202
|
readonly __wbg_get_polygonmaterial_outline: (a: number) => number;
|
|
2139
2203
|
readonly __wbg_get_polygonmaterial_outlineColor: (a: number) => number;
|
|
@@ -2160,6 +2224,7 @@ export interface InitOutput {
|
|
|
2160
2224
|
readonly __wbg_get_polylinematerial_depthWrite: (a: number) => number;
|
|
2161
2225
|
readonly __wbg_get_polylinematerial_effectIds: (a: number) => [number, number];
|
|
2162
2226
|
readonly __wbg_get_polylinematerial_emissiveColor: (a: number) => number;
|
|
2227
|
+
readonly __wbg_get_polylinematerial_lit: (a: number) => number;
|
|
2163
2228
|
readonly __wbg_get_polylinematerial_opacity: (a: number) => number;
|
|
2164
2229
|
readonly __wbg_get_polylinematerial_receiveShadow: (a: number) => number;
|
|
2165
2230
|
readonly __wbg_get_polylinematerial_show: (a: number) => number;
|
|
@@ -2183,6 +2248,7 @@ export interface InitOutput {
|
|
|
2183
2248
|
readonly __wbg_get_rastertileinternalmaterial_isElevationHeatmaps: (a: number) => [number, number];
|
|
2184
2249
|
readonly __wbg_get_rastertileinternalmaterial_isHillshades: (a: number) => [number, number];
|
|
2185
2250
|
readonly __wbg_get_rastertileinternalmaterial_layerReproject: (a: number) => [number, number];
|
|
2251
|
+
readonly __wbg_get_rastertileinternalmaterial_lit: (a: number) => number;
|
|
2186
2252
|
readonly __wbg_get_rastertileinternalmaterial_logBoundary: (a: number) => number;
|
|
2187
2253
|
readonly __wbg_get_rastertileinternalmaterial_logarithmic: (a: number) => number;
|
|
2188
2254
|
readonly __wbg_get_rastertileinternalmaterial_opacities: (a: number) => [number, number];
|
|
@@ -2192,6 +2258,7 @@ export interface InitOutput {
|
|
|
2192
2258
|
readonly __wbg_get_rastertileinternalmaterial_terrainLatRange: (a: number) => [number, number];
|
|
2193
2259
|
readonly __wbg_get_returnedconstructedterrainmesh_rtc_translation: (a: number) => number;
|
|
2194
2260
|
readonly __wbg_get_terrainmaterial_castShadow: (a: number) => number;
|
|
2261
|
+
readonly __wbg_get_terrainmaterial_lit: (a: number) => number;
|
|
2195
2262
|
readonly __wbg_get_terrainmaterial_receiveShadow: (a: number) => number;
|
|
2196
2263
|
readonly __wbg_get_terrainmaterial_show: (a: number) => number;
|
|
2197
2264
|
readonly __wbg_get_terrainmaterial_showBoundingBox: (a: number) => number;
|
|
@@ -2314,7 +2381,6 @@ export interface InitOutput {
|
|
|
2314
2381
|
readonly __wbg_set_modelmaterial_animationSpeed: (a: number, b: number) => void;
|
|
2315
2382
|
readonly __wbg_set_modelmaterial_applyWaterNormal: (a: number, b: number) => void;
|
|
2316
2383
|
readonly __wbg_set_modelmaterial_castShadow: (a: number, b: number) => void;
|
|
2317
|
-
readonly __wbg_set_modelmaterial_clampToGround: (a: number, b: number) => void;
|
|
2318
2384
|
readonly __wbg_set_modelmaterial_color: (a: number, b: number) => void;
|
|
2319
2385
|
readonly __wbg_set_modelmaterial_creaseNormalAngle: (a: number, b: number) => void;
|
|
2320
2386
|
readonly __wbg_set_modelmaterial_depthWrite: (a: number, b: number) => void;
|
|
@@ -2323,6 +2389,7 @@ export interface InitOutput {
|
|
|
2323
2389
|
readonly __wbg_set_modelmaterial_emissiveIntensity: (a: number, b: number) => void;
|
|
2324
2390
|
readonly __wbg_set_modelmaterial_height: (a: number, b: number) => void;
|
|
2325
2391
|
readonly __wbg_set_modelmaterial_ior: (a: number, b: number) => void;
|
|
2392
|
+
readonly __wbg_set_modelmaterial_lit: (a: number, b: number) => void;
|
|
2326
2393
|
readonly __wbg_set_modelmaterial_maxSse: (a: number, b: number) => void;
|
|
2327
2394
|
readonly __wbg_set_modelmaterial_metalness: (a: number, b: number) => void;
|
|
2328
2395
|
readonly __wbg_set_modelmaterial_normals: (a: number, b: number) => void;
|
|
@@ -2359,6 +2426,7 @@ export interface InitOutput {
|
|
|
2359
2426
|
readonly __wbg_set_polygonmaterial_extrudedHeight: (a: number, b: number) => void;
|
|
2360
2427
|
readonly __wbg_set_polygonmaterial_height: (a: number, b: number) => void;
|
|
2361
2428
|
readonly __wbg_set_polygonmaterial_ior: (a: number, b: number) => void;
|
|
2429
|
+
readonly __wbg_set_polygonmaterial_lit: (a: number, b: number) => void;
|
|
2362
2430
|
readonly __wbg_set_polygonmaterial_opacity: (a: number, b: number) => void;
|
|
2363
2431
|
readonly __wbg_set_polygonmaterial_outline: (a: number, b: number) => void;
|
|
2364
2432
|
readonly __wbg_set_polygonmaterial_outlineColor: (a: number, b: number) => void;
|
|
@@ -2385,6 +2453,7 @@ export interface InitOutput {
|
|
|
2385
2453
|
readonly __wbg_set_polylinematerial_depthWrite: (a: number, b: number) => void;
|
|
2386
2454
|
readonly __wbg_set_polylinematerial_effectIds: (a: number, b: number, c: number) => void;
|
|
2387
2455
|
readonly __wbg_set_polylinematerial_emissiveColor: (a: number, b: number) => void;
|
|
2456
|
+
readonly __wbg_set_polylinematerial_lit: (a: number, b: number) => void;
|
|
2388
2457
|
readonly __wbg_set_polylinematerial_opacity: (a: number, b: number) => void;
|
|
2389
2458
|
readonly __wbg_set_polylinematerial_receiveShadow: (a: number, b: number) => void;
|
|
2390
2459
|
readonly __wbg_set_polylinematerial_show: (a: number, b: number) => void;
|
|
@@ -2408,6 +2477,7 @@ export interface InitOutput {
|
|
|
2408
2477
|
readonly __wbg_set_rastertileinternalmaterial_isElevationHeatmaps: (a: number, b: number, c: number) => void;
|
|
2409
2478
|
readonly __wbg_set_rastertileinternalmaterial_isHillshades: (a: number, b: number, c: number) => void;
|
|
2410
2479
|
readonly __wbg_set_rastertileinternalmaterial_layerReproject: (a: number, b: number, c: number) => void;
|
|
2480
|
+
readonly __wbg_set_rastertileinternalmaterial_lit: (a: number, b: number) => void;
|
|
2411
2481
|
readonly __wbg_set_rastertileinternalmaterial_logBoundary: (a: number, b: number) => void;
|
|
2412
2482
|
readonly __wbg_set_rastertileinternalmaterial_logarithmic: (a: number, b: number) => void;
|
|
2413
2483
|
readonly __wbg_set_rastertileinternalmaterial_opacities: (a: number, b: number, c: number) => void;
|
|
@@ -2416,6 +2486,7 @@ export interface InitOutput {
|
|
|
2416
2486
|
readonly __wbg_set_rastertileinternalmaterial_shows: (a: number, b: number, c: number) => void;
|
|
2417
2487
|
readonly __wbg_set_rastertileinternalmaterial_terrainLatRange: (a: number, b: number, c: number) => void;
|
|
2418
2488
|
readonly __wbg_set_terrainmaterial_castShadow: (a: number, b: number) => void;
|
|
2489
|
+
readonly __wbg_set_terrainmaterial_lit: (a: number, b: number) => void;
|
|
2419
2490
|
readonly __wbg_set_terrainmaterial_receiveShadow: (a: number, b: number) => void;
|
|
2420
2491
|
readonly __wbg_set_terrainmaterial_show: (a: number, b: number) => void;
|
|
2421
2492
|
readonly __wbg_set_terrainmaterial_showBoundingBox: (a: number, b: number) => void;
|
package/navara_wasm_api.js
CHANGED
|
@@ -2672,13 +2672,6 @@ export class ModelMaterial {
|
|
|
2672
2672
|
const ret = wasm.__wbg_get_modelmaterial_castShadow(this.__wbg_ptr);
|
|
2673
2673
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
2674
2674
|
}
|
|
2675
|
-
/**
|
|
2676
|
-
* @returns {boolean | undefined}
|
|
2677
|
-
*/
|
|
2678
|
-
get clampToGround() {
|
|
2679
|
-
const ret = wasm.__wbg_get_modelmaterial_clampToGround(this.__wbg_ptr);
|
|
2680
|
-
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
2681
|
-
}
|
|
2682
2675
|
/**
|
|
2683
2676
|
* @returns {number | undefined}
|
|
2684
2677
|
*/
|
|
@@ -2746,6 +2739,16 @@ export class ModelMaterial {
|
|
|
2746
2739
|
const ret = wasm.__wbg_get_modelmaterial_ior(this.__wbg_ptr);
|
|
2747
2740
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2748
2741
|
}
|
|
2742
|
+
/**
|
|
2743
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
2744
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
2745
|
+
* the shadow G-buffer keep being written.
|
|
2746
|
+
* @returns {boolean | undefined}
|
|
2747
|
+
*/
|
|
2748
|
+
get lit() {
|
|
2749
|
+
const ret = wasm.__wbg_get_modelmaterial_lit(this.__wbg_ptr);
|
|
2750
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
2751
|
+
}
|
|
2749
2752
|
/**
|
|
2750
2753
|
* @returns {number | undefined}
|
|
2751
2754
|
*/
|
|
@@ -2939,12 +2942,6 @@ export class ModelMaterial {
|
|
|
2939
2942
|
set castShadow(arg0) {
|
|
2940
2943
|
wasm.__wbg_set_modelmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
2941
2944
|
}
|
|
2942
|
-
/**
|
|
2943
|
-
* @param {boolean | null} [arg0]
|
|
2944
|
-
*/
|
|
2945
|
-
set clampToGround(arg0) {
|
|
2946
|
-
wasm.__wbg_set_modelmaterial_clampToGround(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
2947
|
-
}
|
|
2948
2945
|
/**
|
|
2949
2946
|
* @param {number | null} [arg0]
|
|
2950
2947
|
*/
|
|
@@ -3001,6 +2998,15 @@ export class ModelMaterial {
|
|
|
3001
2998
|
set ior(arg0) {
|
|
3002
2999
|
wasm.__wbg_set_modelmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
|
|
3003
3000
|
}
|
|
3001
|
+
/**
|
|
3002
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
3003
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
3004
|
+
* the shadow G-buffer keep being written.
|
|
3005
|
+
* @param {boolean | null} [arg0]
|
|
3006
|
+
*/
|
|
3007
|
+
set lit(arg0) {
|
|
3008
|
+
wasm.__wbg_set_modelmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
3009
|
+
}
|
|
3004
3010
|
/**
|
|
3005
3011
|
* @param {number | null} [arg0]
|
|
3006
3012
|
*/
|
|
@@ -3876,6 +3882,16 @@ export class PolygonMaterial {
|
|
|
3876
3882
|
const ret = wasm.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);
|
|
3877
3883
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
3878
3884
|
}
|
|
3885
|
+
/**
|
|
3886
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
3887
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
3888
|
+
* the shadow G-buffer keep being written.
|
|
3889
|
+
* @returns {boolean | undefined}
|
|
3890
|
+
*/
|
|
3891
|
+
get lit() {
|
|
3892
|
+
const ret = wasm.__wbg_get_polygonmaterial_lit(this.__wbg_ptr);
|
|
3893
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3894
|
+
}
|
|
3879
3895
|
/**
|
|
3880
3896
|
* Need to enable `transparent`.
|
|
3881
3897
|
* @returns {number | undefined}
|
|
@@ -4138,6 +4154,15 @@ export class PolygonMaterial {
|
|
|
4138
4154
|
set ior(arg0) {
|
|
4139
4155
|
wasm.__wbg_set_polygonmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
|
|
4140
4156
|
}
|
|
4157
|
+
/**
|
|
4158
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
4159
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
4160
|
+
* the shadow G-buffer keep being written.
|
|
4161
|
+
* @param {boolean | null} [arg0]
|
|
4162
|
+
*/
|
|
4163
|
+
set lit(arg0) {
|
|
4164
|
+
wasm.__wbg_set_polygonmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
4165
|
+
}
|
|
4141
4166
|
/**
|
|
4142
4167
|
* Need to enable `transparent`.
|
|
4143
4168
|
* @param {number | null} [arg0]
|
|
@@ -4829,6 +4854,16 @@ export class PolylineMaterial {
|
|
|
4829
4854
|
const ret = wasm.__wbg_get_polylinematerial_height(this.__wbg_ptr);
|
|
4830
4855
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
4831
4856
|
}
|
|
4857
|
+
/**
|
|
4858
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
4859
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
4860
|
+
* the shadow G-buffer keep being written.
|
|
4861
|
+
* @returns {boolean | undefined}
|
|
4862
|
+
*/
|
|
4863
|
+
get lit() {
|
|
4864
|
+
const ret = wasm.__wbg_get_polylinematerial_lit(this.__wbg_ptr);
|
|
4865
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
4866
|
+
}
|
|
4832
4867
|
/**
|
|
4833
4868
|
* Maximum line width in pixels, clamping the rendered width regardless of zoom level.
|
|
4834
4869
|
* Smaller values are cheaper to render as they reduce fragment shader overdraw.
|
|
@@ -4975,6 +5010,15 @@ export class PolylineMaterial {
|
|
|
4975
5010
|
set height(arg0) {
|
|
4976
5011
|
wasm.__wbg_set_polylinematerial_height(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
|
|
4977
5012
|
}
|
|
5013
|
+
/**
|
|
5014
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
5015
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
5016
|
+
* the shadow G-buffer keep being written.
|
|
5017
|
+
* @param {boolean | null} [arg0]
|
|
5018
|
+
*/
|
|
5019
|
+
set lit(arg0) {
|
|
5020
|
+
wasm.__wbg_set_polylinematerial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
5021
|
+
}
|
|
4978
5022
|
/**
|
|
4979
5023
|
* Maximum line width in pixels, clamping the rendered width regardless of zoom level.
|
|
4980
5024
|
* Smaller values are cheaper to render as they reduce fragment shader overdraw.
|
|
@@ -5287,6 +5331,16 @@ export class RasterTileInternalMaterial {
|
|
|
5287
5331
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5288
5332
|
return v1;
|
|
5289
5333
|
}
|
|
5334
|
+
/**
|
|
5335
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
5336
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
5337
|
+
* the shadow G-buffer keep being written.
|
|
5338
|
+
* @returns {boolean | undefined}
|
|
5339
|
+
*/
|
|
5340
|
+
get lit() {
|
|
5341
|
+
const ret = wasm.__wbg_get_rastertileinternalmaterial_lit(this.__wbg_ptr);
|
|
5342
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
5343
|
+
}
|
|
5290
5344
|
/**
|
|
5291
5345
|
* @returns {number}
|
|
5292
5346
|
*/
|
|
@@ -5515,6 +5569,15 @@ export class RasterTileInternalMaterial {
|
|
|
5515
5569
|
const len0 = WASM_VECTOR_LEN;
|
|
5516
5570
|
wasm.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr, ptr0, len0);
|
|
5517
5571
|
}
|
|
5572
|
+
/**
|
|
5573
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
5574
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
5575
|
+
* the shadow G-buffer keep being written.
|
|
5576
|
+
* @param {boolean | null} [arg0]
|
|
5577
|
+
*/
|
|
5578
|
+
set lit(arg0) {
|
|
5579
|
+
wasm.__wbg_set_rastertileinternalmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
5580
|
+
}
|
|
5518
5581
|
/**
|
|
5519
5582
|
* @param {number} arg0
|
|
5520
5583
|
*/
|
|
@@ -5833,6 +5896,16 @@ export class TerrainMaterial {
|
|
|
5833
5896
|
const ret = wasm.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);
|
|
5834
5897
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
5835
5898
|
}
|
|
5899
|
+
/**
|
|
5900
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
5901
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
5902
|
+
* the shadow G-buffer keep being written.
|
|
5903
|
+
* @returns {boolean | undefined}
|
|
5904
|
+
*/
|
|
5905
|
+
get lit() {
|
|
5906
|
+
const ret = wasm.__wbg_get_terrainmaterial_lit(this.__wbg_ptr);
|
|
5907
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
5908
|
+
}
|
|
5836
5909
|
/**
|
|
5837
5910
|
* @returns {boolean | undefined}
|
|
5838
5911
|
*/
|
|
@@ -5878,6 +5951,15 @@ export class TerrainMaterial {
|
|
|
5878
5951
|
set castShadow(arg0) {
|
|
5879
5952
|
wasm.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
5880
5953
|
}
|
|
5954
|
+
/**
|
|
5955
|
+
* Applies the lighting equation to the color output. When `false` the
|
|
5956
|
+
* material outputs plain albedo (for deferred lighting) while normals and
|
|
5957
|
+
* the shadow G-buffer keep being written.
|
|
5958
|
+
* @param {boolean | null} [arg0]
|
|
5959
|
+
*/
|
|
5960
|
+
set lit(arg0) {
|
|
5961
|
+
wasm.__wbg_set_terrainmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
5962
|
+
}
|
|
5881
5963
|
/**
|
|
5882
5964
|
* @param {boolean | null} [arg0]
|
|
5883
5965
|
*/
|
|
@@ -7418,6 +7500,11 @@ export function angleToRadian(degree) {
|
|
|
7418
7500
|
* module docs); `view` and `proj` are column-major 4×4 matrices (16 values each).
|
|
7419
7501
|
* `padding_px` pads every box; `hysteresis_px` is the collision-test shrink
|
|
7420
7502
|
* applied only to currently-shown labels.
|
|
7503
|
+
*
|
|
7504
|
+
* The result is *hidden-by-default*: only a label that claimed space inside the
|
|
7505
|
+
* tracked area (viewport + grid margin) comes back shown. Off-screen and
|
|
7506
|
+
* GPU-culled labels stay hidden so they cannot fade in unseen and then pan into
|
|
7507
|
+
* view at full opacity.
|
|
7421
7508
|
* @param {Float64Array} candidates
|
|
7422
7509
|
* @param {Float64Array} view
|
|
7423
7510
|
* @param {Float64Array} proj
|
package/navara_wasm_api_bg.wasm
CHANGED
|
Binary file
|