(nodeType, cb)
| 3 | // Adds a bunch of context menu entries for quickly adding common steps |
| 4 | |
| 5 | function addMenuHandler(nodeType, cb) { |
| 6 | const getOpts = nodeType.prototype.getExtraMenuOptions; |
| 7 | nodeType.prototype.getExtraMenuOptions = function () { |
| 8 | const r = getOpts.apply(this, arguments); |
| 9 | cb.apply(this, arguments); |
| 10 | return r; |
| 11 | }; |
| 12 | } |
| 13 | |
| 14 | function getOrAddVAELoader(node) { |
| 15 | let vaeNode = app.graph._nodes.find((n) => n.type === "VAELoader"); |
no outgoing calls
no test coverage detected