-
Notifications
You must be signed in to change notification settings - Fork 204
/
root.component.html
62 lines (61 loc) · 2.02 KB
/
root.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<div>
<app-splashscreen fxLayoutAlign="center center"
*ngIf="this.isMobile()">
</app-splashscreen>
<!-- Disable drag start events by default. -->
<div *ngIf="!this.isMobile()"
appDropTarget
(onDropFiles)="onDropFiles($event)"
class="app-container"
fxLayout="column"
ondragstart="return false;"
(click)="this.onClick($event)"
fxFlex>
<!-- Toolbar. -->
<div class="toolbar-container">
<app-toolbar></app-toolbar>
</div>
<div fxLayout="row"
fxFlex>
<div class="display-container"
fxLayout="column"
fxFlex>
<!-- Canvas -->
<ng-container *ngIf="{type: (this.cursorType$ | async) } as cursor">
<div #displayContainer
fxLayout="row"
fxLayoutAlign="center center"
fxFlex
[ngClass]="{
'show-default-cursor': cursor.type === CURSOR_DEFAULT,
'show-pointer-cursor': cursor.type === CURSOR_POINTER,
'show-pen-cursor': cursor.type === CURSOR_PEN
}">
<app-canvas class="start"
*ngIf="this.isActionMode$ | async"
[actionSource]="ACTION_SOURCE_FROM"
[canvasBounds$]="this.canvasBounds$">
</app-canvas>
<app-canvas [canvasBounds$]="this.canvasBounds$"
[actionSource]="ACTION_SOURCE_ANIMATED">
</app-canvas>
<app-canvas class="end"
*ngIf="this.isActionMode$ | async"
[actionSource]="ACTION_SOURCE_TO"
[canvasBounds$]="this.canvasBounds$">
</app-canvas>
</div>
</ng-container>
<!-- Playback controls. -->
<app-playback></app-playback>
</div>
<!-- Property input panel. -->
<app-propertyinput *ngIf="!(this.isActionMode$ | async)"
fxLayout="column"
(click)="$event.stopPropagation()">
</app-propertyinput>
</div>
<!-- Layer list & animation timeline. -->
<app-layertimeline></app-layertimeline>
</div>
</div>