refactor(types)!: Remove Node/TranslateExtent

* replace with CoordinateExtent

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent ecd38b232b
commit da54bc3316
7 changed files with 115 additions and 29 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import {
Edge,
Elements,
isNode,
NodeExtent,
CoordinateExtent,
Position,
removeElements,
} from '~/index'
@@ -20,7 +20,7 @@ import {
const dagreGraph = new dagre.graphlib.Graph()
dagreGraph.setDefaultEdgeLabel(() => ({}))
const nodeExtent: NodeExtent = [
const nodeExtent: CoordinateExtent = [
[0, -100],
[1000, 500],
]