feat(svelte): add attribution

This commit is contained in:
moklick
2023-03-14 23:36:36 +01:00
parent 5b3c260e45
commit 564302147d
7 changed files with 48 additions and 2 deletions
@@ -3,6 +3,7 @@ import type { HTMLAttributes } from 'svelte/elements';
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
'data-testid'?: string;
'data-message'?: string;
position?: PanelPosition;
style?: string;
class?: string;
@@ -11,6 +11,7 @@
import { NodeSelection } from '$lib/components/NodeSelection';
import { KeyHandler } from '$lib/components/KeyHandler';
import { ConnectionLine } from '$lib/components/ConnectionLine';
import { Attribution } from '$lib/components/Attribution';
import { useStore } from '$lib/store';
import type { SvelteFlowProps } from './types';
@@ -122,6 +123,7 @@
<UserSelection />
</Pane>
</Zoom>
<Attribution />
<slot />
</div>