CutTool.js 481 B

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