(node: SnapshotNode)
| 3 | import { isFillableType } from '../snapshot/snapshot-processing.ts'; |
| 4 | |
| 5 | export function isNodeVisible(node: SnapshotNode): boolean { |
| 6 | if (node.hittable === true) return true; |
| 7 | if (!node.rect) return false; |
| 8 | return node.rect.width > 0 && node.rect.height > 0; |
| 9 | } |
| 10 | |
| 11 | export function isNodeEditable(node: SnapshotNode, platform: Platform | PublicPlatform): boolean { |
| 12 | return isFillableType(node.type ?? '', platform) && node.enabled !== false; |
no outgoing calls
no test coverage detected