Re: [svg-developers] Re: Persistent sessions in SVG

2011-10-14 Thread Erik Dahlström
On Thu, 13 Oct 2011 12:52:20 +0200, shellshear and...@otherleg.com wrote:

 Thanks Erik!

 --- In svg-developers@yahoogroups.com, Erik Dahlström ed@... wrote:
 Please use event.preventDefault() on the keyevents you handle.

 Hmm, I recall this being important, but not why - what kind of problems  
 does it cause?

Just a minor annoyance when they conflict with user keyboard shortcuts,  
which is the case if you run with single-key shortcuts enabled in Opera.  
No biggie though, but fixing it is extra credits :)


-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Persistent sessions in SVG

2011-10-12 Thread Erik Dahlström
On Wed, 12 Oct 2011 06:11:33 +0200, Andrew Shellshear  
and...@otherleg.com wrote:

 Heya chaps,

 I'm writing a game in SVG. There's a (fairly crude) demo at:
 http://www.otherleg.com/games/mapGame_new/mapGame.svg

 (use wasd to move around)

Please use event.preventDefault() on the keyevents you handle.

 My intention is that players can login and create their own areas of the
 world. It'd be nice if people don't have to enter their username and
 password every time they go there. It appears, however, that cookie  
 creation
 isn't supported in ECMAScript.

Oh? That should work AFAIK. And if the browser is html5-enabled, then  
document.cookies should work in svg and html documents alike, and you  
should be able to get/set cookies via that interface. See  
https://developer.mozilla.org/en/document.cookie.

 What do people do in this kind of circumstance?

 I was thinking perhaps:
 - embed the svg in some html
 - use the html to get login details and set cookies
 - html script starts an svg ecma script on successful login.

 However, I'm not sure how the get the last step going.

The last step, see  
http://xn--dahlstrm-t4a.net/svg/html/get-embedded-svg-document-script.html  
for an example (reaches into a referenced svg resource from the  
surrounding html to set the fill color). That shows how to grab the svg  
document (and consequently the contentWindow), so if you combine it with  
something like  
http://stackoverflow.com/questions/251420/invoking-javascript-in-iframe-from-parent-page
  
then you should have all you need to be able to call functions inside the  
svg scripts.

 Alternately, is there anything in ECMAScript/SVG that allows persistence
 across sessions?

You can store some data with HTML5 localStorage and/or sessionStorage.  
Both should be available on the window object, so should work even if svg  
is the main document.

Cheers
-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Reference to MS visio 2003 created SVG tags

2009-01-21 Thread Erik Dahlström
On Wed, 21 Jan 2009 05:20:10 +0100, ait_navee naveenkumar_...@infosys.com 
wrote:

 Hi,

 I am working on a new enhancement which deals with rendering a SVG
 file into our application. The SVG file is created by Microsoft Visio
 2003.

 I need to understand and interpret the Visio specific tags present in
 SVG file for rendering. We are not able to get the complete reference
 to these MS Visio created tags.

 It would be really helpful, if you could give us the pointers where we
 can get the complete reference to Microsoft visio 2003 created svg tags.

Sounds like you should talk to Microsoft about that.

Somewhat related, here are two problems I've seen in Visio-exported svg files:
- The font-size is specified without a unit in inline 'style' attributes (and 
possibly elsewhere). This results in incorrect font-sizes in browsers.
- Markers are not set to allow overflow, so they will be clipped by UA:s that 
support markers properly

To fix:
- Add 'px' to any unitless font-size value
- Add overflow=visible to any marker element

These problems may have been fixed in later versions, it would be nice if 
anyone here could confirm that.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Animated path or polyline using SMIL keyTimes or similar

2009-01-19 Thread Erik Dahlström
Yes, I think that should be possible. If you set the 'pathLength' attribute to 
some known value on the path element you want to trace, then you know how 
long the path will be in advance. Then you can calculate what to set the 
stroke-dashoffset to (eg. for 10% of the path it would be 10% of the 
'pathLength' value).

Then set stoke-dasharray to the 'pathLength' value.

You can have a 'keyTimes' that corresponds to each value in the 'values' 
attribute, and make sure they have the same number of values otherwise it won't 
work.

Another option if you don't want to use 'pathLength' is to query the UA for the 
pathlength, with pathelement.getTotalLength(). That requires scripting though.

Hope this helps
/Erik

On Fri, 16 Jan 2009 14:31:10 +0100, tim.becker80 timothee.bec...@gmail.com 
wrote:

 Thank you Eric.
 Well, yes, the from - to method like in the bustrack example is one
 way.
 However, it requires multiple animate elements and the code is
 cumbersome.
 If there was a way similar to keyTimes/values with which all the
 location values and all the times are in a single animate element,
 it would be nice.
 Is there a way?




 --- In svg-developers@yahoogroups.com, Erik Dahlström e...@... wrote:

 On Thu, 15 Jan 2009 18:18:14 +0100, tim.becker80
 timothee.bec...@... wrote:

  Hi.
  Thanks for your answers the other times.
 
  I've been trying to think of a way to use SMIL to produce the
  following result:
  Imagine that a point object moves along a defined path and that it
  reaches every point at a defined time. So in fact, you have x, y,
 t
  coordinates.
  Using SMIL keytimes and values once for x and once for y, it's
 easy
  to make your object move in the wanted way.
 
  What I have not managed to figure out how to do is to have a trail
  following the point. It should be something like a polyline that
  follows the moving point. Following the same trail and reaching
 each
  x, y defined position at the same time as the point.
 
  I guess I could do this using multiple 'from - to animations' but
 it
  would be neater to use a method similar to keyTimes - values. Can
 you
  think of anything?

 Something similar to the animated bustrack here perhaps?

   http://www.carto.net/papers/svg/samples/animated_bustrack.shtml

 Cheers
 /Erik

 --
 Erik Dahlstrom, Core Technology Developer, Opera Software
 Co-Chair, W3C SVG Working Group
 Personal blog: http://my.opera.com/macdev_ed



 



-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Missing glyph substitution

2009-01-19 Thread Erik Dahlström
On Sun, 18 Jan 2009 14:11:49 +0100, pete.haikonen pete.haiko...@yahoo.com 
wrote:

 Hello,

 I have a text and an SVG font. From what I understood, if I define a
 style with two fonts: my font and also with some other font, say:

 .mystyle { font-family: myfont, otherfont }

 what will happen is that the text will be set in myfont unless the
 needed glyph wont be found in it, then otherfont will be used. Right?

In theory yes.

 My question is, is it possible to automatically set all the glyphs
 from otherfont in other color, say red?

 For instance: myfont has ABC glyphs and otherfont has abc. So
 the text:

 span style=mystyleABCabc/span

 will have the other half set in red otherfont.

 In other words, is it possible to let the user know that the glyph
 substitution occurred, possibly without javascript checking every
 letter in the text whether it has corresponding glyph in first font or
 the other?

In theory yes.

There are two problems:
a) the font-family matching may (and most probably will) switch to another font 
other than the 'otherfont' in current viewers
b) to the best of my knowledge no viewer currently supports full svgfonts, only 
the subset defined in SVG Tiny 1.2 (which allows you do define the glyphshapes 
but not to style the glyphs in the font itself)

If you wanted to use one font and then another, you could do for example:
text font-family=myfontABCtspan font-family=otherfontabc/tspan/text

And if you wanted to have the uppercase abc in red, just add fill=red to that 
element, and set another fill for the tspan.

Why do you need to know which font a particular glyph came from?

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Animated path or polyline using SMIL keyTimes or similar

2009-01-15 Thread Erik Dahlström
On Thu, 15 Jan 2009 18:18:14 +0100, tim.becker80 timothee.bec...@gmail.com 
wrote:

 Hi.
 Thanks for your answers the other times.

 I've been trying to think of a way to use SMIL to produce the
 following result:
 Imagine that a point object moves along a defined path and that it
 reaches every point at a defined time. So in fact, you have x, y, t
 coordinates.
 Using SMIL keytimes and values once for x and once for y, it's easy
 to make your object move in the wanted way.

 What I have not managed to figure out how to do is to have a trail
 following the point. It should be something like a polyline that
 follows the moving point. Following the same trail and reaching each
 x, y defined position at the same time as the point.

 I guess I could do this using multiple 'from - to animations' but it
 would be neater to use a method similar to keyTimes - values. Can you
 think of anything?

Something similar to the animated bustrack here perhaps?
  
  http://www.carto.net/papers/svg/samples/animated_bustrack.shtml

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Safari 3.2.1 with ASV 3.0 won't View Source

2009-01-05 Thread Erik Dahlström
On Tue, 23 Dec 2008 17:49:18 +0100, Frank Bruder redu...@yahoo.de wrote:

 --- In svg-developers@yahoogroups.com, Kenneth Nellis nelli...@...
 wrote:

 I wonder if a 2nd pair of eyes might see a problem with my SVG
 code
 in this page:

 http://mysite.verizon.net/nellisks/svg/kakuro/wp.07-10-28.svg

 Safari 3.2.1 with ASV3 and Firefox 3.0.4 and Camino 1.6.5 render
 the
 Kakuro puzzle as desired, but Safari w/out ASV3 renders impossibly
 large text, just as did Opera 9.25. The current version of Opera
 (9.62) renders no text at all, unless its positioned outside the
 window. (This is the one worse thing that I've identified so far
 about Safari's SVG rendering over ASV's.)

 —Ken Nellis



 I've tested it in Squiggle, Apache Batik 1.7, and that looked okay
 too. There seems nothing to be wrong with your code.

 I was able to make it work in Opera 9.62 by removing the style
 element and adding
  font-size=0.275px fill=white
 to the containing g element instead. This also is a shorter
 notation.

Using very small fontsizes (1px) is usually troublesome in my experience, in 
most viewers. I've seen similar problems with pattern when the width or 
height is small.

...

 I've encountered the similar problem that setting the font family in
 a CSS stylesheet didn't work in Opera, whereas using the presentation
 attribute worked.

If you have a testcase showing that please file a bug here: 
http://bugs.opera.com/wizard.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: Re : Re : [svg-developers] Re: Firefox2 vs Firefox3 (code)

2008-12-17 Thread Erik Dahlström
On Wed, 17 Dec 2008 11:50:51 +0100, julie gautier juliegaut...@yahoo.fr wrote:

 Hi again,
 I found out what the problem was : the a xlink:href= that surrounded the 
 checkbox : I used this workaround to have a hand cursor, including with IE7. 
 In FF3, the xlink:href just reloads the page.
 Does anyone know how to display the hand cursor (in FF3 and IE7) without 
 using the a tag ?
 Thanks.
 Julie

If the link isn't really a link then the proper way would be to use the 
'cursor' property[1], e.g cursor=pointer.

Cheers
/Erik

[1] http://www.w3.org/TR/SVG11/interact.html#CursorProperty

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Report on SVG Viewer Performance

2008-12-05 Thread Erik Dahlström
On Thu, 04 Dec 2008 18:38:22 +0100, Helder Magalhães [EMAIL PROTECTED] wrote:

...

 Smoothness and flickering can be pretty tricky, as an interesting
 writing about the fact [1] explains. My personal experience shows that
 this is (apparently) not universal. For example I recall that, when I
 was using CRT monitors, I could easily distinguish between 75 and
 85Hz, although most of my colleagues couldn't. (Honestly, I can't
 imagine how I was using a 60Hz monitor, even if this was about 10
 years ago.) Similar effects using 3D action games: playing in a faster
 machine achieving a higher frame rate made all the difference to me,
 while most of my friends were not so affected (at least, according to
 themselves)...

Yeah, that article is an interesting read. Anyhow, should you feel the need for 
speed, we did include a preference (and a DOM API) for the target framerate in 
svg animations in Opera 10. The default is set to ~30fps, you can change the 
preference to higher (smoother animations but more resource-intensive) or lower 
(less smooth animations but less demanding processing).

The preference can be set through about:config (find it in the SVG section, or 
search for Target Framerate).

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Report on SVG Viewer Performance

2008-12-04 Thread Erik Dahlström
On Thu, 04 Dec 2008 07:12:30 +0100, Frank Bruder [EMAIL PROTECTED] wrote:

 Great work so far. Just three comments:
...
 - Your testing method does not necessarily measure a relevant
 benchmark. A scripting engine which queues events in such a way that
 interval and timeout events always are executed in the correct order
 would get perfect scores, no matter how much time the rendering takes.
 In the second call to setInterval() you could create a Date object
 each time and use that for measuring, to account for the possibility
 that the longer interval might be delayed in accordance with the
 shorter interval. Furthermore a user agent could switch to rendering
 only every other frame when the animation speed would otherwise slow
 down too much. Video player software commonly does this.

I would agree that doing DOM modifications and checking how long it took before 
it could do the next update/modification isn't necessarily very accurate. If 
little or no rendering is done at all, then you'd probably get a very high 
score.

There's no guarantee that the DOM modifications actually result in a new 
rendering before the next update call. This is what Frank is getting at about 
dropping frames, there's no guaranteed framerate.

Second, the Date objects / timers that are used can have varying 
resolution/quality in browsers, and across platforms. That may skew results.

Third, in any case why would you need a framerate higher than the screen 
refreshrate? For the DOM modifications sure, they should be expected to run as 
fast as possible. But unless you run with vertical sync disabled you'll not see 
the frames that are produced in excess of the screen's refreshrate, and if you 
do get the extra frames then you may well see tearing problems. So yes, it's 
good if the DOM modifications are as fast as possible, and yes it's good if the 
viewer can produce frames faster than it needs to actually draw them on screen, 
but I don't think that you're measuring actual rendering framerates. Another 
justified question would be: if you're not going to see the frames anyway, why 
should valuable CPU time be wasted rendering them?

Anyway, you may want to check out the SVGSVGElement.currentFps[1] DOM API in 
the just released[2] Opera 10 for comparison. That property will provide the 
average framerate based on samples from when the svg was actually rendered to 
screen.

And I want to add that performance testing is really important, and that the 
above points in no way invalidate your work. They're just things that may skew 
the results. What you see on your screen and in CPU and memory usage is what 
really counts IMHO, and it's clear that in that respect the SVG viewers keep 
improving at a steady rate.

Cheers
/Erik

[1] http://dev.opera.com/articles/view/presto-2-2-and-opera-10-a-first-look/
[2] http://www.opera.com/browser/next/

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Dynamic change of xlink:href attribute in image

2008-11-13 Thread Erik Dahlström
On Wed, 12 Nov 2008 20:14:24 +0100, Luis Vielva [EMAIL PROTECTED] wrote:

 Dear svg developers,

 When I change the xlink:href attribute of an image element
 in svg I would expect the displayed image to change. It works
 as expected in IE with ASV, firefox, chrome and safari. But
 I have had to way to change the displayed image in Opera
 (if the possible images are known beforehand you could always
 put a sequence of image and play with the display attribute,
 but it is not the way I would like to do it).

 Does any one of you know if Opera supports that dynamic
 change of a displayed image ?

It is supported in Opera. You may be running into issues if you use the 
non-namespace-aware DOM methods (set/getAttribute) though.

Here are some ways you can set the xlink:href:

 - With an animation element, e.g set attributeName=xlink:href 
to=http://foobar.com/; /
 - With script:
   - elm.setAttributeNS(http://www.w3.org/1999/xlink;, xlink:href, 
http://foobar.com;)
   - elm.setAttributeNS(http://www.w3.org/1999/xlink;, href, 
http://foobar.com;)
   - elm.href.baseVal = http://foobar.com;; (working example see here[1])
   - elm.setTraitNS(http://www.w3.org/1999/xlink;, href, http://foobar.com;)

My vote goes to elm.href.baseVal, which AFAIK works fine in all of the viewers 
you mention.

Hope this helps
/Erik

[1] 
http://svgopen.org/2008/presentations/70-Tricks_of_Javascript_and_declarative_animation/index.html#slide13

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Interactive access to interpolated states of an SVG SMIL animation

2008-11-04 Thread Erik Dahlström
On Tue, 04 Nov 2008 02:52:50 +0100, Frank Bruder [EMAIL PROTECTED] wrote:

 When the slider is moved, you can call setCurrentTime() on the root
 element
 http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement
 First you'll have to call pauseAnimations() so the animations will not
 run when the slider isn't moved.

 If you need to obtain any values for the time to which you slided,
 then use the respective animVal instead of getAttributeNS().

Yes, either animVal, or the getPresentation*Trait methods[1]. I found the 
TraitAccess methods easier to work with for the presentation attributes / css 
properties than the SVG 1.1 way with the CSS OM [2]. However, for attributes I 
still prefer the SVG 1.1 syntax, mostly because that works in all the 
svg-capable web browsers.

 One problem which arises is how to determine the time span which the
 slider should parametrize. Animations can loop indefinitely, so there
 is no global end time for an animated SVG.

Yes, that is difficult to say, and not always applicable. There has been some 
discussion about adding an attribute on the root svg element to say what the 
intrinsic duration is [3].

Cheers
/Erik

[1] http://www.w3.org/TR/SVGMobile12/svgudom.html#svg__TraitAccess
[2] http://www.w3.org/TR/DOM-Level-2-Style/
[3] http://lists.w3.org/Archives/Public/www-svg/2008Jul/0015.html

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Performance of scripting in current browsers

2008-11-03 Thread Erik Dahlström
On Tue, 04 Nov 2008 05:41:19 +0100, G. Wade Johnson [EMAIL PROTECTED] wrote:

 Over the last few weeks, I've been doing some performance testing of
 the SVG display tools I currently have access to. While I don't have
 conclusive results yet, some of my results have surprised me.

 The last time I tried anything close to this, browser results were
 pretty bad. But the current results are much better than expected.

 I'm showing the 1.8 pre-release of Squiggle (Batik) is by far the
 fastest (by a factor of 2 to 4) for the kinds of tests I'm doing. What
 I found really surprising is that Firefox 3.03 is currently a little
 faster than Opera 9.6 in my tests.

 I'm running my tests on a 1.66 GHz Core 2 Duo running Linux. The SVG
 files I'm testing are instrumented versions of
 http://anomaly.org/wade/projects/svgplay/wuse.svg and
 http://anomaly.org/wade/projects/instruments/Instruments.svg

Interesting. On my winXP machine Opera 9.62 uses about half as much CPU as 
Firefox 3.03 to run the wuse.svg file.

How are you measuring the relative performance?

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] getElementById-in-firefox-bug

2008-10-31 Thread Erik Dahlström
Right, my hypothesis is:
 - since FF3 doesn't handle svg's animation (or SMIL if you will) elements they 
become unknown XML elements in the DOM
 - as a consequence the 'id' attribute isn't on an svg element that FF3 knows, 
and therefore is not thought to be of type ID = it's handled as any other 
unknown attribute
 
Or in other words, what you wrote :)

Cheers
/Erik

On Thu, 30 Oct 2008 16:54:19 +0100, Olaf Schnabel [EMAIL PROTECTED] wrote:

 Hi Klaus and Erik

 thanks for your answers. Am I understand you right: Because Firefox
 doesn't support SMIL, the animate element is a foreign element for him?

 Olaf

 Erik Dahlström wrote:
 The elements are part of the DOM tree, since it's XML, but the 'id' 
 attribute is not of type ID for arbitrary XML. You could use 'xml:id' in 
 such cases, but I'm not sure FF supports that. The other option is to push 
 for FF to recognize the elements as SVG elements.

 Cheers
 /Erik

 On Thu, 30 Oct 2008 16:44:49 +0100, Klaus Förster [EMAIL PROTECTED] wrote:

 Olaf, could it be that this is due to missing animation support in FF3.
 It seems that unknown elements are discarded and thus not part of the
 DOM tree ...

 Klaus

 Olaf Schnabel wrote:

 Hi developers

 I currently try to detect an animation element in a SVG file with
 document.getElementById(). Unfortunately, Firefox 3.0.3 returns always
 null. In Opera 9.62 and IE7+ASV3.03 this example works well (I am
 working on Windows XP SP3). Has somebody an idea how this can be? I
 thought that getElementById() is implemented in all major browsers???

 Here is the link to the example:
 http://www.ika.ethz.ch/schnabel/getelementbyid_firefoxbug.svg
 http://www.ika.ethz.ch/schnabel/getelementbyid_firefoxbug.svg

 Thanks for your help.
 Regards
 Olaf

 --
 Dr. Olaf Schnabel
 Institute of Cartography
 ETH Zurich
 Wolfgang-Pauli-Str. 15
 8093 Zurich
 Switzerland

 tel: ++41 44 633 3031
 fax: ++41 44 633 1153
 e-mail: [EMAIL PROTECTED] mailto:oschnabel%40ethz.ch
 www private: http://www.ika.ethz.ch/schnabel
 http://www.ika.ethz.ch/schnabel
 www project: http://www.e-cartouche.ch http://www.e-cartouche.ch
 www institute: http://www.karto.ethz.ch http://www.karto.ethz.ch









-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] getElementById-in-firefox-bug

