update dependencies & fix keyhandler
This commit is contained in:
@@ -3,6 +3,7 @@ import { MarkerType } from '@xyflow/svelte';
|
||||
export default {
|
||||
flowProps: {
|
||||
fitView: true,
|
||||
multiSelectionKey: ['Meta', 's'],
|
||||
nodes: [
|
||||
{
|
||||
id: '1',
|
||||
|
||||
@@ -13,3 +13,4 @@
|
||||
<SvelteFlowProvider>
|
||||
<Flow flowConfig={data.flowConfig} />
|
||||
</SvelteFlowProvider>
|
||||
w
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
|
||||
import '@xyflow/svelte/dist/style.css';
|
||||
|
||||
interface Props {
|
||||
flowConfig: FlowConfig;
|
||||
}
|
||||
|
||||
let { flowConfig }: Props = $props();
|
||||
let { flowConfig }: { flowConfig: FlowConfig } = $props();
|
||||
|
||||
// Create writables here so it is easier to create test cases
|
||||
let nodes = $state.raw(flowConfig.flowProps?.nodes ?? []);
|
||||
|
||||
Reference in New Issue
Block a user