StyleTool.js 608 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * StyleTool.js
  3. *
  4. * @author realor
  5. */
  6. import { Tool } from './Tool.js'
  7. class StyleTool extends Tool {
  8. constructor(application, options) {
  9. super(application)
  10. this.name = 'style'
  11. this.label = 'tool.style.label'
  12. this.help = 'tool.style.help'
  13. this.className = 'style'
  14. this.immediate = true
  15. this.edgesVisible = true
  16. this.facesVisible = true
  17. this.setOptions(options)
  18. }
  19. execute() {
  20. this.application.updateStyle(null, this.edgesVisible, this.facesVisible)
  21. }
  22. }
  23. export { StyleTool }