@kitware/vtk.js 34.16.3 → 34.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/CONTRIBUTING.md +8 -8
  2. package/Common/Core/CellArray.d.ts +5 -1
  3. package/Common/Core/CellArray.js +6 -10
  4. package/Common/Core/DataArray.js +9 -23
  5. package/Common/Core/ImageHelper.d.ts +2 -2
  6. package/Common/Core/ImageHelper.js +6 -8
  7. package/Common/Core/LookupTable.js +1 -3
  8. package/Common/Core/Math/index.js +19 -47
  9. package/Common/Core/MatrixBuilder.js +2 -5
  10. package/Common/Core/Points.js +3 -8
  11. package/Common/Core/PriorityQueue.js +4 -8
  12. package/Common/Core/ProgressHandler.js +4 -7
  13. package/Common/Core/ScalarsToColors.js +1 -2
  14. package/Common/Core/StringArray.js +4 -12
  15. package/Common/Core/URLExtract.js +1 -3
  16. package/Common/Core/VariantArray.js +4 -12
  17. package/Common/DataModel/AbstractPointLocator.js +1 -2
  18. package/Common/DataModel/BoundingBox.js +6 -16
  19. package/Common/DataModel/Box.js +7 -11
  20. package/Common/DataModel/CardinalSpline1D.js +2 -4
  21. package/Common/DataModel/Cell.js +2 -4
  22. package/Common/DataModel/CellLinks.js +2 -4
  23. package/Common/DataModel/CellTypes.js +2 -5
  24. package/Common/DataModel/Collection.js +1 -2
  25. package/Common/DataModel/Cone.js +1 -2
  26. package/Common/DataModel/Cylinder.js +1 -2
  27. package/Common/DataModel/DataSet/Constants.js +0 -1
  28. package/Common/DataModel/DataSet.js +2 -4
  29. package/Common/DataModel/DataSetAttributes/Constants.js +0 -4
  30. package/Common/DataModel/DataSetAttributes/FieldData.js +3 -11
  31. package/Common/DataModel/DataSetAttributes.js +1 -2
  32. package/Common/DataModel/EdgeLocator.js +2 -4
  33. package/Common/DataModel/ITKHelper.js +4 -8
  34. package/Common/DataModel/ImageData.js +17 -33
  35. package/Common/DataModel/ImplicitBoolean.js +1 -2
  36. package/Common/DataModel/ImplicitFunction.js +1 -2
  37. package/Common/DataModel/IncrementalOctreeNode.js +1 -2
  38. package/Common/DataModel/IncrementalOctreePointLocator.js +2 -3
  39. package/Common/DataModel/KochanekSpline1D.js +2 -4
  40. package/Common/DataModel/Line.js +2 -4
  41. package/Common/DataModel/Locator.js +1 -2
  42. package/Common/DataModel/MergePoints.js +1 -2
  43. package/Common/DataModel/Molecule.js +1 -2
  44. package/Common/DataModel/PiecewiseFunction.js +2 -4
  45. package/Common/DataModel/Plane.js +1 -2
  46. package/Common/DataModel/Planes.js +2 -4
  47. package/Common/DataModel/PointLocator.js +3 -7
  48. package/Common/DataModel/PointSet.js +2 -4
  49. package/Common/DataModel/PolyData.js +4 -8
  50. package/Common/DataModel/PolyLine.js +1 -2
  51. package/Common/DataModel/Polygon.js +2 -4
  52. package/Common/DataModel/Quad.js +1 -2
  53. package/Common/DataModel/SelectionNode.js +1 -2
  54. package/Common/DataModel/Sphere.js +1 -2
  55. package/Common/DataModel/Spline1D.js +2 -3
  56. package/Common/DataModel/Spline3D.js +1 -2
  57. package/Common/DataModel/Triangle.js +2 -6
  58. package/Common/DataModel/TriangleStrip.js +1 -2
  59. package/Common/Transform/LandmarkTransform.js +1 -2
  60. package/Common/Transform/Transform.js +4 -10
  61. package/Filters/Core/CleanPolyData.js +1 -2
  62. package/Filters/Core/Cutter.js +1 -3
  63. package/Filters/Core/PolyDataNormals.js +1 -3
  64. package/Filters/Core/ThresholdPoints.js +2 -4
  65. package/Filters/Cornerstone/ImageDataToCornerstoneImage.js +1 -2
  66. package/Filters/General/AppendPolyData.js +1 -2
  67. package/Filters/General/Calculator.js +40 -47
  68. package/Filters/General/ClipClosedSurface.js +1 -4
  69. package/Filters/General/ClosedPolyLineToSurfaceFilter.js +1 -2
  70. package/Filters/General/ContourLoopExtraction.js +1 -2
  71. package/Filters/General/ContourTriangulator/helper.js +1 -5
  72. package/Filters/General/ContourTriangulator.js +2 -4
  73. package/Filters/General/ImageCropFilter.js +1 -2
  74. package/Filters/General/ImageDataOutlineFilter.js +1 -2
  75. package/Filters/General/ImageMarchingCubes/caseTable.js +0 -1
  76. package/Filters/General/ImageMarchingCubes.js +1 -4
  77. package/Filters/General/ImageMarchingSquares/caseTable.js +0 -1
  78. package/Filters/General/ImageMarchingSquares.js +1 -4
  79. package/Filters/General/ImageOutlineFilter.js +1 -2
  80. package/Filters/General/ImageSliceFilter.js +1 -2
  81. package/Filters/General/ImageStreamline.js +1 -3
  82. package/Filters/General/LineFilter.js +1 -2
  83. package/Filters/General/MoleculeToRepresentation.js +2 -5
  84. package/Filters/General/OBBTree/OBBNode.js +1 -2
  85. package/Filters/General/OBBTree.js +2 -6
  86. package/Filters/General/OutlineFilter.js +1 -2
  87. package/Filters/General/PaintFilter/PaintFilter.worker.js +20 -25
  88. package/Filters/General/PaintFilter.js +1 -2
  89. package/Filters/General/ScalarToRGBA.js +1 -2
  90. package/Filters/General/ShrinkPolyData.js +2 -4
  91. package/Filters/General/TransformPolyDataFilter.js +1 -2
  92. package/Filters/General/TriangleFilter.js +1 -2
  93. package/Filters/General/TubeFilter.js +2 -6
  94. package/Filters/General/WarpScalar.js +1 -2
  95. package/Filters/General/WindowedSincPolyDataFilter.js +1 -2
  96. package/Filters/Sources/ArcSource.js +1 -2
  97. package/Filters/Sources/Arrow2DSource.js +1 -2
  98. package/Filters/Sources/ArrowSource.js +1 -2
  99. package/Filters/Sources/CircleSource.d.ts +2 -3
  100. package/Filters/Sources/CircleSource.js +1 -2
  101. package/Filters/Sources/ConcentricCylinderSource.js +2 -6
  102. package/Filters/Sources/ConeSource.js +1 -2
  103. package/Filters/Sources/CubeSource.js +6 -7
  104. package/Filters/Sources/Cursor3D.js +1 -2
  105. package/Filters/Sources/CylinderSource.js +1 -2
  106. package/Filters/Sources/DiskSource.js +1 -2
  107. package/Filters/Sources/EllipseArcSource.js +1 -2
  108. package/Filters/Sources/FrustumSource.js +1 -2
  109. package/Filters/Sources/ImageGridSource.js +1 -2
  110. package/Filters/Sources/LineSource.js +1 -2
  111. package/Filters/Sources/PlaneSource.js +21 -22
  112. package/Filters/Sources/PlatonicSolidSource.js +1 -2
  113. package/Filters/Sources/PointSource.js +1 -2
  114. package/Filters/Sources/RTAnalyticSource.js +1 -2
  115. package/Filters/Sources/SLICSource.js +1 -2
  116. package/Filters/Sources/SphereSource.js +1 -2
  117. package/Filters/Sources/TorusSource.js +1 -2
  118. package/Filters/Sources/ViewFinderSource.js +1 -2
  119. package/Filters/Texture/TextureMapToPlane.js +1 -2
  120. package/Filters/Texture/TextureMapToSphere.js +1 -2
  121. package/IO/Core/BinaryHelper.js +1 -2
  122. package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +4 -5
  123. package/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +7 -16
  124. package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +5 -9
  125. package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js +7 -16
  126. package/IO/Core/DataAccessHelper.js +1 -3
  127. package/IO/Core/HttpDataSetReader.js +10 -16
  128. package/IO/Core/HttpDataSetSeriesReader.js +4 -8
  129. package/IO/Core/HttpSceneLoader.js +3 -8
  130. package/IO/Core/ImageStream/DefaultProtocol.js +12 -42
  131. package/IO/Core/ImageStream/ViewStream.js +5 -8
  132. package/IO/Core/ImageStream.js +4 -9
  133. package/IO/Core/Serializer/ArraySerializer.js +1 -2
  134. package/IO/Core/WSLinkClient.js +14 -25
  135. package/IO/Core/ZipMultiDataSetReader.js +5 -12
  136. package/IO/Core/ZipMultiDataSetWriter.js +1 -2
  137. package/IO/Geometry/DracoReader.js +6 -10
  138. package/IO/Geometry/GLTFImporter/Animations.js +9 -14
  139. package/IO/Geometry/GLTFImporter/Constants.js +0 -1
  140. package/IO/Geometry/GLTFImporter/Parser.js +1 -3
  141. package/IO/Geometry/GLTFImporter/Reader.js +2 -5
  142. package/IO/Geometry/GLTFImporter.js +7 -12
  143. package/IO/Geometry/IFCImporter.d.ts +1 -1
  144. package/IO/Geometry/IFCImporter.js +6 -10
  145. package/IO/Geometry/PLYReader.js +6 -11
  146. package/IO/Geometry/PLYWriter.js +1 -2
  147. package/IO/Geometry/STLReader.js +6 -11
  148. package/IO/Geometry/STLWriter.js +2 -6
  149. package/IO/Image/HDRReader/Utils.js +1 -2
  150. package/IO/Image/HDRReader.js +7 -10
  151. package/IO/Image/TGAReader.js +7 -9
  152. package/IO/Image/TIFFReader.js +7 -10
  153. package/IO/Legacy/LegacyAsciiParser.js +1 -2
  154. package/IO/Legacy/PolyDataReader.js +5 -7
  155. package/IO/Misc/ElevationReader.js +1 -2
  156. package/IO/Misc/GCodeReader.js +6 -11
  157. package/IO/Misc/HttpDataSetLODsLoader.js +1 -2
  158. package/IO/Misc/ITKImageReader.js +6 -13
  159. package/IO/Misc/ITKPolyDataReader.js +6 -13
  160. package/IO/Misc/JSONNucleoReader.js +1 -2
  161. package/IO/Misc/JSONReader.js +4 -10
  162. package/IO/Misc/MTLReader.js +2 -4
  163. package/IO/Misc/OBJReader.js +4 -10
  164. package/IO/Misc/OBJWriter.js +1 -2
  165. package/IO/Misc/PDBReader.js +1 -2
  166. package/IO/Misc/SkyboxReader.js +5 -10
  167. package/IO/XML/XMLImageDataReader.js +1 -2
  168. package/IO/XML/XMLImageDataWriter.js +1 -2
  169. package/IO/XML/XMLPolyDataReader.js +1 -2
  170. package/IO/XML/XMLPolyDataWriter.js +1 -2
  171. package/IO/XML/XMLReader.js +4 -10
  172. package/IO/XML/XMLWriter.js +2 -4
  173. package/Imaging/Core/AbstractImageInterpolator.js +1 -3
  174. package/Imaging/Core/ImageInterpolator.js +1 -3
  175. package/Imaging/Core/ImagePointDataIterator.js +2 -6
  176. package/Imaging/Core/ImageReslice.js +1 -3
  177. package/Imaging/Hybrid/SampleFunction.js +1 -2
  178. package/Interaction/Animations/TimeStepBasedAnimationHandler.js +1 -2
  179. package/Interaction/Manipulators/3DControllerModelSelectorManipulator/index.js +1 -2
  180. package/Interaction/Manipulators/CompositeCameraManipulator.js +1 -2
  181. package/Interaction/Manipulators/CompositeGestureManipulator.js +1 -2
  182. package/Interaction/Manipulators/CompositeKeyboardManipulator.js +1 -2
  183. package/Interaction/Manipulators/CompositeMouseManipulator.js +1 -2
  184. package/Interaction/Manipulators/CompositeVRManipulator.js +1 -2
  185. package/Interaction/Manipulators/GestureCameraManipulator.js +1 -2
  186. package/Interaction/Manipulators/KeyboardCameraManipulator.js +1 -2
  187. package/Interaction/Manipulators/MouseBoxSelectorManipulator.js +1 -2
  188. package/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +1 -2
  189. package/Interaction/Manipulators/MouseCameraSliceManipulator.js +1 -2
  190. package/Interaction/Manipulators/MouseCameraTrackballFirstPersonManipulator.js +1 -2
  191. package/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.js +1 -2
  192. package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js +1 -2
  193. package/Interaction/Manipulators/MouseCameraTrackballPanManipulatorAutoCenter.js +1 -2
  194. package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +1 -2
  195. package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +1 -2
  196. package/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.js +1 -2
  197. package/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.js +1 -2
  198. package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -2
  199. package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -2
  200. package/Interaction/Manipulators/MouseRangeManipulator.js +4 -11
  201. package/Interaction/Manipulators/VRButtonPanManipulator.js +1 -2
  202. package/Interaction/Misc/DeviceOrientationToCamera.js +1 -2
  203. package/Interaction/Style/InteractorStyleHMDXR.js +1 -2
  204. package/Interaction/Style/InteractorStyleImage.js +1 -2
  205. package/Interaction/Style/InteractorStyleMPRSlice.js +2 -6
  206. package/Interaction/Style/InteractorStyleManipulator.js +1 -2
  207. package/Interaction/Style/InteractorStyleRemoteMouse.js +1 -2
  208. package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -3
  209. package/Interaction/Style/InteractorStyleUnicam.js +1 -2
  210. package/Interaction/UI/CornerAnnotation.js +2 -4
  211. package/Interaction/UI/FPSMonitor.js +3 -9
  212. package/Interaction/UI/Slider.js +1 -3
  213. package/Interaction/UI/VolumeController.js +2 -5
  214. package/Interaction/Widgets/OrientationMarkerWidget.js +1 -2
  215. package/Interaction/Widgets/PiecewiseGaussianWidget.js +42 -59
  216. package/Proxy/Animation/AbstractAnimationProxy.js +1 -2
  217. package/Proxy/Animation/AnimationProxyManager.js +1 -2
  218. package/Proxy/Animation/TimeStepBasedAnimationHandlerProxy.js +1 -2
  219. package/Proxy/Core/AbstractRepresentationProxy.js +3 -6
  220. package/Proxy/Core/LookupTableProxy.js +1 -3
  221. package/Proxy/Core/PiecewiseFunctionProxy.js +3 -11
  222. package/Proxy/Core/ProxyManager/state.js +171 -182
  223. package/Proxy/Core/ProxyManager/view.js +3 -6
  224. package/Proxy/Core/ProxyManager.js +1 -2
  225. package/Proxy/Core/SourceProxy.js +2 -6
  226. package/Proxy/Core/View2DProxy.js +2 -4
  227. package/Proxy/Core/ViewProxy.js +20 -37
  228. package/Proxy/Representations/GeometryRepresentationProxy.js +1 -2
  229. package/Proxy/Representations/GlyphRepresentationProxy.js +1 -2
  230. package/Proxy/Representations/MoleculeRepresentationProxy.js +1 -2
  231. package/Proxy/Representations/ResliceRepresentationProxy.js +3 -8
  232. package/Proxy/Representations/SkyboxRepresentationProxy.js +1 -2
  233. package/Proxy/Representations/SliceRepresentationProxy.js +3 -8
  234. package/Proxy/Representations/SlicedGeometryRepresentationProxy.js +3 -6
  235. package/Proxy/Representations/VolumeRepresentationProxy.js +9 -17
  236. package/Rendering/Core/AbstractImageMapper.js +1 -2
  237. package/Rendering/Core/AbstractMapper.js +1 -2
  238. package/Rendering/Core/AbstractMapper3D.js +1 -2
  239. package/Rendering/Core/AbstractPicker.js +1 -2
  240. package/Rendering/Core/Actor.js +1 -2
  241. package/Rendering/Core/Actor2D.js +1 -2
  242. package/Rendering/Core/AnnotatedCubeActor.js +2 -4
  243. package/Rendering/Core/AxesActor.js +2 -4
  244. package/Rendering/Core/Camera.js +2 -6
  245. package/Rendering/Core/CellPicker.js +1 -3
  246. package/Rendering/Core/ColorTransferFunction/CssFilters.js +8 -16
  247. package/Rendering/Core/ColorTransferFunction.js +4 -10
  248. package/Rendering/Core/Coordinate.js +2 -6
  249. package/Rendering/Core/CubeAxesActor.js +4 -6
  250. package/Rendering/Core/Follower.js +1 -2
  251. package/Rendering/Core/Glyph3DMapper.js +1 -2
  252. package/Rendering/Core/HardwareSelector.js +1 -2
  253. package/Rendering/Core/ImageArrayMapper.js +6 -13
  254. package/Rendering/Core/ImageCPRMapper.js +1 -2
  255. package/Rendering/Core/ImageMapper.js +2 -5
  256. package/Rendering/Core/ImageProperty.js +9 -28
  257. package/Rendering/Core/ImageResliceMapper.js +1 -2
  258. package/Rendering/Core/ImageSlice.js +1 -2
  259. package/Rendering/Core/InteractorObserver.js +1 -2
  260. package/Rendering/Core/InteractorStyle.js +1 -2
  261. package/Rendering/Core/Light.js +1 -2
  262. package/Rendering/Core/Mapper/Static.js +1 -2
  263. package/Rendering/Core/Mapper.js +1 -6
  264. package/Rendering/Core/Mapper2D.js +1 -3
  265. package/Rendering/Core/Picker.js +1 -2
  266. package/Rendering/Core/PixelSpaceCallbackMapper.js +1 -2
  267. package/Rendering/Core/PointPicker.js +1 -2
  268. package/Rendering/Core/Prop.js +1 -2
  269. package/Rendering/Core/Prop3D.js +3 -8
  270. package/Rendering/Core/Property.js +1 -2
  271. package/Rendering/Core/Property2D.js +1 -2
  272. package/Rendering/Core/RenderWindow.js +4 -11
  273. package/Rendering/Core/RenderWindowInteractor/Constants.js +0 -1
  274. package/Rendering/Core/RenderWindowInteractor.js +7 -12
  275. package/Rendering/Core/Renderer.js +3 -6
  276. package/Rendering/Core/ScalarBarActor.js +4 -6
  277. package/Rendering/Core/Skybox.js +1 -2
  278. package/Rendering/Core/SphereMapper.js +1 -2
  279. package/Rendering/Core/StickMapper.js +1 -2
  280. package/Rendering/Core/SurfaceLICInterface.js +1 -2
  281. package/Rendering/Core/SurfaceLICMapper.js +1 -2
  282. package/Rendering/Core/TextActor.js +1 -2
  283. package/Rendering/Core/TextProperty.js +1 -2
  284. package/Rendering/Core/Texture.js +1 -2
  285. package/Rendering/Core/VectorText/Utils.js +4 -8
  286. package/Rendering/Core/VectorText.js +1 -3
  287. package/Rendering/Core/Viewport.js +2 -4
  288. package/Rendering/Core/Volume.js +1 -2
  289. package/Rendering/Core/VolumeMapper.js +1 -2
  290. package/Rendering/Core/VolumeProperty.js +9 -22
  291. package/Rendering/Misc/CanvasView.js +1 -2
  292. package/Rendering/Misc/FullScreenRenderWindow.js +1 -2
  293. package/Rendering/Misc/GenericRenderWindow.js +1 -2
  294. package/Rendering/Misc/RemoteView.js +1 -2
  295. package/Rendering/Misc/RenderWindowWithControlBar.js +1 -2
  296. package/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager/CameraSynchronizer.js +1 -3
  297. package/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager.js +5 -6
  298. package/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.js +24 -43
  299. package/Rendering/Misc/SynchronizableRenderWindow.js +3 -6
  300. package/Rendering/Misc/TextureLODsDownloader.js +1 -2
  301. package/Rendering/OpenGL/Actor.js +1 -2
  302. package/Rendering/OpenGL/Actor2D.js +1 -2
  303. package/Rendering/OpenGL/BufferObject.js +1 -3
  304. package/Rendering/OpenGL/Camera.js +1 -2
  305. package/Rendering/OpenGL/CellArrayBufferObject.js +2 -4
  306. package/Rendering/OpenGL/Convolution2DPass.js +2 -3
  307. package/Rendering/OpenGL/CubeAxesActor.js +1 -2
  308. package/Rendering/OpenGL/ForwardPass.js +2 -4
  309. package/Rendering/OpenGL/Framebuffer.js +4 -8
  310. package/Rendering/OpenGL/Glyph3DMapper.js +1 -2
  311. package/Rendering/OpenGL/HardwareSelector.js +21 -27
  312. package/Rendering/OpenGL/Helper.js +1 -2
  313. package/Rendering/OpenGL/ImageCPRMapper.js +1 -2
  314. package/Rendering/OpenGL/ImageMapper.js +1 -2
  315. package/Rendering/OpenGL/ImageResliceMapper.js +10 -16
  316. package/Rendering/OpenGL/ImageSlice.js +1 -2
  317. package/Rendering/OpenGL/OrderIndependentTranslucentPass.js +1 -2
  318. package/Rendering/OpenGL/PixelSpaceCallbackMapper.js +1 -2
  319. package/Rendering/OpenGL/PolyDataMapper.js +1 -2
  320. package/Rendering/OpenGL/PolyDataMapper2D.js +1 -2
  321. package/Rendering/OpenGL/RadialDistortionPass.js +2 -3
  322. package/Rendering/OpenGL/RenderWindow.js +33 -53
  323. package/Rendering/OpenGL/Renderer.js +1 -3
  324. package/Rendering/OpenGL/ReplacementShaderMapper.js +2 -2
  325. package/Rendering/OpenGL/ScalarBarActor.js +1 -2
  326. package/Rendering/OpenGL/Shader.js +1 -2
  327. package/Rendering/OpenGL/ShaderCache.js +1 -2
  328. package/Rendering/OpenGL/ShaderProgram.js +4 -14
  329. package/Rendering/OpenGL/Skybox.js +1 -2
  330. package/Rendering/OpenGL/SphereMapper.js +1 -2
  331. package/Rendering/OpenGL/StickMapper.js +1 -2
  332. package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js +6 -12
  333. package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js +4 -12
  334. package/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js +2 -4
  335. package/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js +1 -2
  336. package/Rendering/OpenGL/Texture.js +91 -113
  337. package/Rendering/OpenGL/TextureUnitManager.js +1 -2
  338. package/Rendering/OpenGL/VertexArrayObject.js +1 -2
  339. package/Rendering/OpenGL/ViewNodeFactory.js +1 -2
  340. package/Rendering/OpenGL/Volume.js +1 -2
  341. package/Rendering/OpenGL/VolumeMapper.js +11 -17
  342. package/Rendering/SceneGraph/RenderPass.js +2 -4
  343. package/Rendering/SceneGraph/RenderWindowViewNode.js +1 -2
  344. package/Rendering/SceneGraph/ViewNode.js +3 -6
  345. package/Rendering/SceneGraph/ViewNodeFactory.js +1 -2
  346. package/Rendering/WebGPU/Actor.js +1 -2
  347. package/Rendering/WebGPU/Actor2D.js +1 -2
  348. package/Rendering/WebGPU/BindGroup.js +1 -2
  349. package/Rendering/WebGPU/Buffer.js +2 -5
  350. package/Rendering/WebGPU/BufferManager.js +1 -2
  351. package/Rendering/WebGPU/Camera.js +1 -2
  352. package/Rendering/WebGPU/CellArrayMapper.js +3 -6
  353. package/Rendering/WebGPU/CubeAxesActor.js +1 -2
  354. package/Rendering/WebGPU/Device.js +2 -6
  355. package/Rendering/WebGPU/ForwardPass.js +2 -4
  356. package/Rendering/WebGPU/FullScreenQuad.js +1 -2
  357. package/Rendering/WebGPU/Glyph3DMapper.js +2 -4
  358. package/Rendering/WebGPU/HardwareSelectionPass.js +1 -2
  359. package/Rendering/WebGPU/HardwareSelector.js +1 -2
  360. package/Rendering/WebGPU/ImageMapper.js +1 -2
  361. package/Rendering/WebGPU/ImageSlice.js +1 -2
  362. package/Rendering/WebGPU/IndexBuffer.js +1 -2
  363. package/Rendering/WebGPU/OpaquePass.js +1 -2
  364. package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +1 -2
  365. package/Rendering/WebGPU/Pipeline.js +1 -2
  366. package/Rendering/WebGPU/PixelSpaceCallbackMapper.js +1 -2
  367. package/Rendering/WebGPU/PolyDataMapper.js +1 -2
  368. package/Rendering/WebGPU/PolyDataMapper2D.js +1 -2
  369. package/Rendering/WebGPU/RenderEncoder.js +2 -5
  370. package/Rendering/WebGPU/RenderWindow.js +15 -25
  371. package/Rendering/WebGPU/Renderer.js +1 -2
  372. package/Rendering/WebGPU/Sampler.js +2 -4
  373. package/Rendering/WebGPU/ScalarBarActor.js +1 -2
  374. package/Rendering/WebGPU/ShaderCache.js +2 -4
  375. package/Rendering/WebGPU/ShaderDescription.js +2 -4
  376. package/Rendering/WebGPU/ShaderModule.js +1 -2
  377. package/Rendering/WebGPU/SimpleMapper.js +1 -3
  378. package/Rendering/WebGPU/SphereMapper.js +1 -2
  379. package/Rendering/WebGPU/StickMapper.js +1 -2
  380. package/Rendering/WebGPU/StorageBuffer.js +1 -2
  381. package/Rendering/WebGPU/Texture.js +3 -7
  382. package/Rendering/WebGPU/TextureManager.js +2 -6
  383. package/Rendering/WebGPU/TextureView.js +1 -3
  384. package/Rendering/WebGPU/UniformBuffer.js +1 -2
  385. package/Rendering/WebGPU/VertexInput.js +2 -4
  386. package/Rendering/WebGPU/ViewNodeFactory.js +1 -2
  387. package/Rendering/WebGPU/Volume.js +1 -2
  388. package/Rendering/WebGPU/VolumePass.js +1 -2
  389. package/Rendering/WebGPU/VolumePassFSQ.js +1 -2
  390. package/Rendering/WebXR/RenderWindowHelper.js +2 -6
  391. package/Widgets/Core/AbstractWidget.js +6 -10
  392. package/Widgets/Core/AbstractWidgetFactory.js +17 -22
  393. package/Widgets/Core/StateBuilder/boundsMixin.js +1 -2
  394. package/Widgets/Core/StateBuilder/color3Mixin.js +1 -2
  395. package/Widgets/Core/StateBuilder/colorMixin.js +1 -2
  396. package/Widgets/Core/StateBuilder/cornerMixin.js +1 -2
  397. package/Widgets/Core/StateBuilder/directionMixin.js +1 -2
  398. package/Widgets/Core/StateBuilder/manipulatorMixin.js +1 -2
  399. package/Widgets/Core/StateBuilder/nameMixin.js +1 -2
  400. package/Widgets/Core/StateBuilder/orientationMixin.js +1 -2
  401. package/Widgets/Core/StateBuilder/originMixin.js +1 -2
  402. package/Widgets/Core/StateBuilder/scale1Mixin.js +1 -2
  403. package/Widgets/Core/StateBuilder/scale3Mixin.js +1 -2
  404. package/Widgets/Core/StateBuilder/shapeMixin.js +1 -2
  405. package/Widgets/Core/StateBuilder/textMixin.js +1 -2
  406. package/Widgets/Core/StateBuilder/visibleMixin.js +1 -2
  407. package/Widgets/Core/StateBuilder.js +23 -33
  408. package/Widgets/Core/WidgetManager/Constants.js +0 -1
  409. package/Widgets/Core/WidgetManager.js +25 -30
  410. package/Widgets/Core/WidgetState.js +2 -4
  411. package/Widgets/Manipulators/AbstractManipulator.js +1 -2
  412. package/Widgets/Manipulators/CPRManipulator.js +1 -2
  413. package/Widgets/Manipulators/LineManipulator.js +1 -2
  414. package/Widgets/Manipulators/PickerManipulator.js +1 -2
  415. package/Widgets/Manipulators/PlaneManipulator.js +1 -2
  416. package/Widgets/Manipulators/TrackballManipulator.js +1 -2
  417. package/Widgets/Representations/ArrowHandleRepresentation.js +2 -6
  418. package/Widgets/Representations/CircleContextRepresentation.js +1 -2
  419. package/Widgets/Representations/ContextRepresentation.js +1 -2
  420. package/Widgets/Representations/ConvexFaceContextRepresentation.js +2 -6
  421. package/Widgets/Representations/CroppingOutlineRepresentation.js +1 -2
  422. package/Widgets/Representations/CubeHandleRepresentation.js +1 -2
  423. package/Widgets/Representations/GlyphRepresentation.js +3 -11
  424. package/Widgets/Representations/HandleRepresentation.js +1 -2
  425. package/Widgets/Representations/ImplicitPlaneRepresentation.js +1 -2
  426. package/Widgets/Representations/LineHandleRepresentation.js +1 -2
  427. package/Widgets/Representations/OutlineContextRepresentation.js +1 -2
  428. package/Widgets/Representations/PolyLineRepresentation.js +2 -4
  429. package/Widgets/Representations/RectangleContextRepresentation.js +1 -2
  430. package/Widgets/Representations/RotateTransformHandleRepresentation.js +1 -2
  431. package/Widgets/Representations/ScaleTransformHandleRepresentation.js +1 -2
  432. package/Widgets/Representations/SphereContextRepresentation.js +1 -2
  433. package/Widgets/Representations/SphereHandleRepresentation.js +1 -2
  434. package/Widgets/Representations/SplineContextRepresentation.js +2 -6
  435. package/Widgets/Representations/TranslateTransformHandleRepresentation/TransformHandleSource.js +1 -2
  436. package/Widgets/Representations/TranslateTransformHandleRepresentation.js +1 -2
  437. package/Widgets/Representations/WidgetRepresentation.js +6 -20
  438. package/Widgets/Widgets3D/AngleWidget.js +1 -2
  439. package/Widgets/Widgets3D/EllipseWidget.js +1 -2
  440. package/Widgets/Widgets3D/ImageCroppingWidget.js +1 -2
  441. package/Widgets/Widgets3D/ImplicitPlaneWidget.js +1 -3
  442. package/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.js +6 -7
  443. package/Widgets/Widgets3D/InteractiveOrientationWidget/state.js +0 -1
  444. package/Widgets/Widgets3D/InteractiveOrientationWidget.js +1 -2
  445. package/Widgets/Widgets3D/LabelWidget.js +1 -2
  446. package/Widgets/Widgets3D/LineWidget/behavior.js +1 -2
  447. package/Widgets/Widgets3D/LineWidget/helpers.js +1 -2
  448. package/Widgets/Widgets3D/LineWidget.js +1 -2
  449. package/Widgets/Widgets3D/PaintWidget.js +1 -2
  450. package/Widgets/Widgets3D/PolyLineWidget/behavior.js +3 -4
  451. package/Widgets/Widgets3D/PolyLineWidget.js +1 -2
  452. package/Widgets/Widgets3D/RectangleWidget.js +1 -2
  453. package/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +0 -1
  454. package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +0 -1
  455. package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +2 -3
  456. package/Widgets/Widgets3D/ResliceCursorWidget/state.js +1 -3
  457. package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -3
  458. package/Widgets/Widgets3D/SeedWidget.js +1 -2
  459. package/Widgets/Widgets3D/ShapeWidget/behavior.js +7 -10
  460. package/Widgets/Widgets3D/ShapeWidget.js +1 -2
  461. package/Widgets/Widgets3D/SphereWidget.js +1 -2
  462. package/Widgets/Widgets3D/SplineWidget/behavior.js +13 -13
  463. package/Widgets/Widgets3D/SplineWidget.js +1 -2
  464. package/Widgets/Widgets3D/TransformControlsWidget.js +1 -2
  465. package/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +20 -25
  466. package/macros2.js +46 -114
  467. package/package.json +22 -15
