FullscreenTool.js 525 B

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