Import fix

This commit is contained in:
Tomas Richtar 2025-05-04 11:51:39 +02:00
parent 0e7f5f4739
commit b4ebab5d54
2 changed files with 9 additions and 9 deletions

View File

@ -1,14 +1,14 @@
const canvas = document.getElementById("canvas"); const canvas = document.getElementById("canvas");
// Compute arrow polygon // Compute arrow polygon
import { getArrowPolygon } from "athena-utils/Arrow.js"; import { getArrowPolygon } from "athena-utils/shape/Arrow.js";
import { CalculationStyle } from "athena-utils/Arrow.js"; import { CalculationStyle } from "athena-utils/shape/Arrow.js";
import { getCirclePolygon } from "athena-utils/BasicShapes.js"; import { getCirclePolygon } from "athena-utils/shape/BasicShapes.js";
import { getRectanglePolygon } from "athena-utils/BasicShapes.js"; import { getRectanglePolygon } from "athena-utils/shape/BasicShapes.js";
// Polygon merge using Turf library // Polygon merge using Turf library
import {mergeTurfPolygons} from "athena-utils/Polygon.js"; import {mergeTurfPolygons} from "athena-utils/shape/Polygon.js";
import {addTurfPolygonToMerge} from "athena-utils/Polygon.js"; import {addTurfPolygonToMerge} from "athena-utils/shape/Polygon.js";
import {toTurfPolygon} from "athena-utils/Polygon.js"; import {toTurfPolygon} from "athena-utils/shape/Polygon.js";
import {drawPolygon} from "athena-utils/PolygonVisuals.js"; import {drawPolygon} from "athena-utils/shape/PolygonVisuals.js";
const circleCenter = {x:320, y:180}; const circleCenter = {x:320, y:180};
const circleRadius = 70; const circleRadius = 70;

2
package-lock.json generated
View File

@ -2718,7 +2718,7 @@
"dev": true "dev": true
}, },
"node_modules/athena-utils": { "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, "dev": true,
"dependencies": { "dependencies": {
"@turf/turf": "7.2.0" "@turf/turf": "7.2.0"