@navaramap/engine-api 0.0.3 → 0.0.5
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 +5 -4
- package/navara_wasm_api.js +5 -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
|
/**
|
|
@@ -1899,6 +1897,11 @@ export function angleToRadian(degree: number): number;
|
|
|
1899
1897
|
* module docs); `view` and `proj` are column-major 4×4 matrices (16 values each).
|
|
1900
1898
|
* `padding_px` pads every box; `hysteresis_px` is the collision-test shrink
|
|
1901
1899
|
* applied only to currently-shown labels.
|
|
1900
|
+
*
|
|
1901
|
+
* The result is *hidden-by-default*: only a label that claimed space inside the
|
|
1902
|
+
* tracked area (viewport + grid margin) comes back shown. Off-screen and
|
|
1903
|
+
* GPU-culled labels stay hidden so they cannot fade in unseen and then pan into
|
|
1904
|
+
* view at full opacity.
|
|
1902
1905
|
*/
|
|
1903
1906
|
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
1907
|
|
|
@@ -2089,7 +2092,6 @@ export interface InitOutput {
|
|
|
2089
2092
|
readonly __wbg_get_modelmaterial_animationSpeed: (a: number) => number;
|
|
2090
2093
|
readonly __wbg_get_modelmaterial_applyWaterNormal: (a: number) => number;
|
|
2091
2094
|
readonly __wbg_get_modelmaterial_castShadow: (a: number) => number;
|
|
2092
|
-
readonly __wbg_get_modelmaterial_clampToGround: (a: number) => number;
|
|
2093
2095
|
readonly __wbg_get_modelmaterial_color: (a: number) => number;
|
|
2094
2096
|
readonly __wbg_get_modelmaterial_creaseNormalAngle: (a: number) => number;
|
|
2095
2097
|
readonly __wbg_get_modelmaterial_depthWrite: (a: number) => number;
|
|
@@ -2314,7 +2316,6 @@ export interface InitOutput {
|
|
|
2314
2316
|
readonly __wbg_set_modelmaterial_animationSpeed: (a: number, b: number) => void;
|
|
2315
2317
|
readonly __wbg_set_modelmaterial_applyWaterNormal: (a: number, b: number) => void;
|
|
2316
2318
|
readonly __wbg_set_modelmaterial_castShadow: (a: number, b: number) => void;
|
|
2317
|
-
readonly __wbg_set_modelmaterial_clampToGround: (a: number, b: number) => void;
|
|
2318
2319
|
readonly __wbg_set_modelmaterial_color: (a: number, b: number) => void;
|
|
2319
2320
|
readonly __wbg_set_modelmaterial_creaseNormalAngle: (a: number, b: number) => void;
|
|
2320
2321
|
readonly __wbg_set_modelmaterial_depthWrite: (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
|
*/
|
|
@@ -2939,12 +2932,6 @@ export class ModelMaterial {
|
|
|
2939
2932
|
set castShadow(arg0) {
|
|
2940
2933
|
wasm.__wbg_set_modelmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
2941
2934
|
}
|
|
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
2935
|
/**
|
|
2949
2936
|
* @param {number | null} [arg0]
|
|
2950
2937
|
*/
|
|
@@ -7418,6 +7405,11 @@ export function angleToRadian(degree) {
|
|
|
7418
7405
|
* module docs); `view` and `proj` are column-major 4×4 matrices (16 values each).
|
|
7419
7406
|
* `padding_px` pads every box; `hysteresis_px` is the collision-test shrink
|
|
7420
7407
|
* applied only to currently-shown labels.
|
|
7408
|
+
*
|
|
7409
|
+
* The result is *hidden-by-default*: only a label that claimed space inside the
|
|
7410
|
+
* tracked area (viewport + grid margin) comes back shown. Off-screen and
|
|
7411
|
+
* GPU-culled labels stay hidden so they cannot fade in unseen and then pan into
|
|
7412
|
+
* view at full opacity.
|
|
7421
7413
|
* @param {Float64Array} candidates
|
|
7422
7414
|
* @param {Float64Array} view
|
|
7423
7415
|
* @param {Float64Array} proj
|
package/navara_wasm_api_bg.wasm
CHANGED
|
Binary file
|