Move style related actions to templates

This commit is contained in:
barsdeveloper
2021-12-10 21:05:44 +01:00
parent 7bc0f4e2f2
commit 6b02ab7e08
19 changed files with 2693 additions and 139 deletions

View File

@@ -8,12 +8,14 @@ export default class GraphElement extends HTMLElement {
super()
/** @type {import("../Blueprint").default}" */
this.blueprint = null
/** @type {import("../entity/Entity").default}" */
this.entity = entity
/** @type {import("../template/Template").default}" */
this.template = template
}
connectedCallback() {
this.blueprint = this.closest("u-blueprint")
this.append(...this.template.getElements(this.entity))
this.template.apply(this)
}
}