Add coverages of modules

This commit is contained in:
József Farkas
2016-04-16 14:50:13 +02:00
parent d5dc8d8d0e
commit c47188b2b2
3 changed files with 5 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import {KeyboardKeyComponent} from './keyboard-key.component';
selector: 'g[uhk-module]',
template:
`
<svg:path *ngFor="#path of coverages" [attr.d]="path.$.d"/>
<svg:g uhk-keyboard-key *ngFor="#key of keyboardKeys"
[id]="key.id" [fill]="key.fill"
[rx]="key.rx" [ry]="key.ry"
@@ -17,7 +18,7 @@ import {KeyboardKeyComponent} from './keyboard-key.component';
directives: [KeyboardKeyComponent]
})
export class ModuleComponent implements OnInit {
@Input() case: any;
@Input() coverages: any[];
@Input() keyboardKeys: KeyboardKey[];
@Input() fill: string;