chore(svelte): cleanup examples

This commit is contained in:
moklick
2023-06-15 15:16:33 +02:00
parent 019dab3be1
commit f35ddc485c
9 changed files with 14 additions and 291 deletions
@@ -1,10 +1,9 @@
<script lang="ts">
import { Position } from '@xyflow/system';
import { Handle } from '../../../lib/index';
import { Handle, Position, type NodeProps } from '../../../lib/index';
type $$Props = NodeProps;
export let data: { color: string; onChange: () => void } = { color: '#111', onChange: () => {} };
export let xPos: number = 0;
export let yPos: number = 0;
</script>
<Handle type="target" position={Position.Left} />
@@ -1,5 +1,7 @@
<script lang="ts">
import { Handle, Position } from '../../../lib/index';
import { Handle, Position, type NodeProps } from '../../../lib/index';
type $$Props = NodeProps;
export let data: { label: string } = { label: 'Node' };
export let xPos: number = 0;
@@ -1,5 +1,7 @@
<script lang="ts">
import { Handle, Position } from '../../../lib/index';
import { Handle, Position, type NodeProps } from '../../../lib/index';
type $$Props = NodeProps;
export let id: string;
export let xPos: number = 0;
@@ -14,7 +16,6 @@
</div>
<Handle type="source" position={Position.Bottom} />
<style>
.custom {
background: #ffcc00;