isard 1.9.0 → 1.10.0
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/CHANGELOG.md +50 -0
- package/README.md +9 -4
- package/dist/basemap/vectortiles/requests.d.ts +8 -1
- package/dist/basemap/vectortiles/requests.js +32 -4
- package/dist/basemap/vectortiles/requests.js.map +1 -1
- package/dist/basemap/vectortiles/vectors.d.ts +8 -1
- package/dist/basemap/vectortiles/vectors.js +26 -2
- package/dist/basemap/vectortiles/vectors.js.map +1 -1
- package/dist/basemap/vectortiles.d.ts +2 -1
- package/dist/basemap/vectortiles.js +3 -1
- package/dist/basemap/vectortiles.js.map +1 -1
- package/dist/basemap.worker.js +2 -2
- package/dist/basemap.worker.js.map +4 -4
- package/dist/bind/layers.js +3 -0
- package/dist/bind/layers.js.map +1 -1
- package/dist/data/tileset.d.ts +21 -0
- package/dist/data/tileset.js +101 -0
- package/dist/data/tileset.js.map +1 -0
- package/dist/decoder.worker.js +3 -3
- package/dist/decoder.worker.js.map +3 -3
- package/dist/engine-loader.d.ts +2 -2
- package/dist/engine-loader.js +9 -3
- package/dist/engine-loader.js.map +1 -1
- package/dist/isard_bg.wasm +0 -0
- package/dist/isard_core_bg.wasm +0 -0
- package/dist/isard_tess_bg.wasm +0 -0
- package/dist/layers/tiles3d.d.ts +5 -0
- package/dist/layers/tiles3d.js +15 -1
- package/dist/layers/tiles3d.js.map +1 -1
- package/dist/layers/vectors.d.ts +3 -0
- package/dist/layers/vectors.js +4 -0
- package/dist/layers/vectors.js.map +1 -1
- package/dist/map.d.ts +10 -0
- package/dist/map.js +23 -2
- package/dist/map.js.map +1 -1
- package/dist/react/VectorGeometry.d.ts +4 -0
- package/dist/react/VectorGeometry.js +6 -3
- package/dist/react/VectorGeometry.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/dist/ui/interaction.d.ts +4 -0
- package/dist/ui/interaction.js +53 -2
- package/dist/ui/interaction.js.map +1 -1
- package/dist/wasm/isard.d.ts +18 -1
- package/dist/wasm/isard.js +28 -2
- package/dist/wasm/isard_core.d.ts +13 -1
- package/dist/wasm/isard_core.js +20 -2
- package/dist/workers/basemap/protocol.d.ts +3 -0
- package/package.json +1 -1
package/dist/wasm/isard_core.js
CHANGED
|
@@ -285,6 +285,12 @@ export class Engine {
|
|
|
285
285
|
const ret = wasm.engine_camera(this.__wbg_ptr);
|
|
286
286
|
return ret;
|
|
287
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* The turns go around the screen center again
|
|
290
|
+
*/
|
|
291
|
+
clearPivot() {
|
|
292
|
+
wasm.engine_clearPivot(this.__wbg_ptr);
|
|
293
|
+
}
|
|
288
294
|
/**
|
|
289
295
|
* Stops loading the tiles of the flight's destination (`preload`)
|
|
290
296
|
*/
|
|
@@ -535,7 +541,7 @@ export class Engine {
|
|
|
535
541
|
wasm.engine_resize(this.__wbg_ptr, width, height, pixel_ratio);
|
|
536
542
|
}
|
|
537
543
|
/**
|
|
538
|
-
* Turns and tilts around the
|
|
544
|
+
* Turns and tilts, in degrees: around the pivot if one is set (`setPivot`), else around the screen center
|
|
539
545
|
* @param {number} bearing
|
|
540
546
|
* @param {number} pitch
|
|
541
547
|
*/
|
|
@@ -1084,6 +1090,18 @@ export class Engine {
|
|
|
1084
1090
|
const len0 = WASM_VECTOR_LEN;
|
|
1085
1091
|
wasm.engine_setNetworkValues(this.__wbg_ptr, id, ptr0, len0);
|
|
1086
1092
|
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Sets the point the next turns and tilts go around (`rotate`): what is drawn under a screen point (CSS
|
|
1095
|
+
* pixels), a roof or a mesh as the relief. Read back from the last frame (a stall): once, where a drag starts.
|
|
1096
|
+
* Returns whether something was drawn there; over nothing, the turns go around the center
|
|
1097
|
+
* @param {number} x
|
|
1098
|
+
* @param {number} y
|
|
1099
|
+
* @returns {boolean}
|
|
1100
|
+
*/
|
|
1101
|
+
setPivot(x, y) {
|
|
1102
|
+
const ret = wasm.engine_setPivot(this.__wbg_ptr, x, y);
|
|
1103
|
+
return ret !== 0;
|
|
1104
|
+
}
|
|
1087
1105
|
/**
|
|
1088
1106
|
* Opacity and saturation (0-1) of a raster layer; nothing for another id
|
|
1089
1107
|
* @param {number} id
|
|
@@ -2636,7 +2654,7 @@ function __wbg_get_imports() {
|
|
|
2636
2654
|
return ret;
|
|
2637
2655
|
},
|
|
2638
2656
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
2639
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2657
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 119, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2640
2658
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_);
|
|
2641
2659
|
return ret;
|
|
2642
2660
|
},
|
|
@@ -94,6 +94,9 @@ export type BasemapWork = {
|
|
|
94
94
|
deepest?: number;
|
|
95
95
|
/** How the buildings' roofs are made (`RoofMode`) */
|
|
96
96
|
roofs?: RoofMode;
|
|
97
|
+
/** Where 3D buildings stand in place of the raised ones (`vectors({ buildings3d })`): boxes meeting the tile,
|
|
98
|
+
* west, south, east and north (degrees) one after the other; a raised building standing in one is left out */
|
|
99
|
+
covered?: number[];
|
|
97
100
|
styles?: boolean;
|
|
98
101
|
/** With the prisms of the fills (a relief under them) */
|
|
99
102
|
prism?: boolean;
|
package/package.json
CHANGED