copper3d 1.15.11 → 1.15.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Utils/nrrd_tool.d.ts +21 -4
- package/dist/Utils/nrrd_tool.js +559 -305
- package/dist/Utils/nrrd_tool.js.map +1 -1
- package/dist/bundle.esm.js +561 -307
- package/dist/bundle.umd.js +561 -307
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/types/Utils/nrrd_tool.d.ts +21 -4
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ import { nrrd_tools } from "./Utils/nrrd_tool";
|
|
|
16
16
|
import { Copper3dTrackballControls } from "./Controls/Copper3dTrackballControls";
|
|
17
17
|
import { nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, paintImageType, exportPaintImageType, IOptVTKLoader } from "./types/types";
|
|
18
18
|
import "./css/style.css";
|
|
19
|
-
export declare const REVISION = "v1.15.
|
|
19
|
+
export declare const REVISION = "v1.15.13";
|
|
20
20
|
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, nrrd_tools, loading, Copper3dTrackballControls, createTexture2D_NRRD, };
|
|
21
21
|
export type { positionType, screenPosType, optsType, nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, paintImageType, exportPaintImageType, IOptVTKLoader, };
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import kiwrious from "./Utils/kiwrious/configKiwrious";
|
|
|
16
16
|
import { nrrd_tools } from "./Utils/nrrd_tool";
|
|
17
17
|
import { Copper3dTrackballControls } from "./Controls/Copper3dTrackballControls";
|
|
18
18
|
import "./css/style.css";
|
|
19
|
-
export const REVISION = "v1.15.
|
|
20
|
-
console.log("%cCopper3D Visualisation %cBeta:v1.15.
|
|
19
|
+
export const REVISION = "v1.15.13";
|
|
20
|
+
console.log("%cCopper3D Visualisation %cBeta:v1.15.13", "padding: 3px;color:white; background:#023047", "padding: 3px;color:white; background:#f50a25");
|
|
21
21
|
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, nrrd_tools, loading, Copper3dTrackballControls, createTexture2D_NRRD, };
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -40,7 +40,6 @@ export declare class nrrd_tools {
|
|
|
40
40
|
private Is_Shift_Pressed;
|
|
41
41
|
private Is_Draw;
|
|
42
42
|
private sensitiveArray;
|
|
43
|
-
private handleWheelMove;
|
|
44
43
|
start: () => void;
|
|
45
44
|
private paintedImage;
|
|
46
45
|
private previousDrawingImage;
|
|
@@ -51,6 +50,8 @@ export declare class nrrd_tools {
|
|
|
51
50
|
private nrrd_states;
|
|
52
51
|
private cursorPage;
|
|
53
52
|
private gui_states;
|
|
53
|
+
private dragPrameters;
|
|
54
|
+
private drawingPrameters;
|
|
54
55
|
constructor(container: HTMLDivElement);
|
|
55
56
|
/**
|
|
56
57
|
* A initialise function for nrrd_tools
|
|
@@ -81,11 +82,12 @@ export declare class nrrd_tools {
|
|
|
81
82
|
*/
|
|
82
83
|
private initPaintImages;
|
|
83
84
|
private createEmptyPaintImage;
|
|
85
|
+
private convertCursorPoint;
|
|
84
86
|
/**
|
|
85
87
|
* Switch all contrast slices' orientation
|
|
86
88
|
* @param {string} aixs:"x" | "y" | "z"
|
|
87
89
|
* */
|
|
88
|
-
setSliceOrientation(
|
|
90
|
+
setSliceOrientation(axisTo: "x" | "y" | "z"): void;
|
|
89
91
|
addSkip(index: number): void;
|
|
90
92
|
removeSkip(index: number): void;
|
|
91
93
|
clear(): void;
|
|
@@ -133,6 +135,13 @@ export declare class nrrd_tools {
|
|
|
133
135
|
isCursorSelect: boolean;
|
|
134
136
|
cursorPageX: number;
|
|
135
137
|
cursorPageY: number;
|
|
138
|
+
sphereOrigin: {
|
|
139
|
+
x: number[];
|
|
140
|
+
y: number[];
|
|
141
|
+
z: number[];
|
|
142
|
+
};
|
|
143
|
+
spherePlanB: boolean;
|
|
144
|
+
sphereRadius: number;
|
|
136
145
|
Mouse_Over_x: number;
|
|
137
146
|
Mouse_Over_y: number;
|
|
138
147
|
Mouse_Over: boolean;
|
|
@@ -174,16 +183,23 @@ export declare class nrrd_tools {
|
|
|
174
183
|
private repraintAllContrastSlices;
|
|
175
184
|
private updateShowNumDiv;
|
|
176
185
|
appendLoadingbar(loadingbar: HTMLDivElement): void;
|
|
186
|
+
private configDragMode;
|
|
187
|
+
private removeDragMode;
|
|
177
188
|
drag(opts?: nrrdDragImageOptType): void;
|
|
178
189
|
private updateIndex;
|
|
179
190
|
private drawDragSlice;
|
|
180
191
|
private drawMaskToLabelCtx;
|
|
181
192
|
draw(sceneIn: copperMScene | copperScene, gui: GUI, opts?: nrrdDrawImageOptType): void;
|
|
182
193
|
private paintOnCanvas;
|
|
194
|
+
private enableCrosshair;
|
|
195
|
+
private setUpSphereOrigins;
|
|
183
196
|
private drawLine;
|
|
197
|
+
private drawSphereCore;
|
|
198
|
+
private drawSphere;
|
|
184
199
|
private undoLastPainting;
|
|
185
200
|
private getCurrentUndo;
|
|
186
|
-
private
|
|
201
|
+
private configMouseSphereWheel;
|
|
202
|
+
private configMouseZoomWheel;
|
|
187
203
|
private useEraser;
|
|
188
204
|
private clearPaint;
|
|
189
205
|
private getRestLabel;
|
|
@@ -192,7 +208,6 @@ export declare class nrrd_tools {
|
|
|
192
208
|
private paintOnCanvasLayer;
|
|
193
209
|
private drawLinesOnLayer;
|
|
194
210
|
private setCurrentLayer;
|
|
195
|
-
private configGui;
|
|
196
211
|
private updateSlicesContrast;
|
|
197
212
|
private resetPaintArea;
|
|
198
213
|
private resetLayerCanvas;
|
|
@@ -210,6 +225,7 @@ export declare class nrrd_tools {
|
|
|
210
225
|
removeGuiFolderChilden(modeFolder: GUI): void;
|
|
211
226
|
private verifyCanvasIsEmpty;
|
|
212
227
|
private clearDictionary;
|
|
228
|
+
private drawImageOnEmptyImage;
|
|
213
229
|
private storeAllImages;
|
|
214
230
|
private storeImageToAxis;
|
|
215
231
|
private storeImageToLabel;
|
|
@@ -241,4 +257,5 @@ export declare class nrrd_tools {
|
|
|
241
257
|
private replaceArray;
|
|
242
258
|
private findSliceInSharedPlace;
|
|
243
259
|
private exportData;
|
|
260
|
+
private configGui;
|
|
244
261
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ import { nrrd_tools } from "./Utils/nrrd_tool";
|
|
|
16
16
|
import { Copper3dTrackballControls } from "./Controls/Copper3dTrackballControls";
|
|
17
17
|
import { nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, paintImageType, exportPaintImageType, IOptVTKLoader } from "./types/types";
|
|
18
18
|
import "./css/style.css";
|
|
19
|
-
export declare const REVISION = "v1.15.
|
|
19
|
+
export declare const REVISION = "v1.15.13";
|
|
20
20
|
export { copperRenderer, copperRendererOnDemond, copperMSceneRenderer, setHDRFilePath, addLabelToScene, convert3DPostoScreenPos, convertScreenPosto3DPos, addBoxHelper, fullScreenListenner, configKiwriousHeart, copperScene, copperSceneOnDemond, copperMScene, CameraViewPoint, kiwrious, nrrd_tools, loading, Copper3dTrackballControls, createTexture2D_NRRD, };
|
|
21
21
|
export type { positionType, screenPosType, optsType, nrrdMeshesType, nrrdSliceType, SensorDecodedValue_kiwrious, SensorReadResult_kiwrious, HeartRateResult_kiwrious, loadingBarType, paintImageType, exportPaintImageType, IOptVTKLoader, };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copper3d",
|
|
3
3
|
"description": "A 3d visualisation package base on threejs provides multiple scenes and Nrrd image load funtion.",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.13",
|
|
5
5
|
"main": "dist/bundle.umd.js",
|
|
6
6
|
"moudle": "dist/bundle.esm.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|