mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-14 07:47:29 +08:00
Move inputs to templates
This commit is contained in:
@@ -61,6 +61,7 @@ export default class IElement extends HTMLElement {
|
||||
connectedCallback() {
|
||||
this.#blueprint = this.closest("ueb-blueprint")
|
||||
this.template.setup(this)
|
||||
this.template.inputSetup(this)
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
import Configuration from "../Configuration"
|
||||
import IElement from "./IElement"
|
||||
import MouseMoveNodes from "../input/mouse/MouseMoveNodes"
|
||||
import Utility from "../Utility"
|
||||
|
||||
/**
|
||||
@@ -47,14 +46,6 @@ export default class ISelectableDraggableElement extends IElement {
|
||||
this.#setSelected(this.selected)
|
||||
}
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new MouseMoveNodes(this, this.blueprint, {
|
||||
looseTarget: true
|
||||
}),
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Number[]} value
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
import ExecPinTemplate from "../template/ExecPinTemplate"
|
||||
import IElement from "./IElement"
|
||||
import LinkElement from "./LinkElement"
|
||||
import MouseCreateLink from "../input/mouse/MouseCreateLink"
|
||||
import PinTemplate from "../template/PinTemplate"
|
||||
import StringPinTemplate from "../template/StringPinTemplate"
|
||||
|
||||
@@ -46,15 +45,6 @@ export default class PinElement extends IElement {
|
||||
this.#color = window.getComputedStyle(this).getPropertyValue("--ueb-pin-color")
|
||||
}
|
||||
|
||||
createInputObjects() {
|
||||
return [
|
||||
new MouseCreateLink(this.clickableElement, this.blueprint, {
|
||||
moveEverywhere: true,
|
||||
looseTarget: true
|
||||
})
|
||||
]
|
||||
}
|
||||
|
||||
/** @return {GuidEntity} */
|
||||
GetPinId() {
|
||||
return this.entity.PinId
|
||||
|
||||
Reference in New Issue
Block a user