mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-27 02:34:45 +08:00
Links wip (broken)
This commit is contained in:
@@ -33,6 +33,7 @@ export default class MouseCreateLink extends IMouseClickDrag {
|
||||
let self = this
|
||||
this.#mouseenterHandler = e => {
|
||||
if (!self.enteredPin) {
|
||||
e.preventDefault()
|
||||
self.linkValid = false
|
||||
self.enteredPin = e.target
|
||||
const a = self.enteredPin, b = self.target
|
||||
@@ -53,6 +54,7 @@ export default class MouseCreateLink extends IMouseClickDrag {
|
||||
}
|
||||
this.#mouseleaveHandler = e => {
|
||||
if (self.enteredPin == e.target) {
|
||||
e.preventDefault()
|
||||
self.enteredPin = null
|
||||
self.linkValid = false
|
||||
this.setLinkMessage(LinkMessageElement.placeNode())
|
||||
@@ -94,6 +96,7 @@ export default class MouseCreateLink extends IMouseClickDrag {
|
||||
}
|
||||
this.enteredPin = null
|
||||
this.link = null
|
||||
this.#listenedPins = null
|
||||
}
|
||||
|
||||
setLinkMessage(linkMessage) {
|
||||
|
||||
Reference in New Issue
Block a user