Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5b6c37b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed May 30, 2024
1 parent ef3442b commit 83836a8
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 42 deletions.
81 changes: 41 additions & 40 deletions four-bar-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,91 +196,96 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
});

function makeMutClosure(arg0, arg1, dtor, f) {
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++;
const a = state.a;
state.a = 0;
try {
return f(a, state.b, ...args);
return f(state.a, state.b, ...args);
} finally {
if (--state.cnt === 0) {
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
state.a = 0;
CLOSURE_DTORS.unregister(state);
} else {
state.a = a;
}
}
};
real.original = state;
CLOSURE_DTORS.register(real, state, state);
return real;
}
function __wbg_adapter_30(arg0, arg1, arg2, arg3) {

function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1, 1) >>> 0;
getUint8Memory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function __wbg_adapter_30(arg0, arg1, arg2) {
const ptr0 = passArray8ToWasm0(arg2, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he15f388a549563d0(arg0, arg1, ptr0, len0);
}

function __wbg_adapter_33(arg0, arg1, arg2, arg3) {
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(arg3, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4b2522ce4b6b6aba(arg0, arg1, ptr0, len0, ptr1, len1);
wasm._dyn_core__ops__function__Fn__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h757aec543b747601(arg0, arg1, ptr0, len0, ptr1, len1);
}

function makeClosure(arg0, arg1, dtor, f) {
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(state.a, state.b, ...args);
return f(a, state.b, ...args);
} finally {
if (--state.cnt === 0) {
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
state.a = 0;
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
CLOSURE_DTORS.unregister(state);
} else {
state.a = a;
}
}
};
real.original = state;
CLOSURE_DTORS.register(real, state, state);
return real;
}
function __wbg_adapter_33(arg0, arg1, arg2, arg3) {
function __wbg_adapter_36(arg0, arg1, arg2, arg3) {
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(arg3, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
wasm._dyn_core__ops__function__Fn__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1a0b315cebff049b(arg0, arg1, ptr0, len0, ptr1, len1);
}

function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1, 1) >>> 0;
getUint8Memory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function __wbg_adapter_36(arg0, arg1, arg2) {
const ptr0 = passArray8ToWasm0(arg2, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h505da6f4267f796b(arg0, arg1, ptr0, len0);
wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8440994383b98b5a(arg0, arg1, ptr0, len0, ptr1, len1);
}

function __wbg_adapter_39(arg0, arg1, arg2, arg3) {
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passArray8ToWasm0(arg3, wasm.__wbindgen_malloc);
const len1 = WASM_VECTOR_LEN;
wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52f465ebc390261e(arg0, arg1, ptr0, len0, ptr1, len1);
wasm._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h57c5419e19337297(arg0, arg1, ptr0, len0, ptr1, len1);
}

function __wbg_adapter_42(arg0, arg1) {
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h173e38a08af6df37(arg0, arg1);
}

function __wbg_adapter_45(arg0, arg1) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha8cab529bb3223db(retptr, arg0, arg1);
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h91b23738bdffea5c(retptr, arg0, arg1);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
Expand All @@ -291,12 +296,8 @@ function __wbg_adapter_42(arg0, arg1) {
}
}

function __wbg_adapter_45(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8950f830ed2ac812(arg0, arg1, addHeapObject(arg2));
}

function __wbg_adapter_48(arg0, arg1) {
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfa891f088adbfcb9(arg0, arg1);
function __wbg_adapter_48(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h91e02f63efdf5d52(arg0, arg1, addHeapObject(arg2));
}

function __wbg_adapter_51(arg0, arg1, arg2) {
Expand Down Expand Up @@ -372,13 +373,13 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_loadingfinished_f212398285aa1896 = typeof loading_finished == 'function' ? loading_finished : notDefined('loading_finished');
imports.wbg.__wbg_openfile_9f5fd7fe0055f877 = function(arg0, arg1, arg2, arg3, arg4) {
open_file(getStringFromWasm0(arg0, arg1), takeObject(arg2), arg3 !== 0, arg4 !== 0);
};
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_openfile_9f5fd7fe0055f877 = function(arg0, arg1, arg2, arg3, arg4) {
open_file(getStringFromWasm0(arg0, arg1), takeObject(arg2), arg3 !== 0, arg4 !== 0);
};
imports.wbg.__wbg_savefile_9e7433c1bb68e28c = function(arg0, arg1, arg2, arg3) {
save_file(getArrayU8FromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
};
Expand Down Expand Up @@ -1558,15 +1559,15 @@ function __wbg_get_imports() {
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2709 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 732, __wbg_adapter_30);
const ret = makeClosure(arg0, arg1, 732, __wbg_adapter_30);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2711 = function(arg0, arg1, arg2) {
const ret = makeClosure(arg0, arg1, 732, __wbg_adapter_33);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2713 = function(arg0, arg1, arg2) {
const ret = makeClosure(arg0, arg1, 732, __wbg_adapter_36);
const ret = makeMutClosure(arg0, arg1, 732, __wbg_adapter_36);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2715 = function(arg0, arg1, arg2) {
Expand Down
Binary file modified four-bar-ui_bg.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
}
</style>

<link rel="modulepreload" href="/four-bar-rs/four-bar-ui.js" crossorigin=anonymous integrity="sha384-itqYipSC1aPQmur6cDetpP/Tjzkf5jqKraVPKdn/KNNYu0I7t0P+5bhAkQ3VQaz8">
<link rel="preload" href="/four-bar-rs/four-bar-ui_bg.wasm" crossorigin=anonymous integrity="sha384-8Pac31/5p1gVEfqLyHrmL5Q9Pcl8eb3/bmYksaGfkbHQFi1LP0BHVDAafWN8tneP" as="fetch" type="application/wasm"></head>
<link rel="modulepreload" href="/four-bar-rs/four-bar-ui.js" crossorigin=anonymous integrity="sha384-gooi9z8k1iq+YLWjyWJXNmPmnqUHcX2sb5NdHAWOvrxbaasdNZhFryBqBa5U7Qfo">
<link rel="preload" href="/four-bar-rs/four-bar-ui_bg.wasm" crossorigin=anonymous integrity="sha384-m0MYUc7dnxNXbQOk2j679g2p+T8GpevgmSbhuP3O1BgLeLuLqFu0SewxrkaWfjCg" as="fetch" type="application/wasm"></head>

<body>
<!-- The WASM code will resize this canvas to cover the entire screen -->
Expand Down

0 comments on commit 83836a8

Please sign in to comment.