@sanox/sangine-core 0.4.5 → 0.5.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.
Files changed (25) hide show
  1. package/dist/gen-types.d.ts +146 -24
  2. package/dist/gen-types.d.ts.map +1 -1
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.es.js +106 -90
  5. package/dist/rendererService.d.ts +11 -7
  6. package/dist/rendererService.d.ts.map +1 -1
  7. package/dist/wasm/decode/{wasm_decode.bf116aa6.js → wasm_decode.b6df9f4e.js} +1 -1
  8. package/dist/wasm/decode/{wasm_decode_bg.bf116aa6.wasm → wasm_decode_bg.b6df9f4e.wasm} +0 -0
  9. package/dist/wasm/sangine/{sangine.ecedf539.js → sangine.3dd43ad4.js} +91 -44
  10. package/dist/wasm/sangine/sangine.d.ts +20 -8
  11. package/dist/wasm/sangine/{sangine_bg.ecedf539.wasm → sangine_bg.3dd43ad4.wasm} +0 -0
  12. package/dist/wasm/sangine/sangine_bg.wasm.d.ts +7 -3
  13. package/dist/wasm-hashes/decode.d.ts +1 -1
  14. package/dist/wasm-hashes/sangine.d.ts +1 -1
  15. package/package.json +1 -1
  16. package/dist/wasm/basis-decode/snippets/basisu_c_sys-273c0aeb51b100af/wasm/basisu_transcoder.js +0 -2
  17. package/dist/wasm/basis-decode/snippets/basisu_c_sys-273c0aeb51b100af/wasm/basisu_transcoder.wasm +0 -0
  18. package/dist/wasm/basis-decode/wasm_basis_decode.a8b7eebd.js +0 -553
  19. package/dist/wasm/basis-decode/wasm_basis_decode.d.ts +0 -58
  20. package/dist/wasm/basis-decode/wasm_basis_decode_bg.a8b7eebd.wasm +0 -0
  21. package/dist/wasm/basis-decode/wasm_basis_decode_bg.wasm.d.ts +0 -16
  22. package/dist/wasm/sbo-decode/wasm_sbo_decode.5c359661.js +0 -184
  23. package/dist/wasm/sbo-decode/wasm_sbo_decode.d.ts +0 -37
  24. package/dist/wasm/sbo-decode/wasm_sbo_decode_bg.5c359661.wasm +0 -0
  25. package/dist/wasm/sbo-decode/wasm_sbo_decode_bg.wasm.d.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"rendererService.d.ts","sourceRoot":"","sources":["../src/rendererService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,KAAK,EACL,YAAY,EACZ,KAAK,EACL,aAAa,EACb,UAAU,EACX,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAK1D,KAAK,qBAAqB,GAAG,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;AACzD,KAAK,oBAAoB,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;AAClD,KAAK,0BAA0B,GAAG,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAA;AACpE,KAAK,yBAAyB,GAAG,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAA;AAC/D,KAAK,YAAY,GAAG,MAAM,IAAI,CAAA;AAE9B,UAAU,WAAW;IACnB,aAAa,EAAE,qBAAqB,CAAA;IACpC,YAAY,EAAE,oBAAoB,CAAA;IAClC,kBAAkB,EAAE,0BAA0B,CAAA;IAC9C,iBAAiB,EAAE,yBAAyB,CAAA;IAC5C,sBAAsB,EAAE,YAAY,CAAA;CACrC;AAMD,qBAAa,eAAe;IAcd,OAAO,CAAC,MAAM;IAb1B,OAAO,CAAC,IAAI,CAA2B;IACvC,OAAO,CAAC,gBAAgB,CAA4C;IACpE,OAAO,CAAC,kBAAkB,CAAsC;IAChE,OAAO,CAAC,yBAAyB,CAAmC;IACpE,OAAO,CAAC,4BAA4B,CAAyC;IAC7E,OAAO,CAAC,mCAAmC,CAAsC;IACjF,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,UAAU,CAAC,CAA2C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AKxE,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAKpD,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;IAK5D,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKvD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAKhE,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS;IAK1C,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS;IAK/C,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKlC,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IAezD,OAAO;CAGR"}
@@ -551,7 +551,7 @@ async function __wbg_init(module_or_path) {
551
551
  }
552
552
 
553
553
  if (module_or_path === undefined) {
554
- module_or_path = new URL('wasm_decode_bg.bf116aa6.wasm', import.meta.url);
554
+ module_or_path = new URL('wasm_decode_bg.b6df9f4e.wasm', import.meta.url);
555
555
  }
