Skip to content

Commit 83ad5ea

Browse files
authored
Merge pull request #142 from LinkunGao/release/v1.12.18
Release/v1.12.18
2 parents 3a71385 + f32d9f5 commit 83ad5ea

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'LinkunGao'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = 'v1.12.16'
25+
release = 'v1.12.18'
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/source/release/release.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,3 +1152,7 @@ const resetMainAreaSize = (factor: number) => {
11521152
- y -> x:
11531153
slice_y's cursor x is slice_x's index
11541154
slice_y's index is slice_x's cursor y
1155+
1156+
## Release v1.12.18
1157+
1158+
- Add cursor dot in nrrd_tools GUI.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "copper3d_visualisation",
33
"description": "A 3d visualisation package base on threejs provides multiple scenes and Nrrd image load funtion.",
4-
"version": "1.12.17",
4+
"version": "1.12.18",
55
"main": "dist/bundle.umd.js",
66
"moudle": "dist/bundle.esm.js",
77
"types": "dist/types/index.d.ts",

src/Utils/nrrd_tool.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export class nrrd_tools {
8484
sizeFoctor: 1,
8585
defaultPaintCursor:
8686
"url(https://raw.githubusercontent.com/LinkunGao/copper3d_icons/main/icons/pencil-black.svg), auto",
87+
8788
drawStartPos: new THREE.Vector2(1, 1),
8889
};
8990

@@ -1477,7 +1478,7 @@ export class nrrd_tools {
14771478
const actionsFolder = modeFolder.addFolder("Default Actions");
14781479

14791480
actionsFolder
1480-
.add(this.gui_states, "cursor", ["crosshair", "pencil"])
1481+
.add(this.gui_states, "cursor", ["crosshair", "pencil", "dot"])
14811482
.name("cursor icons")
14821483
.onChange((value) => {
14831484
if (value === "crosshair") {
@@ -1487,6 +1488,10 @@ export class nrrd_tools {
14871488
this.nrrd_states.defaultPaintCursor =
14881489
"url(https://raw.githubusercontent.com/LinkunGao/copper3d_icons/main/icons/pencil-black.svg), auto";
14891490
}
1491+
if (value === "dot") {
1492+
this.nrrd_states.defaultPaintCursor =
1493+
"url(https://raw.githubusercontent.com/LinkunGao/copper3d-datasets/main/icons/dot.svg) 12 12,auto";
1494+
}
14901495
this.drawingCanvas.style.cursor = this.nrrd_states.defaultPaintCursor;
14911496
});
14921497
actionsFolder

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ import {
3333

3434
import "./css/style.css";
3535

36-
export const REVISION = "v1.12.17";
36+
export const REVISION = "v1.12.18";
3737

3838
console.log(
39-
"%cCopper3D Visualisation %cBeta:v1.12.17",
39+
"%cCopper3D Visualisation %cBeta:v1.12.18",
4040
"padding: 3px;color:white; background:#023047",
4141
"padding: 3px;color:white; background:#f50a25"
4242
);

0 commit comments

Comments
 (0)