2008-10-30 Thread Erik Dahlström
The elements are part of the DOM tree, since it's XML, but the 'id' attribute 
is not of type ID for arbitrary XML. You could use 'xml:id' in such cases, but 
I'm not sure FF supports that. The other option is to push for FF to recognize 
the elements as SVG elements.

Cheers
/Erik

On Thu, 30 Oct 2008 16:44:49 +0100, Klaus Förster [EMAIL PROTECTED] wrote:

 Olaf, could it be that this is due to missing animation support in FF3.
 It seems that unknown elements are discarded and thus not part of the
 DOM tree ...

 Klaus

 Olaf Schnabel wrote:


 Hi developers

 I currently try to detect an animation element in a SVG file with
 document.getElementById(). Unfortunately, Firefox 3.0.3 returns always
 null. In Opera 9.62 and IE7+ASV3.03 this example works well (I am
 working on Windows XP SP3). Has somebody an idea how this can be? I
 thought that getElementById() is implemented in all major browsers???

 Here is the link to the example:
 http://www.ika.ethz.ch/schnabel/getelementbyid_firefoxbug.svg
 http://www.ika.ethz.ch/schnabel/getelementbyid_firefoxbug.svg

 Thanks for your help.
 Regards
 Olaf

 --
 Dr. Olaf Schnabel
 Institute of Cartography
 ETH Zurich
 Wolfgang-Pauli-Str. 15
 8093 Zurich
 Switzerland

 tel: ++41 44 633 3031
 fax: ++41 44 633 1153
 e-mail: [EMAIL PROTECTED] mailto:oschnabel%40ethz.ch
 www private: http://www.ika.ethz.ch/schnabel
 http://www.ika.ethz.ch/schnabel
 www project: http://www.e-cartouche.ch http://www.e-cartouche.ch
 www institute: http://www.karto.ethz.ch http://www.karto.ethz.ch






-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] progressive drawing of path -- attempt to use clipPath

2008-10-28 Thread Erik Dahlström
On Mon, 27 Oct 2008 17:28:56 +0100, Dailey, David P. [EMAIL PROTECTED] wrote:

 

 Andreas wrote:
 not sure I fully understand your requirement. Are you looking for a
 progressive drawing of a path geometry? If yes, you can do this by
 animating the stroke-dash of a path.

 Examples are provided: [1] and [2]. Yes; exactly what I was asking for.
 Pretty clever it is!

 Now I have a new question - consider the example at
 http://srufaculty.sru.edu/david.dailey/svg/unveilPath.svg (it uses SMIL
 so be sure to use a proper browser)

 I've simplified the basic example as much as I can, and am trying to
 animate the fill to follow the animation of the path. Clearly this is a
 kludge. However, what I did think of was the following: how about I
 stick a copy of the first half of the path (with its animated
 stroke-dash) inside a clipPath and then apply the  clipPath to the
 original path. Then shouldn't the growth of the clipping region unveil
 the path as well as its fill, concurrently?

 Alas, it didn't work. From the spec [3] , we find that

 The raw geometry of each child element exclusive of rendering
 properties such as 'fill'
 http://www.w3.org/TR/SVG/painting.html#FillProperty , 'stroke'
 http://www.w3.org/TR/SVG/painting.html#StrokeProperty , 'stroke-width'
 http://www.w3.org/TR/SVG/painting.html#StrokeWidthProperty  within a
 'clipPath' conceptually defines a 1-bit mask (with the possible
 exception of anti-aliasing along the edge of the geometry) which
 represents the silhouette of the graphics associated with that element.

A mask should be able to do the trick. Inside the mask just draw the path with 
white fill and/or stroke.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] open svg files in opera

2008-10-27 Thread Erik Dahlström
On Thu, 23 Oct 2008 16:11:01 +0200, tim.becker80 [EMAIL PROTECTED] wrote:

 Hi peops !
 I use opera as my SVG viewer and so I'm constantly opening files
 stored on my HD (File  Open...). My problem is that the default
 setting of opera when opening a file is to display only html files.
 Of course, one can unrole the menu of file extensions and choose SVG
 or all files but it's quite annoying to do it every single time.

I'd suggest asking the same question in the my.opera.com forums[1].

Usually I dragdrop svg files on Opera to open them, or use directory listings 
and search for .svg (if you have enabled single-key shortcuts just press 
comma and then type what you want to search for).

 Do you know how to change the setting of opera for it to
 automatically offer the possibility of opening svg files or even all
 files?

I don't think there's a pref setting for which file-extension filter is used by 
default, but I could be wrong. And I would be surprised if there wasn't a way 
to modify the install of Opera to change the default order by some other means, 
such as editing a config file manually.

Cheers
/Erik

[1] http://my.opera.com/community/forums/

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Opera 9.6, any new SVG support?

2008-10-16 Thread Erik Dahlström
On Wed, 15 Oct 2008 21:32:40 +0200, Andreas Neumann [EMAIL PROTECTED] wrote:

 Hello,

 This is more a question towards Erik or Chaals.

 I wonder if there is some new SVG support or SVG related improvements
 in Opera 9.6.

Mostly fixes to improve stability, for inline text editing in svg (the 
'editable' attribute), for printing issues, and for using svg in generated 
content (CSS ::content, ::after and ::before). No new svg features were added 
in 9.6.

There was a fix made for XSLT that can affect svg, if an XSL stylesheet 
generated an ?xml-stylesheet? node that stylesheet was never applied to the 
generated output.

These are the ones I can tell off hand, there are probably many other changes 
that affect svg in one way or another.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Composite filters with masks in Opera FF and IE -- standards and tests

2008-10-15 Thread Erik Dahlström
On Mon, 13 Oct 2008 18:50:56 +0200, Dailey, David P. [EMAIL PROTECTED] wrote:

...
 http://srufaculty.sru.edu/david.dailey/svg/composite2.svg
...
 The chroma in FF and IE are more similar, but the radius in FF and Opera
 are more similar. In Opera the interaction between the chroma of the
 mask and those of the image itself seem to be more pronounced. Which
 implementation is correct?

It's hard to say.

I guess it would be possible to do a reference implementation based on the 
algorithms in the spec and compare the output bitwise. But since the actual 
rendering of shapes still leaves some wiggleroom you'd have to make sure that 
the filter in-data was bitwise exactly the same on all implementations, I guess 
using feFlood might work there. For the exact same indata and filter algorithm 
settings the implementations should produce the same output, at least in most 
cases.

 As we begin to talk about cross-browser standards for passing or not
 passing tests and benchmarks, I have been skeptical that specs will ever
 nail things down precisely enough to allow bitwise comparison of output.
 This little experiment ended up closer than I expected it would, but
 still supports the basic premise that exactness of output may never be
 pixel perfect across browsers. On the other hand, it seems as though the
 wild divergence of the case with the mask applied over the composite
 filter is a bit more divergent than I would have expected, and
 particularly when the animation is applied.

Possibly due to anti-aliasing on masks being applied or not since that may give 
some edge noise if filtered.

 FWIW, the effect in Opera is what I was trying for, though I'm not
 confident that that's what it should have been. (Ultimately I wanted a
 fractal shape - not an oval - to be filled with fractal-looking chroma,
 wiggling cloud-like over time)

This may be because of the way elements/effects are rendered, see[1]. If you 
had a mask that was defined by a shape that was filtered you might be able to 
get the effect I believe you want.

Cheers
/Erik

[1] http://www.w3.org/TR/SVG11/render.html#Elements

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Opera 8.5 Support Javascript on SVG Doc?

2008-10-13 Thread Erik Dahlström
On Sat, 11 Oct 2008 03:18:53 +0200, forever_successful [EMAIL PROTECTED] 
wrote:

 Hello SVG Developers!

 I want to ask if Opera 8.5 support JS on SVG Document or not?

Opera 9 was the first release to have officially supported scripting in SVG, 
including the majority of the SVG 1.1 DOM.

That said, it's still possible to do some simple DOM core operations on svg 
documents in Opera 8.5, as long as something else took care of 
invalidating/redrawing the document (such as a declarative animation). Not that 
I'd recommend doing that, but it is possible.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: SVG panning

2008-09-25 Thread Erik Dahlström
On Wed, 24 Sep 2008 20:27:30 +0200, Helder Magalhães [EMAIL PROTECTED] wrote:

 document.documentElement.currentTranslate.x = x;
 document.documentElement.currentTranslate.y = y;

 Have I missed something or does this functionality not work?

 Yes, you did! ;-) The currentTranslate is read-only...

 «readonly attribute SVGPoint currentTranslate;» [1]

Well, currentTranslate is readonly, but the attributes the SVGPoint contains 
are read-write.

Or as illustrated in this example:

document.documentElement.currentTranslate = mysvgpoint; // Fails, 
currenttranslate is readonly
document.documentElement.currentTranslate.x = 10; // Succeeds, the x attribute 
on SVGPoint is writable

If you're in IE you should perhaps check the type of your documentElement, if 
the script is on the HTML-level for example it might not be what you expected.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] opera 9.5 and 9.6 do not shrink embed svg

2008-09-24 Thread Erik Dahlström
On Wed, 24 Sep 2008 16:18:43 +0200, Jonathan Watt [EMAIL PROTECTED] wrote:

 philsvg2 wrote:
 Hi All,

 I had upgrade my web site http://www.visualkit.com
 http://www.visualkit.com so it is now
 compliant with FF 3.0, IE+ASV3, and Opera 9.25 (svg-html-svg
 communication, as always, you can grab the code as example, all
 necessary code is in html or svg page (sorry, not very clean, i have
 to wash it)

 I have to test it with google chrome, renesys, safari (first test
 months ago shows printing is not in good scale) (great to see so much
 svg browsers!)

 But when I upgraded Opera 9.25 to 9.5, i saw that embed svg was not
 shrink, scrollbars appear around svg document as with opera 9.6 beta,
 and FF 2.

 Yes, it's one of the issues that we fixed in Firefox 3.

 I can't find any option to force svg document to fit embed tag size
 and i reported this as a bug to opera team.

A workaround is to remove the width and height attributes on the svg root 
element.

Long story short the bug has already been fixed, but it's not yet made it into 
public builds.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] focusHighlight must be inheritable

2008-09-23 Thread Erik Dahlström
On Tue, 23 Sep 2008 11:20:32 +0200, Chris Peto [EMAIL PROTECTED] wrote:

 Hi,

 I have over 500 svg planes that I import into a svg program over getURL,
 because the “focusHighlight” is not inheritable I would have to go and
 reedit all 500 planes.  Sorry, I will not do this nor my customer pay for
 such an act.  This leads to the fact that none of the browsers that support
 this new feature can be used, so back to IE and ASV.  Not good!

 This also goes for “focusable” attribute.

Opera 9.6 will hopefully include a patch so that focusable elements are only 
highlighted if you do keyboard navigation, stay tuned.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] SVG and video?

2008-09-17 Thread Erik Dahlström
A few links since they seemed to be missing from the previous reply:

  http://dev.opera.com/articles/view/a-call-for-video-on-the-web-opera-vid/

  http://my.opera.com/MacDev_ed/blog/2007/11/21/svg-at-the-movies-take-two

And there are a number of svg tests in the SVG Tiny 1.2 testsuite which deal 
with video (using mpeg streams only at this point):

  http://dev.w3.org/SVG/profiles/1.2T/test/svg/ (all tests named media-video-*)

It's possible to do some graceful fallbacks e.g. using the requiredFormats 
attribute[1] from SVG Tiny 1.2, but in the end it comes down to the codecs you 
can count on being there on all different platforms, on all devices.

Cheers
/Erik

[1] http://www.w3.org/TR/SVGMobile12/struct.html#RequiredFormatsAttribute

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] SVG support detection in browserland

2008-09-12 Thread Erik Dahlström
On Fri, 12 Sep 2008 11:31:19 +0200, David [EMAIL PROTECTED] wrote:

 Hi Ian,

 See the DOMImplementation.hasFeature method :
 http://www.w3.org/TR/SVG/feature.html

If you prefer a non-scripted variant I recommend using the conditional 
attributes[1] with the svg featurestrings[2][3] in conjunction with the 
switch element. Here's an example[4] of that.

Cheers
/Erik

[1] http://www.w3.org/TR/SVG11/struct.html#ConditionalProcessing
[2] http://www.w3.org/TR/SVG11/feature.html
[3] http://dev.w3.org/SVG/profiles/1.2T/publish/feature.html
[4] http://files.myopera.com/MacDev_ed/blog/vistamenu.svg (or see 
http://my.opera.com/MacDev_ed/blog/2008/02/05/how-to-do-photoshop-like-effects-in-svg)

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Safari problem with no nought

2008-09-11 Thread Erik Dahlström
On Thu, 11 Sep 2008 02:09:58 +0200, ddailey [EMAIL PROTECTED] wrote:

 Hi Jeff!

 Jeff Schiller wrote:

On the other hand, I'm not sure about begin/end times in SMIL.  I
noticed last night that Opera seems to have problem with missing
nought characters in SMIL events (i.e. begin=.25s).  Haven't done
any thorough investigation though.

 I used to notice (a couple of years ago) that Opera had problems if I used 
 dur=.5s instead of dur=0.5s, but thought that had all been fixed. Maybe I 
 just got used to using 0. in my time units for SMIL.  So yes, we'll need to 
 make sure to include such cases.

The syntax for the begin attribute is borrowed from SMIL, and the grammar 
doesn't allow for a . to start a Clock-value. Possibly this is because it 
can cause confusion with id-values, but I haven't looked at it in detail yet.

Another somewhat related gotcha is dash/minus characters in id:s, that can 
clash with the event-value syntax, e.g. 'someid-0.4s.end' since 'someid-0.4s' 
is a valid id. What you need to do in such cases is to escape the dash in the 
id with a backslash.

 There are some boundary problems still existing of that type

 for example in 
 http://srufaculty.sru.edu/david.dailey/svg/SVGOpen2008/filterBlur2.svg , if I 
 put

 filter id=D  x=0% y=0% width=100% height=100%
feGaussianBlur stdDeviation=25,0 /
 /filter

 instead of

 filter id=D  x=0% y=0% width=100% height=100%
feGaussianBlur stdDeviation=25,0.1 /
 /filter

 (thanks to Erik for helping me figure this out)

It should work, the spec wasn't explicit about this particular case though. If 
stdDeviation is 0 then nothing should be rendered according to the spec. 
However when it's  0 in one direction and 0 in the other then I agree it makes 
sense to render it. I'll see if I can clarify this in the SVG Filters 1.2 spec, 
and try to get this fixed in Opera.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Right-click menus in SVG

2008-09-10 Thread Erik Dahlström
On Tue, 09 Sep 2008 22:09:03 +0200, John C. Turnbull [EMAIL PROTECTED] wrote:

 Forgive me if this is a bit obvious but I notice that when viewing an SVG in
 a browser, the browser seems to control what happens when the right mouse
 button is clicked with standard browser functionality.  So does this mean
 that it is not possible for an SVG itself to process right-clicks and have
 popup menus of its own?

In Opera each user must manually allow right-clicks to be handled by scripts:

  Tools  Preferences  Content  JavaScript Options...  Allow scripts to 
receive right clicks

The default is that scripts are not allowed to receive right clicks.

