protected isVisible(
context: ICanvasContext,
rectangle: Rect,
node: INode
): boolean {
const circleDiameter = Math.max(node.layout.height, node.layout.width) * 2
const bounds = Rect.fromCenter(
node.layout.center,
new Size(circleDiameter, circleDiameter)
)
return rectangle.intersects(bounds)
}