* Add pin and minor style fix WIP

* Fix default pin graphics

* Fix sorting

* Min, max nodes are variadic
This commit is contained in:
barsdeveloper
2023-05-15 22:29:52 +02:00
committed by GitHub
parent 64baa42049
commit c4813d8106
21 changed files with 495 additions and 78 deletions

View File

@@ -1,6 +1,7 @@
import { html, nothing } from "lit"
import ElementFactory from "../../element/ElementFactory.js"
import NodeTemplate from "./NodeTemplate.js"
import SVGIcon from "../../SVGIcon.js"
/**
* @typedef {import("../../element/NodeElement.js").default} NodeElement
@@ -41,6 +42,11 @@ export default class VariableManagementNodeTemplate extends NodeTemplate {
${this.#hasOutput ? html`
<div class="ueb-node-outputs"></div>
` : nothing}
${this.pinInserter ? html`
<div class="ueb-node-variadic" @click="${this.addPinHandler}">
Add pin ${SVGIcon.plusCircle}
</div>
`: nothing}
</div>
</div>
</div>