()
| 18 | * ``` |
| 19 | */ |
| 20 | export function useCellId(): dia.Cell.ID { |
| 21 | const id = useContext(CellIdContext); |
| 22 | if (id === undefined) { |
| 23 | throw new Error('useCellId is not used inside paper context'); |
| 24 | } |
| 25 | return id; |
| 26 | } |
no outgoing calls
no test coverage detected