@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
package/vendor/jszip/lib/load.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { e as external } from './external.js';
|
|
2
|
-
import { u as utf8 } from './utf8.js';
|
|
3
|
-
import { u as utils } from './utils.js';
|
|
4
|
-
import { z as zipEntries } from './zipEntries.js';
|
|
5
|
-
import { C as Crc32Probe_1 } from './stream/Crc32Probe.js';
|
|
6
|
-
import { n as nodejsUtils } from './nodejsUtils.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Check the CRC32 of an entry.
|
|
10
|
-
* @param {ZipEntry} zipEntry the zip entry to check.
|
|
11
|
-
* @return {Promise} the result.
|
|
12
|
-
*/
|
|
13
|
-
function checkEntryCRC32(zipEntry) {
|
|
14
|
-
return new external.Promise(function (resolve, reject) {
|
|
15
|
-
var worker = zipEntry.decompressed.getContentWorker().pipe(new Crc32Probe_1());
|
|
16
|
-
worker.on("error", function (e) {
|
|
17
|
-
reject(e);
|
|
18
|
-
})
|
|
19
|
-
.on("end", function () {
|
|
20
|
-
if (worker.streamInfo.crc32 !== zipEntry.decompressed.crc32) {
|
|
21
|
-
reject(new Error("Corrupted zip : CRC32 mismatch"));
|
|
22
|
-
} else {
|
|
23
|
-
resolve();
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
.resume();
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var load = function(data, options) {
|
|
31
|
-
var zip = this;
|
|
32
|
-
options = utils.extend(options || {}, {
|
|
33
|
-
base64: false,
|
|
34
|
-
checkCRC32: false,
|
|
35
|
-
optimizedBinaryString: false,
|
|
36
|
-
createFolders: false,
|
|
37
|
-
decodeFileName: utf8.utf8decode
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
if (nodejsUtils.isNode && nodejsUtils.isStream(data)) {
|
|
41
|
-
return external.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return utils.prepareContent("the loaded zip file", data, true, options.optimizedBinaryString, options.base64)
|
|
45
|
-
.then(function(data) {
|
|
46
|
-
var zipEntries$1 = new zipEntries(options);
|
|
47
|
-
zipEntries$1.load(data);
|
|
48
|
-
return zipEntries$1;
|
|
49
|
-
}).then(function checkCRC32(zipEntries) {
|
|
50
|
-
var promises = [external.Promise.resolve(zipEntries)];
|
|
51
|
-
var files = zipEntries.files;
|
|
52
|
-
if (options.checkCRC32) {
|
|
53
|
-
for (var i = 0; i < files.length; i++) {
|
|
54
|
-
promises.push(checkEntryCRC32(files[i]));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return external.Promise.all(promises);
|
|
58
|
-
}).then(function addFiles(results) {
|
|
59
|
-
var zipEntries = results.shift();
|
|
60
|
-
var files = zipEntries.files;
|
|
61
|
-
for (var i = 0; i < files.length; i++) {
|
|
62
|
-
var input = files[i];
|
|
63
|
-
zip.file(input.fileNameStr, input.decompressed, {
|
|
64
|
-
binary: true,
|
|
65
|
-
optimizedBinaryString: true,
|
|
66
|
-
date: input.date,
|
|
67
|
-
dir: input.dir,
|
|
68
|
-
comment : input.fileCommentStr.length ? input.fileCommentStr : null,
|
|
69
|
-
unixPermissions : input.unixPermissions,
|
|
70
|
-
dosPermissions : input.dosPermissions,
|
|
71
|
-
createFolders: options.createFolders
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
if (zipEntries.zipComment.length) {
|
|
75
|
-
zip.comment = zipEntries.zipComment;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return zip;
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export { load as l };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { u as utils } from '../utils.js';
|
|
2
|
-
import { G as GenericWorker_1 } from '../stream/GenericWorker.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A worker that use a nodejs stream as source.
|
|
6
|
-
* @constructor
|
|
7
|
-
* @param {String} filename the name of the file entry for this stream.
|
|
8
|
-
* @param {Readable} stream the nodejs stream.
|
|
9
|
-
*/
|
|
10
|
-
function NodejsStreamInputAdapter(filename, stream) {
|
|
11
|
-
GenericWorker_1.call(this, "Nodejs stream input adapter for " + filename);
|
|
12
|
-
this._upstreamEnded = false;
|
|
13
|
-
this._bindStream(stream);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
utils.inherits(NodejsStreamInputAdapter, GenericWorker_1);
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Prepare the stream and bind the callbacks on it.
|
|
20
|
-
* Do this ASAP on node 0.10 ! A lazy binding doesn't always work.
|
|
21
|
-
* @param {Stream} stream the nodejs stream to use.
|
|
22
|
-
*/
|
|
23
|
-
NodejsStreamInputAdapter.prototype._bindStream = function (stream) {
|
|
24
|
-
var self = this;
|
|
25
|
-
this._stream = stream;
|
|
26
|
-
stream.pause();
|
|
27
|
-
stream
|
|
28
|
-
.on("data", function (chunk) {
|
|
29
|
-
self.push({
|
|
30
|
-
data: chunk,
|
|
31
|
-
meta : {
|
|
32
|
-
percent : 0
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
})
|
|
36
|
-
.on("error", function (e) {
|
|
37
|
-
if(self.isPaused) {
|
|
38
|
-
this.generatedError = e;
|
|
39
|
-
} else {
|
|
40
|
-
self.error(e);
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
.on("end", function () {
|
|
44
|
-
if(self.isPaused) {
|
|
45
|
-
self._upstreamEnded = true;
|
|
46
|
-
} else {
|
|
47
|
-
self.end();
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
NodejsStreamInputAdapter.prototype.pause = function () {
|
|
52
|
-
if(!GenericWorker_1.prototype.pause.call(this)) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
this._stream.pause();
|
|
56
|
-
return true;
|
|
57
|
-
};
|
|
58
|
-
NodejsStreamInputAdapter.prototype.resume = function () {
|
|
59
|
-
if(!GenericWorker_1.prototype.resume.call(this)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if(this._upstreamEnded) {
|
|
64
|
-
this.end();
|
|
65
|
-
} else {
|
|
66
|
-
this._stream.resume();
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return true;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
var NodejsStreamInputAdapter_1 = NodejsStreamInputAdapter;
|
|
73
|
-
|
|
74
|
-
export { NodejsStreamInputAdapter_1 as N };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { r as readableStreamBrowser } from '../readable-stream-browser.js';
|
|
2
|
-
import { u as utils } from '../utils.js';
|
|
3
|
-
|
|
4
|
-
var Readable = readableStreamBrowser.Readable;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
utils.inherits(NodejsStreamOutputAdapter, Readable);
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A nodejs stream using a worker as source.
|
|
11
|
-
* @see the SourceWrapper in http://nodejs.org/api/stream.html
|
|
12
|
-
* @constructor
|
|
13
|
-
* @param {StreamHelper} helper the helper wrapping the worker
|
|
14
|
-
* @param {Object} options the nodejs stream options
|
|
15
|
-
* @param {Function} updateCb the update callback.
|
|
16
|
-
*/
|
|
17
|
-
function NodejsStreamOutputAdapter(helper, options, updateCb) {
|
|
18
|
-
Readable.call(this, options);
|
|
19
|
-
this._helper = helper;
|
|
20
|
-
|
|
21
|
-
var self = this;
|
|
22
|
-
helper.on("data", function (data, meta) {
|
|
23
|
-
if (!self.push(data)) {
|
|
24
|
-
self._helper.pause();
|
|
25
|
-
}
|
|
26
|
-
if(updateCb) {
|
|
27
|
-
updateCb(meta);
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
.on("error", function(e) {
|
|
31
|
-
self.emit('error', e);
|
|
32
|
-
})
|
|
33
|
-
.on("end", function () {
|
|
34
|
-
self.push(null);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
NodejsStreamOutputAdapter.prototype._read = function() {
|
|
40
|
-
this._helper.resume();
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var NodejsStreamOutputAdapter_1 = NodejsStreamOutputAdapter;
|
|
44
|
-
|
|
45
|
-
export { NodejsStreamOutputAdapter_1 as N };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { B as Buffer } from '../../../_virtual/polyfill-node_buffer.js';
|
|
2
|
-
|
|
3
|
-
var nodejsUtils = {
|
|
4
|
-
/**
|
|
5
|
-
* True if this is running in Nodejs, will be undefined in a browser.
|
|
6
|
-
* In a browser, browserify won't include this file and the whole module
|
|
7
|
-
* will be resolved an empty object.
|
|
8
|
-
*/
|
|
9
|
-
isNode : typeof Buffer !== "undefined",
|
|
10
|
-
/**
|
|
11
|
-
* Create a new nodejs Buffer from an existing content.
|
|
12
|
-
* @param {Object} data the data to pass to the constructor.
|
|
13
|
-
* @param {String} encoding the encoding to use.
|
|
14
|
-
* @return {Buffer} a new Buffer.
|
|
15
|
-
*/
|
|
16
|
-
newBufferFrom: function(data, encoding) {
|
|
17
|
-
if (Buffer.from && Buffer.from !== Uint8Array.from) {
|
|
18
|
-
return Buffer.from(data, encoding);
|
|
19
|
-
} else {
|
|
20
|
-
if (typeof data === "number") {
|
|
21
|
-
// Safeguard for old Node.js versions. On newer versions,
|
|
22
|
-
// Buffer.from(number) / Buffer(number, encoding) already throw.
|
|
23
|
-
throw new Error("The \"data\" argument must not be a number");
|
|
24
|
-
}
|
|
25
|
-
return new Buffer(data, encoding);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* Create a new nodejs Buffer with the specified size.
|
|
30
|
-
* @param {Integer} size the size of the buffer.
|
|
31
|
-
* @return {Buffer} a new Buffer.
|
|
32
|
-
*/
|
|
33
|
-
allocBuffer: function (size) {
|
|
34
|
-
if (Buffer.alloc) {
|
|
35
|
-
return Buffer.alloc(size);
|
|
36
|
-
} else {
|
|
37
|
-
var buf = new Buffer(size);
|
|
38
|
-
buf.fill(0);
|
|
39
|
-
return buf;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* Find out if an object is a Buffer.
|
|
44
|
-
* @param {Object} b the object to test.
|
|
45
|
-
* @return {Boolean} true if the object is a Buffer, false otherwise.
|
|
46
|
-
*/
|
|
47
|
-
isBuffer : function(b){
|
|
48
|
-
return Buffer.isBuffer(b);
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
isStream : function (obj) {
|
|
52
|
-
return obj &&
|
|
53
|
-
typeof obj.on === "function" &&
|
|
54
|
-
typeof obj.pause === "function" &&
|
|
55
|
-
typeof obj.resume === "function";
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { nodejsUtils as n };
|
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
import { u as utf8 } from './utf8.js';
|
|
2
|
-
import { u as utils } from './utils.js';
|
|
3
|
-
import { G as GenericWorker_1 } from './stream/GenericWorker.js';
|
|
4
|
-
import { S as StreamHelper_1 } from './stream/StreamHelper.js';
|
|
5
|
-
import { d as defaults } from './defaults.js';
|
|
6
|
-
import { c as compressedObject } from './compressedObject.js';
|
|
7
|
-
import { z as zipObject } from './zipObject.js';
|
|
8
|
-
import { g as generate } from './generate/index.js';
|
|
9
|
-
import { n as nodejsUtils } from './nodejsUtils.js';
|
|
10
|
-
import { N as NodejsStreamInputAdapter_1 } from './nodejs/NodejsStreamInputAdapter.js';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Add a file in the current folder.
|
|
14
|
-
* @private
|
|
15
|
-
* @param {string} name the name of the file
|
|
16
|
-
* @param {String|ArrayBuffer|Uint8Array|Buffer} data the data of the file
|
|
17
|
-
* @param {Object} originalOptions the options of the file
|
|
18
|
-
* @return {Object} the new file.
|
|
19
|
-
*/
|
|
20
|
-
var fileAdd = function(name, data, originalOptions) {
|
|
21
|
-
// be sure sub folders exist
|
|
22
|
-
var dataType = utils.getTypeOf(data),
|
|
23
|
-
parent;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/*
|
|
27
|
-
* Correct options.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
var o = utils.extend(originalOptions || {}, defaults);
|
|
31
|
-
o.date = o.date || new Date();
|
|
32
|
-
if (o.compression !== null) {
|
|
33
|
-
o.compression = o.compression.toUpperCase();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (typeof o.unixPermissions === "string") {
|
|
37
|
-
o.unixPermissions = parseInt(o.unixPermissions, 8);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// UNX_IFDIR 0040000 see zipinfo.c
|
|
41
|
-
if (o.unixPermissions && (o.unixPermissions & 0x4000)) {
|
|
42
|
-
o.dir = true;
|
|
43
|
-
}
|
|
44
|
-
// Bit 4 Directory
|
|
45
|
-
if (o.dosPermissions && (o.dosPermissions & 0x0010)) {
|
|
46
|
-
o.dir = true;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (o.dir) {
|
|
50
|
-
name = forceTrailingSlash(name);
|
|
51
|
-
}
|
|
52
|
-
if (o.createFolders && (parent = parentFolder(name))) {
|
|
53
|
-
folderAdd.call(this, parent, true);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
var isUnicodeString = dataType === "string" && o.binary === false && o.base64 === false;
|
|
57
|
-
if (!originalOptions || typeof originalOptions.binary === "undefined") {
|
|
58
|
-
o.binary = !isUnicodeString;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var isCompressedEmpty = (data instanceof compressedObject) && data.uncompressedSize === 0;
|
|
63
|
-
|
|
64
|
-
if (isCompressedEmpty || o.dir || !data || data.length === 0) {
|
|
65
|
-
o.base64 = false;
|
|
66
|
-
o.binary = true;
|
|
67
|
-
data = "";
|
|
68
|
-
o.compression = "STORE";
|
|
69
|
-
dataType = "string";
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/*
|
|
73
|
-
* Convert content to fit.
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
var zipObjectContent = null;
|
|
77
|
-
if (data instanceof compressedObject || data instanceof GenericWorker_1) {
|
|
78
|
-
zipObjectContent = data;
|
|
79
|
-
} else if (nodejsUtils.isNode && nodejsUtils.isStream(data)) {
|
|
80
|
-
zipObjectContent = new NodejsStreamInputAdapter_1(name, data);
|
|
81
|
-
} else {
|
|
82
|
-
zipObjectContent = utils.prepareContent(name, data, o.binary, o.optimizedBinaryString, o.base64);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
var object = new zipObject(name, zipObjectContent, o);
|
|
86
|
-
this.files[name] = object;
|
|
87
|
-
/*
|
|
88
|
-
TODO: we can't throw an exception because we have async promises
|
|
89
|
-
(we can have a promise of a Date() for example) but returning a
|
|
90
|
-
promise is useless because file(name, data) returns the JSZip
|
|
91
|
-
object for chaining. Should we break that to allow the user
|
|
92
|
-
to catch the error ?
|
|
93
|
-
|
|
94
|
-
return external.Promise.resolve(zipObjectContent)
|
|
95
|
-
.then(function () {
|
|
96
|
-
return object;
|
|
97
|
-
});
|
|
98
|
-
*/
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Find the parent folder of the path.
|
|
103
|
-
* @private
|
|
104
|
-
* @param {string} path the path to use
|
|
105
|
-
* @return {string} the parent folder, or ""
|
|
106
|
-
*/
|
|
107
|
-
var parentFolder = function (path) {
|
|
108
|
-
if (path.slice(-1) === '/') {
|
|
109
|
-
path = path.substring(0, path.length - 1);
|
|
110
|
-
}
|
|
111
|
-
var lastSlash = path.lastIndexOf('/');
|
|
112
|
-
return (lastSlash > 0) ? path.substring(0, lastSlash) : "";
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Returns the path with a slash at the end.
|
|
117
|
-
* @private
|
|
118
|
-
* @param {String} path the path to check.
|
|
119
|
-
* @return {String} the path with a trailing slash.
|
|
120
|
-
*/
|
|
121
|
-
var forceTrailingSlash = function(path) {
|
|
122
|
-
// Check the name ends with a /
|
|
123
|
-
if (path.slice(-1) !== "/") {
|
|
124
|
-
path += "/"; // IE doesn't like substr(-1)
|
|
125
|
-
}
|
|
126
|
-
return path;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Add a (sub) folder in the current folder.
|
|
131
|
-
* @private
|
|
132
|
-
* @param {string} name the folder's name
|
|
133
|
-
* @param {boolean=} [createFolders] If true, automatically create sub
|
|
134
|
-
* folders. Defaults to false.
|
|
135
|
-
* @return {Object} the new folder.
|
|
136
|
-
*/
|
|
137
|
-
var folderAdd = function(name, createFolders) {
|
|
138
|
-
createFolders = (typeof createFolders !== 'undefined') ? createFolders : defaults.createFolders;
|
|
139
|
-
|
|
140
|
-
name = forceTrailingSlash(name);
|
|
141
|
-
|
|
142
|
-
// Does this folder already exist?
|
|
143
|
-
if (!this.files[name]) {
|
|
144
|
-
fileAdd.call(this, name, null, {
|
|
145
|
-
dir: true,
|
|
146
|
-
createFolders: createFolders
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
return this.files[name];
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Cross-window, cross-Node-context regular expression detection
|
|
154
|
-
* @param {Object} object Anything
|
|
155
|
-
* @return {Boolean} true if the object is a regular expression,
|
|
156
|
-
* false otherwise
|
|
157
|
-
*/
|
|
158
|
-
function isRegExp(object) {
|
|
159
|
-
return Object.prototype.toString.call(object) === "[object RegExp]";
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// return the actual prototype of JSZip
|
|
163
|
-
var out = {
|
|
164
|
-
/**
|
|
165
|
-
* @see loadAsync
|
|
166
|
-
*/
|
|
167
|
-
load: function() {
|
|
168
|
-
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Call a callback function for each entry at this folder level.
|
|
174
|
-
* @param {Function} cb the callback function:
|
|
175
|
-
* function (relativePath, file) {...}
|
|
176
|
-
* It takes 2 arguments : the relative path and the file.
|
|
177
|
-
*/
|
|
178
|
-
forEach: function(cb) {
|
|
179
|
-
var filename, relativePath, file;
|
|
180
|
-
for (filename in this.files) {
|
|
181
|
-
if (!this.files.hasOwnProperty(filename)) {
|
|
182
|
-
continue;
|
|
183
|
-
}
|
|
184
|
-
file = this.files[filename];
|
|
185
|
-
relativePath = filename.slice(this.root.length, filename.length);
|
|
186
|
-
if (relativePath && filename.slice(0, this.root.length) === this.root) { // the file is in the current root
|
|
187
|
-
cb(relativePath, file); // TODO reverse the parameters ? need to be clean AND consistent with the filter search fn...
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Filter nested files/folders with the specified function.
|
|
194
|
-
* @param {Function} search the predicate to use :
|
|
195
|
-
* function (relativePath, file) {...}
|
|
196
|
-
* It takes 2 arguments : the relative path and the file.
|
|
197
|
-
* @return {Array} An array of matching elements.
|
|
198
|
-
*/
|
|
199
|
-
filter: function(search) {
|
|
200
|
-
var result = [];
|
|
201
|
-
this.forEach(function (relativePath, entry) {
|
|
202
|
-
if (search(relativePath, entry)) { // the file matches the function
|
|
203
|
-
result.push(entry);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
});
|
|
207
|
-
return result;
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Add a file to the zip file, or search a file.
|
|
212
|
-
* @param {string|RegExp} name The name of the file to add (if data is defined),
|
|
213
|
-
* the name of the file to find (if no data) or a regex to match files.
|
|
214
|
-
* @param {String|ArrayBuffer|Uint8Array|Buffer} data The file data, either raw or base64 encoded
|
|
215
|
-
* @param {Object} o File options
|
|
216
|
-
* @return {JSZip|Object|Array} this JSZip object (when adding a file),
|
|
217
|
-
* a file (when searching by string) or an array of files (when searching by regex).
|
|
218
|
-
*/
|
|
219
|
-
file: function(name, data, o) {
|
|
220
|
-
if (arguments.length === 1) {
|
|
221
|
-
if (isRegExp(name)) {
|
|
222
|
-
var regexp = name;
|
|
223
|
-
return this.filter(function(relativePath, file) {
|
|
224
|
-
return !file.dir && regexp.test(relativePath);
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
else { // text
|
|
228
|
-
var obj = this.files[this.root + name];
|
|
229
|
-
if (obj && !obj.dir) {
|
|
230
|
-
return obj;
|
|
231
|
-
} else {
|
|
232
|
-
return null;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
else { // more than one argument : we have data !
|
|
237
|
-
name = this.root + name;
|
|
238
|
-
fileAdd.call(this, name, data, o);
|
|
239
|
-
}
|
|
240
|
-
return this;
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Add a directory to the zip file, or search.
|
|
245
|
-
* @param {String|RegExp} arg The name of the directory to add, or a regex to search folders.
|
|
246
|
-
* @return {JSZip} an object with the new directory as the root, or an array containing matching folders.
|
|
247
|
-
*/
|
|
248
|
-
folder: function(arg) {
|
|
249
|
-
if (!arg) {
|
|
250
|
-
return this;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
if (isRegExp(arg)) {
|
|
254
|
-
return this.filter(function(relativePath, file) {
|
|
255
|
-
return file.dir && arg.test(relativePath);
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
// else, name is a new folder
|
|
260
|
-
var name = this.root + arg;
|
|
261
|
-
var newFolder = folderAdd.call(this, name);
|
|
262
|
-
|
|
263
|
-
// Allow chaining by returning a new object with this folder as the root
|
|
264
|
-
var ret = this.clone();
|
|
265
|
-
ret.root = newFolder.name;
|
|
266
|
-
return ret;
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Delete a file, or a directory and all sub-files, from the zip
|
|
271
|
-
* @param {string} name the name of the file to delete
|
|
272
|
-
* @return {JSZip} this JSZip object
|
|
273
|
-
*/
|
|
274
|
-
remove: function(name) {
|
|
275
|
-
name = this.root + name;
|
|
276
|
-
var file = this.files[name];
|
|
277
|
-
if (!file) {
|
|
278
|
-
// Look for any folders
|
|
279
|
-
if (name.slice(-1) !== "/") {
|
|
280
|
-
name += "/";
|
|
281
|
-
}
|
|
282
|
-
file = this.files[name];
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
if (file && !file.dir) {
|
|
286
|
-
// file
|
|
287
|
-
delete this.files[name];
|
|
288
|
-
} else {
|
|
289
|
-
// maybe a folder, delete recursively
|
|
290
|
-
var kids = this.filter(function(relativePath, file) {
|
|
291
|
-
return file.name.slice(0, name.length) === name;
|
|
292
|
-
});
|
|
293
|
-
for (var i = 0; i < kids.length; i++) {
|
|
294
|
-
delete this.files[kids[i].name];
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
return this;
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Generate the complete zip file
|
|
303
|
-
* @param {Object} options the options to generate the zip file :
|
|
304
|
-
* - compression, "STORE" by default.
|
|
305
|
-
* - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob.
|
|
306
|
-
* @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file
|
|
307
|
-
*/
|
|
308
|
-
generate: function(options) {
|
|
309
|
-
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
310
|
-
},
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Generate the complete zip file as an internal stream.
|
|
314
|
-
* @param {Object} options the options to generate the zip file :
|
|
315
|
-
* - compression, "STORE" by default.
|
|
316
|
-
* - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob.
|
|
317
|
-
* @return {StreamHelper} the streamed zip file.
|
|
318
|
-
*/
|
|
319
|
-
generateInternalStream: function(options) {
|
|
320
|
-
var worker, opts = {};
|
|
321
|
-
try {
|
|
322
|
-
opts = utils.extend(options || {}, {
|
|
323
|
-
streamFiles: false,
|
|
324
|
-
compression: "STORE",
|
|
325
|
-
compressionOptions : null,
|
|
326
|
-
type: "",
|
|
327
|
-
platform: "DOS",
|
|
328
|
-
comment: null,
|
|
329
|
-
mimeType: 'application/zip',
|
|
330
|
-
encodeFileName: utf8.utf8encode
|
|
331
|
-
});
|
|
332
|
-
|
|
333
|
-
opts.type = opts.type.toLowerCase();
|
|
334
|
-
opts.compression = opts.compression.toUpperCase();
|
|
335
|
-
|
|
336
|
-
// "binarystring" is prefered but the internals use "string".
|
|
337
|
-
if(opts.type === "binarystring") {
|
|
338
|
-
opts.type = "string";
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if (!opts.type) {
|
|
342
|
-
throw new Error("No output type specified.");
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
utils.checkSupport(opts.type);
|
|
346
|
-
|
|
347
|
-
// accept nodejs `process.platform`
|
|
348
|
-
if(
|
|
349
|
-
opts.platform === 'darwin' ||
|
|
350
|
-
opts.platform === 'freebsd' ||
|
|
351
|
-
opts.platform === 'linux' ||
|
|
352
|
-
opts.platform === 'sunos'
|
|
353
|
-
) {
|
|
354
|
-
opts.platform = "UNIX";
|
|
355
|
-
}
|
|
356
|
-
if (opts.platform === 'win32') {
|
|
357
|
-
opts.platform = "DOS";
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
var comment = opts.comment || this.comment || "";
|
|
361
|
-
worker = generate.generateWorker(this, opts, comment);
|
|
362
|
-
} catch (e) {
|
|
363
|
-
worker = new GenericWorker_1("error");
|
|
364
|
-
worker.error(e);
|
|
365
|
-
}
|
|
366
|
-
return new StreamHelper_1(worker, opts.type || "string", opts.mimeType);
|
|
367
|
-
},
|
|
368
|
-
/**
|
|
369
|
-
* Generate the complete zip file asynchronously.
|
|
370
|
-
* @see generateInternalStream
|
|
371
|
-
*/
|
|
372
|
-
generateAsync: function(options, onUpdate) {
|
|
373
|
-
return this.generateInternalStream(options).accumulate(onUpdate);
|
|
374
|
-
},
|
|
375
|
-
/**
|
|
376
|
-
* Generate the complete zip file asynchronously.
|
|
377
|
-
* @see generateInternalStream
|
|
378
|
-
*/
|
|
379
|
-
generateNodeStream: function(options, onUpdate) {
|
|
380
|
-
options = options || {};
|
|
381
|
-
if (!options.type) {
|
|
382
|
-
options.type = "nodebuffer";
|
|
383
|
-
}
|
|
384
|
-
return this.generateInternalStream(options).toNodejsStream(onUpdate);
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
var object = out;
|
|
388
|
-
|
|
389
|
-
export { object as o };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { r as require$$0 } from '../../../_virtual/_polyfill-node_stream.js_commonjs-proxy.js';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* This file is used by module bundlers (browserify/webpack/etc) when
|
|
5
|
-
* including a stream implementation. We use "readable-stream" to get a
|
|
6
|
-
* consistent behavior between nodejs versions but bundlers often have a shim
|
|
7
|
-
* for "stream". Using this shim greatly improve the compatibility and greatly
|
|
8
|
-
* reduce the final size of the bundle (only one stream implementation, not
|
|
9
|
-
* two).
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
var readableStreamBrowser = require$$0;
|
|
13
|
-
|
|
14
|
-
export { readableStreamBrowser as r };
|