mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-14 00:54:48 +08:00
Organizing input actions in device folders
This commit is contained in:
20
dist/ueblueprint.js
vendored
20
dist/ueblueprint.js
vendored
@@ -1479,7 +1479,7 @@ class MouseClickDrag extends Pointing {
|
||||
}
|
||||
}
|
||||
|
||||
class DragScroll extends MouseClickDrag {
|
||||
class MouseScrollGraph extends MouseClickDrag {
|
||||
|
||||
startDrag() {
|
||||
this.blueprint.template.applyStartDragScrolling(this.blueprint);
|
||||
@@ -1576,13 +1576,13 @@ class PinTemplate extends Template {
|
||||
}
|
||||
}
|
||||
|
||||
class DragLink extends MouseClickDrag {
|
||||
class MouseCreateLink extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options);
|
||||
/** @type {import("../graph/GraphPin").default} */
|
||||
/** @type {import("../../graph/GraphPin").default} */
|
||||
this.target;
|
||||
/** @type {import("../graph/GraphLink").default} */
|
||||
/** @type {import("../../graph/GraphLink").default} */
|
||||
this.link;
|
||||
}
|
||||
|
||||
@@ -1612,7 +1612,7 @@ class GraphPin extends GraphElement {
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new DragLink(this.clickableElement, this.blueprint, {
|
||||
new MouseCreateLink(this.clickableElement, this.blueprint, {
|
||||
moveEverywhere: true
|
||||
}),
|
||||
]
|
||||
@@ -1825,7 +1825,7 @@ class NodeTemplate extends SelectableDraggableTemplate {
|
||||
}
|
||||
}
|
||||
|
||||
class DragMove extends MouseClickDrag {
|
||||
class MouseMoveNodes extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options);
|
||||
@@ -1881,7 +1881,7 @@ class SelectableDraggable extends GraphElement {
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new DragMove(this, this.blueprint, {
|
||||
new MouseMoveNodes(this, this.blueprint, {
|
||||
looseTarget: true
|
||||
}),
|
||||
]
|
||||
@@ -2034,7 +2034,7 @@ class KeyvoardCanc extends KeyboardShortcut {
|
||||
/**
|
||||
*
|
||||
* @param {HTMLElement} target
|
||||
* @param {import("../Blueprint").default} blueprint
|
||||
* @param {import("../../Blueprint").default} blueprint
|
||||
* @param {OBject} options
|
||||
*/
|
||||
constructor(target, blueprint, options = {}) {
|
||||
@@ -2178,7 +2178,7 @@ class MouseWheel extends Pointing {
|
||||
/**
|
||||
*
|
||||
* @param {HTMLElement} target
|
||||
* @param {import("../Blueprint").default} blueprint
|
||||
* @param {import("../../Blueprint").default} blueprint
|
||||
* @param {Object} options
|
||||
*/
|
||||
constructor(target, blueprint, options) {
|
||||
@@ -2315,7 +2315,7 @@ class Blueprint extends GraphElement {
|
||||
exitAnyButton: true,
|
||||
moveEverywhere: true,
|
||||
}),
|
||||
new DragScroll(this.getGridDOMElement(), this, {
|
||||
new MouseScrollGraph(this.getGridDOMElement(), this, {
|
||||
clickButton: 2,
|
||||
exitAnyButton: false,
|
||||
looseTarget: true,
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import BlueprintTemplate from "./template/BlueprintTemplate"
|
||||
import Configuration from "./Configuration"
|
||||
import Copy from "./input/Copy"
|
||||
import DragScroll from "./input/DragScroll"
|
||||
import Copy from "./input/common/Copy"
|
||||
import MouseScrollGraph from "./input/mouse/MouseScrollGraph"
|
||||
import GraphElement from "./graph/GraphElement"
|
||||
import GraphLink from "./graph/GraphLink"
|
||||
import GraphNode from "./graph/GraphNode"
|
||||
import GraphSelector from "./graph/GraphSelector"
|
||||
import KeyboardCanc from "./input/KeyboardCanc"
|
||||
import MouseTracking from "./input/MouseTracking"
|
||||
import Paste from "./input/Paste"
|
||||
import Select from "./input/Select"
|
||||
import Unfocus from "./input/Unfocus"
|
||||
import KeyboardCanc from "./input/keybaord/KeyboardCanc"
|
||||
import MouseTracking from "./input/mouse/MouseTracking"
|
||||
import Paste from "./input/common/Paste"
|
||||
import Select from "./input/mouse/Select"
|
||||
import Unfocus from "./input/mouse/Unfocus"
|
||||
import Utility from "./Utility"
|
||||
import Zoom from "./input/Zoom"
|
||||
import Zoom from "./input/mouse/Zoom"
|
||||
|
||||
export default class Blueprint extends GraphElement {
|
||||
|
||||
@@ -106,7 +106,7 @@ export default class Blueprint extends GraphElement {
|
||||
exitAnyButton: true,
|
||||
moveEverywhere: true,
|
||||
}),
|
||||
new DragScroll(this.getGridDOMElement(), this, {
|
||||
new MouseScrollGraph(this.getGridDOMElement(), this, {
|
||||
clickButton: 2,
|
||||
exitAnyButton: false,
|
||||
looseTarget: true,
|
||||
|
||||
@@ -5,4 +5,4 @@ export default class Action {
|
||||
|
||||
revert() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import GraphElement from "./GraphElement"
|
||||
import PinTemplate from "../template/PinTemplate"
|
||||
import DragLink from "../input/DragLink"
|
||||
import MouseCreateLink from "../input/mouse/MouseCreateLink"
|
||||
import GraphLink from "./GraphLink"
|
||||
|
||||
export default class GraphPin extends GraphElement {
|
||||
@@ -15,7 +15,7 @@ export default class GraphPin extends GraphElement {
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new DragLink(this.clickableElement, this.blueprint, {
|
||||
new MouseCreateLink(this.clickableElement, this.blueprint, {
|
||||
moveEverywhere: true
|
||||
}),
|
||||
]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import DragMove from "../input/DragMove"
|
||||
import MouseMoveNodes from "../input/mouse/MouseMoveNodes"
|
||||
import GraphElement from "./GraphElement"
|
||||
|
||||
export default class SelectableDraggable extends GraphElement {
|
||||
@@ -19,7 +19,7 @@ export default class SelectableDraggable extends GraphElement {
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new DragMove(this, this.blueprint, {
|
||||
new MouseMoveNodes(this, this.blueprint, {
|
||||
looseTarget: true
|
||||
}),
|
||||
]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Context from "./Context"
|
||||
import ObjectSerializer from "../serialization/ObjectSerializer"
|
||||
import Context from "../Context"
|
||||
import ObjectSerializer from "../../serialization/ObjectSerializer"
|
||||
|
||||
export default class Copy extends Context {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import GraphNode from "../graph/GraphNode"
|
||||
import ObjectSerializer from "../serialization/ObjectSerializer"
|
||||
import Context from "./Context"
|
||||
import GraphNode from "../../graph/GraphNode"
|
||||
import ObjectSerializer from "../../serialization/ObjectSerializer"
|
||||
import Context from "../Context"
|
||||
|
||||
export default class Paste extends Context {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import KeyboardShortcut from "./KeyboardShortcut"
|
||||
import Configuration from "../Configuration"
|
||||
import Configuration from "../../Configuration"
|
||||
|
||||
|
||||
export default class KeyvoardCanc extends KeyboardShortcut {
|
||||
@@ -7,7 +7,7 @@ export default class KeyvoardCanc extends KeyboardShortcut {
|
||||
/**
|
||||
*
|
||||
* @param {HTMLElement} target
|
||||
* @param {import("../Blueprint").default} blueprint
|
||||
* @param {import("../../Blueprint").default} blueprint
|
||||
* @param {OBject} options
|
||||
*/
|
||||
constructor(target, blueprint, options = {}) {
|
||||
@@ -1,4 +1,4 @@
|
||||
import Context from "./Context"
|
||||
import Context from "../Context"
|
||||
|
||||
export default class KeyboardShortcut extends Context {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import MouseClickDrag from "./MouseClickDrag"
|
||||
|
||||
export default class DragLink extends MouseClickDrag {
|
||||
export default class MouseCreateLink extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options)
|
||||
/** @type {import("../graph/GraphPin").default} */
|
||||
/** @type {import("../../graph/GraphPin").default} */
|
||||
this.target
|
||||
/** @type {import("../graph/GraphLink").default} */
|
||||
/** @type {import("../../graph/GraphLink").default} */
|
||||
this.link
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import MouseClickDrag from "./MouseClickDrag"
|
||||
|
||||
export default class DragMove extends MouseClickDrag {
|
||||
export default class MouseMoveNodes extends MouseClickDrag {
|
||||
|
||||
constructor(target, blueprint, options) {
|
||||
super(target, blueprint, options)
|
||||
@@ -1,6 +1,6 @@
|
||||
import MouseClickDrag from "./MouseClickDrag"
|
||||
|
||||
export default class DragScroll extends MouseClickDrag {
|
||||
export default class MouseScrollGraph extends MouseClickDrag {
|
||||
|
||||
startDrag() {
|
||||
this.blueprint.template.applyStartDragScrolling(this.blueprint)
|
||||
@@ -5,7 +5,7 @@ export default class MouseWheel extends Pointing {
|
||||
/**
|
||||
*
|
||||
* @param {HTMLElement} target
|
||||
* @param {import("../Blueprint").default} blueprint
|
||||
* @param {import("../../Blueprint").default} blueprint
|
||||
* @param {Object} options
|
||||
*/
|
||||
constructor(target, blueprint, options) {
|
||||
@@ -1,5 +1,5 @@
|
||||
import Context from "./Context"
|
||||
import Utility from "../Utility"
|
||||
import Context from "../Context"
|
||||
import Utility from "../../Utility"
|
||||
|
||||
export default class Pointing extends Context {
|
||||
|
||||
@@ -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