[svg-developers] Re: bounding box

2006-02-25 Thread Martin Honnen
--- In svg-developers@yahoogroups.com, Bruno Marquié <[EMAIL PROTECTED]> wrote: > the first alert popup displays 2/0/0 and the second 1/40/120. > why? I > And can you explain me also this order..; why > bboxSize('2') is called before bboxSize('1') ? > > onclick="bboxSize('2')"/> >

[svg-developers] Re: bounding box

2006-02-25 Thread Francis Hemsher
Hi Bruno, Just a quick response, and apologize for not looking further into your app. JavaScript/ECMAscript is not happy with variable names that are integers. Could that be the problem..? Francis Bruno Marquié wrote: > > Hi all, > > I need your lights! > I am working with IE and ASV 3. > I h

Re: [svg-developers] Re: bounding box

2006-02-26 Thread Bruno Marquié
Hi Francis, Thanks you for your answer, but I don't think that could be the problem... I think getBBox() function evaluate the real size ("the painted one") of the element, and not the one specified by width and height ... So now that I know that, I will have to do with it... Also, with IE, I ca

Re: [svg-developers] Re: bounding box

2006-02-27 Thread Holger Will
Bruno Marquié schrieb: Hi Bruno Francis is right, you are not allowed to use numbers as ids, in fact an id must start with a string. but thats does not seem to be the problem in your case. i find that your code works in firefox and ASV6, so it could be a bug in ASV3. cheers Holger > Hi Franci

Re: [svg-developers] Re: bounding box

2006-02-28 Thread Bruno Marquié
Ok Thanks you both! I didn't know about the ids as numbers. My code is working now, embedding use tag inside g element, and using getCCM sometimes too... Thnaks again for your help! Bruno Holger Will wrote: > Bruno Marquié schrieb: > > Hi Bruno > > Francis is right, you are not allowed to use n

[svg-developers] Re: Bounding box on

2011-01-19 Thread Robert Longson
> > Well in this particular example, submitted by a student of mine, > Cyril Pierron, > http://srufaculty.sru.edu/david.dailey/W3CCourse/CPierrongetBBoxUse.svg > [1], Opera and IE+ASV give very different results than Firefox and > webKit. Basically, he's taken a chunk of text, measured it,

[svg-developers] RE: Bounding box of a rotated ellipse

2005-08-17 Thread Richard Smith
This needs solving from first principles. The equation of an ellipse, unrotated and centred on the origin: x0 = a cos t y0 = b sin t (a: major axis; b: minor axis; t (theta): angular parameter) Rotating it by an angle d is equivalent to a coordinate transformation and makes the equations x

[svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-10 Thread t...@ymail.com
--- In svg-developers@yahoogroups.com, Raks A wrote: > > While searching I saw an api called getBBox(). But when I search in mozilla > documentation I do not find any such DOM API, but certain search result > mentions such an API. > The getBBox is part of the JavaScript SVG API specs[1]. David D

[svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-10 Thread t...@ymail.com
--- In svg-developers@yahoogroups.com, Raks A wrote: > > But what are the browsers which support all the SVG DOM Apis. I think at leats getBBox() is supported by all of them (as mentioned, getScreenBBox() unfortunately isn't). > We are > creating a drawing tool where we want to allow the users

[svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-10 Thread t...@ymail.com
--- In svg-developers@yahoogroups.com, Raks A wrote: > > Actually I am aware of the transform attribute but as the requirement is > for a drawing tool the user/artist/designer would keep iterating on an > element ( may be 1000 times ) by repeatedly scaling an element till he is > satisfied which m

[svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-11 Thread jeff_schiller
--- In svg-developers@yahoogroups.com, Raks A wrote: > > But what are the browsers which support all the SVG DOM Apis. We are > creating a drawing tool where we want to allow the users to scale and rotate > a closed path using the mouse. Now we can capture the mouse events but > unless and untill

Re: [svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-10 Thread Raks A
But what are the browsers which support all the SVG DOM Apis. We are creating a drawing tool where we want to allow the users to scale and rotate a closed path using the mouse. Now we can capture the mouse events but unless and untill there is a fast way to get a SVGPath element object, scaling the

Re: [svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-10 Thread Raks A
Actually I am aware of the transform attribute but as the requirement is for a drawing tool the user/artist/designer would keep iterating on an element ( may be 1000 times ) by repeatedly scaling an element till he is satisfied which means if I keep adding transform there would be 1000s of transfor

Re: [svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-12 Thread Raks A
Thanks All, I have been reading the SVG DOM interfaces sections in the SVG docs and trying to come to terms with it There are almost no examples of using the interfaces which is causing lot of confusion, Yesterday only I wanted to created a text element and was stuck as to how to create a text ele

Re: [svg-developers] Re: Bounding Box of SVGElement ( Any Way in Chrome/FireFox/IE )

2011-01-12 Thread Jeff
On Wed, Jan 12, 2011 at 8:42 PM, Raks A wrote: > I could achieve the task without using the SVG DOM API and instead using the > basic DOM API of createElementNS, setAttributeNS and createTextNode > > Would it have been possible to directly use SVG specific APIs to achieve the > same task The way