diff --git a/ArrowPoints.js b/ArrowPoints.js index f47aaa4..89aa10b 100644 --- a/ArrowPoints.js +++ b/ArrowPoints.js @@ -1,14 +1,14 @@ const canvas = document.getElementById("canvas"); // Compute arrow polygon -import { getArrowPolygon } from "athena-utils/Arrow.js"; -import { CalculationStyle } from "athena-utils/Arrow.js"; -import { getCirclePolygon } from "athena-utils/BasicShapes.js"; -import { getRectanglePolygon } from "athena-utils/BasicShapes.js"; +import { getArrowPolygon } from "athena-utils/shape/Arrow.js"; +import { CalculationStyle } from "athena-utils/shape/Arrow.js"; +import { getCirclePolygon } from "athena-utils/shape/BasicShapes.js"; +import { getRectanglePolygon } from "athena-utils/shape/BasicShapes.js"; // Polygon merge using Turf library -import {mergeTurfPolygons} from "athena-utils/Polygon.js"; -import {addTurfPolygonToMerge} from "athena-utils/Polygon.js"; -import {toTurfPolygon} from "athena-utils/Polygon.js"; -import {drawPolygon} from "athena-utils/PolygonVisuals.js"; +import {mergeTurfPolygons} from "athena-utils/shape/Polygon.js"; +import {addTurfPolygonToMerge} from "athena-utils/shape/Polygon.js"; +import {toTurfPolygon} from "athena-utils/shape/Polygon.js"; +import {drawPolygon} from "athena-utils/shape/PolygonVisuals.js"; const circleCenter = {x:320, y:180}; const circleRadius = 70; diff --git a/package-lock.json b/package-lock.json index e67f8bc..ef79f38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2718,7 +2718,7 @@ "dev": true }, "node_modules/athena-utils": { - "resolved": "git+https://git.projectathena.ca/andyaxxe/athena-utils.git#7f60a2dac4990ff675ca659b1d9dd97dc2074149", + "resolved": "git+https://git.projectathena.ca/andyaxxe/athena-utils.git#1fc49c63a2", "dev": true, "dependencies": { "@turf/turf": "7.2.0"