mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-06 15:55:36 +00:00
16 lines
350 B
TypeScript
16 lines
350 B
TypeScript
import { SolarSystemConnection } from '@/hooks/Mapper/types/connection.ts';
|
|
|
|
export const convertConnection2Edge = (conn: SolarSystemConnection) => {
|
|
return {
|
|
sourceHandle: 'c',
|
|
targetHandle: 'a',
|
|
type: 'floating',
|
|
label: 'updatable edge',
|
|
|
|
id: conn.id,
|
|
source: conn.source,
|
|
target: conn.target,
|
|
data: conn,
|
|
};
|
|
};
|