Fix key bind animation side effect

This commit is contained in:
Farkas József
2016-12-14 22:48:18 +01:00
parent 42686f4221
commit 5e7e0c4933
9 changed files with 22 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
<svg:g svg-module *ngFor="let module of modules; let i = index"
[coverages]="module.coverages"
[keyboardKeys]="module.keyboardKeys"
[keybindAnimationEnabled]="keybindAnimationEnabled"
[attr.transform]="module.attributes.transform"
[keyActions]="moduleConfig[i].keyActions"
(keyClick)="onKeyClick(i, $event.index, $event.keyTarget)"

Before

Width:  |  Height:  |  Size: 677 B

After

Width:  |  Height:  |  Size: 745 B

View File

@@ -10,6 +10,7 @@ import { SvgModule } from '../module';
})
export class SvgKeyboardComponent implements OnInit {
@Input() moduleConfig: Module[];
@Input() keybindAnimationEnabled: boolean;
@Output() keyClick = new EventEmitter();
@Output() keyHover = new EventEmitter();