@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
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { D as DataReader_1 } from './DataReader.js';
|
|
2
|
-
import { u as utils } from '../utils.js';
|
|
3
|
-
|
|
4
|
-
function ArrayReader(data) {
|
|
5
|
-
DataReader_1.call(this, data);
|
|
6
|
-
for(var i = 0; i < this.data.length; i++) {
|
|
7
|
-
data[i] = data[i] & 0xFF;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
utils.inherits(ArrayReader, DataReader_1);
|
|
11
|
-
/**
|
|
12
|
-
* @see DataReader.byteAt
|
|
13
|
-
*/
|
|
14
|
-
ArrayReader.prototype.byteAt = function(i) {
|
|
15
|
-
return this.data[this.zero + i];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* @see DataReader.lastIndexOfSignature
|
|
19
|
-
*/
|
|
20
|
-
ArrayReader.prototype.lastIndexOfSignature = function(sig) {
|
|
21
|
-
var sig0 = sig.charCodeAt(0),
|
|
22
|
-
sig1 = sig.charCodeAt(1),
|
|
23
|
-
sig2 = sig.charCodeAt(2),
|
|
24
|
-
sig3 = sig.charCodeAt(3);
|
|
25
|
-
for (var i = this.length - 4; i >= 0; --i) {
|
|
26
|
-
if (this.data[i] === sig0 && this.data[i + 1] === sig1 && this.data[i + 2] === sig2 && this.data[i + 3] === sig3) {
|
|
27
|
-
return i - this.zero;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return -1;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @see DataReader.readAndCheckSignature
|
|
35
|
-
*/
|
|
36
|
-
ArrayReader.prototype.readAndCheckSignature = function (sig) {
|
|
37
|
-
var sig0 = sig.charCodeAt(0),
|
|
38
|
-
sig1 = sig.charCodeAt(1),
|
|
39
|
-
sig2 = sig.charCodeAt(2),
|
|
40
|
-
sig3 = sig.charCodeAt(3),
|
|
41
|
-
data = this.readData(4);
|
|
42
|
-
return sig0 === data[0] && sig1 === data[1] && sig2 === data[2] && sig3 === data[3];
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* @see DataReader.readData
|
|
46
|
-
*/
|
|
47
|
-
ArrayReader.prototype.readData = function(size) {
|
|
48
|
-
this.checkOffset(size);
|
|
49
|
-
if(size === 0) {
|
|
50
|
-
return [];
|
|
51
|
-
}
|
|
52
|
-
var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);
|
|
53
|
-
this.index += size;
|
|
54
|
-
return result;
|
|
55
|
-
};
|
|
56
|
-
var ArrayReader_1 = ArrayReader;
|
|
57
|
-
|
|
58
|
-
export { ArrayReader_1 as A };
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { u as utils } from '../utils.js';
|
|
2
|
-
|
|
3
|
-
function DataReader(data) {
|
|
4
|
-
this.data = data; // type : see implementation
|
|
5
|
-
this.length = data.length;
|
|
6
|
-
this.index = 0;
|
|
7
|
-
this.zero = 0;
|
|
8
|
-
}
|
|
9
|
-
DataReader.prototype = {
|
|
10
|
-
/**
|
|
11
|
-
* Check that the offset will not go too far.
|
|
12
|
-
* @param {string} offset the additional offset to check.
|
|
13
|
-
* @throws {Error} an Error if the offset is out of bounds.
|
|
14
|
-
*/
|
|
15
|
-
checkOffset: function(offset) {
|
|
16
|
-
this.checkIndex(this.index + offset);
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* Check that the specified index will not be too far.
|
|
20
|
-
* @param {string} newIndex the index to check.
|
|
21
|
-
* @throws {Error} an Error if the index is out of bounds.
|
|
22
|
-
*/
|
|
23
|
-
checkIndex: function(newIndex) {
|
|
24
|
-
if (this.length < this.zero + newIndex || newIndex < 0) {
|
|
25
|
-
throw new Error("End of data reached (data length = " + this.length + ", asked index = " + (newIndex) + "). Corrupted zip ?");
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* Change the index.
|
|
30
|
-
* @param {number} newIndex The new index.
|
|
31
|
-
* @throws {Error} if the new index is out of the data.
|
|
32
|
-
*/
|
|
33
|
-
setIndex: function(newIndex) {
|
|
34
|
-
this.checkIndex(newIndex);
|
|
35
|
-
this.index = newIndex;
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* Skip the next n bytes.
|
|
39
|
-
* @param {number} n the number of bytes to skip.
|
|
40
|
-
* @throws {Error} if the new index is out of the data.
|
|
41
|
-
*/
|
|
42
|
-
skip: function(n) {
|
|
43
|
-
this.setIndex(this.index + n);
|
|
44
|
-
},
|
|
45
|
-
/**
|
|
46
|
-
* Get the byte at the specified index.
|
|
47
|
-
* @param {number} i the index to use.
|
|
48
|
-
* @return {number} a byte.
|
|
49
|
-
*/
|
|
50
|
-
byteAt: function(i) {
|
|
51
|
-
// see implementations
|
|
52
|
-
},
|
|
53
|
-
/**
|
|
54
|
-
* Get the next number with a given byte size.
|
|
55
|
-
* @param {number} size the number of bytes to read.
|
|
56
|
-
* @return {number} the corresponding number.
|
|
57
|
-
*/
|
|
58
|
-
readInt: function(size) {
|
|
59
|
-
var result = 0,
|
|
60
|
-
i;
|
|
61
|
-
this.checkOffset(size);
|
|
62
|
-
for (i = this.index + size - 1; i >= this.index; i--) {
|
|
63
|
-
result = (result << 8) + this.byteAt(i);
|
|
64
|
-
}
|
|
65
|
-
this.index += size;
|
|
66
|
-
return result;
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Get the next string with a given byte size.
|
|
70
|
-
* @param {number} size the number of bytes to read.
|
|
71
|
-
* @return {string} the corresponding string.
|
|
72
|
-
*/
|
|
73
|
-
readString: function(size) {
|
|
74
|
-
return utils.transformTo("string", this.readData(size));
|
|
75
|
-
},
|
|
76
|
-
/**
|
|
77
|
-
* Get raw data without conversion, <size> bytes.
|
|
78
|
-
* @param {number} size the number of bytes to read.
|
|
79
|
-
* @return {Object} the raw data, implementation specific.
|
|
80
|
-
*/
|
|
81
|
-
readData: function(size) {
|
|
82
|
-
// see implementations
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Find the last occurence of a zip signature (4 bytes).
|
|
86
|
-
* @param {string} sig the signature to find.
|
|
87
|
-
* @return {number} the index of the last occurence, -1 if not found.
|
|
88
|
-
*/
|
|
89
|
-
lastIndexOfSignature: function(sig) {
|
|
90
|
-
// see implementations
|
|
91
|
-
},
|
|
92
|
-
/**
|
|
93
|
-
* Read the signature (4 bytes) at the current position and compare it with sig.
|
|
94
|
-
* @param {string} sig the expected signature
|
|
95
|
-
* @return {boolean} true if the signature matches, false otherwise.
|
|
96
|
-
*/
|
|
97
|
-
readAndCheckSignature: function(sig) {
|
|
98
|
-
// see implementations
|
|
99
|
-
},
|
|
100
|
-
/**
|
|
101
|
-
* Get the next date.
|
|
102
|
-
* @return {Date} the date.
|
|
103
|
-
*/
|
|
104
|
-
readDate: function() {
|
|
105
|
-
var dostime = this.readInt(4);
|
|
106
|
-
return new Date(Date.UTC(
|
|
107
|
-
((dostime >> 25) & 0x7f) + 1980, // year
|
|
108
|
-
((dostime >> 21) & 0x0f) - 1, // month
|
|
109
|
-
(dostime >> 16) & 0x1f, // day
|
|
110
|
-
(dostime >> 11) & 0x1f, // hour
|
|
111
|
-
(dostime >> 5) & 0x3f, // minute
|
|
112
|
-
(dostime & 0x1f) << 1)); // second
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
var DataReader_1 = DataReader;
|
|
116
|
-
|
|
117
|
-
export { DataReader_1 as D };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { U as Uint8ArrayReader_1 } from './Uint8ArrayReader.js';
|
|
2
|
-
import { u as utils } from '../utils.js';
|
|
3
|
-
|
|
4
|
-
function NodeBufferReader(data) {
|
|
5
|
-
Uint8ArrayReader_1.call(this, data);
|
|
6
|
-
}
|
|
7
|
-
utils.inherits(NodeBufferReader, Uint8ArrayReader_1);
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @see DataReader.readData
|
|
11
|
-
*/
|
|
12
|
-
NodeBufferReader.prototype.readData = function(size) {
|
|
13
|
-
this.checkOffset(size);
|
|
14
|
-
var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);
|
|
15
|
-
this.index += size;
|
|
16
|
-
return result;
|
|
17
|
-
};
|
|
18
|
-
var NodeBufferReader_1 = NodeBufferReader;
|
|
19
|
-
|
|
20
|
-
export { NodeBufferReader_1 as N };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { D as DataReader_1 } from './DataReader.js';
|
|
2
|
-
import { u as utils } from '../utils.js';
|
|
3
|
-
|
|
4
|
-
function StringReader(data) {
|
|
5
|
-
DataReader_1.call(this, data);
|
|
6
|
-
}
|
|
7
|
-
utils.inherits(StringReader, DataReader_1);
|
|
8
|
-
/**
|
|
9
|
-
* @see DataReader.byteAt
|
|
10
|
-
*/
|
|
11
|
-
StringReader.prototype.byteAt = function(i) {
|
|
12
|
-
return this.data.charCodeAt(this.zero + i);
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* @see DataReader.lastIndexOfSignature
|
|
16
|
-
*/
|
|
17
|
-
StringReader.prototype.lastIndexOfSignature = function(sig) {
|
|
18
|
-
return this.data.lastIndexOf(sig) - this.zero;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @see DataReader.readAndCheckSignature
|
|
22
|
-
*/
|
|
23
|
-
StringReader.prototype.readAndCheckSignature = function (sig) {
|
|
24
|
-
var data = this.readData(4);
|
|
25
|
-
return sig === data;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @see DataReader.readData
|
|
29
|
-
*/
|
|
30
|
-
StringReader.prototype.readData = function(size) {
|
|
31
|
-
this.checkOffset(size);
|
|
32
|
-
// this will work because the constructor applied the "& 0xff" mask.
|
|
33
|
-
var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);
|
|
34
|
-
this.index += size;
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
var StringReader_1 = StringReader;
|
|
38
|
-
|
|
39
|
-
export { StringReader_1 as S };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { A as ArrayReader_1 } from './ArrayReader.js';
|
|
2
|
-
import { u as utils } from '../utils.js';
|
|
3
|
-
|
|
4
|
-
function Uint8ArrayReader(data) {
|
|
5
|
-
ArrayReader_1.call(this, data);
|
|
6
|
-
}
|
|
7
|
-
utils.inherits(Uint8ArrayReader, ArrayReader_1);
|
|
8
|
-
/**
|
|
9
|
-
* @see DataReader.readData
|
|
10
|
-
*/
|
|
11
|
-
Uint8ArrayReader.prototype.readData = function(size) {
|
|
12
|
-
this.checkOffset(size);
|
|
13
|
-
if(size === 0) {
|
|
14
|
-
// in IE10, when using subarray(idx, idx), we get the array [0x00] instead of [].
|
|
15
|
-
return new Uint8Array(0);
|
|
16
|
-
}
|
|
17
|
-
var result = this.data.subarray(this.zero + this.index, this.zero + this.index + size);
|
|
18
|
-
this.index += size;
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var Uint8ArrayReader_1 = Uint8ArrayReader;
|
|
22
|
-
|
|
23
|
-
export { Uint8ArrayReader_1 as U };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { u as utils } from '../utils.js';
|
|
2
|
-
import { s as support } from '../support.js';
|
|
3
|
-
import { A as ArrayReader_1 } from './ArrayReader.js';
|
|
4
|
-
import { S as StringReader_1 } from './StringReader.js';
|
|
5
|
-
import { N as NodeBufferReader_1 } from './NodeBufferReader.js';
|
|
6
|
-
import { U as Uint8ArrayReader_1 } from './Uint8ArrayReader.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Create a reader adapted to the data.
|
|
10
|
-
* @param {String|ArrayBuffer|Uint8Array|Buffer} data the data to read.
|
|
11
|
-
* @return {DataReader} the data reader.
|
|
12
|
-
*/
|
|
13
|
-
var readerFor = function (data) {
|
|
14
|
-
var type = utils.getTypeOf(data);
|
|
15
|
-
utils.checkSupport(type);
|
|
16
|
-
if (type === "string" && !support.uint8array) {
|
|
17
|
-
return new StringReader_1(data);
|
|
18
|
-
}
|
|
19
|
-
if (type === "nodebuffer") {
|
|
20
|
-
return new NodeBufferReader_1(data);
|
|
21
|
-
}
|
|
22
|
-
if (support.uint8array) {
|
|
23
|
-
return new Uint8ArrayReader_1(utils.transformTo("uint8array", data));
|
|
24
|
-
}
|
|
25
|
-
return new ArrayReader_1(utils.transformTo("array", data));
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { readerFor as r };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var LOCAL_FILE_HEADER = "PK\x03\x04";
|
|
2
|
-
var CENTRAL_FILE_HEADER = "PK\x01\x02";
|
|
3
|
-
var CENTRAL_DIRECTORY_END = "PK\x05\x06";
|
|
4
|
-
var ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x06\x07";
|
|
5
|
-
var ZIP64_CENTRAL_DIRECTORY_END = "PK\x06\x06";
|
|
6
|
-
var DATA_DESCRIPTOR = "PK\x07\x08";
|
|
7
|
-
|
|
8
|
-
var signature = {
|
|
9
|
-
LOCAL_FILE_HEADER: LOCAL_FILE_HEADER,
|
|
10
|
-
CENTRAL_FILE_HEADER: CENTRAL_FILE_HEADER,
|
|
11
|
-
CENTRAL_DIRECTORY_END: CENTRAL_DIRECTORY_END,
|
|
12
|
-
ZIP64_CENTRAL_DIRECTORY_LOCATOR: ZIP64_CENTRAL_DIRECTORY_LOCATOR,
|
|
13
|
-
ZIP64_CENTRAL_DIRECTORY_END: ZIP64_CENTRAL_DIRECTORY_END,
|
|
14
|
-
DATA_DESCRIPTOR: DATA_DESCRIPTOR
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { signature as s };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { G as GenericWorker_1 } from './GenericWorker.js';
|
|
2
|
-
import { u as utils } from '../utils.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A worker which convert chunks to a specified type.
|
|
6
|
-
* @constructor
|
|
7
|
-
* @param {String} destType the destination type.
|
|
8
|
-
*/
|
|
9
|
-
function ConvertWorker(destType) {
|
|
10
|
-
GenericWorker_1.call(this, "ConvertWorker to " + destType);
|
|
11
|
-
this.destType = destType;
|
|
12
|
-
}
|
|
13
|
-
utils.inherits(ConvertWorker, GenericWorker_1);
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @see GenericWorker.processChunk
|
|
17
|
-
*/
|
|
18
|
-
ConvertWorker.prototype.processChunk = function (chunk) {
|
|
19
|
-
this.push({
|
|
20
|
-
data : utils.transformTo(this.destType, chunk.data),
|
|
21
|
-
meta : chunk.meta
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
var ConvertWorker_1 = ConvertWorker;
|
|
25
|
-
|
|
26
|
-
export { ConvertWorker_1 as C };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { G as GenericWorker_1 } from './GenericWorker.js';
|
|
2
|
-
import { c as crc32_1 } from '../crc32.js';
|
|
3
|
-
import { u as utils } from '../utils.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* A worker which calculate the crc32 of the data flowing through.
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
function Crc32Probe() {
|
|
10
|
-
GenericWorker_1.call(this, "Crc32Probe");
|
|
11
|
-
this.withStreamInfo("crc32", 0);
|
|
12
|
-
}
|
|
13
|
-
utils.inherits(Crc32Probe, GenericWorker_1);
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @see GenericWorker.processChunk
|
|
17
|
-
*/
|
|
18
|
-
Crc32Probe.prototype.processChunk = function (chunk) {
|
|
19
|
-
this.streamInfo.crc32 = crc32_1(chunk.data, this.streamInfo.crc32 || 0);
|
|
20
|
-
this.push(chunk);
|
|
21
|
-
};
|
|
22
|
-
var Crc32Probe_1 = Crc32Probe;
|
|
23
|
-
|
|
24
|
-
export { Crc32Probe_1 as C };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { u as utils } from '../utils.js';
|
|
2
|
-
import { G as GenericWorker_1 } from './GenericWorker.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A worker which calculate the total length of the data flowing through.
|
|
6
|
-
* @constructor
|
|
7
|
-
* @param {String} propName the name used to expose the length
|
|
8
|
-
*/
|
|
9
|
-
function DataLengthProbe(propName) {
|
|
10
|
-
GenericWorker_1.call(this, "DataLengthProbe for " + propName);
|
|
11
|
-
this.propName = propName;
|
|
12
|
-
this.withStreamInfo(propName, 0);
|
|
13
|
-
}
|
|
14
|
-
utils.inherits(DataLengthProbe, GenericWorker_1);
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @see GenericWorker.processChunk
|
|
18
|
-
*/
|
|
19
|
-
DataLengthProbe.prototype.processChunk = function (chunk) {
|
|
20
|
-
if(chunk) {
|
|
21
|
-
var length = this.streamInfo[this.propName] || 0;
|
|
22
|
-
this.streamInfo[this.propName] = length + chunk.data.length;
|
|
23
|
-
}
|
|
24
|
-
GenericWorker_1.prototype.processChunk.call(this, chunk);
|
|
25
|
-
};
|
|
26
|
-
var DataLengthProbe_1 = DataLengthProbe;
|
|
27
|
-
|
|
28
|
-
export { DataLengthProbe_1 as D };
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { u as utils } from '../utils.js';
|
|
2
|
-
import { G as GenericWorker_1 } from './GenericWorker.js';
|
|
3
|
-
|
|
4
|
-
// the size of the generated chunks
|
|
5
|
-
// TODO expose this as a public variable
|
|
6
|
-
var DEFAULT_BLOCK_SIZE = 16 * 1024;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A worker that reads a content and emits chunks.
|
|
10
|
-
* @constructor
|
|
11
|
-
* @param {Promise} dataP the promise of the data to split
|
|
12
|
-
*/
|
|
13
|
-
function DataWorker(dataP) {
|
|
14
|
-
GenericWorker_1.call(this, "DataWorker");
|
|
15
|
-
var self = this;
|
|
16
|
-
this.dataIsReady = false;
|
|
17
|
-
this.index = 0;
|
|
18
|
-
this.max = 0;
|
|
19
|
-
this.data = null;
|
|
20
|
-
this.type = "";
|
|
21
|
-
|
|
22
|
-
this._tickScheduled = false;
|
|
23
|
-
|
|
24
|
-
dataP.then(function (data) {
|
|
25
|
-
self.dataIsReady = true;
|
|
26
|
-
self.data = data;
|
|
27
|
-
self.max = data && data.length || 0;
|
|
28
|
-
self.type = utils.getTypeOf(data);
|
|
29
|
-
if(!self.isPaused) {
|
|
30
|
-
self._tickAndRepeat();
|
|
31
|
-
}
|
|
32
|
-
}, function (e) {
|
|
33
|
-
self.error(e);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
utils.inherits(DataWorker, GenericWorker_1);
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @see GenericWorker.cleanUp
|
|
41
|
-
*/
|
|
42
|
-
DataWorker.prototype.cleanUp = function () {
|
|
43
|
-
GenericWorker_1.prototype.cleanUp.call(this);
|
|
44
|
-
this.data = null;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @see GenericWorker.resume
|
|
49
|
-
*/
|
|
50
|
-
DataWorker.prototype.resume = function () {
|
|
51
|
-
if(!GenericWorker_1.prototype.resume.call(this)) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (!this._tickScheduled && this.dataIsReady) {
|
|
56
|
-
this._tickScheduled = true;
|
|
57
|
-
utils.delay(this._tickAndRepeat, [], this);
|
|
58
|
-
}
|
|
59
|
-
return true;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Trigger a tick a schedule an other call to this function.
|
|
64
|
-
*/
|
|
65
|
-
DataWorker.prototype._tickAndRepeat = function() {
|
|
66
|
-
this._tickScheduled = false;
|
|
67
|
-
if(this.isPaused || this.isFinished) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
this._tick();
|
|
71
|
-
if(!this.isFinished) {
|
|
72
|
-
utils.delay(this._tickAndRepeat, [], this);
|
|
73
|
-
this._tickScheduled = true;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Read and push a chunk.
|
|
79
|
-
*/
|
|
80
|
-
DataWorker.prototype._tick = function() {
|
|
81
|
-
|
|
82
|
-
if(this.isPaused || this.isFinished) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
var size = DEFAULT_BLOCK_SIZE;
|
|
87
|
-
var data = null, nextIndex = Math.min(this.max, this.index + size);
|
|
88
|
-
if (this.index >= this.max) {
|
|
89
|
-
// EOF
|
|
90
|
-
return this.end();
|
|
91
|
-
} else {
|
|
92
|
-
switch(this.type) {
|
|
93
|
-
case "string":
|
|
94
|
-
data = this.data.substring(this.index, nextIndex);
|
|
95
|
-
break;
|
|
96
|
-
case "uint8array":
|
|
97
|
-
data = this.data.subarray(this.index, nextIndex);
|
|
98
|
-
break;
|
|
99
|
-
case "array":
|
|
100
|
-
case "nodebuffer":
|
|
101
|
-
data = this.data.slice(this.index, nextIndex);
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
this.index = nextIndex;
|
|
105
|
-
return this.push({
|
|
106
|
-
data : data,
|
|
107
|
-
meta : {
|
|
108
|
-
percent : this.max ? this.index / this.max * 100 : 0
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var DataWorker_1 = DataWorker;
|
|
115
|
-
|
|
116
|
-
export { DataWorker_1 as D };
|