@@ -4,12 +4,12 @@ import { Circle, Group, Path } from 'react-konva';
44import { LegendItem } from '../../chart_types/xy_chart/legend/legend' ;
55import {
66 AreaGeometry ,
7- getGeometryStyle ,
7+ getGeometryStateStyle ,
88 PointGeometry ,
99 getGeometryIdKey ,
1010 GeometryId ,
1111} from '../../chart_types/xy_chart/rendering/rendering' ;
12- import { SharedGeometryStyle , PointStyle } from '../../utils/themes/theme' ;
12+ import { SharedGeometryStateStyle , PointStyle } from '../../utils/themes/theme' ;
1313import {
1414 buildAreaRenderProps ,
1515 buildPointStyleProps ,
@@ -22,7 +22,7 @@ import { mergePartial } from '../../utils/commons';
2222interface AreaGeometriesDataProps {
2323 animated ?: boolean ;
2424 areas : AreaGeometry [ ] ;
25- sharedStyle : SharedGeometryStyle ;
25+ sharedStyle : SharedGeometryStateStyle ;
2626 highlightedLegendItem : LegendItem | null ;
2727 clippings : ContainerConfig ;
2828}
@@ -59,23 +59,23 @@ export class AreaGeometries extends React.PureComponent<AreaGeometriesDataProps,
5959 acc . push ( this . renderAreaLines ( glyph , i , sharedStyle , highlightedLegendItem , clippings ) ) ;
6060 }
6161 if ( seriesPointStyle . visible ) {
62- const geometryStyle = getGeometryStyle ( geometryId , this . props . highlightedLegendItem , sharedStyle ) ;
63- const pointStyleProps = buildPointStyleProps ( glyph . color , seriesPointStyle , geometryStyle ) ;
62+ const geometryStateStyle = getGeometryStateStyle ( geometryId , this . props . highlightedLegendItem , sharedStyle ) ;
63+ const pointStyleProps = buildPointStyleProps ( glyph . color , seriesPointStyle , geometryStateStyle ) ;
6464 acc . push ( ...this . renderPoints ( glyph . points , i , pointStyleProps , glyph . geometryId ) ) ;
6565 }
6666 return acc ;
6767 } , [ ] ) ;
6868 } ;
6969 private renderArea = (
7070 glyph : AreaGeometry ,
71- sharedStyle : SharedGeometryStyle ,
71+ sharedStyle : SharedGeometryStateStyle ,
7272 highlightedLegendItem : LegendItem | null ,
7373 clippings : ContainerConfig ,
7474 ) : JSX . Element => {
7575 const { area, color, transform, geometryId, seriesAreaStyle } = glyph ;
76- const geometryStyle = getGeometryStyle ( geometryId , highlightedLegendItem , sharedStyle ) ;
76+ const geometryStateStyle = getGeometryStateStyle ( geometryId , highlightedLegendItem , sharedStyle ) ;
7777 const key = getGeometryIdKey ( geometryId , 'area-' ) ;
78- const areaProps = buildAreaRenderProps ( transform . x , area , color , seriesAreaStyle , geometryStyle ) ;
78+ const areaProps = buildAreaRenderProps ( transform . x , area , color , seriesAreaStyle , geometryStateStyle ) ;
7979 return (
8080 < Group { ...clippings } key = { key } >
8181 < Path { ...areaProps } />
@@ -85,16 +85,16 @@ export class AreaGeometries extends React.PureComponent<AreaGeometriesDataProps,
8585 private renderAreaLines = (
8686 glyph : AreaGeometry ,
8787 areaIndex : number ,
88- sharedStyle : SharedGeometryStyle ,
88+ sharedStyle : SharedGeometryStateStyle ,
8989 highlightedLegendItem : LegendItem | null ,
9090 clippings : ContainerConfig ,
9191 ) : JSX . Element => {
9292 const { lines, color, geometryId, transform, seriesAreaLineStyle } = glyph ;
93- const geometryStyle = getGeometryStyle ( geometryId , highlightedLegendItem , sharedStyle ) ;
93+ const geometryStateStyle = getGeometryStateStyle ( geometryId , highlightedLegendItem , sharedStyle ) ;
9494 const groupKey = getGeometryIdKey ( geometryId , `area-line-${ areaIndex } ` ) ;
9595 const linesElements = lines . map < JSX . Element > ( ( linePath , lineIndex ) => {
9696 const key = getGeometryIdKey ( geometryId , `area-line-${ areaIndex } -${ lineIndex } ` ) ;
97- const lineProps = buildLineRenderProps ( transform . x , linePath , color , seriesAreaLineStyle , geometryStyle ) ;
97+ const lineProps = buildLineRenderProps ( transform . x , linePath , color , seriesAreaLineStyle , geometryStateStyle ) ;
9898 return < Path { ...lineProps } key = { key } /> ;
9999 } ) ;
100100 return (
0 commit comments