Skip to content

Commit 0382f63

Browse files
committed
updated platformer demo
1 parent 594981b commit 0382f63

5 files changed

Lines changed: 57 additions & 57 deletions

File tree

src/.vuepress/public/assets/demo/platformer/pkg/executor_wasm.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export interface InitOutput {
2929
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
3030
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
3131
readonly __wbindgen_export_6: WebAssembly.Table;
32-
readonly closure18641_externref_shim: (a: number, b: number, c: any, d: any) => void;
33-
readonly closure18635_externref_shim: (a: number, b: number, c: any) => void;
32+
readonly closure18640_externref_shim: (a: number, b: number, c: any) => void;
3433
readonly wasm_bindgen__convert__closures_____invoke__hf40205624f27c18e: (a: number, b: number) => void;
3534
readonly wasm_bindgen__convert__closures_____invoke__h8cfff34f40d693aa: (a: number, b: number) => void;
36-
readonly closure62095_externref_shim: (a: number, b: number, c: any) => void;
35+
readonly closure18646_externref_shim: (a: number, b: number, c: any, d: any) => void;
36+
readonly closure62081_externref_shim: (a: number, b: number, c: any) => void;
3737
readonly __wbindgen_start: () => void;
3838
}
3939

src/.vuepress/public/assets/demo/platformer/pkg/executor_wasm.js

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -305,24 +305,24 @@ export function main() {
305305
wasm.main();
306306
}
307307