In most cases I would personally not like scripts to be able to override the 
built-in context menu. However, allowing content to add menuitems might be a 
workable solution. E.g see the menu section in HTML5 [1].

Cheers
/Erik

[1] http://www.w3.org/html/wg/html5/#menus

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Named colors revisited

2008-09-08 Thread Erik Dahlström
On Fri, 05 Sep 2008 19:15:31 +0200, Frank Bruder [EMAIL PROTECTED] wrote:

 --- In svg-developers@yahoogroups.com, Erik Dahlström [EMAIL PROTECTED] 
 wrote:

 On Thu, 04 Sep 2008 13:20:06 +0200, markdyson.13441 [EMAIL PROTECTED] 
 wrote:

  This is a follow-up to a question I asked several weeks ago.
  Apologies for the delay, I had medical issues.
 
  The question was whether SVG supported name aliases for color
  definition, and I was shown there is indeed an existing list of such
  named colors.  I think what I'm driving at goes a bit deeper; an
  example might be best.

 SVG 1.2 Tiny allows this, see the spec[1] (and if you scroll down a
 bit from there, there's even a complete example of how to use it).

 In a solidColor element you can set the 'solid-color' attribute to
 whatever color you need using the normal svg syntax for colors, and by
 giving the solidColor element an id you can reference this as a
 paintserver, just like a gradient, e.g url(#mycolor).


 Actually, solidColor defines a paint server, which, strictly
 speaking, is not the same as a color keyword. You can reference a
 paint server in the fill and stroke properties of a shape element. But
 color keywords can also be used in a gradient as the stop-color of a
 stop element. This is a place where you need to specify a color and a
 paint server is not an allowed value.

 On another note, it's possible to use a gradient with just one color
 for the whole range as a substitute for solidColor. This wouldn't
 require an SVG 1.2 viewer.

Thanks, I've raised this as an issue for a future SVG spec revision [1].

If there's further feedback on this topic, please post to the [EMAIL PROTECTED] 
list and put ISSUE-2047 in the mail body or subject line.

Cheers
/Erik

[1] http://www.w3.org/Graphics/SVG/WG/track/issues/2047


-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Named colors revisited

2008-09-05 Thread Erik Dahlström
On Thu, 04 Sep 2008 13:20:06 +0200, markdyson.13441 [EMAIL PROTECTED] wrote:

 This is a follow-up to a question I asked several weeks ago.
 Apologies for the delay, I had medical issues.

 The question was whether SVG supported name aliases for color
 definition, and I was shown there is indeed an existing list of such
 named colors.  I think what I'm driving at goes a bit deeper; an
 example might be best.

SVG 1.2 Tiny allows this, see the spec[1] (and if you scroll down a bit from 
there, there's even a complete example of how to use it).

In a solidColor element you can set the 'solid-color' attribute to whatever 
color you need using the normal svg syntax for colors, and by giving the 
solidColor element an id you can reference this as a paintserver, just like a 
gradient, e.g url(#mycolor).

Opera 9.5 supports this, if you are looking for something to test in.

 In the GeoSym standard, when the various attributes of a feature are
 looked up and evaluated to select a final portrayal image, the color
 of that image is defined by a specific name; that name has to be used
 as is, or else somehow translated from GeoSym into something that SVG
 can understand.  Further, the same color name will refer to one of two
 different RGB values, depending on whether the feature is being viewed
 under day or night conditions.

It's possible to animate the solid-color attribute, does that solve your 
problem?

 My question, my understanding of the underpinnings of SVG being as
 weak as it is, can this color definition method be supported within
 SVG itself, or must the colors first be translated into RGB values
 externally and fed to SVG? 

Depends if the colors are defined in svg already or not, see the color 
syntax[2].

Hope this helps
/Erik

[1] http://dev.w3.org/SVG/profiles/1.2T/publish/painting.html#SolidColorElement
[2] http://dev.w3.org/SVG/profiles/1.2T/publish/types.html#DataTypeColor

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] SVG benchmark

2008-09-05 Thread Erik Dahlström
On Mon, 01 Sep 2008 14:12:21 +0200, ddailey [EMAIL PROTECTED] wrote:

 Hi Jocke,

 Take a look at 
 http://srufaculty.sru.edu/david.dailey/svg/SVGOpen2007/SVGOpen2007.htm
 and http://www.svgopen.org/2007/papers/BrowserPerformanceMeasures/index.html

...

 Also Opera has implemented a finished rendering event that may appear in a 
 future spec (fingers crossed) and so this can help those interested in 
 benchmarking and calibration of time-sensitive events like real-time data 
 visualization.

What's implemented currently (internal Opera builds only at this time) is not 
an event, but a DOM attribute on the SVGSVGElement interface called 
'currentFps' that you can access to query the current framerate.

Though yes, nothing is technically preventing us from dispatching something 
like a frame rendered event. However, how that would affect performance is 
also something we'd need to evaluate.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] hyperlink new window problem

2008-07-22 Thread Erik Dahlström
On Tue, 22 Jul 2008 14:34:25 +0200, Olaf Schnabel [EMAIL PROTECTED] wrote:

 Hi developers

 I need a workaround for a linking problem. In my small example
 http://www.ika.ethz.ch/schnabel/hyperlink.svg
 I want to click on a rectangle and a new browser window should open.

 With the first method xlink:show=new, the hyperlink is opened in the
 same window (works in all browsers). With the second method
 target=blank, the hyperlink opens in a new window/tab in Opera 9.51,
 Firefox 3.0.1, IE6 (ASV3 and ASV6 tested) but in IE7 (ASV6) nothing happens.

How about target=_blank, that is with a leading underscore?

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] appendChild problem in Opera / ASV6

2008-07-04 Thread Erik Dahlström
Hello Olaf,

It's always useful if such bugreports go directly to the Opera bugtracker  
(as early as possible), http://bugs.opera.com/wizard.
I've logged this now as bug #345632.

Anyway, in theory you should be able to use something like this in your  
example:
style type=text/css
   rect:hover { stroke: red; }
/style

I think that's marginally cleaner than changing the stroke in script, but  
of course that still doesn't solve the problem with elements that are  
taken out of the tree.

Cheers
/Erik

On Thu, 03 Jul 2008 12:25:32 +0200, Olaf Schnabel [EMAIL PROTECTED]  
wrote:

 I found a workaround for the problem. I just copied the geometry
 attributes of the active rectangle to a new rectangle on top of the SVG
 group and applied there the new stroke style. On mouseout the geometry
 of the new rectangle is deleted.

 But this is just a workaround, the problem still remains. Opera and the
 Adobe Plugins (3 and 6prealpha) both lose the focus on an active element
 if it is moved in the DOM. I think this is a bug.

 Regards
 Olaf

 Olaf Schnabel wrote:


 Hi developers

 I need a workaround for an appendChild problem in Opera 9.5 and IE7
 (ASV6 installed), in Firefox 3 it works fine. In my small example
 http://www.ika.ethz.ch/schnabel/append.svg
 http://www.ika.ethz.ch/schnabel/append.svg I have several rectangles.  
 In
 a first step, the stroke of the active rectangle is set to red on
 mouseover. Then, the active rectangle is set on top of all other
 rectangles via appendChild. This works in all browsers but Opera 9.5 and
 ASV6 seem to lose the focus on the active rectangle. Therefore, the
 onmouseout event (set stroke to none) doesn't work anymore (except
 Firefox 3, which seems to interpret the code correct for me).
 Has anyone a workaround for this problem?

 Thanks for your answers
 Olaf





-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] SVG Font Update - Opera and Webkit

2008-06-27 Thread Erik Dahlström
Hello James,

On Tue, 24 Jun 2008 22:45:35 +0200, James C. Deering  
[EMAIL PROTECTED] wrote:

...

 Everything works fine except that Opera is sloow as molasses!

Sorry that you feel that way. The level of svg support varies among  
browsers, so to be able to do a fair comparison of performance you should  
first remove everything that isn't handled by some browser.

 See the menu roll overs for just one example. Also the zoom
 needs work. Current speed deficiency makes it unusable for
 SVG web presentations.

Have you tried common content optimization strategies [1]?

For example:
- using 'display' is way better than using 'visibility'
- are your the filter chains optimal? I.e. using only as many steps as  
required, and limiting the filter region using x,y,width,height on the  
filter element?
- do animations run endlessly? I.e. even when not visible?

 When tested with Webkit:

 Good SMIL animation speed.

Sure, remove the filters (which webkit ignores) and you can expect the  
same in Opera too.

...

 When tested with Firefox:

 What test? Has no support for SVG fonts, SMIL animation or
 filters.

Filters are supported in FF3 (yaay :)

 I look forward to running this file perfectly in
 the near future.

Well, it's a good stress-test for sure. Though your best bet for making it  
work in the current generation of browsers will involve making different  
design choices, for example not using SVGFonts, and perhaps using  
javascript for animations (though FakeSMILe is an option if you prefer to  
keep the declarative animations there and still have it work in FF and  
Safari).

Cheers
/Erik

[1] http://wiki.svg.org/Optimizing_SVG_content
[2] http://leunen.d.free.fr/fakesmile/

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] accessing SVG constructor functions in opera and webkit

2008-06-26 Thread Erik Dahlström
On Thu, 19 Jun 2008 23:44:05 +0200, Cameron McCormack [EMAIL PROTECTED]  
wrote:

 Erik Dahlström:
 The first instanceof test returns true in Opera 9.5, the second one  
 false,
 in accordance with the Ecmascript 262 spec AFAIK. There's no multiple
 inheritance in Ecmascript.

 I don’t think it’s necessarily in accordance with ECMA-262.  That spec
 doesn’t say how instanceof should behave when you have a host object on
 the RHS.

 It seems natural to me for the second one to return true, too.

I agree that that seems logical, and it does seem to apply to some of the  
SVG interfaces, though not all.

...
 Is that how you think it should work?  I’d appreciate your input for Web
 IDL.

It's clearly desirable to be able to add custom methods and data on any of  
the svg interfaces. I'll see what can be done to fix this.

 And are there any rules for interfaces that cannot be constructed?  For
 example I notice that:

   Node.protoype.abc = 123;
   alert(document.abc);

 does work in an SVG document.

Indeed.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: tip for parseXML and FireFox3 and IE+ASV3

2008-02-21 Thread Erik Dahlström
Hi Phil,

On Thu, 21 Feb 2008 00:09:18 +0100, philsvg [EMAIL PROTECTED] wrote:

 Hello Erik,

 You're right!

 with Opera :
 evt.target: [object SVGElementInstance]evt.currentTarget: [object
 SVGUseElement]

 With FFX :
 evt.target: [object SVGUseElement]evt.currentTarget: [object
 SVGUseElement]

 So, to deal with evt, i use now :
 if (typeof evt.target.id != 'undefined') // don't find a better way
 to check
 {
 objet=evt.target.getAttributeNS(null,id);
 }
 else {
 objet=evt.currentTarget.getAttributeNS(null,id);
 }

It seems you are not interested in the id:s of the use:d elements, only  
the id:s of the use elements themselves. If that's true then you can use  
evt.currentTarget everywhere and just remove the unnecessary specialcasing.

 Now I can fill shapes with bitmaps patterns and compare patterns with
 IE, FFX and Opera : ex-equo IE and Opera, FFX shows white line at
 junction(varying when zooming).

Perhaps those are anti-aliasing or alignment issues? You can always play  
with the 'image-rendering' and 'shape-rendering' properties to see if that  
helps.

 As i use svg like a simple scripting language, i find IMHO that it is
 not consistent to have two different syntaxes to access to an object
 (is it for secutity issues?). I see that i will have to deal with
 that for groups ...

Oh? Is this not the same as the issue with SVGElementInstance? Feel free  
to share some more details. :)

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: tip for parseXML and FireFox3 and IE+ASV3

2008-02-20 Thread Erik Dahlström
On Wed, 20 Feb 2008 00:00:42 +0100, philsvg [EMAIL PROTECTED] wrote:

 Hello Erik,

 I had already find your example, which demonstrate only html-svg-
 html, not svg-html-svg (IMHO).

 i found my prefered example here :

 http://svg-whiz.com/svg/interdoc/html-svg.html

 I found it using FFX, and i downloaded it on my local disk. When i
 tested it with Opera, it doesn't work. At loading,I get The
 GetSVGDocument interface is not supported message, not with FFX.

Embed with svg:s in Opera 9.2x may sometimes give a non-consistent result  
unfortunately, should work consistently in 9.5 though. Replacing embed  
with object usually helps.

 And now, trying my svg generated code working with FFX3b, with Opera
 I have a type mismatch error at
 objet = evt.target.getAttributeNS(null, id); (syntax recommanded in
 http://jwatt.org/svg/authoring/  i decided to follow ... and works
 well for FFX)
  that i can replace by (as i can see in the example code)
 objet_temp=evt.target;
 objet=objet_temp.id;

FF doesn't implement the SVGElementInstance DOM, so my guess is that you  
are seeing this on elements that were use:d. Inspect the type of  
evt.target to see what it is, alert(evt.target:  + evt.target +   
evt.currentTarget:  + evt.currentTarget). Sometimes evt.currentTarget is  
what you wanted, sometimes it's not. For example there can be cases where  
you want to know which one (of several use:d instances) your event  
occurred in, and sometimes you only want to get at the real elements  
that the use pointed to. I hope that makes it easier to understand :)

Anyway, both of your ways of getting id:s should work just fine, provided  
of course that you have an SVGElement or a Node, in case you have an  
SVGElementInstance then there is no id attribute since it's a shadow tree  
element.

By reading the SVG 1.1 spec it's clear that SVGElementInstance has no  
getAttributeNS method on it - it doesn't implement the Node interface,  
only the EventTarget interface. For details see:

   http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGElementInstance  
(definition of the SVGElementInstance interface)
   http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget  
(definition of the EventTarget interface)

 but somewhere in my code, i have to use getAttributeNS to parametrize
 the attribute's name to factorize my code ... so thanks to avoid me
 to go deeper in that bad way ...

 I have to work more to be compliant with Opera ... So it is late now

I agree that it's unfortunate that Firefox implements use incorrectly,  
since it hurts interoperability, but perhaps this can be fixed in time for  
the FF3.0 final version? That SVGElementInstance isn't implemented is one  
thing, that FF by cloning nodes instead of conceptually cloning nodes  
also has side-effects such as the fact that CSS selectors applies to the  
shadow trees (which the spec tells you they must not). The SVG 1.1  
testsuite didn't have any tests covering these cases though, but such  
tests will no doubt be added for future releases.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] onzoom das not work in ASV

2008-02-20 Thread Erik Dahlström
On Tue, 19 Feb 2008 22:04:30 +0100, Stefan Heinrichsen [EMAIL PROTECTED]  
wrote:

 Hello,

 when I try to set the onzoom Attribute of the svg-tag via setAttrbuteNS  
 it
 does not works for me. Setting it directly in the file works. This basic
 example:

 ?xml version=1.0 encoding=UTF-8 standalone=no?
 svg xmlns:svg=http://www.w3.org/2000/svg;
  script type=text/ecmascript
 document.getElementsByTagName('svg').item(0).setAttributeNS(null,  
   'alert(test);');
  /script
  rect width=200 height=200 x=0 y=0 /
 /svg


 I don't get a alert when zooming with this example. Could you tell me if  
 it
 works for me and/or how to fix this?

I suppose the above should be:
  document.getElementsByTagName('svg').item(0).setAttributeNS(null,  
onzoom, 'alert(test);');

But I find it's usually better to use addEventListener instead:
   document.getElementsByTagName('svg').item(0).addEventListener(SVGZoom,  
function() { alert(test); }, false);

Additionally some implementations may not find the element until the  
document has loaded fully, so you might want to setup the listener from an  
onload handler to be sure.

Hope this helps
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: tip for parseXML and FireFox3 and IE+ASV3

2008-02-19 Thread Erik Dahlström
On Mon, 18 Feb 2008 22:45:50 +0100, philsvg [EMAIL PROTECTED] wrote:

 Hello,

 Thanks for your answer Andreas.

 Concerning  Opera, yes it should, but i can't found a simple example
 that shows Opera can communicate in html-svg-html mode.

Like Andreas said it should work just like in Firefox (here are two  
examples that show html-svg communication):

   http://jwatt.org/svg/demos/scripting-across-object.html
   http://jwatt.org/svg/demos/scripting-across-embed.html

The svg wiki also has some examples:

   http://wiki.svg.org/Inter-Document_Communication

If given the choice I would use object rather than embed.

 The example i found which demonstrate FFX can do it doesn't work with
 opera (i didn't try beta version).

I would like to see how that looks like, do you have a link, or could you  
post the source?

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] my academic project SVG

2008-02-18 Thread Erik Dahlström
On Sat, 16 Feb 2008 05:20:27 +0100, DamianZ [EMAIL PROTECTED] wrote:

 I invite you to visit my proyect and see the power of SVG.

 View this example
 http://www.wikidraw.com.ar/Vinculo?uri=http://en.wikipedia.org/wiki/SVG
 WikiDraw is a mind map or mental map of the content of wikipedia (or
 any wiki create with MediaWiki).

Nice work, that's a neat way of associating content.

 The result is a SVG (embbed in XTHML), the entitys (or links of
 wikipedia) are preload and referenced by the tag USE (thanks Frank).
 I can't create a external file with these svg images (is not
 implemented yet in FF or Opera).

External raster images is supported in both FF and Opera AFAIK, e.g.  
image xlink:href=http://example.org/some.jpg/.
External references is supported in Opera 9.5 (on use, image,  
foreignObject and animation as well as property values that accept  
url:s).

You can find some svg examples on my blog which show the ways of accessing  
external content in svg:s, for example:
http://files.myopera.com/MacDev_ed/sarpsborg2007/slides.html
http://files.myopera.com/MacDev_ed/svgopen2007/wowslides%2Bdemos.zip

 Stop their views!

Ehm...not sure what you mean by that :)

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[svg-developers] Re: external use

