import vtkStateBuilder from 'vtk.js/Sources/Widgets/Core/StateBuilder';
export default function generateState() { return vtkStateBuilder .createBuilder() .addStateFromMixin({ labels: ['moveHandle'], mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], name: 'moveHandle', initialValues: { scale1: 10, visible: false, }, }) .addStateFromMixin({ labels: ['SVGtext'], mixins: ['origin', 'color', 'text', 'visible', 'manipulator'], name: 'text', initialValues: { visible: true, }, }) .build(); }
|