@kitware/vtk.js 30.3.1 → 30.3.2

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.
@@ -89,7 +89,7 @@ export interface vtkRenderer extends vtkViewport {
89
89
  /**
90
90
  * Create and add a light to renderer.
91
91
  */
92
- createLight(): vtkLight;
92
+ createLight(): void;
93
93
 
94
94
  /**
95
95
  * Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange()
@@ -342,12 +342,12 @@ export interface vtkRenderer extends vtkViewport {
342
342
  getVolumesByReference(): vtkVolume[];
343
343
 
344
344
  /**
345
- * Create a new Camera sutible for use with this type of Renderer.
345
+ * Create a new Camera suitable for use with this type of Renderer.
346
346
  */
347
347
  makeCamera(): vtkCamera;
348
348
 
349
349
  /**
350
- * Create a new Light sutible for use with this type of Renderer.
350
+ * Create a new Light suitable for use with this type of Renderer.
351
351
  */
352
352
  makeLight(): vtkLight;
353
353
 
@@ -1,4 +1,26 @@
1
+ import { Nullable } from '../../../types';
2
+ import { InteractionMethodsName, lineNames } from './Constants';
1
3
  import vtkAbstractWidget from '../../Core/AbstractWidget';
2
4
 
5
+ type TLineName = (typeof lineNames)[number];
6
+
7
+ type TCursorStyles = {
8
+ [key in InteractionMethodsName]?: string;
9
+ } & {
10
+ default?: string
11
+ };
12
+
3
13
  export default interface vtkResliceCursorWidgetDefaultInstance extends vtkAbstractWidget {
14
+ getActiveInteraction(): Nullable<InteractionMethodsName>;
15
+
16
+ setKeepOrthogonality(keepOrthogonality: boolean): boolean;
17
+ getKeepOrthogonality(): boolean;
18
+
19
+ setCursorStyles(cursorStyles: TCursorStyles): boolean;
20
+ getCursorStyles(): TCursorStyles;
21
+
22
+ setEnableTranslation(enableTranslation: boolean): void;
23
+ setEnableRotation(enableRotation: boolean): void;
24
+
25
+ getActiveLineName(): TLineName | undefined;
4
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "30.3.1",
3
+ "version": "30.3.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",
@@ -131,7 +131,7 @@
131
131
  "peerDependencies": {
132
132
  "@babel/preset-env": "^7.17.10",
133
133
  "autoprefixer": "^10.4.7",
134
- "wslink": "^1.1.0"
134
+ "wslink": ">=1.1.0 || ^2.0.0"
135
135
  },
136
136
  "scripts": {
137
137
  "validate": "prettier --config ./prettier.config.js --list-different \"Sources/**/*.js\" \"Examples/**/*.js\"",