feat(svelte): reactive nodes
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { PanelPosition } from '@reactflow/system';
|
||||
|
||||
export type PanelProps = {
|
||||
position?: PanelPosition;
|
||||
style?: string;
|
||||
class?: string;
|
||||
};
|
||||
@@ -1,11 +1,12 @@
|
||||
<script lang="ts">
|
||||
import type { PanelPosition } from '@reactflow/system';
|
||||
import cc from 'classcat';
|
||||
import type { PanelProps } from './Panel';
|
||||
|
||||
export let position: PanelPosition = 'top-right';
|
||||
export let style: string = '';
|
||||
interface $$Props extends PanelProps {}
|
||||
|
||||
let className: string;
|
||||
export let position: $$Props['position'] = 'top-right';
|
||||
export let style: $$Props['style'] = '';
|
||||
let className: $$Props['class'] = undefined;
|
||||
export { className as class }
|
||||
|
||||
$: positionClasses = `${position}`.split('-');
|
||||
|
||||
Reference in New Issue
Block a user