2008-02-18 Thread Erik Dahlström
On Mon, 18 Feb 2008 10:38:13 +0100, ~:'' ありがとうございました。  
[EMAIL PROTECTED] wrote:

 external use

 Erik,

 amazing, what a pity that we're waiting on Safari and Mozilla.
 (filed parity Opera comments)

 perhaps you already read Dan Brickley's article:
 http://danbri.org/words/2007/09/14/199

Thanks, no I had not seen that before.

 The mozilla bug has a rather wider gamut,
 Allow svg:use to reference elements in other documents
 https://bugzilla.mozilla.org/show_bug.cgi?id=269482

 is support for this imminent?

 for instance I saved your example locally and edited the star link to:
 http://files.myopera.com/MacDev_ed/sarpsborg2007/star2.svg#root which  
 works fine, but
 http://files.myopera.com/MacDev_ed/sarpsborg2007/star2.svg#star does not  
 :-(
 is the syntax correct?

Yes, the syntax is correct. Note that if you reference an svg or  
symbol element it has special behaviour though[1].
The thing is that if you use the path then you'll have to be sure that the  
coordinate system is compatible, otherwise your path may fall outside the  
canvas.
Also, since the path didn't have any fill specified and the background is  
black you wouldn't see anything. I got something on screen by doing this:
use xlink:href=star2.svg#star fill=green y=-200 width=400  
height=400/

If you want a whole document included I would suggest using the image or  
animation element instead of use.

Cheers
/Erik

[1] http://www.w3.org/TR/SVG11/struct.html#UseElement

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] getBBox with transformations

2008-02-18 Thread Erik Dahlström
On Sun, 17 Feb 2008 12:58:07 +0100, Stefan Heinrichsen [EMAIL PROTECTED]  
wrote:

 Hello,

 I want to mark a svg element with a surrounding rectangle. The method  
 getBBox
 sounded just perfect therefore until I recognized that it does not works
 anymore with elements which are transformed in any way. SVG 1.2 has the
 method getScreenBBox what is exactly what I need. But scince my  
 Application
 is for use in browsers I can not use SVG 1.2.

Opera 9.5 implements the getScreenBBox method. What you can do is test for  
the availability of said method, and fallback to something else if it's  
not there.

 Does anyone knows how it is possible to implement this method in SVG 1.1  
 and
 ecma-script?

 Stefan

See here:
http://the.fuchsia-design.com/2006/12/getting-svg-elementss-full-bounding-box.html

If you want that to work in ASV (which lacks the getScreenCTM method  
AFAIK) you need to implement that in javascript as well. I'm sure someone  
on this list can point to such a workaround, but the above code works fine  
in all svg browsers that implement getScreenCTM (e.g. Opera, Firefox,  
Batik and probably Safari).

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Wavy line symbol in SVG

2008-02-06 Thread Erik Dahlström
Have you tried making that into an SVGFont + text-on-a-path?
Using that it should be possible to get the effect of something similar to  
a custom stroke that follows a path. Adding method=stretch on the  
textPath element may make it look better, but it depends.

Cheers
/Erik

On Tue, 05 Feb 2008 22:14:54 +0100, brucerindahl [EMAIL PROTECTED] wrote:

 David
 This is close but I want to specify a path and have it drawn with this
 symbol along the entire length of the path.  It is kind of like
 specifying a dash-array that is then repeated along the path.  Is this
 possible?
 Bruce

 --- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote:

 Do you mean something like this?

 svg  xmlns=http://www.w3.org/2000/svg;
  xmlns:xlink=http://www.w3.org/1999/xlink; 
  defs
   symbol id=S
path id=u d=M 5 60 C 20 100 25 20 40 60 /
use transform=translate(35,0) xlink:href=#u/
use transform=translate(70,0) xlink:href=#u/
   /symbol
  /defs
  use x=60 y=0 transform=scale(2, 4)  width=200
 height=100 fill=none stroke-width=2 stroke=red xlink:href=#S/
 /svg

 You can adjust the wavelength and amplitude through pthe scale
 transform associated with the use.

 Perhaps you have something else in mind?

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Wavy line symbol in SVG

2008-02-06 Thread Erik Dahlström
Hi Andreas,

Nothing wrong with your example, but the effect is quite subtle on your  
font, a larger amplitude will show you that the glyphs are indeed  
stretched.
However, I think this will still not give a satisfying result by itself,  
but it depends on the curve.

Another way, which may be a bit of a pain arguably, is to do placement  
using script, creating custom shapes rotated to follow the line.
The SVGMatrix DOM methods and SVGPathElement methods 'getPointAtLength'  
and 'getPathSegAtLength' might help a bit. If you want the rotations you  
can go the textPath route again, see the SVGTextContentElement method  
'getRotationOfChar', but note that you need to know the font advances  
beforehand, for example by creating a small svgfont.

Cheers
/Erik

On Wed, 06 Feb 2008 10:29:41 +0100, Andreas Neumann  
[EMAIL PROTECTED] wrote:

 Hi Erik and others,

 I tried the method with text on path. However, in Opera, I don't see
 any difference at all when using method=stretch when compared to
 method=align. Anything I am doing wrong?

 Here is my file:

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN http://www.w3.org/
 TR/2001/REC-SVG-20010904/DTD/svg10.dtd
 svg xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://
 www.w3.org/1999/xlink width=100% height=100%
 defs
 font id=myFont horiz-adv-x=100
 font-face font-family=My Font  units-per-em=100/
 missing-glyph horiz-adv-x=100/
 glyph unicode=p horiz-adv-x=100 d=M 0 0 L 2.5 0 C
 50 45 50 -50 102.5 0 L 97.5 0 C 50 -45 50 50 -2.5 0 Z /
 /font
 /defs
  path id=myFirstPath fill=none stroke=blue stroke-
 width=2 d=M20,300L300,300v100h200/
 text font-family=My Font font-size=60 fill=red
 textPath xlink:href=#myFirstPath method=stretch
 ppp /textPath
 /text
 path id=mySecondPath fill=none stroke=blue stroke-
 width=2 d=M 100 100 C 300 300 300 -100 500 100/
 text font-family=My Font font-size=60 fill=red
 textPath xlink:href=#mySecondPath method=stretch
 ppp /textPath
 /text
 /svg

 Thank you for having a look it.

 I think this would probably come close to what Bruce wants but it
 doesn't properly align when using curves (see upper example). Of
 course, I wouldn't expect it to work when there are discontinuities
 (lower example), but it would be nice if the glyphs would properly
 connect on the upper example.

 Andreas

 --- In svg-developers@yahoogroups.com, Erik Dahlström [EMAIL PROTECTED] 
 wrote:

 Have you tried making that into an SVGFont + text-on-a-path?
 Using that it should be possible to get the effect of something
 similar to
 a custom stroke that follows a path. Adding method=stretch on
 the
 textPath element may make it look better, but it depends.

 Cheers
 /Erik

 On Tue, 05 Feb 2008 22:14:54 +0100, brucerindahl [EMAIL PROTECTED]
 wrote:

  David
  This is close but I want to specify a path and have it drawn with
 this
  symbol along the entire length of the path.  It is kind of like
  specifying a dash-array that is then repeated along the path.  Is
 this
  possible?
  Bruce
 
  --- In svg-developers@yahoogroups.com, ddailey ddailey@ wrote:
 
  Do you mean something like this?
 
  svg  xmlns=http://www.w3.org/2000/svg;
   xmlns:xlink=http://www.w3.org/1999/xlink; 
   defs
symbol id=S
 path id=u d=M 5 60 C 20 100 25 20 40 60 /
 use transform=translate(35,0) xlink:href=#u/
 use transform=translate(70,0) xlink:href=#u/
/symbol
   /defs
   use x=60 y=0 transform=scale(2, 4)  width=200
  height=100 fill=none stroke-width=2 stroke=red
 xlink:href=#S/
  /svg
 
  You can adjust the wavelength and amplitude through pthe scale
  transform associated with the use.
 
  Perhaps you have something else in mind?

 --
 Erik Dahlstrom, Core Technology Developer, Opera Software
 Co-Chair, W3C SVG Working Group
 Personal blog: http://my.opera.com/macdev_ed






-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Text Scaling in Opera

2008-01-30 Thread Erik Dahlström
Hi André,

Your example looks just fine in Opera 9.50 (compared with Batik 1.7).
At this point I think it's mostly security- and other critical bugfixes  
that go into the 9.2x version.

Cheers
/Erik

On Tue, 29 Jan 2008 11:36:31 +0100, André M. Winter [EMAIL PROTECTED]  
wrote:

 hi,

 are there any news here? seems as if Opera (now v9.25) ignores nested
 SVG for font sizes. the shown size just is the same as if the text
 sits in the root element.

 bug or feature?

 andré



 --- In svg-developers@yahoogroups.com, simonshutter [EMAIL PROTECTED] 
 wrote:

 Jonathan,

 But not on Op9.21 (XP), which I just upgraded to.  Any font-size less
 than 2.000 is not scaled appropriately.

 If Ockham's razor == K.I.S.S. then point taken but I'd rather not
 have to scale all text in the units of my root svg element.

 Simon


 --- In svg-developers@yahoogroups.com, ~:''
 ã#65533;‚ã‚Šã#65533;Œã#65533;¨ã#65533;†ã#65533;ã#65533;–
 ã#65533;„ã#65533;¾ã#65533;—ã#65533;Ÿã€‚ j.chetwynd@ wrote:
 
  Simon,
 
  seems fine on Opera9.2 os x
 
  nesting svg may present more problems than nest g perhaps?
  see: Ockham's razor
 
  cheers
 
  Jonathan Chetwynd
 
 
 
  On 20 May 2007, at 19:20, simonshutter wrote:
 
 
  svg width=500 height=500 viewBox=0 0 500 500
  xmlns=http://www.w3.org/2000/svg; 
  text x=0 y=10 font-size=5 font-family=Arial,Helvetica
  pointer-events=none fill=#00 
  Hello World 1
  /text
  svg x=0 y=30 width=800 height=600 viewBox=0 0 50 40
  text x=0 y=1 font-size=1 font-family=Arial,Helvetica
  pointer-events=none fill=#00 
  Hello World 2
  /text
  svg x=10 y=10 width=15 height=10 
  text x=0 y=2 font-size=1.5 font-
  family=Arial,Helvetica pointer-events=none fill=#00 
  Hello World 3
  /text
  /svg
  /svg
  /svg
 






-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] getAttributeNS href problem on Opera and Safari

2008-01-28 Thread Erik Dahlström
On Mon, 28 Jan 2008 11:45:41 +0100, svgquestion [EMAIL PROTECTED]  
wrote:

 Dear list,

 I created un javascript function to switch between 2 symboles using
 a javascript function to change the xlink:href attribute of my use
 element. Nothinh complicated. Everything works fine in IE and
 Firefox. Unfortunatelly,

 evt.target.getAttributeNS(http://www.w3.org/1999/xlink,href;);

 does not work in Opera and Firefox ?

Changing target to currentTarget makes it work in Opera, Batik and Firefox.

quote href=http://www.w3.org/TR/SVG11/struct.html#UseElement;
The event handling for the non-exposed tree works as if the referenced  
element had been textually included as a deeply cloned child of the 'use'  
element, except that events are dispatched to the SVGElementInstance  
objects. The event's target and currentTarget attributes are set to the  
SVGElementInstance that corresponds to the target and current target  
elements in the referenced subtree. An event propagates through the  
exposed and non-exposed portions of the tree in the same manner as it  
would in the regular document tree: first going from the root element to  
the 'use' element and then through non-exposed tree elements in the  
capture phase, followed by the target phase at the target of the event,  
then bubbling back through non-exposed tree to the use element and then  
back through regular tree to the root element in bubbling phase.

An element and all its corresponding SVGElementInstance objects share an  
event listener list. The currentTarget attribute of the event can be used  
to determine through which object an event listener was invoked.
/quote

So, reading DOM 2 Events [1] and applying the above the conclusions I  
reach are:
- The evt.target is the SVGElementInstance that was clicked (the shadow  
element of a rect in the example). This stays the same as the event  
bubbles up the tree.
- evt.currentTarget changes as the event bubbles, and is set to the  
EventTarget that is currently handling the event during the event  
capturing/bubble phases
- Making the use element be the evt.target by user interaction is not  
possible AFAIK, but could be done if creating and dispatching the event  
with DOM methods.
- For use elements it's always good to use evt.currentTarget in  
eventlisteners on the use element

If these conclusions are correct then both Batik and Firefox have a bug in  
that they don't return an SVGElementInstance as the evt.target. In  
Firefox' case I suspect it's simply that the SVGElementInstance DOM has  
not been implemented yet [2][3]. Not sure about Batik, but it could be the  
same there.

Hope this helps
/Erik

[1] http://www.w3.org/TR/DOM-Level-2-Events/events.html
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=265895
[3] http://developer.mozilla.org/en/docs/SVG_in_Firefox

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: getAttributeNS href problem on Opera and Safari

2008-01-28 Thread Erik Dahlström
On Mon, 28 Jan 2008 14:52:37 +0100, svgquestion [EMAIL PROTECTED]  
wrote:

 Thank you very much Erik, I understood the problem. In fact my SVG
 fragment was simplified.

 CurrentTarget works fine if the event listener is attched with the
 use element. Do you think it is possible to attach the event
 listener with  another group like in the example below ?

 g transform=translate(50,30) display=inherit
 onclick=openclosetaxlist(evt)
   text x=11 y=6 font-size=16 Alestidae/text pointer-
 events=none
   ause xlink:href=#symOpen transform=translate
 (0,0)//a
 /g


Yes, the click event will bubble up to the g element if you don't  
explicitly in script prevent it from doing so.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] How to load a SVG as String into a SVGDocument

2008-01-24 Thread Erik Dahlström
On Tue, 22 Jan 2008 18:09:03 +0100, deimos1975 [EMAIL PROTECTED] wrote:

 As I see there is no DOM function loadXML(String) in SVG. So if you
 have a String with the complete SVG code, how can you transform it
 into a SVG document?

There are a few ways to do that:

- Using the parseXML method [1] in SVGT12 (if that's supported by the  
viewer).
   That can be tested in script like this: if(!parseXML) { /* no parsexml  
*/ } else { /* has parsexml */ }
   Also note that ASV supports parseXML but that it's slightly different  
 from the SVGT12 definition of it.

   There are a few wrappers scripts that make it easier to use this on  
existing viewers, see for example kevlindev[7], or the end of the svg  
video article here[5].

- Using DOM 3 Load and Save [2], example:
   var lsinput = document.implementation.createLSInput();
   lsinput.stringData = hey parse this!;
   var lsparser =  
document.implementation.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS,  
null);
   var document = lsparser.parse(lsinput);

- Using XMLHttpRequest [3], see carto.net[4] for a good reference of how  
to use that.

- Using DOMParser, see examples here[6].

Hope this helps
/Erik

[1] http://www.w3.org/TR/SVGMobile12/svgudom.html#svg__SVGGlobal
[2] http://www.w3.org/TR/DOM-Level-3-LS/load-save.html
[3] http://www.w3.org/TR/XMLHttpRequest/
[4] http://www.carto.net/papers/svg/network_requests/index.shtml
[5]  
http://my.opera.com/MacDev_ed/blog/2007/11/21/svg-at-the-movies-take-two
[6] http://www.w3schools.com/dom/dom_parser.asp
[7] http://www.kevlindev.com/common/PrintAndParse.js

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Opera caching problem

2008-01-24 Thread Erik Dahlström
On Sun, 20 Jan 2008 13:06:15 +0100, mortrr [EMAIL PROTECTED] wrote:

 You need to change part of the url for the object, to avoid caching.
 fi adding a timestamp or counter.
 filname.cgi?t=123456
 filname.cgi?t=123457

That would work yes.

The problem was that the page containing the svg had no-cache directives,  
but the svg file it included did not. Also the preferences in Opera for  
when to check cached documents/images is not set to Always by default  
(Tools  Preferences  Advanced  History).

Making sure the svg image file is sent with a HTTP no-cache header is also  
likely to fix the problem.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Coordinate transformation and view box difficulties

2008-01-23 Thread Erik Dahlström
On Wed, 23 Jan 2008 08:31:00 +0100, Mark Styler [EMAIL PROTECTED] wrote:

 I have laboratory data acquisition equipment I have set up to generate
 SVG reports containing all of the meta data as text and a plot of the
 raw data.  The data plot looks awful because of coordinate
 transformations.  The problem is that the test duration is 0.005
 seconds (x-axis of the graph) and the y axis is +-10 volts.

 It is important to me that the svg files are complete records of the
 test and that they can be opened in ASCII and have the actual data
 presented.  Right now I can apply my own scales to the data before
 putting it into a path element, but that does not preserve the raw
 data.  For example, if I multiply all of my raw x-data by 16, my
 data range is now 0 to 800.  I have done this and I get a nice looking
 800x600 plot (sy=-30,ty=300), but I want a nice looking 800x600 plot
 with raw data in the svg file.

If you are willing to give up the everything must be in one  
file-requirement you could keep data as XML and use XSLT to transform it  
into svg.

 I've tried g transform='matrix(sx 0 0 sy tx ty)', but my x-scale is
 so huge (160,000) that when I draw a line with stroke-width=1
 it is very ugly.  I also can not write legible text under that
 transformation for my grid line labels.

 Is there a way in SVG to specify a new coordinate system without
 applying transformations to the strokes/text width?

There is a thing called vector-effects in SVG Tiny 1.2, see  
http://www.w3.org/TR/SVGMobile12/painting.html#NonScalingStroke.

 I have also tried an
 svg width='800' height='600' preserveAspectRatio='none' viewBox='0 0
 0.005 20' gpath ... //g /svg.

 In summary, I think I want a new coordinate system for the locations
 (x, y) but not the dimensions (height, width).

If you want two different coordinate systems why not use nested svg  
elements, or a symbol+use.
That way you can scale your data set independently from the text labels.

Hope this helps
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Brick Pattern: how to create perspective in pattern?

2008-01-22 Thread Erik Dahlström
On Tue, 22 Jan 2008 12:52:47 +0100, ~:'' ありがとうございました。  
[EMAIL PROTECTED] wrote:

 there's a simple Brick Pattern here:
 http://peepo.co.uk/temp/brick-pattern.svg

