mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 09:44:49 +08:00
* WIP * Fix type 1 * Missing types info * Some fixes * Several types refactoring and fixes * WIP * Fix grammar
29 lines
742 B
JavaScript
29 lines
742 B
JavaScript
import KeyboardShortcut from "./KeyboardShortcut.js"
|
|
import Shortcuts from "../../Shortcuts.js"
|
|
import Zoom from "../mouse/Zoom.js"
|
|
|
|
export default class KeyboardEnableZoom extends KeyboardShortcut {
|
|
|
|
/** @type {Zoom} */
|
|
#zoomInputObject
|
|
|
|
/**
|
|
* @param {HTMLElement} target
|
|
* @param {Blueprint} blueprint
|
|
* @param {Object} options
|
|
*/
|
|
constructor(target, blueprint, options = {}) {
|
|
options.activationKeys = Shortcuts.enableZoomIn
|
|
super(target, blueprint, options)
|
|
}
|
|
|
|
fire() {
|
|
this.#zoomInputObject = this.blueprint.template.getZoomInputObject()
|
|
this.#zoomInputObject.enableZoonIn = true
|
|
}
|
|
|
|
unfire() {
|
|
this.#zoomInputObject.enableZoonIn = false
|
|
}
|
|
}
|