Link hover width fixed

This commit is contained in:
barsdeveloper
2022-03-01 21:43:53 +01:00
parent 979e4bbd10
commit 3fd95a8854
9 changed files with 679 additions and 586 deletions

View File

@@ -6,14 +6,23 @@ export default class PinElement extends IElement {
static tagName = "ueb-pin"
/** @type {HTMLElement} */
clickableElement
/** @type {String} */
#color
constructor(entity) {
super(entity, new PinTemplate())
/** @type {import("../entity/PinEntity").default} */
this.entity
/** @type {PinTemplate} */
this.template
/** @type {HTMLElement} */
this.clickableElement = null
}
connectedCallback() {
super.connectedCallback()
this.#color = window.getComputedStyle(this).getPropertyValue("--ueb-node-value-color")
}
createInputObjects() {
@@ -57,6 +66,10 @@ export default class PinElement extends IElement {
return this.clickableElement
}
getColor() {
return this.#color
}
/**
* Returns The exact location where the link originates from or arrives at.
* @returns {Number[]} The location array