From 60257d77dbb0153cd4195927c5478686d5b591e4 Mon Sep 17 00:00:00 2001 From: Marchand Arnaud Date: Fri, 12 Jan 2024 11:08:53 +0100 Subject: [PATCH] set the ring and waypoint to be unselectable --- js/TEST_F.JS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/TEST_F.JS b/js/TEST_F.JS index da939f1..4162de8 100644 --- a/js/TEST_F.JS +++ b/js/TEST_F.JS @@ -92,7 +92,7 @@ function drawRingWaypoint(wayPoint) let circle = new fabric.Circle({ radius: pythagorePlanet, fill: 'transparent', left: (canvas.width/2) - pythagorePlanet, top: (canvas.height/2)-pythagorePlanet }); - circle.set({ strokeWidth: 0.5, stroke: 'rgba(10,53,66,2)' }); + circle.set({ strokeWidth: 0.5, stroke: 'rgba(10,53,66,2)', selectable: false }); canvas.add(circle); } @@ -137,7 +137,7 @@ function drawWaypoint(wayPoint) { let circle = new fabric.Circle({ radius: radius, fill: 'white', left: (wayPoint.x/2 + canvas.width/2) -radius, top: (wayPoint.y/2 + canvas.height/2)-radius }); - circle.set({ strokeWidth: 0.5, stroke: 'rgba(255,255,255,255)' }); + circle.set({ strokeWidth: 0.5, stroke: 'rgba(255,255,255,255)', selectable: false}); canvas.add(circle); } function movePlanets() {