mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 17:54:52 +08:00
Start implementing link dragging
This commit is contained in:
24
js/input/DragLink.js
Executable file
24
js/input/DragLink.js
Executable file
@@ -0,0 +1,24 @@
|
||||
import MouseClickDrag from "./MouseClickDrag"
|
||||
|
||||
export default class DragLink extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options)
|
||||
}
|
||||
|
||||
startDrag() {
|
||||
//this.selectorElement.startSelecting(this.clickedPosition)
|
||||
}
|
||||
|
||||
dragTo(location, movement) {
|
||||
//this.selectorElement.doSelecting(location)
|
||||
}
|
||||
|
||||
endDrag() {
|
||||
if (this.started) {
|
||||
//this.selectorElement.finishSelecting()
|
||||
} else {
|
||||
// this.blueprint.unselectAll()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,6 @@ export default class Select extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options)
|
||||
this.stepSize = options?.stepSize
|
||||
this.mousePosition = [0, 0]
|
||||
this.selectorElement = this.blueprint.selectorElement
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Context from "./Context";
|
||||
import Context from "./Context"
|
||||
|
||||
export default class Unfocus extends Context {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user