From a447ec48267ec0e41dd283678cea47a112a8e0e4 Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Fri, 9 Apr 2021 11:48:10 -0600 Subject: [PATCH] fix(bundleSize): Reduce the number of preset loaded --- src/core/GeometryRepresentation.js | 2 +- src/core/GlyphRepresentation.js | 2 +- src/core/SliceRepresentation.js | 2 +- src/core/VolumeRepresentation.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/GeometryRepresentation.js b/src/core/GeometryRepresentation.js index b6548fa..7c4a006 100644 --- a/src/core/GeometryRepresentation.js +++ b/src/core/GeometryRepresentation.js @@ -5,7 +5,7 @@ import { ViewContext, RepresentationContext, DownstreamContext } from './View'; import vtkActor from '@kitware/vtk.js/Rendering/Core/Actor.js'; import vtkMapper from '@kitware/vtk.js/Rendering/Core/Mapper.js'; -import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.js'; +import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMapsLite.js'; import vtkColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js'; import vtkCubeAxesActor from '@kitware/vtk.js/Rendering/Core/CubeAxesActor.js'; diff --git a/src/core/GlyphRepresentation.js b/src/core/GlyphRepresentation.js index 11847cc..5e3879d 100644 --- a/src/core/GlyphRepresentation.js +++ b/src/core/GlyphRepresentation.js @@ -5,7 +5,7 @@ import { ViewContext, RepresentationContext, DownstreamContext } from './View'; import vtkActor from '@kitware/vtk.js/Rendering/Core/Actor.js'; import vtkGlyph3DMapper from '@kitware/vtk.js/Rendering/Core/Glyph3DMapper.js'; -import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.js'; +import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMapsLite.js'; import vtkColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js'; /** diff --git a/src/core/SliceRepresentation.js b/src/core/SliceRepresentation.js index 56b5a7f..8765f33 100644 --- a/src/core/SliceRepresentation.js +++ b/src/core/SliceRepresentation.js @@ -5,7 +5,7 @@ import { ViewContext, RepresentationContext, DownstreamContext } from './View'; import vtkImageSlice from '@kitware/vtk.js/Rendering/Core/ImageSlice.js'; import vtkImageMapper from '@kitware/vtk.js/Rendering/Core/ImageMapper.js'; -import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.js'; +import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMapsLite.js'; import vtkColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js'; import vtkPiecewiseFunction from '@kitware/vtk.js/Common/DataModel/PiecewiseFunction.js'; diff --git a/src/core/VolumeRepresentation.js b/src/core/VolumeRepresentation.js index ba0d5db..d045fe3 100644 --- a/src/core/VolumeRepresentation.js +++ b/src/core/VolumeRepresentation.js @@ -5,7 +5,7 @@ import { ViewContext, RepresentationContext, DownstreamContext } from './View'; import vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume.js'; import vtkVolumeMapper from '@kitware/vtk.js/Rendering/Core/VolumeMapper.js'; -import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.js'; +import vtkColorMaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMapsLite.js'; import vtkColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js'; import vtkPiecewiseFunction from '@kitware/vtk.js/Common/DataModel/PiecewiseFunction.js';