(spec: DormerSurfaceMaterialSpec)
| 134 | materialPreset: node.materialPreset, |
| 135 | } |
| 136 | const has = (spec: DormerSurfaceMaterialSpec) => |
| 137 | spec.material !== undefined || typeof spec.materialPreset === 'string' |
| 138 | |
| 139 | if (role === 'top') return has(top) ? top : legacy |
| 140 | if (role === 'side') return has(side) ? side : has(wall) ? wall : legacy |
no outgoing calls
no test coverage detected