mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-21 05:27:34 +08:00
Comments selectable by header only, links fixes
This commit is contained in:
@@ -104,19 +104,19 @@ export default class IDraggableElement extends IElement {
|
||||
}
|
||||
}
|
||||
|
||||
topBoundary() {
|
||||
return this.locationY
|
||||
topBoundary(justSelectableArea = false) {
|
||||
return this.template.topBoundary(justSelectableArea)
|
||||
}
|
||||
|
||||
rightBoundary() {
|
||||
return this.locationX + this.sizeX
|
||||
rightBoundary(justSelectableArea = false) {
|
||||
return this.template.rightBoundary(justSelectableArea)
|
||||
}
|
||||
|
||||
bottomBoundary() {
|
||||
return this.locationY + this.sizeY
|
||||
bottomBoundary(justSelectableArea = false) {
|
||||
return this.template.bottomBoundary(justSelectableArea)
|
||||
}
|
||||
|
||||
leftBoundary() {
|
||||
return this.locationX
|
||||
leftBoundary(justSelectableArea = false) {
|
||||
return this.template.leftBoundary(justSelectableArea)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ export default class NodeElement extends ISelectableDraggableElement {
|
||||
}
|
||||
|
||||
getUpdateComplete() {
|
||||
return Promise.all([super.getUpdateComplete(), ...this.#pins.map(pin => pin.updateComplete)]).then(() => true)
|
||||
return Promise.all([super.getUpdateComplete(), ...this.getPinElements().map(pin => pin.updateComplete)]).then(() => true)
|
||||
}
|
||||
|
||||
/** @param {NodeElement} commentNode */
|
||||
|
||||
@@ -207,6 +207,7 @@ export default class PinElement extends IElement {
|
||||
}
|
||||
return pin
|
||||
})
|
||||
this.isLinked = this.entity.isLinked()
|
||||
}
|
||||
|
||||
/** @param {PinElement} targetPinElement */
|
||||
|
||||
Reference in New Issue
Block a user