556
556
  const imports = __wbg_get_imports();
557
557
 
@@ -13,12 +13,87 @@ export function animate_to(window_id, camera_target) {
13
13
 
14
14
  /**
15
15
  * @param {number} window_id
16
- * @param {string} route_id
16
+ * @param {string} annotation_id
17
17
  */
18
- export function animate_to_route(window_id, route_id) {
19
- const ptr0 = passStringToWasm0(route_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
18
+ export function animate_to_annotation(window_id, annotation_id) {
19
+ const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
20
20
  const len0 = WASM_VECTOR_LEN;
21
- const ret = wasm.animate_to_route(window_id, ptr0, len0);
21
+ const ret = wasm.animate_to_annotation(window_id, ptr0, len0);
22
+ if (ret[1]) {
23
+ throw takeFromExternrefTable0(ret[0]);
24
+ }
25
+ }
26
+
27
+ /**
28
+ * @param {number} window_id
29
+ */
30
+ export function annotation_finish(window_id) {
31
+ const ret = wasm.annotation_finish(window_id);
32
+ if (ret[1]) {
33
+ throw takeFromExternrefTable0(ret[0]);
34
+ }
35
+ }
36
+
37
+ /**
38
+ * @param {number} window_id
39
+ * @param {string} annotation_id
40
+ * @param {any} annotation
41
+ */
42
+ export function annotation_insert(window_id, annotation_id, annotation) {
43
+ const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
44
+ const len0 = WASM_VECTOR_LEN;
45
+ const ret = wasm.annotation_insert(window_id, ptr0, len0, annotation);
46
+ if (ret[1]) {
47
+ throw takeFromExternrefTable0(ret[0]);
48
+ }
49
+ }
50
+
51
+ /**
52
+ * @param {number} window_id
53
+ * @param {string} annotation_id
54
+ */
55
+ export function annotation_remove(window_id, annotation_id) {
56
+ const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
57
+ const len0 = WASM_VECTOR_LEN;
58
+ const ret = wasm.annotation_remove(window_id, ptr0, len0);
59
+ if (ret[1]) {
60
+ throw takeFromExternrefTable0(ret[0]);
61
+ }
62
+ }
63
+
64
+ /**
65
+ * @param {number} window_id
66
+ */
67
+ export function annotation_remove_last_point(window_id) {
68
+ const ret = wasm.annotation_remove_last_point(window_id);
69
+ if (ret[1]) {
70
+ throw takeFromExternrefTable0(ret[0]);
71
+ }
72
+ }
73
+
74
+ /**
75
+ * @param {number} window_id
76
+ * @param {string} annotation_id
77
+ * @param {any} kind
78
+ */
79
+ export function annotation_set_kind(window_id, annotation_id, kind) {
80
+ const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
81
+ const len0 = WASM_VECTOR_LEN;
82
+ const ret = wasm.annotation_set_kind(window_id, ptr0, len0, kind);
83
+ if (ret[1]) {
84
+ throw takeFromExternrefTable0(ret[0]);
85
+ }
86
+ }
87
+
88
+ /**
89
+ * @param {number} window_id
90
+ * @param {string} annotation_id
91
+ * @param {any} props
92
+ */
93
+ export function annotation_set_props(window_id, annotation_id, props) {
94
+ const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
95
+ const len0 = WASM_VECTOR_LEN;
96
+ const ret = wasm.annotation_set_props(window_id, ptr0, len0, props);
22
97
  if (ret[1]) {
23
98
  throw takeFromExternrefTable0(ret[0]);
24
99
  }
@@ -139,34 +214,6 @@ export function set_render_quality(window_id, quality) {
139
214
  }
140
215
  }
141
216
 
142
- /**
143
- * @param {number} window_id
144
- * @param {string} route_id
145
- * @param {number} highlight
146
- */
147
- export function set_route_highlight(window_id, route_id, highlight) {
148
- const ptr0 = passStringToWasm0(route_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
149
- const len0 = WASM_VECTOR_LEN;
150
- const ret = wasm.set_route_highlight(window_id, ptr0, len0, highlight);
151
- if (ret[1]) {
152
- throw takeFromExternrefTable0(ret[0]);
153
- }
154
- }
155
-
156
- /**
157
- * @param {number} window_id
158
- * @param {string} route_id
159
- * @param {number} visible
160
- */
161
- export function set_route_visible(window_id, route_id, visible) {
162
- const ptr0 = passStringToWasm0(route_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
163
- const len0 = WASM_VECTOR_LEN;
164
- const ret = wasm.set_route_visible(window_id, ptr0, len0, visible);
165
- if (ret[1]) {
166
- throw takeFromExternrefTable0(ret[0]);
167
- }
168
- }
169
-
170
217
  /**
171
218
  * @param {number} window_id
172
219
  * @param {any} properties
@@ -2705,57 +2752,57 @@ function __wbg_get_imports() {
2705
2752
  arg0.writeTexture(arg1, arg2, arg3, arg4);
2706
2753
  }, arguments); },
2707
2754
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2708
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2755
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2709
2756
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b);
2710
2757
  return ret;
2711
2758
  },
2712
2759
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
2713
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3910, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2760
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3972, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2714
2761
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd8590da73942d3e0);
2715
2762
  return ret;
2716
2763
  },
2717
2764
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2718
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 3833, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2765
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 1642, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2719
2766
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h6ff3e7511bd758a3);
2720
2767
  return ret;
2721
2768
  },
2722
2769
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2723
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2770
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2724
2771
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_3);
2725
2772
  return ret;
2726
2773
  },
2727
2774
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
2728
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2775
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2729
2776
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_4);
2730
2777
  return ret;
2731
2778
  },
2732
2779
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
2733
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2780
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2734
2781
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_5);
2735
2782
  return ret;
2736
2783
  },
2737
2784
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
2738
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2785
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2739
2786
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_6);
2740
2787
  return ret;
2741
2788
  },
2742
2789
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2743
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2790
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2744
2791
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_7);
2745
2792
  return ret;
2746
2793
  },
2747
2794
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
2748
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2795
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2749
2796
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_8);
2750
2797
  return ret;
2751
2798
  },
2752
2799
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
2753
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 3826, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2800
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2754
2801
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_9);
2755
2802
  return ret;
2756
2803
  },
2757
2804
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
2758
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3831, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2805
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2759
2806
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdb7f99c0126c5c28);
2760
2807
  return ret;
2761
2808
  },
@@ -3324,7 +3371,7 @@ async function __wbg_init(module_or_path) {
3324
3371
  }
3325
3372
 
3326
3373
  if (module_or_path === undefined) {
3327
- module_or_path = new URL('sangine_bg.ecedf539.wasm', import.meta.url);
3374
+ module_or_path = new URL('sangine_bg.3dd43ad4.wasm', import.meta.url);
3328
3375
  }
3329
3376
  const imports = __wbg_get_imports();
3330
3377
 
@@ -3,7 +3,19 @@
3
3
 
4
4
  export function animate_to(window_id: number, camera_target: any): void;
5
5
 
6
- export function animate_to_route(window_id: number, route_id: string): void;
6
+ export function animate_to_annotation(window_id: number, annotation_id: string): void;
7
+
8
+ export function annotation_finish(window_id: number): void;
9
+
10
+ export function annotation_insert(window_id: number, annotation_id: string, annotation: any): void;
11
+
12
+ export function annotation_remove(window_id: number, annotation_id: string): void;
13
+
14
+ export function annotation_remove_last_point(window_id: number): void;
15
+
16
+ export function annotation_set_kind(window_id: number, annotation_id: string, kind: any): void;
17
+
18
+ export function annotation_set_props(window_id: number, annotation_id: string, props: any): void;
7
19
 
8
20
  export function create_window(container_id: string, scene: any, rendering_settings?: any | null): number;
9
21
 
@@ -30,10 +42,6 @@ export function set_north_correction(window_id: number, north_correction: number
30
42
 
31
43
  export function set_render_quality(window_id: number, quality: any): void;
32
44
 
33
- export function set_route_highlight(window_id: number, route_id: string, highlight: number): void;
34
-
35
- export function set_route_visible(window_id: number, route_id: string, visible: number): void;
36
-
37
45
  export function set_sun_properties(window_id: number, properties: any): void;
38
46
 
39
47
  export function set_window_action(window_id: number, action: any): void;
@@ -45,7 +53,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
45
53
  export interface InitOutput {
46
54
  readonly memory: WebAssembly.Memory;
47
55
  readonly animate_to: (a: number, b: any) => [number, number];
48
- readonly animate_to_route: (a: number, b: number, c: number) => [number, number];
56
+ readonly animate_to_annotation: (a: number, b: number, c: number) => [number, number];
57
+ readonly annotation_finish: (a: number) => [number, number];
58
+ readonly annotation_insert: (a: number, b: number, c: number, d: any) => [number, number];
59
+ readonly annotation_remove: (a: number, b: number, c: number) => [number, number];
60
+ readonly annotation_remove_last_point: (a: number) => [number, number];
61
+ readonly annotation_set_kind: (a: number, b: number, c: number, d: any) => [number, number];
62
+ readonly annotation_set_props: (a: number, b: number, c: number, d: any) => [number, number];
49
63
  readonly create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
50
64
  readonly destroy_window: (a: number) => [number, number];
51
65
  readonly read_camera_pos: (a: number) => [number, number, number];
@@ -56,8 +70,6 @@ export interface InitOutput {
56
70
  readonly set_lighting_mode: (a: number, b: any) => [number, number];
57
71
  readonly set_north_correction: (a: number, b: number) => [number, number];
58
72
  readonly set_render_quality: (a: number, b: any) => [number, number];
59
- readonly set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
60
- readonly set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
61
73
  readonly set_sun_properties: (a: number, b: any) => [number, number];
62
74
  readonly set_window_action: (a: number, b: any) => [number, number];
63
75
  readonly set_window_scale: (a: number, b: number) => [number, number];
@@ -2,7 +2,13 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const animate_to: (a: number, b: any) => [number, number];
5
- export const animate_to_route: (a: number, b: number, c: number) => [number, number];
5
+ export const animate_to_annotation: (a: number, b: number, c: number) => [number, number];
6
+ export const annotation_finish: (a: number) => [number, number];
7
+ export const annotation_insert: (a: number, b: number, c: number, d: any) => [number, number];
8
+ export const annotation_remove: (a: number, b: number, c: number) => [number, number];
9
+ export const annotation_remove_last_point: (a: number) => [number, number];
10
+ export const annotation_set_kind: (a: number, b: number, c: number, d: any) => [number, number];
11
+ export const annotation_set_props: (a: number, b: number, c: number, d: any) => [number, number];
6
12
  export const create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
7
13
  export const destroy_window: (a: number) => [number, number];
8
14
  export const read_camera_pos: (a: number) => [number, number, number];
@@ -13,8 +19,6 @@ export const set_gpu_memory_budget_mb: (a: number, b: number) => [number, number
13
19
  export const set_lighting_mode: (a: number, b: any) => [number, number];
14
20
  export const set_north_correction: (a: number, b: number) => [number, number];
15
21
  export const set_render_quality: (a: number, b: any) => [number, number];
16
- export const set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
17
- export const set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
18
22
  export const set_sun_properties: (a: number, b: any) => [number, number];
19
23
  export const set_window_action: (a: number, b: any) => [number, number];
20
24
  export const set_window_scale: (a: number, b: number) => [number, number];
@@ -1,2 +1,2 @@
1
- export declare const DECODE_HASH = "bf116aa6";
1
+ export declare const DECODE_HASH = "b6df9f4e";
2
2
  //# sourceMappingURL=decode.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const SANGINE_HASH = "ecedf539";
1
+ export declare const SANGINE_HASH = "3dd43ad4";
2
2
  //# sourceMappingURL=sangine.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanox/sangine-core",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "description": "Sangine core renderer runtime (WASM + workers)",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,2 +0,0 @@
1
- async function Module(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIRONMENT_IS_WEB=!!globalThis.window;var ENVIRONMENT_IS_WORKER=!!globalThis.WorkerGlobalScope;var ENVIRONMENT_IS_NODE=globalThis.process?.versions?.node&&globalThis.process?.type!="renderer";if(ENVIRONMENT_IS_NODE){const{createRequire}=await import("node:module");var require=createRequire(import.meta.url)}var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var _scriptName=import.meta.url;var scriptDirectory="";function locateFile(path){return scriptDirectory+path}var readAsync,readBinary;if(ENVIRONMENT_IS_NODE){var fs=require("node:fs");if(_scriptName.startsWith("file:")){scriptDirectory=require("node:path").dirname(require("node:url").fileURLToPath(_scriptName))+"/"}readBinary=filename=>{filename=isFileURI(filename)?new URL(filename):filename;var ret=fs.readFileSync(filename);return ret};readAsync=async(filename,binary=true)=>{filename=isFileURI(filename)?new URL(filename):filename;var ret=fs.readFileSync(filename,binary?undefined:"utf8");return ret};if(process.argv.length>1){thisProgram=process.argv[1].replace(/\\/g,"/")}arguments_=process.argv.slice(2);quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}{if(ENVIRONMENT_IS_WORKER){readBinary=url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=async url=>{if(isFileURI(url)){return new Promise((resolve,reject)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){resolve(xhr.response);return}reject(xhr.status)};xhr.onerror=reject;xhr.send(null)})}var response=await fetch(url,{credentials:"same-origin"});if(response.ok){return response.arrayBuffer()}throw new Error(response.status+" : "+response.url)}}}else{}var out=console.log.bind(console);var err=console.error.bind(console);var wasmBinary;var ABORT=false;var EXITSTATUS;var isFileURI=filename=>filename.startsWith("file://");var readyPromiseResolve,readyPromiseReject;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var HEAP64,HEAPU64;var runtimeInitialized=false;function updateMemoryViews(){var b=wasmMemory.buffer;HEAP8=new Int8Array(b);HEAP16=new Int16Array(b);Module["HEAPU8"]=HEAPU8=new Uint8Array(b);HEAPU16=new Uint16Array(b);HEAP32=new Int32Array(b);HEAPU32=new Uint32Array(b);HEAPF32=new Float32Array(b);HEAPF64=new Float64Array(b);HEAP64=new BigInt64Array(b);HEAPU64=new BigUint64Array(b)}function preRun(){}function initRuntime(){runtimeInitialized=true}function postRun(){}function abort(what){what="Aborted("+what+")";err(what);ABORT=true;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject?.(e);throw e}var wasmBinaryFile;function findWasmBinary(){if(Module["locateFile"]){return locateFile("basisu_transcoder.wasm")}return new URL("basisu_transcoder.wasm",import.meta.url).href}function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(binaryFile){if(!wasmBinary){try{var response=await readAsync(binaryFile);return new Uint8Array(response)}catch{}}return getBinarySync(binaryFile)}async function instantiateArrayBuffer(binaryFile,imports){try{var binary=await getWasmBinary(binaryFile);var instance=await WebAssembly.instantiate(binary,imports);return instance}catch(reason){err(`failed to asynchronously prepare wasm: ${reason}`);abort(reason)}}async function instantiateAsync(binary,binaryFile,imports){if(!binary&&!isFileURI(binaryFile)&&!ENVIRONMENT_IS_NODE){try{var response=fetch(binaryFile,{credentials:"same-origin"});var instantiationResult=await WebAssembly.instantiateStreaming(response,imports);return instantiationResult}catch(reason){err(`wasm streaming compile failed: ${reason}`);err("falling back to ArrayBuffer instantiation")}}return instantiateArrayBuffer(binaryFile,imports)}function getWasmImports(){var imports={a:wasmImports};return imports}async function createWasm(){function receiveInstance(instance,module){wasmExports=instance.exports;assignWasmExports(wasmExports);updateMemoryViews();return wasmExports}function receiveInstantiationResult(result){return receiveInstance(result["instance"])}var info=getWasmImports();wasmBinaryFile??=findWasmBinary();var result=await instantiateAsync(wasmBinary,wasmBinaryFile,info);var exports=receiveInstantiationResult(result);return exports}class ExitStatus{name="ExitStatus";constructor(status){this.message=`Program terminated with exit(${status})`;this.status=status}}var UTF8Decoder=globalThis.TextDecoder&&new TextDecoder;var findStringEnd=(heapOrArray,idx,maxBytesToRead,ignoreNul)=>{var maxIdx=idx+maxBytesToRead;if(ignoreNul)return maxIdx;while(heapOrArray[idx]&&!(idx>=maxIdx))++idx;return idx};var UTF8ArrayToString=(heapOrArray,idx=0,maxBytesToRead,ignoreNul)=>{var endPtr=findStringEnd(heapOrArray,idx,maxBytesToRead,ignoreNul);if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str="";while(idx<endPtr){var u0=heapOrArray[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead,ignoreNul)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead,ignoreNul):"";var ___assert_fail=(condition,filename,line,func)=>abort(`Assertion failed: ${UTF8ToString(condition)}, at: `+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"]);var __abort_js=()=>abort("");var runtimeKeepaliveCounter=0;var __emscripten_runtime_keepalive_clear=()=>{runtimeKeepaliveCounter=0};var timers={};var handleException=e=>{if(e instanceof ExitStatus||e=="unwind"){return EXITSTATUS}quit_(1,e)};var keepRuntimeAlive=()=>true;var _proc_exit=code=>{EXITSTATUS=code;if(!keepRuntimeAlive()){ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=(status,implicit)=>{EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var maybeExit=()=>{if(!keepRuntimeAlive()){try{_exit(EXITSTATUS)}catch(e){handleException(e)}}};var callUserCallback=func=>{if(ABORT){return}try{return func()}catch(e){handleException(e)}finally{maybeExit()}};var _emscripten_get_now=()=>performance.now();var __setitimer_js=(which,timeout_ms)=>{if(timers[which]){clearTimeout(timers[which].id);delete timers[which]}if(!timeout_ms)return 0;var id=setTimeout(()=>{delete timers[which];callUserCallback(()=>__emscripten_timeout(which,_emscripten_get_now()))},timeout_ms);timers[which]={id,timeout_ms};return 0};var getHeapMax=()=>2147483648;var alignMemory=(size,alignment)=>Math.ceil(size/alignment)*alignment;var growMemory=size=>{var oldHeapSize=wasmMemory.buffer.byteLength;var pages=(size-oldHeapSize+65535)/65536|0;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignMemory(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var printCharBuffers=[null,[],[]];var printChar=(stream,curr)=>{var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer));buffer.length=0}else{buffer.push(curr)}};var _fd_write=(fd,iov,iovcnt,pnum)=>{var num=0;for(var i=0;i<iovcnt;i++){var ptr=HEAPU32[iov>>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j<len;j++){printChar(fd,HEAPU8[ptr+j])}num+=len}HEAPU32[pnum>>2]=num;return 0};{if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"]}var _bt_get_version,_bt_enable_debug_printf,_bt_init,_bt_alloc,_bt_free,_bt_basis_tex_format_is_xuastc_ldr,_bt_basis_tex_format_is_astc_ldr,_bt_basis_tex_format_get_block_width,_bt_basis_tex_format_get_block_height,_bt_basis_tex_format_is_hdr,_bt_basis_tex_format_is_ldr,_bt_basis_get_bytes_per_block_or_pixel,_bt_basis_transcoder_format_has_alpha,_bt_basis_transcoder_format_is_hdr,_bt_basis_transcoder_format_is_ldr,_bt_basis_transcoder_texture_format_is_astc,_bt_basis_transcoder_format_is_uncompressed,_bt_basis_get_uncompressed_bytes_per_pixel,_bt_basis_get_block_width,_bt_basis_get_block_height,_bt_basis_get_transcoder_texture_format_from_basis_tex_format,_bt_basis_is_format_supported,_bt_basis_compute_transcoded_image_size_in_bytes,_bt_ktx2_open,_bt_ktx2_close,_bt_ktx2_get_width,_bt_ktx2_get_height,_bt_ktx2_get_levels,_bt_ktx2_get_faces,_bt_ktx2_get_layers,_bt_ktx2_get_basis_tex_format,_bt_ktx2_is_etc1s,_bt_ktx2_is_uastc_ldr_4x4,_bt_ktx2_is_hdr,_bt_ktx2_is_hdr_4x4,_bt_ktx2_is_hdr_6x6,_bt_ktx2_is_ldr,_bt_ktx2_is_astc_ldr,_bt_ktx2_is_xuastc_ldr,_bt_ktx2_get_block_width,_bt_ktx2_get_block_height,_bt_ktx2_has_alpha,_bt_ktx2_get_dfd_color_model,_bt_ktx2_get_dfd_color_primaries,_bt_ktx2_get_dfd_transfer_func,_bt_ktx2_is_srgb,_bt_ktx2_get_dfd_flags,_bt_ktx2_get_dfd_total_samples,_bt_ktx2_get_dfd_channel_id0,_bt_ktx2_get_dfd_channel_id1,_bt_ktx2_is_video,_bt_ktx2_get_ldr_hdr_upconversion_nit_multiplier,_bt_ktx2_get_level_orig_width,_bt_ktx2_get_level_orig_height,_bt_ktx2_get_level_actual_width,_bt_ktx2_get_level_actual_height,_bt_ktx2_get_level_num_blocks_x,_bt_ktx2_get_level_num_blocks_y,_bt_ktx2_get_level_total_blocks,_bt_ktx2_get_level_alpha_flag,_bt_ktx2_get_level_iframe_flag,_bt_ktx2_start_transcoding,_bt_ktx2_create_transcode_state,_bt_ktx2_destroy_transcode_state,_bt_ktx2_transcode_image_level,__emscripten_timeout,memory,__indirect_function_table,wasmMemory;function assignWasmExports(wasmExports){_bt_get_version=Module["_bt_get_version"]=wasmExports["i"];_bt_enable_debug_printf=Module["_bt_enable_debug_printf"]=wasmExports["j"];_bt_init=Module["_bt_init"]=wasmExports["k"];_bt_alloc=Module["_bt_alloc"]=wasmExports["l"];_bt_free=Module["_bt_free"]=wasmExports["m"];_bt_basis_tex_format_is_xuastc_ldr=Module["_bt_basis_tex_format_is_xuastc_ldr"]=wasmExports["n"];_bt_basis_tex_format_is_astc_ldr=Module["_bt_basis_tex_format_is_astc_ldr"]=wasmExports["o"];_bt_basis_tex_format_get_block_width=Module["_bt_basis_tex_format_get_block_width"]=wasmExports["p"];_bt_basis_tex_format_get_block_height=Module["_bt_basis_tex_format_get_block_height"]=wasmExports["q"];_bt_basis_tex_format_is_hdr=Module["_bt_basis_tex_format_is_hdr"]=wasmExports["r"];_bt_basis_tex_format_is_ldr=Module["_bt_basis_tex_format_is_ldr"]=wasmExports["s"];_bt_basis_get_bytes_per_block_or_pixel=Module["_bt_basis_get_bytes_per_block_or_pixel"]=wasmExports["t"];_bt_basis_transcoder_format_has_alpha=Module["_bt_basis_transcoder_format_has_alpha"]=wasmExports["u"];_bt_basis_transcoder_format_is_hdr=Module["_bt_basis_transcoder_format_is_hdr"]=wasmExports["v"];_bt_basis_transcoder_format_is_ldr=Module["_bt_basis_transcoder_format_is_ldr"]=wasmExports["w"];_bt_basis_transcoder_texture_format_is_astc=Module["_bt_basis_transcoder_texture_format_is_astc"]=wasmExports["x"];_bt_basis_transcoder_format_is_uncompressed=Module["_bt_basis_transcoder_format_is_uncompressed"]=wasmExports["y"];_bt_basis_get_uncompressed_bytes_per_pixel=Module["_bt_basis_get_uncompressed_bytes_per_pixel"]=wasmExports["z"];_bt_basis_get_block_width=Module["_bt_basis_get_block_width"]=wasmExports["A"];_bt_basis_get_block_height=Module["_bt_basis_get_block_height"]=wasmExports["B"];_bt_basis_get_transcoder_texture_format_from_basis_tex_format=Module["_bt_basis_get_transcoder_texture_format_from_basis_tex_format"]=wasmExports["C"];_bt_basis_is_format_supported=Module["_bt_basis_is_format_supported"]=wasmExports["D"];_bt_basis_compute_transcoded_image_size_in_bytes=Module["_bt_basis_compute_transcoded_image_size_in_bytes"]=wasmExports["E"];_bt_ktx2_open=Module["_bt_ktx2_open"]=wasmExports["F"];_bt_ktx2_close=Module["_bt_ktx2_close"]=wasmExports["G"];_bt_ktx2_get_width=Module["_bt_ktx2_get_width"]=wasmExports["H"];_bt_ktx2_get_height=Module["_bt_ktx2_get_height"]=wasmExports["I"];_bt_ktx2_get_levels=Module["_bt_ktx2_get_levels"]=wasmExports["J"];_bt_ktx2_get_faces=Module["_bt_ktx2_get_faces"]=wasmExports["K"];_bt_ktx2_get_layers=Module["_bt_ktx2_get_layers"]=wasmExports["L"];_bt_ktx2_get_basis_tex_format=Module["_bt_ktx2_get_basis_tex_format"]=wasmExports["M"];_bt_ktx2_is_etc1s=Module["_bt_ktx2_is_etc1s"]=wasmExports["N"];_bt_ktx2_is_uastc_ldr_4x4=Module["_bt_ktx2_is_uastc_ldr_4x4"]=wasmExports["O"];_bt_ktx2_is_hdr=Module["_bt_ktx2_is_hdr"]=wasmExports["P"];_bt_ktx2_is_hdr_4x4=Module["_bt_ktx2_is_hdr_4x4"]=wasmExports["Q"];_bt_ktx2_is_hdr_6x6=Module["_bt_ktx2_is_hdr_6x6"]=wasmExports["R"];_bt_ktx2_is_ldr=Module["_bt_ktx2_is_ldr"]=wasmExports["S"];_bt_ktx2_is_astc_ldr=Module["_bt_ktx2_is_astc_ldr"]=wasmExports["T"];_bt_ktx2_is_xuastc_ldr=Module["_bt_ktx2_is_xuastc_ldr"]=wasmExports["U"];_bt_ktx2_get_block_width=Module["_bt_ktx2_get_block_width"]=wasmExports["V"];_bt_ktx2_get_block_height=Module["_bt_ktx2_get_block_height"]=wasmExports["W"];_bt_ktx2_has_alpha=Module["_bt_ktx2_has_alpha"]=wasmExports["X"];_bt_ktx2_get_dfd_color_model=Module["_bt_ktx2_get_dfd_color_model"]=wasmExports["Y"];_bt_ktx2_get_dfd_color_primaries=Module["_bt_ktx2_get_dfd_color_primaries"]=wasmExports["Z"];_bt_ktx2_get_dfd_transfer_func=Module["_bt_ktx2_get_dfd_transfer_func"]=wasmExports["_"];_bt_ktx2_is_srgb=Module["_bt_ktx2_is_srgb"]=wasmExports["$"];_bt_ktx2_get_dfd_flags=Module["_bt_ktx2_get_dfd_flags"]=wasmExports["aa"];_bt_ktx2_get_dfd_total_samples=Module["_bt_ktx2_get_dfd_total_samples"]=wasmExports["ba"];_bt_ktx2_get_dfd_channel_id0=Module["_bt_ktx2_get_dfd_channel_id0"]=wasmExports["ca"];_bt_ktx2_get_dfd_channel_id1=Module["_bt_ktx2_get_dfd_channel_id1"]=wasmExports["da"];_bt_ktx2_is_video=Module["_bt_ktx2_is_video"]=wasmExports["ea"];_bt_ktx2_get_ldr_hdr_upconversion_nit_multiplier=Module["_bt_ktx2_get_ldr_hdr_upconversion_nit_multiplier"]=wasmExports["fa"];_bt_ktx2_get_level_orig_width=Module["_bt_ktx2_get_level_orig_width"]=wasmExports["ga"];_bt_ktx2_get_level_orig_height=Module["_bt_ktx2_get_level_orig_height"]=wasmExports["ha"];_bt_ktx2_get_level_actual_width=Module["_bt_ktx2_get_level_actual_width"]=wasmExports["ia"];_bt_ktx2_get_level_actual_height=Module["_bt_ktx2_get_level_actual_height"]=wasmExports["ja"];_bt_ktx2_get_level_num_blocks_x=Module["_bt_ktx2_get_level_num_blocks_x"]=wasmExports["ka"];_bt_ktx2_get_level_num_blocks_y=Module["_bt_ktx2_get_level_num_blocks_y"]=wasmExports["la"];_bt_ktx2_get_level_total_blocks=Module["_bt_ktx2_get_level_total_blocks"]=wasmExports["ma"];_bt_ktx2_get_level_alpha_flag=Module["_bt_ktx2_get_level_alpha_flag"]=wasmExports["na"];_bt_ktx2_get_level_iframe_flag=Module["_bt_ktx2_get_level_iframe_flag"]=wasmExports["oa"];_bt_ktx2_start_transcoding=Module["_bt_ktx2_start_transcoding"]=wasmExports["pa"];_bt_ktx2_create_transcode_state=Module["_bt_ktx2_create_transcode_state"]=wasmExports["qa"];_bt_ktx2_destroy_transcode_state=Module["_bt_ktx2_destroy_transcode_state"]=wasmExports["ra"];_bt_ktx2_transcode_image_level=Module["_bt_ktx2_transcode_image_level"]=wasmExports["sa"];__emscripten_timeout=wasmExports["ta"];memory=wasmMemory=wasmExports["h"];__indirect_function_table=wasmExports["__indirect_function_table"]}var wasmImports={a:___assert_fail,e:__abort_js,c:__emscripten_runtime_keepalive_clear,d:__setitimer_js,f:_emscripten_resize_heap,g:_fd_write,b:_proc_exit};function run(){preRun();function doRun(){Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve?.(Module);postRun()}{doRun()}}var wasmExports;wasmExports=await (createWasm());run();if(runtimeInitialized){moduleRtn=Module}else{moduleRtn=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject})}
2
- ;return moduleRtn}export default Module;