@kitware/vtk.js 24.18.10 → 24.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -350,6 +350,17 @@ function widgetBehavior(publicAPI, model) {
|
|
|
350
350
|
|
|
351
351
|
model._interactor.render();
|
|
352
352
|
};
|
|
353
|
+
|
|
354
|
+
publicAPI.reset = function () {
|
|
355
|
+
model.widgetState.deactivate();
|
|
356
|
+
model.widgetState.getMoveHandle().deactivate();
|
|
357
|
+
model.widgetState.getHandle1().setOrigin(null);
|
|
358
|
+
model.widgetState.getHandle2().setOrigin(null);
|
|
359
|
+
model.widgetState.getMoveHandle().setOrigin(null);
|
|
360
|
+
model.widgetState.getText().setOrigin(null);
|
|
361
|
+
model.widgetState.getText().setText('');
|
|
362
|
+
model.activeState = null;
|
|
363
|
+
};
|
|
353
364
|
}
|
|
354
365
|
|
|
355
366
|
export { widgetBehavior as default };
|