feat(svelte): add selected prop for minimap node

This commit is contained in:
moklick
2023-10-16 18:54:40 +02:00
parent bce7a49c73
commit 82bcc2263e
2 changed files with 3 additions and 0 deletions
@@ -121,6 +121,7 @@
y={pos.y}
width={node.width}
height={node.height}
selected={node.selected}
color={nodeColorFunc(node)}
borderRadius={nodeBorderRadius}
strokeColor={nodeStrokeColorFunc(node)}
@@ -10,12 +10,14 @@
export let shapeRendering: string;
export let strokeColor: string;
export let strokeWidth: number = 2;
export let selected: boolean = false;
let className: string = '';
export { className as class };
</script>
<rect
class={cc(['svelte-flow__minimap-node', className])}
class:selected
{x}
{y}
rx={borderRadius}