Fix other interface classes naming convention

This commit is contained in:
barsdeveloper
2022-02-27 13:02:21 +01:00
parent e8946745d6
commit b48b1228f4
29 changed files with 535 additions and 535 deletions

View File

@@ -0,0 +1,22 @@
import IContext from "../IContext"
import Utility from "../../Utility"
export default class IPointing extends IContext {
constructor(target, blueprint, options) {
super(target, blueprint, options)
this.movementSpace = this.blueprint?.getGridDOMElement() ?? document.documentElement
}
/**
*
* @param {MouseEvent} mouseEvent
* @returns
*/
locationFromEvent(mouseEvent) {
return this.blueprint.compensateTranslation(
Utility.convertLocation(
[mouseEvent.clientX, mouseEvent.clientY],
this.movementSpace))
}
}