Skip to content

Commit

Permalink
fix marker wrapper element; only create if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Nov 22, 2024
1 parent 78f5dd5 commit 33ba6c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/Markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,17 @@ export default class Markers {
}

if (!invalidMarker) {
if (
const shouldCreateMarkerWrap =
w.globals.markers.size[seriesIndex] > 0 ||
alwaysDrawMarker ||
hasDiscreteMarkers
) {
if (shouldCreateMarkerWrap && !elMarkersWrap) {
elMarkersWrap = graphics.group({
class:
alwaysDrawMarker || hasDiscreteMarkers
? ''
: 'apexcharts-series-markers',
})

elMarkersWrap.attr(
'clip-path',
`url(#gridRectMarkerMask${w.globals.cuid})`
Expand Down

0 comments on commit 33ba6c2

Please sign in to comment.