From f19a2c6b4969e0c6a7ef4ef8301f493303f464a9 Mon Sep 17 00:00:00 2001 From: arjxn-py Date: Tue, 17 Sep 2024 03:24:27 +0530 Subject: [PATCH 1/3] Add handling for line type in vector layer --- packages/base/src/mainview/mainView.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/base/src/mainview/mainView.tsx b/packages/base/src/mainview/mainView.tsx index 61aabc7d..d14f263f 100644 --- a/packages/base/src/mainview/mainView.tsx +++ b/packages/base/src/mainview/mainView.tsx @@ -647,6 +647,8 @@ export class MainView extends React.Component { color: layerParameters.type === 'fill' || layerParameters.type === 'circle' ? layerParameters.color + : layerParameters.type === 'line' + ? 'rgba(0, 0, 0, 0)' : '#F092DD' }); From f6fe5661304951f0c36e13dde8c0a8df767c3f64 Mon Sep 17 00:00:00 2001 From: arjxn-py Date: Tue, 17 Sep 2024 03:42:48 +0530 Subject: [PATCH 2/3] Lint --- packages/base/src/mainview/mainView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/base/src/mainview/mainView.tsx b/packages/base/src/mainview/mainView.tsx index d14f263f..8f16c74b 100644 --- a/packages/base/src/mainview/mainView.tsx +++ b/packages/base/src/mainview/mainView.tsx @@ -648,8 +648,8 @@ export class MainView extends React.Component { layerParameters.type === 'fill' || layerParameters.type === 'circle' ? layerParameters.color : layerParameters.type === 'line' - ? 'rgba(0, 0, 0, 0)' - : '#F092DD' + ? 'rgba(0, 0, 0, 0)' + : '#F092DD' }); const stroke = new Stroke({ From 8b4b30ef14ef09f7efa3f99eb9cc65d37db127dd Mon Sep 17 00:00:00 2001 From: arjxn-py Date: Tue, 17 Sep 2024 19:21:55 +0530 Subject: [PATCH 3/3] Clean it up :broom: --- packages/base/src/mainview/mainView.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/base/src/mainview/mainView.tsx b/packages/base/src/mainview/mainView.tsx index 8f16c74b..1b474175 100644 --- a/packages/base/src/mainview/mainView.tsx +++ b/packages/base/src/mainview/mainView.tsx @@ -647,9 +647,7 @@ export class MainView extends React.Component { color: layerParameters.type === 'fill' || layerParameters.type === 'circle' ? layerParameters.color - : layerParameters.type === 'line' - ? 'rgba(0, 0, 0, 0)' - : '#F092DD' + : 'rgba(0, 0, 0, 0)' }); const stroke = new Stroke({