mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Cleanup
This commit is contained in:
parent
d3fe17bc45
commit
efe31918e3
7 changed files with 14 additions and 81 deletions
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
import Editor from "@graphite/components/Editor.svelte";
|
||||
|
||||
import { send_message_to_cef } from "/wasm/pkg/graphite_wasm";
|
||||
|
||||
let editor: GraphiteEditor | undefined = undefined;
|
||||
|
||||
onMount(async () => {
|
||||
|
|
@ -19,9 +17,6 @@
|
|||
// Destroy the WASM editor handle
|
||||
editor?.handle.free();
|
||||
});
|
||||
|
||||
console.log("Test from app.svelte javascript");
|
||||
sendMessageToCef("Test from app direct");
|
||||
</script>
|
||||
|
||||
{#if editor !== undefined}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
|
||||
onMount(() => {
|
||||
// Initialize certain setup tasks required by the editor backend to be ready for the user now that the frontend is ready
|
||||
console.log("init after frontend ready from js");
|
||||
editor.handle.initAfterFrontendReady(operatingSystem());
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,6 @@
|
|||
|
||||
function canvasPointerDown(e: PointerEvent) {
|
||||
const onEditbox = e.target instanceof HTMLDivElement && e.target.contentEditable;
|
||||
console.log("Canvas pointer down", e, onEditbox);
|
||||
if (!onEditbox) viewport?.setPointerCapture(e.pointerId);
|
||||
if (window.document.activeElement instanceof HTMLElement) {
|
||||
window.document.activeElement.blur();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue