Revert "Cleanup"
This reverts commit ee7b180e3f022c46b8b828e7f2733dadcbc0df69.
This commit is contained in:
parent
7a12de1bd3
commit
710141fba3
@ -1,4 +1,9 @@
|
|||||||
|
// import init from 'xpin-wasm';
|
||||||
|
// import * as xpinWasm from 'xpin-wasm';
|
||||||
import * as xpinWasm from '$lib/pkg/xpin_wasm.js';
|
import * as xpinWasm from '$lib/pkg/xpin_wasm.js';
|
||||||
|
// import * as init from '$lib/pkg/xpin_wasm_bg.js';
|
||||||
|
// import init from '$lib/pkg/xpin_wasm_bg.wasm?init';
|
||||||
|
// import * as xpinWasm from '$lib/pkg/xpin_wasm.js';
|
||||||
|
|
||||||
export const WasmStatus = {
|
export const WasmStatus = {
|
||||||
NotLoaded: -1,
|
NotLoaded: -1,
|
||||||
@ -12,6 +17,17 @@ export async function getWasm() {
|
|||||||
|
|
||||||
wasmStatus = WasmStatus.Loaded;
|
wasmStatus = WasmStatus.Loaded;
|
||||||
|
|
||||||
|
// await init()
|
||||||
|
// .then(() => {
|
||||||
|
|
||||||
|
// })
|
||||||
|
// .catch((e) => {
|
||||||
|
// console.error('Error loading wasm module', e);
|
||||||
|
// wasmError = e;
|
||||||
|
// wasmStatus = WasmStatus.Errored;
|
||||||
|
// throw e;
|
||||||
|
// });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
status: wasmStatus,
|
status: wasmStatus,
|
||||||
error: wasmError,
|
error: wasmError,
|
||||||
|
@ -41,9 +41,9 @@
|
|||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
{#each formats as format}
|
{#each formats as format}
|
||||||
<tr class="m-4 border">
|
<tr>
|
||||||
<th>{format.toUpperCase()}</th>
|
<th>{format.toUpperCase()}</th>
|
||||||
<td class="p-4 border">{xpin.allCoordinates[format]}</td>
|
<td>{xpin.allCoordinates[format]}</td>
|
||||||
<td><CopyButton data={xpin.allCoordinates[format]} /></td>
|
<td><CopyButton data={xpin.allCoordinates[format]} /></td>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user