when I define a symbol with a rectangle, I can not place the rectangle a the coordinates (0,0) if the rectangle has a border. If I do so the border gets clipped and I can see only the half of the border. Therefore I have to place the rectangle at an offset with is half of the stroke-width of the rectangle.
My problem is, that I can not read the stroke-width property with the style.getPropertyValue function, if I place the style definition an a CSS file and assign the style via the class attribute. When I put the style attribute directly in the SVG file, the getPropertyValue und setProperty functions work as expected.
Any idea, how to put the style definitions in an external CSS file and still be able to query them from JavaScript?
On Apr 30, 5:04 pm, Sascha Ziemann <cev...@googlemail.com> wrote:
> Hi,
> when I define a symbol with a rectangle, I can not place the rectangle > a the coordinates (0,0) if the rectangle has a border. If I do so the > border gets clipped and I can see only the half of the border. > Therefore I have to place the rectangle at an offset with is half of > the stroke-width of the rectangle.
Why not turn clipping off then using overflow="visible"?
On 1 Mai, 06:58, Robert Longson <longs...@gmail.com> wrote:
> > when I define a symbol with a rectangle, I can not place the rectangle > > a the coordinates (0,0) if the rectangle has a border. If I do so the > > border gets clipped and I can see only the half of the border. > > Therefore I have to place the rectangle at an offset with is half of > > the stroke-width of the rectangle.
> Why not turn clipping off then using overflow="visible"?
Maybe another approach but no solution to the problem to read style attributes. ;-)