@kitware/vtk.js 24.9.0 → 24.12.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/LookupTable.d.ts +6 -6
- package/Common/Core/Math/index.js +1 -1
- package/Common/Core/Math.js +1 -1
- package/Common/Core/ScalarsToColors/Constants.d.ts +18 -0
- package/Common/Core/ScalarsToColors.d.ts +6 -16
- package/Common/DataModel/Box.d.ts +4 -4
- package/Common/DataModel/CardinalSpline1D.d.ts +8 -4
- package/Common/DataModel/CardinalSpline1D.js +133 -4
- package/Common/DataModel/Cell.js +3 -1
- package/Common/DataModel/CellTypes.js +6 -1
- package/Common/DataModel/ITKHelper.d.ts +3 -3
- package/Common/DataModel/KochanekSpline1D.d.ts +8 -4
- package/Common/DataModel/KochanekSpline1D.js +103 -2
- package/Common/DataModel/Line.d.ts +8 -3
- package/Common/DataModel/Line.js +16 -11
- package/Common/DataModel/PiecewiseFunction.js +8 -8
- package/Common/DataModel/Plane.js +1 -1
- package/Common/DataModel/PolyData/Constants.d.ts +6 -0
- package/Common/DataModel/PolyLine.d.ts +63 -0
- package/Common/DataModel/PolyLine.js +77 -0
- package/Common/DataModel/Polygon.js +1 -1
- package/Common/DataModel/Spline1D/Constants.js +17 -0
- package/Common/DataModel/Spline1D.d.ts +20 -2
- package/Common/DataModel/Spline3D/Constants.d.ts +9 -0
- package/Common/DataModel/Spline3D.d.ts +4 -9
- package/Common/DataModel/Spline3D.js +20 -15
- package/Filters/General/ImageCropFilter.d.ts +9 -6
- package/Filters/Sources/LineSource.js +1 -1
- package/Filters/Sources/PlaneSource.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -1
- package/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts +11 -0
- package/Interaction/Widgets/OrientationMarkerWidget.d.ts +2 -6
- package/Rendering/Core/CellPicker.js +53 -32
- package/Rendering/Core/Mapper/Constants.d.ts +26 -0
- package/Rendering/Core/Mapper.d.ts +5 -21
- package/Rendering/Core/Property/Constants.d.ts +24 -0
- package/Rendering/Core/Property.d.ts +6 -20
- package/Rendering/Core/RenderWindowInteractor/Constants.d.ts +31 -0
- package/Rendering/Core/RenderWindowInteractor.d.ts +223 -121
- package/Rendering/Core/ScalarBarActor.d.ts +37 -15
- package/Rendering/Core/ScalarBarActor.js +39 -14
- package/Rendering/Core/Viewport.d.ts +2 -4
- package/Rendering/Core/VolumeMapper/Constants.d.ts +19 -0
- package/Rendering/Core/VolumeMapper.d.ts +5 -9
- package/Rendering/Core/VolumeProperty.d.ts +5 -13
- package/Rendering/Misc/FullScreenRenderWindow.d.ts +3 -2
- package/Rendering/OpenGL/RenderWindow.d.ts +28 -10
- package/Widgets/Core/StateBuilder.js +6 -2
- package/Widgets/Manipulators/LineManipulator.js +1 -1
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +1 -1
- package/Widgets/Representations/SplineContextRepresentation.js +27 -9
- package/Widgets/Representations/WidgetRepresentation.js +1 -1
- package/Widgets/Widgets3D/AngleWidget/behavior.js +10 -5
- package/Widgets/Widgets3D/AngleWidget.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget/behavior.js +11 -5
- package/Widgets/Widgets3D/LabelWidget/behavior.js +10 -4
- package/Widgets/Widgets3D/LineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/LineWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/PolyLineWidget/behavior.js +7 -5
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -1
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +9 -1
- package/Widgets/Widgets3D/SplineWidget/state.js +10 -0
- package/Widgets/Widgets3D/SplineWidget.js +1 -1
- package/index.d.ts +16 -7
- package/package.json +43 -43
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum Shading {
|
|
2
|
+
FLAT = 0,
|
|
3
|
+
GOURAUD = 1,
|
|
4
|
+
PHONG = 2,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export declare enum Representation {
|
|
8
|
+
POINTS = 0,
|
|
9
|
+
WIREFRAME = 1,
|
|
10
|
+
SURFACE = 2,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare enum Interpolation {
|
|
14
|
+
FLAT = 0,
|
|
15
|
+
GOURAUD = 1,
|
|
16
|
+
PHONG = 2,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const _default: {
|
|
20
|
+
Shading: typeof Shading;
|
|
21
|
+
Representation: typeof Representation;
|
|
22
|
+
Interpolation: typeof Interpolation;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { vtkObject } from './../../interfaces';
|
|
2
2
|
import { RGBColor } from './../../types';
|
|
3
|
-
|
|
4
|
-
export enum Shading {
|
|
5
|
-
FLAT,
|
|
6
|
-
GOURAUD,
|
|
7
|
-
PHONG,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum Representation {
|
|
11
|
-
POINTS,
|
|
12
|
-
WIREFRAME,
|
|
13
|
-
SURFACE,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum Interpolation {
|
|
17
|
-
FLAT,
|
|
18
|
-
GOURAUD,
|
|
19
|
-
PHONG,
|
|
20
|
-
}
|
|
3
|
+
import { Interpolation, Representation, Shading } from './Property/Constants';
|
|
21
4
|
|
|
22
5
|
export interface IPropertyInitialValues {
|
|
23
6
|
color?: RGBColor;
|
|
@@ -457,7 +440,10 @@ export function newInstance(initialValues?: IPropertyInitialValues): vtkProperty
|
|
|
457
440
|
* manipulated with this object.
|
|
458
441
|
*/
|
|
459
442
|
export declare const vtkProperty: {
|
|
460
|
-
newInstance: typeof newInstance
|
|
461
|
-
extend: typeof extend
|
|
443
|
+
newInstance: typeof newInstance;
|
|
444
|
+
extend: typeof extend;
|
|
445
|
+
Shading: typeof Shading;
|
|
446
|
+
Representation: typeof Representation;
|
|
447
|
+
Interpolation: typeof Interpolation;
|
|
462
448
|
};
|
|
463
449
|
export default vtkProperty;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum Device {
|
|
2
|
+
Unknown = 0,
|
|
3
|
+
LeftController = 1,
|
|
4
|
+
RightController = 2,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export declare enum Input {
|
|
8
|
+
Unknown = 0,
|
|
9
|
+
Trigger = 1,
|
|
10
|
+
TrackPad = 2,
|
|
11
|
+
Grip = 3,
|
|
12
|
+
Thumbstick = 4,
|
|
13
|
+
A = 5,
|
|
14
|
+
B = 6,
|
|
15
|
+
ApplicationMenu = 7, // Not exposed in WebXR API
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare enum Axis {
|
|
19
|
+
Unknown = 0,
|
|
20
|
+
TouchpadX = 1,
|
|
21
|
+
TouchpadY = 2,
|
|
22
|
+
ThumbstickX = 3,
|
|
23
|
+
ThumbstickY = 4,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare const _default: {
|
|
27
|
+
Device: typeof Device;
|
|
28
|
+
Input: typeof Input;
|
|
29
|
+
Axis: typeof Axis;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|