You might want to remove the space in patternUnits=objectBounding Box.

 feDisplacementMap may well be a possible route, however it does seem
 somewhat complex in the relation to the concept.

Not sure that would be able to give true perspective correct images though.

 On 21 Jan 2008, at 23:27, Frank Bruder wrote:

 Hi,

 would be great if full 3x3 matrices--without the third row implicitly
 set to [0 0 1]--were allowed for transform values. This would allow
 for perspective distortions. But I'm not sure if this wouldn't be too
 difficult for implementors since singularities (the horizon) would
 need to be dealt with, in case they become visible.

Indeed the 2d transforms that are in SVG today are not capable of handling  
this case.

 There was a question before regarding perspective distortion of text.
 And I remember someone suggested using the filter primitive
 feDisplacementMap. But no solution for creating the correct image
 data to use for in2 was found then. Maybe this was resolved in the
 mean time.

There are other tricks, for example drawing the image repeatedly (with  
clipping) while varying the scale transform.
That would probably look a bit ugly though, possibly it could be smoothed  
out a bit by using filters or masks.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Brick Pattern: how to create perspective in pattern?

2008-01-22 Thread Erik Dahlström
Read the section of perspective correctness here for example:
http://en.wikipedia.org/wiki/Texture_mapping

Cheers
/Erik

On Tue, 22 Jan 2008 15:12:51 +0100, ~:'' ありがとうございました。  
[EMAIL PROTECTED] wrote:

 Erik,

 it's certainly not 3D, there's no question of rotation, or animation
 to give parallax.
 this is 2D perspective distortion.

 unless I'm misunderstanding something significant.

 please could you elucidate.

 regards

 Jonathan Chetwynd
 Accessibility Consultant on Media Literacy and the Internet



 On 22 Jan 2008, at 14:00, Erik Dahlström wrote:

 Jonathan,

 I don't see it as peculiar at all since SVG is a language for
 describing
 two-dimensional graphics in XML. [1] (the lighting filters are the only
 exception to that AFAIK). In any case what you are talking about is 3D
 graphics. There is no reason perspective correct transformations
 couldn't
 be included in a future version of the SVG specification(s) however.

 Cheers
 /Erik

 [1] http://www.w3.org/TR/SVG11/intro.html

 On Tue, 22 Jan 2008 14:39:01 +0100, ~:'' ありがとうございま
 した。
 [EMAIL PROTECTED] wrote:

   Erik,
  
   isn't it peculiar that a fairly simple perspective distortion is
 missing
   from the SVG spec?
   ie just as you describe by increasing scaling along a line
  
   especially given it's importance and history in western art?
  
   removed the typo, and updated slightly, thanks
  
   regards
  
   Jonathan Chetwynd
   Accessibility Consultant on Media Literacy and the Internet
  
  
  
   On 22 Jan 2008, at 12:05, Erik Dahlström wrote:
  
   On Tue, 22 Jan 2008 12:52:47 +0100, ~:'' ありがとうござい
 ました。
   [EMAIL PROTECTED] wrote:
  
there's a simple Brick Pattern here:
http://peepo.co.uk/temp/brick-pattern.svg
  
   You might want to remove the space in patternUnits=objectBounding
 Box.
  
feDisplacementMap may well be a possible route, however it does
 seem
somewhat complex in the relation to the concept.
  
   Not sure that would be able to give true perspective correct images
   though.
  
On 21 Jan 2008, at 23:27, Frank Bruder wrote:
   
Hi,
   
would be great if full 3x3 matrices--without the third row
 implicitly
set to [0 0 1]--were allowed for transform values. This would allow
for perspective distortions. But I'm not sure if this wouldn't
 be too
difficult for implementors since singularities (the horizon) would
need to be dealt with, in case they become visible.
  
   Indeed the 2d transforms that are in SVG today are not capable of
   handling
   this case.
  
There was a question before regarding perspective distortion of
 text.
And I remember someone suggested using the filter primitive
feDisplacementMap. But no solution for creating the correct image
data to use for in2 was found then. Maybe this was resolved in the
mean time.
  
   There are other tricks, for example drawing the image repeatedly
 (with
   clipping) while varying the scale transform.
   That would probably look a bit ugly though, possibly it could be
 smoothed
   out a bit by using filters or masks.
  
   Cheers
   /Erik
  




-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Failed attribute warning on Opera browser

2008-01-16 Thread Erik Dahlström
On Wed, 16 Jan 2008 12:11:17 +0100, ons.renderman  
[EMAIL PROTECTED] wrote:

 Jonathan

 I probably should have included some more code in the first place to
 give people slightly more context.

 Here we go:

 a xlink:title= cursor=pointer
   rect onmouseover=scaleLegend(evt,1.1)
 onmouseout=scaleLegend(evt,1) stroke=black fill=rgb
 (196,142,221) onclick=changeColour('Purple',true) height=17
 width=17 transform=translate(53 181) scale(1) id=purpleRect
 stroke-width=1.6/
   rect onmouseover=scaleLegend(evt,1.1)
 onmouseout=scaleLegend(evt,1) stroke=none fill=#25FF28
 onclick=changeColour('Green',true) height=17 width=17
 transform=translate(79,181) id=greenRect stroke-width=1.6/
   rect onmouseover=scaleLegend(evt,1.1)
 onmouseout=scaleLegend(evt,1) stroke=none fill=#FF1B1B
 onclick=changeColour('Red',true) height=17 width=17
 transform=translate(105,181) id=redRect stroke-width=1.6/
   rect onmouseover=scaleLegend(evt,1.1)
 onmouseout=scaleLegend(evt,1) stroke=none fill=#ABABAB
 onclick=changeColour('Grey',true) height=17 width=17
 transform=translate(131,181) id=greyRect stroke-width=1.6/
 /a

My windows Opera 9.5 build 9735 didn't show any errors in the console for  
the above example, except for the missing scaleLegend function, same for  
Opera 9.24.
May I ask what version of Opera (with build number and platform) you see  
the warnings in?
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Failed attribute warning on Opera browser

2008-01-16 Thread Erik Dahlström
On Wed, 16 Jan 2008 13:45:07 +0100, ons.renderman  
[EMAIL PROTECTED] wrote:

 Erik.

 Version is 9.23
 Build is 8808

 Regards.

 Phil.

Just to make sure, this is what I'm testing (I wrapped your example in an  
svg tag, and open the file locally):

svg xmlns=http://www.w3.org/2000/svg;  
xmlns:xlink=http://www.w3.org/1999/xlink;
a xlink:title= cursor=pointer
rect onmouseover=scaleLegend(evt,1.1)
onmouseout=scaleLegend(evt,1) stroke=black fill=rgb(196,142,221)  
onclick=changeColour('Purple',true) height=17
width=17 transform=translate(53 181) scale(1) id=purpleRect
stroke-width=1.6/
rect onmouseover=scaleLegend(evt,1.1)
onmouseout=scaleLegend(evt,1) stroke=none fill=#25FF28
onclick=changeColour('Green',true) height=17 width=17
transform=translate(79,181) id=greenRect stroke-width=1.6/
rect onmouseover=scaleLegend(evt,1.1)
onmouseout=scaleLegend(evt,1) stroke=none fill=#FF1B1B
onclick=changeColour('Red',true) height=17 width=17
transform=translate(105,181) id=redRect stroke-width=1.6/
rect onmouseover=scaleLegend(evt,1.1)
onmouseout=scaleLegend(evt,1) stroke=none fill=#ABABAB
onclick=changeColour('Grey',true) height=17 width=17
transform=translate(131,181) id=greyRect stroke-width=1.6/
/a
/svg

My error console only shows warnings about the scaleLegend function not  
existing in this document, tested in Windows opera 9.23 build 8808.

Even the simplified example below didn't show any warnings at all in the  
console:

svg xmlns=http://www.w3.org/2000/svg;  
xmlns:xlink=http://www.w3.org/1999/xlink;
a xlink:title= cursor=pointer
/a
/svg

According to the spec an empty xlink:title attribute is perfectly valid,  
even though I would say it's sad that the workaround with an a element  
is needed since you don't actually need or want a link it seems.
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] low resolution on firefox (2.x) svg native player

2008-01-11 Thread Erik Dahlström
On Tue, 18 Dec 2007 14:22:18 +0100, maurizio.migliore  
[EMAIL PROTECTED] wrote:

 I'm writing a client/server application in SVG.

 I noticed that the svg native player of firefox (2.x for windows) has
 a low resolution than firefox (2.x for linux) and IE.

 The difference is similar to low and high resolution of adobe svg
 plug-in (ver. 3.x).

 Anu suggests?

After having looked at the source, two things:
- ASV3 doesn't seem to support preserveAspectRatio=xMinYMin meet and  
instead seems to use preserveAspectRatio=none.
- The text looked different indeed, but that's ok according to the svg  
spec. If you want it to look more similar you can add  
text-rendering=optimizeLegibility to get ASV to render the text so that  
it's less fuzzy. The spec however doesn't guarantee that you'll get the  
same exact appearance, even if in practice that's usually what you get.  
Also you should probably specify a font-family if you want some particular  
font, otherwise it increases the likelyhood that it will look different in  
different viewers.

Opera rendered the example just fine, as did Firefox and Batik.
About resolution differences, it may be that a different interpolation  
algorithm is used when drawing the image. You can try the various values  
for the 'image-rendering' property, such as 'optimizeSpeed' or  
'optimizeQuality' and see if that gets you the appearance you want.

Hope this helps
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Opera caching problem

2008-01-08 Thread Erik Dahlström
On Tue, 08 Jan 2008 10:45:12 +0100, John Delacour [EMAIL PROTECTED] wrote:

 I have a Perl cgi that serves an xhtml page including, as object
 (no embed) an SVG drawing whose specs can be changed by submitting
 data from an html form.  The form and the drawing begin with the
 default specs and both are updated as the user makes successive
 changes to his requirements.

 I am doing most of my testing in Mac OS 10 with FireFox (in fact the
 beta 3.**) and there is no problem with local caching here or in
 Safari, but Opera puts the SVG file into its cache so that the user's
 modifications are not updated in the drawing. I have so far found no
 way to prevent this behaviour with meta tags in the html and the only
 way for the thing to be usable in Opera is for the user to delete the
 cache before submitting the changed data.

 Can anybody suggest a solution to this?

Can you provide a link so that we might remedy this?
Thanks
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] scripted SVG playback buttons for video playback

2008-01-08 Thread Erik Dahlström
On Wed, 02 Jan 2008 18:25:22 +0100, harry underwood  
[EMAIL PROTECTED] wrote:

 Hi, and Happy New Year.

 I was just trying to construct playback button(s) for a Theora video
 embedded in SVG using JavaScript. However, trying to attach the symbols
 (paths?) to the video as scripted control buttons is rather hard, as I'm
 not closely familiar with JavaScript or how to attach it to SVG and
 video appropriately.

You probably want to use video.beginElement() (see reference here[1])  
which means you should set the begin attribute on the video element to  
indefinite.
Then the video won't play until you start it.

 Does anyone have any idea as to what I'm doing wrong and how to attach
 the symbols to the JavaScript and attach the JavaScript to the video?

Well, just open the error console (Tools  Advanced  Error console) and  
see the error messages. You have a bunch of elements which are not found  
because of incorrect id:s for example. And probably you want to fill your  
buttons or use pointer-events=all in order to get any clicks there.

Hope this helps
/Erik

[1] http://www.w3.org/TR/SVGMobile12/svgudom.html#smil__ElementTimeControl

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: update on status of textArea widget

2008-01-08 Thread Erik Dahlström
On Thu, 03 Jan 2008 13:49:02 +0100, Andreas Neumann  
[EMAIL PROTECTED] wrote:

 Hi Jake,

 What do you mean by multi-line textArea widget? Do you mean editable
 text or just multiline textflow.

 Editable multiline text in SVG with scripting is very complicated.
 Just textflow itself can be done. See: http://www.carto.net/papers/
 svg/textFlow/ and http://www.carto.net/papers/svg/textFlow/index.svg
 as an example.

 Multiline editable text can be done with SVG 1.2, but I don't think
 any of the available web-browsers implement this (maybe an early
 preview of Opera, if at all).

Opera 9.5 introduces support for the multi-line textArea element in SVG  
1.2 Tiny, and also editable text. Still in beta, which means please report  
any bugs you find with that. Here's a short example:

   textArea editable=simple height=100hello world/textArea

Single-line editable text:

   text editable=simplehello world/text

 Alternatively you can use HTML widgets with SVG if you need multiline
 editable text.

Yes, that makes it work better across browsers.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] SVG element and event passthrough

2008-01-08 Thread Erik Dahlström
On Sun, 30 Dec 2007 07:49:43 +0100, pekeler [EMAIL PROTECTED] wrote:

 Hi,

 if I have an SVG element in front of some other DOM elements, Safari 3  
 is letting mouse
 events pass through the SVG and reach the underlying DOM elements (good)

Hmm...it seems to differ a bit, but I can't say that it's working that  
well on your testcase. The mouse cursor is reset before it reaches the  
polygon for me in Safari 3 if I move from right to left over the link.

 Firefox 3 and Opera aren't (bad). Is there anything I can do to have  
 Firefox behave like Safari?

You can try making your svg be lower than the html, for example by using  
z-index:-1. That works fine in all three browsers.

 This example demonstrates the problem. It's OK that the polygon blocks  
 the link, but I
 don't want the svg element to eat my mouse events.

 html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:svg=http://www.w3.org/2000/svg;
 body
 svg:svg pointer-events=none style=position:absolute; top:0;  
 left:0; width:100px;
 height:50px;
 svg:polygon pointer-events=all points=5,5 70,5 45,45  
 style=fill:blue;
 opacity:0.7;/
 /svg:svg
 a href=#try to click this link/a
 /body
 /html

You can always compare with this non-svg testcase:

html xmlns=http://www.w3.org/1999/xhtml;  
xmlns:svg=http://www.w3.org/2000/svg;
body
div style=position:absolute; top:0; left:0; width:100px; height:50px;  
background: red; opacity:0/
a href=#try to click this link/a
/body
/html

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Converting SVG to PDF

2007-12-20 Thread Erik Dahlström
On Thu, 20 Dec 2007 14:24:14 +0100, Leonard Rosenthol  
[EMAIL PROTECTED] wrote:

 There is no way to convert SVG-PDF and preserve the interactivity and
 animation, unless you want to actually convert the SVG to something like
 Flash/SWF and then embed the Flash/SWF.

 For print, there are numerous SVG-PDF converters out there from open  
 source
 (like Inkscape) to commercial (Adobe Illustrator).

 Leonard

Not sure you have to convert the SVG:s. A quick search for pdf embed svg  
gives you a couple of examples, here are some of the top results:

http://jan.kollhof.net/projects/svg/svgpdf/index.xhtml
http://pilat.free.fr/english/pdf/index.htm
http://www.planetpdf.com/enterprise/article.asp?ContentID=embedding_svg_in_pdf_

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Help! Please fix image!

2007-12-19 Thread Erik Dahlström
On Wed, 19 Dec 2007 07:15:09 +0100, mikh2161 [EMAIL PROTECTED] wrote:

 I was wondering if anyone would please fix this
 (http://en.wikipedia.org/wiki/Image:Perspective_isometrique_cube_gris_2.
 svg) image so that it works in anything other than Adobe's viewer.
 Wikipedia, FireFox and InkScape all screw up the arrowheads.

It's interesting if Inkscape screws up since the image was created using  
it. :)
Maybe another version?

But yes, alignment and placement of markers is a feature of SVG that  
hasn't been covered much by the w3c testsuite for svg.

Opera 9.5x displays it ok, Firefox 3.0b1 displays it ok, ASV3 displays it  
ok, Batik 1.6/1.7b displays it ok.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Help! Please fix image!

2007-12-19 Thread Erik Dahlström
On Wed, 19 Dec 2007 14:29:01 +0100, Julien Reichel  
[EMAIL PROTECTED] wrote:

 BTW: Questions:

 In the example:
 http://en.wikipedia.org/wiki/Image:Perspective_isometrique_cube_gris_2

 There are svg elements (the path and anotation) inside the main svg  
 element. Is that allowed ? My understanding was that it wasn't. But I  
 might have overlooked it somewhere.

For 1.1 tiny nested svg elements is not allowed[1], but it's not specified  
how it should be handled. Hopefully it's handled like for 1.2 tiny though.
For 1.2 tiny such nested svg elements will not be rendered according to  
implementation requirements section C.2 [2].

For 1.1 basic or full user agents the nested svg elments will hopefully be  
displayed according to the spec[3], that is they will be rendered.

Cheers
/Erik

[1] http://www.w3.org/TR/SVGMobile/#sec-structure
[2] http://www.w3.org/TR/SVGMobile12/implnote.html#UnsupportedProps
[3] http://www.w3.org/TR/SVG11/struct.html#NewDocument

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Adobe SVG Plug in for Solaris 8?

2007-12-13 Thread Erik Dahlström
On Wed, 12 Dec 2007 15:59:42 +0100, michaelbeggs50  
[EMAIL PROTECTED] wrote:

 Does anyone have experience with Adobe (or any) SVG plug-in for
 Solaris 8?

How about installing Opera instead of using a plugin? There is a solaris  
version, though I haven't tested it myself.

   http://www.opera.com/download/index.dml?custom=yes

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Good pointer to a compatibility FAQ/Discussion?

2007-12-11 Thread Erik Dahlström
Indeed it is interesting to note that Adobe still hasn't fixed their svg:s  
to be valid xml documents.
So, I don't think I'd call that a good example for interoperability,  
except in the sense that those documents will be displayed with xml errors  
in browsers.

Cheers
/Erik

On Mon, 10 Dec 2007 22:47:43 +0100, Michael Bierman  
[EMAIL PROTECTED] wrote:

 Couple of demos that you might find interesting.

 http://www.adobe.com/svg/demos/main.html
 http://www.adobe.com/svg/demos/main.html(see Airbus demo)
 http://www.anomaly.org/wade/projects/instruments/Instruments.svg

 Michael Bierman
 http://thebiermans.net



 pork_u_pine2000 previously wrote:

 Aside from the archives of this list, can anyone suggest one or more
 good discussions or FAQ's that cover the current state of
 compatibility between and among the various rendering environments
 commonly used to display SVG?

 I have only used SVG occasionally but would like to evaluate it more
 thoroughly for use in presentation interfaces for instrumentation data.

 Thanks,





 [Non-text portions of this message have been removed]




