optimized selection via selectionbox, implemented proper defaultEdge/-NodeOptions

This commit is contained in:
peterkogo
2024-12-19 17:33:16 +01:00
parent 19e233af2d
commit 6349290722
10 changed files with 78 additions and 60 deletions
@@ -9,8 +9,8 @@
import { Viewport as ViewportComponent } from '$lib/container/Viewport';
import { NodeRenderer } from '$lib/container/NodeRenderer';
import { EdgeRenderer } from '$lib/container/EdgeRenderer';
import { UserSelection } from '$lib/components/UserSelection';
import { NodeSelection } from '$lib/components/NodeSelection';
import { Selection } from '$lib/components/Selection';
import { KeyHandler } from '$lib/components/KeyHandler';
import { ConnectionLine } from '$lib/components/ConnectionLine';
import { Attribution } from '$lib/components/Attribution';
@@ -194,7 +194,13 @@
{onnodedragstop}
/>
</ViewportComponent>
<UserSelection />
<Selection
isVisible={!!(store.selectionRect && store.selectionRectMode === 'user')}
width={store.selectionRect?.width}
height={store.selectionRect?.height}
x={store.selectionRect?.x}
y={store.selectionRect?.y}
/>
</Pane>
</Zoom>
<Attribution {proOptions} position={attributionPosition} />