Cleanup
This commit is contained in:
parent
a8019d4bf8
commit
ee7b180e3f
@ -1,9 +1,4 @@
|
|||||||
// 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,
|
||||||
@ -17,17 +12,6 @@ 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>
|
<tr class="m-4 border">
|
||||||
<th>{format.toUpperCase()}</th>
|
<th>{format.toUpperCase()}</th>
|
||||||
<td>{xpin.allCoordinates[format]}</td>
|
<td class="p-4 border">{xpin.allCoordinates[format]}</td>
|
||||||
<td><CopyButton data={xpin.allCoordinates[format]} /></td>
|
<td><CopyButton data={xpin.allCoordinates[format]} /></td>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
Loading…
Reference in New Issue
Block a user