wip live coding mode

This commit is contained in:
2025-10-15 02:53:48 +02:00
parent a4432fa3d9
commit 46925f5c2e
12 changed files with 1599 additions and 24 deletions

View File

@ -8,9 +8,10 @@
value: string;
language?: 'javascript' | 'html' | 'css';
onChange?: (value: string) => void;
onExecute?: (code: string) => void;
onExecute?: (code: string, source: 'selection' | 'block' | 'document') => void;
logs?: string[];
editorSettings: EditorSettingsStore;
mode?: 'composition' | 'livecoding';
}
let {
@ -19,7 +20,8 @@
onChange,
onExecute,
logs = [],
editorSettings
editorSettings,
mode = 'composition'
}: Props = $props();
let logPanelRef: LogPanel;
@ -74,6 +76,7 @@
{onChange}
{onExecute}
{editorSettings}
{mode}
/>
</div>