mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-19 04:55:57 +08:00
Move style related actions to templates
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user