mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-23 07:14:42 +08:00
Organizing input actions in device folders
This commit is contained in:
29
js/input/mouse/MouseCreateLink.js
Executable file
29
js/input/mouse/MouseCreateLink.js
Executable file
@@ -0,0 +1,29 @@
|
||||
import MouseClickDrag from "./MouseClickDrag"
|
||||
|
||||
export default class MouseCreateLink extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options)
|
||||
/** @type {import("../../graph/GraphPin").default} */
|
||||
this.target
|
||||
/** @type {import("../../graph/GraphLink").default} */
|
||||
this.link
|
||||
}
|
||||
|
||||
startDrag() {
|
||||
let link = this.target.dragLink()
|
||||
|
||||
}
|
||||
|
||||
dragTo(location, movement) {
|
||||
//this.selectorElement.doSelecting(location)
|
||||
}
|
||||
|
||||
endDrag() {
|
||||
if (this.started) {
|
||||
//this.selectorElement.finishSelecting()
|
||||
} else {
|
||||
// this.blueprint.unselectAll()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user