import vtkStateBuilder from 'vtk.js/Sources/Widgets/Core/StateBuilder';
export default function stateGenerator() { return ( vtkStateBuilder .createBuilder() .addStateFromMixin({ labels: ['moveHandle'], mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], name: 'moveHandle', initialValues: { scale1: 20, visible: true, }, }) .addStateFromMixin({ labels: ['centerHandle'], mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], name: 'centerHandle', initialValues: { scale1: 20, visible: true, }, }) .addStateFromMixin({ labels: ['borderHandle'], mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], name: 'borderHandle', initialValues: { scale1: 20, visible: true, }, }) .addStateFromMixin({ labels: ['sphereHandle'], mixins: ['origin', 'color', 'scale1', 'visible', 'orientation'], name: 'sphereHandle', initialValues: { visible: true, radius: 1, }, }) .build() ); }
|