import { html, nothing } from "lit" import ElementFactory from "../../element/ElementFactory" import MinimalPinTemplate from "../pin/MinimalPinTemplate" import NodeTemplate from "./NodeTemplate" /** * @typedef {import("../../element/PinElement").PinElementConstructor} PinElementConstructor * @typedef {import("lit").PropertyValues} PropertyValues */ export default class EventNodeTemplate extends NodeTemplate { static nodeStyleClasses = [...super.nodeStyleClasses, "ueb-node-style-event"] /** @param {PropertyValues} changedProperties */ firstUpdated(changedProperties) { super.firstUpdated(changedProperties) this.element.querySelector(".ueb-node-top").appendChild(this.createDelegatePinElement()) } renderTop() { const icon = this.renderNodeIcon() const name = this.renderNodeName() return html`