strange ASV behavior?

holger
05-31-2004, 07:02 AM
Hi all
ive got a little problem here and i would be happy if anyone could tell me whats wrong.
i create a simple barchart via asp.everything works fine.so i have this dropshadow filter.
which works nearly perfect.if i try to apply the filter to rectangles of a certain height,the
rect will not render !?!?!?!?!?!?!?!?!?
here is a simplified example: the first rect renders correctly,the second does not render at all.

<svg>
<defs>

<filter id="Gaussian_Blur2" width="200" height="200">
<feGaussianBlur in="SourceAlpha" result="abc" stdDeviation="4" />
<feOffset dx="3" dy="2" result="def" in="abc"/>
</filter>

</defs>

<g transform="translate(100,100)">

<g transform="translate(0,200) scale(1,-1)">
<rect rx="18" ry="18" stroke="black" stroke-width="2" opacity="0.6" filter="url(#Gaussian_Blur2)" fill="goldenrod" x="89" y="0" width="36" height="201"/>

</g>
<text font-size="12" font-weight="900" fill="blue" x="107" y="-5" text-anchor="middle" >22</text>

<g transform="translate(0,200) scale(1,-1)">
<rect rx="18" ry="18" stroke="black" stroke-width="2" opacity="0.6" filter="url(#Gaussian_Blur2)" fill="goldenrod" x="160" y="0" width="36" height="165"/>

</g>
<text font-size="12" font-weight="900" fill="blue" x="178" y="31" text-anchor="middle" >18</text>

</g>

</svg>

but here comes the fun of it... just change the height of the second rect from 165 to 166 and everything works perfect again.
could someone please try to explain,im realy going mad about this one...
please help
thanks
Holger

Anonymous
05-31-2004, 09:59 AM
I think that your problem come from your values for width and height in filter element.
By default, units are "objectBoundingBox", you have to give percentages ...
By default, width and height are 120%.
If you remove width and height parameters, you see the two bars.
If you write
<filter width="125%"> it's better, you see all effect.

Why ASV draw with height="166" and not with height="165", I don't know!

Michel

Anonymous
05-31-2004, 01:15 PM
Thank you very much

the spec says:

If filterUnits="objectBoundingBox", then x, y, width, height represent fractions or percentages of the bounding box on the referencing element

aha, if i just write a number without % its interpreted as a fraction!and i thought it was allways %!!!(stupid me!)

so what i did was x="-0.5" y="-0.5" width="2" height="2"

thanks again
and have fun
Holger

link-
08-17-2004, 08:13 PM
<a href=> link</a>

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum