@sanox/sangine-core 0.2.2 → 0.2.4

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/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";var f=Object.defineProperty;var y=(a,e,t)=>e in a?f(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var r=(a,e,t)=>y(a,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g="/static/sangine/wasm";class _{constructor(e,t){r(this,"workers");r(this,"idle");r(this,"queue",[]);this.workers=Array.from({length:t},e),this.idle=[...this.workers]}run(e){return new Promise((t,s)=>{const o=this.idle.pop();o?this.dispatch(o,e,t,s):this.queue.push({request:e,resolve:t,reject:s})})}dispatch(e,t,s,o){const n=i=>{s(i.data),d(),this.release(e)},c=i=>{o(i),d(),this.release(e)},d=()=>{e.removeEventListener("message",n),e.removeEventListener("error",c)};e.addEventListener("message",n,{once:!0}),e.addEventListener("error",c,{once:!0}),e.postMessage(t)}release(e){const t=this.queue.shift();t?this.dispatch(e,t.request,t.resolve,t.reject):this.idle.push(e)}terminate(){for(const e of this.workers)e.terminate()}}class p{constructor(e){r(this,"wasm",null);r(this,"callbackRegistry",{});r(this,"userActionRegistry",{});r(this,"windowCreatedPromiseRegistry",{});r(this,"windowCreatedPromiseResolveRegistry",{});r(this,"_inited",!1);r(this,"decodePool");r(this,"_readyPromise");r(this,"_resolveReady");r(this,"_rejectReady");this.config=e,this._readyPromise=new Promise((t,s)=>{this._resolveReady=t,this._rejectReady=s}),this.config=e}async init(){if(!(typeof window>"u")){if(this._inited)return this._readyPromise;try{const t=await import(new URL(`${g}/sangine/sangine.js`,window.location.origin).toString());await t.default(),this.wasm=t,this._inited=!0;const s=this.config.numWorkers??(navigator.hardwareConcurrency||2)-1;this.decodePool=new _(()=>this.config.createDecodeWorker(),Math.max(s,1)),this.wasm.register_asset_decoder(this.decodeAsset.bind(this)),this.wasm.register_event_listener(this.handleSangineEvent.bind(this)),this._resolveReady()}catch(e){throw this._rejectReady(e),e}return this._readyPromise}}ready(){return this._readyPromise}get inited(){return this._inited}getWasm(){if(!this.wasm)throw new Error("RendererService not initialized");return this.wasm}handleActionChanged(e,t){this.userActionRegistry[e]=t;for(const s of this.callbackRegistry[e].actionChanged)s(t)}handleMeasurementCreated(e,t){for(const s of this.callbackRegistry[e].measurementCreated)s(t)}handleRouteUpdated(e,t){for(const s of this.callbackRegistry[e].routeUpdated)s(t)}handleSangineEvent(e,t){t==="ready"?this.windowCreatedPromiseResolveRegistry[e]():"actionChanged"in t?this.handleActionChanged(e,t.actionChanged.action):"measurementCreated"in t?this.handleMeasurementCreated(e,t.measurementCreated.measurement):"routeUnderConstructionUpdated"in t&&this.handleRouteUpdated(e,t.routeUnderConstructionUpdated.route)}createWindow(e,t){if(!this.wasm)throw new Error("WASM not initialized");let s;const o=new Promise(c=>{s=c}),n=this.wasm.create_window(e,t);return this.windowCreatedPromiseResolveRegistry[n]=s,this.callbackRegistry[n]={actionChanged:[],routeUpdated:[],measurementCreated:[]},this.userActionRegistry[n]="watching",this.windowCreatedPromiseRegistry[n]=o,n}readUserAction(e){return this.userActionRegistry[e]}windowReady(e){return this.windowCreatedPromiseRegistry[e]}registerCallback(e,t,s){this.callbackRegistry[e][t].push(s)}setWindowAction(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_window_action(e,t)}destroyWindow(e){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.destroy_window(e),delete this.callbackRegistry[e],delete this.userActionRegistry[e]}setRouteHighlight(e,t,s){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_route_highlight(e,t,s)}setRouteVisible(e,t,s){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_route_visible(e,t,s)}animateToRoute(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.animate_to_route(e,t)}setSunProperties(e,t,s,o,n,c,d){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_sun_properties(e,t,s,o,n,c,d)}setNorthCorrection(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_north_correction(e,t)}setGpuMemoryBudgetMb(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_gpu_memory_budget_mb(e,t)}setRenderQuality(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_render_quality(e,t)}readCameraPos(e){if(!this.wasm)throw new Error("WASM not initialized");return this.wasm.read_camera_pos(e)}animateTo(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.animate_to(e,t)}setScale(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_window_scale(e,t)}async decodeAsset(e){if(!this.decodePool)throw new Error("Renderer not initialized");return this.decodePool.run(e)}destroy(){var e;(e=this.decodePool)==null||e.terminate()}}function R(a,e){let t=!1,s=null,o=null;async function n(c,d){const i=`https://sangine-asset-cache/${c}`,w=await o.match(i);if(w)return w;const l=await d(),h=await fetch(l);return h.ok&&await o.put(i,h.clone()),h}a.onmessage=async c=>{if(!t){const w=await import(new URL(`${g}/sbo-decode/wasm_sbo_decode.js`,a.location.origin).href);await w.default(),s=w,t=!0}o||(o=await caches.open("sangine-assets-v1"));const{data:d}=c;if("texture-file"in d)try{const i=await n(d["texture-file"].pk,()=>e(d));if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const w=await i.blob(),l=await createImageBitmap(w),h=new OffscreenCanvas(l.width,l.height),m=h.getContext("2d");if(m===null)throw new Error("Couldnt create canvas");m.drawImage(l,0,0);const u=m.getImageData(0,0,h.width,h.height);a.postMessage({success:!0,width:h.width,height:h.height,data:u.data.buffer},[u.data.buffer])}catch(i){a.postMessage({success:!1,error:i.message})}else if("model-part-mesh"in d){const i=await n(d["model-part-mesh"].pk,()=>e(d));if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const w=await i.arrayBuffer(),l=new Uint8Array(w),h=s.decode_sbo(l);a.postMessage({success:!0,data:h.buffer},[h.buffer])}}}exports.RendererService=p;exports.registerDecodeWorker=R;
1
+ "use strict";var f=Object.defineProperty;var y=(a,e,t)=>e in a?f(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var r=(a,e,t)=>y(a,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g="/static/sangine/wasm",_="52e59288";class p{constructor(e,t){r(this,"workers");r(this,"idle");r(this,"queue",[]);this.workers=Array.from({length:t},e),this.idle=[...this.workers]}run(e){return new Promise((t,s)=>{const o=this.idle.pop();o?this.dispatch(o,e,t,s):this.queue.push({request:e,resolve:t,reject:s})})}dispatch(e,t,s,o){const n=i=>{s(i.data),d(),this.release(e)},c=i=>{o(i),d(),this.release(e)},d=()=>{e.removeEventListener("message",n),e.removeEventListener("error",c)};e.addEventListener("message",n,{once:!0}),e.addEventListener("error",c,{once:!0}),e.postMessage(t)}release(e){const t=this.queue.shift();t?this.dispatch(e,t.request,t.resolve,t.reject):this.idle.push(e)}terminate(){for(const e of this.workers)e.terminate()}}class R{constructor(e){r(this,"wasm",null);r(this,"callbackRegistry",{});r(this,"userActionRegistry",{});r(this,"windowCreatedPromiseRegistry",{});r(this,"windowCreatedPromiseResolveRegistry",{});r(this,"_inited",!1);r(this,"decodePool");r(this,"_readyPromise");r(this,"_resolveReady");r(this,"_rejectReady");this.config=e,this._readyPromise=new Promise((t,s)=>{this._resolveReady=t,this._rejectReady=s}),this.config=e}async init(){if(!(typeof window>"u")){if(this._inited)return this._readyPromise;try{const t=await import(new URL(`${g}/sangine/sangine.${_}.js`,window.location.origin).toString());await t.default(),this.wasm=t,this._inited=!0;const s=this.config.numWorkers??(navigator.hardwareConcurrency||2)-1;this.decodePool=new p(()=>this.config.createDecodeWorker(),Math.max(s,1)),this.wasm.register_asset_decoder(this.decodeAsset.bind(this)),this.wasm.register_event_listener(this.handleSangineEvent.bind(this)),this._resolveReady()}catch(e){throw this._rejectReady(e),e}return this._readyPromise}}ready(){return this._readyPromise}get inited(){return this._inited}getWasm(){if(!this.wasm)throw new Error("RendererService not initialized");return this.wasm}handleActionChanged(e,t){this.userActionRegistry[e]=t;for(const s of this.callbackRegistry[e].actionChanged)s(t)}handleMeasurementCreated(e,t){for(const s of this.callbackRegistry[e].measurementCreated)s(t)}handleRouteUpdated(e,t){for(const s of this.callbackRegistry[e].routeUpdated)s(t)}handleSangineEvent(e,t){t==="ready"?this.windowCreatedPromiseResolveRegistry[e]():"actionChanged"in t?this.handleActionChanged(e,t.actionChanged.action):"measurementCreated"in t?this.handleMeasurementCreated(e,t.measurementCreated.measurement):"routeUnderConstructionUpdated"in t&&this.handleRouteUpdated(e,t.routeUnderConstructionUpdated.route)}createWindow(e,t){if(!this.wasm)throw new Error("WASM not initialized");let s;const o=new Promise(c=>{s=c}),n=this.wasm.create_window(e,t);return this.windowCreatedPromiseResolveRegistry[n]=s,this.callbackRegistry[n]={actionChanged:[],routeUpdated:[],measurementCreated:[]},this.userActionRegistry[n]="watching",this.windowCreatedPromiseRegistry[n]=o,n}readUserAction(e){return this.userActionRegistry[e]}windowReady(e){return this.windowCreatedPromiseRegistry[e]}registerCallback(e,t,s){this.callbackRegistry[e][t].push(s)}setWindowAction(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_window_action(e,t)}destroyWindow(e){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.destroy_window(e),delete this.callbackRegistry[e],delete this.userActionRegistry[e]}setRouteHighlight(e,t,s){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_route_highlight(e,t,s)}setRouteVisible(e,t,s){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_route_visible(e,t,s)}animateToRoute(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.animate_to_route(e,t)}setSunProperties(e,t,s,o,n,c,d){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_sun_properties(e,t,s,o,n,c,d)}setNorthCorrection(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_north_correction(e,t)}setGpuMemoryBudgetMb(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_gpu_memory_budget_mb(e,t)}setRenderQuality(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_render_quality(e,t)}readCameraPos(e){if(!this.wasm)throw new Error("WASM not initialized");return this.wasm.read_camera_pos(e)}animateTo(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.animate_to(e,t)}setScale(e,t){if(!this.wasm)throw new Error("WASM not initialized");this.wasm.set_window_scale(e,t)}async decodeAsset(e){if(!this.decodePool)throw new Error("Renderer not initialized");return this.decodePool.run(e)}destroy(){var e;(e=this.decodePool)==null||e.terminate()}}const b="95e75786";function A(a,e){let t=!1,s=null,o=null;async function n(c,d){const i=`https://sangine-asset-cache/${c}`,w=await o.match(i);if(w)return w;const l=await d(),h=await fetch(l);return h.ok&&await o.put(i,h.clone()),h}a.onmessage=async c=>{if(!t){const w=await import(new URL(`${g}/sbo-decode/wasm_sbo_decode.${b}.js`,a.location.origin).href);await w.default(),s=w,t=!0}o||(o=await caches.open("sangine-assets-v1"));const{data:d}=c;if("texture-file"in d)try{const i=await n(d["texture-file"].pk,()=>e(d));if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const w=await i.blob(),l=await createImageBitmap(w),h=new OffscreenCanvas(l.width,l.height),m=h.getContext("2d");if(m===null)throw new Error("Couldnt create canvas");m.drawImage(l,0,0);const u=m.getImageData(0,0,h.width,h.height);a.postMessage({success:!0,width:h.width,height:h.height,data:u.data.buffer},[u.data.buffer])}catch(i){a.postMessage({success:!1,error:i.message})}else if("model-part-mesh"in d){const i=await n(d["model-part-mesh"].pk,()=>e(d));if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const w=await i.arrayBuffer(),l=new Uint8Array(w),h=s.decode_sbo(l);a.postMessage({success:!0,data:h.buffer},[h.buffer])}}}exports.RendererService=R;exports.registerDecodeWorker=A;
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var f = Object.defineProperty;
2
2
  var y = (a, e, t) => e in a ? f(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var r = (a, e, t) => y(a, typeof e != "symbol" ? e + "" : e, t);
4
- const g = "/static/sangine/wasm";
5
- class _ {
4
+ const g = "/static/sangine/wasm", _ = "52e59288";
5
+ class p {
6
6
  constructor(e, t) {
7
7
  r(this, "workers");
8
8
  r(this, "idle");
@@ -34,7 +34,7 @@ class _ {
34
34
  e.terminate();
35
35
  }
36
36
  }
37
- class R {
37
+ class b {
38
38
  constructor(e) {
39
39
  r(this, "wasm", null);
40
40
  r(this, "callbackRegistry", {});
@@ -55,12 +55,12 @@ class R {
55
55
  if (this._inited) return this._readyPromise;
56
56
  try {
57
57
  const t = await import(new URL(
58
- `${g}/sangine/sangine.js`,
58
+ `${g}/sangine/sangine.${_}.js`,
59
59
  window.location.origin
60
60
  ).toString());
61
61
  await t.default(), this.wasm = t, this._inited = !0;
62
62
  const s = this.config.numWorkers ?? (navigator.hardwareConcurrency || 2) - 1;
63
- this.decodePool = new _(
63
+ this.decodePool = new p(
64
64
  () => this.config.createDecodeWorker(),
65
65
  Math.max(s, 1)
66
66
  ), this.wasm.register_asset_decoder(this.decodeAsset.bind(this)), this.wasm.register_event_listener(this.handleSangineEvent.bind(this)), this._resolveReady();
@@ -183,7 +183,8 @@ class R {
183
183
  (e = this.decodePool) == null || e.terminate();
184
184
  }
185
185
  }
186
- function b(a, e) {
186
+ const R = "95e75786";
187
+ function E(a, e) {
187
188
  let t = !1, s = null, o = null;
188
189
  async function n(c, d) {
189
190
  const i = `https://sangine-asset-cache/${c}`, w = await o.match(i);
@@ -194,7 +195,7 @@ function b(a, e) {
194
195
  a.onmessage = async (c) => {
195
196
  if (!t) {
196
197
  const w = await import(new URL(
197
- `${g}/sbo-decode/wasm_sbo_decode.js`,
198
+ `${g}/sbo-decode/wasm_sbo_decode.${R}.js`,
198
199
  a.location.origin
199
200
  ).href);
200
201
  await w.default(), s = w, t = !0;
@@ -239,6 +240,6 @@ function b(a, e) {
239
240
  };
240
241
  }
241
242
  export {
242
- R as RendererService,
243
- b as registerDecodeWorker
243
+ b as RendererService,
244
+ E as registerDecodeWorker
244
245
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rendererService.d.ts","sourceRoot":"","sources":["../src/rendererService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,KAAK,EACL,YAAY,EACZ,KAAK,EACL,UAAU,EACX,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAI1D,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;AAEpE,UAAU,WAAW;IACnB,aAAa,EAAE,qBAAqB,CAAA;IACpC,YAAY,EAAE,oBAAoB,CAAA;IAClC,kBAAkB,EAAE,0BAA0B,CAAA;CAC/C;AAMD,qBAAa,eAAe;IAad,OAAO,CAAC,MAAM;IAZ1B,OAAO,CAAC,IAAI,CAA2B;IACvC,OAAO,CAAC,gBAAgB,CAA4C;IACpE,OAAO,CAAC,kBAAkB,CAAsC;IAChE,OAAO,CAAC,4BAA4B,CAAyC;IAC7E,OAAO,CAAC,mCAAmC,CAAsC;IACjF,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,UAAU,CAAC,CAAqC;IAExD,OAAO,CAAC,aAAa,CAAe;IACpC,OAAO,CAAC,aAAa,CAAa;IAClC,OAAO,CAAC,YAAY,CAAyB;gBAEzB,MAAM,EAAE,cAAc;IAQpC,IAAI;IAgCV,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;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EAChB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM;IAcnB,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;IAKzD,OAAO;CAGR"}
@@ -1,28 +1,5 @@
1
1
  /* @ts-self-types="./sangine.d.ts" */
2
2
 
3
- /**
4
- * Chroma subsampling format
5
- * @enum {0 | 1 | 2 | 3}
6
- */
7
- export const ChromaSampling = Object.freeze({
8
- /**
9
- * Both vertically and horizontally subsampled.
10
- */
11
- Cs420: 0, "0": "Cs420",
12
- /**
13
- * Horizontally subsampled.
14
- */
15
- Cs422: 1, "1": "Cs422",
16
- /**
17
- * Not subsampled.
18
- */
19
- Cs444: 2, "2": "Cs444",
20
- /**
21
- * Monochrome.
22
- */
23
- Cs400: 3, "3": "Cs400",
24
- });
25
-
26
3
  /**
27
4
  * @param {number} window_id
28
5
  * @param {any} camera_target
@@ -2618,53 +2595,53 @@ function __wbg_get_imports() {
2618
2595
  arg0.writeTexture(arg1, arg2, arg3, arg4);
2619
2596
  }, arguments); },
2620
2597
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2621
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 3776, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2622
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h2a85c969f4c20848);
2598
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 3815, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2599
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h9bcfaf9db4ab96db);
2623
2600
  return ret;
2624
2601
  },
2625
2602
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
2626
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 3771, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2627
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2);
2603
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 3809, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2604
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h355f794c725ec492);
2628
2605
  return ret;
2629
2606
  },
2630
2607
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2631
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("Event")], shim_idx: 3771, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2632
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2);
2608
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("Event")], shim_idx: 3809, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2609
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h355f794c725ec492);
2633
2610
  return ret;
2634
2611
  },
2635
2612
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2636
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 3771, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2637
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2);
2613
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 3809, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2614
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h355f794c725ec492);
2638
2615
  return ret;
2639
2616
  },
2640
2617
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
2641
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 3771, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2642
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2);
2618
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 3809, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2619
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h355f794c725ec492);
2643
2620
  return ret;
2644
2621
  },
2645
2622
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
2646
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 3771, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2647
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2);
2623
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 3809, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2624
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h355f794c725ec492);
2648
2625
  return ret;
2649
2626
  },
2650
2627
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
2651
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 3771, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2652
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2);
2628
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 3809, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2629
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h355f794c725ec492);
2653
2630
  return ret;
2654
2631
  },
2655
2632
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2656
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 3771, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2657
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2);
2633
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 3809, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2634
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h355f794c725ec492);
2658
2635
  return ret;
2659
2636
  },
2660
2637
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
2661
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3770, function: Function { arguments: [], shim_idx: 3774, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2662
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h17333457aae2b090, wasm_bindgen__convert__closures_____invoke__he5f4030ca973712a);
2638
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3808, function: Function { arguments: [], shim_idx: 3812, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2639
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0f9502aef9ad7012, wasm_bindgen__convert__closures_____invoke__h81c46bf303557186);
2663
2640
  return ret;
2664
2641
  },
2665
2642
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
2666
- // Cast intrinsic for `Closure(Closure { dtor_idx: 3827, function: Function { arguments: [Externref], shim_idx: 3828, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2667
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf05ec8f078dda008, wasm_bindgen__convert__closures_____invoke__h07eaa4ea93496cfb);
2643
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 3882, function: Function { arguments: [Externref], shim_idx: 3883, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2644
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h756fff185ea9610f, wasm_bindgen__convert__closures_____invoke__h11a2876e668b0630);
2668
2645
  return ret;
2669
2646
  },
2670
2647
  __wbindgen_cast_000000000000000b: function(arg0) {
@@ -2728,20 +2705,20 @@ function __wbg_get_imports() {
2728
2705
  };
2729
2706
  }
2730
2707
 
2731
- function wasm_bindgen__convert__closures_____invoke__he5f4030ca973712a(arg0, arg1) {
2732
- wasm.wasm_bindgen__convert__closures_____invoke__he5f4030ca973712a(arg0, arg1);
2708
+ function wasm_bindgen__convert__closures_____invoke__h81c46bf303557186(arg0, arg1) {
2709
+ wasm.wasm_bindgen__convert__closures_____invoke__h81c46bf303557186(arg0, arg1);
2733
2710
  }
2734
2711
 
2735
- function wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2(arg0, arg1, arg2) {
2736
- wasm.wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2(arg0, arg1, arg2);
2712
+ function wasm_bindgen__convert__closures_____invoke__h355f794c725ec492(arg0, arg1, arg2) {
2713
+ wasm.wasm_bindgen__convert__closures_____invoke__h355f794c725ec492(arg0, arg1, arg2);
2737
2714
  }
2738
2715
 
2739
- function wasm_bindgen__convert__closures_____invoke__h07eaa4ea93496cfb(arg0, arg1, arg2) {
2740
- wasm.wasm_bindgen__convert__closures_____invoke__h07eaa4ea93496cfb(arg0, arg1, arg2);
2716
+ function wasm_bindgen__convert__closures_____invoke__h11a2876e668b0630(arg0, arg1, arg2) {
2717
+ wasm.wasm_bindgen__convert__closures_____invoke__h11a2876e668b0630(arg0, arg1, arg2);
2741
2718
  }
2742
2719
 
2743
- function wasm_bindgen__convert__closures_____invoke__h2a85c969f4c20848(arg0, arg1, arg2, arg3) {
2744
- wasm.wasm_bindgen__convert__closures_____invoke__h2a85c969f4c20848(arg0, arg1, arg2, arg3);
2720
+ function wasm_bindgen__convert__closures_____invoke__h9bcfaf9db4ab96db(arg0, arg1, arg2, arg3) {
2721
+ wasm.wasm_bindgen__convert__closures_____invoke__h9bcfaf9db4ab96db(arg0, arg1, arg2, arg3);
2745
2722
  }
2746
2723
 
2747
2724
 
@@ -3201,7 +3178,7 @@ async function __wbg_init(module_or_path) {
3201
3178
  }
3202
3179
 
3203
3180
  if (module_or_path === undefined) {
3204
- module_or_path = new URL('sangine_bg.wasm', import.meta.url);
3181
+ module_or_path = new URL('sangine_bg.52e59288.wasm', import.meta.url);
3205
3182
  }
3206
3183
  const imports = __wbg_get_imports();
3207
3184
 
@@ -1,28 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
- /**
5
- * Chroma subsampling format
6
- */
7
- export enum ChromaSampling {
8
- /**
9
- * Both vertically and horizontally subsampled.
10
- */
11
- Cs420 = 0,
12
- /**
13
- * Horizontally subsampled.
14
- */
15
- Cs422 = 1,
16
- /**
17
- * Not subsampled.
18
- */
19
- Cs444 = 2,
20
- /**
21
- * Monochrome.
22
- */
23
- Cs400 = 3,
24
- }
25
-
26
4
  export function animate_to(window_id: number, camera_target: any): void;
27
5
 
28
6
  export function animate_to_route(window_id: number, route_id: string): void;
@@ -62,28 +40,28 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
62
40
 
63
41
  export interface InitOutput {
64
42
  readonly memory: WebAssembly.Memory;
65
- readonly register_event_listener: (a: any) => void;
43
+ readonly animate_to: (a: number, b: any) => [number, number];
44
+ readonly animate_to_route: (a: number, b: number, c: number) => [number, number];
45
+ readonly create_window: (a: number, b: number, c: any) => number;
46
+ readonly destroy_window: (a: number) => [number, number];
47
+ readonly read_camera_pos: (a: number) => [number, number, number];
66
48
  readonly register_asset_decoder: (a: any) => void;
67
- readonly set_render_quality: (a: number, b: any) => [number, number];
49
+ readonly register_event_listener: (a: any) => void;
68
50
  readonly set_gpu_memory_budget_mb: (a: number, b: number) => [number, number];
69
51
  readonly set_north_correction: (a: number, b: number) => [number, number];
70
- readonly set_sun_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
71
- readonly set_window_scale: (a: number, b: number) => [number, number];
72
- readonly read_camera_pos: (a: number) => [number, number, number];
73
- readonly animate_to: (a: number, b: any) => [number, number];
74
- readonly animate_to_route: (a: number, b: number, c: number) => [number, number];
75
- readonly set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
52
+ readonly set_render_quality: (a: number, b: any) => [number, number];
76
53
  readonly set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
77
- readonly destroy_window: (a: number) => [number, number];
54
+ readonly set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
55
+ readonly set_sun_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
78
56
  readonly set_window_action: (a: number, b: any) => [number, number];
79
- readonly create_window: (a: number, b: number, c: any) => number;
57
+ readonly set_window_scale: (a: number, b: number) => [number, number];
80
58
  readonly run: () => void;
81
- readonly wasm_bindgen__closure__destroy__h17333457aae2b090: (a: number, b: number) => void;
82
- readonly wasm_bindgen__closure__destroy__hf05ec8f078dda008: (a: number, b: number) => void;
83
- readonly wasm_bindgen__convert__closures_____invoke__h2a85c969f4c20848: (a: number, b: number, c: any, d: any) => void;
84
- readonly wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2: (a: number, b: number, c: any) => void;
85
- readonly wasm_bindgen__convert__closures_____invoke__h07eaa4ea93496cfb: (a: number, b: number, c: any) => void;
86
- readonly wasm_bindgen__convert__closures_____invoke__he5f4030ca973712a: (a: number, b: number) => void;
59
+ readonly wasm_bindgen__closure__destroy__h0f9502aef9ad7012: (a: number, b: number) => void;
60
+ readonly wasm_bindgen__closure__destroy__h756fff185ea9610f: (a: number, b: number) => void;
61
+ readonly wasm_bindgen__convert__closures_____invoke__h9bcfaf9db4ab96db: (a: number, b: number, c: any, d: any) => void;
62
+ readonly wasm_bindgen__convert__closures_____invoke__h355f794c725ec492: (a: number, b: number, c: any) => void;
63
+ readonly wasm_bindgen__convert__closures_____invoke__h11a2876e668b0630: (a: number, b: number, c: any) => void;
64
+ readonly wasm_bindgen__convert__closures_____invoke__h81c46bf303557186: (a: number, b: number) => void;
87
65
  readonly __wbindgen_malloc: (a: number, b: number) => number;
88
66
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
89
67
  readonly __externref_table_alloc: () => number;
@@ -1,28 +1,28 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const register_event_listener: (a: any) => void;
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];
6
+ export const create_window: (a: number, b: number, c: any) => number;
7
+ export const destroy_window: (a: number) => [number, number];
8
+ export const read_camera_pos: (a: number) => [number, number, number];
5
9
  export const register_asset_decoder: (a: any) => void;
6
- export const set_render_quality: (a: number, b: any) => [number, number];
10
+ export const register_event_listener: (a: any) => void;
7
11
  export const set_gpu_memory_budget_mb: (a: number, b: number) => [number, number];
8
12
  export const set_north_correction: (a: number, b: number) => [number, number];
9
- export const set_sun_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
10
- export const set_window_scale: (a: number, b: number) => [number, number];
11
- export const read_camera_pos: (a: number) => [number, number, number];
12
- export const animate_to: (a: number, b: any) => [number, number];
13
- export const animate_to_route: (a: number, b: number, c: number) => [number, number];
14
- export const set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
13
+ export const set_render_quality: (a: number, b: any) => [number, number];
15
14
  export const set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
16
- export const destroy_window: (a: number) => [number, number];
15
+ export const set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
16
+ export const set_sun_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
17
17
  export const set_window_action: (a: number, b: any) => [number, number];
18
- export const create_window: (a: number, b: number, c: any) => number;
18
+ export const set_window_scale: (a: number, b: number) => [number, number];
19
19
  export const run: () => void;
20
- export const wasm_bindgen__closure__destroy__h17333457aae2b090: (a: number, b: number) => void;
21
- export const wasm_bindgen__closure__destroy__hf05ec8f078dda008: (a: number, b: number) => void;
22
- export const wasm_bindgen__convert__closures_____invoke__h2a85c969f4c20848: (a: number, b: number, c: any, d: any) => void;
23
- export const wasm_bindgen__convert__closures_____invoke__h091d820f15c8c0c2: (a: number, b: number, c: any) => void;
24
- export const wasm_bindgen__convert__closures_____invoke__h07eaa4ea93496cfb: (a: number, b: number, c: any) => void;
25
- export const wasm_bindgen__convert__closures_____invoke__he5f4030ca973712a: (a: number, b: number) => void;
20
+ export const wasm_bindgen__closure__destroy__h0f9502aef9ad7012: (a: number, b: number) => void;
21
+ export const wasm_bindgen__closure__destroy__h756fff185ea9610f: (a: number, b: number) => void;
22
+ export const wasm_bindgen__convert__closures_____invoke__h9bcfaf9db4ab96db: (a: number, b: number, c: any, d: any) => void;
23
+ export const wasm_bindgen__convert__closures_____invoke__h355f794c725ec492: (a: number, b: number, c: any) => void;
24
+ export const wasm_bindgen__convert__closures_____invoke__h11a2876e668b0630: (a: number, b: number, c: any) => void;
25
+ export const wasm_bindgen__convert__closures_____invoke__h81c46bf303557186: (a: number, b: number) => void;
26
26
  export const __wbindgen_malloc: (a: number, b: number) => number;
27
27
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
28
28
  export const __externref_table_alloc: () => number;
@@ -169,7 +169,7 @@ async function __wbg_init(module_or_path) {
169
169
  }
170
170
 
171
171
  if (module_or_path === undefined) {
172
- module_or_path = new URL('wasm_sbo_decode_bg.wasm', import.meta.url);
172
+ module_or_path = new URL('wasm_sbo_decode_bg.95e75786.wasm', import.meta.url);
173
173
  }
174
174
  const imports = __wbg_get_imports();
175
175
 
@@ -0,0 +1,2 @@
1
+ export declare const SANGINE_HASH = "52e59288";
2
+ //# sourceMappingURL=sangine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sangine.d.ts","sourceRoot":"","sources":["../../src/wasm-hashes/sangine.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const SBO_DECODE_HASH = "95e75786";
2
+ //# sourceMappingURL=sbo-decode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sbo-decode.d.ts","sourceRoot":"","sources":["../../src/wasm-hashes/sbo-decode.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"decodeWorkerImpl.d.ts","sourceRoot":"","sources":["../../src/worker/decodeWorkerImpl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAI1C,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAExD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,0BAA0B,EAAE,WAAW,EAAE,WAAW,QA2F9F"}
1
+ {"version":3,"file":"decodeWorkerImpl.d.ts","sourceRoot":"","sources":["../../src/worker/decodeWorkerImpl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAK1C,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAExD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,0BAA0B,EAAE,WAAW,EAAE,WAAW,QA2F9F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanox/sangine-core",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Sangine core renderer runtime (WASM + workers)",
5
5
  "type": "module",
6
6
  "private": false,