JSDoc complete type check

This commit is contained in:
barsdeveloper
2022-10-09 11:43:28 +02:00
parent 91e1e0885e
commit cdc5e5b91b
68 changed files with 1603 additions and 648 deletions

View File

@@ -10,6 +10,7 @@ import Utility from "../../Utility"
export default class IPointing extends IInput {
constructor(target, blueprint, options) {
options.ignoreTranslateCompensate ??= false
options.movementSpace ??= blueprint?.getGridDOMElement() ?? document.documentElement
super(target, blueprint, options)
this.movementSpace = options.movementSpace
@@ -21,6 +22,8 @@ export default class IPointing extends IInput {
[mouseEvent.clientX, mouseEvent.clientY],
this.movementSpace
)
return this.blueprint.compensateTranslation(location)
return this.options.ignoreTranslateCompensate
? location
: this.blueprint.compensateTranslation(location)
}
}