|
|
@@ -3,13 +3,8 @@ import * as vec from "utils/vec"
|
|
3
|
3
|
import { PolylineShape, ShapeType } from "types"
|
|
4
|
4
|
import { registerShapeUtils } from "./index"
|
|
5
|
5
|
import { intersectPolylineBounds } from "utils/intersections"
|
|
6
|
|
-import {
|
|
7
|
|
- boundsCollide,
|
|
8
|
|
- boundsContained,
|
|
9
|
|
- boundsContainPolygon,
|
|
10
|
|
-} from "utils/bounds"
|
|
|
6
|
+import { boundsContainPolygon } from "utils/bounds"
|
|
11
|
7
|
import { getBoundsFromPoints, translateBounds } from "utils/utils"
|
|
12
|
|
-import { colors } from "state/data"
|
|
13
|
8
|
|
|
14
|
9
|
const polyline = registerShapeUtils<PolylineShape>({
|
|
15
|
10
|
boundsCache: new WeakMap([]),
|