diff --git a/Sources/Widgets/Core/AbstractWidgetFactory/index.js b/Sources/Widgets/Core/AbstractWidgetFactory/index.js index 959f6cb81d3..a2846747870 100644 --- a/Sources/Widgets/Core/AbstractWidgetFactory/index.js +++ b/Sources/Widgets/Core/AbstractWidgetFactory/index.js @@ -31,10 +31,15 @@ function vtkAbstractWidgetFactory(publicAPI, model) { camera, } = extractRenderingComponents(renderer); const widgetModel = {}; - const widgetPublicAPI = { + const widgetPublicAPI = {}; + + macro.obj(widgetPublicAPI, widgetModel); + Object.assign(widgetPublicAPI, { onWidgetChange: publicAPI.onWidgetChange, - }; - Object.assign(widgetModel, model, { + }); + Object.assign(widgetModel, { + widgetState: model.widgetState, + manipulator: model.manipulator, viewType, renderer, camera,