import { Color } from '../../../common/colors' ; import { Scale } from '../../../scales' ; import { Dimensions } from '../../../utils/dimensions' ; import { BubbleGeometry } from '../../../utils/geometry' ; import { BubbleSeriesStyle } from '../../../utils/themes/theme' ; import { IndexedGeometryMap } from '../utils/indexed_geometry_map' ; import { DataSeries } from '../utils/series' ; import { PointStyleAccessor } from '../utils/specs' ; import { renderPoints } from './points' ; import { MarkSizeOptions } from './utils' ; internal export function renderBubble ( shift , dataSeries , xScale , yScale , color , panel , hasY0Accessors , xScaleOffset , seriesStyle , markSizeOptions , isMixedChart , pointStyleAccessor ? ) { const { pointGeometries , indexedGeometryMap } = renderPoints ( shift - xScaleOffset , dataSeries , xScale , yScale , panel , color , seriesStyle . point , hasY0Accessors , markSizeOptions , ! isMixedChart , pointStyleAccessor ) ; const bubbleGeometry = { points : pointGeometries , color , seriesIdentifier : { key : dataSeries . key , specId : dataSeries . specId , yAccessor : dataSeries . yAccessor , splitAccessors : dataSeries . splitAccessors , seriesKeys : dataSeries . seriesKeys , smHorizontalAccessorValue : dataSeries . smHorizontalAccessorValue , smVerticalAccessorValue : dataSeries . smVerticalAccessorValue , } , seriesPointStyle : seriesStyle . point , } ; return { bubbleGeometry , indexedGeometryMap , } ; }