Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[], // ui
[
{
link: 'SliceZ',
property: 'slice',
updateOnBind: true,
type: 'application',
},
] // links
),
},
Views: {
View3D: createDefaultView(vtkView, proxyUI.View3D),
View2D: createDefaultView(vtk2DView, proxyUI.View2D),
View2D_X: createDefaultView(vtk2DView, proxyUI.View2D, { axis: 0 }),
View2D_Y: createDefaultView(vtk2DView, proxyUI.View2D, { axis: 1 }),
View2D_Z: createDefaultView(vtk2DView, proxyUI.View2D, { axis: 2 }),
},
},
representations: {
View3D: proxyViewRepresentationMapping.View3D,
View2D: proxyViewRepresentationMapping.View2D,
View2D_X: {
vtkImageData: { name: 'SliceX' },
vtkLabelMap: { name: 'LabelMapSliceX' },
...proxyViewRepresentationMapping.View2D,
},
View2D_Y: {
vtkImageData: { name: 'SliceY' },
vtkLabelMap: { name: 'LabelMapSliceY' },
...proxyViewRepresentationMapping.View2D,
},
LabelMapSliceZ: createProxyDefinition(
vtkLabelMapSliceRepProxy,
[], // ui
[
{
link: 'SliceZ',
property: 'slice',
updateOnBind: true,
type: 'application',
},
] // links
),
},
Views: {
View3D: createDefaultView(vtkView, proxyUI.View3D),
View2D: createDefaultView(vtk2DView, proxyUI.View2D),
View2D_X: createDefaultView(vtk2DView, proxyUI.View2D, { axis: 0 }),
View2D_Y: createDefaultView(vtk2DView, proxyUI.View2D, { axis: 1 }),
View2D_Z: createDefaultView(vtk2DView, proxyUI.View2D, { axis: 2 }),
},
},
representations: {
View3D: proxyViewRepresentationMapping.View3D,
View2D: proxyViewRepresentationMapping.View2D,
View2D_X: {
vtkImageData: { name: 'SliceX' },
vtkLabelMap: { name: 'LabelMapSliceX' },
...proxyViewRepresentationMapping.View2D,
},
View2D_Y: {
vtkImageData: { name: 'SliceY' },
vtkLabelMap: { name: 'LabelMapSliceY' },