@kitware/vtk.js 34.16.2 → 34.16.6
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/CONTRIBUTING.md +8 -8
- package/Common/Core/CellArray.d.ts +5 -1
- package/Common/Core/CellArray.js +6 -10
- package/Common/Core/DataArray.js +9 -23
- package/Common/Core/ImageHelper.d.ts +2 -2
- package/Common/Core/ImageHelper.js +6 -8
- package/Common/Core/LookupTable.js +1 -3
- package/Common/Core/Math/index.js +19 -47
- package/Common/Core/MatrixBuilder.js +2 -5
- package/Common/Core/Points.js +3 -8
- package/Common/Core/PriorityQueue.js +4 -8
- package/Common/Core/ProgressHandler.js +4 -7
- package/Common/Core/ScalarsToColors.js +1 -2
- package/Common/Core/StringArray.js +4 -12
- package/Common/Core/URLExtract.js +1 -3
- package/Common/Core/VariantArray.js +4 -12
- package/Common/DataModel/AbstractPointLocator.js +1 -2
- package/Common/DataModel/BoundingBox.js +6 -16
- package/Common/DataModel/Box.js +7 -11
- package/Common/DataModel/CardinalSpline1D.js +2 -4
- package/Common/DataModel/Cell.js +2 -4
- package/Common/DataModel/CellLinks.js +2 -4
- package/Common/DataModel/CellTypes.js +2 -5
- package/Common/DataModel/Collection.js +1 -2
- package/Common/DataModel/Cone.js +1 -2
- package/Common/DataModel/Cylinder.js +1 -2
- package/Common/DataModel/DataSet/Constants.js +0 -1
- package/Common/DataModel/DataSet.js +2 -4
- package/Common/DataModel/DataSetAttributes/Constants.js +0 -4
- package/Common/DataModel/DataSetAttributes/FieldData.js +3 -11
- package/Common/DataModel/DataSetAttributes.js +1 -2
- package/Common/DataModel/EdgeLocator.js +2 -4
- package/Common/DataModel/ITKHelper.js +4 -8
- package/Common/DataModel/ImageData.js +17 -33
- package/Common/DataModel/ImplicitBoolean.js +1 -2
- package/Common/DataModel/ImplicitFunction.js +1 -2
- package/Common/DataModel/IncrementalOctreeNode.js +1 -2
- package/Common/DataModel/IncrementalOctreePointLocator.js +2 -3
- package/Common/DataModel/KochanekSpline1D.js +2 -4
- package/Common/DataModel/Line.js +2 -4
- package/Common/DataModel/Locator.js +1 -2
- package/Common/DataModel/MergePoints.js +1 -2
- package/Common/DataModel/Molecule.js +1 -2
- package/Common/DataModel/PiecewiseFunction.js +2 -4
- package/Common/DataModel/Plane.js +1 -2
- package/Common/DataModel/Planes.js +2 -4
- package/Common/DataModel/PointLocator.js +3 -7
- package/Common/DataModel/PointSet.js +2 -4
- package/Common/DataModel/PolyData.js +4 -8
- package/Common/DataModel/PolyLine.js +1 -2
- package/Common/DataModel/Polygon.js +2 -4
- package/Common/DataModel/Quad.js +1 -2
- package/Common/DataModel/SelectionNode.js +1 -2
- package/Common/DataModel/Sphere.js +1 -2
- package/Common/DataModel/Spline1D.js +2 -3
- package/Common/DataModel/Spline3D.js +1 -2
- package/Common/DataModel/Triangle.js +2 -6
- package/Common/DataModel/TriangleStrip.js +1 -2
- package/Common/Transform/LandmarkTransform.js +1 -2
- package/Common/Transform/Transform.js +4 -10
- package/Filters/Core/CleanPolyData.js +1 -2
- package/Filters/Core/Cutter.js +1 -3
- package/Filters/Core/PolyDataNormals.js +1 -3
- package/Filters/Core/ThresholdPoints.js +2 -4
- package/Filters/Cornerstone/ImageDataToCornerstoneImage.js +1 -2
- package/Filters/General/AppendPolyData.js +1 -2
- package/Filters/General/Calculator.js +40 -47
- package/Filters/General/ClipClosedSurface.js +1 -4
- package/Filters/General/ClosedPolyLineToSurfaceFilter.js +1 -2
- package/Filters/General/ContourLoopExtraction.js +1 -2
- package/Filters/General/ContourTriangulator/helper.js +1 -5
- package/Filters/General/ContourTriangulator.js +2 -4
- package/Filters/General/ImageCropFilter.js +1 -2
- package/Filters/General/ImageDataOutlineFilter.js +1 -2
- package/Filters/General/ImageMarchingCubes/caseTable.js +0 -1
- package/Filters/General/ImageMarchingCubes.js +1 -4
- package/Filters/General/ImageMarchingSquares/caseTable.js +0 -1
- package/Filters/General/ImageMarchingSquares.js +1 -4
- package/Filters/General/ImageOutlineFilter.js +1 -2
- package/Filters/General/ImageSliceFilter.js +1 -2
- package/Filters/General/ImageStreamline.js +1 -3
- package/Filters/General/LineFilter.js +1 -2
- package/Filters/General/MoleculeToRepresentation.js +2 -5
- package/Filters/General/OBBTree/OBBNode.js +1 -2
- package/Filters/General/OBBTree.js +2 -6
- package/Filters/General/OutlineFilter.js +1 -2
- package/Filters/General/PaintFilter/PaintFilter.worker.js +20 -25
- package/Filters/General/PaintFilter.js +1 -2
- package/Filters/General/ScalarToRGBA.js +1 -2
- package/Filters/General/ShrinkPolyData.js +2 -4
- package/Filters/General/TransformPolyDataFilter.js +1 -2
- package/Filters/General/TriangleFilter.js +1 -2
- package/Filters/General/TubeFilter.js +2 -6
- package/Filters/General/WarpScalar.js +1 -2
- package/Filters/General/WindowedSincPolyDataFilter.js +1 -2
- package/Filters/Sources/ArcSource.js +1 -2
- package/Filters/Sources/Arrow2DSource.js +1 -2
- package/Filters/Sources/ArrowSource.js +1 -2
- package/Filters/Sources/CircleSource.d.ts +2 -3
- package/Filters/Sources/CircleSource.js +1 -2
- package/Filters/Sources/ConcentricCylinderSource.js +2 -6
- package/Filters/Sources/ConeSource.js +1 -2
- package/Filters/Sources/CubeSource.js +6 -7
- package/Filters/Sources/Cursor3D.js +1 -2
- package/Filters/Sources/CylinderSource.js +1 -2
- package/Filters/Sources/DiskSource.js +1 -2
- package/Filters/Sources/EllipseArcSource.js +1 -2
- package/Filters/Sources/FrustumSource.js +1 -2
- package/Filters/Sources/ImageGridSource.js +1 -2
- package/Filters/Sources/LineSource.js +1 -2
- package/Filters/Sources/PlaneSource.js +21 -22
- package/Filters/Sources/PlatonicSolidSource.js +1 -2
- package/Filters/Sources/PointSource.js +1 -2
- package/Filters/Sources/RTAnalyticSource.js +1 -2
- package/Filters/Sources/SLICSource.js +1 -2
- package/Filters/Sources/SphereSource.js +1 -2
- package/Filters/Sources/TorusSource.js +1 -2
- package/Filters/Sources/ViewFinderSource.js +1 -2
- package/Filters/Texture/TextureMapToPlane.js +1 -2
- package/Filters/Texture/TextureMapToSphere.js +1 -2
- package/IO/Core/BinaryHelper.js +1 -2
- package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +4 -5
- package/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +7 -16
- package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +5 -9
- package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js +7 -16
- package/IO/Core/DataAccessHelper.js +1 -3
- package/IO/Core/HttpDataSetReader.js +10 -16
- package/IO/Core/HttpDataSetSeriesReader.js +4 -8
- package/IO/Core/HttpSceneLoader.js +3 -8
- package/IO/Core/ImageStream/DefaultProtocol.js +12 -42
- package/IO/Core/ImageStream/ViewStream.js +5 -8
- package/IO/Core/ImageStream.js +4 -9
- package/IO/Core/Serializer/ArraySerializer.js +1 -2
- package/IO/Core/WSLinkClient.js +14 -25
- package/IO/Core/ZipMultiDataSetReader.js +5 -12
- package/IO/Core/ZipMultiDataSetWriter.js +1 -2
- package/IO/Geometry/DracoReader.js +6 -10
- package/IO/Geometry/GLTFImporter/Animations.js +9 -14
- package/IO/Geometry/GLTFImporter/Constants.js +0 -1
- package/IO/Geometry/GLTFImporter/Parser.js +1 -3
- package/IO/Geometry/GLTFImporter/Reader.js +2 -5
- package/IO/Geometry/GLTFImporter.js +7 -12
- package/IO/Geometry/IFCImporter.d.ts +1 -1
- package/IO/Geometry/IFCImporter.js +6 -10
- package/IO/Geometry/PLYReader.js +6 -11
- package/IO/Geometry/PLYWriter.js +1 -2
- package/IO/Geometry/STLReader.js +6 -11
- package/IO/Geometry/STLWriter.js +2 -6
- package/IO/Image/HDRReader/Utils.js +1 -2
- package/IO/Image/HDRReader.js +7 -10
- package/IO/Image/TGAReader.js +7 -9
- package/IO/Image/TIFFReader.js +7 -10
- package/IO/Legacy/LegacyAsciiParser.js +1 -2
- package/IO/Legacy/PolyDataReader.js +5 -7
- package/IO/Misc/ElevationReader.js +1 -2
- package/IO/Misc/GCodeReader.js +6 -11
- package/IO/Misc/HttpDataSetLODsLoader.js +1 -2
- package/IO/Misc/ITKImageReader.js +6 -13
- package/IO/Misc/ITKPolyDataReader.js +6 -13
- package/IO/Misc/JSONNucleoReader.js +1 -2
- package/IO/Misc/JSONReader.js +4 -10
- package/IO/Misc/MTLReader.js +2 -4
- package/IO/Misc/OBJReader.js +4 -10
- package/IO/Misc/OBJWriter.js +1 -2
- package/IO/Misc/PDBReader.js +1 -2
- package/IO/Misc/SkyboxReader.js +5 -10
- package/IO/XML/XMLImageDataReader.js +1 -2
- package/IO/XML/XMLImageDataWriter.js +1 -2
- package/IO/XML/XMLPolyDataReader.js +1 -2
- package/IO/XML/XMLPolyDataWriter.js +1 -2
- package/IO/XML/XMLReader.js +4 -10
- package/IO/XML/XMLWriter.js +2 -4
- package/Imaging/Core/AbstractImageInterpolator.js +1 -3
- package/Imaging/Core/ImageInterpolator.js +1 -3
- package/Imaging/Core/ImagePointDataIterator.js +2 -6
- package/Imaging/Core/ImageReslice.js +1 -3
- package/Imaging/Hybrid/SampleFunction.js +1 -2
- package/Interaction/Animations/TimeStepBasedAnimationHandler.js +1 -2
- package/Interaction/Manipulators/3DControllerModelSelectorManipulator/index.js +1 -2
- package/Interaction/Manipulators/CompositeCameraManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeGestureManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeKeyboardManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeMouseManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeVRManipulator.js +1 -2
- package/Interaction/Manipulators/GestureCameraManipulator.js +1 -2
- package/Interaction/Manipulators/KeyboardCameraManipulator.js +1 -2
- package/Interaction/Manipulators/MouseBoxSelectorManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraSliceManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballFirstPersonManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulatorAutoCenter.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseRangeManipulator.js +4 -11
- package/Interaction/Manipulators/VRButtonPanManipulator.js +1 -2
- package/Interaction/Misc/DeviceOrientationToCamera.js +1 -2
- package/Interaction/Style/InteractorStyleHMDXR.js +1 -2
- package/Interaction/Style/InteractorStyleImage.js +1 -2
- package/Interaction/Style/InteractorStyleMPRSlice.js +2 -6
- package/Interaction/Style/InteractorStyleManipulator.js +1 -2
- package/Interaction/Style/InteractorStyleRemoteMouse.js +1 -2
- package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -3
- package/Interaction/Style/InteractorStyleUnicam.js +1 -2
- package/Interaction/UI/CornerAnnotation.js +2 -4
- package/Interaction/UI/FPSMonitor.js +3 -9
- package/Interaction/UI/Slider.js +1 -3
- package/Interaction/UI/VolumeController.js +2 -5
- package/Interaction/Widgets/OrientationMarkerWidget.js +1 -2
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +42 -59
- package/Proxy/Animation/AbstractAnimationProxy.js +1 -2
- package/Proxy/Animation/AnimationProxyManager.js +1 -2
- package/Proxy/Animation/TimeStepBasedAnimationHandlerProxy.js +1 -2
- package/Proxy/Core/AbstractRepresentationProxy.js +3 -6
- package/Proxy/Core/LookupTableProxy.js +1 -3
- package/Proxy/Core/PiecewiseFunctionProxy.js +3 -11
- package/Proxy/Core/ProxyManager/state.js +171 -182
- package/Proxy/Core/ProxyManager/view.js +3 -6
- package/Proxy/Core/ProxyManager.js +1 -2
- package/Proxy/Core/SourceProxy.js +2 -6
- package/Proxy/Core/View2DProxy.js +2 -4
- package/Proxy/Core/ViewProxy.js +20 -37
- package/Proxy/Representations/GeometryRepresentationProxy.js +1 -2
- package/Proxy/Representations/GlyphRepresentationProxy.js +1 -2
- package/Proxy/Representations/MoleculeRepresentationProxy.js +1 -2
- package/Proxy/Representations/ResliceRepresentationProxy.js +3 -8
- package/Proxy/Representations/SkyboxRepresentationProxy.js +1 -2
- package/Proxy/Representations/SliceRepresentationProxy.js +3 -8
- package/Proxy/Representations/SlicedGeometryRepresentationProxy.js +3 -6
- package/Proxy/Representations/VolumeRepresentationProxy.js +9 -17
- package/Rendering/Core/AbstractImageMapper.js +1 -2
- package/Rendering/Core/AbstractMapper.js +1 -2
- package/Rendering/Core/AbstractMapper3D.js +1 -2
- package/Rendering/Core/AbstractPicker.js +1 -2
- package/Rendering/Core/Actor.js +1 -2
- package/Rendering/Core/Actor2D.js +1 -2
- package/Rendering/Core/AnnotatedCubeActor.js +2 -4
- package/Rendering/Core/AxesActor.js +2 -4
- package/Rendering/Core/Camera.js +2 -6
- package/Rendering/Core/CellPicker.js +1 -3
- package/Rendering/Core/ColorTransferFunction/CssFilters.js +8 -16
- package/Rendering/Core/ColorTransferFunction.js +4 -10
- package/Rendering/Core/Coordinate.js +2 -6
- package/Rendering/Core/CubeAxesActor.js +4 -6
- package/Rendering/Core/Follower.js +1 -2
- package/Rendering/Core/Glyph3DMapper.js +1 -2
- package/Rendering/Core/HardwareSelector.js +1 -2
- package/Rendering/Core/ImageArrayMapper.js +6 -13
- package/Rendering/Core/ImageCPRMapper.js +1 -2
- package/Rendering/Core/ImageMapper.d.ts +2 -0
- package/Rendering/Core/ImageMapper.js +2 -5
- package/Rendering/Core/ImageProperty.js +9 -28
- package/Rendering/Core/ImageResliceMapper.js +1 -2
- package/Rendering/Core/ImageSlice.js +1 -2
- package/Rendering/Core/InteractorObserver.js +1 -2
- package/Rendering/Core/InteractorStyle.js +1 -2
- package/Rendering/Core/Light.js +1 -2
- package/Rendering/Core/Mapper/Static.js +1 -2
- package/Rendering/Core/Mapper.js +1 -6
- package/Rendering/Core/Mapper2D.js +1 -3
- package/Rendering/Core/Picker.js +1 -2
- package/Rendering/Core/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/Core/PointPicker.js +1 -2
- package/Rendering/Core/Prop.js +1 -2
- package/Rendering/Core/Prop3D.js +3 -8
- package/Rendering/Core/Property.js +1 -2
- package/Rendering/Core/Property2D.js +1 -2
- package/Rendering/Core/RenderWindow.js +4 -11
- package/Rendering/Core/RenderWindowInteractor/Constants.js +0 -1
- package/Rendering/Core/RenderWindowInteractor.js +7 -12
- package/Rendering/Core/Renderer.js +3 -6
- package/Rendering/Core/ScalarBarActor.js +4 -6
- package/Rendering/Core/Skybox.js +1 -2
- package/Rendering/Core/SphereMapper.js +1 -2
- package/Rendering/Core/StickMapper.js +1 -2
- package/Rendering/Core/SurfaceLICInterface.js +1 -2
- package/Rendering/Core/SurfaceLICMapper.js +1 -2
- package/Rendering/Core/TextActor.js +1 -2
- package/Rendering/Core/TextProperty.js +1 -2
- package/Rendering/Core/Texture.js +1 -2
- package/Rendering/Core/VectorText/Utils.js +4 -8
- package/Rendering/Core/VectorText.js +1 -3
- package/Rendering/Core/Viewport.js +2 -4
- package/Rendering/Core/Volume.js +1 -2
- package/Rendering/Core/VolumeMapper.js +1 -2
- package/Rendering/Core/VolumeProperty.js +9 -22
- package/Rendering/Misc/CanvasView.js +1 -2
- package/Rendering/Misc/FullScreenRenderWindow.js +1 -2
- package/Rendering/Misc/GenericRenderWindow.js +1 -2
- package/Rendering/Misc/RemoteView.js +1 -2
- package/Rendering/Misc/RenderWindowWithControlBar.js +1 -2
- package/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager/CameraSynchronizer.js +1 -3
- package/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager.js +5 -6
- package/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.js +24 -43
- package/Rendering/Misc/SynchronizableRenderWindow.js +3 -6
- package/Rendering/Misc/TextureLODsDownloader.js +1 -2
- package/Rendering/OpenGL/Actor.js +1 -2
- package/Rendering/OpenGL/Actor2D.js +1 -2
- package/Rendering/OpenGL/BufferObject.js +1 -3
- package/Rendering/OpenGL/Camera.js +1 -2
- package/Rendering/OpenGL/CellArrayBufferObject.js +2 -4
- package/Rendering/OpenGL/Convolution2DPass.js +2 -3
- package/Rendering/OpenGL/CubeAxesActor.js +1 -2
- package/Rendering/OpenGL/ForwardPass.js +2 -4
- package/Rendering/OpenGL/Framebuffer.js +4 -8
- package/Rendering/OpenGL/Glyph3DMapper.js +1 -2
- package/Rendering/OpenGL/HardwareSelector.js +21 -27
- package/Rendering/OpenGL/Helper.js +1 -2
- package/Rendering/OpenGL/ImageCPRMapper.js +1 -2
- package/Rendering/OpenGL/ImageMapper.js +1 -2
- package/Rendering/OpenGL/ImageResliceMapper.js +10 -16
- package/Rendering/OpenGL/ImageSlice.js +1 -2
- package/Rendering/OpenGL/OrderIndependentTranslucentPass.js +1 -2
- package/Rendering/OpenGL/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/OpenGL/PolyDataMapper.js +5 -4
- package/Rendering/OpenGL/PolyDataMapper2D.js +1 -2
- package/Rendering/OpenGL/RadialDistortionPass.js +2 -3
- package/Rendering/OpenGL/RenderWindow.js +36 -53
- package/Rendering/OpenGL/Renderer.js +1 -3
- package/Rendering/OpenGL/ReplacementShaderMapper.js +2 -2
- package/Rendering/OpenGL/ScalarBarActor.js +1 -2
- package/Rendering/OpenGL/Shader.js +1 -2
- package/Rendering/OpenGL/ShaderCache.js +1 -2
- package/Rendering/OpenGL/ShaderProgram.js +4 -14
- package/Rendering/OpenGL/Skybox.js +1 -2
- package/Rendering/OpenGL/SphereMapper.js +1 -2
- package/Rendering/OpenGL/StickMapper.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js +6 -12
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js +4 -12
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js +2 -4
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js +1 -2
- package/Rendering/OpenGL/Texture.js +91 -113
- package/Rendering/OpenGL/TextureUnitManager.js +1 -2
- package/Rendering/OpenGL/VertexArrayObject.js +1 -2
- package/Rendering/OpenGL/ViewNodeFactory.js +1 -2
- package/Rendering/OpenGL/Volume.js +1 -2
- package/Rendering/OpenGL/VolumeMapper.js +11 -17
- package/Rendering/SceneGraph/RenderPass.js +2 -4
- package/Rendering/SceneGraph/RenderWindowViewNode.js +1 -2
- package/Rendering/SceneGraph/ViewNode.js +3 -6
- package/Rendering/SceneGraph/ViewNodeFactory.js +1 -2
- package/Rendering/WebGPU/Actor.js +1 -2
- package/Rendering/WebGPU/Actor2D.js +1 -2
- package/Rendering/WebGPU/BindGroup.js +1 -2
- package/Rendering/WebGPU/Buffer.js +2 -5
- package/Rendering/WebGPU/BufferManager.js +1 -2
- package/Rendering/WebGPU/Camera.js +1 -2
- package/Rendering/WebGPU/CellArrayMapper.js +3 -6
- package/Rendering/WebGPU/CubeAxesActor.js +1 -2
- package/Rendering/WebGPU/Device.js +2 -6
- package/Rendering/WebGPU/ForwardPass.js +2 -4
- package/Rendering/WebGPU/FullScreenQuad.js +1 -2
- package/Rendering/WebGPU/Glyph3DMapper.js +2 -4
- package/Rendering/WebGPU/HardwareSelectionPass.js +1 -2
- package/Rendering/WebGPU/HardwareSelector.js +1 -2
- package/Rendering/WebGPU/ImageMapper.js +1 -2
- package/Rendering/WebGPU/ImageSlice.js +1 -2
- package/Rendering/WebGPU/IndexBuffer.js +1 -2
- package/Rendering/WebGPU/OpaquePass.js +1 -2
- package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +1 -2
- package/Rendering/WebGPU/Pipeline.js +1 -2
- package/Rendering/WebGPU/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/WebGPU/PolyDataMapper.js +1 -2
- package/Rendering/WebGPU/PolyDataMapper2D.js +1 -2
- package/Rendering/WebGPU/RenderEncoder.js +2 -5
- package/Rendering/WebGPU/RenderWindow.js +15 -25
- package/Rendering/WebGPU/Renderer.js +1 -2
- package/Rendering/WebGPU/Sampler.js +2 -4
- package/Rendering/WebGPU/ScalarBarActor.js +1 -2
- package/Rendering/WebGPU/ShaderCache.js +2 -4
- package/Rendering/WebGPU/ShaderDescription.js +2 -4
- package/Rendering/WebGPU/ShaderModule.js +1 -2
- package/Rendering/WebGPU/SimpleMapper.js +1 -3
- package/Rendering/WebGPU/SphereMapper.js +1 -2
- package/Rendering/WebGPU/StickMapper.js +1 -2
- package/Rendering/WebGPU/StorageBuffer.js +1 -2
- package/Rendering/WebGPU/Texture.js +3 -7
- package/Rendering/WebGPU/TextureManager.js +2 -6
- package/Rendering/WebGPU/TextureView.js +1 -3
- package/Rendering/WebGPU/UniformBuffer.js +1 -2
- package/Rendering/WebGPU/VertexInput.js +2 -4
- package/Rendering/WebGPU/ViewNodeFactory.js +1 -2
- package/Rendering/WebGPU/Volume.js +1 -2
- package/Rendering/WebGPU/VolumePass.js +1 -2
- package/Rendering/WebGPU/VolumePassFSQ.js +1 -2
- package/Rendering/WebXR/RenderWindowHelper.js +2 -6
- package/Widgets/Core/AbstractWidget.js +6 -10
- package/Widgets/Core/AbstractWidgetFactory.js +17 -22
- package/Widgets/Core/StateBuilder/boundsMixin.js +1 -2
- package/Widgets/Core/StateBuilder/color3Mixin.js +1 -2
- package/Widgets/Core/StateBuilder/colorMixin.js +1 -2
- package/Widgets/Core/StateBuilder/cornerMixin.js +1 -2
- package/Widgets/Core/StateBuilder/directionMixin.js +1 -2
- package/Widgets/Core/StateBuilder/manipulatorMixin.js +1 -2
- package/Widgets/Core/StateBuilder/nameMixin.js +1 -2
- package/Widgets/Core/StateBuilder/orientationMixin.js +1 -2
- package/Widgets/Core/StateBuilder/originMixin.js +1 -2
- package/Widgets/Core/StateBuilder/scale1Mixin.js +1 -2
- package/Widgets/Core/StateBuilder/scale3Mixin.js +1 -2
- package/Widgets/Core/StateBuilder/shapeMixin.js +1 -2
- package/Widgets/Core/StateBuilder/textMixin.js +1 -2
- package/Widgets/Core/StateBuilder/visibleMixin.js +1 -2
- package/Widgets/Core/StateBuilder.js +23 -33
- package/Widgets/Core/WidgetManager/Constants.js +0 -1
- package/Widgets/Core/WidgetManager.js +25 -30
- package/Widgets/Core/WidgetState.js +2 -4
- package/Widgets/Manipulators/AbstractManipulator.js +1 -2
- package/Widgets/Manipulators/CPRManipulator.js +1 -2
- package/Widgets/Manipulators/LineManipulator.js +1 -2
- package/Widgets/Manipulators/PickerManipulator.js +1 -2
- package/Widgets/Manipulators/PlaneManipulator.js +1 -2
- package/Widgets/Manipulators/TrackballManipulator.js +1 -2
- package/Widgets/Representations/ArrowHandleRepresentation.js +2 -6
- package/Widgets/Representations/CircleContextRepresentation.js +1 -2
- package/Widgets/Representations/ContextRepresentation.js +1 -2
- package/Widgets/Representations/ConvexFaceContextRepresentation.js +2 -6
- package/Widgets/Representations/CroppingOutlineRepresentation.js +1 -2
- package/Widgets/Representations/CubeHandleRepresentation.js +1 -2
- package/Widgets/Representations/GlyphRepresentation.js +3 -11
- package/Widgets/Representations/HandleRepresentation.js +1 -2
- package/Widgets/Representations/ImplicitPlaneRepresentation.js +1 -2
- package/Widgets/Representations/LineHandleRepresentation.js +1 -2
- package/Widgets/Representations/OutlineContextRepresentation.js +1 -2
- package/Widgets/Representations/PolyLineRepresentation.js +2 -4
- package/Widgets/Representations/RectangleContextRepresentation.js +1 -2
- package/Widgets/Representations/RotateTransformHandleRepresentation.js +1 -2
- package/Widgets/Representations/ScaleTransformHandleRepresentation.js +1 -2
- package/Widgets/Representations/SphereContextRepresentation.js +1 -2
- package/Widgets/Representations/SphereHandleRepresentation.js +1 -2
- package/Widgets/Representations/SplineContextRepresentation.js +2 -6
- package/Widgets/Representations/TranslateTransformHandleRepresentation/TransformHandleSource.js +1 -2
- package/Widgets/Representations/TranslateTransformHandleRepresentation.js +1 -2
- package/Widgets/Representations/WidgetRepresentation.js +6 -20
- package/Widgets/Widgets3D/AngleWidget.js +1 -2
- package/Widgets/Widgets3D/EllipseWidget.js +1 -2
- package/Widgets/Widgets3D/ImageCroppingWidget.js +1 -2
- package/Widgets/Widgets3D/ImplicitPlaneWidget.js +1 -3
- package/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.js +6 -7
- package/Widgets/Widgets3D/InteractiveOrientationWidget/state.js +0 -1
- package/Widgets/Widgets3D/InteractiveOrientationWidget.js +1 -2
- package/Widgets/Widgets3D/LabelWidget.js +1 -2
- package/Widgets/Widgets3D/LineWidget/behavior.js +1 -2
- package/Widgets/Widgets3D/LineWidget/helpers.js +1 -2
- package/Widgets/Widgets3D/LineWidget.js +1 -2
- package/Widgets/Widgets3D/PaintWidget.js +1 -2
- package/Widgets/Widgets3D/PolyLineWidget/behavior.js +3 -4
- package/Widgets/Widgets3D/PolyLineWidget.js +1 -2
- package/Widgets/Widgets3D/RectangleWidget.js +1 -2
- package/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +0 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +0 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +2 -3
- package/Widgets/Widgets3D/ResliceCursorWidget/state.js +1 -3
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -3
- package/Widgets/Widgets3D/SeedWidget/behavior.js +15 -14
- package/Widgets/Widgets3D/SeedWidget.d.ts +18 -1
- package/Widgets/Widgets3D/SeedWidget.js +1 -2
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +7 -10
- package/Widgets/Widgets3D/ShapeWidget.js +1 -2
- package/Widgets/Widgets3D/SphereWidget.js +1 -2
- package/Widgets/Widgets3D/SplineWidget/behavior.js +13 -13
- package/Widgets/Widgets3D/SplineWidget.js +1 -2
- package/Widgets/Widgets3D/TransformControlsWidget.js +1 -2
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +20 -25
- package/macros2.js +46 -114
- package/package.json +24 -16
|
@@ -15,12 +15,21 @@ function widgetBehavior(publicAPI, model) {
|
|
|
15
15
|
const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator;
|
|
16
16
|
return manipulator.handleEvent(e, model._apiSpecificRenderWindow).worldCoords;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
// Update the handle's center. Example:
|
|
20
|
-
// handle.setCenter([1,2,3]);
|
|
21
18
|
publicAPI.setCenter = newCenter => {
|
|
22
19
|
moveHandle.setOrigin(newCenter);
|
|
20
|
+
model._interactor.render();
|
|
21
|
+
};
|
|
22
|
+
publicAPI.startInteract = () => {
|
|
23
23
|
model._widgetManager.enablePicking();
|
|
24
|
+
publicAPI.grabFocus();
|
|
25
|
+
model._apiSpecificRenderWindow.setCursor('grabbing');
|
|
26
|
+
publicAPI.invokeStartInteractionEvent();
|
|
27
|
+
};
|
|
28
|
+
publicAPI.endInteract = () => {
|
|
29
|
+
publicAPI.loseFocus();
|
|
30
|
+
model._apiSpecificRenderWindow.setCursor('pointer');
|
|
31
|
+
model.widgetState.deactivate();
|
|
32
|
+
publicAPI.invokeEndInteractionEvent();
|
|
24
33
|
};
|
|
25
34
|
publicAPI.handleLeftButtonPress = e => {
|
|
26
35
|
if (!isValidHandle(model.activeState)) {
|
|
@@ -30,12 +39,10 @@ function widgetBehavior(publicAPI, model) {
|
|
|
30
39
|
const worldCoords = currentWorldCoords(e);
|
|
31
40
|
if (model.activeState === moveHandle) {
|
|
32
41
|
if (!moveHandle.getOrigin() && worldCoords) {
|
|
33
|
-
|
|
42
|
+
publicAPI.setCenter(worldCoords);
|
|
34
43
|
}
|
|
35
44
|
}
|
|
36
|
-
|
|
37
|
-
model._apiSpecificRenderWindow.setCursor('grabbing');
|
|
38
|
-
publicAPI.invokeStartInteractionEvent();
|
|
45
|
+
publicAPI.startInteract();
|
|
39
46
|
return macro.EVENT_ABORT;
|
|
40
47
|
};
|
|
41
48
|
publicAPI.handleLeftButtonRelease = e => {
|
|
@@ -44,13 +51,8 @@ function widgetBehavior(publicAPI, model) {
|
|
|
44
51
|
return macro.VOID;
|
|
45
52
|
}
|
|
46
53
|
if (isPlaced()) {
|
|
47
|
-
|
|
48
|
-
model._apiSpecificRenderWindow.setCursor('pointer');
|
|
49
|
-
model._isDragging = false;
|
|
50
|
-
model.activeState = null;
|
|
51
|
-
model.widgetState.deactivate();
|
|
54
|
+
publicAPI.endInteract();
|
|
52
55
|
}
|
|
53
|
-
publicAPI.invokeEndInteractionEvent();
|
|
54
56
|
return macro.EVENT_ABORT;
|
|
55
57
|
};
|
|
56
58
|
publicAPI.handleMouseMove = e => {
|
|
@@ -67,7 +69,6 @@ function widgetBehavior(publicAPI, model) {
|
|
|
67
69
|
moveHandle.setVisible(true);
|
|
68
70
|
model._isDragging = true;
|
|
69
71
|
model.activeState = moveHandle;
|
|
70
|
-
model._interactor.render();
|
|
71
72
|
};
|
|
72
73
|
publicAPI.loseFocus = () => {
|
|
73
74
|
model._isDragging = false;
|
|
@@ -20,9 +20,26 @@ export interface vtkSeedWidgetState {
|
|
|
20
20
|
getMoveHandle(): ISeedWidgetHandleState;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
//
|
|
23
|
+
// Object returned by vtkWidgetManager.addWidget().
|
|
24
|
+
// One instance per view.
|
|
24
25
|
export interface vtkSeedWidgetHandle {
|
|
26
|
+
/**
|
|
27
|
+
* Place the seed position.
|
|
28
|
+
* @param center Vector3 3D position
|
|
29
|
+
*/
|
|
25
30
|
setCenter(center: Vector3): void;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Turn the seed widget as interactive.
|
|
34
|
+
* @see vtkSeedWidgetHandle.endInteract
|
|
35
|
+
*/
|
|
36
|
+
startInteract(): void;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Stop the seed widget to be interactive.
|
|
40
|
+
* @see vtkSeedWidgetHandle.endInteract
|
|
41
|
+
*/
|
|
42
|
+
endInteract(): void;
|
|
26
43
|
}
|
|
27
44
|
|
|
28
45
|
export interface vtkSeedWidget {
|
|
@@ -27,8 +27,7 @@ const defaultValues = initialValues => ({
|
|
|
27
27
|
widgetState: stateGenerator(),
|
|
28
28
|
...initialValues
|
|
29
29
|
});
|
|
30
|
-
function extend(publicAPI, model) {
|
|
31
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
30
|
+
function extend(publicAPI, model, initialValues = {}) {
|
|
32
31
|
Object.assign(model, defaultValues(initialValues));
|
|
33
32
|
vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues);
|
|
34
33
|
macro.setGet(publicAPI, model, ['manipulator', 'widgetState']);
|
|
@@ -184,8 +184,7 @@ function widgetBehavior(publicAPI, model) {
|
|
|
184
184
|
}
|
|
185
185
|
return positionVector;
|
|
186
186
|
};
|
|
187
|
-
const computeTextPosition =
|
|
188
|
-
let worldMargin = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
187
|
+
const computeTextPosition = (worldBounds, textPosition, worldMargin = 0) => {
|
|
189
188
|
const viewPlaneOrigin = vtkBoundingBox.getCenter(worldBounds);
|
|
190
189
|
const viewPlaneNormal = model._renderer.getActiveCamera().getDirectionOfProjection();
|
|
191
190
|
const viewUp = model._renderer.getActiveCamera().getViewUp();
|
|
@@ -409,10 +408,9 @@ function widgetBehavior(publicAPI, model) {
|
|
|
409
408
|
// Register key presses/releases
|
|
410
409
|
// --------------------------------------------------------------------------
|
|
411
410
|
|
|
412
|
-
publicAPI.handleKeyDown =
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
} = _ref;
|
|
411
|
+
publicAPI.handleKeyDown = ({
|
|
412
|
+
key
|
|
413
|
+
}) => {
|
|
416
414
|
if (key === 'Escape') {
|
|
417
415
|
if (model.hasFocus) {
|
|
418
416
|
publicAPI.reset();
|
|
@@ -429,10 +427,9 @@ function widgetBehavior(publicAPI, model) {
|
|
|
429
427
|
}
|
|
430
428
|
}
|
|
431
429
|
};
|
|
432
|
-
publicAPI.handleKeyUp =
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
} = _ref2;
|
|
430
|
+
publicAPI.handleKeyUp = ({
|
|
431
|
+
key
|
|
432
|
+
}) => {
|
|
436
433
|
model.keysDown[key] = false;
|
|
437
434
|
if (model.hasFocus) {
|
|
438
435
|
if (model.point1) {
|
|
@@ -30,8 +30,7 @@ function defaultValues(initialValues) {
|
|
|
30
30
|
|
|
31
31
|
// ----------------------------------------------------------------------------
|
|
32
32
|
|
|
33
|
-
function extend(publicAPI, model) {
|
|
34
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
33
|
+
function extend(publicAPI, model, initialValues = {}) {
|
|
35
34
|
Object.assign(model, defaultValues(initialValues));
|
|
36
35
|
vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues);
|
|
37
36
|
macro.setGet(publicAPI, model, ['manipulator', 'modifierBehavior', 'resetAfterPointPlacement']);
|
|
@@ -54,8 +54,7 @@ const defaultValues = initialValues => ({
|
|
|
54
54
|
widgetState: stateGenerator(),
|
|
55
55
|
...initialValues
|
|
56
56
|
});
|
|
57
|
-
function extend(publicAPI, model) {
|
|
58
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
57
|
+
function extend(publicAPI, model, initialValues = {}) {
|
|
59
58
|
Object.assign(model, defaultValues(initialValues));
|
|
60
59
|
vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues);
|
|
61
60
|
macro.setGet(publicAPI, model, ['manipulator', 'widgetState']);
|
|
@@ -45,11 +45,10 @@ function widgetBehavior(publicAPI, model) {
|
|
|
45
45
|
const getHoveredHandle = () => {
|
|
46
46
|
const handles = model.widgetState.getHandleList();
|
|
47
47
|
const scale = model.moveHandle.getScale1() * vec3.distance(model._apiSpecificRenderWindow.displayToWorld(0, 0, 0, model._renderer), model._apiSpecificRenderWindow.displayToWorld(1, 0, 0, model._renderer));
|
|
48
|
-
return handles.reduce((
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} = _ref;
|
|
48
|
+
return handles.reduce(({
|
|
49
|
+
closestHandle,
|
|
50
|
+
closestDistance
|
|
51
|
+
}, handle) => {
|
|
53
52
|
if (handle !== model.moveHandle && model.moveHandle.getOrigin() && handle.getOrigin()) {
|
|
54
53
|
const distance = vec3.squaredDistance(model.moveHandle.getOrigin(), handle.getOrigin());
|
|
55
54
|
if (distance < closestDistance) {
|
|
@@ -265,6 +264,7 @@ function widgetBehavior(publicAPI, model) {
|
|
|
265
264
|
if (model.freeHand && model.activeState === model.moveHandle) {
|
|
266
265
|
addPoint();
|
|
267
266
|
}
|
|
267
|
+
return macro.EVENT_ABORT;
|
|
268
268
|
}
|
|
269
269
|
return model.hasFocus ? macro.EVENT_ABORT : macro.VOID;
|
|
270
270
|
};
|
|
@@ -273,10 +273,9 @@ function widgetBehavior(publicAPI, model) {
|
|
|
273
273
|
// Mofifier keys
|
|
274
274
|
// --------------------------------------------------------------------------
|
|
275
275
|
|
|
276
|
-
publicAPI.handleKeyDown =
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
} = _ref2;
|
|
276
|
+
publicAPI.handleKeyDown = ({
|
|
277
|
+
key
|
|
278
|
+
}) => {
|
|
280
279
|
model.keysDown[key] = true;
|
|
281
280
|
if (!model.hasFocus) {
|
|
282
281
|
return;
|
|
@@ -305,10 +304,9 @@ function widgetBehavior(publicAPI, model) {
|
|
|
305
304
|
|
|
306
305
|
// --------------------------------------------------------------------------
|
|
307
306
|
|
|
308
|
-
publicAPI.handleKeyUp =
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
} = _ref3;
|
|
307
|
+
publicAPI.handleKeyUp = ({
|
|
308
|
+
key
|
|
309
|
+
}) => {
|
|
312
310
|
model.keysDown[key] = false;
|
|
313
311
|
};
|
|
314
312
|
|
|
@@ -333,9 +331,11 @@ function widgetBehavior(publicAPI, model) {
|
|
|
333
331
|
if (model.hasFocus) {
|
|
334
332
|
model._interactor.cancelAnimation(publicAPI);
|
|
335
333
|
}
|
|
334
|
+
model.lastHandle?.setVisible(true);
|
|
336
335
|
model.widgetState.deactivate();
|
|
337
336
|
model.moveHandle.deactivate();
|
|
338
337
|
model.moveHandle.setVisible(false);
|
|
338
|
+
model.moveHandle.setOrigin(null);
|
|
339
339
|
model.activeState = null;
|
|
340
340
|
model._interactor.render();
|
|
341
341
|
model.hasFocus = false;
|
|
@@ -75,8 +75,7 @@ const defaultValues = initialValues => ({
|
|
|
75
75
|
|
|
76
76
|
// ----------------------------------------------------------------------------
|
|
77
77
|
|
|
78
|
-
function extend(publicAPI, model) {
|
|
79
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
78
|
+
function extend(publicAPI, model, initialValues = {}) {
|
|
80
79
|
Object.assign(model, defaultValues(initialValues));
|
|
81
80
|
vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues);
|
|
82
81
|
macro.setGet(publicAPI, model, ['manipulator', 'freehandMinDistance', 'allowFreehand', 'resolution', 'defaultCursor', 'handleSizeInPixels', 'resetAfterPointPlacement']);
|
|
@@ -123,8 +123,7 @@ const DEFAULT_VALUES = {
|
|
|
123
123
|
|
|
124
124
|
// ----------------------------------------------------------------------------
|
|
125
125
|
|
|
126
|
-
function extend(publicAPI, model) {
|
|
127
|
-
let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
126
|
+
function extend(publicAPI, model, initialValues = {}) {
|
|
128
127
|
Object.assign(model, DEFAULT_VALUES, initialValues);
|
|
129
128
|
vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues);
|
|
130
129
|
macro.setGet(publicAPI, model, ['mode']);
|
|
@@ -398,11 +398,10 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
398
398
|
|
|
399
399
|
// --------------------------------------------------------------------------
|
|
400
400
|
|
|
401
|
-
function handlePaintRectangle(
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
} = _ref;
|
|
401
|
+
function handlePaintRectangle({
|
|
402
|
+
point1,
|
|
403
|
+
point2
|
|
404
|
+
}) {
|
|
406
405
|
const [x1, y1, z1] = point1;
|
|
407
406
|
const [x2, y2, z2] = point2;
|
|
408
407
|
const xstart = Math.max(Math.min(x1, x2), 0);
|
|
@@ -425,11 +424,10 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
425
424
|
|
|
426
425
|
// --------------------------------------------------------------------------
|
|
427
426
|
// center and scale3 are in IJK coordinates
|
|
428
|
-
function handlePaintEllipse(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
} = _ref2;
|
|
427
|
+
function handlePaintEllipse({
|
|
428
|
+
center,
|
|
429
|
+
scale3
|
|
430
|
+
}) {
|
|
433
431
|
const radius3 = [...scale3];
|
|
434
432
|
const indexCenter = center.map(val => Math.round(val));
|
|
435
433
|
let sliceAxis = -1;
|
|
@@ -480,11 +478,10 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
480
478
|
|
|
481
479
|
// --------------------------------------------------------------------------
|
|
482
480
|
|
|
483
|
-
function handlePaint(
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
} = _ref3;
|
|
481
|
+
function handlePaint({
|
|
482
|
+
point,
|
|
483
|
+
radius
|
|
484
|
+
}) {
|
|
488
485
|
if (!globals.prevPoint) {
|
|
489
486
|
globals.prevPoint = point;
|
|
490
487
|
}
|
|
@@ -521,10 +518,9 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
521
518
|
|
|
522
519
|
// --------------------------------------------------------------------------
|
|
523
520
|
|
|
524
|
-
function handlePaintTriangles(
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
} = _ref4;
|
|
521
|
+
function handlePaintTriangles({
|
|
522
|
+
triangleList
|
|
523
|
+
}) {
|
|
528
524
|
// debugger;
|
|
529
525
|
|
|
530
526
|
const triangleCount = Math.floor(triangleList.length / 9);
|
|
@@ -563,12 +559,11 @@ var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader
|
|
|
563
559
|
|
|
564
560
|
// --------------------------------------------------------------------------
|
|
565
561
|
|
|
566
|
-
registerWebworker().operation('start',
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
} = _ref5;
|
|
562
|
+
registerWebworker().operation('start', ({
|
|
563
|
+
bufferType,
|
|
564
|
+
dimensions,
|
|
565
|
+
slicingMode
|
|
566
|
+
}) => {
|
|
572
567
|
if (!globals.buffer) {
|
|
573
568
|
const bufferSize = dimensions[0] * dimensions[1] * dimensions[2];
|
|
574
569
|
/* eslint-disable-next-line */
|