(cell: dia.Cell<dia.Cell.Attributes>)
| 61 | * ``` |
| 62 | */ |
| 63 | export function getLink(cell: dia.Cell<dia.Cell.Attributes>): GraphLink { |
| 64 | return { |
| 65 | ...cell.attributes, |
| 66 | id: cell.id, |
| 67 | isElement: false, |
| 68 | isLink: true, |
| 69 | source: cell.get('source') as dia.Cell.ID, |
| 70 | target: cell.get('target') as dia.Cell.ID, |
| 71 | type: cell.attributes.type, |
| 72 | z: cell.get('z'), |
| 73 | markup: cell.get('markup'), |
| 74 | defaultLabel: cell.get('defaultLabel'), |
| 75 | }; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Get cell via cell |
no test coverage detected