* Toggles advanced mode of the node, showing advanced widgets
()
| 3179 | * Toggles advanced mode of the node, showing advanced widgets |
| 3180 | */ |
| 3181 | toggleAdvanced() { |
| 3182 | if (!this.widgets?.some(w => w.advanced)) return |
| 3183 | if (!this.graph) throw new NullGraphError() |
| 3184 | this.graph._version++ |
| 3185 | this.showAdvanced = !this.showAdvanced |
| 3186 | this.expandToFitContent() |
| 3187 | this.setDirtyCanvas(true, true) |
| 3188 | } |
| 3189 | |
| 3190 | get pinned() { |
| 3191 | return !!this.flags.pinned |
no test coverage detected