* Returns `true` if the widget is visible, otherwise `false`.
(widget: IBaseWidget)
| 3534 | * Returns `true` if the widget is visible, otherwise `false`. |
| 3535 | */ |
| 3536 | isWidgetVisible(widget: IBaseWidget): boolean { |
| 3537 | const isHidden = ( |
| 3538 | this.collapsed || |
| 3539 | widget.hidden || |
| 3540 | (widget.advanced && !this.showAdvanced) |
| 3541 | ) |
| 3542 | return !isHidden |
| 3543 | } |
| 3544 | |
| 3545 | drawWidgets(ctx: CanvasRenderingContext2D, { |
| 3546 | lowQuality = false, |
no outgoing calls
no test coverage detected