import { Component , Input } from '@angular/core' ; import { MmpService } from '../../../../core/services/mmp/mmp.service' ; @ Component ( { selector : 'mindmapp-sliders-panel' , templateUrl : './slider-panels.component.html' , styleUrls : [ './slider-panels.component.scss' ] } ) export class SliderPanelsComponent { @ Input ( ) public node : any ; constructor ( public mmpService ) { } public updateNodeFontSize ( event , graphic ? ) { const value = parseInt ( event . source . value ) ; this . mmpService . updateNode ( 'fontSize' , value , graphic ) ; } public updateNodeImageSize ( event , graphic ? ) { const value = parseInt ( event . source . value ) ; this . mmpService . updateNode ( 'imageSize' , value , graphic ) ; } }