@@ -47,8 +47,12 @@ void drawItem::drawLines(const Guides &guides,
4747 auto lineColor = baseColor * (double )guides.y .guidelines ;
4848 canvas.setLineColor (lineColor);
4949 auto axisPoint = blended.center .xComp () + origo.yComp ();
50- if (events.plot .marker .guide ->invoke ())
51- painter.drawLine (Geom::Line (axisPoint, blended.center ));
50+ Geom::Line line (axisPoint, blended.center );
51+ if (events.plot .marker .guide
52+ ->invoke (Events::OnLineDrawParam (line)))
53+ {
54+ painter.drawLine (line);
55+ }
5256 }
5357 if ((double )guides.x .guidelines > 0 )
5458 {
@@ -58,8 +62,12 @@ void drawItem::drawLines(const Guides &guides,
5862 auto lineColor = baseColor * (double )guides.x .guidelines ;
5963 canvas.setLineColor (lineColor);
6064 auto axisPoint = blended.center .yComp () + origo.xComp ();
61- if (events.plot .marker .guide ->invoke ())
62- painter.drawLine (Geom::Line (blended.center , axisPoint));
65+ Geom::Line line (blended.center , axisPoint);
66+ if (events.plot .marker .guide
67+ ->invoke (Events::OnLineDrawParam (line)))
68+ {
69+ painter.drawLine (line);
70+ }
6371 }
6472 }
6573}
@@ -152,7 +160,8 @@ void drawItem::draw(
152160
153161 if (line)
154162 {
155- if (events.plot .marker .base ->invoke ())
163+ if (events.plot .marker .base
164+ ->invoke (Events::OnRectDrawParam (drawItem.getBoundary ())))
156165 {
157166 painter.drawStraightLine (
158167 drawItem.getLine (), drawItem.lineWidth ,
@@ -165,7 +174,8 @@ void drawItem::draw(
165174 canvas.setLineWidth (
166175 *style.plot .marker .borderWidth );
167176 canvas.setBrushColor (colors.second );
168- if (events.plot .marker .base ->invoke ())
177+ if (events.plot .marker .base
178+ ->invoke (Events::OnRectDrawParam (drawItem.getBoundary ())))
169179 {
170180 painter.drawPolygon (drawItem.points );
171181 }
0 commit comments