@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.
Files changed (68) hide show
  1. package/Common/Core/LookupTable.d.ts +6 -6
  2. package/Common/Core/Math/index.js +1 -1
  3. package/Common/Core/Math.js +1 -1
  4. package/Common/Core/ScalarsToColors/Constants.d.ts +18 -0
  5. package/Common/Core/ScalarsToColors.d.ts +6 -16
  6. package/Common/DataModel/Box.d.ts +4 -4
  7. package/Common/DataModel/CardinalSpline1D.d.ts +8 -4
  8. package/Common/DataModel/CardinalSpline1D.js +133 -4
  9. package/Common/DataModel/Cell.js +3 -1
  10. package/Common/DataModel/CellTypes.js +6 -1
  11. package/Common/DataModel/ITKHelper.d.ts +3 -3
  12. package/Common/DataModel/KochanekSpline1D.d.ts +8 -4
  13. package/Common/DataModel/KochanekSpline1D.js +103 -2
  14. package/Common/DataModel/Line.d.ts +8 -3
  15. package/Common/DataModel/Line.js +16 -11
  16. package/Common/DataModel/PiecewiseFunction.js +8 -8
  17. package/Common/DataModel/Plane.js +1 -1
  18. package/Common/DataModel/PolyData/Constants.d.ts +6 -0
  19. package/Common/DataModel/PolyLine.d.ts +63 -0
  20. package/Common/DataModel/PolyLine.js +77 -0
  21. package/Common/DataModel/Polygon.js +1 -1
  22. package/Common/DataModel/Spline1D/Constants.js +17 -0
  23. package/Common/DataModel/Spline1D.d.ts +20 -2
  24. package/Common/DataModel/Spline3D/Constants.d.ts +9 -0
  25. package/Common/DataModel/Spline3D.d.ts +4 -9
  26. package/Common/DataModel/Spline3D.js +20 -15
  27. package/Filters/General/ImageCropFilter.d.ts +9 -6
  28. package/Filters/Sources/LineSource.js +1 -1
  29. package/Filters/Sources/PlaneSource.js +1 -1
  30. package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -1
  31. package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -1
  32. package/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts +11 -0
  33. package/Interaction/Widgets/OrientationMarkerWidget.d.ts +2 -6
  34. package/Rendering/Core/CellPicker.js +53 -32
  35. package/Rendering/Core/Mapper/Constants.d.ts +26 -0
  36. package/Rendering/Core/Mapper.d.ts +5 -21
  37. package/Rendering/Core/Property/Constants.d.ts +24 -0
  38. package/Rendering/Core/Property.d.ts +6 -20
  39. package/Rendering/Core/RenderWindowInteractor/Constants.d.ts +31 -0
  40. package/Rendering/Core/RenderWindowInteractor.d.ts +223 -121
  41. package/Rendering/Core/ScalarBarActor.d.ts +37 -15
  42. package/Rendering/Core/ScalarBarActor.js +39 -14
  43. package/Rendering/Core/Viewport.d.ts +2 -4
  44. package/Rendering/Core/VolumeMapper/Constants.d.ts +19 -0
  45. package/Rendering/Core/VolumeMapper.d.ts +5 -9
  46. package/Rendering/Core/VolumeProperty.d.ts +5 -13
  47. package/Rendering/Misc/FullScreenRenderWindow.d.ts +3 -2
  48. package/Rendering/OpenGL/RenderWindow.d.ts +28 -10
  49. package/Widgets/Core/StateBuilder.js +6 -2
  50. package/Widgets/Manipulators/LineManipulator.js +1 -1
  51. package/Widgets/Representations/ResliceCursorContextRepresentation.js +1 -1
  52. package/Widgets/Representations/SplineContextRepresentation.js +27 -9
  53. package/Widgets/Representations/WidgetRepresentation.js +1 -1
  54. package/Widgets/Widgets3D/AngleWidget/behavior.js +10 -5
  55. package/Widgets/Widgets3D/AngleWidget.js +1 -1
  56. package/Widgets/Widgets3D/DistanceWidget/behavior.js +11 -5
  57. package/Widgets/Widgets3D/LabelWidget/behavior.js +10 -4
  58. package/Widgets/Widgets3D/LineWidget/behavior.js +1 -1
  59. package/Widgets/Widgets3D/LineWidget/helpers.js +1 -1
  60. package/Widgets/Widgets3D/PolyLineWidget/behavior.js +7 -5
  61. package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
  62. package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +1 -1
  63. package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -1
  64. package/Widgets/Widgets3D/ShapeWidget/behavior.js +9 -1
  65. package/Widgets/Widgets3D/SplineWidget/state.js +10 -0
  66. package/Widgets/Widgets3D/SplineWidget.js +1 -1
  67. package/index.d.ts +16 -7
  68. 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;