@kitware/vtk.js 32.12.0 → 32.12.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { vtkObject } from './../../interfaces';
|
|
2
2
|
import { Vector3 } from './../../types';
|
|
3
|
-
import
|
|
3
|
+
import vtkProp3D from './Prop3D';
|
|
4
4
|
import vtkRenderer from './Renderer';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -10,8 +10,8 @@ export interface IAbstractPickerInitialValues {
|
|
|
10
10
|
renderer?: vtkRenderer;
|
|
11
11
|
selectionPoint?: Vector3;
|
|
12
12
|
pickPosition?: Vector3;
|
|
13
|
-
pickFromList?:
|
|
14
|
-
pickList?:
|
|
13
|
+
pickFromList?: boolean;
|
|
14
|
+
pickList?: vtkProp3D[];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -20,15 +20,15 @@ export interface IAbstractPickerInitialValues {
|
|
|
20
20
|
export interface vtkAbstractPicker extends vtkObject {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @param {
|
|
23
|
+
* @param {vtkProp3D} prop
|
|
24
24
|
*/
|
|
25
|
-
addPickList(
|
|
25
|
+
addPickList(prop: vtkProp3D): void;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {vtkProp3D} prop
|
|
30
30
|
*/
|
|
31
|
-
deletePickList(
|
|
31
|
+
deletePickList(prop: vtkProp3D): void;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
@@ -38,7 +38,7 @@ export interface vtkAbstractPicker extends vtkObject {
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
|
-
getPickList():
|
|
41
|
+
getPickList(): vtkProp3D[];
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Get the picked position
|
|
@@ -82,17 +82,17 @@ export interface vtkAbstractPicker extends vtkObject {
|
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
|
-
* @param {
|
|
86
|
-
* @default
|
|
85
|
+
* @param {Boolean} pickFromList
|
|
86
|
+
* @default false
|
|
87
87
|
*/
|
|
88
|
-
setPickFromList(pickFromList:
|
|
88
|
+
setPickFromList(pickFromList: boolean): boolean;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
*
|
|
92
|
-
* @param {
|
|
92
|
+
* @param {vtkProp3D[]} pickList
|
|
93
93
|
* @default []
|
|
94
94
|
*/
|
|
95
|
-
setPickList(pickList:
|
|
95
|
+
setPickList(pickList: vtkProp3D[]): boolean;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitware/vtk.js",
|
|
3
|
-
"version": "32.12.
|
|
3
|
+
"version": "32.12.1",
|
|
4
4
|
"description": "Visualization Toolkit for the Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3d",
|
|
@@ -141,19 +141,20 @@
|
|
|
141
141
|
"reformat-only": "prettier --single-quote --trailing-comma es5 --print-width 80 --arrow-parens always --write",
|
|
142
142
|
"lint-fix": "eslint --fix Sources Examples",
|
|
143
143
|
"lint": "eslint Sources Examples",
|
|
144
|
-
"doc": "kw-doc -c ./Documentation/config.js",
|
|
145
|
-
"doc:www": "npm t -- --single-run && kw-doc -c ./Documentation/config.js -s",
|
|
146
|
-
"doc:minified": "kw-doc -c ./Documentation/config.js -m",
|
|
147
|
-
"doc:generate-api": "node ./Documentation/generate-api-docs.js",
|
|
144
|
+
"doc": "npm run build:pre && kw-doc -c ./Documentation/config.js",
|
|
145
|
+
"doc:www": "npm t -- --single-run && npm run build:pre && kw-doc -c ./Documentation/config.js -s",
|
|
146
|
+
"doc:minified": "npm run build:pre && kw-doc -c ./Documentation/config.js -m",
|
|
147
|
+
"doc:generate-api": "npm run build:pre && node ./Documentation/generate-api-docs.js",
|
|
148
148
|
"example": "node ./Utilities/ExampleRunner/example-runner-cli.js -c ./Documentation/config.js",
|
|
149
149
|
"example:https": "node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js",
|
|
150
150
|
"example:webgpu": "cross-env WEBGPU=1 NO_WEBGL=1 node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js",
|
|
151
|
+
"build:pre": "patch-package",
|
|
151
152
|
"dev:esm": "npm run build:esm -- -w",
|
|
152
|
-
"dev:umd": "webpack --watch --config webpack.dev.js --progress",
|
|
153
|
+
"dev:umd": "npm run build:pre && webpack --watch --config webpack.dev.js --progress",
|
|
153
154
|
"build": "npm run build:release",
|
|
154
|
-
"build:esm": "rollup -c rollup.config.js",
|
|
155
|
-
"build:umd": "webpack --config webpack.prod.js --progress",
|
|
156
|
-
"build:release": "npm run lint && concurrently \"cross-env NOLINT=1 npm run build:esm\" \"cross-env NOLINT=1 npm run build:umd\"",
|
|
155
|
+
"build:esm": "npm run build:pre && rollup -c rollup.config.js",
|
|
156
|
+
"build:umd": "npm run build:pre && webpack --config webpack.prod.js --progress",
|
|
157
|
+
"build:release": "npm run lint && npm run build:pre && concurrently \"cross-env NOLINT=1 npm run build:esm\" \"cross-env NOLINT=1 npm run build:umd\"",
|
|
157
158
|
"release:create-packages": "node ./Utilities/ci/build-npm-package.js",
|
|
158
159
|
"test": "karma start ./karma.conf.js",
|
|
159
160
|
"test:headless": "karma start ./karma.conf.js --browsers ChromeHeadlessNoSandbox --single-run",
|
|
@@ -163,8 +164,7 @@
|
|
|
163
164
|
"test:firefox-debug": "karma start ./karma.conf.js --browsers Firefox --no-single-run",
|
|
164
165
|
"commit": "git cz",
|
|
165
166
|
"semantic-release": "semantic-release",
|
|
166
|
-
"prepare": "node ./Utilities/prepare.js"
|
|
167
|
-
"postinstall": "patch-package"
|
|
167
|
+
"prepare": "node ./Utilities/prepare.js"
|
|
168
168
|
},
|
|
169
169
|
"config": {
|
|
170
170
|
"commitizen": {
|