mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
JSDoc complete type check
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user