mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
Cleanup
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user