diff --git a/linon.d.ts b/linon.d.ts index 21963e7..3537fbf 100644 --- a/linon.d.ts +++ b/linon.d.ts @@ -9,13 +9,13 @@ export interface InitOutput { readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_export_2: WebAssembly.Table; - readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5d11b0aec9c6cf87: (a: number, b: number, c: number) => void; - readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9e5b1be089df3d5c: (a: number, b: number) => void; - readonly _dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a2138c723273a9d: (a: number, b: number, c: number, d: number) => void; - readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h363bdc30260c584f: (a: number, b: number, c: number) => void; - readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h891598fdd2b5e2bb: (a: number, b: number) => void; - readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h894ab487ce4b2889: (a: number, b: number, c: number) => void; - readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f7f02841102d6dc: (a: number, b: number, c: number) => void; + readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4e9141949e846ed3: (a: number, b: number) => void; + readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b84e16438946644: (a: number, b: number, c: number) => void; + readonly _dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he55d34db491f8c0a: (a: number, b: number, c: number, d: number) => void; + readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h310dbbcfea16a840: (a: number, b: number) => void; + readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0bcfb093369c5366: (a: number, b: number, c: number) => void; + readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ae2fb5d1ecfeb11: (a: number, b: number, c: number) => void; + readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h996b3403be646224: (a: number, b: number, c: number) => void; readonly __wbindgen_free: (a: number, b: number, c: number) => void; readonly __wbindgen_exn_store: (a: number) => void; readonly __wbindgen_start: () => void; diff --git a/linon.js b/linon.js index fe59b16..1843c12 100644 --- a/linon.js +++ b/linon.js @@ -20,15 +20,6 @@ function takeObject(idx) { return ret; } -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; -} - const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; @@ -47,6 +38,15 @@ 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 cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); @@ -211,32 +211,32 @@ function makeMutClosure(arg0, arg1, dtor, f) { CLOSURE_DTORS.register(real, state, state); return real; } -function __wbg_adapter_28(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5d11b0aec9c6cf87(arg0, arg1, addHeapObject(arg2)); +function __wbg_adapter_28(arg0, arg1) { + wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4e9141949e846ed3(arg0, arg1); } -function __wbg_adapter_33(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9e5b1be089df3d5c(arg0, arg1); +function __wbg_adapter_31(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b84e16438946644(arg0, arg1, addHeapObject(arg2)); } function __wbg_adapter_36(arg0, arg1, arg2, arg3) { - wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a2138c723273a9d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); + wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he55d34db491f8c0a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); } -function __wbg_adapter_47(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h363bdc30260c584f(arg0, arg1, addHeapObject(arg2)); +function __wbg_adapter_47(arg0, arg1) { + wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h310dbbcfea16a840(arg0, arg1); } -function __wbg_adapter_50(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h891598fdd2b5e2bb(arg0, arg1); +function __wbg_adapter_50(arg0, arg1, arg2) { + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0bcfb093369c5366(arg0, arg1, addHeapObject(arg2)); } function __wbg_adapter_63(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h894ab487ce4b2889(arg0, arg1, addHeapObject(arg2)); + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ae2fb5d1ecfeb11(arg0, arg1, addHeapObject(arg2)); } function __wbg_adapter_68(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f7f02841102d6dc(arg0, arg1, addHeapObject(arg2)); + wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h996b3403be646224(arg0, arg1, addHeapObject(arg2)); } function handleError(f, args) { @@ -298,6 +298,14 @@ function __wbg_get_imports() { imports.wbg.__wbindgen_object_drop_ref = function(arg0) { takeObject(arg0); }; + imports.wbg.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm0(arg0, arg1); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_object_clone_ref = function(arg0) { + const ret = getObject(arg0); + return addHeapObject(ret); + }; imports.wbg.__wbindgen_is_undefined = function(arg0) { const ret = getObject(arg0) === undefined; return ret; @@ -311,14 +319,6 @@ function __wbg_get_imports() { const ret = false; return ret; }; - imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - const ret = getObject(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm0(arg0, arg1); - return addHeapObject(ret); - }; imports.wbg.__wbg_new_abda76e883ba8a5f = function() { const ret = new Error(); return addHeapObject(ret); @@ -392,60 +392,60 @@ function __wbg_get_imports() { const ret = getObject(arg0).offsetY; return ret; }; - imports.wbg.__wbg_scheduler_8082c844a9cfc0df = function(arg0) { - const ret = getObject(arg0).scheduler; + imports.wbg.__wbg_webkitFullscreenElement_533c5f32e2ac8d0c = function(arg0) { + const ret = getObject(arg0).webkitFullscreenElement; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_getCoalescedEvents_4665669d237be577 = function(arg0) { + const ret = getObject(arg0).getCoalescedEvents; return addHeapObject(ret); }; - imports.wbg.__wbindgen_number_new = function(arg0) { - const ret = arg0; + imports.wbg.__wbg_requestFullscreen_a851d70cb190396a = function(arg0) { + const ret = getObject(arg0).requestFullscreen; + return addHeapObject(ret); + }; + imports.wbg.__wbg_scheduler_6932606c19435996 = function(arg0) { + const ret = getObject(arg0).scheduler; return addHeapObject(ret); }; imports.wbg.__wbg_onpointerrawupdate_e087759b4021ec00 = function(arg0) { const ret = getObject(arg0).onpointerrawupdate; return addHeapObject(ret); }; - imports.wbg.__wbg_getCoalescedEvents_4665669d237be577 = function(arg0) { - const ret = getObject(arg0).getCoalescedEvents; + imports.wbg.__wbg_requestIdleCallback_081ddac93612a53e = function(arg0) { + const ret = getObject(arg0).requestIdleCallback; return addHeapObject(ret); }; - imports.wbg.__wbg_scheduler_6932606c19435996 = function(arg0) { + imports.wbg.__wbg_Window_cc0273a5da2c36dc = function(arg0) { + const ret = getObject(arg0).Window; + return addHeapObject(ret); + }; + imports.wbg.__wbg_scheduler_8082c844a9cfc0df = function(arg0) { const ret = getObject(arg0).scheduler; return addHeapObject(ret); }; - imports.wbg.__wbg_requestIdleCallback_081ddac93612a53e = function(arg0) { - const ret = getObject(arg0).requestIdleCallback; + imports.wbg.__wbindgen_number_new = function(arg0) { + const ret = arg0; return addHeapObject(ret); }; imports.wbg.__wbg_postTask_4674878f9a603824 = function(arg0, arg1, arg2) { const ret = getObject(arg0).postTask(getObject(arg1), getObject(arg2)); return addHeapObject(ret); }; - imports.wbg.__wbg_requestFullscreen_a851d70cb190396a = function(arg0) { - const ret = getObject(arg0).requestFullscreen; + imports.wbg.__wbg_prototype_8e5075a5dd95f801 = function() { + const ret = ResizeObserverEntry.prototype; return addHeapObject(ret); }; imports.wbg.__wbg_requestFullscreen_f4349fb8a7429cf9 = function(arg0) { const ret = getObject(arg0).requestFullscreen(); return addHeapObject(ret); }; - imports.wbg.__wbg_Window_cc0273a5da2c36dc = function(arg0) { - const ret = getObject(arg0).Window; - return addHeapObject(ret); - }; imports.wbg.__wbg_webkitExitFullscreen_225988f6e8c97b63 = function(arg0) { getObject(arg0).webkitExitFullscreen(); }; - imports.wbg.__wbg_webkitFullscreenElement_533c5f32e2ac8d0c = function(arg0) { - const ret = getObject(arg0).webkitFullscreenElement; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; imports.wbg.__wbg_webkitRequestFullscreen_8abcfecec7127495 = function(arg0) { getObject(arg0).webkitRequestFullscreen(); }; - imports.wbg.__wbg_prototype_8e5075a5dd95f801 = function() { - const ret = ResizeObserverEntry.prototype; - return addHeapObject(ret); - }; imports.wbg.__wbg_performance_eeefc685c9bc38b4 = function(arg0) { const ret = getObject(arg0).performance; return addHeapObject(ret); @@ -977,13 +977,13 @@ function __wbg_get_imports() { imports.wbg.__wbg_submit_45411deaf663460c = function(arg0, arg1) { getObject(arg0).submit(getObject(arg1)); }; + imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) { + queueMicrotask(getObject(arg0)); + }; imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) { const ret = getObject(arg0).queueMicrotask; return addHeapObject(ret); }; - imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) { - queueMicrotask(getObject(arg0)); - }; imports.wbg.__wbg_instanceof_Window_f401953a2cf86220 = function(arg0) { let result; try { @@ -1095,24 +1095,6 @@ function __wbg_get_imports() { const ret = getObject(arg0).navigator; return addHeapObject(ret); }; - imports.wbg.__wbg_debug_5fb96680aecf5dc8 = function(arg0) { - console.debug(getObject(arg0)); - }; - imports.wbg.__wbg_error_8e3928cfb8a43e2b = function(arg0) { - console.error(getObject(arg0)); - }; - imports.wbg.__wbg_error_6e987ee48d9fdf45 = function(arg0, arg1) { - console.error(getObject(arg0), getObject(arg1)); - }; - imports.wbg.__wbg_info_530a29cb2e4e3304 = function(arg0) { - console.info(getObject(arg0)); - }; - imports.wbg.__wbg_log_5bb5f88f245d7762 = function(arg0) { - console.log(getObject(arg0)); - }; - imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { - console.warn(getObject(arg0)); - }; imports.wbg.__wbg_width_1e8430024cb82aba = function(arg0) { const ret = getObject(arg0).width; return ret; @@ -1121,43 +1103,84 @@ function __wbg_get_imports() { const ret = getObject(arg0).height; return ret; }; - imports.wbg.__wbg_altKey_2e6c34c37088d8b1 = function(arg0) { - const ret = getObject(arg0).altKey; + imports.wbg.__wbg_port1_d51a1bd2c33125d0 = function(arg0) { + const ret = getObject(arg0).port1; + return addHeapObject(ret); + }; + imports.wbg.__wbg_port2_f522a81e92362e7e = function(arg0) { + const ret = getObject(arg0).port2; + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_34615e164dc78975 = function() { return handleError(function () { + const ret = new MessageChannel(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_appendChild_580ccb11a660db68 = function() { return handleError(function (arg0, arg1) { + const ret = getObject(arg0).appendChild(getObject(arg1)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_contains_fdfd1dc667f36695 = function(arg0, arg1) { + const ret = getObject(arg0).contains(getObject(arg1)); return ret; }; - imports.wbg.__wbg_ctrlKey_bb5b6fef87339703 = function(arg0) { - const ret = getObject(arg0).ctrlKey; + imports.wbg.__wbg_get_8cd5eba00ab6304f = function(arg0, arg1) { + const ret = getObject(arg0)[arg1 >>> 0]; + return isLikeNone(ret) ? 0 : addHeapObject(ret); + }; + imports.wbg.__wbg_inlineSize_ff0e40258cefeba2 = function(arg0) { + const ret = getObject(arg0).inlineSize; return ret; }; - imports.wbg.__wbg_shiftKey_5911baf439ab232b = function(arg0) { - const ret = getObject(arg0).shiftKey; + imports.wbg.__wbg_blockSize_73f4e5608c08713d = function(arg0) { + const ret = getObject(arg0).blockSize; return ret; }; - imports.wbg.__wbg_metaKey_6bf4ae4e83a11278 = function(arg0) { - const ret = getObject(arg0).metaKey; + imports.wbg.__wbg_deltaX_206576827ededbe5 = function(arg0) { + const ret = getObject(arg0).deltaX; return ret; }; - imports.wbg.__wbg_location_f7b033ddfc516739 = function(arg0) { - const ret = getObject(arg0).location; + imports.wbg.__wbg_deltaY_032e327e216f2b2b = function(arg0) { + const ret = getObject(arg0).deltaY; return ret; }; - imports.wbg.__wbg_repeat_f64b916c6eed0685 = function(arg0) { - const ret = getObject(arg0).repeat; + imports.wbg.__wbg_deltaMode_294b2eaf54047265 = function(arg0) { + const ret = getObject(arg0).deltaMode; return ret; }; - imports.wbg.__wbg_key_dccf9e8aa1315a8e = function(arg0, arg1) { - const ret = getObject(arg1).key; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; + imports.wbg.__wbg_new_61d4f20a1c08a45c = function() { return handleError(function (arg0) { + const ret = new ResizeObserver(getObject(arg0)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_disconnect_6675f32e2ae8deb7 = function(arg0) { + getObject(arg0).disconnect(); }; - imports.wbg.__wbg_code_3b0c3912a2351163 = function(arg0, arg1) { - const ret = getObject(arg1).code; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; + imports.wbg.__wbg_observe_a79646ce7bb08cb8 = function(arg0, arg1) { + getObject(arg0).observe(getObject(arg1)); + }; + imports.wbg.__wbg_observe_dc0ebcd59ee7cd17 = function(arg0, arg1, arg2) { + getObject(arg0).observe(getObject(arg1), getObject(arg2)); + }; + imports.wbg.__wbg_unobserve_55c93518cad6ac06 = function(arg0, arg1) { + getObject(arg0).unobserve(getObject(arg1)); + }; + imports.wbg.__wbg_contentRect_bce644376332c7a5 = function(arg0) { + const ret = getObject(arg0).contentRect; + return addHeapObject(ret); + }; + imports.wbg.__wbg_devicePixelContentBoxSize_d5bcdcd5e96671f3 = function(arg0) { + const ret = getObject(arg0).devicePixelContentBoxSize; + return addHeapObject(ret); + }; + imports.wbg.__wbg_signal_a61f78a3478fd9bc = function(arg0) { + const ret = getObject(arg0).signal; + return addHeapObject(ret); + }; + imports.wbg.__wbg_new_0d76b0581eca6298 = function() { return handleError(function () { + const ret = new AbortController(); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_abort_2aa7521d5690750e = function(arg0) { + getObject(arg0).abort(); }; imports.wbg.__wbg_getPropertyValue_fa32ee1811f224cb = function() { return handleError(function (arg0, arg1, arg2, arg3) { const ret = getObject(arg1).getPropertyValue(getStringFromWasm0(arg2, arg3)); @@ -1176,60 +1199,10 @@ function __wbg_get_imports() { imports.wbg.__wbg_setProperty_ea7d15a2b591aa97 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }, arguments) }; - imports.wbg.__wbg_addEventListener_53b787075bd5e003 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); - }, arguments) }; - imports.wbg.__wbg_removeEventListener_92cb9b3943463338 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); - }, arguments) }; - imports.wbg.__wbg_new_4e95a9abecc83cd4 = function() { return handleError(function (arg0) { - const ret = new IntersectionObserver(getObject(arg0)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_disconnect_e694940ce6d0ef91 = function(arg0) { - getObject(arg0).disconnect(); - }; - imports.wbg.__wbg_observe_538a6d1df0deb993 = function(arg0, arg1) { - getObject(arg0).observe(getObject(arg1)); - }; - imports.wbg.__wbg_port1_d51a1bd2c33125d0 = function(arg0) { - const ret = getObject(arg0).port1; - return addHeapObject(ret); - }; - imports.wbg.__wbg_port2_f522a81e92362e7e = function(arg0) { - const ret = getObject(arg0).port2; - return addHeapObject(ret); - }; - imports.wbg.__wbg_new_34615e164dc78975 = function() { return handleError(function () { - const ret = new MessageChannel(); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_pointerId_e030fa156647fedd = function(arg0) { - const ret = getObject(arg0).pointerId; - return ret; - }; - imports.wbg.__wbg_pressure_99cd07399f942a7c = function(arg0) { - const ret = getObject(arg0).pressure; - return ret; - }; - imports.wbg.__wbg_pointerType_0f2f0383406aa7fa = function(arg0, arg1) { - const ret = getObject(arg1).pointerType; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; - }; - imports.wbg.__wbg_getCoalescedEvents_14b443b6f75837a2 = function(arg0) { - const ret = getObject(arg0).getCoalescedEvents(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_persisted_cbb7e3c657029516 = function(arg0) { - const ret = getObject(arg0).persisted; + imports.wbg.__wbg_isIntersecting_082397a1d66e2e35 = function(arg0) { + const ret = getObject(arg0).isIntersecting; return ret; }; - imports.wbg.__wbg_preventDefault_b1a4aafc79409429 = function(arg0) { - getObject(arg0).preventDefault(); - }; imports.wbg.__wbg_media_bcef0e2ec4383569 = function(arg0, arg1) { const ret = getObject(arg1).media; const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -1259,54 +1232,6 @@ function __wbg_get_imports() { imports.wbg.__wbg_start_5a293222bc398f51 = function(arg0) { getObject(arg0).start(); }; - imports.wbg.__wbg_contentRect_bce644376332c7a5 = function(arg0) { - const ret = getObject(arg0).contentRect; - return addHeapObject(ret); - }; - imports.wbg.__wbg_devicePixelContentBoxSize_d5bcdcd5e96671f3 = function(arg0) { - const ret = getObject(arg0).devicePixelContentBoxSize; - return addHeapObject(ret); - }; - imports.wbg.__wbg_inlineSize_ff0e40258cefeba2 = function(arg0) { - const ret = getObject(arg0).inlineSize; - return ret; - }; - imports.wbg.__wbg_blockSize_73f4e5608c08713d = function(arg0) { - const ret = getObject(arg0).blockSize; - return ret; - }; - imports.wbg.__wbg_appendChild_580ccb11a660db68 = function() { return handleError(function (arg0, arg1) { - const ret = getObject(arg0).appendChild(getObject(arg1)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_contains_fdfd1dc667f36695 = function(arg0, arg1) { - const ret = getObject(arg0).contains(getObject(arg1)); - return ret; - }; - imports.wbg.__wbg_get_8cd5eba00ab6304f = function(arg0, arg1) { - const ret = getObject(arg0)[arg1 >>> 0]; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_new_61d4f20a1c08a45c = function() { return handleError(function (arg0) { - const ret = new ResizeObserver(getObject(arg0)); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_disconnect_6675f32e2ae8deb7 = function(arg0) { - getObject(arg0).disconnect(); - }; - imports.wbg.__wbg_observe_a79646ce7bb08cb8 = function(arg0, arg1) { - getObject(arg0).observe(getObject(arg1)); - }; - imports.wbg.__wbg_observe_dc0ebcd59ee7cd17 = function(arg0, arg1, arg2) { - getObject(arg0).observe(getObject(arg1), getObject(arg2)); - }; - imports.wbg.__wbg_unobserve_55c93518cad6ac06 = function(arg0, arg1) { - getObject(arg0).unobserve(getObject(arg1)); - }; - imports.wbg.__wbg_isIntersecting_082397a1d66e2e35 = function(arg0) { - const ret = getObject(arg0).isIntersecting; - return ret; - }; imports.wbg.__wbg_ctrlKey_008695ce60a588f5 = function(arg0) { const ret = getObject(arg0).ctrlKey; return ret; @@ -1339,28 +1264,65 @@ function __wbg_get_imports() { const ret = getObject(arg0).movementY; return ret; }; - imports.wbg.__wbg_deltaX_206576827ededbe5 = function(arg0) { - const ret = getObject(arg0).deltaX; + imports.wbg.__wbg_persisted_cbb7e3c657029516 = function(arg0) { + const ret = getObject(arg0).persisted; return ret; }; - imports.wbg.__wbg_deltaY_032e327e216f2b2b = function(arg0) { - const ret = getObject(arg0).deltaY; + imports.wbg.__wbg_debug_5fb96680aecf5dc8 = function(arg0) { + console.debug(getObject(arg0)); + }; + imports.wbg.__wbg_error_8e3928cfb8a43e2b = function(arg0) { + console.error(getObject(arg0)); + }; + imports.wbg.__wbg_error_6e987ee48d9fdf45 = function(arg0, arg1) { + console.error(getObject(arg0), getObject(arg1)); + }; + imports.wbg.__wbg_info_530a29cb2e4e3304 = function(arg0) { + console.info(getObject(arg0)); + }; + imports.wbg.__wbg_log_5bb5f88f245d7762 = function(arg0) { + console.log(getObject(arg0)); + }; + imports.wbg.__wbg_warn_63bbae1730aead09 = function(arg0) { + console.warn(getObject(arg0)); + }; + imports.wbg.__wbg_altKey_2e6c34c37088d8b1 = function(arg0) { + const ret = getObject(arg0).altKey; return ret; }; - imports.wbg.__wbg_deltaMode_294b2eaf54047265 = function(arg0) { - const ret = getObject(arg0).deltaMode; + imports.wbg.__wbg_ctrlKey_bb5b6fef87339703 = function(arg0) { + const ret = getObject(arg0).ctrlKey; return ret; }; - imports.wbg.__wbg_signal_a61f78a3478fd9bc = function(arg0) { - const ret = getObject(arg0).signal; - return addHeapObject(ret); + imports.wbg.__wbg_shiftKey_5911baf439ab232b = function(arg0) { + const ret = getObject(arg0).shiftKey; + return ret; }; - imports.wbg.__wbg_new_0d76b0581eca6298 = function() { return handleError(function () { - const ret = new AbortController(); - return addHeapObject(ret); - }, arguments) }; - imports.wbg.__wbg_abort_2aa7521d5690750e = function(arg0) { - getObject(arg0).abort(); + imports.wbg.__wbg_metaKey_6bf4ae4e83a11278 = function(arg0) { + const ret = getObject(arg0).metaKey; + return ret; + }; + imports.wbg.__wbg_location_f7b033ddfc516739 = function(arg0) { + const ret = getObject(arg0).location; + return ret; + }; + imports.wbg.__wbg_repeat_f64b916c6eed0685 = function(arg0) { + const ret = getObject(arg0).repeat; + return ret; + }; + imports.wbg.__wbg_key_dccf9e8aa1315a8e = function(arg0, arg1) { + const ret = getObject(arg1).key; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_code_3b0c3912a2351163 = function(arg0, arg1) { + const ret = getObject(arg1).code; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; imports.wbg.__wbg_setwidth_080107476e633963 = function(arg0, arg1) { getObject(arg0).width = arg1 >>> 0; @@ -1382,6 +1344,44 @@ function __wbg_get_imports() { const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2)); return isLikeNone(ret) ? 0 : addHeapObject(ret); }, arguments) }; + imports.wbg.__wbg_pointerId_e030fa156647fedd = function(arg0) { + const ret = getObject(arg0).pointerId; + return ret; + }; + imports.wbg.__wbg_pressure_99cd07399f942a7c = function(arg0) { + const ret = getObject(arg0).pressure; + return ret; + }; + imports.wbg.__wbg_pointerType_0f2f0383406aa7fa = function(arg0, arg1) { + const ret = getObject(arg1).pointerType; + const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len1; + getInt32Memory0()[arg0 / 4 + 0] = ptr1; + }; + imports.wbg.__wbg_getCoalescedEvents_14b443b6f75837a2 = function(arg0) { + const ret = getObject(arg0).getCoalescedEvents(); + return addHeapObject(ret); + }; + imports.wbg.__wbg_preventDefault_b1a4aafc79409429 = function(arg0) { + getObject(arg0).preventDefault(); + }; + imports.wbg.__wbg_addEventListener_53b787075bd5e003 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); + }, arguments) }; + imports.wbg.__wbg_removeEventListener_92cb9b3943463338 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3)); + }, arguments) }; + imports.wbg.__wbg_new_4e95a9abecc83cd4 = function() { return handleError(function (arg0) { + const ret = new IntersectionObserver(getObject(arg0)); + return addHeapObject(ret); + }, arguments) }; + imports.wbg.__wbg_disconnect_e694940ce6d0ef91 = function(arg0) { + getObject(arg0).disconnect(); + }; + imports.wbg.__wbg_observe_538a6d1df0deb993 = function(arg0, arg1) { + getObject(arg0).observe(getObject(arg1)); + }; imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) { const ret = getObject(arg0)[arg1 >>> 0]; return addHeapObject(ret); @@ -1517,76 +1517,76 @@ function __wbg_get_imports() { const ret = wasm.memory; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper693 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper670 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_28); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper694 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper671 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_31); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper695 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_33); + imports.wbg.__wbindgen_closure_wrapper672 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_31); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper696 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_36); + imports.wbg.__wbindgen_closure_wrapper673 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_36); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper697 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper674 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_31); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper698 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper675 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_31); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper699 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper676 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_31); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper701 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 179, __wbg_adapter_28); + imports.wbg.__wbindgen_closure_wrapper683 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 200, __wbg_adapter_31); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4063 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1459, __wbg_adapter_47); + imports.wbg.__wbindgen_closure_wrapper3978 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1451, __wbg_adapter_47); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4064 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1459, __wbg_adapter_50); + imports.wbg.__wbindgen_closure_wrapper3979 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1451, __wbg_adapter_50); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4065 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1459, __wbg_adapter_47); + imports.wbg.__wbindgen_closure_wrapper3980 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1451, __wbg_adapter_50); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4066 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1459, __wbg_adapter_47); + imports.wbg.__wbindgen_closure_wrapper3981 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1451, __wbg_adapter_50); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4067 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1459, __wbg_adapter_47); + imports.wbg.__wbindgen_closure_wrapper3982 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1451, __wbg_adapter_50); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4068 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1459, __wbg_adapter_47); + imports.wbg.__wbindgen_closure_wrapper3983 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1451, __wbg_adapter_50); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4069 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1459, __wbg_adapter_47); + imports.wbg.__wbindgen_closure_wrapper3984 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1451, __wbg_adapter_50); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4646 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1731, __wbg_adapter_63); + imports.wbg.__wbindgen_closure_wrapper4661 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1733, __wbg_adapter_63); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper4648 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1731, __wbg_adapter_63); + imports.wbg.__wbindgen_closure_wrapper4663 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1733, __wbg_adapter_63); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper5015 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1744, __wbg_adapter_68); + imports.wbg.__wbindgen_closure_wrapper4999 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1750, __wbg_adapter_68); return addHeapObject(ret); }; diff --git a/linon_bg.wasm b/linon_bg.wasm index 5d9fea6..e5c5451 100644 Binary files a/linon_bg.wasm and b/linon_bg.wasm differ diff --git a/linon_bg.wasm.d.ts b/linon_bg.wasm.d.ts index ab035e1..7a1875c 100644 --- a/linon_bg.wasm.d.ts +++ b/linon_bg.wasm.d.ts @@ -5,13 +5,13 @@ export function main(a: number, b: number): number; export function __wbindgen_malloc(a: number, b: number): number; export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; export const __wbindgen_export_2: WebAssembly.Table; -export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5d11b0aec9c6cf87(a: number, b: number, c: number): void; -export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9e5b1be089df3d5c(a: number, b: number): void; -export function _dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a2138c723273a9d(a: number, b: number, c: number, d: number): void; -export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h363bdc30260c584f(a: number, b: number, c: number): void; -export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h891598fdd2b5e2bb(a: number, b: number): void; -export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h894ab487ce4b2889(a: number, b: number, c: number): void; -export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f7f02841102d6dc(a: number, b: number, c: number): void; +export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4e9141949e846ed3(a: number, b: number): void; +export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b84e16438946644(a: number, b: number, c: number): void; +export function _dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he55d34db491f8c0a(a: number, b: number, c: number, d: number): void; +export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h310dbbcfea16a840(a: number, b: number): void; +export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0bcfb093369c5366(a: number, b: number, c: number): void; +export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ae2fb5d1ecfeb11(a: number, b: number, c: number): void; +export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h996b3403be646224(a: number, b: number, c: number): void; export function __wbindgen_free(a: number, b: number, c: number): void; export function __wbindgen_exn_store(a: number): void; export function __wbindgen_start(): void;