@kitware/vtk.js 19.2.13 → 19.3.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/Base64.js +1 -1
- package/Common/Core/CellArray.js +2 -3
- package/Common/Core/ClassHierarchy.js +1 -1
- package/Common/Core/DataArray/Constants.js +1 -2
- package/Common/Core/DataArray.js +3 -4
- package/Common/Core/Endian.js +1 -2
- package/Common/Core/ImageHelper.js +1 -1
- package/Common/Core/LookupTable.js +1 -2
- package/Common/Core/MatrixBuilder.js +1 -1
- package/Common/Core/Points.js +1 -2
- package/Common/Core/PriorityQueue.js +1 -2
- package/Common/Core/ProgressHandler.js +1 -2
- package/Common/Core/ScalarsToColors/Constants.js +1 -2
- package/Common/Core/ScalarsToColors.js +2 -3
- package/Common/Core/StringArray.js +1 -2
- package/Common/Core/URLExtract.js +1 -1
- package/Common/Core/VariantArray.js +1 -2
- package/Common/Core.js +1 -1
- package/Common/DataModel/BoundingBox.js +2 -3
- package/Common/DataModel/Box.js +2 -3
- package/Common/DataModel/CardinalSpline1D.js +1 -2
- package/Common/DataModel/Cell.js +1 -2
- package/Common/DataModel/CellLinks.js +26 -27
- package/Common/DataModel/CellTypes/Constants.js +1 -2
- package/Common/DataModel/CellTypes.js +2 -3
- package/Common/DataModel/Cone.js +1 -2
- package/Common/DataModel/Cylinder.js +2 -3
- package/Common/DataModel/DataSet/Constants.js +1 -2
- package/Common/DataModel/DataSet.js +2 -3
- package/Common/DataModel/DataSetAttributes/Constants.js +1 -2
- package/Common/DataModel/DataSetAttributes/FieldData.js +1 -2
- package/Common/DataModel/DataSetAttributes.js +2 -3
- package/Common/DataModel/ITKHelper.js +1 -1
- package/Common/DataModel/ImageData.js +1 -2
- package/Common/DataModel/ImplicitBoolean/Constants.js +1 -2
- package/Common/DataModel/ImplicitBoolean.js +2 -3
- package/Common/DataModel/KochanekSpline1D.js +1 -2
- package/Common/DataModel/Line/Constants.js +1 -2
- package/Common/DataModel/Line.js +2 -3
- package/Common/DataModel/Molecule.js +1 -2
- package/Common/DataModel/PiecewiseFunction.js +1 -2
- package/Common/DataModel/Plane.js +2 -3
- package/Common/DataModel/PointSet.js +1 -2
- package/Common/DataModel/PolyData/Constants.js +1 -2
- package/Common/DataModel/PolyData.js +1 -2
- package/Common/DataModel/Polygon.js +1 -2
- package/Common/DataModel/SelectionNode/Constants.js +1 -2
- package/Common/DataModel/SelectionNode.js +2 -3
- package/Common/DataModel/Sphere.js +2 -3
- package/Common/DataModel/Spline1D.js +1 -2
- package/Common/DataModel/Spline3D/Constants.js +1 -2
- package/Common/DataModel/Spline3D.js +1 -2
- package/Common/DataModel/StructuredData/Constants.js +1 -2
- package/Common/DataModel/StructuredData.js +2 -3
- package/Common/DataModel/Triangle.js +2 -3
- package/Common/DataModel.js +1 -1
- package/Common/System/MobileVR/headsets.js +1 -1
- package/Common/System/MobileVR.js +1 -1
- package/Common/System/TimerLog.js +1 -2
- package/Common/System.js +1 -1
- package/Common/Transform/LandmarkTransform/Constants.js +1 -2
- package/Common/Transform/LandmarkTransform.js +2 -3
- package/Common/Transform.js +1 -1
- package/Common/index.js +1 -1
- package/Filters/Core/Cutter.js +3 -4
- package/Filters/Core.js +1 -1
- package/Filters/Cornerstone/ImageDataToCornerstoneImage.js +1 -2
- package/Filters/Cornerstone.js +1 -1
- package/Filters/General/AppendPolyData.js +1 -2
- package/Filters/General/Calculator.js +2 -3
- package/Filters/General/ClosedPolyLineToSurfaceFilter.js +1 -2
- package/Filters/General/ImageCropFilter.js +1 -2
- package/Filters/General/ImageMarchingCubes/caseTable.js +1 -1
- package/Filters/General/ImageMarchingCubes.js +1 -2
- package/Filters/General/ImageMarchingSquares/caseTable.js +1 -1
- package/Filters/General/ImageMarchingSquares.js +1 -2
- package/Filters/General/ImageOutlineFilter.js +1 -2
- package/Filters/General/ImageSliceFilter.js +1 -2
- package/Filters/General/ImageStreamline.js +1 -2
- package/Filters/General/LineFilter.js +1 -2
- package/Filters/General/MoleculeToRepresentation.js +1 -2
- package/Filters/General/OutlineFilter.js +1 -2
- package/Filters/General/PaintFilter/PaintFilter.worker.js +3 -3
- package/Filters/General/PaintFilter.js +3 -4
- package/Filters/General/ScalarToRGBA.js +1 -2
- package/Filters/General/TriangleFilter.js +1 -2
- package/Filters/General/TubeFilter/Constants.js +1 -2
- package/Filters/General/TubeFilter.js +1 -2
- package/Filters/General/WarpScalar.js +1 -2
- package/Filters/General/WindowedSincPolyDataFilter.js +43 -44
- package/Filters/General.js +1 -1
- package/Filters/Sources/Arrow2DSource/Constants.js +1 -2
- package/Filters/Sources/Arrow2DSource.js +2 -3
- package/Filters/Sources/ArrowSource.js +1 -2
- package/Filters/Sources/CircleSource.js +2 -3
- package/Filters/Sources/ConcentricCylinderSource.js +1 -2
- package/Filters/Sources/ConeSource.js +1 -2
- package/Filters/Sources/CubeSource.js +1 -2
- package/Filters/Sources/Cursor3D.js +12 -13
- package/Filters/Sources/CylinderSource.js +1 -2
- package/Filters/Sources/ImageGridSource.js +1 -2
- package/Filters/Sources/LineSource.js +1 -2
- package/Filters/Sources/PlaneSource.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/ViewFinderSource.js +1 -2
- package/Filters/Sources.js +1 -1
- package/Filters/Texture/TextureMapToPlane.js +1 -2
- package/Filters/Texture/TextureMapToSphere.js +1 -2
- package/Filters/Texture.js +1 -1
- package/Filters/index.js +1 -1
- package/IO/Core/BinaryHelper.js +1 -1
- package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +3 -3
- package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper.js +1 -2
- package/IO/Core/HttpDataSetReader.js +1 -2
- package/IO/Core/HttpDataSetSeriesReader.js +1 -2
- package/IO/Core/HttpSceneLoader.js +2 -3
- package/IO/Core/ImageStream/DefaultProtocol.js +1 -1
- package/IO/Core/ImageStream/ViewStream.js +1 -2
- package/IO/Core/ImageStream.js +1 -2
- package/IO/Core/ResourceLoader.js +1 -2
- package/IO/Core/Serializer/ArraySerializer.js +1 -2
- package/IO/Core/Serializer/FieldDataSerializer.js +1 -1
- package/IO/Core/Serializer/ImageDataSerializer.js +1 -1
- package/IO/Core/Serializer/PolyDataSerializer.js +1 -1
- package/IO/Core/Serializer.js +1 -1
- package/IO/Core/WSLinkClient.js +1 -2
- package/IO/Core/ZipMultiDataSetReader.js +3 -4
- package/IO/Core/ZipMultiDataSetWriter.js +3 -4
- package/IO/Core.js +1 -1
- package/IO/Geometry/DracoReader.js +1 -2
- package/IO/Geometry/PLYReader.js +1 -2
- package/IO/Geometry/STLReader.js +1 -2
- package/IO/Geometry/STLWriter/Constants.js +1 -2
- package/IO/Geometry/STLWriter.js +2 -3
- package/IO/Geometry.js +1 -1
- package/IO/Legacy/LegacyAsciiParser.js +1 -1
- package/IO/Legacy/PolyDataReader.js +1 -2
- package/IO/Legacy.js +1 -1
- package/IO/Misc/ElevationReader.js +1 -2
- package/IO/Misc/HttpDataSetLODsLoader.js +1 -2
- package/IO/Misc/ITKImageReader.js +1 -2
- package/IO/Misc/ITKPolyDataReader.js +1 -2
- package/IO/Misc/JSONNucleoReader.js +1 -2
- package/IO/Misc/JSONReader.js +1 -2
- package/IO/Misc/MTLReader.js +2 -3
- package/IO/Misc/OBJReader.js +1 -2
- package/IO/Misc/PDBReader.js +1 -2
- package/IO/Misc/SkyboxReader.js +3 -4
- package/IO/Misc.js +1 -1
- package/IO/XML/XMLImageDataReader.js +1 -2
- package/IO/XML/XMLImageDataWriter.js +2 -3
- package/IO/XML/XMLPolyDataReader.js +1 -2
- package/IO/XML/XMLPolyDataWriter.js +2 -3
- package/IO/XML/XMLReader.js +1 -2
- package/IO/XML/XMLWriter/Constants.js +1 -2
- package/IO/XML/XMLWriter.js +4 -4
- package/IO/XML.js +1 -1
- package/IO/index.js +1 -1
- package/Imaging/Core/AbstractImageInterpolator/Constants.js +1 -2
- package/Imaging/Core/AbstractImageInterpolator/InterpolationInfo.js +2 -3
- package/Imaging/Core/AbstractImageInterpolator.js +2 -3
- package/Imaging/Core/ImageInterpolator.js +2 -3
- package/Imaging/Core/ImagePointDataIterator.js +1 -2
- package/Imaging/Core/ImageReslice/Constants.js +1 -2
- package/Imaging/Core/ImageReslice.js +2 -3
- package/Imaging/Core.js +1 -1
- package/Imaging/Hybrid/SampleFunction.js +2 -3
- package/Imaging/Hybrid.js +1 -1
- package/Imaging/index.js +1 -1
- package/Interaction/Animations/TimeStepBasedAnimationHandler.js +2 -3
- 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 +3 -4
- 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/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 +1 -2
- package/Interaction/Manipulators/VRButtonPanManipulator.js +1 -2
- package/Interaction/Manipulators.js +1 -1
- package/Interaction/Misc/DeviceOrientationToCamera.js +1 -1
- package/Interaction/Misc.js +1 -1
- package/Interaction/Style/InteractorStyleImage.js +1 -2
- package/Interaction/Style/InteractorStyleMPRSlice.js +1 -2
- package/Interaction/Style/InteractorStyleManipulator/Presets.js +1 -1
- package/Interaction/Style/InteractorStyleManipulator.js +2 -3
- package/Interaction/Style/InteractorStyleRemoteMouse.js +2 -3
- package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -2
- package/Interaction/Style/InteractorStyleUnicam.js +1 -2
- package/Interaction/Style.js +1 -1
- package/Interaction/UI/CornerAnnotation.js +1 -2
- package/Interaction/UI/FPSMonitor.js +2 -3
- package/Interaction/UI/Icons.js +1 -1
- package/Interaction/UI/Slider/Constants.js +1 -2
- package/Interaction/UI/Slider.js +2 -3
- package/Interaction/UI/VolumeController.js +1 -2
- package/Interaction/UI.js +1 -1
- package/Interaction/Widgets/AbstractWidget.js +2 -3
- package/Interaction/Widgets/DistanceRepresentation.js +2 -3
- package/Interaction/Widgets/DistanceWidget.js +2 -3
- package/Interaction/Widgets/HandleRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/HandleRepresentation.js +2 -3
- package/Interaction/Widgets/HandleWidget/Constants.js +1 -2
- package/Interaction/Widgets/HandleWidget.js +2 -3
- package/Interaction/Widgets/ImageCroppingRegionsRepresentation.js +1 -2
- package/Interaction/Widgets/ImageCroppingRegionsWidget/Constants.js +1 -1
- package/Interaction/Widgets/ImageCroppingRegionsWidget.js +2 -3
- package/Interaction/Widgets/LabelRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/LabelRepresentation.js +3 -4
- package/Interaction/Widgets/LabelWidget.js +2 -3
- package/Interaction/Widgets/LineRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/LineRepresentation.js +2 -3
- package/Interaction/Widgets/LineWidget/Constants.js +1 -2
- package/Interaction/Widgets/LineWidget.js +2 -3
- package/Interaction/Widgets/OrientationMarkerWidget/Constants.js +1 -1
- package/Interaction/Widgets/OrientationMarkerWidget.js +2 -3
- package/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +3 -3
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +15 -16
- package/Interaction/Widgets/PointPlacer.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursor/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursor.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorActor/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorActor.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorLineRepresentation.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorPolyDataAlgorithm.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorRepresentation.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorWidget/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorWidget.js +2 -3
- package/Interaction/Widgets/SphereHandleRepresentation.js +2 -3
- package/Interaction/Widgets/WidgetRepresentation.js +1 -2
- package/Interaction/Widgets.js +1 -1
- package/Interaction/index.js +1 -1
- 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 +1 -1
- package/Proxy/Core/LookupTableProxy/Constants.js +1 -1
- package/Proxy/Core/LookupTableProxy.js +1 -2
- package/Proxy/Core/PiecewiseFunctionProxy/Constants.js +1 -1
- package/Proxy/Core/PiecewiseFunctionProxy.js +2 -3
- package/Proxy/Core/ProxyManager/core.js +2 -2
- package/Proxy/Core/ProxyManager/properties.js +2 -2
- package/Proxy/Core/ProxyManager/state.js +2 -2
- package/Proxy/Core/ProxyManager/view.js +1 -1
- package/Proxy/Core/ProxyManager.js +1 -2
- package/Proxy/Core/SourceProxy.js +1 -2
- package/Proxy/Core/View2DProxy.js +1 -2
- package/Proxy/Core/ViewProxy.js +4 -4
- package/Proxy/Core.js +1 -1
- package/Proxy/Representations/GeometryRepresentationProxy.js +1 -2
- package/Proxy/Representations/GlyphRepresentationProxy.js +1 -2
- package/Proxy/Representations/MoleculeRepresentationProxy.js +1 -2
- package/Proxy/Representations/SkyboxRepresentationProxy.js +1 -2
- package/Proxy/Representations/SliceRepresentationProxy.js +2 -3
- package/Proxy/Representations/SlicedGeometryRepresentationProxy.js +1 -2
- package/Proxy/Representations/VolumeRepresentationProxy.js +1 -2
- package/Proxy/Representations.js +1 -1
- package/Proxy/index.js +1 -1
- 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 +2 -3
- package/Rendering/Core/Actor2D.js +1 -2
- package/Rendering/Core/AnnotatedCubeActor/Presets.js +1 -1
- package/Rendering/Core/AnnotatedCubeActor.js +2 -3
- package/Rendering/Core/AxesActor.js +2 -3
- package/Rendering/Core/Camera.js +1 -2
- package/Rendering/Core/CellPicker.js +2 -3
- package/Rendering/Core/ColorTransferFunction/ColorMaps.js +1 -1
- package/Rendering/Core/ColorTransferFunction/ColorMapsLite.js +1 -1
- package/Rendering/Core/ColorTransferFunction/Constants.js +1 -2
- package/Rendering/Core/ColorTransferFunction.js +2 -3
- package/Rendering/Core/Coordinate/Constants.js +1 -2
- package/Rendering/Core/Coordinate.js +2 -3
- package/Rendering/Core/CubeAxesActor.js +2 -3
- package/Rendering/Core/Follower.js +2 -3
- package/Rendering/Core/Glyph3DMapper/Constants.js +1 -2
- package/Rendering/Core/Glyph3DMapper.js +2 -3
- package/Rendering/Core/HardwareSelector.js +1 -2
- package/Rendering/Core/ImageMapper/Constants.js +1 -2
- package/Rendering/Core/ImageMapper.js +2 -3
- package/Rendering/Core/ImageProperty/Constants.js +1 -2
- package/Rendering/Core/ImageProperty.js +1 -2
- package/Rendering/Core/ImageSlice.js +1 -2
- package/Rendering/Core/InteractorObserver.js +2 -3
- package/Rendering/Core/InteractorStyle/Constants.js +1 -2
- package/Rendering/Core/InteractorStyle.js +2 -3
- package/Rendering/Core/Light.js +1 -2
- package/Rendering/Core/Mapper/CoincidentTopologyHelper.js +1 -2
- package/Rendering/Core/Mapper/Constants.js +1 -2
- package/Rendering/Core/Mapper/Static.js +1 -2
- package/Rendering/Core/Mapper.js +2 -3
- package/Rendering/Core/Picker.js +2 -3
- package/Rendering/Core/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/Core/PointPicker.js +1 -9
- package/Rendering/Core/Prop.js +1 -2
- package/Rendering/Core/Prop3D.js +1 -2
- package/Rendering/Core/Property/Constants.js +1 -2
- package/Rendering/Core/Property.js +2 -3
- package/Rendering/Core/Property2D.js +1 -2
- package/Rendering/Core/RenderWindow.js +1 -2
- package/Rendering/Core/RenderWindowInteractor/Constants.js +1 -2
- package/Rendering/Core/RenderWindowInteractor.js +2 -3
- package/Rendering/Core/Renderer.js +2 -3
- package/Rendering/Core/ScalarBarActor.js +2 -3
- 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/Constants.js +1 -2
- package/Rendering/Core/SurfaceLICInterface.js +1 -2
- package/Rendering/Core/SurfaceLICMapper.js +1 -2
- package/Rendering/Core/Texture.js +1 -2
- package/Rendering/Core/Viewport.js +1 -2
- package/Rendering/Core/Volume.js +1 -2
- package/Rendering/Core/VolumeMapper/Constants.js +1 -2
- package/Rendering/Core/VolumeMapper.js +1 -2
- package/Rendering/Core/VolumeProperty/Constants.js +1 -2
- package/Rendering/Core/VolumeProperty.js +2 -3
- package/Rendering/Core.js +2 -2
- 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 +2 -3
- package/Rendering/Misc/SynchronizableRenderWindow/vtkObjectManager.js +2 -2
- package/Rendering/Misc/SynchronizableRenderWindow.js +3 -4
- package/Rendering/Misc/TextureLODsDownloader.js +1 -2
- package/Rendering/Misc.js +1 -1
- package/Rendering/OpenGL/Actor.js +2 -3
- package/Rendering/OpenGL/Actor2D.js +2 -3
- package/Rendering/OpenGL/BufferObject/Constants.js +1 -2
- package/Rendering/OpenGL/BufferObject.js +2 -3
- package/Rendering/OpenGL/Camera.js +2 -3
- package/Rendering/OpenGL/CellArrayBufferObject.js +2 -4
- package/Rendering/OpenGL/Convolution2DPass.js +1 -2
- package/Rendering/OpenGL/ForwardPass.js +1 -2
- package/Rendering/OpenGL/Framebuffer.js +2 -3
- package/Rendering/OpenGL/Glyph3DMapper.js +3 -4
- package/Rendering/OpenGL/HardwareSelector/Constants.js +1 -2
- package/Rendering/OpenGL/HardwareSelector.js +2 -3
- package/Rendering/OpenGL/Helper.js +1 -2
- package/Rendering/OpenGL/ImageMapper.js +2 -3
- package/Rendering/OpenGL/ImageSlice.js +2 -3
- package/Rendering/OpenGL/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/OpenGL/PolyDataMapper.js +2 -3
- package/Rendering/OpenGL/RadialDistortionPass.js +1 -2
- package/Rendering/OpenGL/RenderWindow.js +1 -2
- package/Rendering/OpenGL/Renderer.js +2 -3
- package/Rendering/OpenGL/ReplacementShaderMapper.js +1 -1
- package/Rendering/OpenGL/Shader.js +1 -2
- package/Rendering/OpenGL/ShaderCache.js +1 -2
- package/Rendering/OpenGL/ShaderProgram.js +1 -1
- package/Rendering/OpenGL/Skybox.js +2 -3
- package/Rendering/OpenGL/SphereMapper.js +2 -3
- package/Rendering/OpenGL/StickMapper.js +2 -3
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js +3 -4
- package/Rendering/OpenGL/SurfaceLIC.js +1 -1
- package/Rendering/OpenGL/Texture/Constants.js +1 -2
- package/Rendering/OpenGL/Texture.js +3 -4
- 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 +2 -3
- package/Rendering/OpenGL/VolumeMapper.js +3 -4
- package/Rendering/OpenGL.js +1 -1
- package/Rendering/SceneGraph/RenderPass.js +1 -2
- package/Rendering/SceneGraph/RenderWindowViewNode.js +1 -2
- package/Rendering/SceneGraph/ViewNode.js +1 -1
- package/Rendering/SceneGraph/ViewNodeFactory.js +1 -2
- package/Rendering/SceneGraph.js +1 -1
- package/Rendering/WebGPU/Actor.js +1 -2
- package/Rendering/WebGPU/BindGroup.js +1 -2
- package/Rendering/WebGPU/Buffer.js +2 -3
- package/Rendering/WebGPU/BufferManager/Constants.js +1 -2
- package/Rendering/WebGPU/BufferManager.js +3 -4
- package/Rendering/WebGPU/Camera.js +1 -2
- package/Rendering/WebGPU/Device.js +2 -3
- package/Rendering/WebGPU/ForwardPass.js +1 -2
- package/Rendering/WebGPU/FullScreenQuad.js +1 -2
- package/Rendering/WebGPU/Glyph3DMapper.js +3 -4
- package/Rendering/WebGPU/HardwareSelectionPass.js +1 -2
- package/Rendering/WebGPU/HardwareSelector.js +1 -2
- package/Rendering/WebGPU/MapperHelper.js +1 -2
- package/Rendering/WebGPU/OpaquePass.js +2 -4
- package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +1 -2
- package/Rendering/WebGPU/Pipeline.js +2 -3
- package/Rendering/WebGPU/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/WebGPU/PolyDataMapper.js +3 -4
- package/Rendering/WebGPU/RenderEncoder.js +2 -3
- package/Rendering/WebGPU/RenderWindow.js +11 -3
- package/Rendering/WebGPU/Renderer.js +2 -3
- package/Rendering/WebGPU/Sampler.js +1 -2
- package/Rendering/WebGPU/ShaderCache.js +1 -2
- package/Rendering/WebGPU/ShaderDescription.js +1 -2
- package/Rendering/WebGPU/ShaderModule.js +1 -1
- 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 +2 -3
- package/Rendering/WebGPU/TextureManager.js +24 -7
- package/Rendering/WebGPU/TextureView.js +19 -4
- package/Rendering/WebGPU/Types.js +83 -42
- package/Rendering/WebGPU/UniformBuffer.js +1 -2
- package/Rendering/WebGPU/VertexInput.js +2 -3
- package/Rendering/WebGPU/ViewNodeFactory.js +1 -2
- package/Rendering/WebGPU/Volume.js +1 -2
- package/Rendering/WebGPU/VolumePass.js +2 -3
- package/Rendering/WebGPU/VolumePassFSQ.js +4 -4
- package/Rendering/WebGPU.js +1 -1
- package/Rendering/index.js +1 -1
- package/ThirdParty/index.js +2 -2
- package/Utilities/DataGenerator/convert-cli.js +10 -8
- package/Utilities/ExampleRunner/example-runner-cli.js +2 -1
- package/Utilities/ExampleRunner/template-config.js +8 -6
- package/Utilities/TestResults/TESTS-Chrome_Headless_93.0.4577.63_(Linux_x86_64).xml +1058 -1058
- package/Utilities/XMLConverter/xml2json-cli.js +5 -4
- package/Widgets/Core/AbstractWidget/Constants.js +1 -2
- package/Widgets/Core/AbstractWidget.js +1 -2
- package/Widgets/Core/AbstractWidgetFactory.js +2 -3
- package/Widgets/Core/StateBuilder/boundsMixin.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 +1 -2
- package/Widgets/Core/WidgetManager/Constants.js +1 -2
- package/Widgets/Core/WidgetManager.js +1 -2
- package/Widgets/Core/WidgetState.js +1 -2
- package/Widgets/Core.js +1 -1
- package/Widgets/Manipulators/LineManipulator.js +1 -2
- package/Widgets/Manipulators/PlaneManipulator.js +1 -2
- package/Widgets/Manipulators/TrackballManipulator.js +1 -2
- package/Widgets/Manipulators.js +1 -1
- package/Widgets/Representations/ArrowHandleRepresentation.js +2 -3
- package/Widgets/Representations/CircleContextRepresentation.js +1 -2
- package/Widgets/Representations/ContextRepresentation.js +2 -3
- package/Widgets/Representations/ConvexFaceContextRepresentation.js +1 -2
- package/Widgets/Representations/CroppingOutlineRepresentation.js +1 -2
- package/Widgets/Representations/CubeHandleRepresentation.js +1 -2
- package/Widgets/Representations/HandleRepresentation.js +2 -3
- package/Widgets/Representations/ImplicitPlaneRepresentation.js +1 -2
- package/Widgets/Representations/OutlineContextRepresentation.js +1 -2
- package/Widgets/Representations/PolyLineRepresentation.js +2 -3
- package/Widgets/Representations/RectangleContextRepresentation.js +1 -2
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +2 -3
- package/Widgets/Representations/SphereHandleRepresentation.js +1 -2
- package/Widgets/Representations/SplineContextRepresentation.js +1 -2
- package/Widgets/Representations/WidgetRepresentation/Constants.js +1 -2
- package/Widgets/Representations/WidgetRepresentation.js +1 -2
- package/Widgets/Representations.js +1 -1
- package/Widgets/SVG/SVGLandmarkRepresentation.js +2 -3
- package/Widgets/SVG/SVGRepresentation.js +3 -2
- package/Widgets/Widgets3D/AngleWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/AngleWidget/state.js +1 -1
- package/Widgets/Widgets3D/AngleWidget.js +1 -2
- package/Widgets/Widgets3D/DistanceWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget/state.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget.js +1 -2
- package/Widgets/Widgets3D/EllipseWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/EllipseWidget/state.js +1 -1
- package/Widgets/Widgets3D/EllipseWidget.js +2 -3
- package/Widgets/Widgets3D/ImageCroppingWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ImageCroppingWidget/state.js +1 -1
- package/Widgets/Widgets3D/ImageCroppingWidget.js +1 -2
- package/Widgets/Widgets3D/ImplicitPlaneWidget.js +1 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget/state.js +1 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget.js +1 -2
- package/Widgets/Widgets3D/LineWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/LineWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/LineWidget/state.js +1 -1
- package/Widgets/Widgets3D/LineWidget.js +1 -2
- package/Widgets/Widgets3D/PaintWidget.js +1 -2
- package/Widgets/Widgets3D/PolyLineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/PolyLineWidget/state.js +1 -1
- package/Widgets/Widgets3D/PolyLineWidget.js +1 -2
- package/Widgets/Widgets3D/RectangleWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/RectangleWidget/state.js +1 -1
- package/Widgets/Widgets3D/RectangleWidget.js +2 -3
- package/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/state.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -2
- package/Widgets/Widgets3D/ShapeWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/ShapeWidget.js +1 -2
- package/Widgets/Widgets3D/SplineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/SplineWidget/state.js +1 -1
- package/Widgets/Widgets3D/SplineWidget.js +1 -2
- package/Widgets/Widgets3D.js +1 -1
- package/Widgets/index.js +1 -1
- package/_vendor/base64-js/index.js_commonjs-exports +1 -0
- package/_vendor/blueimp-md5/js/md5.js_commonjs-module +3 -0
- package/_vendor/define-properties/index.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/implementation.browser.js_commonjs-module +3 -0
- package/_vendor/globalthis/implementation.browser.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/polyfill.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/shim.js_commonjs-proxy +2 -1
- package/_vendor/jszip/dist/jszip.min.js_commonjs-module +3 -0
- package/_vendor/object-keys/implementation.js_commonjs-proxy +1 -1
- package/_vendor/object-keys/index.js_commonjs-proxy +1 -1
- package/_vendor/object-keys/isArguments.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/alea.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/alea.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/tychei.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/tychei.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xor128.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xor128.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xor4096.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xor4096.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xorshift7.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xorshift7.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xorwow.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xorwow.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/seedrandom.js_commonjs-module +3 -0
- package/_vendor/seedrandom/seedrandom.js_commonjs-proxy +1 -1
- package/_vendor/webworker-promise/lib/register.js_commonjs-module +3 -0
- package/_vendor/webworker-promise/lib/tiny-emitter.js_commonjs-proxy +1 -1
- package/_vendor/webworker-promise/src/tiny-emitter.js_commonjs-proxy +1 -0
- package/_vendor/xmlbuilder2/lib/xmlbuilder2.min.js_commonjs-module +3 -0
- package/_virtual/commonjsHelpers.js +3 -4
- package/_virtual/{polyfill-node_buffer.js → polyfill-node.buffer.js} +1 -1
- package/_virtual/{polyfill-node_global.js → polyfill-node.global.js} +0 -0
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +1 -1
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +1 -1
- package/macros.js +4 -5
- package/package.json +54 -55
- package/vendor/base64-js/index.js +1 -87
- package/vendor/blueimp-md5/js/md5.js +6 -3
- package/vendor/d3-array/src/ascending.js +1 -1
- package/vendor/d3-array/src/bisect.js +2 -1
- package/vendor/d3-array/src/bisector.js +21 -23
- package/vendor/d3-array/src/mode.js +1 -0
- package/vendor/d3-scale/src/continuous.js +2 -2
- package/vendor/d3-time/src/ticks.js +1 -0
- package/vendor/define-properties/index.js +2 -1
- package/vendor/globalthis/implementation.browser.js +4 -9
- package/vendor/globalthis/index.js +13 -6
- package/vendor/globalthis/polyfill.js +6 -3
- package/vendor/globalthis/shim.js +12 -9
- package/vendor/jszip/dist/jszip.min.js +11 -0
- package/vendor/object-keys/index.js +2 -2
- package/vendor/pako/dist/pako.esm.mjs +397 -388
- package/vendor/seedrandom/index.js +28 -21
- package/vendor/seedrandom/lib/alea.js +4 -5
- package/vendor/seedrandom/lib/tychei.js +4 -5
- package/vendor/seedrandom/lib/xor128.js +4 -5
- package/vendor/seedrandom/lib/xor4096.js +4 -5
- package/vendor/seedrandom/lib/xorshift7.js +4 -5
- package/vendor/seedrandom/lib/xorwow.js +4 -5
- package/vendor/seedrandom/seedrandom.js +4 -5
- package/vendor/webworker-promise/lib/register.js +14 -8
- package/vendor/webworker-promise/src/index.js +110 -0
- package/vendor/webworker-promise/src/tiny-emitter.js +51 -0
- package/vendor/xmlbuilder2/lib/xmlbuilder2.min.js +6 -7
- package/vtk.js +2 -3
- package/_vendor/base64-js/index.js_commonjs-proxy +0 -1
- package/_vendor/buffer/index.js_commonjs-proxy +0 -1
- package/_vendor/ieee754/index.js_commonjs-proxy +0 -1
- package/_vendor/immediate/lib/browser.js_commonjs-proxy +0 -1
- package/_vendor/inherits/inherits_browser.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/base64.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/compressedObject.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/compressions.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/crc32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/defaults.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/external.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/flate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/generate/ZipFileWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/generate/index.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/load.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejs/NodejsStreamInputAdapter.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejs/NodejsStreamOutputAdapter.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejsUtils.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/object.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/readable-stream-browser.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/ArrayReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/DataReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/NodeBufferReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/StringReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/Uint8ArrayReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/readerFor.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/signature.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/ConvertWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/Crc32Probe.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/DataLengthProbe.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/DataWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/GenericWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/StreamHelper.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/support.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/utf8.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/utils.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipEntries.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipEntry.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipObject.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/index.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/deflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/inflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/utils/common.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/utils/strings.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/adler32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/constants.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/crc32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/deflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/gzheader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inffast.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inftrees.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/messages.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/trees.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/zstream.js_commonjs-proxy +0 -1
- package/_vendor/lie/lib/browser.js_commonjs-proxy +0 -1
- package/_vendor/safe-buffer/index.js_commonjs-proxy +0 -1
- package/_vendor/set-immediate-shim/index.js_commonjs-proxy +0 -1
- package/_vendor/util/support/isBufferBrowser.js_commonjs-proxy +0 -1
- package/_virtual/_polyfill-node_stream.js_commonjs-proxy.js +0 -6
- package/_virtual/polyfill-node__buffer_list.js +0 -59
- package/_virtual/polyfill-node__stream_duplex.js +0 -44
- package/_virtual/polyfill-node__stream_passthrough.js +0 -15
- package/_virtual/polyfill-node__stream_readable.js +0 -896
- package/_virtual/polyfill-node__stream_transform.js +0 -132
- package/_virtual/polyfill-node__stream_writable.js +0 -480
- package/_virtual/polyfill-node_process.js +0 -225
- package/_virtual/polyfill-node_stream.js +0 -120
- package/vendor/buffer/index.js +0 -2112
- package/vendor/events/events.js +0 -457
- package/vendor/ieee754/index.js +0 -92
- package/vendor/immediate/lib/browser.js +0 -72
- package/vendor/inherits/inherits_browser.js +0 -29
- package/vendor/jszip/lib/base64.js +0 -113
- package/vendor/jszip/lib/compressedObject.js +0 -74
- package/vendor/jszip/lib/compressions.js +0 -20
- package/vendor/jszip/lib/crc32.js +0 -77
- package/vendor/jszip/lib/defaults.js +0 -25
- package/vendor/jszip/lib/external.js +0 -22
- package/vendor/jszip/lib/flate.js +0 -96
- package/vendor/jszip/lib/generate/ZipFileWorker.js +0 -540
- package/vendor/jszip/lib/generate/index.js +0 -61
- package/vendor/jszip/lib/index.js +0 -58
- package/vendor/jszip/lib/load.js +0 -82
- package/vendor/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/vendor/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -45
- package/vendor/jszip/lib/nodejsUtils.js +0 -59
- package/vendor/jszip/lib/object.js +0 -389
- package/vendor/jszip/lib/readable-stream-browser.js +0 -14
- package/vendor/jszip/lib/reader/ArrayReader.js +0 -58
- package/vendor/jszip/lib/reader/DataReader.js +0 -117
- package/vendor/jszip/lib/reader/NodeBufferReader.js +0 -20
- package/vendor/jszip/lib/reader/StringReader.js +0 -39
- package/vendor/jszip/lib/reader/Uint8ArrayReader.js +0 -23
- package/vendor/jszip/lib/reader/readerFor.js +0 -28
- package/vendor/jszip/lib/signature.js +0 -17
- package/vendor/jszip/lib/stream/ConvertWorker.js +0 -26
- package/vendor/jszip/lib/stream/Crc32Probe.js +0 -24
- package/vendor/jszip/lib/stream/DataLengthProbe.js +0 -28
- package/vendor/jszip/lib/stream/DataWorker.js +0 -116
- package/vendor/jszip/lib/stream/GenericWorker.js +0 -263
- package/vendor/jszip/lib/stream/StreamHelper.js +0 -214
- package/vendor/jszip/lib/support.js +0 -45
- package/vendor/jszip/lib/utf8.js +0 -284
- package/vendor/jszip/lib/utils.js +0 -486
- package/vendor/jszip/lib/zipEntries.js +0 -257
- package/vendor/jszip/lib/zipEntry.js +0 -293
- package/vendor/jszip/lib/zipObject.js +0 -133
- package/vendor/jszip/node_modules/pako/index.js +0 -18
- package/vendor/jszip/node_modules/pako/lib/deflate.js +0 -406
- package/vendor/jszip/node_modules/pako/lib/inflate.js +0 -429
- package/vendor/jszip/node_modules/pako/lib/utils/common.js +0 -110
- package/vendor/jszip/node_modules/pako/lib/utils/strings.js +0 -192
- package/vendor/jszip/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/vendor/jszip/node_modules/pako/lib/zlib/constants.js +0 -68
- package/vendor/jszip/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/vendor/jszip/node_modules/pako/lib/zlib/deflate.js +0 -1892
- package/vendor/jszip/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/vendor/jszip/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/vendor/jszip/node_modules/pako/lib/zlib/inflate.js +0 -1572
- package/vendor/jszip/node_modules/pako/lib/zlib/inftrees.js +0 -345
- package/vendor/jszip/node_modules/pako/lib/zlib/messages.js +0 -32
- package/vendor/jszip/node_modules/pako/lib/zlib/trees.js +0 -1232
- package/vendor/jszip/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/vendor/lie/lib/browser.js +0 -274
- package/vendor/process/browser.js +0 -190
- package/vendor/safe-buffer/index.js +0 -69
- package/vendor/set-immediate-shim/index.js +0 -8
- package/vendor/string_decoder/lib/string_decoder.js +0 -276
- package/vendor/util/support/isBufferBrowser.js +0 -8
- package/vendor/util/util.js +0 -706
- package/vendor/webworker-promise/lib/index.js +0 -172
|
@@ -82,7 +82,7 @@ function vtkWebGPUTexture(publicAPI, model) {
|
|
|
82
82
|
var currWidthInBytes = model.width * tDetails.stride;
|
|
83
83
|
|
|
84
84
|
if (currWidthInBytes % 256) {
|
|
85
|
-
var oArray = req.
|
|
85
|
+
var oArray = req.nativeArray;
|
|
86
86
|
var bufferWidthInBytes = 256 * Math.floor((currWidthInBytes + 255) / 256);
|
|
87
87
|
var bufferWidth = bufferWidthInBytes / oArray.BYTES_PER_ELEMENT;
|
|
88
88
|
var oWidth = currWidthInBytes / oArray.BYTES_PER_ELEMENT;
|
|
@@ -209,5 +209,4 @@ var vtkWebGPUTexture$1 = {
|
|
|
209
209
|
extend: extend
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
export
|
|
213
|
-
export { extend, newInstance };
|
|
212
|
+
export { vtkWebGPUTexture$1 as default, extend, newInstance };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
|
+
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
2
3
|
import vtkWebGPUTexture from './Texture.js';
|
|
3
4
|
|
|
5
|
+
var VtkDataTypes = vtkDataArray.VtkDataTypes; // ----------------------------------------------------------------------------
|
|
4
6
|
// Global methods
|
|
5
7
|
// ----------------------------------------------------------------------------
|
|
6
8
|
|
|
@@ -32,24 +34,40 @@ function vtkWebGPUTextureManager(publicAPI, model) {
|
|
|
32
34
|
req.width = dims[0];
|
|
33
35
|
req.height = dims[1];
|
|
34
36
|
req.depth = dims[2];
|
|
35
|
-
var numComp = req.dataArray.getNumberOfComponents(); // todo
|
|
36
|
-
// todo fix handling of 3 component
|
|
37
|
+
var numComp = req.dataArray.getNumberOfComponents(); // todo fix handling of 3 component
|
|
37
38
|
|
|
38
39
|
switch (numComp) {
|
|
39
40
|
case 1:
|
|
40
|
-
req.format = '
|
|
41
|
+
req.format = 'r';
|
|
41
42
|
break;
|
|
42
43
|
|
|
43
44
|
case 2:
|
|
44
|
-
req.format = '
|
|
45
|
+
req.format = 'rg';
|
|
45
46
|
break;
|
|
46
47
|
|
|
47
48
|
default:
|
|
48
49
|
case 3:
|
|
49
50
|
case 4:
|
|
50
|
-
req.format = '
|
|
51
|
+
req.format = 'rgba';
|
|
51
52
|
break;
|
|
52
53
|
}
|
|
54
|
+
|
|
55
|
+
var dataType = req.dataArray.getDataType();
|
|
56
|
+
|
|
57
|
+
switch (dataType) {
|
|
58
|
+
case VtkDataTypes.UNSIGNED_CHAR:
|
|
59
|
+
req.format += '8unorm';
|
|
60
|
+
break;
|
|
61
|
+
|
|
62
|
+
case VtkDataTypes.FLOAT:
|
|
63
|
+
case VtkDataTypes.UNSIGNED_INT:
|
|
64
|
+
case VtkDataTypes.INT:
|
|
65
|
+
case VtkDataTypes.DOUBLE:
|
|
66
|
+
case VtkDataTypes.UNSIGNED_SHORT:
|
|
67
|
+
case VtkDataTypes.SHORT:
|
|
68
|
+
default:
|
|
69
|
+
console.log('unsupported data type in texture');
|
|
70
|
+
}
|
|
53
71
|
} // fill in values based on image if the request has it
|
|
54
72
|
|
|
55
73
|
|
|
@@ -137,5 +155,4 @@ var vtkWebGPUTextureManager$1 = {
|
|
|
137
155
|
extend: extend
|
|
138
156
|
};
|
|
139
157
|
|
|
140
|
-
export
|
|
141
|
-
export { extend, newInstance };
|
|
158
|
+
export { vtkWebGPUTextureManager$1 as default, extend, newInstance };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
import vtkWebGPUSampler from './Sampler.js';
|
|
3
|
+
import vtkWebGPUTypes from './Types.js';
|
|
3
4
|
|
|
4
5
|
// vtkWebGPUTextureView methods
|
|
5
6
|
// ----------------------------------------------------------------------------
|
|
@@ -17,6 +18,8 @@ function vtkWebGPUTextureView(publicAPI, model) {
|
|
|
17
18
|
model.textureHandle = texture.getHandle();
|
|
18
19
|
model.handle = model.textureHandle.createView(model.options);
|
|
19
20
|
model.bindGroupLayoutEntry.texture.viewDimension = model.options.dimension;
|
|
21
|
+
var tDetails = vtkWebGPUTypes.getDetailsFromTextureFormat(model.texture.getFormat());
|
|
22
|
+
model.bindGroupLayoutEntry.texture.sampleType = tDetails.sampleType;
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
publicAPI.getBindGroupEntry = function () {
|
|
@@ -27,7 +30,20 @@ function vtkWebGPUTextureView(publicAPI, model) {
|
|
|
27
30
|
};
|
|
28
31
|
|
|
29
32
|
publicAPI.getShaderCode = function (binding, group) {
|
|
30
|
-
var
|
|
33
|
+
var ttype = 'f32';
|
|
34
|
+
|
|
35
|
+
if (model.bindGroupLayoutEntry.texture.sampleType === 'sint') {
|
|
36
|
+
ttype = 'i32';
|
|
37
|
+
} else if (model.bindGroupLayoutEntry.texture.sampleType === 'uint') {
|
|
38
|
+
ttype = 'u32';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
var result = "[[binding(".concat(binding, "), group(").concat(group, ")]] var ").concat(model.name, ": texture_").concat(model.options.dimension, "<").concat(ttype, ">;");
|
|
42
|
+
|
|
43
|
+
if (model.bindGroupLayoutEntry.texture.sampleType === 'depth') {
|
|
44
|
+
result = "[[binding(".concat(binding, "), group(").concat(group, ")]] var ").concat(model.name, ": texture_depth_").concat(model.options.dimension, ";");
|
|
45
|
+
}
|
|
46
|
+
|
|
31
47
|
return result;
|
|
32
48
|
};
|
|
33
49
|
|
|
@@ -95,7 +111,7 @@ function extend(publicAPI, model) {
|
|
|
95
111
|
|
|
96
112
|
/* eslint-enable no-undef */
|
|
97
113
|
texture: {
|
|
98
|
-
|
|
114
|
+
sampleType: 'float',
|
|
99
115
|
viewDimension: '2d' // multisampled: false,
|
|
100
116
|
|
|
101
117
|
}
|
|
@@ -116,5 +132,4 @@ var vtkWebGPUTextureView$1 = {
|
|
|
116
132
|
extend: extend
|
|
117
133
|
};
|
|
118
134
|
|
|
119
|
-
export
|
|
120
|
-
export { extend, newInstance };
|
|
135
|
+
export { vtkWebGPUTextureView$1 as default, extend, newInstance };
|
|
@@ -19,249 +19,290 @@ var textureDetails = {
|
|
|
19
19
|
numComponents: 1,
|
|
20
20
|
nativeType: Uint8Array,
|
|
21
21
|
stride: 1,
|
|
22
|
-
elementSize: 1
|
|
22
|
+
elementSize: 1,
|
|
23
|
+
sampleType: 'float'
|
|
23
24
|
},
|
|
24
25
|
r8snorm: {
|
|
25
26
|
numComponents: 1,
|
|
26
27
|
nativeType: Int8Array,
|
|
27
28
|
stride: 1,
|
|
28
|
-
elementSize: 1
|
|
29
|
+
elementSize: 1,
|
|
30
|
+
sampleType: 'float'
|
|
29
31
|
},
|
|
30
32
|
r8uint: {
|
|
31
33
|
numComponents: 1,
|
|
32
34
|
nativeType: Uint8Array,
|
|
33
35
|
stride: 1,
|
|
34
|
-
elementSize: 1
|
|
36
|
+
elementSize: 1,
|
|
37
|
+
sampleType: 'uint'
|
|
35
38
|
},
|
|
36
39
|
r8sint: {
|
|
37
40
|
numComponents: 1,
|
|
38
41
|
nativeType: Int8Array,
|
|
39
42
|
stride: 1,
|
|
40
|
-
elementSize: 1
|
|
43
|
+
elementSize: 1,
|
|
44
|
+
sampleType: 'sint'
|
|
41
45
|
},
|
|
42
46
|
// 16-bit formats
|
|
43
47
|
r16uint: {
|
|
44
48
|
numComponents: 1,
|
|
45
49
|
nativeType: Uint16Array,
|
|
46
50
|
stride: 2,
|
|
47
|
-
elementSize: 2
|
|
51
|
+
elementSize: 2,
|
|
52
|
+
sampleType: 'uint'
|
|
48
53
|
},
|
|
49
54
|
r16sint: {
|
|
50
55
|
numComponents: 1,
|
|
51
56
|
nativeType: Int16Array,
|
|
52
57
|
stride: 2,
|
|
53
|
-
elementSize: 2
|
|
58
|
+
elementSize: 2,
|
|
59
|
+
sampleType: 'sint'
|
|
54
60
|
},
|
|
55
61
|
r16float: {
|
|
56
62
|
numComponents: 1,
|
|
57
63
|
nativeType: Float32Array,
|
|
58
64
|
stride: 2,
|
|
59
|
-
elementSize: 2
|
|
65
|
+
elementSize: 2,
|
|
66
|
+
sampleType: 'float'
|
|
60
67
|
},
|
|
61
68
|
rg8unorm: {
|
|
62
69
|
numComponents: 2,
|
|
63
70
|
nativeType: Uint8Array,
|
|
64
71
|
stride: 2,
|
|
65
|
-
elementSize: 1
|
|
72
|
+
elementSize: 1,
|
|
73
|
+
sampleType: 'float'
|
|
66
74
|
},
|
|
67
75
|
rg8snorm: {
|
|
68
76
|
numComponents: 2,
|
|
69
77
|
nativeType: Int8Array,
|
|
70
78
|
stride: 2,
|
|
71
|
-
elementSize: 1
|
|
79
|
+
elementSize: 1,
|
|
80
|
+
sampleType: 'float'
|
|
72
81
|
},
|
|
73
82
|
rg8uint: {
|
|
74
83
|
numComponents: 2,
|
|
75
84
|
nativeType: Uint8Array,
|
|
76
85
|
stride: 2,
|
|
77
|
-
elementSize: 1
|
|
86
|
+
elementSize: 1,
|
|
87
|
+
sampleType: 'uint'
|
|
78
88
|
},
|
|
79
89
|
rg8sint: {
|
|
80
90
|
numComponents: 2,
|
|
81
91
|
nativeType: Int8Array,
|
|
82
92
|
stride: 2,
|
|
83
|
-
elementSize: 1
|
|
93
|
+
elementSize: 1,
|
|
94
|
+
sampleType: 'sint'
|
|
84
95
|
},
|
|
85
96
|
// 32-bit formats
|
|
86
97
|
r32uint: {
|
|
87
98
|
numComponents: 1,
|
|
88
99
|
nativeType: Uint32Array,
|
|
89
100
|
stride: 4,
|
|
90
|
-
elementSize: 4
|
|
101
|
+
elementSize: 4,
|
|
102
|
+
sampleType: 'uint'
|
|
91
103
|
},
|
|
92
104
|
r32sint: {
|
|
93
105
|
numComponents: 1,
|
|
94
106
|
nativeType: Int32Array,
|
|
95
107
|
stride: 4,
|
|
96
|
-
elementSize: 4
|
|
108
|
+
elementSize: 4,
|
|
109
|
+
sampleType: 'sint'
|
|
97
110
|
},
|
|
98
111
|
r32float: {
|
|
99
112
|
numComponents: 1,
|
|
100
113
|
nativeType: Float32Array,
|
|
101
114
|
stride: 4,
|
|
102
|
-
elementSize: 4
|
|
115
|
+
elementSize: 4,
|
|
116
|
+
sampleType: 'unfilterable-float'
|
|
103
117
|
},
|
|
104
118
|
rg16uint: {
|
|
105
119
|
numComponents: 2,
|
|
106
120
|
nativeType: Uint16Array,
|
|
107
121
|
stride: 4,
|
|
108
|
-
elementSize: 2
|
|
122
|
+
elementSize: 2,
|
|
123
|
+
sampleType: 'uint'
|
|
109
124
|
},
|
|
110
125
|
rg16sint: {
|
|
111
126
|
numComponents: 2,
|
|
112
127
|
nativeType: Int16Array,
|
|
113
128
|
stride: 4,
|
|
114
|
-
elementSize: 2
|
|
129
|
+
elementSize: 2,
|
|
130
|
+
sampleType: 'sint'
|
|
115
131
|
},
|
|
116
132
|
rg16float: {
|
|
117
133
|
numComponents: 2,
|
|
118
134
|
nativeType: Float32Array,
|
|
119
135
|
stride: 4,
|
|
120
|
-
elementSize: 2
|
|
136
|
+
elementSize: 2,
|
|
137
|
+
sampleType: 'float'
|
|
121
138
|
},
|
|
122
139
|
rgba8unorm: {
|
|
123
140
|
numComponents: 4,
|
|
124
141
|
nativeType: Uint8Array,
|
|
125
142
|
stride: 4,
|
|
126
|
-
elementSize: 1
|
|
143
|
+
elementSize: 1,
|
|
144
|
+
sampleType: 'float'
|
|
127
145
|
},
|
|
128
146
|
'rgba8unorm-srgb': {
|
|
129
147
|
numComponents: 4,
|
|
130
148
|
nativeType: Uint8Array,
|
|
131
149
|
stride: 4,
|
|
132
|
-
elementSize: 1
|
|
150
|
+
elementSize: 1,
|
|
151
|
+
sampleType: 'float'
|
|
133
152
|
},
|
|
134
153
|
rgba8snorm: {
|
|
135
154
|
numComponents: 4,
|
|
136
155
|
nativeType: Int8Array,
|
|
137
156
|
stride: 4,
|
|
138
|
-
elementSize: 1
|
|
157
|
+
elementSize: 1,
|
|
158
|
+
sampleType: 'float'
|
|
139
159
|
},
|
|
140
160
|
rgba8uint: {
|
|
141
161
|
numComponents: 4,
|
|
142
162
|
nativeType: Uint8Array,
|
|
143
163
|
stride: 4,
|
|
144
|
-
elementSize: 1
|
|
164
|
+
elementSize: 1,
|
|
165
|
+
sampleType: 'uint'
|
|
145
166
|
},
|
|
146
167
|
rgba8sint: {
|
|
147
168
|
numComponents: 4,
|
|
148
169
|
nativeType: Int8Array,
|
|
149
170
|
stride: 4,
|
|
150
|
-
elementSize: 1
|
|
171
|
+
elementSize: 1,
|
|
172
|
+
sampleType: 'sint'
|
|
151
173
|
},
|
|
152
174
|
bgra8unorm: {
|
|
153
175
|
numComponents: 4,
|
|
154
176
|
nativeType: Uint8Array,
|
|
155
177
|
stride: 4,
|
|
156
|
-
elementSize: 1
|
|
178
|
+
elementSize: 1,
|
|
179
|
+
sampleType: 'float'
|
|
157
180
|
},
|
|
158
181
|
'bgra8unorm-srgb': {
|
|
159
182
|
numComponents: 4,
|
|
160
183
|
nativeType: Uint8Array,
|
|
161
184
|
stride: 4,
|
|
162
|
-
elementSize: 1
|
|
185
|
+
elementSize: 1,
|
|
186
|
+
sampleType: 'float'
|
|
163
187
|
},
|
|
164
188
|
// Packed 32-bit formats
|
|
165
189
|
rgb9e5ufloat: {
|
|
166
190
|
numComponents: 4,
|
|
167
191
|
nativeType: Uint32Array,
|
|
168
|
-
stride: 4
|
|
192
|
+
stride: 4,
|
|
193
|
+
sampleType: 'float'
|
|
169
194
|
},
|
|
170
195
|
rgb10a2unorm: {
|
|
171
196
|
numComponents: 4,
|
|
172
197
|
nativeType: Uint32Array,
|
|
173
|
-
stride: 4
|
|
198
|
+
stride: 4,
|
|
199
|
+
sampleType: 'float'
|
|
174
200
|
},
|
|
175
201
|
rg11b10ufloat: {
|
|
176
202
|
numComponents: 4,
|
|
177
203
|
nativeType: Float32Array,
|
|
178
|
-
stride: 4
|
|
204
|
+
stride: 4,
|
|
205
|
+
sampleType: 'float'
|
|
179
206
|
},
|
|
180
207
|
// 64-bit formats
|
|
181
208
|
rg32uint: {
|
|
182
209
|
numComponents: 2,
|
|
183
210
|
nativeType: Uint32Array,
|
|
184
211
|
stride: 8,
|
|
185
|
-
elementSize: 4
|
|
212
|
+
elementSize: 4,
|
|
213
|
+
sampleType: 'uint'
|
|
186
214
|
},
|
|
187
215
|
rg32sint: {
|
|
188
216
|
numComponents: 2,
|
|
189
217
|
nativeType: Int32Array,
|
|
190
218
|
stride: 8,
|
|
191
|
-
elementSize: 4
|
|
219
|
+
elementSize: 4,
|
|
220
|
+
sampleType: 'sint'
|
|
192
221
|
},
|
|
193
222
|
rg32float: {
|
|
194
223
|
numComponents: 2,
|
|
195
224
|
nativeType: Float32Array,
|
|
196
225
|
stride: 8,
|
|
197
|
-
elementSize: 4
|
|
226
|
+
elementSize: 4,
|
|
227
|
+
sampleType: 'unfilterable-float'
|
|
198
228
|
},
|
|
199
229
|
rgba16uint: {
|
|
200
230
|
numComponents: 4,
|
|
201
231
|
nativeType: Uint16Array,
|
|
202
232
|
stride: 8,
|
|
203
|
-
elementSize: 2
|
|
233
|
+
elementSize: 2,
|
|
234
|
+
sampleType: 'uint'
|
|
204
235
|
},
|
|
205
236
|
rgba16sint: {
|
|
206
237
|
numComponents: 4,
|
|
207
238
|
nativeType: Int16Array,
|
|
208
239
|
stride: 8,
|
|
209
|
-
elementSize: 2
|
|
240
|
+
elementSize: 2,
|
|
241
|
+
sampleType: 'sint'
|
|
210
242
|
},
|
|
211
243
|
rgba16float: {
|
|
212
244
|
numComponents: 4,
|
|
213
245
|
nativeType: Float32Array,
|
|
214
246
|
stride: 8,
|
|
215
|
-
elementSize: 2
|
|
247
|
+
elementSize: 2,
|
|
248
|
+
sampleType: 'float'
|
|
216
249
|
},
|
|
217
250
|
// 128-bit formats
|
|
218
251
|
rgba32uint: {
|
|
219
252
|
numComponents: 4,
|
|
220
253
|
nativeType: Uint32Array,
|
|
221
254
|
stride: 16,
|
|
222
|
-
elementSize: 4
|
|
255
|
+
elementSize: 4,
|
|
256
|
+
sampleType: 'uint'
|
|
223
257
|
},
|
|
224
258
|
rgba32sint: {
|
|
225
259
|
numComponents: 4,
|
|
226
260
|
nativeType: Int32Array,
|
|
227
261
|
stride: 16,
|
|
228
|
-
elementSize: 4
|
|
262
|
+
elementSize: 4,
|
|
263
|
+
sampleType: 'sint'
|
|
229
264
|
},
|
|
230
265
|
rgba32float: {
|
|
231
266
|
numComponents: 4,
|
|
232
267
|
nativeType: Float32Array,
|
|
233
268
|
stride: 16,
|
|
234
|
-
elementSize: 4
|
|
269
|
+
elementSize: 4,
|
|
270
|
+
sampleType: 'unfilterable-float'
|
|
235
271
|
},
|
|
236
272
|
// Depth and stencil formats
|
|
237
273
|
stencil8: {
|
|
238
274
|
numComponents: 1,
|
|
239
275
|
nativeType: Uint8Array,
|
|
240
276
|
stride: 1,
|
|
241
|
-
elementSize: 1
|
|
277
|
+
elementSize: 1,
|
|
278
|
+
sampleType: 'uint'
|
|
242
279
|
},
|
|
243
280
|
depth16unorm: {
|
|
244
281
|
numComponents: 1,
|
|
245
282
|
nativeType: Uint16Array,
|
|
246
283
|
stride: 2,
|
|
247
|
-
elementSize: 2
|
|
284
|
+
elementSize: 2,
|
|
285
|
+
sampleType: 'depth'
|
|
248
286
|
},
|
|
249
287
|
depth24plus: {
|
|
250
288
|
numComponents: 1,
|
|
251
289
|
nativeType: Uint32Array,
|
|
252
290
|
stride: 4,
|
|
253
|
-
elementSize: 3
|
|
291
|
+
elementSize: 3,
|
|
292
|
+
sampleType: 'depth'
|
|
254
293
|
},
|
|
255
294
|
'depth24plus-stencil8': {
|
|
256
295
|
numComponents: 2,
|
|
257
296
|
nativeType: Uint32Array,
|
|
258
|
-
stride: 4
|
|
297
|
+
stride: 4,
|
|
298
|
+
sampleType: 'mixed'
|
|
259
299
|
},
|
|
260
300
|
depth32float: {
|
|
261
301
|
numComponents: 1,
|
|
262
302
|
nativeType: Float32Array,
|
|
263
303
|
stride: 4,
|
|
264
|
-
elementSize: 4
|
|
304
|
+
elementSize: 4,
|
|
305
|
+
sampleType: 'depth'
|
|
265
306
|
}
|
|
266
307
|
};
|
|
267
308
|
|
|
@@ -408,4 +449,4 @@ var vtkWebGPUTypes = {
|
|
|
408
449
|
getNativeTypeFromShaderFormat: getNativeTypeFromShaderFormat
|
|
409
450
|
};
|
|
410
451
|
|
|
411
|
-
export default
|
|
452
|
+
export { vtkWebGPUTypes as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { newInstance as newInstance$1, obj, setGet } from '../../macros.js';
|
|
2
2
|
import vtkWebGPUTypes from './Types.js';
|
|
3
3
|
|
|
4
4
|
function arraysEqual(a, b) {
|
|
@@ -201,5 +201,4 @@ var vtkWebGPUVertexInput$1 = {
|
|
|
201
201
|
extend: extend
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
export
|
|
205
|
-
export { extend, newInstance };
|
|
204
|
+
export { vtkWebGPUVertexInput$1 as default, extend, newInstance };
|
|
@@ -30,7 +30,7 @@ var BufferUsage = vtkWebGPUBufferManager.BufferUsage,
|
|
|
30
30
|
//
|
|
31
31
|
|
|
32
32
|
var cubeFaceTriangles = [[0, 4, 6], [0, 6, 2], [1, 3, 7], [1, 7, 5], [0, 5, 4], [0, 1, 5], [2, 6, 7], [2, 7, 3], [0, 3, 1], [0, 2, 3], [4, 5, 7], [4, 7, 6]];
|
|
33
|
-
var DepthBoundsFS = "\n//VTK::Renderer::Dec\n\n//VTK::Select::Dec\n\n//VTK::VolumePass::Dec\n\n//VTK::TCoord::Dec\n\n//VTK::RenderEncoder::Dec\n\n//VTK::Mapper::Dec\n\n//VTK::IOStructs::Dec\n\n[[stage(fragment)]]\nfn main(\n//VTK::IOStructs::Input\n)\n//VTK::IOStructs::Output\n{\n var output : fragmentOutput;\n\n //VTK::Select::Impl\n\n //VTK::TCoord::Impl\n\n //VTK::VolumePass::Impl\n\n // use the minimum (closest) of the current value and the zbuffer\n // the blend func will then take the max to find the farthest stop value\n var stopval: f32 = min(input.fragPos.z, textureLoad(opaquePassDepthTexture, vec2<i32>(i32(input.fragPos.x), i32(input.fragPos.y)), 0)
|
|
33
|
+
var DepthBoundsFS = "\n//VTK::Renderer::Dec\n\n//VTK::Select::Dec\n\n//VTK::VolumePass::Dec\n\n//VTK::TCoord::Dec\n\n//VTK::RenderEncoder::Dec\n\n//VTK::Mapper::Dec\n\n//VTK::IOStructs::Dec\n\n[[stage(fragment)]]\nfn main(\n//VTK::IOStructs::Input\n)\n//VTK::IOStructs::Output\n{\n var output : fragmentOutput;\n\n //VTK::Select::Impl\n\n //VTK::TCoord::Impl\n\n //VTK::VolumePass::Impl\n\n // use the minimum (closest) of the current value and the zbuffer\n // the blend func will then take the max to find the farthest stop value\n var stopval: f32 = min(input.fragPos.z, textureLoad(opaquePassDepthTexture, vec2<i32>(i32(input.fragPos.x), i32(input.fragPos.y)), 0));\n\n //VTK::RenderEncoder::Impl\n return output;\n}\n";
|
|
34
34
|
/* eslint-disable no-undef */
|
|
35
35
|
|
|
36
36
|
/* eslint-disable no-bitwise */
|
|
@@ -367,5 +367,4 @@ var vtkWebGPUVolumePass$1 = {
|
|
|
367
367
|
extend: extend
|
|
368
368
|
};
|
|
369
369
|
|
|
370
|
-
export
|
|
371
|
-
export { extend, newInstance };
|
|
370
|
+
export { vtkWebGPUVolumePass$1 as default, extend, newInstance };
|
|
@@ -8,7 +8,7 @@ import vtkWebGPUSampler from './Sampler.js';
|
|
|
8
8
|
import { BlendMode } from '../Core/VolumeMapper/Constants.js';
|
|
9
9
|
import { i as identity, t as translate, j as transpose, g as invert, m as multiply, s as scale } from '../../vendor/gl-matrix/esm/mat4.js';
|
|
10
10
|
|
|
11
|
-
var volFragTemplate = "\n//VTK::Renderer::Dec\n\n//VTK::Mapper::Dec\n\n//VTK::TCoord::Dec\n\n//VTK::
|
|
11
|
+
var volFragTemplate = "\n//VTK::Renderer::Dec\n\n//VTK::Mapper::Dec\n\n//VTK::TCoord::Dec\n\n//VTK::Volume::Dec\n\n//VTK::RenderEncoder::Dec\n\n//VTK::IOStructs::Dec\n\nfn getTextureValue(vTex: texture_3d<f32>, tpos: vec4<f32>, vNum: i32) -> f32\n{\n // todo multicomponent support\n return textureSampleLevel(vTex, clampSampler, tpos.xyz, 0.0).r;\n}\n\nfn getGradient(vTex: texture_3d<f32>, tpos: vec4<f32>, vNum: i32, scalar: f32) -> vec4<f32>\n{\n var result: vec4<f32>;\n\n var tstep: vec4<f32> = volumeSSBO.values[vNum].tstep;\n result.x = getTextureValue(vTex, tpos + vec4<f32>(tstep.x, 0.0, 0.0, 1.0), vNum) - scalar;\n result.y = getTextureValue(vTex, tpos + vec4<f32>(0.0, tstep.y, 0.0, 1.0), vNum) - scalar;\n result.z = getTextureValue(vTex, tpos + vec4<f32>(0.0, 0.0, tstep.z, 1.0), vNum) - scalar;\n\n // divide by spacing\n result = result / volumeSSBO.values[vNum].spacing;\n\n var grad: f32 = length(result.xyz);\n\n // // rotate to View Coords, needed for lighting and shading\n // result.xyz =\n // result.x * vPlaneNormal0 +\n // result.y * vPlaneNormal2 +\n // result.z * vPlaneNormal4;\n\n if (grad > 0.0)\n {\n result = result * (1.0 / grad);\n }\n\n result.w = grad;\n\n return result;\n}\n\nfn processVolume(vTex: texture_3d<f32>, vNum: i32, cNum: i32, posSC: vec4<f32>, tfunRows: f32) -> vec4<f32>\n{\n var outColor: vec4<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);\n\n // convert to tcoords and reject if outside the volume\n var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*posSC;\n if (tpos.x < 0.0 || tpos.y < 0.0 || tpos.z < 0.0 ||\n tpos.x > 1.0 || tpos.y > 1.0 || tpos.z > 1.0) { return outColor; }\n\n var scalar: f32 = getTextureValue(vTex, tpos, vNum);\n\n var coord: vec2<f32> =\n vec2<f32>(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift,\n (0.5 + 2.0 * f32(vNum)) / tfunRows);\n var color: vec4<f32> = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0);\n\n var gofactor: f32 = 1.0;\n if (componentSSBO.values[cNum].gomin < 1.0)\n {\n var normal: vec4<f32> = getGradient(vTex, tpos, vNum, scalar);\n gofactor = clamp(normal.a*componentSSBO.values[cNum].goScale + componentSSBO.values[cNum].goShift,\n componentSSBO.values[cNum].gomin, componentSSBO.values[cNum].gomax);\n }\n\n // since float32 is unfilterable we have to manually interpolate\n var oPos : f32 = rowLength * (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift);\n var opacity: f32 = textureLoad(ofunTexture, vec2<i32>(i32(oPos), 2*vNum), 0).r;\n var opacityHigh: f32 = textureLoad(ofunTexture, vec2<i32>(i32(oPos) + 1, 2*vNum), 0).r;\n oPos = oPos - floor(oPos);\n opacity = opacityHigh*oPos + opacity*(1.0 - oPos);\n\n outColor = vec4<f32>(color.rgb, gofactor * opacity);\n\n //VTK::Volume::Process\n\n return outColor;\n}\n\nfn composite(rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>) -> vec4<f32>\n{\n // initial ray position is at the beginning\n var rayPosSC: vec4<f32> = minPosSC;\n\n // how many rows (tfuns) do we have in our tfunTexture\n var tfunRows: f32 = f32(textureDimensions(tfunTexture).y);\n\n var curDist: f32 = 0.0;\n var computedColor: vec4<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);\n var sampleColor: vec4<f32>;\n loop\n {\n // for each volume, sample and accumulate color\n\n//VTK::Volume::Calls\n\n // increment position\n curDist = curDist + mapperUBO.SampleDistance;\n rayPosSC = rayPosSC + rayStepSC;\n\n // check if we have reached a terminating condition\n if (curDist > rayLengthSC) { break; }\n if (computedColor.a > 0.98) { break; }\n }\n return computedColor;\n}\n\n[[stage(fragment)]]\nfn main(\n//VTK::IOStructs::Input\n)\n//VTK::IOStructs::Output\n{\n var output: fragmentOutput;\n\n var rayMax: f32 = textureSampleLevel(maxTexture, clampSampler, input.tcoordVS, 0.0).r;\n var rayMin: f32 = textureSampleLevel(minTexture, clampSampler, input.tcoordVS, 0.0).r;\n\n // discard empty rays\n if (rayMax <= rayMin) { discard; }\n else\n {\n var winDimsI32: vec2<i32> = textureDimensions(minTexture);\n var winDims: vec2<f32> = vec2<f32>(f32(winDimsI32.x), f32(winDimsI32.y));\n\n // compute start and end ray positions in view coordinates\n var minPosSC: vec4<f32> = rendererUBO.PCSCMatrix*vec4<f32>(2.0*input.fragPos.x/winDims.x - 1.0, 1.0 - 2.0 * input.fragPos.y/winDims.y, rayMin, 1.0);\n minPosSC = minPosSC * (1.0 / minPosSC.w);\n var maxPosSC: vec4<f32> = rendererUBO.PCSCMatrix*vec4<f32>(2.0*input.fragPos.x/winDims.x - 1.0, 1.0 - 2.0 * input.fragPos.y/winDims.y, rayMax, 1.0);\n maxPosSC = maxPosSC * (1.0 / maxPosSC.w);\n\n var rayLengthSC: f32 = distance(minPosSC.xyz, maxPosSC.xyz);\n var rayStepSC: vec4<f32> = (maxPosSC - minPosSC)*(mapperUBO.SampleDistance/rayLengthSC);\n rayStepSC.w = 0.0;\n\n //VTK::Volume::Loop\n\n // var computedColor: vec4<f32> = vec4<f32>(rayMin, rayMax, 0.0, min(100.0*(rayMax - rayMin), 1.0));\n // computedColor = vec4<f32>(rayLengthSC / 500.0, 1.0, 0.0, 1.0);\n // computedColor = vec4<f32>(maxPosSC.xyz*0.01, 1.0);\n\n //VTK::RenderEncoder::Impl\n }\n\n return output;\n}\n";
|
|
12
12
|
var tmpMat4 = new Float64Array(16);
|
|
13
13
|
var tmp2Mat4 = new Float64Array(16); // ----------------------------------------------------------------------------
|
|
14
14
|
// vtkWebGPUVolumePassFSQ methods
|
|
@@ -47,6 +47,7 @@ function vtkWebGPUVolumePassFSQ(publicAPI, model) {
|
|
|
47
47
|
code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::Loop', ['var computedColor: vec4<f32> = composite(rayLengthSC, minPosSC, rayStepSC);']).result;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::Dec', ["let rowLength: f32 = ".concat(model.rowLength, ".0;")]).result;
|
|
50
51
|
fDesc.setCode(code);
|
|
51
52
|
};
|
|
52
53
|
|
|
@@ -441,7 +442,7 @@ function vtkWebGPUVolumePassFSQ(publicAPI, model) {
|
|
|
441
442
|
model.clampSampler.setName('clampSampler');
|
|
442
443
|
model.clampSampler.create(device, {
|
|
443
444
|
minFilter: 'linear',
|
|
444
|
-
|
|
445
|
+
magFilter: 'linear'
|
|
445
446
|
});
|
|
446
447
|
}
|
|
447
448
|
|
|
@@ -494,5 +495,4 @@ var vtkWebGPUVolumePassFSQ$1 = {
|
|
|
494
495
|
extend: extend
|
|
495
496
|
};
|
|
496
497
|
|
|
497
|
-
export
|
|
498
|
-
export { extend, newInstance };
|
|
498
|
+
export { vtkWebGPUVolumePassFSQ$1 as default, extend, newInstance };
|
package/Rendering/WebGPU.js
CHANGED
package/Rendering/index.js
CHANGED
package/ThirdParty/index.js
CHANGED
|
@@ -15,6 +15,8 @@ program.version('1.0.0')
|
|
|
15
15
|
.option('--sample-data [path]', 'Convert sample data from ParaViewData\n')
|
|
16
16
|
.parse(process.argv);
|
|
17
17
|
|
|
18
|
+
const options = program.opts();
|
|
19
|
+
|
|
18
20
|
// ----------------------------------------------------------------------------
|
|
19
21
|
// Need argument otherwise print help/usage
|
|
20
22
|
// ----------------------------------------------------------------------------
|
|
@@ -31,7 +33,7 @@ const pvPossibleBasePath = [];
|
|
|
31
33
|
|
|
32
34
|
if(!paraview) {
|
|
33
35
|
paraview = [];
|
|
34
|
-
[
|
|
36
|
+
[options.paraview].concat(pvPossibleBasePath).forEach(function(directory){
|
|
35
37
|
try {
|
|
36
38
|
if(fs.statSync(directory).isDirectory()) {
|
|
37
39
|
paraview.push(directory);
|
|
@@ -42,7 +44,7 @@ if(!paraview) {
|
|
|
42
44
|
});
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
if (!process.argv.slice(2).length || !
|
|
47
|
+
if (!process.argv.slice(2).length || !options.help || paraview.length === 0) {
|
|
46
48
|
program.outputHelp();
|
|
47
49
|
process.exit(0);
|
|
48
50
|
}
|
|
@@ -51,12 +53,12 @@ var pvPythonExecs = shell.find(paraview).filter(function(file) { return file.mat
|
|
|
51
53
|
if(pvPythonExecs.length < 1) {
|
|
52
54
|
console.log('Could not find pvpython in your ParaView HOME directory ($PARAVIEW_HOME)');
|
|
53
55
|
program.outputHelp();
|
|
54
|
-
} else if (
|
|
56
|
+
} else if (options.sampleData) {
|
|
55
57
|
console.log('Extract sample datasets');
|
|
56
58
|
const cmdLineSample = [
|
|
57
59
|
pvPythonExecs[0], '-dr',
|
|
58
60
|
path.normalize(path.join(__dirname, 'vtk-data-converter.py')),
|
|
59
|
-
'--sample-data',
|
|
61
|
+
'--sample-data', options.sampleData,
|
|
60
62
|
'--output', path.normalize(path.join(__dirname, '../../Data')),,
|
|
61
63
|
];
|
|
62
64
|
console.log('\n===============================================================================');
|
|
@@ -68,15 +70,15 @@ if(pvPythonExecs.length < 1) {
|
|
|
68
70
|
const cmdLine = [
|
|
69
71
|
pvPythonExecs[0], '-dr',
|
|
70
72
|
path.normalize(path.join(__dirname, 'vtk-data-converter.py')),
|
|
71
|
-
'--input',
|
|
72
|
-
'--output',
|
|
73
|
+
'--input', options.input,
|
|
74
|
+
'--output', options.output,
|
|
73
75
|
];
|
|
74
76
|
|
|
75
|
-
if (
|
|
77
|
+
if (options.extractSurface) {
|
|
76
78
|
cmdLine.push('--extract-surface');
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
if (
|
|
81
|
+
if (options.merge) {
|
|
80
82
|
cmdLine.push('--merge');
|
|
81
83
|
}
|
|
82
84
|
|
|
@@ -17,7 +17,8 @@ program
|
|
|
17
17
|
.option('--no-browser', 'Do not open the browser')
|
|
18
18
|
.parse(process.argv);
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const options = program.opts();
|
|
21
|
+
var configFilePath = path.join(process.cwd(), options.config.replace(/\//g, path.sep));
|
|
21
22
|
var configuration = require(configFilePath);
|
|
22
23
|
|
|
23
24
|
function getSplitedPath(filePath) {
|