-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: SVG countdown

2007-12-10 Thread Erik Dahlström
On Sun, 09 Dec 2007 21:22:01 +0100, Rémi [EMAIL PROTECTED] wrote:

 Le Sun, 09 Dec 2007 13:08:46 -0600, G. Wade Johnson a écrit :

 On Sun, 09 Dec 2007 17:38:54 -
 boulle_remi [EMAIL PROTECTED] wrote:

 Hi,

 I wrote a simple SVG countdown. You can read it above. It is okay from
 5s to 0s, but the higher I start, the longer the code is...
 Is there a way, in SVG, to do that much more shorter than defining a
 text element for each number ?
 Thanks.
 Rémi

 If you are willing to use scripting, you can just update the value of a
 single text element every second instead of displaying multiple text
 elements in succession.

 I did that first but the time in javascript doesn't seem to be exactly
 the same than the one in the SVG document (rendering engine of Opera).

Right, there is nothing that says that those should be synchronized, so  
you shouldn't count on that.
However, it's possible to trigger scripts based on animation events like  
this if you want to be in sync:

svg xmlns=http://www.w3.org/2000/svg;
  xmlns:xlink=http://www.w3.org/1999/xlink; viewBox=0 0 600 600
script
   var i = 0;
   var texts = new Array(text 2, text 3, text 4, text 5);
/script
defs
   animate id=dummy attributeName=fill to=black dur=1s  
repeatCount=5  
onrepeat=document.getElementById('text').firstChild.data=texts[i++];/
/defs
text id=text style=text-anchor:middle; font-size: 30px; fill: black  
x=50% y=50%text 1/text
/svg

Works in Batik 1.7, Opera 9.x, ASV3.

 In my case, I had, next to the countdown from 5s to 0s, a rectangle whose
 width was moving from 0 to 100 within 5s. Here is the code :

 rect x=0 y=100 width=10 height=20 stroke=black fill=red
  animate attributeName='width' begin='0s' dur='5s' from='0' to='500'
 fill=freeze/
 /rect
 and 5 s in javascript are not 5s in SVG document... When the rectangle
 freezed, the javacsript countdown wasn't at 0.

 It is the reason why I was wondering if there were a possibility in SVG
 to have a kind of repetition of an animation with an incrementation.

Well, you can use accumulate=sum to add to have an animation add to the  
previous value as it repeats, but it only addresses the cases where  
attributes are additive. See  
http://www.w3.org/TR/SVG11/animate.html#AdditionAttributes for more  
information, there are a few examples there.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
http://my.opera.com/macdev_ed


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Create script element

2007-11-28 Thread Erik Dahlström
On Wed, 28 Nov 2007 04:11:41 +0100, ddailey [EMAIL PROTECTED]  
wrote:

 Hi Nico,

 What a fun problem!

 I fiddled around with it just enough to confirm what seems like odd  
 behavior in the browsers:

 The enclosed code (with a simple .js file of some sort added on ) shows  
 very different behavior in Opera 9.5alpha, FF1.5 and IE
 with FF able to run the code from the script built through DOM. FF  
 behaves the way I would expect it to.

Ok, that is contrary to my experiments :)
See below for source of that.

 I am not sure where within DOM one would expect the text of a .js (or  
 .es) file to actually appear, which is why I was experimenting with  
 various DOM explorations here. If the commented out code (both SVG and  
 JavaScript) is commented back in then all three browsers see three  
 script tags, but only in the first case, when the code is provided  
 in-line, can I figure out how to interrogate the source code  
 programmatically. Only in FF is the script, thusly constructed,  
 executable.

This is another problem, no? You're looking for a way of getting the text  
content of a script element that has external content?

 Since FF works the way I expect it should, it is probably the one which  
 is buggy. Erik Dahlstrom has pointed out that some of the CDATA hoopla  
 that I typically use is more extravagant than it needs to be, so in this  
 context my extraneous hoopla could prove problematic since it does pop  
 up as the nodeValue of the script that is commented out. Erik and maybe  
 Martin H. have also mentioned the use of href.baseVal in setting xlinks,  
 but this is on my list of things to ask about sometime, so am not sure  
 why or when one would do that.

 cheers,
 David
 -
 svg xmlns=http://www.w3.org/2000/svg; width=100%
 xmlns:xlink=http://www.w3.org/1999/xlink; onload=start()
 viewBox=0 0 100 100
 script![CDATA[
 svgRoot=document.documentElement
 svgNS=http://www.w3.org/2000/svg;
 xlinkNS=http://www.w3.org/1999/xlink;
 svgRoot.setAttribute(onclick,runit())
 function start(){
  var s = document.createElementNS(svgNS,script);
  svgRoot.appendChild(s);
  s.setAttributeNS(xlinkNS,xlink:href,.js);
  SCR=document.getElementsByTagName(script)
  
 alert(SCR.length+SCR.item(0).nodeName+SCR.item(0).nodeName+SCR.item(0).firstChild.nodeValue)
  alert(SCR.length+SCR.item(1).nodeName)
  alert(SCR.item(1).getAttribute(xlink:href))

Replacing the line above with:

   alert(SCR.item(1).getAttributeNS(xlinkNS, xlink:href))

gives me the correct xlink:href back in Opera as well.
The question is whether this is correct in Firefox or not, is the name  
given to getAttribute a localName or a qualifiedName? The DOM specs are  
not very clear about that subject. And the same thing goes for  
setAttribute. Now logged as bug 300509 in Opera's bugtracker.

  //alert(SCR.item(2).nodeName)
  //alert(SCR.item(2).getAttribute(xlink:href))
  runit()
 }
 //]]/script
 !--script xlink:href=.js/script--

 rect x=0 y=0 id=R height=100 width=100 fill=red /

 /svg

So, here is the simple variant that I made up which works fine in the  
browsers I tested:

svg  xmlns=http://www.w3.org/2000/svg;
xmlns:xlink=http://www.w3.org/1999/xlink; viewBox=0 0 1024 768  
onload=init()
script
var svgNS=http://www.w3.org/2000/svg;;
var xlinkNS=http://www.w3.org/1999/xlink;;

function init()
{
var s = document.createElementNS(svgNS,script);
s.setAttributeNS(xlinkNS,xlink:href,myscript.es);
document.documentElement.appendChild(s);
}

/script
/svg

The file myscript.es:

alert(hello);

Cheers
/Erik

-- 
http://my.opera.com/MacDev_ed/blog


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Kestrel sliders...

2007-10-29 Thread Erik Dahlström
On Sun, 28 Oct 2007 18:48:42 +0100, ~:'' ありがとうございました。  
[EMAIL PROTECTED] wrote:

 Kestrel  sliders...

 Erik,

 congratulations on releasing Kestrel!

 for some reason over the last while sliders have appeared when using
 Opera nightlies  and embedding SVG in HTML as at http://www.peepo.com

Thanks for the report (now bug #294015), we'll try to get that fixed  
before the final release.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Problems with running Javascript in Batik Squiggle

2007-10-29 Thread Erik Dahlström
On Mon, 29 Oct 2007 16:05:47 +0100, Tony [EMAIL PROTECTED] wrote:

 Hi, Andreas:

 I'm mostly using IE7/ASV and Batik Squiggle because in my research
 these supposedly had the most complete implementation of SVG 1.0;
 they support patterns, gradient fills, animation, etc.  Code that
 works fine in both Adobe and Batik supposedly breaks in
 Mozilla/Opera.  If I recall correctly, Mozilla uses the CSIRO viewer,
 which does not fully support SVG 1.0 specs.

 I'll download them and give them a try anyway, but am I wrong?

If you could provide a link to a testcase I might be able to help you.
Opera 9 supports patterns, gradients and animation, so it should be  
trivial to get it to run there.

A look in Opera's error console (Tools  Advanced  Error Console) will  
usually tell you why something isn't working.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] read css rule value from svg

2007-10-25 Thread Erik Dahlström
On Thu, 25 Oct 2007 04:00:33 +0200, todaius2003 [EMAIL PROTECTED]  
wrote:

 Hi,

 I would like to know how to read a value of a property in a css class
 from svg using javascript.

 Specifically, I would like to retrieve the font-size of the text
 element in the following example.

 This example includes two files: svg file, and a css file that the
 svg file refers to.

 Thanks,
 vn1977

 //*svg file***
 ?xml version=1.0 standalone=no?
 ?xml-stylesheet href=commonMap.css type=text/css?
 !DOCTYPE svg PUBLIC -//W3C//DTD SVG
 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;
 svg id=mainMap width=950 height=475
  viewBox=-82.049332 -30.5758 0.66748500013
 0.4716592
   xmlns:xlink=http://www.w3.org/1999/xlink;

 script language=text/ecmascript  
 ![CDATA[
 ]]
   /script
 text x==-81.9332  y=-30.2758
class =FreewayText 
 Hello, out there
   /text
 /svg
 //***end of svg file*

I think you'll run into less problems if your viewBox is made a bit bigger.
'text x==-81.9332 ' obviously should be 'text x=-81.9332' if you  
want it to work.
'script language=text/ecmascript' should be 'script  
type=text/ecmascript'.
You should add 'xmlns=http://www.w3.org/2000/svg;' on the svg root  
element.

 ===
 //*commonMap.css
 file***
 *.FreewayText
 {
   text-anchor: middle;
   font-family:Verdana;
   font-size: 0.001;
   color: black;
 }
 //***end of css file

You must specify font-size using a unit, otherwise it will be ignored,  
0.001px will do.

Here is my take on your files, which works fine in Opera 9 and Firefox 2:

//*svg file***
?xml version=1.0 standalone=no?
?xml-stylesheet href=commonMap.css type=text/css?
svg id=mainMap
viewBox=0 0 100 100
xmlns=http://www.w3.org/2000/svg;
xmlns:xlink=http://www.w3.org/1999/xlink;
onload=getStyle()

script type=text/ecmascript
![CDATA[
function getStyle()
{
var style = getComputedStyle(document.getElementById(t),null);
alert(style.getPropertyValue(font-size));
}
]]
/script
text id=t x=50 y=50 class=FreewayTextHello, out there/text
/svg
//***end of svg file*

//*commonMap.css
*.FreewayText
{
text-anchor: middle;
font-family:Verdana;
font-size: 10px;
color: black;
}
//***end of css file

More reading, if you're curious: http://www.w3.org/TR/DOM-Level-2-Style/

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] svg clock for mobile

2007-10-24 Thread Erik Dahlström
On Tue, 23 Oct 2007 23:47:59 +0200, ddailey [EMAIL PROTECTED]  
wrote:

 Hmmm... Thomas in Opera the current time for your link shows just fine  
 (though it starts at midnight in IE).

 A similar thing http://srufaculty.sru.edu/david.dailey/svg/clock.svg  
 also using SMIL seems to show current time in both IE and Opera.

 In looking at your code, I believe this is why:

 you use JavaScript to reset the rotation of each of the clock hands:

  var h_hrs = owner.getElementById(hourHand);
h_hrs.setAttributeNS(null, transform,  
 rotate(+ (30*hrs+0.5*min) +,105,105));

You should note that !-- isn't really a comment in the script, see e.g.  
http://lachy.id.au/log/2005/05/script-comments.

Since you have specified additive=sum on the hourHand animateTransform  
element that means that the animateTransform transform will get  
postmultiplied on the hourHand transform. Then since the comment in the  
script wasn't really treated as a comment it will set the time also.

So a simple fix is: make the comment in the script a real comment, by  
using /* ... */ or // ...
Either way worked fine for me, that is either using setCurrentTime or  
setting the transforms. If you do both however, then you get both.

Also it won't work in IE/ASV because type=text/ecmaScript has an  
uppercase S. Replacing that with text/ecmascript makes the script run  
fine.

 The problem (I suspect), at least in IE and possibly Nokia, is that the 
 animateTransform that you've attached to the objects uses its own default
 rotation angles (specified through markup) to override any attributes 
 associated with the rotation itself. That is the  
 transform=rotate(string)is being clobbered by the animation itself.  
 Why Opera wouldn't do that, Idon't know, but that browser has the  
 sometimes uncanny ability to figureout what we are trying to accomplish.

According to the SVG spec[1] the transform on the target element shouldn't  
get overwritten when additive=sum is used in an animateTransform, but  
you can use additive=replace to get that effect if you want. I think  
both ASV and Opera behaves this way, at least the simple examples in the  
spec looked the same when I tried them.

Cheers
/Erik

[1] http://www.w3.org/TR/SVG11/animate.html#AnimateTransformElement

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Calling all geometry specialists: coordinate grid on a sphere (not OT)

2007-10-22 Thread Erik Dahlström
On Mon, 22 Oct 2007 10:49:36 +0200, darnell.turner  
[EMAIL PROTECTED] wrote:

...
 Question:
 Is there a way to draw only the polyline segments that are inside the  
 black circle?

A clip-path is probably the easiest way, something similar to this:

clipPath id=clip
use xlink:href=#circle/
/clipPath
g id=yourcontent clip-path=url(#clip)
...
/g

It's probably quicker to render it if you don't use clip-path though.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] New SVG Features in Safari Browser

2007-10-19 Thread Erik Dahlström
On Thu, 18 Oct 2007 21:13:03 +0200, brucerindahl [EMAIL PROTECTED] wrote:

 As of October 13, the feature branch of WebKit was merged into the
 main trunk.  This branch had lots of nice SVG features including
 textPath.  You have to get a nightly version available at:
 http://webkit.org
 Kudos to the WebKit team.
 Bruce

Cool, can't wait to try it out :)

Have a few minor problems though:
How do I get it to stop using the Adobe plugin? Disabling plugins seemed  
to have the side-effect of disabling native svg as well.
Also after trying the windows nightly I get instant crashes when running  
the Safari 3.0.3 build on anything svg.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] how to set the attribute xlink:href of USE element through using javascript

2007-10-11 Thread Erik Dahlström
On Wed, 10 Oct 2007 23:48:50 +0200, ~:'' ありがとうございました。  
[EMAIL PROTECTED] wrote:

 please try

 u.setAttributeNS(http://www.w3.org/1999/xlink;, href,#myRect);

This should also work:
u.href.baseVal = #myRect;

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] onload event is not firing when image added via script

2007-10-11 Thread Erik Dahlström
On Thu, 11 Oct 2007 08:38:21 +0200, shellshear [EMAIL PROTECTED] wrote:

 Hello chaps,

 I'm playing around with SVG on Opera (fun!), but I'm having trouble
 with the onload event - I'd like to be notified when an image I add
 (through the DOM) has loaded, as per the example below.  But in Opera
 9.23 it doesn't appear to do the onload.  Am I misinterpreting how
 onload is supposed to work?  Is it a bug or feature-to-be-implemented
 in Opera?

It worked fine if I switched the setAttribute(onload) bit for this:
img1.addEventListener(load, function() { alert('bar'); }, false);

FF2 behaves the same as Opera here, and Safari 3.0.2 strangely reported  
more than a few load events.

Not sure if there should be a difference between setting onload and  
registering an eventlistener, will follow up on that.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] animating gradientTransform with SMIL? ASV bug?

2007-10-11 Thread Erik Dahlström
On Wed, 10 Oct 2007 16:41:27 +0200, David Dailey [EMAIL PROTECTED]  
wrote:

 After building the page at
 http://srufaculty.sru.edu/david.dailey/svg/triangles4h.svg (visible
 in either IE/ASV or Opera 9.23), I decided it would be cool to let
 the various linear gradients rotate, sort of like in
 http://srufaculty.sru.edu/david.dailey/svg/triangles4i.svg (you may
 have to wait a moment after the grid is built for the SMIL to start)
 -- but this uses

 linearGradient id=g  fy=0 gradientTransform=rotate(45 .5 .5)
   animate attributeName=x1 dur=5s values=0; 1
   repeatCount=indefinite/
animate attributeName=y2 dur=7s values=0; 1; 0
   repeatCount=indefinite/
 [...]

 instead of what I wanted to do:

 linearGradient id=g  fy=0 gradientTransform=rotate(45 .5 .5)
   animate attributeName=gradientTransform dur=5s
 values='rotate(0 .5 .5)'; 'rotate(360 .5 .5)'
   repeatCount=indefinite/

 My reading of the SVG1.1 spec suggests that gradientTransform should
 be animateable

 but the instance of it at
 http://srufaculty.sru.edu/david.dailey/svg/triangles4j.svg
 only works in Opera (not in IE) -- is this a bug in IE/ASV, as I
 rather suspect,  or am I doing something wrong?

The test-results here says that ASV can animate gradientTransform:
http://olaf.kilu.de/svgtest/index.php?in=ntattributes#grapa

 Is there a list of known bugs in IE/ASV ?

Some can be found here:
http://wiki.svg.org/Known_Bugs

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Text flow and word wrapping

2007-10-08 Thread Erik Dahlström
On Sat, 06 Oct 2007 22:16:42 +0200, Jerrold Maddox [EMAIL PROTECTED] wrote:

 Can anyone give their best guess on when text flow and word wrapping
 will be recommended by W3C and supported in any of the browsers?

Opera 9.5 introduces support for textArea, from SVG Tiny 1.2. This allows  
textflow in a rectangular region in SVG. Another option to use  
foreignObject to let HTML do textwrapping for you, in case more advanced  
layout is required (images, lists etc).

 The working draft from 2002, says this:

 Text
 1. SVG 1.2 should allow word wrapping and forced line breaks for
 text within multiple rectangles [SVG 1.2]
 2. SVG 2.0 should allow word wrapping, forced line breaks and text
 flow within multiple shapes [SVG 2.0]
 3. SVG text should allow justification locations, such as the nine
 standard positions (bottom, center, top with left, middle, right).
 Note that this requirement will involve coordination with the CSS and
 XSL groups, and investigation by the Internationalization group. [SVG
 1.2] [SVG 2.0]
 4. SVG may allow text to be justified flush within a shape. [SVG 2.0]
 5. The transform attribute should be added to the tspan element [SVG  
 1.2]
 6. SVG should provide a method to define how whitespace is
 handled. SVG may provide an attribute that defines how a text element
 should handle whitespace, overriding the use of the xml:space
 attribute. [SVG 2.0]

 Is there anything which is more recent that could fill me in on where
 things have gone since then and where they are going? I haven't been
 able to find anything on line.

