vtk.js 26.9.1 → 26.9.2
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/ComputeHistogram.worker-lite.worker.js.LICENSE.txt +1 -1
- package/ComputeHistogram.worker.worker.js.LICENSE.txt +1 -1
- package/PaintFilter.worker-lite.worker.js.LICENSE.txt +1 -1
- package/PaintFilter.worker.worker.js.LICENSE.txt +1 -1
- package/Sources/Common/DataModel/ITKHelper/index.js +4 -4
- package/package.json +1 -1
- package/vtk-bundle.html +2 -2
- package/vtk-lite-bundle.html +2 -2
- package/vtk-lite.js.LICENSE.txt +1 -1
- package/vtk-lite.js.map +1 -1
- package/vtk.js.LICENSE.txt +1 -1
- package/vtk.js.map +1 -1
|
@@ -72,7 +72,7 @@ const itkComponentTypeToVtkArrayType = new Map([
|
|
|
72
72
|
*
|
|
73
73
|
* Requires an itk-wasm Image as input.
|
|
74
74
|
*/
|
|
75
|
-
function convertItkToVtkImage(itkImage, options = {}) {
|
|
75
|
+
export function convertItkToVtkImage(itkImage, options = {}) {
|
|
76
76
|
const vtkImage = {
|
|
77
77
|
origin: [0, 0, 0],
|
|
78
78
|
spacing: [1, 1, 1],
|
|
@@ -197,7 +197,7 @@ function convertItkToVtkImage(itkImage, options = {}) {
|
|
|
197
197
|
* Requires a vtk.js vtkImageData as input.
|
|
198
198
|
*
|
|
199
199
|
*/
|
|
200
|
-
function convertVtkToItkImage(vtkImage, copyData = false) {
|
|
200
|
+
export function convertVtkToItkImage(vtkImage, copyData = false) {
|
|
201
201
|
const dimension = 3;
|
|
202
202
|
const itkImage = {
|
|
203
203
|
imageType: {
|
|
@@ -255,7 +255,7 @@ function convertVtkToItkImage(vtkImage, copyData = false) {
|
|
|
255
255
|
*
|
|
256
256
|
* Requires an itk-wasm PolyData as input.
|
|
257
257
|
*/
|
|
258
|
-
function convertItkToVtkPolyData(itkPolyData, options = {}) {
|
|
258
|
+
export function convertItkToVtkPolyData(itkPolyData, options = {}) {
|
|
259
259
|
const pointDataArrays = [];
|
|
260
260
|
if (itkPolyData.pointData.length) {
|
|
261
261
|
pointDataArrays.push({
|
|
@@ -485,7 +485,7 @@ function convertItkToVtkPolyData(itkPolyData, options = {}) {
|
|
|
485
485
|
* Requires a vtk.js vtkPolyData as input.
|
|
486
486
|
*
|
|
487
487
|
*/
|
|
488
|
-
function convertVtkToItkPolyData(polyData, options = {}) {
|
|
488
|
+
export function convertVtkToItkPolyData(polyData, options = {}) {
|
|
489
489
|
const itkPolyData = {
|
|
490
490
|
polyDataType: {
|
|
491
491
|
pointPixelComponentType: 'float32',
|