initial implementation of edge toolbar

This commit is contained in:
Alessandro
2025-10-09 16:00:06 +02:00
parent f55a9b2361
commit 482b618f49
10 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import { Position, type Viewport, type Align } from '..';
export function getEdgeToolbarTransform(labelX: number, labelY: number, viewport: Viewport): string {
// Position the toolbar at the edge label center (scaling is handled by EdgeLabelRenderer)
return `translate(${labelX}px, ${labelY}px)`;
}

View File

@@ -5,6 +5,7 @@ export * from './graph';
export * from './general';
export * from './marker';
export * from './node-toolbar';
export * from './edge-toolbar';
export * from './store';
export * from './types';
export * from './shallow-node-data';