From 095f5a930942ef5a266ae08400d772d72eeaf04b Mon Sep 17 00:00:00 2001 From: LinkunGao Date: Sun, 5 Nov 2023 13:12:41 +1300 Subject: [PATCH] fixed cursor icon issue --- docs/source/conf.py | 2 +- docs/source/release/release.md | 4 ++++ src/Utils/segmentation/coreTools/gui.ts | 1 + src/index.ts | 4 ++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index d000c74..55d885f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -23,7 +23,7 @@ # The full version, including alpha/beta/rc tags -release = 'v2.0.1' +release = 'v2.0.2' diff --git a/docs/source/release/release.md b/docs/source/release/release.md index b1fdfb8..9a2c34e 100644 --- a/docs/source/release/release.md +++ b/docs/source/release/release.md @@ -1929,3 +1929,7 @@ Huge update: - apidocs - segmentation functions - bug fix + +## Release v2.0.2 + +Fixed cursor not switch issue when user click eraser and pencil buttons. diff --git a/src/Utils/segmentation/coreTools/gui.ts b/src/Utils/segmentation/coreTools/gui.ts index d515f86..4bec56c 100644 --- a/src/Utils/segmentation/coreTools/gui.ts +++ b/src/Utils/segmentation/coreTools/gui.ts @@ -263,6 +263,7 @@ function setupGui(configs: IConfigGUI) { configs.drawingPrameters.handleOnDrawingBrushCricleMove ); } + configs.drawingCanvas.style.cursor = configs.gui_states.defaultPaintCursor; }; const updateGuiEraserState = () => { diff --git a/src/index.ts b/src/index.ts index 262878b..0649356 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,10 +44,10 @@ import { IPaintImage } from "./Utils/segmentation/coreTools/coreType"; import "./css/style.css"; -export const REVISION = "v2.0.1"; +export const REVISION = "v2.0.2"; console.log( - "%cCopper3D Visualisation %cBeta:v2.0.1", + "%cCopper3D Visualisation %cBeta:v2.0.2", "padding: 3px;color:white; background:#023047", "padding: 3px;color:white; background:#f50a25" );