mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:28:17 +08:00
New nodes types added
This commit is contained in:
@@ -9,6 +9,7 @@ export default class IPointing extends IInput {
|
||||
|
||||
constructor(target, blueprint, options = {}) {
|
||||
options.ignoreTranslateCompensate ??= false
|
||||
options.ignoreScale ??= false
|
||||
options.movementSpace ??= blueprint.getGridDOMElement() ?? document.documentElement
|
||||
super(target, blueprint, options)
|
||||
/** @type {HTMLElement} */
|
||||
@@ -19,7 +20,8 @@ export default class IPointing extends IInput {
|
||||
locationFromEvent(mouseEvent) {
|
||||
const location = Utility.convertLocation(
|
||||
[mouseEvent.clientX, mouseEvent.clientY],
|
||||
this.movementSpace
|
||||
this.movementSpace,
|
||||
this.options.ignoreScale
|
||||
)
|
||||
return this.options.ignoreTranslateCompensate
|
||||
? location
|
||||
|
||||
Reference in New Issue
Block a user