@@ -175,8 +175,7 @@ const DEFAULT_VALUES = {};
175
175
 
176
176
  // ----------------------------------------------------------------------------
177
177
 
178
- function extend(publicAPI, model) {
179
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
178
+ function extend(publicAPI, model, initialValues = {}) {
180
179
  Object.assign(model, DEFAULT_VALUES, initialValues);
181
180
 
182
181
  // Make this a VTK object
@@ -113,8 +113,7 @@ const DEFAULT_VALUES = {};
113
113
 
114
114
  // ----------------------------------------------------------------------------
115
115
 
116
- function extend(publicAPI, model) {
117
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
116
+ function extend(publicAPI, model, initialValues = {}) {
118
117
  Object.assign(model, DEFAULT_VALUES, initialValues);
119
118
  macro.obj(publicAPI, model);
120
119
  macro.algo(publicAPI, model, 1, 1);
@@ -19,9 +19,7 @@ const {
19
19
  * @param {Number} firstIdx
20
20
  * @param {Number} lastIdx
21
21
  */
22
- function reverseElements(arr) {
23
- let firstIdx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
24
- let lastIdx = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
22
+ function reverseElements(arr, firstIdx = undefined, lastIdx = undefined) {
25
23
  const first = firstIdx ?? 0;
26
24
  const last = lastIdx ?? arr.length - 1;
27
25
  const mid = first + Math.floor((last - first) / 2);
@@ -411,7 +409,6 @@ function vtkCCSMakePolysFromLines(polyData, firstLine, endLine, oriented, newPol
411
409
  // If there are multiple matches due to intersections,
412
410
  // they should be dealt with here.
413
411
  }
414
-
415
412
  lineId = matches[0];
416
413
  pts = polyData.getCellPoints(lineId).cellPointIds;
417
414
  npts = pts.length;
@@ -1466,7 +1463,6 @@ function vtkCCSCutQuality(outerPoly, innerPoly, i, j, points) {
1466
1463
  if (l1 > 0) {
1467
1464
  return qmax / l1; // also l1 + qmax, incorporates distance;
1468
1465
  }
1469
-
1470
1466
  return Number.MAX_VALUE;
1471
1467
  }
1472
1468
 
@@ -11,8 +11,7 @@ const {
11
11
  const TRIANGULATION_ERROR_DISPLAY = false;
12
12
 
13
13
  //------------------------------------------------------------------------------
14
- function triangulateContours(polyData, firstLine, numLines, polys, normal) {
15
- let triangulatePolys = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
14
+ function triangulateContours(polyData, firstLine, numLines, polys, normal, triangulatePolys = true) {
16
15
  let triangulationFailure = false;
17
16
 
18
17
  // If no cut lines were generated, there's nothing to do
@@ -174,8 +173,7 @@ const DEFAULT_VALUES = {
174
173
 
175
174
  // ----------------------------------------------------------------------------
176
175
 
177
- function extend(publicAPI, model) {
178
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
176
+ function extend(publicAPI, model, initialValues = {}) {
179
177
  Object.assign(model, DEFAULT_VALUES, initialValues);
180
178
 
181
179
  // Make this a VTK object
@@ -123,8 +123,7 @@ const DEFAULT_VALUES = {
123
123
 
124
124
  // ----------------------------------------------------------------------------
125
125
 
126
- function extend(publicAPI, model) {
127
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
126
+ function extend(publicAPI, model, initialValues = {}) {
128
127
  Object.assign(model, DEFAULT_VALUES, initialValues);
129
128
 
130
129
  // Make this a VTK object
@@ -56,8 +56,7 @@ const DEFAULT_VALUES = {};
56
56
 
57
57
  // ----------------------------------------------------------------------------
58
58
 
59
- function extend(publicAPI, model) {
60
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
59
+ function extend(publicAPI, model, initialValues = {}) {
61
60
  Object.assign(model, DEFAULT_VALUES, initialValues);
62
61
 
63
62
  // Make this a VTK object
@@ -5,7 +5,6 @@
5
5
  // triangle points.
6
6
  // ----------------------------------------------------------------------------
7
7
  const MARCHING_CUBE_CASES = [[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 0 0 */, [0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 1 1 */, [0, 9, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 2 1 */, [1, 3, 8, 9, 1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 3 2 */, [1, 11, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 4 1 */, [0, 3, 8, 1, 11, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 5 3 */, [9, 11, 2, 0, 9, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 6 2 */, [2, 3, 8, 2, 8, 11, 11, 8, 9, -1, -1, -1, -1, -1, -1, -1] /* 7 5 */, [3, 2, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 8 1 */, [0, 2, 10, 8, 0, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 9 2 */, [1, 0, 9, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 10 3 */, [1, 2, 10, 1, 10, 9, 9, 10, 8, -1, -1, -1, -1, -1, -1, -1] /* 11 5 */, [3, 1, 11, 10, 3, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 12 2 */, [0, 1, 11, 0, 11, 8, 8, 11, 10, -1, -1, -1, -1, -1, -1, -1] /* 13 5 */, [3, 0, 9, 3, 9, 10, 10, 9, 11, -1, -1, -1, -1, -1, -1, -1] /* 14 5 */, [9, 11, 8, 11, 10, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 15 8 */, [4, 8, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 16 1 */, [4, 0, 3, 7, 4, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 17 2 */, [0, 9, 1, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 18 3 */, [4, 9, 1, 4, 1, 7, 7, 1, 3, -1, -1, -1, -1, -1, -1, -1] /* 19 5 */, [1, 11, 2, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 20 4 */, [3, 7, 4, 3, 4, 0, 1, 11, 2, -1, -1, -1, -1, -1, -1, -1] /* 21 7 */, [9, 11, 2, 9, 2, 0, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1] /* 22 7 */, [2, 9, 11, 2, 7, 9, 2, 3, 7, 7, 4, 9, -1, -1, -1, -1] /* 23 14 */, [8, 7, 4, 3, 2, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 24 3 */, [10, 7, 4, 10, 4, 2, 2, 4, 0, -1, -1, -1, -1, -1, -1, -1] /* 25 5 */, [9, 1, 0, 8, 7, 4, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1] /* 26 6 */, [4, 10, 7, 9, 10, 4, 9, 2, 10, 9, 1, 2, -1, -1, -1, -1] /* 27 9 */, [3, 1, 11, 3, 11, 10, 7, 4, 8, -1, -1, -1, -1, -1, -1, -1] /* 28 7 */, [1, 11, 10, 1, 10, 4, 1, 4, 0, 7, 4, 10, -1, -1, -1, -1] /* 29 11 */, [4, 8, 7, 9, 10, 0, 9, 11, 10, 10, 3, 0, -1, -1, -1, -1] /* 30 12 */, [4, 10, 7, 4, 9, 10, 9, 11, 10, -1, -1, -1, -1, -1, -1, -1] /* 31 5 */, [9, 4, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 32 1 */, [9, 4, 5, 0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 33 3 */, [0, 4, 5, 1, 0, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 34 2 */, [8, 4, 5, 8, 5, 3, 3, 5, 1, -1, -1, -1, -1, -1, -1, -1] /* 35 5 */, [1, 11, 2, 9, 4, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 36 3 */, [3, 8, 0, 1, 11, 2, 4, 5, 9, -1, -1, -1, -1, -1, -1, -1] /* 37 6 */, [5, 11, 2, 5, 2, 4, 4, 2, 0, -1, -1, -1, -1, -1, -1, -1] /* 38 5 */, [2, 5, 11, 3, 5, 2, 3, 4, 5, 3, 8, 4, -1, -1, -1, -1] /* 39 9 */, [9, 4, 5, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 40 4 */, [0, 2, 10, 0, 10, 8, 4, 5, 9, -1, -1, -1, -1, -1, -1, -1] /* 41 7 */, [0, 4, 5, 0, 5, 1, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1] /* 42 7 */, [2, 5, 1, 2, 8, 5, 2, 10, 8, 4, 5, 8, -1, -1, -1, -1] /* 43 11 */, [11, 10, 3, 11, 3, 1, 9, 4, 5, -1, -1, -1, -1, -1, -1, -1] /* 44 7 */, [4, 5, 9, 0, 1, 8, 8, 1, 11, 8, 11, 10, -1, -1, -1, -1] /* 45 12 */, [5, 0, 4, 5, 10, 0, 5, 11, 10, 10, 3, 0, -1, -1, -1, -1] /* 46 14 */, [5, 8, 4, 5, 11, 8, 11, 10, 8, -1, -1, -1, -1, -1, -1, -1] /* 47 5 */, [9, 8, 7, 5, 9, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 48 2 */, [9, 0, 3, 9, 3, 5, 5, 3, 7, -1, -1, -1, -1, -1, -1, -1] /* 49 5 */, [0, 8, 7, 0, 7, 1, 1, 7, 5, -1, -1, -1, -1, -1, -1, -1] /* 50 5 */, [1, 3, 5, 3, 7, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 51 8 */, [9, 8, 7, 9, 7, 5, 11, 2, 1, -1, -1, -1, -1, -1, -1, -1] /* 52 7 */, [11, 2, 1, 9, 0, 5, 5, 0, 3, 5, 3, 7, -1, -1, -1, -1] /* 53 12 */, [8, 2, 0, 8, 5, 2, 8, 7, 5, 11, 2, 5, -1, -1, -1, -1] /* 54 11 */, [2, 5, 11, 2, 3, 5, 3, 7, 5, -1, -1, -1, -1, -1, -1, -1] /* 55 5 */, [7, 5, 9, 7, 9, 8, 3, 2, 10, -1, -1, -1, -1, -1, -1, -1] /* 56 7 */, [9, 7, 5, 9, 2, 7, 9, 0, 2, 2, 10, 7, -1, -1, -1, -1] /* 57 14 */, [2, 10, 3, 0, 8, 1, 1, 8, 7, 1, 7, 5, -1, -1, -1, -1] /* 58 12 */, [10, 1, 2, 10, 7, 1, 7, 5, 1, -1, -1, -1, -1, -1, -1, -1] /* 59 5 */, [9, 8, 5, 8, 7, 5, 11, 3, 1, 11, 10, 3, -1, -1, -1, -1] /* 60 10 */, [5, 0, 7, 5, 9, 0, 7, 0, 10, 1, 11, 0, 10, 0, 11, -1] /* 61 7 */, [10, 0, 11, 10, 3, 0, 11, 0, 5, 8, 7, 0, 5, 0, 7, -1] /* 62 7 */, [10, 5, 11, 7, 5, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 63 2 */, [11, 5, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 64 1 */, [0, 3, 8, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 65 4 */, [9, 1, 0, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 66 3 */, [1, 3, 8, 1, 8, 9, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1] /* 67 7 */, [1, 5, 6, 2, 1, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 68 2 */, [1, 5, 6, 1, 6, 2, 3, 8, 0, -1, -1, -1, -1, -1, -1, -1] /* 69 7 */, [9, 5, 6, 9, 6, 0, 0, 6, 2, -1, -1, -1, -1, -1, -1, -1] /* 70 5 */, [5, 8, 9, 5, 2, 8, 5, 6, 2, 3, 8, 2, -1, -1, -1, -1] /* 71 11 */, [2, 10, 3, 11, 5, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 72 3 */, [10, 8, 0, 10, 0, 2, 11, 5, 6, -1, -1, -1, -1, -1, -1, -1] /* 73 7 */, [0, 9, 1, 2, 10, 3, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1] /* 74 6 */, [5, 6, 11, 1, 2, 9, 9, 2, 10, 9, 10, 8, -1, -1, -1, -1] /* 75 12 */, [6, 10, 3, 6, 3, 5, 5, 3, 1, -1, -1, -1, -1, -1, -1, -1] /* 76 5 */, [0, 10, 8, 0, 5, 10, 0, 1, 5, 5, 6, 10, -1, -1, -1, -1] /* 77 14 */, [3, 6, 10, 0, 6, 3, 0, 5, 6, 0, 9, 5, -1, -1, -1, -1] /* 78 9 */, [6, 9, 5, 6, 10, 9, 10, 8, 9, -1, -1, -1, -1, -1, -1, -1] /* 79 5 */, [5, 6, 11, 4, 8, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 80 3 */, [4, 0, 3, 4, 3, 7, 6, 11, 5, -1, -1, -1, -1, -1, -1, -1] /* 81 7 */, [1, 0, 9, 5, 6, 11, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1] /* 82 6 */, [11, 5, 6, 1, 7, 9, 1, 3, 7, 7, 4, 9, -1, -1, -1, -1] /* 83 12 */, [6, 2, 1, 6, 1, 5, 4, 8, 7, -1, -1, -1, -1, -1, -1, -1] /* 84 7 */, [1, 5, 2, 5, 6, 2, 3, 4, 0, 3, 7, 4, -1, -1, -1, -1] /* 85 10 */, [8, 7, 4, 9, 5, 0, 0, 5, 6, 0, 6, 2, -1, -1, -1, -1] /* 86 12 */, [7, 9, 3, 7, 4, 9, 3, 9, 2, 5, 6, 9, 2, 9, 6, -1] /* 87 7 */, [3, 2, 10, 7, 4, 8, 11, 5, 6, -1, -1, -1, -1, -1, -1, -1] /* 88 6 */, [5, 6, 11, 4, 2, 7, 4, 0, 2, 2, 10, 7, -1, -1, -1, -1] /* 89 12 */, [0, 9, 1, 4, 8, 7, 2, 10, 3, 5, 6, 11, -1, -1, -1, -1] /* 90 13 */, [9, 1, 2, 9, 2, 10, 9, 10, 4, 7, 4, 10, 5, 6, 11, -1] /* 91 6 */, [8, 7, 4, 3, 5, 10, 3, 1, 5, 5, 6, 10, -1, -1, -1, -1] /* 92 12 */, [5, 10, 1, 5, 6, 10, 1, 10, 0, 7, 4, 10, 0, 10, 4, -1] /* 93 7 */, [0, 9, 5, 0, 5, 6, 0, 6, 3, 10, 3, 6, 8, 7, 4, -1] /* 94 6 */, [6, 9, 5, 6, 10, 9, 4, 9, 7, 7, 9, 10, -1, -1, -1, -1] /* 95 3 */, [11, 9, 4, 6, 11, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 96 2 */, [4, 6, 11, 4, 11, 9, 0, 3, 8, -1, -1, -1, -1, -1, -1, -1] /* 97 7 */, [11, 1, 0, 11, 0, 6, 6, 0, 4, -1, -1, -1, -1, -1, -1, -1] /* 98 5 */, [8, 1, 3, 8, 6, 1, 8, 4, 6, 6, 11, 1, -1, -1, -1, -1] /* 99 14 */, [1, 9, 4, 1, 4, 2, 2, 4, 6, -1, -1, -1, -1, -1, -1, -1] /* 100 5 */, [3, 8, 0, 1, 9, 2, 2, 9, 4, 2, 4, 6, -1, -1, -1, -1] /* 101 12 */, [0, 4, 2, 4, 6, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 102 8 */, [8, 2, 3, 8, 4, 2, 4, 6, 2, -1, -1, -1, -1, -1, -1, -1] /* 103 5 */, [11, 9, 4, 11, 4, 6, 10, 3, 2, -1, -1, -1, -1, -1, -1, -1] /* 104 7 */, [0, 2, 8, 2, 10, 8, 4, 11, 9, 4, 6, 11, -1, -1, -1, -1] /* 105 10 */, [3, 2, 10, 0, 6, 1, 0, 4, 6, 6, 11, 1, -1, -1, -1, -1] /* 106 12 */, [6, 1, 4, 6, 11, 1, 4, 1, 8, 2, 10, 1, 8, 1, 10, -1] /* 107 7 */, [9, 4, 6, 9, 6, 3, 9, 3, 1, 10, 3, 6, -1, -1, -1, -1] /* 108 11 */, [8, 1, 10, 8, 0, 1, 10, 1, 6, 9, 4, 1, 6, 1, 4, -1] /* 109 7 */, [3, 6, 10, 3, 0, 6, 0, 4, 6, -1, -1, -1, -1, -1, -1, -1] /* 110 5 */, [6, 8, 4, 10, 8, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 111 2 */, [7, 6, 11, 7, 11, 8, 8, 11, 9, -1, -1, -1, -1, -1, -1, -1] /* 112 5 */, [0, 3, 7, 0, 7, 11, 0, 11, 9, 6, 11, 7, -1, -1, -1, -1] /* 113 11 */, [11, 7, 6, 1, 7, 11, 1, 8, 7, 1, 0, 8, -1, -1, -1, -1] /* 114 9 */, [11, 7, 6, 11, 1, 7, 1, 3, 7, -1, -1, -1, -1, -1, -1, -1] /* 115 5 */, [1, 6, 2, 1, 8, 6, 1, 9, 8, 8, 7, 6, -1, -1, -1, -1] /* 116 14 */, [2, 9, 6, 2, 1, 9, 6, 9, 7, 0, 3, 9, 7, 9, 3, -1] /* 117 7 */, [7, 0, 8, 7, 6, 0, 6, 2, 0, -1, -1, -1, -1, -1, -1, -1] /* 118 5 */, [7, 2, 3, 6, 2, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 119 2 */, [2, 10, 3, 11, 8, 6, 11, 9, 8, 8, 7, 6, -1, -1, -1, -1] /* 120 12 */, [2, 7, 0, 2, 10, 7, 0, 7, 9, 6, 11, 7, 9, 7, 11, -1] /* 121 7 */, [1, 0, 8, 1, 8, 7, 1, 7, 11, 6, 11, 7, 2, 10, 3, -1] /* 122 6 */, [10, 1, 2, 10, 7, 1, 11, 1, 6, 6, 1, 7, -1, -1, -1, -1] /* 123 3 */, [8, 6, 9, 8, 7, 6, 9, 6, 1, 10, 3, 6, 1, 6, 3, -1] /* 124 7 */, [0, 1, 9, 10, 7, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 125 4 */, [7, 0, 8, 7, 6, 0, 3, 0, 10, 10, 0, 6, -1, -1, -1, -1] /* 126 3 */, [7, 6, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 127 1 */, [7, 10, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 128 1 */, [3, 8, 0, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 129 3 */, [0, 9, 1, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 130 4 */, [8, 9, 1, 8, 1, 3, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1] /* 131 7 */, [11, 2, 1, 6, 7, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 132 3 */, [1, 11, 2, 3, 8, 0, 6, 7, 10, -1, -1, -1, -1, -1, -1, -1] /* 133 6 */, [2, 0, 9, 2, 9, 11, 6, 7, 10, -1, -1, -1, -1, -1, -1, -1] /* 134 7 */, [6, 7, 10, 2, 3, 11, 11, 3, 8, 11, 8, 9, -1, -1, -1, -1] /* 135 12 */, [7, 3, 2, 6, 7, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 136 2 */, [7, 8, 0, 7, 0, 6, 6, 0, 2, -1, -1, -1, -1, -1, -1, -1] /* 137 5 */, [2, 6, 7, 2, 7, 3, 0, 9, 1, -1, -1, -1, -1, -1, -1, -1] /* 138 7 */, [1, 2, 6, 1, 6, 8, 1, 8, 9, 8, 6, 7, -1, -1, -1, -1] /* 139 14 */, [11, 6, 7, 11, 7, 1, 1, 7, 3, -1, -1, -1, -1, -1, -1, -1] /* 140 5 */, [11, 6, 7, 1, 11, 7, 1, 7, 8, 1, 8, 0, -1, -1, -1, -1] /* 141 9 */, [0, 7, 3, 0, 11, 7, 0, 9, 11, 6, 7, 11, -1, -1, -1, -1] /* 142 11 */, [7, 11, 6, 7, 8, 11, 8, 9, 11, -1, -1, -1, -1, -1, -1, -1] /* 143 5 */, [6, 4, 8, 10, 6, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 144 2 */, [3, 10, 6, 3, 6, 0, 0, 6, 4, -1, -1, -1, -1, -1, -1, -1] /* 145 5 */, [8, 10, 6, 8, 6, 4, 9, 1, 0, -1, -1, -1, -1, -1, -1, -1] /* 146 7 */, [9, 6, 4, 9, 3, 6, 9, 1, 3, 10, 6, 3, -1, -1, -1, -1] /* 147 11 */, [6, 4, 8, 6, 8, 10, 2, 1, 11, -1, -1, -1, -1, -1, -1, -1] /* 148 7 */, [1, 11, 2, 3, 10, 0, 0, 10, 6, 0, 6, 4, -1, -1, -1, -1] /* 149 12 */, [4, 8, 10, 4, 10, 6, 0, 9, 2, 2, 9, 11, -1, -1, -1, -1] /* 150 10 */, [11, 3, 9, 11, 2, 3, 9, 3, 4, 10, 6, 3, 4, 3, 6, -1] /* 151 7 */, [8, 3, 2, 8, 2, 4, 4, 2, 6, -1, -1, -1, -1, -1, -1, -1] /* 152 5 */, [0, 2, 4, 4, 2, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 153 8 */, [1, 0, 9, 2, 4, 3, 2, 6, 4, 4, 8, 3, -1, -1, -1, -1] /* 154 12 */, [1, 4, 9, 1, 2, 4, 2, 6, 4, -1, -1, -1, -1, -1, -1, -1] /* 155 5 */, [8, 3, 1, 8, 1, 6, 8, 6, 4, 6, 1, 11, -1, -1, -1, -1] /* 156 14 */, [11, 0, 1, 11, 6, 0, 6, 4, 0, -1, -1, -1, -1, -1, -1, -1] /* 157 5 */, [4, 3, 6, 4, 8, 3, 6, 3, 11, 0, 9, 3, 11, 3, 9, -1] /* 158 7 */, [11, 4, 9, 6, 4, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 159 2 */, [4, 5, 9, 7, 10, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 160 3 */, [0, 3, 8, 4, 5, 9, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1] /* 161 6 */, [5, 1, 0, 5, 0, 4, 7, 10, 6, -1, -1, -1, -1, -1, -1, -1] /* 162 7 */, [10, 6, 7, 8, 4, 3, 3, 4, 5, 3, 5, 1, -1, -1, -1, -1] /* 163 12 */, [9, 4, 5, 11, 2, 1, 7, 10, 6, -1, -1, -1, -1, -1, -1, -1] /* 164 6 */, [6, 7, 10, 1, 11, 2, 0, 3, 8, 4, 5, 9, -1, -1, -1, -1] /* 165 13 */, [7, 10, 6, 5, 11, 4, 4, 11, 2, 4, 2, 0, -1, -1, -1, -1] /* 166 12 */, [3, 8, 4, 3, 4, 5, 3, 5, 2, 11, 2, 5, 10, 6, 7, -1] /* 167 6 */, [7, 3, 2, 7, 2, 6, 5, 9, 4, -1, -1, -1, -1, -1, -1, -1] /* 168 7 */, [9, 4, 5, 0, 6, 8, 0, 2, 6, 6, 7, 8, -1, -1, -1, -1] /* 169 12 */, [3, 2, 6, 3, 6, 7, 1, 0, 5, 5, 0, 4, -1, -1, -1, -1] /* 170 10 */, [6, 8, 2, 6, 7, 8, 2, 8, 1, 4, 5, 8, 1, 8, 5, -1] /* 171 7 */, [9, 4, 5, 11, 6, 1, 1, 6, 7, 1, 7, 3, -1, -1, -1, -1] /* 172 12 */, [1, 11, 6, 1, 6, 7, 1, 7, 0, 8, 0, 7, 9, 4, 5, -1] /* 173 6 */, [4, 11, 0, 4, 5, 11, 0, 11, 3, 6, 7, 11, 3, 11, 7, -1] /* 174 7 */, [7, 11, 6, 7, 8, 11, 5, 11, 4, 4, 11, 8, -1, -1, -1, -1] /* 175 3 */, [6, 5, 9, 6, 9, 10, 10, 9, 8, -1, -1, -1, -1, -1, -1, -1] /* 176 5 */, [3, 10, 6, 0, 3, 6, 0, 6, 5, 0, 5, 9, -1, -1, -1, -1] /* 177 9 */, [0, 8, 10, 0, 10, 5, 0, 5, 1, 5, 10, 6, -1, -1, -1, -1] /* 178 14 */, [6, 3, 10, 6, 5, 3, 5, 1, 3, -1, -1, -1, -1, -1, -1, -1] /* 179 5 */, [1, 11, 2, 9, 10, 5, 9, 8, 10, 10, 6, 5, -1, -1, -1, -1] /* 180 12 */, [0, 3, 10, 0, 10, 6, 0, 6, 9, 5, 9, 6, 1, 11, 2, -1] /* 181 6 */, [10, 5, 8, 10, 6, 5, 8, 5, 0, 11, 2, 5, 0, 5, 2, -1] /* 182 7 */, [6, 3, 10, 6, 5, 3, 2, 3, 11, 11, 3, 5, -1, -1, -1, -1] /* 183 3 */, [5, 9, 8, 5, 8, 2, 5, 2, 6, 3, 2, 8, -1, -1, -1, -1] /* 184 11 */, [9, 6, 5, 9, 0, 6, 0, 2, 6, -1, -1, -1, -1, -1, -1, -1] /* 185 5 */, [1, 8, 5, 1, 0, 8, 5, 8, 6, 3, 2, 8, 6, 8, 2, -1] /* 186 7 */, [1, 6, 5, 2, 6, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 187 2 */, [1, 6, 3, 1, 11, 6, 3, 6, 8, 5, 9, 6, 8, 6, 9, -1] /* 188 7 */, [11, 0, 1, 11, 6, 0, 9, 0, 5, 5, 0, 6, -1, -1, -1, -1] /* 189 3 */, [0, 8, 3, 5, 11, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 190 4 */, [11, 6, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 191 1 */, [10, 11, 5, 7, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 192 2 */, [10, 11, 5, 10, 5, 7, 8, 0, 3, -1, -1, -1, -1, -1, -1, -1] /* 193 7 */, [5, 7, 10, 5, 10, 11, 1, 0, 9, -1, -1, -1, -1, -1, -1, -1] /* 194 7 */, [11, 5, 7, 11, 7, 10, 9, 1, 8, 8, 1, 3, -1, -1, -1, -1] /* 195 10 */, [10, 2, 1, 10, 1, 7, 7, 1, 5, -1, -1, -1, -1, -1, -1, -1] /* 196 5 */, [0, 3, 8, 1, 7, 2, 1, 5, 7, 7, 10, 2, -1, -1, -1, -1] /* 197 12 */, [9, 5, 7, 9, 7, 2, 9, 2, 0, 2, 7, 10, -1, -1, -1, -1] /* 198 14 */, [7, 2, 5, 7, 10, 2, 5, 2, 9, 3, 8, 2, 9, 2, 8, -1] /* 199 7 */, [2, 11, 5, 2, 5, 3, 3, 5, 7, -1, -1, -1, -1, -1, -1, -1] /* 200 5 */, [8, 0, 2, 8, 2, 5, 8, 5, 7, 11, 5, 2, -1, -1, -1, -1] /* 201 11 */, [9, 1, 0, 5, 3, 11, 5, 7, 3, 3, 2, 11, -1, -1, -1, -1] /* 202 12 */, [9, 2, 8, 9, 1, 2, 8, 2, 7, 11, 5, 2, 7, 2, 5, -1] /* 203 7 */, [1, 5, 3, 3, 5, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 204 8 */, [0, 7, 8, 0, 1, 7, 1, 5, 7, -1, -1, -1, -1, -1, -1, -1] /* 205 5 */, [9, 3, 0, 9, 5, 3, 5, 7, 3, -1, -1, -1, -1, -1, -1, -1] /* 206 5 */, [9, 7, 8, 5, 7, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 207 2 */, [5, 4, 8, 5, 8, 11, 11, 8, 10, -1, -1, -1, -1, -1, -1, -1] /* 208 5 */, [5, 4, 0, 5, 0, 10, 5, 10, 11, 10, 0, 3, -1, -1, -1, -1] /* 209 14 */, [0, 9, 1, 8, 11, 4, 8, 10, 11, 11, 5, 4, -1, -1, -1, -1] /* 210 12 */, [11, 4, 10, 11, 5, 4, 10, 4, 3, 9, 1, 4, 3, 4, 1, -1] /* 211 7 */, [2, 1, 5, 2, 5, 8, 2, 8, 10, 4, 8, 5, -1, -1, -1, -1] /* 212 11 */, [0, 10, 4, 0, 3, 10, 4, 10, 5, 2, 1, 10, 5, 10, 1, -1] /* 213 7 */, [0, 5, 2, 0, 9, 5, 2, 5, 10, 4, 8, 5, 10, 5, 8, -1] /* 214 7 */, [9, 5, 4, 2, 3, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 215 4 */, [2, 11, 5, 3, 2, 5, 3, 5, 4, 3, 4, 8, -1, -1, -1, -1] /* 216 9 */, [5, 2, 11, 5, 4, 2, 4, 0, 2, -1, -1, -1, -1, -1, -1, -1] /* 217 5 */, [3, 2, 11, 3, 11, 5, 3, 5, 8, 4, 8, 5, 0, 9, 1, -1] /* 218 6 */, [5, 2, 11, 5, 4, 2, 1, 2, 9, 9, 2, 4, -1, -1, -1, -1] /* 219 3 */, [8, 5, 4, 8, 3, 5, 3, 1, 5, -1, -1, -1, -1, -1, -1, -1] /* 220 5 */, [0, 5, 4, 1, 5, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 221 2 */, [8, 5, 4, 8, 3, 5, 9, 5, 0, 0, 5, 3, -1, -1, -1, -1] /* 222 3 */, [9, 5, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 223 1 */, [4, 7, 10, 4, 10, 9, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1] /* 224 5 */, [0, 3, 8, 4, 7, 9, 9, 7, 10, 9, 10, 11, -1, -1, -1, -1] /* 225 12 */, [1, 10, 11, 1, 4, 10, 1, 0, 4, 7, 10, 4, -1, -1, -1, -1] /* 226 11 */, [3, 4, 1, 3, 8, 4, 1, 4, 11, 7, 10, 4, 11, 4, 10, -1] /* 227 7 */, [4, 7, 10, 9, 4, 10, 9, 10, 2, 9, 2, 1, -1, -1, -1, -1] /* 228 9 */, [9, 4, 7, 9, 7, 10, 9, 10, 1, 2, 1, 10, 0, 3, 8, -1] /* 229 6 */, [10, 4, 7, 10, 2, 4, 2, 0, 4, -1, -1, -1, -1, -1, -1, -1] /* 230 5 */, [10, 4, 7, 10, 2, 4, 8, 4, 3, 3, 4, 2, -1, -1, -1, -1] /* 231 3 */, [2, 11, 9, 2, 9, 7, 2, 7, 3, 7, 9, 4, -1, -1, -1, -1] /* 232 14 */, [9, 7, 11, 9, 4, 7, 11, 7, 2, 8, 0, 7, 2, 7, 0, -1] /* 233 7 */, [3, 11, 7, 3, 2, 11, 7, 11, 4, 1, 0, 11, 4, 11, 0, -1] /* 234 7 */, [1, 2, 11, 8, 4, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 235 4 */, [4, 1, 9, 4, 7, 1, 7, 3, 1, -1, -1, -1, -1, -1, -1, -1] /* 236 5 */, [4, 1, 9, 4, 7, 1, 0, 1, 8, 8, 1, 7, -1, -1, -1, -1] /* 237 3 */, [4, 3, 0, 7, 3, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 238 2 */, [4, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 239 1 */, [9, 8, 11, 11, 8, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 240 8 */, [3, 9, 0, 3, 10, 9, 10, 11, 9, -1, -1, -1, -1, -1, -1, -1] /* 241 5 */, [0, 11, 1, 0, 8, 11, 8, 10, 11, -1, -1, -1, -1, -1, -1, -1] /* 242 5 */, [3, 11, 1, 10, 11, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 243 2 */, [1, 10, 2, 1, 9, 10, 9, 8, 10, -1, -1, -1, -1, -1, -1, -1] /* 244 5 */, [3, 9, 0, 3, 10, 9, 1, 9, 2, 2, 9, 10, -1, -1, -1, -1] /* 245 3 */, [0, 10, 2, 8, 10, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 246 2 */, [3, 10, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 247 1 */, [2, 8, 3, 2, 11, 8, 11, 9, 8, -1, -1, -1, -1, -1, -1, -1] /* 248 5 */, [9, 2, 11, 0, 2, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 249 2 */, [2, 8, 3, 2, 11, 8, 0, 8, 1, 1, 8, 11, -1, -1, -1, -1] /* 250 3 */, [1, 2, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 251 1 */, [1, 8, 3, 9, 8, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 252 2 */, [0, 1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 253 1 */, [0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 254 1 */, [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 255 0 */];
8
-
9
8
  const EDGES = [[0, 1], [1, 3], [2, 3], [0, 2], [4, 5], [5, 7], [6, 7], [4, 6], [0, 4], [1, 5], [2, 6], [3, 7]];
10
9
  function getCase(index) {
11
10
  return MARCHING_CUBE_CASES[index];
@@ -170,12 +170,10 @@ function vtkImageMarchingCubes(publicAPI, model) {
170
170
  index |= CASE_MASK[idx]; // eslint-disable-line no-bitwise
171
171
  }
172
172
  }
173
-
174
173
  const voxelTris = vtkCaseTable.getCase(index);
175
174
  if (voxelTris[0] < 0) {
176
175
  return; // don't get the voxel coordinates, nothing to do
177
176
  }
178
-
179
177
  publicAPI.getVoxelPoints(i + extent[0], j + extent[2], k + extent[4], origin, spacing);
180
178
  if (model.computeNormals) {
181
179
  publicAPI.getVoxelGradients(i, j, k, dims, slice, spacing, scalars);
@@ -281,8 +279,7 @@ const DEFAULT_VALUES = {
281
279
 
282
280
  // ----------------------------------------------------------------------------
283
281
 
284
- function extend(publicAPI, model) {
285
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
282
+ function extend(publicAPI, model, initialValues = {}) {
286
283
  Object.assign(model, DEFAULT_VALUES, initialValues);
287
284
 
288
285
  // Make this a VTK object
@@ -5,7 +5,6 @@
5
5
  // triangle points.
6
6
  // ----------------------------------------------------------------------------
7
7
  const MARCHING_SQUARES_CASES = [[-1, -1, -1, -1, -1] /* 0 */, [0, 3, -1, -1, -1] /* 1 */, [1, 0, -1, -1, -1] /* 2 */, [1, 3, -1, -1, -1] /* 3 */, [2, 1, -1, -1, -1] /* 4 */, [0, 3, 2, 1, -1] /* 5 */, [2, 0, -1, -1, -1] /* 6 */, [2, 3, -1, -1, -1] /* 7 */, [3, 2, -1, -1, -1] /* 8 */, [0, 2, -1, -1, -1] /* 9 */, [1, 0, 3, 2, -1] /* 10 */, [1, 2, -1, -1, -1] /* 11 */, [3, 1, -1, -1, -1] /* 12 */, [0, 1, -1, -1, -1] /* 13 */, [3, 0, -1, -1, -1] /* 14 */, [-1, -1, -1, -1, -1] /* 15 */];
8
-
9
8
  const EDGES = [[0, 1], [1, 3], [2, 3], [0, 2]];
10
9
  function getCase(index) {
11
10
  return MARCHING_SQUARES_CASES[index];
@@ -137,12 +137,10 @@ function vtkImageMarchingSquares(publicAPI, model) {
137
137
  index |= CASE_MASK[idx]; // eslint-disable-line no-bitwise
138
138
  }
139
139
  }
140
-
141
140
  const pixelLines = vtkCaseTable.getCase(index);
142
141
  if (pixelLines[0] < 0) {
143
142
  return; // don't get the pixel coordinates, nothing to do
144
143
  }
145
-
146
144
  publicAPI.getPixelPoints(ijk, kernelX, kernelY, indexToWorld);
147
145
  for (let idx = 0; pixelLines[idx] >= 0; idx += 2) {
148
146
  lines.push(2);
@@ -239,8 +237,7 @@ const DEFAULT_VALUES = {
239
237
 
240
238
  // ----------------------------------------------------------------------------
241
239
 
242
- function extend(publicAPI, model) {
243
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
240
+ function extend(publicAPI, model, initialValues = {}) {
244
241
  Object.assign(model, DEFAULT_VALUES, initialValues);
245
242
 
246
243
  // Make this a VTK object
@@ -95,8 +95,7 @@ const DEFAULT_VALUES = {
95
95
 
96
96
  // ----------------------------------------------------------------------------
97
97
 
98
- function extend(publicAPI, model) {
99
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
98
+ function extend(publicAPI, model, initialValues = {}) {
100
99
  Object.assign(model, DEFAULT_VALUES, initialValues);
101
100
 
102
101
  // Make this a VTK object
@@ -54,8 +54,7 @@ const DEFAULT_VALUES = {
54
54
 
55
55
  // ----------------------------------------------------------------------------
56
56
 
57
- function extend(publicAPI, model) {
58
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
57
+ function extend(publicAPI, model, initialValues = {}) {
59
58
  Object.assign(model, DEFAULT_VALUES, initialValues);
60
59
 
61
60
  // Make this a VTK object
@@ -92,7 +92,6 @@ function vtkImageStreamline(publicAPI, model) {
92
92
  ids[6] = ids[4] + dims[0]; // i, j+1, k+1
93
93
  ids[7] = ids[6] + 1; // i+1, j+1, k+1
94
94
  };
95
-
96
95
  publicAPI.vectorAt = (xyz, velArray, image, velAtArg) => {
97
96
  if (!publicAPI.computeStructuredCoordinates(xyz, indices, paramCoords, image.getExtent(), image.getSpacing(), image.getOrigin(), image.getBounds())) {
98
97
  return false;
@@ -228,8 +227,7 @@ const DEFAULT_VALUES = {
228
227
 
229
228
  // ----------------------------------------------------------------------------
230
229
 
231
- function extend(publicAPI, model) {
232
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
230
+ function extend(publicAPI, model, initialValues = {}) {
233
231
  Object.assign(model, DEFAULT_VALUES, initialValues);
234
232
 
235
233
  // Make this a VTK object
@@ -22,8 +22,7 @@ const DEFAULT_VALUES = {};
22
22
 
23
23
  // ----------------------------------------------------------------------------
24
24
 
25
- function extend(publicAPI, model) {
26
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
25
+ function extend(publicAPI, model, initialValues = {}) {
27
26
  Object.assign(model, DEFAULT_VALUES, initialValues);
28
27
 
29
28
  // Build VTK API
@@ -30,9 +30,7 @@ function vtkMoleculeToRepresentation(publicAPI, model) {
30
30
 
31
31
  // Set our className
32
32
  model.classHierarchy.push('vtkMoleculeToRepresentation');
33
- function addBond(position, orientation, length) {
34
- let color = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [1.0, 1.0, 1.0];
35
- let radius = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : model.bondRadius;
33
+ function addBond(position, orientation, length, color = [1.0, 1.0, 1.0], radius = model.bondRadius) {
36
34
  bondScaleData.push(length);
37
35
  bondScaleData.push(radius);
38
36
  bondOrientationData.push(orientation[0]);
@@ -318,8 +316,7 @@ const DEFAULT_VALUES = {
318
316
 
319
317
  // ----------------------------------------------------------------------------
320
318
 
321
- function extend(publicAPI, model) {
322
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
319
+ function extend(publicAPI, model, initialValues = {}) {
323
320
  Object.assign(model, DEFAULT_VALUES, initialValues);
324
321
 
325
322
  // Build VTK API
@@ -49,8 +49,7 @@ function defaultValues(initialValues) {
49
49
 
50
50
  // ----------------------------------------------------------------------------
51
51
 
52
- function extend(publicAPI, model) {
53
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
52
+ function extend(publicAPI, model, initialValues = {}) {
54
53
  Object.assign(model, defaultValues(initialValues));
55
54
  model.corner = [0, 0, 0];
56
55
  model.axes = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];
@@ -462,7 +462,6 @@ function vtkOBBTree(publicAPI, model) {
462
462
  if (!nodeA || !nodeB) {
463
463
  return 5; // A and B are disjoint
464
464
  }
465
-
466
465
  const input = new Array(4);
467
466
  const output = new Array(4);
468
467
  const eps = model.tolerance;
@@ -636,8 +635,7 @@ function vtkOBBTree(publicAPI, model) {
636
635
  * @param {function|null|undefined} callback Compared function that takes in argument:
637
636
  * nodeA (vtkOBBNode), nodeB (vtkOBBNode), XForm (mat4), arg
638
637
  */
639
- publicAPI.intersectWithOBBTree = function (obbTreeB, XformBtoA) {
640
- let onIntersect = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : () => -1;
638
+ publicAPI.intersectWithOBBTree = (obbTreeB, XformBtoA, onIntersect = () => -1) => {
641
639
  let maxDepth = model.level;
642
640
  let minDepth = obbTreeB.getLevel();
643
641
  if (minDepth > maxDepth) {
@@ -1040,7 +1038,6 @@ function vtkOBBTree(publicAPI, model) {
1040
1038
  }
1041
1039
  }
1042
1040
  }
1043
-
1044
1041
  if (intersectionPoints.length) {
1045
1042
  const points = vtkPoints.newInstance();
1046
1043
  points.setData(pushArray(info.intersectionLines.getPoints().getData(), intersectionPoints));
@@ -1123,8 +1120,7 @@ const DEFAULT_VALUES = {
1123
1120
 
1124
1121
  // ----------------------------------------------------------------------------
1125
1122
 
1126
- function extend(publicAPI, model) {
1127
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1123
+ function extend(publicAPI, model, initialValues = {}) {
1128
1124
  Object.assign(model, DEFAULT_VALUES, initialValues);
1129
1125
 
1130
1126
  // Build VTK API
@@ -56,8 +56,7 @@ const DEFAULT_VALUES = {};
56
56
 
57
57
  // ----------------------------------------------------------------------------
58
58
 
59
- function extend(publicAPI, model) {
60
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
59
+ function extend(publicAPI, model, initialValues = {}) {
61
60
  Object.assign(model, DEFAULT_VALUES, initialValues);
62
61
 
63
62
  // Make this a VTK object
@@ -12,11 +12,10 @@ const globals = {
12
12
 
13
13
  // --------------------------------------------------------------------------
14
14
 
15
- function handlePaintRectangle(_ref) {
16
- let {
17
- point1,
18
- point2
19
- } = _ref;
15
+ function handlePaintRectangle({
16
+ point1,
17
+ point2
18
+ }) {
20
19
  const [x1, y1, z1] = point1;
21
20
  const [x2, y2, z2] = point2;
22
21
  const xstart = Math.max(Math.min(x1, x2), 0);
@@ -39,11 +38,10 @@ function handlePaintRectangle(_ref) {
39
38
 
40
39
  // --------------------------------------------------------------------------
41
40
  // center and scale3 are in IJK coordinates
42
- function handlePaintEllipse(_ref2) {
43
- let {
44
- center,
45
- scale3
46
- } = _ref2;
41
+ function handlePaintEllipse({
42
+ center,
43
+ scale3
44
+ }) {
47
45
  const radius3 = [...scale3];
48
46
  const indexCenter = center.map(val => Math.round(val));
49
47
  let sliceAxis = -1;
@@ -94,11 +92,10 @@ function handlePaintEllipse(_ref2) {
94
92
 
95
93
  // --------------------------------------------------------------------------
96
94
 
97
- function handlePaint(_ref3) {
98
- let {
99
- point,
100
- radius
101
- } = _ref3;
95
+ function handlePaint({
96
+ point,
97
+ radius
98
+ }) {
102
99
  if (!globals.prevPoint) {
103
100
  globals.prevPoint = point;
104
101
  }
@@ -135,10 +132,9 @@ function handlePaint(_ref3) {
135
132
 
136
133
  // --------------------------------------------------------------------------
137
134
 
138
- function handlePaintTriangles(_ref4) {
139
- let {
140
- triangleList
141
- } = _ref4;
135
+ function handlePaintTriangles({
136
+ triangleList
137
+ }) {
142
138
  // debugger;
143
139
 
144
140
  const triangleCount = Math.floor(triangleList.length / 9);
@@ -177,12 +173,11 @@ function handlePaintTriangles(_ref4) {
177
173
 
178
174
  // --------------------------------------------------------------------------
179
175
 
180
- registerWebworker().operation('start', _ref5 => {
181
- let {
182
- bufferType,
183
- dimensions,
184
- slicingMode
185
- } = _ref5;
176
+ registerWebworker().operation('start', ({
177
+ bufferType,
178
+ dimensions,
179
+ slicingMode
180
+ }) => {
186
181
  if (!globals.buffer) {
187
182
  const bufferSize = dimensions[0] * dimensions[1] * dimensions[2];
188
183
  /* eslint-disable-next-line */
@@ -349,8 +349,7 @@ const DEFAULT_VALUES = {
349
349
 
350
350
  // ----------------------------------------------------------------------------
351
351
 
352
- function extend(publicAPI, model) {
353
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
352
+ function extend(publicAPI, model, initialValues = {}) {
354
353
  Object.assign(model, DEFAULT_VALUES, initialValues);
355
354
 
356
355
  // Make this a VTK object
@@ -67,8 +67,7 @@ const DEFAULT_VALUES = {};
67
67
 
68
68
  // ----------------------------------------------------------------------------
69
69
 
70
- function extend(publicAPI, model) {
71
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
70
+ function extend(publicAPI, model, initialValues = {}) {
72
71
  Object.assign(model, DEFAULT_VALUES, initialValues);
73
72
 
74
73
  // Make this a VTK object
@@ -24,8 +24,7 @@ function vtkShrinkPolyData(publicAPI, model) {
24
24
  * @param {Vector3} [shrunkPoint] - Optional array to store the shrunk point
25
25
  * @returns {Vector3} The shrunk point [x, y, z] coordinates
26
26
  */
27
- function shrinkTowardsPoint(point, center, shrinkFactor) {
28
- let shrunkPoint = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
27
+ function shrinkTowardsPoint(point, center, shrinkFactor, shrunkPoint = []) {
29
28
  shrunkPoint[0] = center[0] + shrinkFactor * (point[0] - center[0]);
30
29
  shrunkPoint[1] = center[1] + shrinkFactor * (point[1] - center[1]);
31
30
  shrunkPoint[2] = center[2] + shrinkFactor * (point[2] - center[2]);
@@ -290,8 +289,7 @@ const DEFAULT_VALUES = {
290
289
 
291
290
  // ----------------------------------------------------------------------------
292
291
 
293
- function extend(publicAPI, model) {
294
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
292
+ function extend(publicAPI, model, initialValues = {}) {
295
293
  Object.assign(model, DEFAULT_VALUES, initialValues);
296
294
 
297
295
  // Build VTK API
@@ -163,8 +163,7 @@ const DEFAULT_VALUES = {
163
163
 
164
164
  // ----------------------------------------------------------------------------
165
165
 
166
- function extend(publicAPI, model) {
167
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
166
+ function extend(publicAPI, model, initialValues = {}) {
168
167
  Object.assign(model, DEFAULT_VALUES, initialValues);
169
168
 
170
169
  // Make this a VTK object
@@ -87,8 +87,7 @@ const DEFAULT_VALUES = {
87
87
 
88
88
  // ----------------------------------------------------------------------------
89
89
 
90
- function extend(publicAPI, model) {
91
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
90
+ function extend(publicAPI, model, initialValues = {}) {
92
91
  Object.assign(model, DEFAULT_VALUES, initialValues);
93
92
 
94
93
  // Build VTK API
@@ -53,8 +53,7 @@ function vtkTubeFilter(publicAPI, model) {
53
53
  }
54
54
  return pointIds.length;
55
55
  }
56
- function generateSlidingNormals(pts, lines, normals) {
57
- let firstNormal = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
56
+ function generateSlidingNormals(pts, lines, normals, firstNormal = null) {
58
57
  let normal = [0.0, 0.0, 1.0];
59
58
  const lineData = lines;
60
59
  // lid = 0;
@@ -245,7 +244,6 @@ function vtkTubeFilter(publicAPI, model) {
245
244
  for (let i = 0; i < 3; ++i) {
246
245
  s[i] = (sPrev[i] + sNext[i]) / 2.0; // average vector
247
246
  }
248
-
249
247
  n = inNormals.slice(3 * pts[j], 3 * (pts[j] + 1));
250
248
  // if s is zero then just use sPrev cross n
251
249
  if (normalize(s) === 0.0) {
@@ -646,7 +644,6 @@ function vtkTubeFilter(publicAPI, model) {
646
644
  });
647
645
  output.getCellData().addArray(newArray); // concat newArray to end
648
646
  }
649
-
650
647
  const inScalars = publicAPI.getInputArrayToProcess(0);
651
648
  let outScalars = null;
652
649
  let range = [];
@@ -758,8 +755,7 @@ const DEFAULT_VALUES = {
758
755
 
759
756
  // ----------------------------------------------------------------------------
760
757
 
761
- function extend(publicAPI, model) {
762
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
758
+ function extend(publicAPI, model, initialValues = {}) {
763
759
  Object.assign(model, DEFAULT_VALUES, initialValues);
764
760
 
765
761
  // Build VTK API
@@ -94,8 +94,7 @@ const DEFAULT_VALUES = {
94
94
 
95
95
  // ----------------------------------------------------------------------------
96
96
 
97
- function extend(publicAPI, model) {
98
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
97
+ function extend(publicAPI, model, initialValues = {}) {
99
98
  Object.assign(model, DEFAULT_VALUES, initialValues);
100
99
 
101
100
  // Make this a VTK object
@@ -544,8 +544,7 @@ const DEFAULT_VALUES = {
544
544
  };
545
545
 
546
546
  // ----------------------------------------------------------------------------
547
- function extend(publicAPI, model) {
548
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
547
+ function extend(publicAPI, model, initialValues = {}) {
549
548
  Object.assign(model, DEFAULT_VALUES, initialValues);
550
549
 
551
550
  /* Make this a VTK object */
@@ -107,8 +107,7 @@ const DEFAULT_VALUES = {
107
107
 
108
108
  // ----------------------------------------------------------------------------
109
109
 
110
- function extend(publicAPI, model) {
111
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
110
+ function extend(publicAPI, model, initialValues = {}) {
112
111
  Object.assign(model, DEFAULT_VALUES, initialValues);
113
112
 
114
113
  // Ensure resolution is at least 1
@@ -138,8 +138,7 @@ function defaultValues(initialValues) {
138
138
 
139
139
  // ----------------------------------------------------------------------------
140
140
 
141
- function extend(publicAPI, model) {
142
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
141
+ function extend(publicAPI, model, initialValues = {}) {
143
142
  Object.assign(model, defaultValues(initialValues));
144
143
 
145
144
  // Build VTK API
@@ -74,8 +74,7 @@ const DEFAULT_VALUES = {
74
74
 
75
75
  // ----------------------------------------------------------------------------
76
76
 
77
- function extend(publicAPI, model) {
78
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
77
+ function extend(publicAPI, model, initialValues = {}) {
79
78
  Object.assign(model, DEFAULT_VALUES, initialValues);
80
79
 
81
80
  // Build VTK API
@@ -160,14 +160,13 @@ export function newInstance(
160
160
  initialValues?: ICircleSourceInitialValues
161
161
  ): vtkCircleSource;
162
162
 
163
- /**
164
163
  /**
165
164
  * vtkCircleSource creates a circle.
166
- *
165
+ *
167
166
  * @example
168
167
  * ```js
169
168
  * import vtkCircleSource from '@kitware/vtk.js/Filters/Sources/CircleSource';
170
- *
169
+ *
171
170
  * const circle = vtkCircleSource.newInstance({ radius: 1, resolution: 80 });
172
171
  * const polydata = circle.getOutputData();
173
172
  * ```
@@ -68,8 +68,7 @@ function defaultValues(initialValues) {
68
68
 
69
69
  // ----------------------------------------------------------------------------
70
70
 
71
- function extend(publicAPI, model) {
72
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
71
+ function extend(publicAPI, model, initialValues = {}) {
73
72
  Object.assign(model, defaultValues(initialValues));
74
73
 
75
74
  // Build VTK API
@@ -31,10 +31,7 @@ function vtkConcentricCylinderSource(publicAPI, model) {
31
31
  publicAPI.modified();
32
32
  };
33
33
  publicAPI.getNumberOfRadius = () => model.radius.length;
34
- publicAPI.getRadius = function () {
35
- let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
36
- return model.radius[index];
37
- };
34
+ publicAPI.getRadius = (index = 0) => model.radius[index];
38
35
  publicAPI.setRadius = (index, radius) => {
39
36
  model.radius[index] = radius;
40
37
  publicAPI.modified();
@@ -358,8 +355,7 @@ const DEFAULT_VALUES = {
358
355
 
359
356
  // ----------------------------------------------------------------------------
360
357
 
361
- function extend(publicAPI, model) {
362
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
358
+ function extend(publicAPI, model, initialValues = {}) {
363
359
  Object.assign(model, DEFAULT_VALUES, initialValues);
364
360
 
365
361
  // Build VTK API
@@ -81,8 +81,7 @@ const DEFAULT_VALUES = {
81
81
 
82
82
  // ----------------------------------------------------------------------------
83
83
 
84
- function extend(publicAPI, model) {
85
- let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
84
+ function extend(publicAPI, model, initialValues = {}) {
86
85
  Object.assign(model, DEFAULT_VALUES, initialValues);
87
86
 
88
87
  // Build VTK API