From 6b4bdd4035610aa88afe54fa97649b806e7b08af Mon Sep 17 00:00:00 2001 From: Julien Finet Date: Wed, 7 Jul 2021 16:12:45 +0200 Subject: [PATCH] fix(splinewidget): do not make spline context pickable by default --- .../Representations/SplineContextRepresentation/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Widgets/Representations/SplineContextRepresentation/index.js b/Sources/Widgets/Representations/SplineContextRepresentation/index.js index 364fe5c662c..8b652083c43 100644 --- a/Sources/Widgets/Representations/SplineContextRepresentation/index.js +++ b/Sources/Widgets/Representations/SplineContextRepresentation/index.js @@ -1,6 +1,6 @@ import macro from 'vtk.js/Sources/macro'; import vtkActor from 'vtk.js/Sources/Rendering/Core/Actor'; -import vtkHandleRepresentation from 'vtk.js/Sources/Widgets/Representations/HandleRepresentation'; +import vtkContextRepresentation from 'vtk.js/Sources/Widgets/Representations/ContextRepresentation'; import vtkMapper from 'vtk.js/Sources/Rendering/Core/Mapper'; import vtkPolyData from 'vtk.js/Sources/Common/DataModel/PolyData'; import vtkSpline3D from 'vtk.js/Sources/Common/DataModel/Spline3D'; @@ -155,7 +155,7 @@ const DEFAULT_VALUES = { export function extend(publicAPI, model, initialValues = {}) { Object.assign(model, DEFAULT_VALUES, initialValues); - vtkHandleRepresentation.extend(publicAPI, model, initialValues); + vtkContextRepresentation.extend(publicAPI, model, initialValues); macro.get(publicAPI, model, ['mapper']); macro.setGet(publicAPI, model, [ 'resolution',