From 32e2b18308178de2aa6b840933401b36faa08598 Mon Sep 17 00:00:00 2001 From: Ada Werefox Date: Tue, 28 Mar 2023 16:10:06 +0000 Subject: [PATCH] Should be done, I wish there were an easier way to change the favicon. Perhaps in future Dioxus versions? --- Cargo.toml | 1 + Dioxus.toml | 4 +- README.md | 1 + public/images/heart-icon.png | Bin 0 -> 24363 bytes public/tailwind.min.css | 2 +- src/data/poem.txt | 16 + src/lib.rs | 92 +- tailwind.config.js | 2 - wasm/module.js | 974 --------------------- wasm/module_bg.wasm | 1606 ---------------------------------- 10 files changed, 68 insertions(+), 2630 deletions(-) create mode 100755 public/images/heart-icon.png create mode 100644 src/data/poem.txt delete mode 100644 wasm/module.js delete mode 100644 wasm/module_bg.wasm diff --git a/Cargo.toml b/Cargo.toml index 2773640..52f4092 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,4 @@ log = "0.4.6" wasm-logger = "0.2.0" console_error_panic_hook = "0.1.7" wasm-bindgen = "0.2.84" +dioxus-autofmt = "0.3.0" diff --git a/Dioxus.toml b/Dioxus.toml index c618534..74b1dd1 100644 --- a/Dioxus.toml +++ b/Dioxus.toml @@ -16,7 +16,7 @@ asset_dir = "public" [web.app] # HTML title tag content -title = "A Letter For You! 🖤" +title = "A Letter For You!" [web.watcher] @@ -24,7 +24,7 @@ title = "A Letter For You! 🖤" reload_html = true # which files or dirs will be watcher monitoring -watch_path = ["src", "public"] +watch_path = ["src", "public", "tailwind.config.js", "Dioxus.toml", "Cargo.toml", "build.rs"] # include `assets` in web platform [web.resource] diff --git a/README.md b/README.md index 51cf406..e7def5c 100644 --- a/README.md +++ b/README.md @@ -35,5 +35,6 @@ dioxus build --release - public # save the assets you want include in your project. - src # put your code - - utils # save some public function +- - data # text files that will be read to for data in the app - - components # save some custom components ``` diff --git a/public/images/heart-icon.png b/public/images/heart-icon.png new file mode 100755 index 0000000000000000000000000000000000000000..3d0031744fd3ca123dd28793532cc6e45b5d6fac GIT binary patch literal 24363 zcmeF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N3&abbA?5W6Y1uM&)(HDvrP9?Qato|P%OEP7%wMq(0O9mZ~#_8D`#W6w1$IXag; zSbD)b$e1|6Vn9ugeKJ;Y*lf*qCzN*Yj)(T=&kNESv$bza*0k$}w)Uad2fsr)!Sn_7oFNk|Yd?kWdVznA~E zw6&<+=Q@`u%u^osy@1ymKLc*Wn^&uT8!Y1`aYq?6K=qoMq?xDD`yN*U27Xk5 z)s8~5ZhBSpK7Ys!zMYQrk{!s`bd$vl3(T+5#f{zamXOV5o-T(u+qlUsQ`20MDnr|) zexRJcj9D~BwMngSXhk*BUE#6{FplQZmegbRUMdY1d6X!qnDp!u+&#@du){Tkr28_% zNdc1D1O7SfeC}{*:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.py-4{padding-top:1rem;padding-bottom:1rem}.font-nerd{font-family:DejaVuSansMono}.text-alice-werefox-grey-light{--tw-text-opacity:1;color:rgb(204 204 204/var(--tw-text-opacity))}@font-face{font-family:DejaVuSansMono;src:local("DejaVuSansMono"),url(/fonts/DejaVuSansMono.ttf),format("ttf")}@media (prefers-color-scheme:dark){.dark\:bg-alice-werefox-grey{--tw-bg-opacity:1;background-color:rgb(36 36 36/var(--tw-bg-opacity))}} \ No newline at end of file +/*! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.relative{position:relative}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.flex{display:flex}.h-48{height:12rem}.min-h-screen{min-height:100vh}.w-48{width:12rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}@keyframes growshrink{0%{transform:scale(.5)}40%{transform:scale(1.2)}60%{transform:scale(1.2)}to{transform:scale(.5)}}.animate-growshrink{animation:growshrink 2s cubic-bezier(1,0,0,1) infinite}.flex-col{flex-direction:column}.justify-center{justify-content:center}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.border-4{border-width:4px}.border-alice-werefox-red-dark{--tw-border-opacity:1;border-color:rgb(128 0 8/var(--tw-border-opacity))}.bg-alice-werefox-grey-light{--tw-bg-opacity:1;background-color:rgb(204 204 204/var(--tw-bg-opacity))}.bg-alice-werefox-grey-lightest{--tw-bg-opacity:1;background-color:rgb(238 238 238/var(--tw-bg-opacity))}.p-4{padding:1rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.font-nerd{font-family:DejaVuSansMono}.text-alice-werefox-red-dark{--tw-text-opacity:1;color:rgb(128 0 8/var(--tw-text-opacity))}@font-face{font-family:DejaVuSansMono;src:local("DejaVuSansMono"),url(/fonts/DejaVuSansMono.ttf),format("ttf")}@media (prefers-color-scheme:dark){.dark\:border-alice-werefox-red{--tw-border-opacity:1;border-color:rgb(201 52 57/var(--tw-border-opacity))}.dark\:bg-alice-werefox-grey{--tw-bg-opacity:1;background-color:rgb(36 36 36/var(--tw-bg-opacity))}.dark\:bg-alice-werefox-grey-dark{--tw-bg-opacity:1;background-color:rgb(18 18 18/var(--tw-bg-opacity))}.dark\:text-alice-werefox-red-light{--tw-text-opacity:1;color:rgb(224 133 135/var(--tw-text-opacity))}} \ No newline at end of file diff --git a/src/data/poem.txt b/src/data/poem.txt new file mode 100644 index 0000000..0db9554 --- /dev/null +++ b/src/data/poem.txt @@ -0,0 +1,16 @@ +You are important. I wrote a small poem I hope will help you today. +It's not very long, but I'm doing my best, and so are you. + +You are the moon, you are the stars +Im glad you're here, whomever you are. +We've been through much; in this life it's true, +But in the end, you will come through. + +Much like life, this poem is short +It doesn't always rhyme, or have a nice beat; +It might seem wrong, or incomplete; +It might go on, or so it seems; +It might feel like you're in a dream. + +That's not the point, I know in my heart +I'm glad you're here, whomever you are. \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 96cb470..eb622c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,61 +5,63 @@ pub mod web_app { pub fn app(cx: Scope) -> Element { cx.render(rsx! ( div { - make_poem {}, + class: "min-h-screen font-nerd bg-alice-werefox-grey-light dark:bg-alice-werefox-grey", + div { + class: "container space-y-4 mx-auto p-4", + add_heart {}, + make_poem {}, + } + } + )) + } + + fn add_heart(cx: Scope) -> Element { + cx.render(rsx!( + div { + class: "flex justify-center py-8", + div { + class: "animate-growshrink", + div { + class: "relative h-48 w-48", + img { + src: "images/heart-icon.png", + alt: "logo", + fill: true + } + } + } } )) } fn make_poem(cx: Scope) -> Element { + let poem = include_str!("data/poem.txt").split("\n\n"); + cx.render(rsx!( div { - class: "font-nerd dark:bg-alice-werefox-grey text-alice-werefox-grey-light flex flex-col space-y-4 mx-4 py-4", - div { - p { - "You are important. I wrote a small poem I hope will help you today." - }, - p { - "It's not very long, but I'm doing my best, and so are you." - } + class: "flex-col space-y-4", + p { + class: "mx-auto max-w-fit flex justify-center bg-alice-werefox-grey-lightest dark:bg-alice-werefox-grey-dark border-4 border-alice-werefox-red-dark dark:border-alice-werefox-red text-alice-werefox-red-dark dark:text-alice-werefox-red-light p-4", + "You are important and loved" }, - div { - p { - "You are the moon, you are the stars" + details { + class: "mx-auto max-w-fit space-y-4 bg-alice-werefox-grey-lightest dark:bg-alice-werefox-grey-dark border-4 border-alice-werefox-red-dark dark:border-alice-werefox-red text-alice-werefox-red-dark dark:text-alice-werefox-red-light p-4", + summary { + class: "flex justify-center border-4 bg-alice-werefox-grey-lightest dark:bg-alice-werefox-grey-dark border-4 border-alice-werefox-red-dark dark:border-alice-werefox-red text-alice-werefox-red-dark dark:text-alice-werefox-red-light p-4", + "Tell Me More" }, - p { - "Im glad you're here, whomever you are." - }, - p{ - "We've been through much; in this life it's true," - }, - p { - "But in the end, you will come through." + div { + class: "font-nerd flex flex-col space-y-4 mx-4 py-4", + poem.map(|phrase| rsx!( + div { + phrase.lines().map(|line| rsx!( + p { + line + } + )) + } + )) } - }, - div { - p { - "Much like life, this poem is short" - }, - p { - "It doesn't always rhyme, or have a nice beat;" - }, - p { - "It might seem wrong, or incomplete;" - }, - p { - "It might go on, or so it seems;" - }, - p { - "It might feel like you're in a dream." - } - } - div { - p { - "That's not the point, I know in my heart" - }, - p { - "I'm glad you're here, whomever you are." - }, } } )) diff --git a/tailwind.config.js b/tailwind.config.js index c8ed7bb..c0bf36b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,8 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { content: [ - "./components/**/*.{js,ts,jsx,tsx}", - // "index.html", // Or if using `src` directory: "./src/**/*.{rs,html,js,ts,jsx,tsx,ttf}", ], diff --git a/wasm/module.js b/wasm/module.js deleted file mode 100644 index 5cc110b..0000000 --- a/wasm/module.js +++ /dev/null @@ -1,974 +0,0 @@ - -let wasm; - -const heap = new Array(32).fill(undefined); - -heap.push(undefined, null, true, false); - -function getObject(idx) { return heap[idx]; } - -let heap_next = heap.length; - -function dropObject(idx) { - if (idx < 36) return; - heap[idx] = heap_next; - heap_next = idx; -} - -function takeObject(idx) { - const ret = getObject(idx); - dropObject(idx); - return ret; -} - -let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - -cachedTextDecoder.decode(); - -let cachegetUint8Memory0 = null; -function getUint8Memory0() { - if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { - cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); - } - return cachegetUint8Memory0; -} - -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 debugString(val) { - // primitive types - const type = typeof val; - if (type == 'number' || type == 'boolean' || val == null) { - return `${val}`; - } - if (type == 'string') { - return `"${val}"`; - } - if (type == 'symbol') { - const description = val.description; - if (description == null) { - return 'Symbol'; - } else { - return `Symbol(${description})`; - } - } - if (type == 'function') { - const name = val.name; - if (typeof name == 'string' && name.length > 0) { - return `Function(${name})`; - } else { - return 'Function'; - } - } - // objects - if (Array.isArray(val)) { - const length = val.length; - let debug = '['; - if (length > 0) { - debug += debugString(val[0]); - } - for(let i = 1; i < length; i++) { - debug += ', ' + debugString(val[i]); - } - debug += ']'; - return debug; - } - // Test for built-in - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); - let className; - if (builtInMatches.length > 1) { - className = builtInMatches[1]; - } else { - // Failed to match the standard '[object ClassName]' - return toString.call(val); - } - if (className == 'Object') { - // we're a user defined class or Object - // JSON.stringify avoids problems with cycles, and is generally much - // easier than looping through ownProperties of `val`. - try { - return 'Object(' + JSON.stringify(val) + ')'; - } catch (_) { - return 'Object'; - } - } - // errors - if (val instanceof Error) { - return `${val.name}: ${val.message}\n${val.stack}`; - } - // TODO we could test for more things here, like `Set`s and `Map`s. - return className; -} - -let WASM_VECTOR_LEN = 0; - -let cachedTextEncoder = new TextEncoder('utf-8'); - -const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' - ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); -} - : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; -}); - -function passStringToWasm0(arg, malloc, realloc) { - - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length); - getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len); - - const mem = getUint8Memory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3); - const view = getUint8Memory0().subarray(ptr + offset, ptr + len); - const ret = encodeString(arg, view); - - offset += ret.written; - } - - WASM_VECTOR_LEN = offset; - return ptr; -} - -let cachegetInt32Memory0 = null; -function getInt32Memory0() { - if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) { - cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer); - } - return cachegetInt32Memory0; -} - -function makeClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - try { - return f(state.a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b); - state.a = 0; - - } - } - }; - real.original = state; - - return real; -} -function __wbg_adapter_18(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hee66633b5afceae2(arg0, arg1, addHeapObject(arg2)); -} - -function makeMutClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); - - } else { - state.a = a; - } - } - }; - real.original = state; - - return real; -} - -let stack_pointer = 32; - -function addBorrowedObject(obj) { - if (stack_pointer == 1) throw new Error('out of js stack'); - heap[--stack_pointer] = obj; - return stack_pointer; -} -function __wbg_adapter_21(arg0, arg1, arg2) { - try { - wasm._dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6c1480f21af15b9d(arg0, arg1, addBorrowedObject(arg2)); - } finally { - heap[stack_pointer++] = undefined; - } -} - -function __wbg_adapter_24(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8541ea54ad7ea27a(arg0, arg1, addHeapObject(arg2)); -} - -function __wbg_adapter_27(arg0, arg1) { - wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h467f168fe7c0222c(arg0, arg1); -} - -function getCachedStringFromWasm0(ptr, len) { - if (ptr === 0) { - return getObject(len); - } else { - return getStringFromWasm0(ptr, len); - } -} - -function isLikeNone(x) { - return x === undefined || x === null; -} - -function handleError(f, args) { - try { - return f.apply(this, args); - } catch (e) { - wasm.__wbindgen_exn_store(addHeapObject(e)); - } -} - -async function load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - - } catch (e) { - if (module.headers.get('Content-Type') != 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { - throw e; - } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - - } else { - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - - } else { - return instance; - } - } -} - -async function init(input) { - if (typeof input === 'undefined') { - input = new URL('hooks_shared_state_bg.wasm', import.meta.url); - } - const imports = {}; - imports.wbg = {}; - imports.wbg.__wbindgen_cb_drop = function(arg0) { - const obj = takeObject(arg0).original; - if (obj.cnt-- == 1) { - obj.a = 0; - return true; - } - var ret = false; - return ret; - }; - imports.wbg.__wbindgen_object_drop_ref = function(arg0) { - takeObject(arg0); - }; - imports.wbg.__wbindgen_is_function = function(arg0) { - var ret = typeof(getObject(arg0)) === 'function'; - return ret; - }; - imports.wbg.__wbg_new_59cb74e423758ede = function() { - var ret = new Error(); - return addHeapObject(ret); - }; - imports.wbg.__wbg_stack_558ba5917b466edd = function(arg0, arg1) { - var ret = getObject(arg1).stack; - 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; - }; - imports.wbg.__wbg_error_4bb6c2a97407129a = function(arg0, arg1) { - var v0 = getCachedStringFromWasm0(arg0, arg1); - if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); } - console.error(v0); -}; -imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - var ret = getStringFromWasm0(arg0, arg1); - return addHeapObject(ret); -}; -imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - var ret = getObject(arg0); - return addHeapObject(ret); -}; -imports.wbg.__wbg_Window_f826a1dec163bacb = function(arg0) { - var ret = getObject(arg0).Window; - return addHeapObject(ret); -}; -imports.wbg.__wbindgen_is_undefined = function(arg0) { - var ret = getObject(arg0) === undefined; - return ret; -}; -imports.wbg.__wbg_WorkerGlobalScope_967d186155183d38 = function(arg0) { - var ret = getObject(arg0).WorkerGlobalScope; - return addHeapObject(ret); -}; -imports.wbg.__wbg_instanceof_Window_c4b70662a0d2c5ec = function(arg0) { - var ret = getObject(arg0) instanceof Window; - return ret; -}; -imports.wbg.__wbg_document_1c64944725c0d81d = function(arg0) { - var ret = getObject(arg0).document; - return isLikeNone(ret) ? 0 : addHeapObject(ret); -}; -imports.wbg.__wbg_requestAnimationFrame_71638ca922068239 = function() { return handleError(function (arg0, arg1) { - var ret = getObject(arg0).requestAnimationFrame(getObject(arg1)); - return ret; -}, arguments) }; -imports.wbg.__wbg_requestIdleCallback_183ce6abc9f992af = function() { return handleError(function (arg0, arg1) { - var ret = getObject(arg0).requestIdleCallback(getObject(arg1)); - return ret; -}, arguments) }; -imports.wbg.__wbg_clearTimeout_2c1ba0016d8bca41 = function(arg0, arg1) { - getObject(arg0).clearTimeout(arg1); -}; -imports.wbg.__wbg_setTimeout_df66d951b1726b78 = function() { return handleError(function (arg0, arg1, arg2) { - var ret = getObject(arg0).setTimeout(getObject(arg1), arg2); - return ret; -}, arguments) }; -imports.wbg.__wbg_createComment_710531dc62f02c0c = function(arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var ret = getObject(arg0).createComment(v0); - return addHeapObject(ret); -}; -imports.wbg.__wbg_createElement_86c152812a141a62 = function() { return handleError(function (arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var ret = getObject(arg0).createElement(v0); - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_createElementNS_ae12b8681c3957a3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var v1 = getCachedStringFromWasm0(arg3, arg4); - var ret = getObject(arg0).createElementNS(v0, v1); - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_createTextNode_365db3bc3d0523ab = function(arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var ret = getObject(arg0).createTextNode(v0); - return addHeapObject(ret); -}; -imports.wbg.__wbg_getElementById_f3e94458ce77f0d0 = function(arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var ret = getObject(arg0).getElementById(v0); - return isLikeNone(ret) ? 0 : addHeapObject(ret); -}; -imports.wbg.__wbg_querySelectorAll_7f26183d7dfc576e = function() { return handleError(function (arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var ret = getObject(arg0).querySelectorAll(v0); - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_instanceof_HtmlInputElement_8cafe5f30dfdb6bc = function(arg0) { - var ret = getObject(arg0) instanceof HTMLInputElement; - return ret; -}; -imports.wbg.__wbg_checked_39d5ce76226024a7 = function(arg0) { - var ret = getObject(arg0).checked; - return ret; -}; -imports.wbg.__wbg_setchecked_206243371da58f6a = function(arg0, arg1) { - getObject(arg0).checked = arg1 !== 0; -}; -imports.wbg.__wbg_type_ed14b550c9bab1c2 = function(arg0, arg1) { - var ret = getObject(arg1).type; - 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; -}; -imports.wbg.__wbg_value_0627d4b1c27534e6 = function(arg0, arg1) { - var ret = getObject(arg1).value; - 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; -}; -imports.wbg.__wbg_setvalue_2459f62386b6967f = function(arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - getObject(arg0).value = v0; -}; -imports.wbg.__wbg_instanceof_HtmlOptionElement_5d5f65dbc2cf3509 = function(arg0) { - var ret = getObject(arg0) instanceof HTMLOptionElement; - return ret; -}; -imports.wbg.__wbg_setselected_ed15d65374c26375 = function(arg0, arg1) { - getObject(arg0).selected = arg1 !== 0; -}; -imports.wbg.__wbg_instanceof_KeyboardEvent_96bb8fcff2603455 = function(arg0) { - var ret = getObject(arg0) instanceof KeyboardEvent; - return ret; -}; -imports.wbg.__wbg_charCode_94907480ee48e8d5 = function(arg0) { - var ret = getObject(arg0).charCode; - return ret; -}; -imports.wbg.__wbg_keyCode_490ed69472addfdc = function(arg0) { - var ret = getObject(arg0).keyCode; - return ret; -}; -imports.wbg.__wbg_altKey_3dcb50d5afbc5036 = function(arg0) { - var ret = getObject(arg0).altKey; - return ret; -}; -imports.wbg.__wbg_ctrlKey_fb62ba10b63b34a4 = function(arg0) { - var ret = getObject(arg0).ctrlKey; - return ret; -}; -imports.wbg.__wbg_shiftKey_bd2875540e5db840 = function(arg0) { - var ret = getObject(arg0).shiftKey; - return ret; -}; -imports.wbg.__wbg_metaKey_94ca09e07f21f240 = function(arg0) { - var ret = getObject(arg0).metaKey; - return ret; -}; -imports.wbg.__wbg_location_5bab830bd31662a2 = function(arg0) { - var ret = getObject(arg0).location; - return ret; -}; -imports.wbg.__wbg_repeat_8004e40e8ff1a1f1 = function(arg0) { - var ret = getObject(arg0).repeat; - return ret; -}; -imports.wbg.__wbg_key_10dcaa4bb6d5449f = function(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; -}; -imports.wbg.__wbg_instanceof_Event_480a3ec3d45b75a6 = function(arg0) { - var ret = getObject(arg0) instanceof Event; - return ret; -}; -imports.wbg.__wbg_type_7a49279491e15d0a = function(arg0, arg1) { - var ret = getObject(arg1).type; - 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; -}; -imports.wbg.__wbg_target_cc69dde6c2d9ec90 = function(arg0) { - var ret = getObject(arg0).target; - return isLikeNone(ret) ? 0 : addHeapObject(ret); -}; -imports.wbg.__wbg_instanceof_HtmlSelectElement_27fb687660e6b5ba = function(arg0) { - var ret = getObject(arg0) instanceof HTMLSelectElement; - return ret; -}; -imports.wbg.__wbg_value_bc4bb925ad58795b = function(arg0, arg1) { - var ret = getObject(arg1).value; - 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; -}; -imports.wbg.__wbg_length_62e6735d81b8b0f1 = function(arg0) { - var ret = getObject(arg0).length; - return ret; -}; -imports.wbg.__wbg_get_3bae69d3ceb47cc3 = function(arg0, arg1) { - var ret = getObject(arg0)[arg1 >>> 0]; - return isLikeNone(ret) ? 0 : addHeapObject(ret); -}; -imports.wbg.__wbg_instanceof_Node_ea9524a9184ff6d0 = function(arg0) { - var ret = getObject(arg0) instanceof Node; - return ret; -}; -imports.wbg.__wbg_parentNode_cd9f47bcc933ed0e = function(arg0) { - var ret = getObject(arg0).parentNode; - return isLikeNone(ret) ? 0 : addHeapObject(ret); -}; -imports.wbg.__wbg_textContent_eef491bffc43d8d6 = function(arg0, arg1) { - var ret = getObject(arg1).textContent; - var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; -}; -imports.wbg.__wbg_settextContent_799ebbf96e16265d = function(arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - getObject(arg0).textContent = v0; -}; -imports.wbg.__wbg_appendChild_d318db34c4559916 = function() { return handleError(function (arg0, arg1) { - var ret = getObject(arg0).appendChild(getObject(arg1)); - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_insertBefore_5b314357408fbec1 = function() { return handleError(function (arg0, arg1, arg2) { - var ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_removeChild_d3ca7b53e537867e = function() { return handleError(function (arg0, arg1) { - var ret = getObject(arg0).removeChild(getObject(arg1)); - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_instanceof_Text_8d7df795b9c7f8f9 = function(arg0) { - var ret = getObject(arg0) instanceof Text; - return ret; -}; -imports.wbg.__wbg_pageX_9b9d392e5134f3db = function(arg0) { - var ret = getObject(arg0).pageX; - return ret; -}; -imports.wbg.__wbg_pageY_ee824e6b949cdd34 = function(arg0) { - var ret = getObject(arg0).pageY; - return ret; -}; -imports.wbg.__wbg_which_222325717b841326 = function(arg0) { - var ret = getObject(arg0).which; - return ret; -}; -imports.wbg.__wbg_instanceof_MouseEvent_7cb2c66c3440bfb0 = function(arg0) { - var ret = getObject(arg0) instanceof MouseEvent; - return ret; -}; -imports.wbg.__wbg_screenX_6d3e727e1e71c8ba = function(arg0) { - var ret = getObject(arg0).screenX; - return ret; -}; -imports.wbg.__wbg_screenY_f7ccb175523cee84 = function(arg0) { - var ret = getObject(arg0).screenY; - return ret; -}; -imports.wbg.__wbg_clientX_97ff0f5c7b19e687 = function(arg0) { - var ret = getObject(arg0).clientX; - return ret; -}; -imports.wbg.__wbg_clientY_cacd4a7e44b9719b = function(arg0) { - var ret = getObject(arg0).clientY; - return ret; -}; -imports.wbg.__wbg_ctrlKey_9761d22fa42f09c0 = function(arg0) { - var ret = getObject(arg0).ctrlKey; - return ret; -}; -imports.wbg.__wbg_shiftKey_78ee0fc1aa572c2e = function(arg0) { - var ret = getObject(arg0).shiftKey; - return ret; -}; -imports.wbg.__wbg_altKey_8936038d973c56db = function(arg0) { - var ret = getObject(arg0).altKey; - return ret; -}; -imports.wbg.__wbg_metaKey_e6b9e0aa35aa2974 = function(arg0) { - var ret = getObject(arg0).metaKey; - return ret; -}; -imports.wbg.__wbg_button_a02c0467d38e8338 = function(arg0) { - var ret = getObject(arg0).button; - return ret; -}; -imports.wbg.__wbg_buttons_9d7b6c334f0b37de = function(arg0) { - var ret = getObject(arg0).buttons; - return ret; -}; -imports.wbg.__wbg_instanceof_CompositionEvent_e1cd64fd98d4425d = function(arg0) { - var ret = getObject(arg0) instanceof CompositionEvent; - return ret; -}; -imports.wbg.__wbg_data_dbff09eb89176161 = function(arg0, arg1) { - var ret = getObject(arg1).data; - var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; -}; -imports.wbg.__wbg_setProperty_1460c660bc329763 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var v1 = getCachedStringFromWasm0(arg3, arg4); - getObject(arg0).setProperty(v0, v1); -}, arguments) }; -imports.wbg.__wbg_addEventListener_52721772cc0a7f30 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - getObject(arg0).addEventListener(v0, getObject(arg3)); -}, arguments) }; -imports.wbg.__wbg_instanceof_IdleDeadline_e91ef932d81715c3 = function(arg0) { - var ret = getObject(arg0) instanceof IdleDeadline; - return ret; -}; -imports.wbg.__wbg_timeRemaining_6fa9d12d6d15e73e = function(arg0) { - var ret = getObject(arg0).timeRemaining(); - return ret; -}; -imports.wbg.__wbg_instanceof_TouchEvent_0ab696cda73333ac = function(arg0) { - var ret = getObject(arg0) instanceof TouchEvent; - return ret; -}; -imports.wbg.__wbg_altKey_7cfb90a08ce4db73 = function(arg0) { - var ret = getObject(arg0).altKey; - return ret; -}; -imports.wbg.__wbg_metaKey_49d641fb7c6fd755 = function(arg0) { - var ret = getObject(arg0).metaKey; - return ret; -}; -imports.wbg.__wbg_ctrlKey_2008616a1339c848 = function(arg0) { - var ret = getObject(arg0).ctrlKey; - return ret; -}; -imports.wbg.__wbg_shiftKey_aa89958b58ad5242 = function(arg0) { - var ret = getObject(arg0).shiftKey; - return ret; -}; -imports.wbg.__wbg_instanceof_WheelEvent_41916fe296da5b3c = function(arg0) { - var ret = getObject(arg0) instanceof WheelEvent; - return ret; -}; -imports.wbg.__wbg_deltaX_8cfc6cd15e97d97c = function(arg0) { - var ret = getObject(arg0).deltaX; - return ret; -}; -imports.wbg.__wbg_deltaY_080604c20160c0e8 = function(arg0) { - var ret = getObject(arg0).deltaY; - return ret; -}; -imports.wbg.__wbg_deltaZ_2a27c02ace57a19e = function(arg0) { - var ret = getObject(arg0).deltaZ; - return ret; -}; -imports.wbg.__wbg_deltaMode_c5ec1ee518ea0a08 = function(arg0) { - var ret = getObject(arg0).deltaMode; - return ret; -}; -imports.wbg.__wbg_instanceof_Element_97d85e53f1805b82 = function(arg0) { - var ret = getObject(arg0) instanceof Element; - return ret; -}; -imports.wbg.__wbg_getAttribute_bb1d602e925e860a = function(arg0, arg1, arg2, arg3) { - var v0 = getCachedStringFromWasm0(arg2, arg3); - var ret = getObject(arg1).getAttribute(v0); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len1; - getInt32Memory0()[arg0 / 4 + 0] = ptr1; -}; -imports.wbg.__wbg_removeAttribute_eea03ed128669b8f = function() { return handleError(function (arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - getObject(arg0).removeAttribute(v0); -}, arguments) }; -imports.wbg.__wbg_setAttribute_1b533bf07966de55 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - var v1 = getCachedStringFromWasm0(arg3, arg4); - getObject(arg0).setAttribute(v0, v1); -}, arguments) }; -imports.wbg.__wbg_after_41c4547474e5c7b2 = function() { return handleError(function (arg0, arg1) { - getObject(arg0).after(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_before_9614b2163991f8df = function() { return handleError(function (arg0, arg1) { - getObject(arg0).before(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_remove_c63cabc94a77cacb = function(arg0) { - getObject(arg0).remove(); -}; -imports.wbg.__wbg_replaceWith_1272417ed0a0204e = function() { return handleError(function (arg0, arg1) { - getObject(arg0).replaceWith(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_debug_f6147a62af5fb117 = function(arg0, arg1, arg2, arg3) { - console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3)); -}; -imports.wbg.__wbg_error_cc38ce2b4b661e1d = function(arg0) { - console.error(getObject(arg0)); -}; -imports.wbg.__wbg_error_8b4a1487636c965d = function(arg0, arg1, arg2, arg3) { - console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3)); -}; -imports.wbg.__wbg_info_74a03c22e1fa6688 = function(arg0, arg1, arg2, arg3) { - console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3)); -}; -imports.wbg.__wbg_log_ad41dbc3d891c2dc = function(arg0, arg1, arg2, arg3) { - console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3)); -}; -imports.wbg.__wbg_warn_c1cc594c33944c11 = function(arg0, arg1, arg2, arg3) { - console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3)); -}; -imports.wbg.__wbg_instanceof_HtmlElement_df66c8b4a687aa43 = function(arg0) { - var ret = getObject(arg0) instanceof HTMLElement; - return ret; -}; -imports.wbg.__wbg_style_c88e323890d3a091 = function(arg0) { - var ret = getObject(arg0).style; - return addHeapObject(ret); -}; -imports.wbg.__wbg_clearTimeout_c1f246d6874c0679 = function(arg0, arg1) { - getObject(arg0).clearTimeout(arg1); -}; -imports.wbg.__wbg_setTimeout_5314850184d61a44 = function() { return handleError(function (arg0, arg1, arg2) { - var ret = getObject(arg0).setTimeout(getObject(arg1), arg2); - return ret; -}, arguments) }; -imports.wbg.__wbg_instanceof_CharacterData_923547385daf396d = function(arg0) { - var ret = getObject(arg0) instanceof CharacterData; - return ret; -}; -imports.wbg.__wbg_after_c472195dda6b326c = function() { return handleError(function (arg0, arg1) { - getObject(arg0).after(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_before_fb2c3a2663318a78 = function() { return handleError(function (arg0, arg1) { - getObject(arg0).before(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_replaceWith_2c48dcaa450a6671 = function() { return handleError(function (arg0, arg1) { - getObject(arg0).replaceWith(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_instanceof_DocumentType_0e86823a57dde305 = function(arg0) { - var ret = getObject(arg0) instanceof DocumentType; - return ret; -}; -imports.wbg.__wbg_after_c0743062e8170d00 = function() { return handleError(function (arg0, arg1) { - getObject(arg0).after(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_before_52cbfbd938a19b42 = function() { return handleError(function (arg0, arg1) { - getObject(arg0).before(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_replaceWith_8c24775c6a372049 = function() { return handleError(function (arg0, arg1) { - getObject(arg0).replaceWith(...getObject(arg1)); -}, arguments) }; -imports.wbg.__wbg_instanceof_AnimationEvent_741ec19d568ec9b8 = function(arg0) { - var ret = getObject(arg0) instanceof AnimationEvent; - return ret; -}; -imports.wbg.__wbg_animationName_e6b926c751875085 = function(arg0, arg1) { - var ret = getObject(arg1).animationName; - 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; -}; -imports.wbg.__wbg_elapsedTime_4b480f2e6b2791cd = function(arg0) { - var ret = getObject(arg0).elapsedTime; - return ret; -}; -imports.wbg.__wbg_pseudoElement_7c2bfde68d10a4b6 = function(arg0, arg1) { - var ret = getObject(arg1).pseudoElement; - 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; -}; -imports.wbg.__wbg_instanceof_HtmlTextAreaElement_c2f3b4bd6871d5ad = function(arg0) { - var ret = getObject(arg0) instanceof HTMLTextAreaElement; - return ret; -}; -imports.wbg.__wbg_value_686b2a68422cb88d = function(arg0, arg1) { - var ret = getObject(arg1).value; - 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; -}; -imports.wbg.__wbg_setvalue_0a07023245efa3cc = function(arg0, arg1, arg2) { - var v0 = getCachedStringFromWasm0(arg1, arg2); - getObject(arg0).value = v0; -}; -imports.wbg.__wbg_instanceof_PointerEvent_a131c52e2d8689a4 = function(arg0) { - var ret = getObject(arg0) instanceof PointerEvent; - return ret; -}; -imports.wbg.__wbg_pointerId_9302f0e125f0b48e = function(arg0) { - var ret = getObject(arg0).pointerId; - return ret; -}; -imports.wbg.__wbg_width_e3c349a44d741557 = function(arg0) { - var ret = getObject(arg0).width; - return ret; -}; -imports.wbg.__wbg_height_b04227a17ca32a40 = function(arg0) { - var ret = getObject(arg0).height; - return ret; -}; -imports.wbg.__wbg_pressure_ccb6528a41a7988e = function(arg0) { - var ret = getObject(arg0).pressure; - return ret; -}; -imports.wbg.__wbg_tangentialPressure_7e9160a69763fa5a = function(arg0) { - var ret = getObject(arg0).tangentialPressure; - return ret; -}; -imports.wbg.__wbg_tiltX_e72f0f8d2db90a01 = function(arg0) { - var ret = getObject(arg0).tiltX; - return ret; -}; -imports.wbg.__wbg_tiltY_c632d7fa14c6264a = function(arg0) { - var ret = getObject(arg0).tiltY; - return ret; -}; -imports.wbg.__wbg_twist_10483210c2b4bf9f = function(arg0) { - var ret = getObject(arg0).twist; - return ret; -}; -imports.wbg.__wbg_pointerType_2b40a4fc77c24d55 = function(arg0, arg1) { - var ret = getObject(arg1).pointerType; - 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; -}; -imports.wbg.__wbg_isPrimary_1b61e5694cebdb4a = function(arg0) { - var ret = getObject(arg0).isPrimary; - return ret; -}; -imports.wbg.__wbg_instanceof_TransitionEvent_a0154619d908db2f = function(arg0) { - var ret = getObject(arg0) instanceof TransitionEvent; - return ret; -}; -imports.wbg.__wbg_propertyName_05bec2f4569cb7fe = function(arg0, arg1) { - var ret = getObject(arg1).propertyName; - 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; -}; -imports.wbg.__wbg_elapsedTime_6f18fd8e77d055cd = function(arg0) { - var ret = getObject(arg0).elapsedTime; - return ret; -}; -imports.wbg.__wbg_pseudoElement_08a057e1e2493048 = function(arg0, arg1) { - var ret = getObject(arg1).pseudoElement; - 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; -}; -imports.wbg.__wbg_new_949bbc1147195c4e = function() { - var ret = new Array(); - return addHeapObject(ret); -}; -imports.wbg.__wbg_newnoargs_be86524d73f67598 = function(arg0, arg1) { - var v0 = getCachedStringFromWasm0(arg0, arg1); - var ret = new Function(v0); - return addHeapObject(ret); -}; -imports.wbg.__wbg_call_888d259a5fefc347 = function() { return handleError(function (arg0, arg1) { - var ret = getObject(arg0).call(getObject(arg1)); - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_push_284486ca27c6aa8b = function(arg0, arg1) { - var ret = getObject(arg0).push(getObject(arg1)); - return ret; -}; -imports.wbg.__wbg_instanceof_Object_66786225e0dbc8ba = function(arg0) { - var ret = getObject(arg0) instanceof Object; - return ret; -}; -imports.wbg.__wbg_hasOwnProperty_9060fa1885e12d11 = function(arg0, arg1) { - var ret = getObject(arg0).hasOwnProperty(getObject(arg1)); - return ret; -}; -imports.wbg.__wbg_resolve_d23068002f584f22 = function(arg0) { - var ret = Promise.resolve(getObject(arg0)); - return addHeapObject(ret); -}; -imports.wbg.__wbg_then_2fcac196782070cc = function(arg0, arg1) { - var ret = getObject(arg0).then(getObject(arg1)); - return addHeapObject(ret); -}; -imports.wbg.__wbg_self_c6fbdfc2918d5e58 = function() { return handleError(function () { - var ret = self.self; - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_window_baec038b5ab35c54 = function() { return handleError(function () { - var ret = window.window; - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_globalThis_3f735a5746d41fbd = function() { return handleError(function () { - var ret = globalThis.globalThis; - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbg_global_1bc0b39582740e95 = function() { return handleError(function () { - var ret = global.global; - return addHeapObject(ret); -}, arguments) }; -imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { - var ret = debugString(getObject(arg1)); - 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; -}; -imports.wbg.__wbindgen_throw = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); -}; -imports.wbg.__wbindgen_closure_wrapper444 = function(arg0, arg1, arg2) { - var ret = makeClosure(arg0, arg1, 160, __wbg_adapter_18); - return addHeapObject(ret); -}; -imports.wbg.__wbindgen_closure_wrapper446 = function(arg0, arg1, arg2) { - var ret = makeMutClosure(arg0, arg1, 160, __wbg_adapter_21); - return addHeapObject(ret); -}; -imports.wbg.__wbindgen_closure_wrapper528 = function(arg0, arg1, arg2) { - var ret = makeMutClosure(arg0, arg1, 210, __wbg_adapter_24); - return addHeapObject(ret); -}; -imports.wbg.__wbindgen_closure_wrapper566 = function(arg0, arg1, arg2) { - var ret = makeMutClosure(arg0, arg1, 228, __wbg_adapter_27); - return addHeapObject(ret); -}; - -if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { - input = fetch(input); -} - - - -const { instance, module } = await load(await input, imports); - -wasm = instance.exports; -init.__wbindgen_wasm_module = module; -wasm.__wbindgen_start(); -return wasm; -} - -export default init; - diff --git a/wasm/module_bg.wasm b/wasm/module_bg.wasm deleted file mode 100644 index 09ef60c..0000000 --- a/wasm/module_bg.wasm +++ /dev/null @@ -1,1606 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - example-projects/module_bg.wasm at a06f337f2a6d9a1bfcb131fb337a255e45765be5 · DioxusLabs/example-projects · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - -
- -
- - - - - - - -
- - - - - - -
- - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
- - -
- - - - - - - -Permalink - -
- -
-
- - - a06f337f2a - - - - -
-
-
- Switch branches/tags - -
- - - -
- -
- -
- - -
- -
- - - - - - - - - - - - - - - - - -
- - -
-
-
-
- -
- -
- - -
- -
-
-
-

Name already in use

-
-
- -
-
-
-
- -
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? -
- -
-
- - -
-
- - - - Go to file - -
- - - - -
-
-
- - - - - - - - - -
- -
-
- - @jkelleyrtp - - -
- - Latest commit - 8fc6380 - Dec 29, 2021 - - - - - - History - - -
-
- -
- -
-
- - - 1 - - contributor - - -
- -

- Users who have contributed to this file -

-
- - - - - - -
-
-
-
- - - - - - - - - -
- -
- - -
- - 289 KB -
- -
- - - - - -
- -
- -
-
- - - -
- -
- View raw -
-
- -
- - - - -
- - -
- - -
-
- - - -
- -
- - -
- -
- - -
-
- -
- - - - - - - - - - - - - - - - - - -
- -
- - -