mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 10:45:54 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user