New nodes types added

This commit is contained in:
barsdeveloper
2022-12-28 19:02:29 +01:00
parent 0def4f7e48
commit 5036866b33
27 changed files with 636 additions and 254 deletions

View File

@@ -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