import { Component , Input , ViewChild } from '@angular/core' ; import { FillSymbolizer , SymbolizerKind } from 'geostyler-style' ; import { Kinds } from '../symbolizer-kind.enum' ; import { HsStylerPartBaseComponent } from '../../style-part-base.component' ; @ Component ( { selector : 'hs-fill-symbolizer' , templateUrl : './fill-symbolizer.component.html' , } ) export class HsFillSymbolizerComponent extends HsStylerPartBaseComponent { @ Input ( ) symbolizer : FillSymbolizer ; @ ViewChild ( 'graphicFillMenu' ) menuRef ; kinds = Kinds ; addSymbolizer ( attribute , kind ) { this . symbolizer [ attribute ] = { kind } ; this . menuRef . close ( ) ; } opacityFix ( ) { this . symbolizer . fillOpacity = this . symbolizer . opacity ; } }