This commit is contained in:
Austen Adler 2023-04-09 00:19:35 -04:00
parent a8019d4bf8
commit ee7b180e3f
2 changed files with 2 additions and 18 deletions

View File

@ -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,

View File

@ -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}