import { Component } from '@angular/core' ; import { HsLayoutService } from '../layout/layout.service' ; import { HsToolbarPanelBaseComponent } from '../toolbar/toolbar-panel-base.component' ; @ Component ( { selector : 'hs-measure-toolbar' , templateUrl : './partials/measure-toolbar.html' , } ) export class HsMeasureToolbarComponent extends HsToolbarPanelBaseComponent { constructor ( public HsLayoutService ) { super ( HsLayoutService ) ; } name = 'measureToolbar' ; isVisible ( ) { return ( this . HsLayoutService . panelEnabled ( 'measure' ) && this . HsLayoutService . componentEnabled ( 'measureToolbar' ) ) ; } measureButtonClicked ( ) { this . HsLayoutService . setMainPanel ( 'measure' , true ) ; } }