Selector element added

This commit is contained in:
barsdeveloper
2021-10-10 15:34:12 +02:00
parent 82355b9126
commit 16fd34fa84
9 changed files with 229 additions and 190 deletions

View File

@@ -1,8 +1,11 @@
/**
* @typedef {import("./GraphNode").default} GraphNode
*/
export default class Template {
/**
* Computes the html content of the target element.
* @param {HTMLElement} element Target element
* @param {GraphNode} element Target element
* @returns The computed html
*/
render(element) {
@@ -11,7 +14,7 @@ export default class Template {
/**
* Returns the html elements rendered by this template.
* @param {HTMLElement} element Target element
* @param {GraphNode} element Target element
* @returns The rendered elements
*/
getElements(element) {