If you're looking at something to happen short-term then SVG Tiny 1.2 is  
the best bet, it can already do some of the things in the list above. SVG  
1.2 Full might be some time away still.

 I am interested because of a long term project of my mine using a
 variety of different languages and different scripts to present
 fairly long text documents - that is from 1000 to 5000 words - which
 need to use embeded SVG fonts - it is something I would like to be
 able to begin making available within the next year.

Looking at what's happening, it's possible that downloadable fonts will be  
in browsers before SVG 1.2 Full is available, and those downloadable fonts  
should be possible to use both in HTML and SVG. I think webkit is the  
first to offer this functionality, see  
http://webkit.org/blog/124/downloadable-fonts/. For presenting long texts  
I would probably go with HTML anyway.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Simulating non-rectangular tilings with pattern

2007-10-08 Thread Erik Dahlström
On Sun, 07 Oct 2007 21:50:11 +0200, ddailey [EMAIL PROTECTED]  
wrote:

 The triangular tiling visible (through IE/ASV and Opera9.2.3) at
 http://srufaculty.sru.edu/david.dailey/svg/triangles4.svg
 is created with script: a pair of tightly nestled equilateral triangles  
 has been put in a group that is then cloned across the visible region.

 Odd and even numbered triangles are filled with different gradients  
 (mainly since if the fy attribute of the gradient is not tweaked then  
 the center of the gradient defaults to the center of the bounding  
 rectangle which is rather different than the perceptual center of the  
 triangle).*

 I sought to try simplifying things by building the tiling it with  
 pattern rather script. I think any periodic tiling of the plance can  
 be simulated with a rectangular pattern. To simulate the two adjacent  
 equilateral triangles, I split one of them into two halves -- both right  
 triangles -- and appended these halves on either side of the whole one.  
 The pseudo-triangles tile just fine, as can be seen at
 http://srufaculty.sru.edu/david.dailey/svg/triangles5.svg **

 The problem is that I can find no way to fill the adjacent  
 half-triangles with what would appear to be a shared radial gradient --  
 even by adjusting the horizontal offset fx of the gradients of each.  
 If they share the same radial gradient, then that gradient appears  
 centered relative to the bounding box of each half-triangle individually.

You could perhaps try to make the half-triangles into full triangles, but  
let half of the triangle fall outside of the viewbox of the pattern. That  
way the fill will look the same as for a full triangle, and hopefull pair  
up with the next tile.

 What I want to do is to create something identical to  
 http://srufaculty.sru.edu/david.dailey/svg/triangles4.svg but with  
 pattern instead of DOM. My thought is that it oughta be faster -- but  
 who knows? maybe it won't be. Any insights on the relative speeds of  
 such things?

My guess is that if you have a large area to tile on then using patterns  
will be faster than having the same thing drawn a number of times. If  
you're not tiling a large area then sometimes it's faster to draw the same  
thing repeatedly (like in your scripted version).

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] SVG with html control

2007-10-02 Thread Erik Dahlström
On Tue, 02 Oct 2007 08:59:18 +0200, Barend Köbben [EMAIL PROTECTED] wrote:

 Hi David,

 Only on Win with IE and the ASV plugin this works.

 On Opera  on the Mac (Version
 9.50 Alpha,
 Build
 4404) your page complains
 about needing a plugin...?

 On Opera  on Win (Version
 9.50 Alpha,
 Build
 9500), no complaints, but the
 place where the picture should be is either empty or a hole through to  
 the
 underlying window (weird...?).

Thanks, we'll fix this bug for a later release, this type of feedback is  
what alpha releases are meant for.

Btw, http://srufaculty.sru.edu/david.dailey/svg/waves.html uses  
getElementById to find an embed element, but the embed element doesn't  
have an id attribute. It does have a 'name' attribute however I don't  
think getElementById should care about 'name', it could be a regression  
though.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] USE elements in Safari - problems with events

2007-10-01 Thread Erik Dahlström
On Mon, 01 Oct 2007 13:03:18 +0200, richard_smith_ons  
[EMAIL PROTECTED] wrote:


 http://bugs.webkit.org/show_bug.cgi?id=14167

 Due to the above I get evt.target.getAttributeNS not an object when
 trying to process the events on a USE element (Safari 3.0.3 for
 Windows). The conclusion seems to be it's not a bug (!)

I don't think it's a bug either, if you get an SVGElementInstance object  
back then clearly it doesn't have an ownerDocument.
You get the innermost (in lack of a better word) element that was under  
the mouse cursor, which in the supplied testcase is a rect, as the target  
of the event. Now, if you want the _current_ target instead, then just use  
evt.currentTarget instead, this will be the use element, which does have  
an ownerDocument.

Opera shows the same behaviour as Safari on this testcase.

 Is there a recommended workaround?

Well, you have all of the methods and properties available on the  
SVGElementInstance interface[1] at your disposal. And you could use  
evt.currentTarget if that's what you want.

Cheers
/Erik

[1] http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGElementInstance

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] display question

2007-09-27 Thread Erik Dahlström
On Thu, 27 Sep 2007 02:39:49 +0200, shydisturbedboy  
[EMAIL PROTECTED] wrote:

 if i set the display to none, will it affect the performance?

If you hide something that is costly to render then yes.

 will it be faster for the svg file to 'react'? why is this?

By using display=none you're telling the user agent that this particular  
subtree doesn't need to be considered for e.g mouse events, and that the  
user agent can skip the subtree when rendering.

If using visibility=hidden the user agent still needs to process the  
subtree because any child element can override visibility, and this is not  
the case with display.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Carousel Animation - any way declaratively?

2007-09-25 Thread Erik Dahlström


On Tue, 25 Sep 2007 05:17:49 +0200, Jeff Schiller  
[EMAIL PROTECTED] wrote:

 David,

 Painter's Model: http://www.w3.org/TR/SVG11/render.html#PaintersModel

 I'm not sure, but I think you missed the key aspect here - think of
 the icons on a carousel that we're looking at on a horizontal
 elevation.  This problem has to do with rendering order more than
 highlight and event handlers (though that is another interesting topic).

 Let's say you have 3 icons on the carousel - as it spins, icon 1
 (which is to the left of center) and icon 3 (which is to the right)
 are behind icon 2 (which is in front and center).  As the carousel
 spins clockwise, icon 3 moves to the center and in front (i.e. on
 top) of the others, while icon 2 is now to the left of center and
 behind icon 3.

 Do you see what I mean by z-order?  Because the rendering order and
 overlapping is defined by the order in which the elements appear in
 the DOM, it seems that you couldn't declaratively do the animation
 (you'd have to have script to rearrange the nodes as the icons rotate
 - probably using two halves of the carousel circle as separate
 rendering groups with nodes being popped and pushed appropriately).

Jeff,
Have you tried a solution that uses use elements for keeping the z-order  
the way you want it?

Simple example:
rect id=a
   set attributeName=xlink:href to=#a begin=mouseover  
xlink:href=#top/
/rect
rect id=b
   set attributeName=xlink:href to=#b begin=mouseover  
xlink:href=#top/
/rect
rect id=c
   set attributeName=xlink:href to=#c begin=mouseover  
xlink:href=#top/
/rect
use id=top xlink:href=#a/

I have been trying to find good solutions to the z-order problem as well,  
moving elements around in the tree and expecting mouse events to cooperate  
is quite hard in my experience. That is, if I want something to move to  
front when I mouseover it, the only way I've found reliable is to use  
scripting, because the instant I move an element to the top I get another  
mouse event on whatever was under it (because moving it means take it out  
of the tree, then inserting it somewhere else), and that makes the element  
that I wanted to have focus lose it. So, I have to block events until  
everything is in place.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Hyperlinks in definition

2007-09-23 Thread Erik Dahlström
On Wed, 19 Sep 2007 21:40:45 +0200, ~:'' ありがとうございました。  
[EMAIL PROTECTED] wrote:

 Fyrd,

 guess this maybe a known bug at opera...
 workaround could be onclick onfocus, if that suits you.

 personally I'm waiting for use external files... seems that use has
 many issues to resolve.

 regards

 Jonathan Chetwynd
 Accessibility Consultant on Media Literacy and the Internet



 On 17 Sep 2007, at 23:53, JK_AD wrote:

 Does anyone here know of a way to get this to work, or know of a
 reason why it shouldn't work? It works in Firefox, but not Opera or
 ASV.

 http://files.myopera.com/Fyrd/svg/linkerror.svg

 This is just a simple example of it not working, the actual file is a
 lot more complicated. I know I could use the anchor tag outside the
 definition, but in the other file I need the links to work within the
 defs.

 Thanks for any help!

 -Fyrd

The link bugfix is included in the latest Opera weekly build which is  
available for download here:
   http://my.opera.com/desktopteam/blog/2007/09/21/one-more-snapshot

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Hyperlinks in definition

2007-09-19 Thread Erik Dahlström
On Tue, 18 Sep 2007 00:53:19 +0200, JK_AD [EMAIL PROTECTED] wrote:

 Does anyone here know of a way to get this to work, or know of a
 reason why it shouldn't work? It works in Firefox, but not Opera or
 ASV.

 http://files.myopera.com/Fyrd/svg/linkerror.svg

 This is just a simple example of it not working, the actual file is a
 lot more complicated. I know I could use the anchor tag outside the
 definition, but in the other file I need the links to work within the
 defs.

 Thanks for any help!

A fix for this bug will probably be in the next Opera 9.5 release.
If you want it to work in ASV and older Opera releases I suggest you try  
to work around this bug.

It could be depending on the fact that 'use' creates a shadowtree  
structure, which may be handled differently in different viewers.
One workaround it is to clone nodes using script, since at least in  
Opera's case the bug is triggered by having an 'a' element inside of a  
shadowtree.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Can elements within svg be manipulated by programming in html file?

2007-09-10 Thread Erik Dahlström
On Mon, 10 Sep 2007 14:25:41 +0200, Fulio Pen [EMAIL PROTECTED] wrote:

 Such as in following file:

 http://www.pinyinology.com/zhgp/test.html

 I guess not.  But probably there are solutions.  Thanks.

It's quite possible to do that.

Here are two examples:
   http://jwatt.org/svg/demos/scripting-across-object.html
   http://jwatt.org/svg/demos/scripting-across-embed.html

It's even easier when you're doing XHTML+SVG inline, because everything is  
in the same document. But note that certain browsers don't support XHTML,  
*cough*IE*cough*.
Anyway, here's a simple example:
   http://jwatt.org/svg/demos/xhtml-with-inline-svg.xhtml

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: SVG in Opera 9.5 Kestrel

2007-09-04 Thread Erik Dahlström
On Tue, 04 Sep 2007 21:26:54 +0200, brucerindahl [EMAIL PROTECTED] wrote:

 --- In svg-developers@yahoogroups.com, Antoine Quint [EMAIL PROTECTED] 
 wrote:

 Hi all,

 Opera announced the first public alpha for Opera 9.5, code-name Kestrel:

 http://www.opera.com/products/desktop/next/

 It seems that Opera has been keeping busy on the SVG front, as
 digging through the changelog showed a few SVG-related bits:

 - Added partial SVG Tiny 1.2 support
 - Added support for using SVGs in img elements and the CSS background-
 image and list-style-image properties
 - Added external reference support for SVGs
 - Fixed numerous inconsistencies and specification violations in the
 SVG, DOM, WML, Web Forms 2.0, XPath, and XSLT implementations

 So the big question remaining is the list of SVGT 1.2 features that
 are supported. But it looks like another great advance, especially in
 terms of mixing SVG and CSS for regular web pages.

I can provide some more details about the support in Opera 9.5.

The 9.5 version adds to the SVG 1.1 support, as can be seen in the SVG  
support table at http://www.codedread.com/svg-support.php.

The parts of SVG Tiny 1.2 that are supported:
- Navigation (the focusable attribute, and nav-* properties) and also  
keyboard navigation inside of SVG:s
- There is partial support for the the uDOM, it's easier to list things  
that not supported. Interfaces that are not implemented are: Connection,  
Timer, SVGGlobal, TextEvent, ProgressEvent, ConnectionEvent.
- XML Events, the handler and listener elements
- The animation element does not support animation and interactivity yet,  
that's a known bug.

Features of SVG Tiny 1.2 that are not supported:
- Audio and video

Please bugreport any bugs in Opera 9.5 alpha at  
http://bugs.opera.com/wizard.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Do people on this list really want to promote SVG?

2007-06-21 Thread Erik Dahlström
On Wed, 20 Jun 2007 19:04:35 +0200, Richard Pearman  
[EMAIL PROTECTED] wrote:

 Hi,

 Can you be more specific about this as from what you saw I don't know
 what you saw and what the problem was and I'm not even sure what you
 mean by rendered chaotically.

FF and Opera don't like font-sizes in CSS 'style' without the unit  
specified. That's half of the reason why your font's look huge, the second  
part of the reason is that your viewBox is small which makes the default  
fontsize that Opera/FF uses look big.

I suggest that you specify the unit, such as style=font-size:0.4px in  
all places where it's missing.

...
 The comic contents page has some small SVG's on it and links to main
 parts.  If you follow the recomended path for new users you get some
 stuff about how to view SVG files and the scenario of the comic
 before getting into an actual SVG comic. The first one instructs you
 on the interactivity and doesn't have much plot. Then you get a title
 page which can take a while to download and crashes Opera.

Opera is very busy trying to do the background filter. You may consider  
cutting back on the complexity of those filters :)
Limiting 'numOctaves' on your feTurbulence filter primitives should help  
a bit, a value such as 80 is unlikely to make much visual difference from  
say 3 or 4?

Even ASV takes a long time to render the first svg because of that  
background.
I'm guessing that you're using filters for the backgrounds all over, so in  
general trying to limit the complexity will probably improve the viewer  
experience.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: text input to svg (forms in svg)

2007-06-19 Thread Erik Dahlström
I would suggest an absolute positioned iframe or similar. Then make sure  
that is displayed on top, and do the form in HTML.
That would most likely work in FF, Opera and Safari.

Hope this helps
/Erik

On Tue, 19 Jun 2007 01:27:18 +0200, sirlemmingviii [EMAIL PROTECTED]  
wrote:

 I had hoped someone more knowledgeable would answer this, but in
 short, you don't have many options.  SVG 1.2 will support text input,
 but most viewers don't implement it yet, and certainly not fully.

 One workaround is to use a Javascript input dialog prompt.  It's not
 too hard to have the prompt open when someone clicks something and
 then pass that data back to the SVG document.  Depending on what
 you're doing, that may not be elegant enough.

 --- In svg-developers@yahoogroups.com, russellgum [EMAIL PROTECTED] wrote:

 I have an svg document that includes several rectangles that change
 color when clicked on
 and a rectangle that sends the color of the rectangles to my server
 as a POST message
 using Ajax. What I would like to add is a text input field that the
 user could fill in with
 data ( a date) related to the rectangles that changed colors that
 could be processed by
 javascript and included with the POST message. In short, what I need
 is a way to include
 forms in an svg object.

 The only browser I need this to work with is Safari 3.

  I tried using an embedded svg file but Safari would not process the
 POST message when I
 did this. I thought that maybe I could put the form in the html file
 and still have the Post
 work from the embedded svg.

 I also thought it might be possible to change the data (a date) with
 javascript (by using a
 mouseover on an object to change the date) and display the results
 as a text object in svg.
 However, I couldn't figure out a simple way to get the value of a
 javascript variable
 displayed in a text object in javascript. Is there a simple way to
 do this?

 Thanks

 Russ



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Detecting when rendering is complete

2007-05-30 Thread Erik Dahlström
On Wed, 30 May 2007 17:20:40 +0200, ddailey [EMAIL PROTECTED]  
wrote:

 I believe I have seen this question asked and answered here before, I  
 may even have asked it (though I sincerely doubt that I ever answered  
 it).

 So apologies in advance for retracing any overly familiar ground.

 Is there some way to tell when a complex page has actually finished  
 drawing?

Apart from looking at the user agent, no. You may get an indication based  
on the level of CPU usage, or other such metrics, but nothing exact.  
There's no event sent when rendering is finished, because defining what  
that means is probably not so easy. The same problem I guess can be Can  
you tell when a complex HTML page has actually finished drawing?.

 I am trying to do some timing to see how much time various things take  
 in the SVG DOM. If I add, for example, 3000 text nodes
 using code like:

 try{suspendHandle = Root.suspendRedraw(1);}
  catch(e){}
  D0=(new Date()).valueOf()
  for (i=0;i3000;i++)addNode(text)
  try{Root.unsuspendRedraw(suspendHandle);}
  catch(e){}
  D1=new Date().valueOf()
 display(D1)

 I find that the second date object D1 is calculated and displayed before  
 the text actually finishes drawing on the screen.

That's the expected behaviour. unsuspendRedraw just tells the UA that it  
may draw the image again, not that it has to do it right away. There's a  
forceRedraw method that can be used, but the 1.1 spec isn't that clear  
about if that does anything if suspendRedraw was called first. It probably  
should force a redraw though.
And if forceRedraw is not implemented as a synchronous operation then you  
are screwed anyway.

 Is there another event that fires when all the rendering is complete?

No, and also note that it may be difficult to say when it's complete. Some  
scripts constantly modify the document. There's no way to say it's done  
in such cases.

Hope I didn't discourage you too much. suspend/unsuspendRedraw are meant  
as ways to optimize the content because the user agent can skip doing  
unnecessary partial redraws. I don't think it was designed to help much  
with doing performance measurements/benchmarking.

