@kitware/vtk.js 22.6.0 → 22.6.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.
- package/Common/Core/Math/index.js +1 -1
- package/Common/Core/Math.js +1 -1
- package/Common/Core/MatrixBuilder.d.ts +3 -3
- package/Common/DataModel/ImageData.d.ts +13 -11
- package/Filters/Texture/TextureMapToPlane.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -1
- package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -1
- package/Interaction/Widgets/ImageCroppingRegionsWidget.js +1 -1
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +1 -1
- package/Interaction/Widgets/ResliceCursor/ResliceCursor.js +1 -1
- package/LICENSE +21 -18
- package/Proxy/Core/View2DProxy.js +1 -1
- package/README.md +2 -2
- package/Rendering/Core/ColorTransferFunction.js +1 -1
- package/Rendering/Core/Coordinate.js +1 -1
- package/Rendering/Core/CubeAxesActor.js +1 -1
- package/Rendering/Core/Glyph3DMapper.js +1 -1
- package/Rendering/Core/ImageMapper.js +1 -1
- package/Rendering/Core/Mapper.js +1 -1
- package/Rendering/Core/Prop3D.js +1 -1
- package/Rendering/Core/RenderWindow.js +1 -1
- package/Rendering/Core/RenderWindowInteractor.js +31 -6
- package/Rendering/Core/Renderer.js +1 -1
- package/Rendering/Core/ScalarBarActor.js +1 -1
- package/Rendering/Core/VolumeMapper.js +1 -1
- package/Rendering/OpenGL/PolyDataMapper2D.js +1 -1
- package/Rendering/OpenGL/Texture.js +1 -1
- package/Widgets/Representations/PolyLineRepresentation.js +1 -1
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +1 -1
- package/Widgets/Widgets3D/LineWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -1
- package/index.d.ts +139 -0
- package/package.json +3 -2
- package/tsconfig.json +8 -0
- package/vtk.d.ts +15 -0
|
@@ -2329,4 +2329,4 @@ var vtkMath$1 = /*#__PURE__*/Object.freeze({
|
|
|
2329
2329
|
'default': vtkMath
|
|
2330
2330
|
});
|
|
2331
2331
|
|
|
2332
|
-
export { binomial as $,
|
|
2332
|
+
export { binomial as $, projectVector as A, arrayRange as B, getMajorAxisIndex as C, isInf as D, rgb2hsv as E, rgb2lab as F, lab2rgb as G, floor as H, round as I, normalize2D as J, nearestPowerOfTwo as K, createUninitializedBounds as L, multiply3x3_vect3 as M, areBoundsInitialized as N, isPowerOfTwo as O, multiplyAccumulate as P, determinant3x3 as Q, angleBetweenVectors as R, signedAngleBetweenVectors as S, Pi as T, ceil as U, min as V, max as W, arrayMin as X, arrayMax as Y, ceilLog2 as Z, factorial as _, areMatricesEqual as a, beginCombination as a0, nextCombination as a1, randomSeed as a2, getSeed as a3, gaussian as a4, multiplyScalar2D as a5, multiplyAccumulate2D as a6, outer as a7, dot2D as a8, projectVector2D as a9, hex2float as aA, lab2xyz as aB, xyz2lab as aC, xyz2rgb as aD, rgb2xyz as aE, clampAndNormalizeValue as aF, getScalarTypeFittingRange as aG, getAdjustedScalarRange as aH, extentIsWithinOtherExtent as aI, boundsIsWithinOtherBounds as aJ, pointIsWithinBounds as aK, solve3PointCircle as aL, inf as aM, negInf as aN, isFinite as aO, isNaN as aP, floatToHex2 as aQ, floatRGB2HexCode as aR, float2CssRGBA as aS, gaussianAmplitude as aa, gaussianWeight as ab, outer2D as ac, norm2D as ad, LUFactor3x3 as ae, LUSolve3x3 as af, linearSolve3x3 as ag, multiply3x3_mat3 as ah, multiplyMatrix as ai, transpose3x3 as aj, invert3x3 as ak, identity3x3 as al, quaternionToMatrix3x3 as am, roundNumber as an, matrix3x3ToQuaternion as ao, multiplyQuaternion as ap, orthogonalize3x3 as aq, diagonalize3x3 as ar, singularValueDecomposition3x3 as as, luFactorLinearSystem as at, luSolveLinearSystem as au, invertMatrix as av, estimateMatrixCondition as aw, jacobi as ax, solveHomogeneousLeastSquares as ay, solveLeastSquares as az, roundVector as b, computeBoundsFromPoints as c, dot as d, clampVector as e, distance2BetweenPoints as f, subtract as g, hsv2rgb as h, isNan as i, cross as j, add as k, normalize as l, determinant2x2 as m, norm as n, jacobiN as o, perpendiculars as p, vtkMath as q, radiansFromDegrees as r, solveLinearSystem as s, multiplyScalar as t, uninitializeBounds as u, vtkMath$1 as v, random as w, degreesFromRadians as x, areEquals as y, clampValue as z };
|
package/Common/Core/Math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@babel/runtime/helpers/slicedToArray';
|
|
2
2
|
import 'seedrandom';
|
|
3
3
|
import '../../macros.js';
|
|
4
|
-
export { ae as LUFactor3x3, af as LUSolve3x3, T as Pi, k as add, R as angleBetweenVectors,
|
|
4
|
+
export { ae as LUFactor3x3, af as LUSolve3x3, T as Pi, k as add, R as angleBetweenVectors, N as areBoundsInitialized, y as areEquals, a as areMatricesEqual, Y as arrayMax, X as arrayMin, B as arrayRange, a0 as beginCombination, $ as binomial, aJ as boundsIsWithinOtherBounds, U as ceil, Z as ceilLog2, aF as clampAndNormalizeValue, z as clampValue, e as clampVector, c as computeBoundsFromPoints, L as createUninitializedBounds, j as cross, q as default, x as degreesFromRadians, m as determinant2x2, Q as determinant3x3, ar as diagonalize3x3, f as distance2BetweenPoints, d as dot, a8 as dot2D, aw as estimateMatrixCondition, aI as extentIsWithinOtherExtent, _ as factorial, aS as float2CssRGBA, aR as floatRGB2HexCode, aQ as floatToHex2, H as floor, a4 as gaussian, aa as gaussianAmplitude, ab as gaussianWeight, aH as getAdjustedScalarRange, C as getMajorAxisIndex, aG as getScalarTypeFittingRange, a3 as getSeed, aA as hex2float, h as hsv2rgb, al as identity3x3, aM as inf, ak as invert3x3, av as invertMatrix, aO as isFinite, D as isInf, aP as isNaN, i as isNan, O as isPowerOfTwo, ax as jacobi, o as jacobiN, G as lab2rgb, aB as lab2xyz, ag as linearSolve3x3, at as luFactorLinearSystem, au as luSolveLinearSystem, ao as matrix3x3ToQuaternion, W as max, V as min, ah as multiply3x3_mat3, M as multiply3x3_vect3, P as multiplyAccumulate, a6 as multiplyAccumulate2D, ai as multiplyMatrix, ap as multiplyQuaternion, t as multiplyScalar, a5 as multiplyScalar2D, K as nearestPowerOfTwo, aN as negInf, a1 as nextCombination, n as norm, ad as norm2D, l as normalize, J as normalize2D, aq as orthogonalize3x3, a7 as outer, ac as outer2D, p as perpendiculars, aK as pointIsWithinBounds, A as projectVector, a9 as projectVector2D, am as quaternionToMatrix3x3, r as radiansFromDegrees, w as random, a2 as randomSeed, E as rgb2hsv, F as rgb2lab, aE as rgb2xyz, I as round, an as roundNumber, b as roundVector, S as signedAngleBetweenVectors, as as singularValueDecomposition3x3, aL as solve3PointCircle, ay as solveHomogeneousLeastSquares, az as solveLeastSquares, s as solveLinearSystem, g as subtract, aj as transpose3x3, u as uninitializeBounds, aC as xyz2lab, aD as xyz2rgb } from './Math/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mat4 } from 'gl-matrix';
|
|
2
|
-
import { TypedArray } from '@kitware/vtk.js/types';
|
|
2
|
+
import { TypedArray, Vector3 } from '@kitware/vtk.js/types';
|
|
3
3
|
|
|
4
4
|
declare interface Transform {
|
|
5
5
|
|
|
@@ -22,9 +22,9 @@ declare interface Transform {
|
|
|
22
22
|
* Normalizes the axis of rotation then rotates the current matrix `angle`
|
|
23
23
|
* degrees/radians around the provided axis.
|
|
24
24
|
* @param {Number} angle
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {Vector3} axis
|
|
26
26
|
*/
|
|
27
|
-
rotate(angle: number, axis:
|
|
27
|
+
rotate(angle: number, axis: Vector3): Transform
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Rotates `angle` degrees/radians around the X axis.
|
|
@@ -201,17 +201,18 @@ export interface vtkImageData extends vtkDataSet {
|
|
|
201
201
|
/**
|
|
202
202
|
* this is the fast version, requires vec3 arguments
|
|
203
203
|
* @param {ReadonlyVec3} vin
|
|
204
|
-
* @param {vec3} vout
|
|
204
|
+
* @param {vec3} [vout]
|
|
205
205
|
*/
|
|
206
|
-
indexToWorldVec3(vin: ReadonlyVec3, vout
|
|
206
|
+
indexToWorldVec3(vin: ReadonlyVec3, vout?: vec3): vec3;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* Converts the input index vector `[i,j,k]` to world values `[x,y,z]`.
|
|
210
|
-
*
|
|
209
|
+
* Converts the input index vector `[i,j,k]` to world values `[x,y,z]`.
|
|
210
|
+
* If an out vector is not provided, a new one is created. If provided, it
|
|
211
|
+
* modifies the out vector array in place, but also returns it.
|
|
211
212
|
* @param {ReadonlyVec3} ain
|
|
212
|
-
* @param {vec3} aout
|
|
213
|
+
* @param {vec3} [aout]
|
|
213
214
|
*/
|
|
214
|
-
indexToWorld(ain: ReadonlyVec3, aout
|
|
215
|
+
indexToWorld(ain: ReadonlyVec3, aout?: vec3): vec3;
|
|
215
216
|
|
|
216
217
|
/**
|
|
217
218
|
* Calculate the corresponding world bounds for the given index bounds
|
|
@@ -308,18 +309,19 @@ export interface vtkImageData extends vtkDataSet {
|
|
|
308
309
|
/**
|
|
309
310
|
* this is the fast version, requires vec3 arguments
|
|
310
311
|
* @param vin
|
|
311
|
-
* @param vout
|
|
312
|
+
* @param [vout]
|
|
312
313
|
*/
|
|
313
|
-
worldToIndexVec3(vin: ReadonlyVec3, vout
|
|
314
|
+
worldToIndexVec3(vin: ReadonlyVec3, vout?: vec3): vec3;
|
|
314
315
|
|
|
315
316
|
/**
|
|
316
317
|
* Converts the input world vector `[x,y,z]` to approximate index values
|
|
317
318
|
* `[i,j,k]`. Should be rounded to integers before attempting to access the
|
|
318
|
-
* index.
|
|
319
|
+
* index. If an out vector is not provided, a new one is created. If provided, it
|
|
320
|
+
* modifies the out vector array in place, but also returns it.
|
|
319
321
|
* @param ain
|
|
320
|
-
* @param aout
|
|
322
|
+
* @param [aout]
|
|
321
323
|
*/
|
|
322
|
-
worldToIndex(ain: ReadonlyVec3, aout
|
|
324
|
+
worldToIndex(ain: ReadonlyVec3, aout?: vec3): vec3;
|
|
323
325
|
|
|
324
326
|
/**
|
|
325
327
|
* Calculate the corresponding index bounds for the given world bounds
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
3
|
-
import { l as normalize, d as dot, j as cross, f as distance2BetweenPoints,
|
|
3
|
+
import { l as normalize, d as dot, j as cross, f as distance2BetweenPoints, Q as determinant3x3 } from '../../Common/Core/Math/index.js';
|
|
4
4
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
5
5
|
|
|
6
6
|
var vtkErrorMacro = macro.vtkErrorMacro; // ----------------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import { mat4, vec3 } from 'gl-matrix';
|
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js';
|
|
4
4
|
import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js';
|
|
5
|
-
import { r as radiansFromDegrees,
|
|
5
|
+
import { r as radiansFromDegrees, x as degreesFromRadians } from '../../Common/Core/Math/index.js';
|
|
6
6
|
|
|
7
7
|
// vtkMouseCameraTrackballRollManipulator methods
|
|
8
8
|
// ----------------------------------------------------------------------------
|
|
@@ -10,7 +10,7 @@ import vtkSphereSource from '../../Filters/Sources/SphereSource.js';
|
|
|
10
10
|
import { FieldAssociations } from '../../Common/DataModel/DataSet/Constants.js';
|
|
11
11
|
import { mat4, vec3 } from 'gl-matrix';
|
|
12
12
|
import macro from '../../macros.js';
|
|
13
|
-
import {
|
|
13
|
+
import { y as areEquals, l as normalize, d as dot, z as clampValue, g as subtract, j as cross, t as multiplyScalar, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js';
|
|
14
14
|
|
|
15
15
|
var States = vtkInteractorStyleConstants.States; // ----------------------------------------------------------------------------
|
|
16
16
|
// vtkMouseCameraUnicamRotateManipulator methods
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkInteractorStyle from '../../Rendering/Core/InteractorStyle.js';
|
|
3
3
|
import vtkInteractorStyleConstants from '../../Rendering/Core/InteractorStyle/Constants.js';
|
|
4
|
-
import {
|
|
4
|
+
import { x as degreesFromRadians } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import { Device, Input } from '../../Rendering/Core/RenderWindowInteractor/Constants.js';
|
|
6
6
|
|
|
7
7
|
var States = vtkInteractorStyleConstants.States;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
|
-
import { l as normalize, d as dot, g as subtract,
|
|
4
|
+
import { l as normalize, d as dot, g as subtract, A as projectVector, k as add } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkPlane from '../../Common/DataModel/Plane.js';
|
|
6
6
|
import vtkAbstractWidget from './AbstractWidget.js';
|
|
7
7
|
import vtkImageCroppingRegionsRepresentation from './ImageCroppingRegionsRepresentation.js';
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
4
4
|
import macro from '../../macros.js';
|
|
5
|
-
import {
|
|
5
|
+
import { B as arrayRange } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import WebworkerPromise from 'webworker-promise';
|
|
7
7
|
import { W as WorkerFactory } from '../../_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import macro from '../../../macros.js';
|
|
4
|
-
import { j as cross, l as normalize,
|
|
4
|
+
import { j as cross, l as normalize, z as clampValue } from '../../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkPolyData from '../../../Common/DataModel/PolyData.js';
|
|
6
6
|
import vtkPlane from '../../../Common/DataModel/Plane.js';
|
|
7
7
|
import vtkCellArray from '../../../Common/Core/CellArray.js';
|
package/LICENSE
CHANGED
|
@@ -3,22 +3,25 @@ All rights reserved.
|
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without
|
|
5
5
|
modification, are permitted provided that the following conditions are met:
|
|
6
|
-
* Redistributions of source code must retain the above copyright
|
|
7
|
-
notice, this list of conditions and the following disclaimer.
|
|
8
|
-
* Redistributions in binary form must reproduce the above copyright
|
|
9
|
-
notice, this list of conditions and the following disclaimer in the
|
|
10
|
-
documentation and/or other materials provided with the distribution.
|
|
11
|
-
* Neither the name of the <organization> nor the
|
|
12
|
-
names of its contributors may be used to endorse or promote products
|
|
13
|
-
derived from this software without specific prior written permission.
|
|
14
6
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
- Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
- Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
- Neither the name of the copyright holder nor the names of its
|
|
15
|
+
contributors may be used to endorse or promote products derived from
|
|
16
|
+
this software without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkMouseRangeManipulator from '../../Interaction/Manipulators/MouseRangeManipulator.js';
|
|
3
3
|
import vtkViewProxy from './ViewProxy.js';
|
|
4
|
-
import { j as cross,
|
|
4
|
+
import { j as cross, C as getMajorAxisIndex } from '../../Common/Core/Math/index.js';
|
|
5
5
|
|
|
6
6
|
var DEFAULT_STEP_WIDTH = 512;
|
|
7
7
|
|
package/README.md
CHANGED
|
@@ -48,8 +48,8 @@ In general VTK tries to be as portable as possible; the specific configurations
|
|
|
48
48
|
|
|
49
49
|
vtk.js supports the following development environments:
|
|
50
50
|
|
|
51
|
-
- Node
|
|
52
|
-
- NPM
|
|
51
|
+
- Node 14+
|
|
52
|
+
- NPM 7+
|
|
53
53
|
|
|
54
54
|
and we use [@babel/preset-env](https://www.npmjs.com/package/@babel/preset-env) with the [defaults](https://github.com/Kitware/vtk-js/blob/master/.browserslistrc) set of [browsers target](https://browserl.ist/?q=defaults).
|
|
55
55
|
But when built from source this could be adjusted to support any browser as long they provide WebGL.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
|
-
import { h as hsv2rgb, i as isNan,
|
|
3
|
+
import { h as hsv2rgb, i as isNan, D as isInf, E as rgb2hsv, F as rgb2lab, G as lab2rgb, H as floor } from '../../Common/Core/Math/index.js';
|
|
4
4
|
import vtkScalarsToColors from '../../Common/Core/ScalarsToColors.js';
|
|
5
5
|
import Constants from './ColorTransferFunction/Constants.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import Constants from './Coordinate/Constants.js';
|
|
4
|
-
import {
|
|
4
|
+
import { I as round, H as floor } from '../../Common/Core/Math/index.js';
|
|
5
5
|
|
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import { vec3, mat4 } from 'gl-matrix';
|
|
4
4
|
import * as d3 from 'd3-scale';
|
|
5
|
-
import {
|
|
5
|
+
import { J as normalize2D, K as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import macro from '../../macros.js';
|
|
7
7
|
import vtkActor from './Actor.js';
|
|
8
8
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
@@ -4,7 +4,7 @@ import { mat4, vec3, mat3 } from 'gl-matrix';
|
|
|
4
4
|
import Constants from './Glyph3DMapper/Constants.js';
|
|
5
5
|
import macro from '../../macros.js';
|
|
6
6
|
import vtkMapper from './Mapper.js';
|
|
7
|
-
import {
|
|
7
|
+
import { L as createUninitializedBounds, n as norm } from '../../Common/Core/Math/index.js';
|
|
8
8
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
9
9
|
|
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import Constants from './ImageMapper/Constants.js';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
4
|
import vtkAbstractMapper from './AbstractMapper.js';
|
|
5
|
-
import {
|
|
5
|
+
import { z as clampValue, M as multiply3x3_vect3, L as createUninitializedBounds } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkPlane from '../../Common/DataModel/Plane.js';
|
|
7
7
|
import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js';
|
|
8
8
|
import { vec3 } from 'gl-matrix';
|
package/Rendering/Core/Mapper.js
CHANGED
|
@@ -4,7 +4,7 @@ import vtkAbstractMapper3D from './AbstractMapper3D.js';
|
|
|
4
4
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
5
5
|
import vtkImageData from '../../Common/DataModel/ImageData.js';
|
|
6
6
|
import vtkLookupTable from '../../Common/Core/LookupTable.js';
|
|
7
|
-
import {
|
|
7
|
+
import { L as createUninitializedBounds, i as isNan } from '../../Common/Core/Math/index.js';
|
|
8
8
|
import vtkScalarsToColors from '../../Common/Core/ScalarsToColors/Constants.js';
|
|
9
9
|
import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js';
|
|
10
10
|
import Constants from './Mapper/Constants.js';
|
package/Rendering/Core/Prop3D.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mat4, quat } from 'gl-matrix';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
4
|
-
import {
|
|
4
|
+
import { x as degreesFromRadians, r as radiansFromDegrees } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkProp from './Prop.js';
|
|
6
6
|
|
|
7
7
|
// vtkProp3D methods
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
|
|
3
|
-
var DEFAULT_VIEW_API =
|
|
3
|
+
var DEFAULT_VIEW_API = 'WebGL';
|
|
4
4
|
var VIEW_CONSTRUCTORS = Object.create(null); // ----------------------------------------------------------------------------
|
|
5
5
|
// static methods
|
|
6
6
|
// ----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
|
-
import {
|
|
3
|
+
import { x as degreesFromRadians } from '../../Common/Core/Math/index.js';
|
|
4
4
|
import Constants from './RenderWindowInteractor/Constants.js';
|
|
5
5
|
|
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -325,7 +325,21 @@ function vtkRenderWindowInteractor(publicAPI, model) {
|
|
|
325
325
|
|
|
326
326
|
animationRequesters.add(requestor);
|
|
327
327
|
|
|
328
|
-
if (animationRequesters.size === 1 && !model.xrAnimation) {
|
|
328
|
+
if (!model.animationRequest && animationRequesters.size === 1 && !model.xrAnimation) {
|
|
329
|
+
model._animationStartTime = Date.now();
|
|
330
|
+
model._animationFrameCount = 0;
|
|
331
|
+
model.animationRequest = requestAnimationFrame(publicAPI.handleAnimation);
|
|
332
|
+
publicAPI.startAnimationEvent();
|
|
333
|
+
}
|
|
334
|
+
}; // continue animating for at least the specified duration of
|
|
335
|
+
// milliseconds.
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
publicAPI.extendAnimation = function (duration) {
|
|
339
|
+
var newEnd = Date.now() + duration;
|
|
340
|
+
model._animationExtendedEnd = Math.max(model._animationExtendedEnd, newEnd);
|
|
341
|
+
|
|
342
|
+
if (!model.animationRequest && animationRequesters.size === 0 && !model.xrAnimation) {
|
|
329
343
|
model._animationStartTime = Date.now();
|
|
330
344
|
model._animationFrameCount = 0;
|
|
331
345
|
model.animationRequest = requestAnimationFrame(publicAPI.handleAnimation);
|
|
@@ -351,7 +365,7 @@ function vtkRenderWindowInteractor(publicAPI, model) {
|
|
|
351
365
|
|
|
352
366
|
animationRequesters.delete(requestor);
|
|
353
367
|
|
|
354
|
-
if (model.animationRequest && animationRequesters.size === 0) {
|
|
368
|
+
if (model.animationRequest && animationRequesters.size === 0 && Date.now() > model._animationExtendedEnd) {
|
|
355
369
|
cancelAnimationFrame(model.animationRequest);
|
|
356
370
|
model.animationRequest = null;
|
|
357
371
|
publicAPI.endAnimationEvent();
|
|
@@ -462,7 +476,15 @@ function vtkRenderWindowInteractor(publicAPI, model) {
|
|
|
462
476
|
|
|
463
477
|
publicAPI.animationEvent();
|
|
464
478
|
forceRender();
|
|
465
|
-
|
|
479
|
+
|
|
480
|
+
if (animationRequesters.size > 0 || Date.now() < model._animationExtendedEnd) {
|
|
481
|
+
model.animationRequest = requestAnimationFrame(publicAPI.handleAnimation);
|
|
482
|
+
} else {
|
|
483
|
+
cancelAnimationFrame(model.animationRequest);
|
|
484
|
+
model.animationRequest = null;
|
|
485
|
+
publicAPI.endAnimationEvent();
|
|
486
|
+
publicAPI.render();
|
|
487
|
+
}
|
|
466
488
|
};
|
|
467
489
|
|
|
468
490
|
publicAPI.handleWheel = function (event) {
|
|
@@ -497,9 +519,10 @@ function vtkRenderWindowInteractor(publicAPI, model) {
|
|
|
497
519
|
|
|
498
520
|
|
|
499
521
|
model.wheelTimeoutID = setTimeout(function () {
|
|
522
|
+
publicAPI.extendAnimation(600);
|
|
500
523
|
publicAPI.endMouseWheelEvent();
|
|
501
524
|
model.wheelTimeoutID = 0;
|
|
502
|
-
},
|
|
525
|
+
}, 200);
|
|
503
526
|
};
|
|
504
527
|
|
|
505
528
|
publicAPI.handleMouseEnter = function (event) {
|
|
@@ -987,7 +1010,9 @@ function extend(publicAPI, model) {
|
|
|
987
1010
|
var initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
988
1011
|
Object.assign(model, DEFAULT_VALUES, initialValues); // Object methods
|
|
989
1012
|
|
|
990
|
-
macro.obj(publicAPI, model);
|
|
1013
|
+
macro.obj(publicAPI, model); // run animation at least until this time
|
|
1014
|
+
|
|
1015
|
+
model._animationExtendedEnd = 0;
|
|
991
1016
|
macro.event(publicAPI, model, 'RenderEvent');
|
|
992
1017
|
handledEvents.forEach(function (eventName) {
|
|
993
1018
|
return macro.event(publicAPI, model, eventName);
|
|
@@ -2,7 +2,7 @@ import { mat4, vec3 } from 'gl-matrix';
|
|
|
2
2
|
import { newInstance as newInstance$1, get, setGet, getArray, setGetArray, vtkDebugMacro as vtkDebugMacro$1, vtkErrorMacro as vtkErrorMacro$1, vtkWarningMacro as vtkWarningMacro$1 } from '../../macros.js';
|
|
3
3
|
import vtkCamera from './Camera.js';
|
|
4
4
|
import vtkLight from './Light.js';
|
|
5
|
-
import {
|
|
5
|
+
import { N as areBoundsInitialized, u as uninitializeBounds, r as radiansFromDegrees, d as dot, L as createUninitializedBounds } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkViewport from './Viewport.js';
|
|
7
7
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import { vec3, mat4 } from 'gl-matrix';
|
|
4
4
|
import * as d3 from 'd3-scale';
|
|
5
|
-
import {
|
|
5
|
+
import { K as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import macro from '../../macros.js';
|
|
7
7
|
import vtkActor from './Actor.js';
|
|
8
8
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
|
-
import {
|
|
2
|
+
import { L as createUninitializedBounds } from '../../Common/Core/Math/index.js';
|
|
3
3
|
import Constants from './VolumeMapper/Constants.js';
|
|
4
4
|
import vtkAbstractMapper from './AbstractMapper.js';
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ import { v as vtkPolyData2DVS } from './glsl/vtkPolyData2DVS.glsl.js';
|
|
|
9
9
|
import vtkReplacementShaderMapper from './ReplacementShaderMapper.js';
|
|
10
10
|
import vtkShaderProgram from './ShaderProgram.js';
|
|
11
11
|
import vtkViewNode from '../SceneGraph/ViewNode.js';
|
|
12
|
-
import {
|
|
12
|
+
import { I as round } from '../../Common/Core/Math/index.js';
|
|
13
13
|
import { Representation } from '../Core/Property/Constants.js';
|
|
14
14
|
import { DisplayLocation } from '../Core/Property2D/Constants.js';
|
|
15
15
|
import { registerOverride } from './ViewNodeFactory.js';
|
|
@@ -3,7 +3,7 @@ import Constants from './Texture/Constants.js';
|
|
|
3
3
|
import HalfFloat from '../../Common/Core/HalfFloat.js';
|
|
4
4
|
import { newInstance as newInstance$1, obj, set, setGet, get, newTypedArray, vtkDebugMacro as vtkDebugMacro$1, vtkErrorMacro as vtkErrorMacro$1, vtkWarningMacro as vtkWarningMacro$1 } from '../../macros.js';
|
|
5
5
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
6
|
-
import {
|
|
6
|
+
import { O as isPowerOfTwo, K as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
|
|
7
7
|
import vtkViewNode from '../SceneGraph/ViewNode.js';
|
|
8
8
|
import { registerOverride } from './ViewNodeFactory.js';
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkActor from '../../Rendering/Core/Actor.js';
|
|
4
4
|
import vtkMapper from '../../Rendering/Core/Mapper.js';
|
|
5
|
-
import {
|
|
5
|
+
import { y as areEquals, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
7
7
|
import vtkPolyData from '../../Common/DataModel/PolyData.js';
|
|
8
8
|
import vtkTubeFilter from '../../Filters/General/TubeFilter.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
|
-
import { g as subtract,
|
|
4
|
+
import { g as subtract, P as multiplyAccumulate, l as normalize, j as cross } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkActor from '../../Rendering/Core/Actor.js';
|
|
6
6
|
import vtkCylinderSource from '../../Filters/Sources/CylinderSource.js';
|
|
7
7
|
import vtkMapper from '../../Rendering/Core/Mapper.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as subtract, t as multiplyScalar, k as add,
|
|
1
|
+
import { g as subtract, t as multiplyScalar, k as add, y as areEquals } from '../../../Common/Core/Math/index.js';
|
|
2
2
|
|
|
3
3
|
function calculateTextPosition(model) {
|
|
4
4
|
var vector = [0, 0, 0];
|
|
@@ -3,7 +3,7 @@ import macro from '../../../macros.js';
|
|
|
3
3
|
import vtkBoundingBox from '../../../Common/DataModel/BoundingBox.js';
|
|
4
4
|
import vtkLine from '../../../Common/DataModel/Line.js';
|
|
5
5
|
import vtkPlanePointManipulator from '../../Manipulators/PlaneManipulator.js';
|
|
6
|
-
import { t as multiplyScalar, g as subtract, l as normalize, d as dot, j as cross,
|
|
6
|
+
import { t as multiplyScalar, g as subtract, l as normalize, d as dot, j as cross, P as multiplyAccumulate, S as signedAngleBetweenVectors } from '../../../Common/Core/Math/index.js';
|
|
7
7
|
import { updateState, getAssociatedLinesName, boundPointOnPlane, rotateVector } from './helpers.js';
|
|
8
8
|
import { InteractionMethodsName, ScrollingMethods } from './Constants.js';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import vtkBoundingBox, { STATIC } from '../../../Common/DataModel/BoundingBox.js
|
|
|
3
3
|
import vtkCubeSource from '../../../Filters/Sources/CubeSource.js';
|
|
4
4
|
import vtkCutter from '../../../Filters/Core/Cutter.js';
|
|
5
5
|
import vtkPlane from '../../../Common/DataModel/Plane.js';
|
|
6
|
-
import { g as subtract, l as normalize, j as cross, t as multiplyScalar,
|
|
6
|
+
import { g as subtract, l as normalize, j as cross, t as multiplyScalar, P as multiplyAccumulate, S as signedAngleBetweenVectors } from '../../../Common/Core/Math/index.js';
|
|
7
7
|
import vtkMatrixBuilder from '../../../Common/Core/MatrixBuilder.js';
|
|
8
8
|
import { ViewTypes } from '../../Core/WidgetManager/Constants.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js';
|
|
|
4
4
|
import vtkPlane from '../../Common/DataModel/Plane.js';
|
|
5
5
|
import vtkPlaneSource from '../../Filters/Sources/PlaneSource.js';
|
|
6
6
|
import vtkResliceCursorContextRepresentation from '../Representations/ResliceCursorContextRepresentation.js';
|
|
7
|
-
import { f as distance2BetweenPoints,
|
|
7
|
+
import { f as distance2BetweenPoints, P as multiplyAccumulate, g as subtract, l as normalize, t as multiplyScalar, k as add } from '../../Common/Core/Math/index.js';
|
|
8
8
|
import widgetBehavior from './ResliceCursorWidget/behavior.js';
|
|
9
9
|
import generateState from './ResliceCursorWidget/state.js';
|
|
10
10
|
import { updateState, transformPlane, boundPlane } from './ResliceCursorWidget/helpers.js';
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/// <reference path="./types.d.ts" />
|
|
2
|
+
/// <reference path="./interfaces.d.ts" />
|
|
3
|
+
/// <reference path="./macros.d.ts" />
|
|
4
|
+
/// <reference path="./vtk.d.ts" />
|
|
5
|
+
/// <reference path="./Common/Core/Base64.d.ts" />
|
|
6
|
+
/// <reference path="./Common/Core/CellArray.d.ts" />
|
|
7
|
+
/// <reference path="./Common/Core/DataArray.d.ts" />
|
|
8
|
+
/// <reference path="./Common/Core/Endian.d.ts" />
|
|
9
|
+
/// <reference path="./Common/Core/HalfFloat.d.ts" />
|
|
10
|
+
/// <reference path="./Common/Core/ImageHelper.d.ts" />
|
|
11
|
+
/// <reference path="./Common/Core/LookupTable.d.ts" />
|
|
12
|
+
/// <reference path="./Common/Core/MatrixBuilder.d.ts" />
|
|
13
|
+
/// <reference path="./Common/Core/Points.d.ts" />
|
|
14
|
+
/// <reference path="./Common/Core/PriorityQueue.d.ts" />
|
|
15
|
+
/// <reference path="./Common/Core/ProgressHandler.d.ts" />
|
|
16
|
+
/// <reference path="./Common/Core/ScalarsToColors.d.ts" />
|
|
17
|
+
/// <reference path="./Common/Core/StringArray.d.ts" />
|
|
18
|
+
/// <reference path="./Common/Core/URLExtract.d.ts" />
|
|
19
|
+
/// <reference path="./Common/Core/VariantArray.d.ts" />
|
|
20
|
+
/// <reference path="./Common/DataModel/Box.d.ts" />
|
|
21
|
+
/// <reference path="./Common/DataModel/CardinalSpline1D.d.ts" />
|
|
22
|
+
/// <reference path="./Common/DataModel/Cell.d.ts" />
|
|
23
|
+
/// <reference path="./Common/DataModel/Cone.d.ts" />
|
|
24
|
+
/// <reference path="./Common/DataModel/Cylinder.d.ts" />
|
|
25
|
+
/// <reference path="./Common/DataModel/DataSet.d.ts" />
|
|
26
|
+
/// <reference path="./Common/DataModel/DataSetAttributes/FieldData.d.ts" />
|
|
27
|
+
/// <reference path="./Common/DataModel/DataSetAttributes.d.ts" />
|
|
28
|
+
/// <reference path="./Common/DataModel/ImageData.d.ts" />
|
|
29
|
+
/// <reference path="./Common/DataModel/KochanekSpline1D.d.ts" />
|
|
30
|
+
/// <reference path="./Common/DataModel/Line.d.ts" />
|
|
31
|
+
/// <reference path="./Common/DataModel/PiecewiseFunction.d.ts" />
|
|
32
|
+
/// <reference path="./Common/DataModel/Plane.d.ts" />
|
|
33
|
+
/// <reference path="./Common/DataModel/PointSet.d.ts" />
|
|
34
|
+
/// <reference path="./Common/DataModel/PolyData.d.ts" />
|
|
35
|
+
/// <reference path="./Common/DataModel/Polygon.d.ts" />
|
|
36
|
+
/// <reference path="./Common/DataModel/SelectionNode.d.ts" />
|
|
37
|
+
/// <reference path="./Common/DataModel/Sphere.d.ts" />
|
|
38
|
+
/// <reference path="./Common/DataModel/Spline1D.d.ts" />
|
|
39
|
+
/// <reference path="./Common/DataModel/Spline3D.d.ts" />
|
|
40
|
+
/// <reference path="./Common/DataModel/Triangle.d.ts" />
|
|
41
|
+
/// <reference path="./Common/Transform/LandmarkTransform.d.ts" />
|
|
42
|
+
/// <reference path="./Filters/General/AppendPolyData.d.ts" />
|
|
43
|
+
/// <reference path="./Filters/General/ImageCropFilter.d.ts" />
|
|
44
|
+
/// <reference path="./Filters/General/ImageOutlineFilter.d.ts" />
|
|
45
|
+
/// <reference path="./Filters/General/ImageSliceFilter.d.ts" />
|
|
46
|
+
/// <reference path="./Filters/General/LineFilter.d.ts" />
|
|
47
|
+
/// <reference path="./Filters/General/OutlineFilter.d.ts" />
|
|
48
|
+
/// <reference path="./Filters/General/TriangleFilter.d.ts" />
|
|
49
|
+
/// <reference path="./Filters/General/TubeFilter.d.ts" />
|
|
50
|
+
/// <reference path="./Filters/Sources/Arrow2DSource.d.ts" />
|
|
51
|
+
/// <reference path="./Filters/Sources/ArrowSource.d.ts" />
|
|
52
|
+
/// <reference path="./Filters/Sources/CircleSource.d.ts" />
|
|
53
|
+
/// <reference path="./Filters/Sources/ConeSource.d.ts" />
|
|
54
|
+
/// <reference path="./Filters/Sources/CubeSource.d.ts" />
|
|
55
|
+
/// <reference path="./Filters/Sources/Cursor3D.d.ts" />
|
|
56
|
+
/// <reference path="./Filters/Sources/CylinderSource.d.ts" />
|
|
57
|
+
/// <reference path="./Filters/Sources/LineSource.d.ts" />
|
|
58
|
+
/// <reference path="./Filters/Sources/PlaneSource.d.ts" />
|
|
59
|
+
/// <reference path="./Filters/Sources/PointSource.d.ts" />
|
|
60
|
+
/// <reference path="./Filters/Sources/SphereSource.d.ts" />
|
|
61
|
+
/// <reference path="./Filters/Texture/TextureMapToSphere.d.ts" />
|
|
62
|
+
/// <reference path="./Interaction/Widgets/OrientationMarkerWidget.d.ts" />
|
|
63
|
+
/// <reference path="./IO/Core/HttpSceneLoader.d.ts" />
|
|
64
|
+
/// <reference path="./IO/Core/ImageStream/DefaultProtocol.d.ts" />
|
|
65
|
+
/// <reference path="./IO/Core/ImageStream.d.ts" />
|
|
66
|
+
/// <reference path="./IO/Core/ImageStream/ViewStream.d.ts" />
|
|
67
|
+
/// <reference path="./IO/Core/WSLinkClient.d.ts" />
|
|
68
|
+
/// <reference path="./IO/Geometry/DracoReader.d.ts" />
|
|
69
|
+
/// <reference path="./IO/Geometry/PLYReader.d.ts" />
|
|
70
|
+
/// <reference path="./IO/Geometry/PLYWriter.d.ts" />
|
|
71
|
+
/// <reference path="./IO/Geometry/STLReader.d.ts" />
|
|
72
|
+
/// <reference path="./IO/Geometry/STLWriter.d.ts" />
|
|
73
|
+
/// <reference path="./IO/Misc/ElevationReader.d.ts" />
|
|
74
|
+
/// <reference path="./IO/Misc/ITKImageReader.d.ts" />
|
|
75
|
+
/// <reference path="./IO/Misc/ITKPolyDataReader.d.ts" />
|
|
76
|
+
/// <reference path="./IO/Misc/JSONNucleoReader.d.ts" />
|
|
77
|
+
/// <reference path="./IO/Misc/JSONReader.d.ts" />
|
|
78
|
+
/// <reference path="./IO/Misc/MTLReader.d.ts" />
|
|
79
|
+
/// <reference path="./IO/Misc/OBJReader.d.ts" />
|
|
80
|
+
/// <reference path="./IO/Misc/PDBReader.d.ts" />
|
|
81
|
+
/// <reference path="./IO/XML/XMLImageDataReader.d.ts" />
|
|
82
|
+
/// <reference path="./IO/XML/XMLPolyDataReader.d.ts" />
|
|
83
|
+
/// <reference path="./IO/XML/XMLReader.d.ts" />
|
|
84
|
+
/// <reference path="./Rendering/Core/AbstractMapper.d.ts" />
|
|
85
|
+
/// <reference path="./Rendering/Core/AbstractMapper3D.d.ts" />
|
|
86
|
+
/// <reference path="./Rendering/Core/AbstractPicker.d.ts" />
|
|
87
|
+
/// <reference path="./Rendering/Core/Actor.d.ts" />
|
|
88
|
+
/// <reference path="./Rendering/Core/Actor2D.d.ts" />
|
|
89
|
+
/// <reference path="./Rendering/Core/AnnotatedCubeActor.d.ts" />
|
|
90
|
+
/// <reference path="./Rendering/Core/AxesActor.d.ts" />
|
|
91
|
+
/// <reference path="./Rendering/Core/Camera.d.ts" />
|
|
92
|
+
/// <reference path="./Rendering/Core/CellPicker.d.ts" />
|
|
93
|
+
/// <reference path="./Rendering/Core/ColorTransferFunction.d.ts" />
|
|
94
|
+
/// <reference path="./Rendering/Core/Coordinate.d.ts" />
|
|
95
|
+
/// <reference path="./Rendering/Core/Follower.d.ts" />
|
|
96
|
+
/// <reference path="./Rendering/Core/Glyph3DMapper.d.ts" />
|
|
97
|
+
/// <reference path="./Rendering/Core/ImageMapper.d.ts" />
|
|
98
|
+
/// <reference path="./Rendering/Core/ImageProperty.d.ts" />
|
|
99
|
+
/// <reference path="./Rendering/Core/ImageSlice.d.ts" />
|
|
100
|
+
/// <reference path="./Rendering/Core/Light.d.ts" />
|
|
101
|
+
/// <reference path="./Rendering/Core/Mapper.d.ts" />
|
|
102
|
+
/// <reference path="./Rendering/Core/Mapper2D.d.ts" />
|
|
103
|
+
/// <reference path="./Rendering/Core/Picker.d.ts" />
|
|
104
|
+
/// <reference path="./Rendering/Core/PixelSpaceCallbackMapper.d.ts" />
|
|
105
|
+
/// <reference path="./Rendering/Core/PointPicker.d.ts" />
|
|
106
|
+
/// <reference path="./Rendering/Core/Prop.d.ts" />
|
|
107
|
+
/// <reference path="./Rendering/Core/Prop3D.d.ts" />
|
|
108
|
+
/// <reference path="./Rendering/Core/Property.d.ts" />
|
|
109
|
+
/// <reference path="./Rendering/Core/Property2D.d.ts" />
|
|
110
|
+
/// <reference path="./Rendering/Core/Renderer.d.ts" />
|
|
111
|
+
/// <reference path="./Rendering/Core/RenderWindow.d.ts" />
|
|
112
|
+
/// <reference path="./Rendering/Core/RenderWindowInteractor.d.ts" />
|
|
113
|
+
/// <reference path="./Rendering/Core/ScalarBarActor.d.ts" />
|
|
114
|
+
/// <reference path="./Rendering/Core/Skybox.d.ts" />
|
|
115
|
+
/// <reference path="./Rendering/Core/SphereMapper.d.ts" />
|
|
116
|
+
/// <reference path="./Rendering/Core/StickMapper.d.ts" />
|
|
117
|
+
/// <reference path="./Rendering/Core/Texture.d.ts" />
|
|
118
|
+
/// <reference path="./Rendering/Core/Viewport.d.ts" />
|
|
119
|
+
/// <reference path="./Rendering/Core/Volume.d.ts" />
|
|
120
|
+
/// <reference path="./Rendering/Core/VolumeMapper.d.ts" />
|
|
121
|
+
/// <reference path="./Rendering/Core/VolumeProperty.d.ts" />
|
|
122
|
+
/// <reference path="./Rendering/Misc/CanvasView.d.ts" />
|
|
123
|
+
/// <reference path="./Rendering/Misc/FullScreenRenderWindow.d.ts" />
|
|
124
|
+
/// <reference path="./Rendering/Misc/GenericRenderWindow.d.ts" />
|
|
125
|
+
/// <reference path="./Rendering/Misc/RemoteView.d.ts" />
|
|
126
|
+
/// <reference path="./Rendering/Misc/RenderWindowWithControlBar.d.ts" />
|
|
127
|
+
/// <reference path="./Rendering/Misc/SynchronizableRenderWindow.d.ts" />
|
|
128
|
+
/// <reference path="./Rendering/Misc/TextureLODsDownloader.d.ts" />
|
|
129
|
+
/// <reference path="./Rendering/OpenGL/RenderWindow.d.ts" />
|
|
130
|
+
/// <reference path="./Rendering/SceneGraph/RenderPass.d.ts" />
|
|
131
|
+
/// <reference path="./Rendering/SceneGraph/ViewNode.d.ts" />
|
|
132
|
+
/// <reference path="./Widgets/Manipulators/LineManipulator.d.ts" />
|
|
133
|
+
/// <reference path="./Widgets/Manipulators/PlaneManipulator.d.ts" />
|
|
134
|
+
/// <reference path="./Widgets/Manipulators/TrackballManipulator.d.ts" />
|
|
135
|
+
/// <reference path="./Widgets/Representations/ResliceCursorContextRepresentation.d.ts" />
|
|
136
|
+
/// <reference path="./Filters/Texture/TextureMapToPlane.d.ts" />
|
|
137
|
+
/// <reference path="./Widgets/Representations/WidgetRepresentation.d.ts" />
|
|
138
|
+
/// <reference path="./Rendering/SceneGraph/ViewNodeFactory.d.ts" />
|
|
139
|
+
/// <reference path="./Common/Core/Math.d.ts" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitware/vtk.js",
|
|
3
|
-
"version": "22.6.
|
|
3
|
+
"version": "22.6.2",
|
|
4
4
|
"description": "Visualization Toolkit for the Web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"3d",
|
|
@@ -223,5 +223,6 @@
|
|
|
223
223
|
},
|
|
224
224
|
"publishConfig": {
|
|
225
225
|
"access": "public"
|
|
226
|
-
}
|
|
226
|
+
},
|
|
227
|
+
"types": "./index.d.ts"
|
|
227
228
|
}
|
package/tsconfig.json
ADDED
package/vtk.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param obj
|
|
4
|
+
* @return
|
|
5
|
+
*/
|
|
6
|
+
declare function vtk(obj: object): any;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Nest register method under the vtk function
|
|
10
|
+
* @param vtkClassName
|
|
11
|
+
* @param constructor
|
|
12
|
+
*/
|
|
13
|
+
declare function register(vtkClassName: string, constructor: any): void;
|
|
14
|
+
|
|
15
|
+
export default vtk;
|