308-
function __wbg_adapter_6(arg0, arg1, arg2, arg3) {
309-
wasm.closure18641_externref_shim(arg0, arg1, arg2, arg3);
308+
function __wbg_adapter_8(arg0, arg1, arg2) {
309+
wasm.closure18640_externref_shim(arg0, arg1, arg2);
310310
}
311311

312-
function __wbg_adapter_15(arg0, arg1, arg2) {
313-
wasm.closure18635_externref_shim(arg0, arg1, arg2);
314-
}
315-
316-
function __wbg_adapter_18(arg0, arg1) {
312+
function __wbg_adapter_27(arg0, arg1) {
317313
wasm.wasm_bindgen__convert__closures_____invoke__hf40205624f27c18e(arg0, arg1);
318314
}
319315

320-
function __wbg_adapter_27(arg0, arg1) {
316+
function __wbg_adapter_32(arg0, arg1) {
321317
wasm.wasm_bindgen__convert__closures_____invoke__h8cfff34f40d693aa(arg0, arg1);
322318
}
323319

324-
function __wbg_adapter_36(arg0, arg1, arg2) {
325-
wasm.closure62095_externref_shim(arg0, arg1, arg2);
320+
function __wbg_adapter_45(arg0, arg1, arg2, arg3) {
321+
wasm.closure18646_externref_shim(arg0, arg1, arg2, arg3);
322+
}
323+
324+
function __wbg_adapter_48(arg0, arg1, arg2) {
325+
wasm.closure62081_externref_shim(arg0, arg1, arg2);
326326
}
327327

328328
const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"];
@@ -1718,71 +1718,76 @@ function __wbg_get_imports() {
17181718
const ret = arg0.y;
17191719
return ret;
17201720
};
1721-
imports.wbg.__wbindgen_cast_1581ceef55d22876 = function(arg0, arg1) {
1722-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("Event")], shim_idx: 18635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1723-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_15);
1724-
return ret;
1725-
};
1726-
imports.wbg.__wbindgen_cast_203a1f14255e5902 = function(arg0, arg1) {
1727-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 18635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1728-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_15);
1721+
imports.wbg.__wbindgen_cast_02b1f2b7cbd49a93 = function(arg0, arg1) {
1722+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 18640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1723+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_8);
17291724
return ret;
17301725
};
17311726
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
17321727
// Cast intrinsic for `Ref(String) -> Externref`.
17331728
const ret = getStringFromWasm0(arg0, arg1);
17341729
return ret;
17351730
};
1736-
imports.wbg.__wbindgen_cast_315c1b6fa2c34e3d = function(arg0, arg1) {
1737-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 18635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1738-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_15);
1731+
imports.wbg.__wbindgen_cast_312cf187f613a634 = function(arg0, arg1) {
1732+
// Cast intrinsic for `Closure(Closure { dtor_idx: 17693, function: Function { arguments: [], shim_idx: 17694, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1733+
const ret = makeMutClosure(arg0, arg1, 17693, __wbg_adapter_32);
17391734
return ret;
17401735
};
1741-
imports.wbg.__wbindgen_cast_31fed7c9fc9639ea = function(arg0, arg1) {
1742-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [], shim_idx: 18638, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1743-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_18);
1736+
imports.wbg.__wbindgen_cast_324ae84c50926a50 = function(arg0, arg1) {
1737+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [], shim_idx: 18643, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1738+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_27);
17441739
return ret;
17451740
};
1746-
imports.wbg.__wbindgen_cast_39d971f325f1f26a = function(arg0, arg1) {
1747-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 18635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1748-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_15);
1741+
imports.wbg.__wbindgen_cast_526750d017d46174 = function(arg0, arg1) {
1742+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 18640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1743+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_8);
17491744
return ret;
17501745
};
1751-
imports.wbg.__wbindgen_cast_4f22c305a298acc3 = function(arg0, arg1) {
1752-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 18635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1753-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_15);
1754-
return ret;
1755-
};
1756-
imports.wbg.__wbindgen_cast_5fe23692eb6f5441 = function(arg0, arg1) {
1757-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 18635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1758-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_15);
1746+
imports.wbg.__wbindgen_cast_79e4cd66d68556c1 = function(arg0, arg1) {
1747+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 18640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1748+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_8);
17591749
return ret;
17601750
};
17611751
imports.wbg.__wbindgen_cast_7c316abdc43840a3 = function(arg0, arg1) {
17621752
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
17631753
const ret = getArrayU32FromWasm0(arg0, arg1);
17641754
return ret;
17651755
};
1756+
imports.wbg.__wbindgen_cast_80d9ece18bd89f9f = function(arg0, arg1) {
1757+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 18640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1758+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_8);
1759+
return ret;
1760+
};
1761+
imports.wbg.__wbindgen_cast_87d75fbc9e3a61ad = function(arg0, arg1) {
1762+
// Cast intrinsic for `Closure(Closure { dtor_idx: 62080, function: Function { arguments: [Externref], shim_idx: 62081, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1763+
const ret = makeMutClosure(arg0, arg1, 62080, __wbg_adapter_48);
1764+
return ret;
1765+
};
1766+
imports.wbg.__wbindgen_cast_8830eb8b2bb3590e = function(arg0, arg1) {
1767+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 18640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1768+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_8);
1769+
return ret;
1770+
};
1771+
imports.wbg.__wbindgen_cast_8ac4493910ddda62 = function(arg0, arg1) {
1772+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 18646, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1773+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_45);
1774+
return ret;
1775+
};
17661776
imports.wbg.__wbindgen_cast_9575fb55a66c262b = function(arg0, arg1) {
17671777
// Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
17681778
const ret = getArrayI32FromWasm0(arg0, arg1);
17691779
return ret;
17701780
};
1771-
imports.wbg.__wbindgen_cast_a1c70d4bb54daa3f = function(arg0, arg1) {
1772-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 18635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1773-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_15);
1781+
imports.wbg.__wbindgen_cast_a78a1284cddc94e4 = function(arg0, arg1) {
1782+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 18640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1783+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_8);
17741784
return ret;
17751785
};
17761786
imports.wbg.__wbindgen_cast_bbb4883c6389f1de = function(arg0, arg1) {
17771787
// Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
17781788
const ret = getArrayU16FromWasm0(arg0, arg1);
17791789
return ret;
17801790
};
1781-
imports.wbg.__wbindgen_cast_c0719b89b8c14507 = function(arg0, arg1) {
1782-
// Cast intrinsic for `Closure(Closure { dtor_idx: 17688, function: Function { arguments: [], shim_idx: 17689, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1783-
const ret = makeMutClosure(arg0, arg1, 17688, __wbg_adapter_27);
1784-
return ret;
1785-
};
17861791
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
17871792
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
17881793
const ret = getArrayU8FromWasm0(arg0, arg1);
@@ -1803,14 +1808,9 @@ function __wbg_get_imports() {
18031808
const ret = getArrayI16FromWasm0(arg0, arg1);
18041809
return ret;
18051810
};
1806-
imports.wbg.__wbindgen_cast_edb5a675af1cf770 = function(arg0, arg1) {
1807-
// Cast intrinsic for `Closure(Closure { dtor_idx: 62094, function: Function { arguments: [Externref], shim_idx: 62095, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1808-
const ret = makeMutClosure(arg0, arg1, 62094, __wbg_adapter_36);
1809-
return ret;
1810-
};
1811-
imports.wbg.__wbindgen_cast_ee06ce3b2c85bbaa = function(arg0, arg1) {
1812-
// Cast intrinsic for `Closure(Closure { dtor_idx: 18634, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 18641, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1813-
const ret = makeMutClosure(arg0, arg1, 18634, __wbg_adapter_6);
1811+
imports.wbg.__wbindgen_cast_ee82efa6f821019a = function(arg0, arg1) {
1812+
// Cast intrinsic for `Closure(Closure { dtor_idx: 18639, function: Function { arguments: [NamedExternref("Event")], shim_idx: 18640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1813+
const ret = makeMutClosure(arg0, arg1, 18639, __wbg_adapter_8);
18141814
return ret;
18151815
};
18161816
imports.wbg.__wbindgen_cast_feefb5fadd6457fd = function(arg0, arg1) {
Binary file not shown.

src/.vuepress/public/assets/demo/platformer/pkg/executor_wasm_bg.wasm.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export const __wbindgen_malloc: (a: number, b: number) => number;
1111
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1212
export const __wbindgen_free: (a: number, b: number, c: number) => void;
1313
export const __wbindgen_export_6: WebAssembly.Table;
14-
export const closure18641_externref_shim: (a: number, b: number, c: any, d: any) => void;
15-
export const closure18635_externref_shim: (a: number, b: number, c: any) => void;
14+
export const closure18640_externref_shim: (a: number, b: number, c: any) => void;
1615
export const wasm_bindgen__convert__closures_____invoke__hf40205624f27c18e: (a: number, b: number) => void;
1716
export const wasm_bindgen__convert__closures_____invoke__h8cfff34f40d693aa: (a: number, b: number) => void;
18-
export const closure62095_externref_shim: (a: number, b: number, c: any) => void;
17+
export const closure18646_externref_shim: (a: number, b: number, c: any, d: any) => void;
18+
export const closure62081_externref_shim: (a: number, b: number, c: any) => void;
1919
export const __wbindgen_start: () => void;
68.4 KB
Loading

0 commit comments

Comments
 (0)