import { RecursivePartial , mergePartial } from '../utils/common' ; import { GeometryStateStyle , RectBorderStyle , RectStyle , AreaStyle , LineStyle , PointStyle , } from '../utils/themes/theme' ; internal export class MockStyles { static rect ( partial = { } ) { return mergePartial ( { fill : 'blue' , opacity : 1 } , partial ) ; } static rectBorder ( partial = { } ) { return mergePartial ( { visible : false , stroke : 'blue' , strokeWidth : 1 , strokeOpacity : 1 } , partial ) ; } static area ( partial = { } ) { return mergePartial ( { visible : true , fill : 'blue' , opacity : 1 } , partial ) ; } static line ( partial = { } ) { return mergePartial ( { visible : true , stroke : 'blue' , strokeWidth : 1 , opacity : 1 , dash : [ 1 , 2 , 1 ] } , partial ) ; } static point ( partial = { } ) { return mergePartial ( { visible : true , stroke : 'blue' , strokeWidth : 1 , fill : 'blue' , opacity : 1 , radius : 10 } , partial ) ; } static geometryState ( partial = { } ) { return mergePartial ( { opacity : 1 } , partial ) ; } }