@navaramap/engine-api 0.0.2 → 0.0.3

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.
@@ -1953,6 +1953,10 @@ export function northUpEastToFixedFrame(origin: Vec3): Float64Array;
1953
1953
 
1954
1954
  export function northWestUpToFixedFrame(origin: Vec3): Float64Array;
1955
1955
 
1956
+ export function parseCssUnicodeRange(value: string): any;
1957
+
1958
+ export function parseFontFamilyFromCss(family: string, css_text: string, options: any): any;
1959
+
1956
1960
  export function screenToWorld(window: Window, transform: Transform, frustum: CameraFrustum, screen_pos: Vec2): Vec3 | undefined;
1957
1961
 
1958
1962
  export function start(): void;
@@ -1984,6 +1988,8 @@ export interface InitOutput {
1984
1988
  readonly northEastDownToFixedFrame: (a: number) => [number, number];
1985
1989
  readonly northUpEastToFixedFrame: (a: number) => [number, number];
1986
1990
  readonly northWestUpToFixedFrame: (a: number) => [number, number];
1991
+ readonly parseCssUnicodeRange: (a: number, b: number) => [number, number, number];
1992
+ readonly parseFontFamilyFromCss: (a: number, b: number, c: number, d: number, e: any) => [number, number, number];
1987
1993
  readonly screenToWorld: (a: number, b: number, c: number, d: number) => number;
1988
1994
  readonly start: () => void;
1989
1995
  readonly worldToScreen: (a: number, b: number, c: number, d: number) => number;
@@ -7646,6 +7646,38 @@ export function northWestUpToFixedFrame(origin) {
7646
7646
  return v2;
7647
7647
  }
7648
7648
 
7649
+ /**
7650
+ * @param {string} value
7651
+ * @returns {any}
7652
+ */
7653
+ export function parseCssUnicodeRange(value) {
7654
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7655
+ const len0 = WASM_VECTOR_LEN;
7656
+ const ret = wasm.parseCssUnicodeRange(ptr0, len0);
7657
+ if (ret[2]) {
7658
+ throw takeFromExternrefTable0(ret[1]);
7659
+ }
7660
+ return takeFromExternrefTable0(ret[0]);
7661
+ }
7662
+
7663
+ /**
7664
+ * @param {string} family
7665
+ * @param {string} css_text
7666
+ * @param {any} options
7667
+ * @returns {any}
7668
+ */
7669
+ export function parseFontFamilyFromCss(family, css_text, options) {
7670
+ const ptr0 = passStringToWasm0(family, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7671
+ const len0 = WASM_VECTOR_LEN;
7672
+ const ptr1 = passStringToWasm0(css_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7673
+ const len1 = WASM_VECTOR_LEN;
7674
+ const ret = wasm.parseFontFamilyFromCss(ptr0, len0, ptr1, len1, options);
7675
+ if (ret[2]) {
7676
+ throw takeFromExternrefTable0(ret[1]);
7677
+ }
7678
+ return takeFromExternrefTable0(ret[0]);
7679
+ }
7680
+
7649
7681
  /**
7650
7682
  * @param {Window} window
7651
7683
  * @param {Transform} transform
@@ -7744,11 +7776,19 @@ function __wbg_get_imports() {
7744
7776
  const ret = typeof(arg0) === 'function';
7745
7777
  return ret;
7746
7778
  },
7779
+ __wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
7780
+ const ret = arg0 === null;
7781
+ return ret;
7782
+ },
7747
7783
  __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
7748
7784
  const val = arg0;
7749
7785
  const ret = typeof(val) === 'object' && val !== null;
7750
7786
  return ret;
7751
7787
  },
7788
+ __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
7789
+ const ret = arg0 === undefined;
7790
+ return ret;
7791
+ },
7752
7792
  __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
7753
7793
  const ret = arg0 === arg1;
7754
7794
  return ret;
@@ -7810,6 +7850,10 @@ function __wbg_get_imports() {
7810
7850
  const ret = arg0[arg1 >>> 0];
7811
7851
  return ret;
7812
7852
  },
7853
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
7854
+ const ret = arg0[arg1];
7855
+ return ret;
7856
+ },
7813
7857
  __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
7814
7858
  let result;
7815
7859
  try {
@@ -7939,10 +7983,16 @@ function __wbg_get_imports() {
7939
7983
  __wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
7940
7984
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
7941
7985
  },
7986
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
7987
+ arg0[arg1] = arg2;
7988
+ },
7942
7989
  __wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
7943
7990
  const ret = Reflect.set(arg0, arg1, arg2);
7944
7991
  return ret;
7945
7992
  }, arguments); },
7993
+ __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
7994
+ arg0[arg1 >>> 0] = arg2;
7995
+ },
7946
7996
  __wbg_set_b5e6b338281ca6ff: function(arg0, arg1, arg2) {
7947
7997
  arg0.set(getArrayU32FromWasm0(arg1, arg2));
7948
7998
  },
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@navaramap/engine-api",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",