blob: 7e60cb37a69bb85bf29d5824821eeec30b4495a2 (
plain)
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
|
import { Component, Input, Output, ViewEncapsulation, EventEmitter } from '@angular/core';
import { EventListenerService } from 'app/services';
import { GRAPH_EVENTS } from 'app/utils';
@Component({
selector: 'zone-container',
templateUrl: './zone-container.component.html',
styleUrls: ['./zone-container.component.less'],
encapsulation: ViewEncapsulation.None
})
export class ZoneContainerComponent {
@Input() title:string;
@Input() class:string;
@Input() count:number;
@Input() showZone:boolean;
@Input() minifyZone:boolean;
constructor(private eventListenerService:EventListenerService) {}
private unminifyZone = () => {
this.minifyZone = !this.minifyZone;
this.eventListenerService.notifyObservers(GRAPH_EVENTS.ON_ZONE_SIZE_CHANGE);
}
}
|