-
-
Notifications
You must be signed in to change notification settings - Fork 397
Closed
Labels
module: buildreleasedAutomated labelAutomated labelstatus: confirmedCould be reproduced by a main contributorCould be reproduced by a main contributortype: feature request 💡Desired capabilities / enhancementsDesired capabilities / enhancements
Description
We have an app that uses vtk.js to render meshes and the bundle is produced by webpack, the analyze shows that some pieces of vtk.js are included in the bundle even if they are not used or called in the app.
So basically OpenGL/RenderWindow
calls OpenGL/ViewNodeFactory
which instantiate classes even if they are not used the app, i can list :
- vtkGlyph3DMapper
- vtkPixelSpaceCallbackMapper
- vtkSphereMapper
- vtkStickMapper
- vtkSurfaceLICMapper
- vtkVolumeMapper
is there something we can do in vtk.js to improve this part?
Also i can see the import of vtkMath which is 20kb
import * as vtkMath from 'vtk.js/Sources/Common/Core/Math';
instead of the individual functions
import { XYZ } from 'vtk.js/Sources/Common/Core/Math';
Metadata
Metadata
Assignees
Labels
module: buildreleasedAutomated labelAutomated labelstatus: confirmedCould be reproduced by a main contributorCould be reproduced by a main contributortype: feature request 💡Desired capabilities / enhancementsDesired capabilities / enhancements