pasar worldY a Editor

This commit is contained in:
Cat /dev/Nulo 2023-03-05 18:25:51 +00:00
parent 906e1a2d32
commit 166308aa06
2 changed files with 3 additions and 1 deletions

View file

@ -22,8 +22,10 @@
import MenuBar from "./MenuBar.svelte"; import MenuBar from "./MenuBar.svelte";
import { placeholderPlugin } from "./upload"; import { placeholderPlugin } from "./upload";
import { baseKeymap } from "./keymap"; import { baseKeymap } from "./keymap";
import type { WorldY } from "../lib/doc";
export let doc: XmlFragment; export let doc: XmlFragment;
export let worldY: WorldY;
let wrapperEl: HTMLElement; let wrapperEl: HTMLElement;

View file

@ -32,7 +32,7 @@
<a class="no-color" href={routes.ChooseWorld}>🠔 Elegir otro mundo</a> <a class="no-color" href={routes.ChooseWorld}>🠔 Elegir otro mundo</a>
{#await docPromise then doc} {#await docPromise then doc}
<Editor doc={doc.doc} /> <Editor doc={doc.doc} worldY={doc.worldY} />
{:catch error} {:catch error}
{error} {error}
<a href={routes.ChooseWorld}>Volver al inicio</a> <a href={routes.ChooseWorld}>Volver al inicio</a>