One way to get some measurements would be to add an element that requires  
user interaction. Then as you unsuspendRedraw, take one timevalue, and  
when all drawing is complete you can probably count on that this last  
element is clickable, so require the user to click it and take another  
timevalue. The difference between those should be a sample of the  
rendering time. Repeat and make an average.

Regards
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Text Scaling in Opera

2007-05-21 Thread Erik Dahlström
On Sun, 20 May 2007 20:20:45 +0200, simonshutter [EMAIL PROTECTED] wrote:

 Hi Folks,

 Can anyone explain the way Opera handles text scaling compared with
 FF2 and ASV3?  In following example the deeply nested text elements
 scale well in FF2 and ASV3 but all appear at the same size in Op9.

Thanks Simon, this has now been logged in the Opera bugtracking system  
(bug #265620).
We'll have a closer look soon.
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] About document.write

2007-05-04 Thread Erik Dahlström
On Thu, 03 May 2007 22:48:07 +0200, jordangcsnt [EMAIL PROTECTED]  
wrote:

 Hi, i have a .js and I want it calls another .js, I tried to do it
 with document.write but it doesn't work, there is a message, it shows:
 the object doesn't accept this property or method.
 I have this:

 svg xmlns:svg=http://www.w3.org/2000/svg;
 xmlns=http://www.w3.org/2000/svg;
 xmlns:xlink=http://www.w3.org/1999/xlink; width=100% height=100%
 onload=Init(evt)
 script xlink:href=begin.js /

 this is begin.js

 function Init(evt)
 {
svgDocument = evt.target.ownerDocument;
svgRoot = svgDocument.documentElement;
var url = prueba.js;
document.write('SCRIPT src=' + url + '\/SCRIPT');
 }

 I know that document.write doesn't work in xml  but someone knows how
  i can call the other js???, thanks

This won't work for a couple of reasons:
a) Looking at the SVGDocument object there is no 'write' method, that's  
only available on HTMLDocument objects.
b) SCRIPT is not an SVG element, since XML is case-sensitive, should  
be script
c) There is no src attribute on script elements in svg, you should use  
xlink:href instead

So, instead try:
var script = document.createElementNS(http://www.w3.org/2000/svg;,  
script);
script.setAttributeNS(http://www.w3.org/1999/xlink;, xlink:href, url);
svgRoot.appendChild(script);

Hope this helps
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: foreignObject: Anyone found out a good way to dump HTML into SVG with it?

2007-04-25 Thread Erik Dahlström
Feel free to search the archives of svg-developers...

Here are a couple of examples that work in Opera 9 and Firefox 3:
   http://tech.groups.yahoo.com/group/svg-developers/message/57941

Cheers
/Erik

On Wed, 25 Apr 2007 17:09:55 +0200, Jeff Schiller  
[EMAIL PROTECTED] wrote:

 What UAs are you trying it in?

 I've never yet played with foreignObject, though it's going to be
 enabled in Firefox 3 from what I understand.  Not sure if Opera has
 support for it yet.

 Jeff

 --- In svg-developers@yahoogroups.com, sirlemmingviii [EMAIL PROTECTED]
 wrote:

 Maybe I'm just naive here, but to me, the promise of the
 foreignObject element is that you can take a block of code from
 another markup language and dump it right into a block of SVG code by
 surrounding it with foreignObject and maybe modifying it a little.

 Given the fact that I can't even seem to get examples provided by web
 sites such as Croczilla and W3.org to work correctly, maybe this is
 one of those things we just have to wait on.  But if anyone's had any
 success with this kind of thing, I'd like to know.  So far all of my
 attempts have resulted in none of the HTML showing up.  I doubt I'll
 bother trying to do this anymore unless I'm really missing out on
 something.

 I'm only interested in dumping HTML into an SVG (or mixed XML/SVG,
 XHTML, etc.) document, not the other way around.






-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] SVG and Thematic maps

2007-04-20 Thread Erik Dahlström
On Fri, 20 Apr 2007 00:03:19 +0200, kristianpalm [EMAIL PROTECTED]  
wrote:

 Hello

 I'm working with a application based on SVG where visitors will be
 able to create there own thematic maps just by adding data.

 Have tried it with Firefox, IE + ASV and Opera on Windows XP.
 Works fine i FF IE but not in Opera (i think because Opera doesn´t
 allowe script between frames).

Scripts between frames is allowed in Opera.
I recommend that you use object elements instead of embed for  
embedding svg content, since that is likely to work better.

Opera is currently looking into making embed work better with svg.
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Opera key events

2007-04-11 Thread Erik Dahlström
On Wed, 11 Apr 2007 10:39:10 +0200, Chris Peto  
[EMAIL PROTECTED] wrote:

 Hi All,

 I CGUI I have an edit that should take numbers and characters, but some  
 of
 the numbers are shortcuts in Opera, therefore my edit gets the character  
 but
 Opera also handles the shortcut, i.e. zooming.

 Is there any way to stop this without have to delete the shortcuts?

Yes, evt.preventDefault(). See the table at the bottom of the article[1],  
and some examples of it being used[2].

Hope this helps
/Erik

[1] http://dev.opera.com/articles/view/debugging-svg-with-opera/
[2] http://www.carto.net/papers/svg/eventhandling/

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Optimal SVG transformations

2007-04-03 Thread Erik Dahlström
On Mon, 02 Apr 2007 16:24:32 +0200, frevi815 [EMAIL PROTECTED] wrote:

 Thanks!

 But to use setMatrix I have to write:
 e.transform.baseVal.getItem(0).setMatrix(matrix) (in firefox)

Of course, you are correct, my initial reading was too quick.
Since transform.baseVal is an SVGTransformList and not an SVGTransform  
your first code-example seems like the correct way to do it.

 Is there any way to avoid this?

Not that I can think of atm, except of course the setAttribute(NS) way.

 Sorry about the SVGT 1.2 bit. I didn't think about checking the
 appendix. But... after doing that I have a question. It seems like
 there is no skew-transform?

That there are no mSkewX/Y methods does seem a bit strange.

 (except for some strange type attribute
 for animateTransform..?)

What's so strange about that? :)
animateTransform type=rotate values=45 160 160;90 160 160 .../
The type attribute just says that any provided values in attributes  
values/from/by/to are of the given transform-type (in the example here:  
rotate).
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Optimal SVG transformations

2007-04-02 Thread Erik Dahlström
On Mon, 02 Apr 2007 12:42:17 +0200, frevi815 [EMAIL PROTECTED] wrote:

 Hello,

 I've been playing around with svg transformations and would like to
 know if you have any recommendations.
 I have the need to stack several transformations on top of each other
 and I've tried benchmarking SVGMatrix against my own javascript matrix
 class by running a loop several thousand times like this:

   for (i=0;imaxIterations;i++){
 tmp = Math.random();
 matrix.scale(tmp*10).skewX(tmp*11).rotate(tmp*12).skewY(tmp*13);
   }

 For maxIterations  5000 to 6000 SVGMatrix is faster than my
 javascript matrix class but above the javascript version pulls ahead.

Well, if you create your own custom javascript objects they would also be  
garbagecollected at some point.

 I guess it's because the SVGMatrix methods returns a new matrix when
 called (and therefore triggers the carbage-collector) while my methods
 alters the current matrix. So I assume that in a somewhat normal
 use-case using SVGMatrix should be the best option?

I would recommend that yes.

 Another question I have is regarding the best way to assign a svg
 element a new SVGMatrix.
 Is something like:
 var e = document.getElementById('erect1');
 e.transform.baseVal.initialize(svg.createSVGTransformFromMatrix(matrix));

Or perhaps:
e.transform.baseVal.setMatrix(matrix);

 faster than?:
 var e = document.getElementById('erect1');
 e.setAttributeNS(null,transformation,toStringSVGMatrix(matrix));

I would guess not, and if you're doing this in a loop many times then your  
first option would probably be faster. And I predict that setMatrix is  
faster than both of them.

 (where toStringSVGMatrix is a function that formats the matrix into a
 string)

 I would like to avoid the first one as I find it ugly…

I agree, that isn't the best way to do what you want, setMatrix should be  
better.

 I've also noticed that SVGMatrix is absent from SVG Tiny 1.2. Is doing
 it yourself in javascript the only option when using SVGT 1.2?

It's not absent, see  
http://www.w3.org/TR/SVGMobile12/svgudom.html#svg__SVGMatrix.

The methods available on SVGMatrix are slightly different, except for  
inverse(), the mTranslate/mRotate/etc are the mutable counterparts of the  
svg 1.1 methods.

Hope this helps
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Patterns

2007-02-06 Thread Erik Dahlström
Have you tried using fill=currentColor inside the pattern? Then you  
should be able to set the 'color'-attribute on the element that references  
the pattern and have it used in the pattern.

Hope this helps
/Erik

On Mon, 05 Feb 2007 18:01:47 +0100, Carroll, Brendan M.  
[EMAIL PROTECTED] wrote:

 I'll give it a try. I guess in this case I'd have to pass the color as
 an argument and on load swap the fill from blue to another color value.
 Will this work if I have multiple shapes referencing the same pattern
 def?


 Brendan Carroll
 Senior Developer
 Baltimore GIS Manager
 GeoDecisions(r)
 Suite A, 4701 Mount Hope Drive
 Baltimore, MD. 21215
 (410) 585-1460 Office
 (443) 610-5650 Cell
 [EMAIL PROTECTED]


 

 From: svg-developers@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of ddailey
 Sent: Sunday, February 04, 2007 10:53 AM
 To: svg-developers@yahoogroups.com
 Subject: Re: [svg-developers] Patterns


 Brendan asks about dynamically changing the content of a pattern.

 defs
 pattern id=checkerPattern patternUnits=userSpaceOnUse
 x=0 y=0 width=20 height=20
 viewBox=0 0 15 15 
 rect x=0 y=0 width=10 height=5 fill=blue/
 rect x=5 y=5 width=15 height=5 fill=blue/
 /pattern
 /defs

 I thought I had an example around somewhere but didn't find it easily...
 Yes, what you wish to do can be done.

 I'd do something like

 changePattern(checkerPattern,newPatternGroup)

 where:
 function changepattern(id,newgroupid){
 var P=document.getElementById(id)
 for (i in P.childnodes){
 P.removeChild(P.items(i))
 }
 //above should clean out the existing stuff in the pattern
 //then add the new stuff
 var G=document.getElementById(newgroupid)
 P.appendChild(G)
 }

 where newPatternGroup would be a group (probably defined in defs)
 containing the elements of the new pattern.

 I think that oughta work in browsers that support pattern

 hope this helps
 David

 [Non-text portions of this message have been removed]




 [Non-text portions of this message have been removed]




-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Finding document root to add elements to.

2007-01-27 Thread Erik Dahlström
On Thu, 25 Jan 2007 20:49:47 +0100, Aaron Gray [EMAIL PROTECTED] wrote:

 At the moment I am using  :-

 svg xmlns=http://www.w3.org/2000/svg;
  xmlns:xlink=http://www.w3.org/1999/xlink;
  version=1.1
  xml:space=preserve
  viewBox=0 0 1000 1000
  onload=Initialize( evt)
  

   g id=Chart fill-opacity=0.7 stroke=black  
 stroke-width=0.075cm/

 ~~~

 function Initialize( LoadEvent)
 {
 SVGDocument = LoadEvent.target.ownerDocument;

 var g = SVGDocument.getElementById(Chart);

 ...

 }

 How can I access the SVG DOM root element inorder to add the chart g  
 element using DOM ?

SVGDocument.documentElement or SVGDocument.rootElement will get you the  
root element.

You can see some nice svg examples covering this case and others here:
http://www.carto.net/papers/svg/manipulating_svg_with_dom_ecmascript/

Hope this helps
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] embed .v. object .v. frames .v. iframes -- [was SVG in XHTML file]

2007-01-25 Thread Erik Dahlström
On Thu, 25 Jan 2007 02:05:47 +0100, ddailey [EMAIL PROTECTED]  
wrote:

 Aaron Gray wrote:

 This brings up the issue of embed .v. object .v. frames .v. iframes I  
 would appreciate some pointers and advice here.

 I'll go ahead and make a stab at an answer. If I misstate or neglect  
 anything,  I'll hope others will jump in and correct me.
...
 object works quite nicely and simply in FF and Opera, though.

I like object more than embed since it has more predictible results.  
You are less likely to run into trouble if you use object in FF/Opera,  
with the drawback that it might not work in IE/ASV.

...
 a) image src=doc.svg is likely not ever to support scripting, even  
 once individual browsers come to support that file type.

It seems likely that scripting will be disabled for html:img if it  
supports svg in the future yes.

 b) the inline approach to SVG has been experimented with a good deal and  
 is likely to become much more convenient in future browsers (right now  
 IE seems to be the obstacle). The link I mentioned earlier  
 http://wiki.svg.org/Inline_SVG  seems as consise and accurate as on this  
 subject as any, though I seem to recall that Andreas Neumann had some  
 pretty extensive stuff on this at his wonderful  
 http://www.carto.net/papers/svg/samples/ site -- I can't seem to locate  
 it quickly though.

I agree it's convinient, let's hope to see more content like that in the  
future.

 c) there is a foreignObject tag in SVG1.1 (see  
 http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement) . It appears  
 to have the purpose of allowing the embedding of XHTML (and other XML  
 content) directly into SVG, I suppose somewhat like Microsoft XML data  
 islands in HTML. I haven't seen any working demos of it, and the example  
 code in the W3C specs is something I've not been able to make work in  
 any browser (I'm hoping somebody can set me straight here.)

I recently tried a FF3.0 nightly that had some support for foreignObject.
Opera 9 has some support, but it's limited to external content (via  
xlink:href) at the moment.

Here's an example that works in Opera 9:
svg xmlns=http://www.w3.org/2000/svg;  
xmlns:xlink=http://www.w3.org/1999/xlink;  id=svg-root width=800  
height=600
foreignObject id=foo width=800 height=600  
xlink:href=http://www.opera.com//
defs
linearGradient id=gradient
stop stop-color=yellow offset=0/
stop stop-color=red offset=1/
/linearGradient
/defs
text fill=url(#gradient) fill-opacity=0.5 transform=rotate(-45 
700  
100) font-size=100 pointer-events=none font-family=sans-serifSVG  
on top/text
/svg

And here's an example that works in FF3.0:
svg xmlns=http://www.w3.org/2000/svg;  
xmlns:xlink=http://www.w3.org/1999/xlink;  id=svg-root width=800  
height=600
foreignObject width=800 height=600
html xmlns=http://www.w3.org/1999/xhtml;
body bgcolor=beige style=font-size:48px
pThis is XHTML/p
pClick to a 
href=http://www.mozilla.org/;visit Mozilla.org/a/p
pThis is XHTML/p
pThis is XHTML/p
pThis is XHTML/p
/body
/html
/foreignObject
defs
linearGradient id=gradient
stop stop-color=yellow offset=0/
stop stop-color=red offset=1/
/linearGradient
/defs
text fill=url(#gradient) fill-opacity=0.5 transform=rotate(-45 
700  
100) font-size=100 pointer-events=none font-family=sans-serifSVG  
on top/text
/svg

I hope the foreignObject support in all browsers improves so that it  
becomes possible to use in the future.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Importing SVG from another file with XMLHttpRequest

2007-01-25 Thread Erik Dahlström
On Thu, 25 Jan 2007 09:39:14 +0100, frevi815 [EMAIL PROTECTED] wrote:

 First, as I'm new to this board: Hello everyone!

 I'm having trouble importing external SVG with XMLHttpRequest.
 It's inserted in the document but isn't visible. If I look at the
 html-tab in Firebug the new element is there there but it's slightly
 faded out. And when I inspect the DOM-ode of the element the
 namespaceURI is null. I've tried using importNode but i doesn't help.
 The code looks like this:

 response = req.responseXML.documentElement;
 importedNode = document.importNode(response, true);
 tempElement = document.getElementById(itemID + Tank);
 tempElement.appendChild(importedNode);

 The elements is sent over with a very basic php-file:
 ?php
   header('Content-Type: image/svg+xml');
 echo(g id='fish' rect x='40' y='50' width='140' height='100'
 fill='red' //g);
 ?

Remember that you're getting XML elements back unless otherwise specified.

You can try adding the svg namespace like this:
?php
header('Content-Type: image/svg+xml');
echo(g xmlns=http://www.w3.org/2000/svg; id='fish' rect x='40' y='50'  
width='140' height='100'
fill='red' //g);
?

Then your elements should become SVG elements.

Hope this helps
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Swapping attribute values on large numbers of elements

2007-01-24 Thread Erik Dahlström
On Wed, 24 Jan 2007 06:58:29 +0100, simonshutter [EMAIL PROTECTED] wrote:

 Hi,

 I have a scenario where I need to plot hundreds of rectangles and
 each rectangle has two possible y values but all other attributes are
 static.  To save space I was hoping to add two attributes that could
 be swapped in response to events.  Does this make sense and what do
 you suggest as a method for swapping the two y attribute values?
 Would I have to loop over each element sequentially or is there a
 faster way?

One alternative is to not specify a 'y'-attribute at all (defaults to 0),  
and instead group the elements in a g element.
Then you give the g element a 'transform'-attribute to translate all the  
child elements to whatever y-value you want.

The benefit is that you then change one attribute instead of hundreds, but  
depending on how your svg looks it may or may not be possible to group the  
elements in this way.

Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [svg-developers] Re: Support of SVG content in the image tag ?

2006-12-20 Thread Erik Dahlström
On Tue, 19 Dec 2006 22:45:00 +0100, Charles McCathieNevile  
[EMAIL PROTECTED] wrote:

 On Tue, 19 Dec 2006 20:12:32 +0100, Jeff Schiller
 [EMAIL PROTECTED] wrote:

 I know Opera is currently working on SVG-as-background-image and
 apparently this works in some build (not sure if it's in Opera 9.10
 though).  Not sure about SVG-as-image though.  chaals?

 You'll have to wait for Erik (Ed) or David (Davve) I am afraid. I can't
 tell you anything much on this score...

For svg:image that references svg images, that's a possible target for  
Opera 10. If you meant html:img referencing svg images, that's also a  
possible target for Opera 10.
/ed

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


  1   2   >