feat(svelte): add selected prop for minimap node
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user