@kitware/vtk.js 23.0.1 → 23.1.0
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/CellArray.d.ts +2 -2
- package/Common/Core/DataArray.d.ts +2 -2
- package/Common/Core/Endian.d.ts +3 -1
- package/Common/Core/ImageHelper.d.ts +1 -1
- package/Common/Core/LookupTable.d.ts +2 -2
- package/Common/Core/Math.d.ts +1 -1
- package/Common/Core/MatrixBuilder.d.ts +1 -1
- package/Common/Core/Points.d.ts +2 -2
- package/Common/Core/PriorityQueue.d.ts +1 -1
- package/Common/Core/ProgressHandler.d.ts +1 -1
- package/Common/Core/ScalarsToColors.d.ts +3 -3
- package/Common/Core/StringArray.d.ts +1 -1
- package/Common/Core/VariantArray.d.ts +1 -1
- package/Common/DataModel/Box.d.ts +2 -2
- package/Common/DataModel/CardinalSpline1D.d.ts +2 -2
- package/Common/DataModel/Cell.d.ts +3 -3
- package/Common/DataModel/Cone.d.ts +2 -2
- package/Common/DataModel/Cylinder.d.ts +2 -2
- package/Common/DataModel/DataSet.d.ts +2 -2
- package/Common/DataModel/DataSetAttributes/FieldData.d.ts +1 -1
- package/Common/DataModel/DataSetAttributes.d.ts +3 -3
- package/Common/DataModel/ImageData.d.ts +2 -2
- package/Common/DataModel/KochanekSpline1D.d.ts +1 -1
- package/Common/DataModel/Line.d.ts +2 -2
- package/Common/DataModel/PiecewiseFunction.d.ts +2 -2
- package/Common/DataModel/Plane.d.ts +2 -2
- package/Common/DataModel/PointSet.d.ts +3 -3
- package/Common/DataModel/PolyData.d.ts +3 -3
- package/Common/DataModel/Polygon.d.ts +2 -2
- package/Common/DataModel/SelectionNode.d.ts +2 -2
- package/Common/DataModel/Sphere.d.ts +2 -2
- package/Common/DataModel/Spline1D.d.ts +1 -1
- package/Common/DataModel/Spline3D.d.ts +1 -1
- package/Common/DataModel/Triangle.d.ts +2 -2
- package/Common/Transform/LandmarkTransform.d.ts +2 -2
- package/Filters/General/AppendPolyData.d.ts +1 -1
- package/Filters/General/ImageCropFilter.d.ts +1 -1
- package/Filters/General/ImageOutlineFilter.d.ts +1 -1
- package/Filters/General/ImageSliceFilter.d.ts +1 -1
- package/Filters/General/ImageStreamline.d.ts +3 -3
- package/Filters/General/LineFilter.d.ts +1 -1
- package/Filters/General/OutlineFilter.d.ts +1 -1
- package/Filters/General/TriangleFilter.d.ts +1 -1
- package/Filters/General/TubeFilter.d.ts +2 -2
- package/Filters/Sources/Arrow2DSource.d.ts +2 -2
- package/Filters/Sources/ArrowSource.d.ts +2 -2
- package/Filters/Sources/CircleSource.d.ts +2 -2
- package/Filters/Sources/ConeSource.d.ts +2 -2
- package/Filters/Sources/CubeSource.d.ts +2 -2
- package/Filters/Sources/Cursor3D.d.ts +3 -3
- package/Filters/Sources/CylinderSource.d.ts +2 -2
- package/Filters/Sources/LineSource.d.ts +2 -2
- package/Filters/Sources/PlaneSource.d.ts +2 -2
- package/Filters/Sources/PointSource.d.ts +2 -2
- package/Filters/Sources/SphereSource.d.ts +2 -2
- package/Filters/Texture/TextureMapToPlane.d.ts +1 -1
- package/Filters/Texture/TextureMapToSphere.d.ts +1 -1
- package/IO/Core/DataAccessHelper.d.ts +4 -4
- package/IO/Core/HttpDataSetReader.d.ts +5 -5
- package/IO/Core/HttpSceneLoader.d.ts +5 -5
- package/IO/Core/ImageStream/DefaultProtocol.d.ts +1 -1
- package/IO/Core/ImageStream/ViewStream.d.ts +4 -4
- package/IO/Core/ImageStream.d.ts +3 -3
- package/IO/Core/WSLinkClient.d.ts +1 -1
- package/IO/Geometry/DracoReader.d.ts +5 -5
- package/IO/Geometry/PLYReader.d.ts +5 -5
- package/IO/Geometry/PLYWriter.d.ts +2 -2
- package/IO/Geometry/STLReader.d.ts +5 -5
- package/IO/Geometry/STLWriter.d.ts +2 -2
- package/IO/Misc/ElevationReader.d.ts +5 -5
- package/IO/Misc/ITKImageReader.d.ts +1 -1
- package/IO/Misc/ITKPolyDataReader.d.ts +1 -1
- package/IO/Misc/JSONNucleoReader.d.ts +5 -5
- package/IO/Misc/JSONReader.d.ts +1 -1
- package/IO/Misc/MTLReader.d.ts +6 -6
- package/IO/Misc/OBJReader.d.ts +5 -5
- package/IO/Misc/PDBReader.d.ts +5 -5
- package/IO/XML/XMLImageDataReader.d.ts +1 -1
- package/IO/XML/XMLPolyDataReader.d.ts +1 -1
- package/IO/XML/XMLReader.d.ts +5 -5
- package/Interaction/Manipulators/MouseRangeManipulator.js +55 -1
- package/Interaction/Widgets/OrientationMarkerWidget.d.ts +12 -10
- package/Rendering/Core/AbstractMapper.d.ts +2 -2
- package/Rendering/Core/AbstractMapper3D.d.ts +2 -2
- package/Rendering/Core/AbstractPicker.d.ts +4 -4
- package/Rendering/Core/Actor.d.ts +4 -4
- package/Rendering/Core/Actor2D.d.ts +5 -5
- package/Rendering/Core/AnnotatedCubeActor.d.ts +1 -1
- package/Rendering/Core/AxesActor.d.ts +1 -1
- package/Rendering/Core/Camera.d.ts +2 -2
- package/Rendering/Core/CellPicker.d.ts +5 -5
- package/Rendering/Core/ColorTransferFunction.d.ts +1 -1
- package/Rendering/Core/Coordinate.d.ts +2 -2
- package/Rendering/Core/Follower.d.ts +2 -2
- package/Rendering/Core/Glyph3DMapper.d.ts +2 -2
- package/Rendering/Core/ImageMapper.d.ts +3 -3
- package/Rendering/Core/ImageProperty.d.ts +2 -2
- package/Rendering/Core/ImageSlice.d.ts +4 -4
- package/Rendering/Core/Light.d.ts +2 -2
- package/Rendering/Core/Mapper.d.ts +5 -5
- package/Rendering/Core/Mapper2D.d.ts +4 -3
- package/Rendering/Core/Picker.d.ts +5 -5
- package/Rendering/Core/PixelSpaceCallbackMapper.d.ts +2 -2
- package/Rendering/Core/PointPicker.d.ts +3 -3
- package/Rendering/Core/Prop.d.ts +5 -5
- package/Rendering/Core/Prop3D.d.ts +2 -2
- package/Rendering/Core/Property.d.ts +2 -2
- package/Rendering/Core/Property2D.d.ts +2 -2
- package/Rendering/Core/RenderWindow.d.ts +4 -4
- package/Rendering/Core/RenderWindowInteractor.d.ts +2 -2
- package/Rendering/Core/Renderer.d.ts +12 -11
- package/Rendering/Core/ScalarBarActor.d.ts +3 -3
- package/Rendering/Core/Skybox.d.ts +1 -1
- package/Rendering/Core/SphereMapper.d.ts +1 -1
- package/Rendering/Core/StickMapper.d.ts +1 -1
- package/Rendering/Core/Texture.d.ts +1 -1
- package/Rendering/Core/Viewport.d.ts +4 -4
- package/Rendering/Core/Volume.d.ts +4 -4
- package/Rendering/Core/VolumeMapper.d.ts +2 -2
- package/Rendering/Core/VolumeProperty.d.ts +1 -1
- package/Rendering/Misc/CanvasView.d.ts +2 -2
- package/Rendering/Misc/FullScreenRenderWindow.d.ts +8 -8
- package/Rendering/Misc/GenericRenderWindow.d.ts +6 -6
- package/Rendering/Misc/RemoteView.d.ts +3 -3
- package/Rendering/Misc/RenderWindowWithControlBar.d.ts +2 -2
- package/Rendering/Misc/SynchronizableRenderWindow.d.ts +4 -3
- package/Rendering/Misc/TextureLODsDownloader.d.ts +4 -4
- package/Rendering/OpenGL/RenderWindow.d.ts +18 -18
- package/Rendering/SceneGraph/RenderPass.d.ts +2 -2
- package/Rendering/SceneGraph/ViewNode.d.ts +2 -2
- package/Rendering/SceneGraph/ViewNodeFactory.d.ts +1 -1
- package/Widgets/Manipulators/LineManipulator.d.ts +1 -1
- package/Widgets/Manipulators/PlaneManipulator.d.ts +1 -1
- package/Widgets/Manipulators/TrackballManipulator.d.ts +1 -1
- package/Widgets/Representations/ResliceCursorContextRepresentation.d.ts +1 -1
- package/Widgets/Representations/WidgetRepresentation.d.ts +1 -1
- package/interfaces.d.ts +4 -4
- package/macros.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +22 -1
- package/vtk.d.ts +7 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vtkObject, vtkSubscription } from '
|
|
2
|
-
import vtkRenderer from '
|
|
3
|
-
import vtkRenderWindowInteractor from '
|
|
4
|
-
// import vtkOpenGLRenderWindow from '
|
|
1
|
+
import { vtkObject, vtkSubscription } from '../../interfaces';
|
|
2
|
+
import vtkRenderer from './Renderer';
|
|
3
|
+
import vtkRenderWindowInteractor from './RenderWindowInteractor';
|
|
4
|
+
// import vtkOpenGLRenderWindow from '../../OpenGL/RenderWindow';
|
|
5
5
|
|
|
6
6
|
export interface IRenderWindowInitialValues {
|
|
7
7
|
renderers?: vtkRenderer[],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Bounds } from '
|
|
1
|
+
import { Bounds, Nullable } from '../../types';
|
|
2
2
|
|
|
3
|
-
import vtkCamera from '
|
|
4
|
-
import vtkLight from '
|
|
5
|
-
import vtkRenderWindow from '
|
|
6
|
-
import vtkProp3D from '
|
|
7
|
-
import vtkViewport, { IViewportInitialValues } from '
|
|
8
|
-
import vtkVolume from '
|
|
9
|
-
import vtkTexture from '
|
|
10
|
-
import vtkActor from '
|
|
3
|
+
import vtkCamera from './Camera';
|
|
4
|
+
import vtkLight from './Light';
|
|
5
|
+
import vtkRenderWindow from './RenderWindow';
|
|
6
|
+
import vtkProp3D from './Prop3D';
|
|
7
|
+
import vtkViewport, { IViewportInitialValues } from './Viewport';
|
|
8
|
+
import vtkVolume from './Volume';
|
|
9
|
+
import vtkTexture from './Texture';
|
|
10
|
+
import vtkActor from './Actor';
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
export interface IRendererInitialValues extends IViewportInitialValues {
|
|
@@ -128,6 +128,7 @@ export interface vtkRenderer extends vtkViewport {
|
|
|
128
128
|
*
|
|
129
129
|
*/
|
|
130
130
|
getClippingRangeExpansion(): number;
|
|
131
|
+
|
|
131
132
|
/**
|
|
132
133
|
*
|
|
133
134
|
* @default null
|
|
@@ -226,7 +227,7 @@ export interface vtkRenderer extends vtkViewport {
|
|
|
226
227
|
*
|
|
227
228
|
* @default null
|
|
228
229
|
*/
|
|
229
|
-
getRenderWindow(): vtkRenderWindow
|
|
230
|
+
getRenderWindow(): Nullable<vtkRenderWindow>;
|
|
230
231
|
|
|
231
232
|
/**
|
|
232
233
|
*
|
|
@@ -337,7 +338,7 @@ export interface vtkRenderer extends vtkViewport {
|
|
|
337
338
|
* Specify the camera to use for this renderer.
|
|
338
339
|
* @param {vtkCamera} camera The camera object to use.
|
|
339
340
|
*/
|
|
340
|
-
setActiveCamera(camera: vtkCamera
|
|
341
|
+
setActiveCamera(camera: vtkCamera): boolean;
|
|
341
342
|
|
|
342
343
|
/**
|
|
343
344
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import vtkScalarsToColors from '
|
|
2
|
-
import { Size, Vector2, Vector3 } from '
|
|
3
|
-
import vtkActor, { IActorInitialValues } from '
|
|
1
|
+
import vtkScalarsToColors from '../../Common/Core/ScalarsToColors';
|
|
2
|
+
import { Size, Vector2, Vector3 } from '../../types';
|
|
3
|
+
import vtkActor, { IActorInitialValues } from './Actor';
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export interface ITextSizes {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { vtkObject } from '
|
|
3
|
-
import { RGBColor } from '
|
|
4
|
-
import vtkActor2D from '
|
|
5
|
-
import vtkProp from '
|
|
2
|
+
import { vtkObject } from '../../interfaces';
|
|
3
|
+
import { RGBColor } from '../../types';
|
|
4
|
+
import vtkActor2D from './Actor2D';
|
|
5
|
+
import vtkProp from './Prop';
|
|
6
6
|
|
|
7
7
|
export interface IViewportInitialValues {
|
|
8
8
|
background?: RGBColor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bounds } from '
|
|
2
|
-
import vtkProp3D, { IProp3DInitialValues } from '
|
|
3
|
-
import vtkVolumeMapper from '
|
|
4
|
-
import vtkVolumeProperty from '
|
|
1
|
+
import { Bounds } from '../../types';
|
|
2
|
+
import vtkProp3D, { IProp3DInitialValues } from './Prop3D';
|
|
3
|
+
import vtkVolumeMapper from './VolumeMapper';
|
|
4
|
+
import vtkVolumeProperty from './VolumeProperty';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bounds, Range } from '
|
|
2
|
-
import vtkAbstractMapper, { IAbstractMapperInitialValues } from '
|
|
1
|
+
import { Bounds, Range } from '../../types';
|
|
2
|
+
import vtkAbstractMapper, { IAbstractMapperInitialValues } from './AbstractMapper';
|
|
3
3
|
|
|
4
4
|
export enum BlendMode {
|
|
5
5
|
COMPOSITE_BLEND,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import { RGBColor } from '
|
|
3
|
-
import vtkRenderer from '
|
|
4
|
-
import vtkRenderWindow from '
|
|
5
|
-
import vtkRenderWindowInteractor from '
|
|
6
|
-
|
|
7
|
-
// import vtkOpenGLRenderWindow from '
|
|
8
|
-
// import vtkWebGPURenderWindow from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import { RGBColor } from '../../types';
|
|
3
|
+
import vtkRenderer from '../Core/Renderer';
|
|
4
|
+
import vtkRenderWindow from '../Core/RenderWindow';
|
|
5
|
+
import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor';
|
|
6
|
+
|
|
7
|
+
// import vtkOpenGLRenderWindow from '../../OpenGL/RenderWindow';
|
|
8
|
+
// import vtkWebGPURenderWindow from '../../WebGPU/RenderWindow';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { vtkObject, vtkSubscription } from '
|
|
2
|
-
import { RGBColor } from '
|
|
3
|
-
import vtkRenderer from '
|
|
4
|
-
import vtkRenderWindow from '
|
|
5
|
-
import vtkRenderWindowInteractor from '
|
|
6
|
-
import vtkOpenGLRenderWindow from '
|
|
1
|
+
import { vtkObject, vtkSubscription } from '../../interfaces';
|
|
2
|
+
import { RGBColor } from '../../types';
|
|
3
|
+
import vtkRenderer from '../Core/Renderer';
|
|
4
|
+
import vtkRenderWindow from '../Core/RenderWindow';
|
|
5
|
+
import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor';
|
|
6
|
+
import vtkOpenGLRenderWindow from '../OpenGL/RenderWindow';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import vtkCanvasView from '
|
|
3
|
-
import vtkViewStream from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import vtkCanvasView from './CanvasView';
|
|
3
|
+
import vtkViewStream from '../../IO/Core/ImageStream/ViewStream';
|
|
4
4
|
|
|
5
5
|
interface IRemoteViewInitialValues {
|
|
6
6
|
viewId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { Placement } from '
|
|
3
|
-
import vtkGenericRenderWindow, { IGenericRenderWindowInitialValues } from '
|
|
2
|
+
import { Placement } from '../../types';
|
|
3
|
+
import vtkGenericRenderWindow, { IGenericRenderWindowInitialValues } from './GenericRenderWindow';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Nullable } from '../../types';
|
|
2
|
+
import vtkRenderWindow, { IRenderWindowInitialValues } from '../Core/RenderWindow';
|
|
2
3
|
|
|
3
4
|
// Keeps state for client / server scene synchronization.
|
|
4
5
|
export interface ISynchronizerContext {
|
|
@@ -27,8 +28,8 @@ export interface ISynchronizerContext {
|
|
|
27
28
|
|
|
28
29
|
export interface ISynchronizableRenderWindowInitialValues extends IRenderWindowInitialValues {
|
|
29
30
|
synchronizerContextName?: string; // default: 'default':
|
|
30
|
-
synchronizerContext?: ISynchronizerContext
|
|
31
|
-
synchronizedViewId?: string
|
|
31
|
+
synchronizerContext?: Nullable<ISynchronizerContext>;
|
|
32
|
+
synchronizedViewId?: Nullable<string>;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
// Server-side view state.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
2
|
-
import { CrossOrigin } from '
|
|
3
|
-
import vtkTexture from '
|
|
1
|
+
import { vtkObject } from '../../interfaces';
|
|
2
|
+
import { CrossOrigin, Nullable } from '../../types';
|
|
3
|
+
import vtkTexture from '../Core/Texture';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -27,7 +27,7 @@ export interface vtkTextureLODsDownloader extends vtkObject {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get the crossorigin attribute
|
|
29
29
|
*/
|
|
30
|
-
getCrossOrigin(): CrossOrigin
|
|
30
|
+
getCrossOrigin(): Nullable<CrossOrigin>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Get the list of files to download
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { vtkAlgorithm, vtkObject } from '
|
|
2
|
-
import { Size, Vector2, Vector3 } from '
|
|
3
|
-
import { vtkRenderer } from '
|
|
4
|
-
import { VtkDataTypes } from '
|
|
5
|
-
import vtkTexture from '
|
|
6
|
-
import vtkViewStream from '
|
|
1
|
+
import { vtkAlgorithm, vtkObject } from '../../interfaces';
|
|
2
|
+
import { Nullable, Size, Vector2, Vector3 } from '../../types';
|
|
3
|
+
import { vtkRenderer } from '../../Rendering/Core/Renderer';
|
|
4
|
+
import { VtkDataTypes } from '../../Common/Core/DataArray';
|
|
5
|
+
import vtkTexture from '../Core/Texture';
|
|
6
|
+
import vtkViewStream from '../../IO/Core/ImageStream/ViewStream';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
@@ -199,7 +199,7 @@ export interface vtkOpenGLRenderWindow extends vtkOpenGLRenderWindowBase {
|
|
|
199
199
|
*
|
|
200
200
|
* @param options
|
|
201
201
|
*/
|
|
202
|
-
get3DContext(options: object): WebGLRenderingContext
|
|
202
|
+
get3DContext(options: object): Nullable<WebGLRenderingContext>;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
*
|
|
@@ -241,20 +241,20 @@ export interface vtkOpenGLRenderWindow extends vtkOpenGLRenderWindowBase {
|
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
*
|
|
244
|
-
* @param vtktype
|
|
245
|
-
* @param numComps
|
|
246
|
-
* @param useFloat
|
|
244
|
+
* @param {VtkDataTypes} vtktype
|
|
245
|
+
* @param {Number} numComps
|
|
246
|
+
* @param {Boolean} useFloat
|
|
247
247
|
*/
|
|
248
248
|
getDefaultTextureInternalFormat(vtktype: VtkDataTypes, numComps: number, useFloat: boolean): void;
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
|
-
*
|
|
252
|
-
* @param {HTMLImageElement} img
|
|
251
|
+
*
|
|
252
|
+
* @param {HTMLImageElement} img The background image.
|
|
253
253
|
*/
|
|
254
254
|
setBackgroundImage(img: HTMLImageElement): void;
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
257
|
+
*
|
|
258
258
|
* @param {Boolean} value
|
|
259
259
|
*/
|
|
260
260
|
setUseBackgroundImage(value: boolean): void;
|
|
@@ -273,7 +273,7 @@ export interface vtkOpenGLRenderWindow extends vtkOpenGLRenderWindowBase {
|
|
|
273
273
|
* @param {String} format
|
|
274
274
|
* @param {IOptions} options
|
|
275
275
|
*/
|
|
276
|
-
captureNextImage(format: string, options: IOptions): Promise<string
|
|
276
|
+
captureNextImage(format: string, options: IOptions): Nullable<Promise<string>>;
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
279
|
*
|
|
@@ -297,20 +297,20 @@ export interface vtkOpenGLRenderWindow extends vtkOpenGLRenderWindowBase {
|
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
*
|
|
300
|
-
* @param stream
|
|
300
|
+
* @param {vtkViewStream} stream The vtkViewStream instance.
|
|
301
301
|
*/
|
|
302
302
|
setViewStream(stream: vtkViewStream): boolean;
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
*
|
|
306
|
-
* @param {Vector2} size
|
|
306
|
+
* @param {Vector2} size
|
|
307
307
|
*/
|
|
308
308
|
setSize(size: Vector2): void;
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
311
|
*
|
|
312
|
-
* @param {Number} x
|
|
313
|
-
* @param {Number} y
|
|
312
|
+
* @param {Number} x
|
|
313
|
+
* @param {Number} y
|
|
314
314
|
*/
|
|
315
315
|
setSize(x: number, y: number): void;
|
|
316
316
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {vtkWidgetRepresentation, IWidgetRepresentationInitialValues} from '
|
|
1
|
+
import {vtkWidgetRepresentation, IWidgetRepresentationInitialValues} from './WidgetRepresentation';
|
|
2
2
|
|
|
3
3
|
export interface IResliceCursorContextRepresentationInitialValues extends IWidgetRepresentationInitialValues {
|
|
4
4
|
axis1Name?: string,
|
package/interfaces.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import vtkDataArray from '
|
|
2
|
-
import vtkImageData from '
|
|
3
|
-
import vtkPolyData from '
|
|
4
|
-
import { vtkPipelineConnection } from '
|
|
1
|
+
import vtkDataArray from '././Common/Core/DataArray';
|
|
2
|
+
import vtkImageData from '././Common/DataModel/ImageData';
|
|
3
|
+
import vtkPolyData from '././Common/DataModel/PolyData';
|
|
4
|
+
import { vtkPipelineConnection } from '././types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Object returned on any subscription call
|
package/macros.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vtkSubscription, vtkDebouncedFunction, vtkProperty, vtkPropertyDomain } from '
|
|
1
|
+
import { vtkSubscription, vtkDebouncedFunction, vtkProperty, vtkPropertyDomain } from '././interfaces';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Allow user to redefine vtkXXXMacro method call.
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import { vtkOutputPort } from '
|
|
1
|
+
import { vtkOutputPort } from '././interfaces';
|
|
2
|
+
|
|
3
|
+
/** Alias type for value that can be null */
|
|
4
|
+
declare type Nullable<T> = T | null;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Alias type for number that are floats
|
|
8
|
+
* @ignorenaming
|
|
9
|
+
*/
|
|
10
|
+
declare type float = number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Alias type for number that are doubles.
|
|
14
|
+
* @ignorenaming
|
|
15
|
+
*/
|
|
16
|
+
declare type double = number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Alias type for number that are integer
|
|
20
|
+
* @ignorenaming
|
|
21
|
+
*/
|
|
22
|
+
declare type int = number;
|
|
2
23
|
|
|
3
24
|
declare type TypedArray =
|
|
4
25
|
| number[]
|
package/vtk.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
interface IvtkObject {
|
|
2
|
+
vtkClass: string;
|
|
3
|
+
[attrName: string]: unknown;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
7
|
*
|
|
3
8
|
* @param obj
|
|
4
9
|
* @return
|
|
5
10
|
*/
|
|
6
|
-
declare function vtk(obj:
|
|
11
|
+
declare function vtk(obj: IvtkObject): unknown;
|
|
7
12
|
|
|
8
13
|
/**
|
|
9
14
|
* Nest register method under the vtk function
|
|
10
15
|
* @param vtkClassName
|
|
11
16
|
* @param constructor
|
|
12
17
|
*/
|
|
13
|
-
declare function register(vtkClassName: string, constructor:
|
|
18
|
+
declare function register(vtkClassName: string, constructor: unknown): void;
|
|
14
19
|
|
|
15
20
|
export default vtk;
|