avatar-sdk
Advanced tools
Comparing version 0.1.45 to 0.1.46
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.1.45", | ||
"version": "0.1.46", | ||
"files": [ | ||
@@ -9,0 +9,0 @@ "xrsavatar_bg.js", |
@@ -23,4 +23,8 @@ import * as wasm from './xrsavatar_bg.wasm'; | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachegetUint8Memory0 = null; | ||
@@ -34,2 +38,17 @@ function getUint8Memory0() { | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder; | ||
@@ -98,21 +117,2 @@ | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
function isLikeNone(x) { | ||
@@ -219,31 +219,3 @@ return x === undefined || x === null; | ||
} | ||
function __wbg_adapter_32(arg0, arg1) { | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0541f497165124dd(arg0, arg1); | ||
} | ||
function __wbg_adapter_35(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2471598cbfceca6a(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function __wbg_adapter_38(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2471598cbfceca6a(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function __wbg_adapter_41(arg0, arg1) { | ||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h50b9d4fd04510ae2(arg0, arg1); | ||
} | ||
function __wbg_adapter_44(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2471598cbfceca6a(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function __wbg_adapter_47(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2471598cbfceca6a(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function __wbg_adapter_50(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2471598cbfceca6a(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
function __wbg_adapter_53(arg0, arg1, arg2) { | ||
function __wbg_adapter_30(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb2fe7ab29b04081c(arg0, arg1, addHeapObject(arg2)); | ||
@@ -414,2 +386,7 @@ } | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_cb_drop(arg0) { | ||
@@ -434,7 +411,2 @@ const obj = takeObject(arg0).original; | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_new_59cb74e423758ede() { | ||
@@ -461,7 +433,2 @@ var ret = new Error(); | ||
export function __wbindgen_json_parse(arg0, arg1) { | ||
var ret = JSON.parse(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_object_clone_ref(arg0) { | ||
@@ -477,7 +444,2 @@ var ret = getObject(arg0); | ||
export function __wbg_instanceof_WebGl2RenderingContext_13e6354db7f49c18(arg0) { | ||
var ret = getObject(arg0) instanceof WebGL2RenderingContext; | ||
return ret; | ||
}; | ||
export function __wbg_bufferData_9129d14b1f0de925(arg0, arg1, arg2, arg3) { | ||
@@ -667,7 +629,2 @@ getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0); | ||
export function __wbg_getExtension_f46ff095d7527a4c() { return handleError(function (arg0, arg1, arg2) { | ||
var ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2)); | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}, arguments) }; | ||
export function __wbg_getProgramInfoLog_8d7bd18699310151(arg0, arg1, arg2) { | ||
@@ -741,58 +698,2 @@ var ret = getObject(arg1).getProgramInfoLog(getObject(arg2)); | ||
export function __wbg_innerWidth_8c5001da2fdd6a9e() { return handleError(function (arg0) { | ||
var ret = getObject(arg0).innerWidth; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
export function __wbg_innerHeight_03d3f1d9eb5f7034() { return handleError(function (arg0) { | ||
var ret = getObject(arg0).innerHeight; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
export function __wbg_devicePixelRatio_d92cc4c40f432496(arg0) { | ||
var ret = getObject(arg0).devicePixelRatio; | ||
return ret; | ||
}; | ||
export function __wbg_performance_9d1ecf711183e1d5(arg0) { | ||
var ret = getObject(arg0).performance; | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
export function __wbg_requestAnimationFrame_1fb079d39e1b8a26() { return handleError(function (arg0, arg1) { | ||
var ret = getObject(arg0).requestAnimationFrame(getObject(arg1)); | ||
return ret; | ||
}, arguments) }; | ||
export function __wbg_cssText_a4ea594879b743cf(arg0, arg1) { | ||
var ret = getObject(arg1).cssText; | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
}; | ||
export function __wbg_setcssText_f5755d4fad33176f(arg0, arg1, arg2) { | ||
getObject(arg0).cssText = getStringFromWasm0(arg1, arg2); | ||
}; | ||
export function __wbg_addEventListener_936431894dca4639() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); | ||
}, arguments) }; | ||
export function __wbg_offsetX_48af882734391546(arg0) { | ||
var ret = getObject(arg0).offsetX; | ||
return ret; | ||
}; | ||
export function __wbg_offsetY_c69b7789fffdd294(arg0) { | ||
var ret = getObject(arg0).offsetY; | ||
return ret; | ||
}; | ||
export function __wbg_button_e27f6f9aa0a0c496(arg0) { | ||
var ret = getObject(arg0).button; | ||
return ret; | ||
}; | ||
export function __wbg_new_80e79fe6852cbe9c() { return handleError(function () { | ||
@@ -835,12 +736,2 @@ var ret = new Headers(); | ||
export function __wbg_deltaX_d726e0224b540206(arg0) { | ||
var ret = getObject(arg0).deltaX; | ||
return ret; | ||
}; | ||
export function __wbg_deltaY_7374d71292d30408(arg0) { | ||
var ret = getObject(arg0).deltaY; | ||
return ret; | ||
}; | ||
export function __wbg_newwithstrandinit_155cb1478824b198() { return handleError(function (arg0, arg1, arg2) { | ||
@@ -851,30 +742,2 @@ var ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2)); | ||
export function __wbg_altKey_5136125f8a64c2cf(arg0) { | ||
var ret = getObject(arg0).altKey; | ||
return ret; | ||
}; | ||
export function __wbg_ctrlKey_8fa508d0b540bc8f(arg0) { | ||
var ret = getObject(arg0).ctrlKey; | ||
return ret; | ||
}; | ||
export function __wbg_shiftKey_21477313df4f5291(arg0) { | ||
var ret = getObject(arg0).shiftKey; | ||
return ret; | ||
}; | ||
export function __wbg_metaKey_d60075e40f8f06d7(arg0) { | ||
var ret = getObject(arg0).metaKey; | ||
return ret; | ||
}; | ||
export function __wbg_key_6827d862c9cc3928(arg0, arg1) { | ||
var ret = getObject(arg1).key; | ||
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
}; | ||
export function __wbg_now_44a034aa2e1d73dd(arg0) { | ||
@@ -885,22 +748,2 @@ var ret = getObject(arg0).now(); | ||
export function __wbg_pageX_902206703620e827(arg0) { | ||
var ret = getObject(arg0).pageX; | ||
return ret; | ||
}; | ||
export function __wbg_pageY_e4ea57875008005e(arg0) { | ||
var ret = getObject(arg0).pageY; | ||
return ret; | ||
}; | ||
export function __wbg_length_7cbe32a18202018e(arg0) { | ||
var ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
export function __wbg_item_d23780e616aa6e88(arg0, arg1) { | ||
var ret = getObject(arg0).item(arg1 >>> 0); | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
export function __wbg_URL_23ac715c8713a5c4() { return handleError(function (arg0, arg1) { | ||
@@ -914,7 +757,2 @@ var ret = getObject(arg1).URL; | ||
export function __wbg_getElementsByTagName_73dd6f0650f14274(arg0, arg1, arg2) { | ||
var ret = getObject(arg0).getElementsByTagName(getStringFromWasm0(arg1, arg2)); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_log_9a99fb1af846153b(arg0) { | ||
@@ -924,11 +762,2 @@ console.log(getObject(arg0)); | ||
export function __wbg_style_25309daade79abb3(arg0) { | ||
var ret = getObject(arg0).style; | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_setoncontextmenu_da7201816c727fe5(arg0, arg1) { | ||
getObject(arg0).oncontextmenu = getObject(arg1); | ||
}; | ||
export function __wbg_fetch_9dbf87b840590e85(arg0, arg1) { | ||
@@ -939,53 +768,2 @@ var ret = getObject(arg0).fetch(getObject(arg1)); | ||
export function __wbg_instanceof_HtmlCanvasElement_fd3cbbe3906d7792(arg0) { | ||
var ret = getObject(arg0) instanceof HTMLCanvasElement; | ||
return ret; | ||
}; | ||
export function __wbg_width_9eb2c66ac9dde633(arg0) { | ||
var ret = getObject(arg0).width; | ||
return ret; | ||
}; | ||
export function __wbg_setwidth_f3c88eb520ba8d47(arg0, arg1) { | ||
getObject(arg0).width = arg1 >>> 0; | ||
}; | ||
export function __wbg_height_64e5d4222af3fb90(arg0) { | ||
var ret = getObject(arg0).height; | ||
return ret; | ||
}; | ||
export function __wbg_setheight_5a1abba41e35c42a(arg0, arg1) { | ||
getObject(arg0).height = arg1 >>> 0; | ||
}; | ||
export function __wbg_getContext_b6f46c995f9563a1() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
var ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2), getObject(arg3)); | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}, arguments) }; | ||
export function __wbg_defaultPrevented_372f815a08cdbc26(arg0) { | ||
var ret = getObject(arg0).defaultPrevented; | ||
return ret; | ||
}; | ||
export function __wbg_preventDefault_7c4d18eb2bb1a26a(arg0) { | ||
getObject(arg0).preventDefault(); | ||
}; | ||
export function __wbg_stopPropagation_11ccdc30c46ad19a(arg0) { | ||
getObject(arg0).stopPropagation(); | ||
}; | ||
export function __wbg_touches_976280ecfdead054(arg0) { | ||
var ret = getObject(arg0).touches; | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_item_5a5f92bba46832d3(arg0, arg1) { | ||
var ret = getObject(arg0).item(arg1 >>> 0); | ||
return isLikeNone(ret) ? 0 : addHeapObject(ret); | ||
}; | ||
export function __wbg_name_3bda187a3f4d705f(arg0, arg1) { | ||
@@ -1198,41 +976,6 @@ var ret = getObject(arg1).name; | ||
export function __wbindgen_closure_wrapper1011(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 314, __wbg_adapter_32); | ||
export function __wbindgen_closure_wrapper5111(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 1280, __wbg_adapter_30); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper2187(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_35); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper2189(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_38); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper2191(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_41); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper2193(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_44); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper2195(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_47); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper2197(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 637, __wbg_adapter_50); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_closure_wrapper5500(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 1428, __wbg_adapter_53); | ||
return addHeapObject(ret); | ||
}; | ||
Sorry, the diff of this file is not supported yet
3312478
855