PasteTool.js 497 B

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