draw2d icon indicating copy to clipboard operation
draw2d copied to clipboard

Arc: attributes are applied to rect instead of path

Open RThomasHyde opened this issue 6 years ago • 1 comments

When setting attributes like bgColor, cssClass, stroke, etc. on a draw2d.shape.basic.Arc, they are applied to the containing rect instead of the path. So if I define an arc with bgColor = "#000000", instead of a black arc I get an arc with the default background color, inside of a black rectangle. There seems to be no way to control the attributes of the svg path, only the rect.

RThomasHyde avatar May 23 '19 02:05 RThomasHyde

I found that if I style the arc by setting cssClass, I can properly set the fill color. It's just when you use the bgColor property that it doesn't affect the actual arc shape. So my immediate problem is solved, but I suppose this is still a bug since bgColor works properly on the other basic shapes.

RThomasHyde avatar Mar 26 '20 23:03 RThomasHyde