[svg-developers] Re: Report on SVG Viewer Performance, the second attempt.

2008-12-16 Thread Helder Magalhães
   Once again, I look forward to any input or suggestions.

An interesting, tightly related thread [1] is being conducted at the
Mozilla SVG group. Anyone interested in discussing/learning more about
the setInterval/setTimeout/Date approaches to time tracking, within
the Gecko family of browsers scope, is (of course!) welcome to
join/participate.

Regards,

 Helder Magalhães

[1]
http://groups.google.com/group/mozilla.dev.tech.svg/browse_thread/thread/b5b7edfd7a3410b2/3d1ca2c0ca014ab5




-
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/



[svg-developers] Firefox2 vs Firefox3 (code)

2008-12-16 Thread jgfa92004
Hi again,
Here is an example of code that works under FF2 but not anymore under 
FF3 (and works under IE7).
Under FF3, the colors change and the checkbox is checked but then 
everything is reverted...
Thanks for your help.
Julie

?xml version=1.0 standalone=no?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 
1.0//EN http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd;
svg stroke-dasharray=none shape-rendering=auto onload=init() 
id=main font-family= width=1000.0px text-rendering=auto fill-
opacity=1 contentScriptType=text/ecmascript color-
interpolation=auto color-rendering=auto 
preserveAspectRatio=xMidYMid meet font-size=12 viewBox=0 0 
1.0 6000.0 fill=black stroke= image-rendering=auto stroke-
miterlimit=10 zoomAndPan=disable version=1.0 stroke-
linecap=square stroke-linejoin=miter contentStyleType=text/css 
font-style=normal height=600.0px stroke-width=1 stroke-
dashoffset=0 font-weight=normal stroke-opacity=1 
xmlns:xlink=http://www.w3.org/1999/xlink; 
xmlns=http://www.w3.org/2000/svg;
  defs   
!--Symbols for checkboxes--
symbol overflow=visible preserveAspectRatio=xMidYMid meet 
id=checkBoxRect
  rect x=0 y=0 fill=white width=100 height=100 
stroke=dimgrey stroke-width=15/
/symbol
symbol fill=none id=checkBoxCross 
preserveAspectRatio=xMidYMid meet stroke=dimgrey stroke-
width=10 pointer-events=none
  line y2=100 x1=0 x2=100 y1=0/
  line y2=0 x1=0 x2=100 y1=100/
/symbol
  /defs
  script type=text/ecmascript
![CDATA[
function init()
{
main = document.getElementById(main);
carto = document.getElementById(carte);
}

function inverser()
{
alert(flag1);
for (i=0 ; i2; i++)
{
symbole = document.getElementById(symb + i);
fill = symbole.getAttribute(fill);
fill = fill.substring(4,fill.length - 1);
color = fill.split(,);
ancienR = color[0];
ancienV = color[1];
ancienB = color[2];
nouveauR = ancienV;
nouveauV = ancienR;
nouveauB = ancienB;
nouvelleCouleur = rgb( + nouveauR + , + nouveauV + , + nouveauB 
+ );
symbole.setAttributeNS(null,fill,nouvelleCouleur);
}
alert(flag2);
}

function checkBoxScript(evt,myLayer) {
var myCheckCrossObj = document.getElementById(cc_+myLayer);
var myCheckCrossVisibility = myCheckCrossObj.getAttributeNS
(null,visibility);
if (evt.type == click  evt.detail == 1) {
if (myCheckCrossVisibility == visible) {
myCheckCrossObj.setAttributeNS(null,visibility,hidden);
}
else {
myCheckCrossObj.setAttributeNS(null,visibility,visible);
}
inverser();
}
}
]]
  /script
  svg width=6000.0px height=6000.0px id=carte viewBox=0 0 
6000.0 6000.0 preserveAspectRatio=xMidYMid meet 
xmlns=http://www.w3.org/2000/svg; zoomAndPan=magnify
g id=Fond et carte   
  circle fill=rgb(255,0,0) r=209.40681554472778 
id=symb0 cx=2762.6117036609976 cy=1515.4799654078988/
  circle fill=rgb(78,255,0) r=173.20530240219819 
id=symb1 cx=3086.912654943788 cy=593.9463822427214/
/g
  /svg
  g id=parametres
g id=inversion
  a xlink:href= xlink:type=simple xlink:actuate=onRequest 
xlink:show=replace xmlns:xlink=http://www.w3.org/1999/xlink;
g transform=translate(6100 2040)
  use onclick=checkBoxScript(evt,'inversion'); 
xlink:type=simple xlink:actuate=onRequest id=cb_inversion 
xlink:show=replace xlink:href=#checkBoxRect 
xmlns:xlink=http://www.w3.org/1999/xlink/
  use xlink:type=simple visibility=hidden 
xlink:actuate=onRequest id=cc_inversion xlink:show=replace 
xlink:href=#checkBoxCross 
xmlns:xlink=http://www.w3.org/1999/xlink/
/g
  /a
  text fill=black x=6250 font-size=100 y=2120 pointer-
events=none startOffset=0inversion des couleurs/text
/g
  /g  
/svg




-
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: Converting JPG files to SVG

2008-12-16 Thread ddailey
Hi Andrew 
a_matseevsky wrote:

It is not the first time when I'm trying to explain: there is no way 
to create perfect raster to vector converter (conversion from JPG to 
SVG is in fact this op) without advanced gradient fills support. 
Linear, radial and meshes-based methods are too primitive. Visit 
http://www.smartfills  and download SVSViewer.zip. This prog 
contents some image files. These files has been created with my 
converter, what converts raster images to something like SVG files. 
Actually, theses files with SVS extension content set of records, 
what could be included into SVG too (this is why I name my vectors 
SVS- something as close to SVG as possible). Currently I'm trying to 
enhance conversion algorithm and structure of SVS files too: I see, 
that there are some things, what could be done better. But, even 
current state of advanced gradients fill shows enough clear, how 
flexible and impressive SVG graphic could be.  
P.S. If someone wants to play with my converter a little, let me know

Yes, I wondered if you had seen the things about diffusion curves introduced 
at this year's SIGGraph.
http://artis.imag.fr/Publications/2008/OBWBTS08/diffusion_curves.pdf . It was 
presented by some folks from INRIA, Grenoble U, U of Washington and  Adobe. 
They seem to be talking about much the same thing as what you have been talking 
about and have similar observations about the limitations of more primitive 
gradients. It starts with a cubic bezier and then allows color gradients on 
either side, together with a set of blur control points that control the 
transitions between the two halves. They also have come up with a way of 
computing all this in a practical way, that looks very promising. A brief demo 
can be seen at http://www.youtube.com/watch?v=lEVe7vU5WiU . 

The work certainly reminded me of what you've been working with for some years 
now, though it may in fact be a quite distinct approach.

Regards
David


[Non-text portions of this message have been removed]




-
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/



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

2008-12-16 Thread Samuel Dagan
Hi Julie,

Just by a superficial look on your code, you better change: 
fill = symbole.getAttribute(fill);
with : 
fill = symbole.getAttributeNS(null,fill);
(Look at http://jwatt.org/svg/authoring/ )

Hope that this will do the job.
Cheers, Samy

--- In svg-developers@yahoogroups.com, jgfa92004 juliegaut...@...
wrote:

 Hi again,
 Here is an example of code that works under FF2 but not anymore under 
 FF3 (and works under IE7).
 Under FF3, the colors change and the checkbox is checked but then 
 everything is reverted...
 Thanks for your help.
 Julie
 
 ?xml version=1.0 standalone=no?
 !DOCTYPE svg PUBLIC -//W3C//DTD SVG 
 1.0//EN http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd;
 svg stroke-dasharray=none shape-rendering=auto onload=init() 
 id=main font-family= width=1000.0px text-rendering=auto fill-
 opacity=1 contentScriptType=text/ecmascript color-
 interpolation=auto color-rendering=auto 
 preserveAspectRatio=xMidYMid meet font-size=12 viewBox=0 0 
 1.0 6000.0 fill=black stroke= image-rendering=auto stroke-
 miterlimit=10 zoomAndPan=disable version=1.0 stroke-
 linecap=square stroke-linejoin=miter contentStyleType=text/css 
 font-style=normal height=600.0px stroke-width=1 stroke-
 dashoffset=0 font-weight=normal stroke-opacity=1 
 xmlns:xlink=http://www.w3.org/1999/xlink; 
 xmlns=http://www.w3.org/2000/svg;
   defs   
 !--Symbols for checkboxes--
 symbol overflow=visible preserveAspectRatio=xMidYMid meet 
 id=checkBoxRect
   rect x=0 y=0 fill=white width=100 height=100 
 stroke=dimgrey stroke-width=15/
 /symbol
 symbol fill=none id=checkBoxCross 
 preserveAspectRatio=xMidYMid meet stroke=dimgrey stroke-
 width=10 pointer-events=none
   line y2=100 x1=0 x2=100 y1=0/
   line y2=0 x1=0 x2=100 y1=100/
 /symbol
   /defs
   script type=text/ecmascript
 ![CDATA[
 function init()
 {
 main = document.getElementById(main);
 carto = document.getElementById(carte);
 }
 
 function inverser()
 {
 alert(flag1);
 for (i=0 ; i2; i++)
 {
 symbole = document.getElementById(symb + i);
 fill = symbole.getAttribute(fill);
 fill = fill.substring(4,fill.length - 1);
 color = fill.split(,);
 ancienR = color[0];
 ancienV = color[1];
 ancienB = color[2];
 nouveauR = ancienV;
 nouveauV = ancienR;
 nouveauB = ancienB;
 nouvelleCouleur = rgb( + nouveauR + , + nouveauV + , + nouveauB 
 + );
 symbole.setAttributeNS(null,fill,nouvelleCouleur);
 }
 alert(flag2);
 }
 
 function checkBoxScript(evt,myLayer) {
 var myCheckCrossObj = document.getElementById(cc_+myLayer);
 var myCheckCrossVisibility = myCheckCrossObj.getAttributeNS
 (null,visibility);
 if (evt.type == click  evt.detail == 1) {
 if (myCheckCrossVisibility == visible) {
 myCheckCrossObj.setAttributeNS(null,visibility,hidden);
 }
 else {
 myCheckCrossObj.setAttributeNS(null,visibility,visible);
 }
 inverser();
 }
 }
 ]]
   /script
   svg width=6000.0px height=6000.0px id=carte viewBox=0 0 
 6000.0 6000.0 preserveAspectRatio=xMidYMid meet 
 xmlns=http://www.w3.org/2000/svg; zoomAndPan=magnify
 g id=Fond et carte   
 circle fill=rgb(255,0,0) r=209.40681554472778 
 id=symb0 cx=2762.6117036609976 cy=1515.4799654078988/
 circle fill=rgb(78,255,0) r=173.20530240219819 
 id=symb1 cx=3086.912654943788 cy=593.9463822427214/
 /g
   /svg
   g id=parametres
 g id=inversion
   a xlink:href= xlink:type=simple xlink:actuate=onRequest 
 xlink:show=replace xmlns:xlink=http://www.w3.org/1999/xlink;
 g transform=translate(6100 2040)
   use onclick=checkBoxScript(evt,'inversion'); 
 xlink:type=simple xlink:actuate=onRequest id=cb_inversion 
 xlink:show=replace xlink:href=#checkBoxRect 
 xmlns:xlink=http://www.w3.org/1999/xlink/
   use xlink:type=simple visibility=hidden 
 xlink:actuate=onRequest id=cc_inversion xlink:show=replace 
 xlink:href=#checkBoxCross 
 xmlns:xlink=http://www.w3.org/1999/xlink/
 /g
   /a
   text fill=black x=6250 font-size=100 y=2120 pointer-
 events=none startOffset=0inversion des couleurs/text
 /g
   /g  
 /svg






-
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: Firefox2 vs Firefox3 (code)

2008-12-16 Thread Doug Schepers
Hi, Samy-

Samuel Dagan wrote (on 12/16/08 3:27 PM):
 
 Just by a superficial look on your code, you better change: 
 fill = symbole.getAttribute(fill);
 with : 
 fill = symbole.getAttributeNS(null,fill);
 (Look at http://jwatt.org/svg/authoring/ )
 
 Hope that this will do the job.

Having been guilty of propagating this myth myself, I have to state that
this is not at all important, and is not the cause of any error.  If you
aren't using namespaces (like XLink), you don't need to use
getAttributeNS... getAttribute works just as well with the null
namespace, so the code is correct as it stands.

Julie, I would recommend that you strip down the code to a minimal test
case that demonstrates exactly what the error is.  You can you the
Firefox error console, or a debugging extension, to figure out where
that is.

Regards-
-Doug



-
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/



[svg-developers] Re: Firefox2 vs Firefox3

2008-12-16 Thread Richard Pearman
I've noticed that comics which worked reasonably well with FF2, now 
have serious problems with FF3.  These same comics work well with 
ASV3, Opera, Safari and Google Chrome.  My suspicion is that FF3's 
half baked filter support is the problem but I'm not entirly sure.

Richard Pearman   http://www.pixelpalaces.com/
The next stage in the evolution of web comics: 
http://www.onlinecomics.net/pages/details/listing.php?comicID=4415
Read my Helium articles: http://www.helium.com/users/212199
South Alberta Cactus and succulent society: 
http://www.facebook.com/group.php?gid=20360241008

--- In svg-developers@yahoogroups.com, jgfa92004 juliegaut...@... 
wrote:

 Hi all,
 I have svg files with javascript scripting. These files used to 
work 
 (the script part) under Firefox2 but does not work anymore under 
 Firefox3. Does anyone have a clue or could tell me how or where to 
 search what's going on.
 Thanks in advance.
 Julie






-
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/



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

2008-12-16 Thread Kenneth Nellis
In my experiment, I removed ASV and then relaunched Safari to see  
what worked. SMIL didn't. I reinstalled ASV and SMIL worked again.  
So, I conclude that Safari doesn't do SMIL. Or is something else  
going on

—Ken Nellis

On Dec 16, 2008, at 1:09 PM, svg-developers@yahoogroups.com wrote:

 hm - why do you want to use ASV with Safari? Safari (Webkit) can do
 SVG natively.

 Andreas

 --- In svg-developers@yahoogroups.com, Kenneth Nellis
 nelli...@... wrote:
 
  Since I've updated to Safari 3.2.1 (Macintosh), I can no longer  
 see SVG source through the
  context-sensitive menu option View Source. I'm using the ASV  
 3.0 plugin. The menu option
  is there, but is no longer functional. Wondering if anyone else  
 has this problem.
 
  As a workaround, I can select Copy SVG, and then paste the  
 results into a text editor.
 
  —Ken Nellis



[Non-text portions of this message have been removed]




-
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

2008-12-16 Thread ddailey
Kenneth Nellis wrote:

In my experiment, I removed ASV and then relaunched Safari to see
what worked. SMIL didn't. I reinstalled ASV and SMIL worked again.
So, I conclude that Safari doesn't do SMIL. Or is something else
going on

That is true. Safari does not yet support SMIL. It seems to be on its way 
fairly soon though.

Both Google Chrome and Safari are based, at least in part, on WebKit. 
WebKit's nightly builds, we are told, now support SMIL, though I'm not sure 
how fully.

David




-
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: Firefox2 vs Firefox3 (code)

2008-12-16 Thread julie gautier
Hi all,
Thanks for your responses.
I tried to find out what's going on and it seems that the problem comes from 
the call of the javascript function inverser from the use element (use 
onclick=inverser(); .../ doesn't work neither). If I call the function by 
clicking on the circles (circle ... onclick=inverser();/) it works !
Does someone have an idea ?
Thanks again for your help.
Julie




De : Doug Schepers d...@schepers.cc
À : svg-developers@yahoogroups.com
Envoyé le : Mardi, 16 Décembre 2008, 21h36mn 28s
Objet : Re: [svg-developers] Re: Firefox2 vs Firefox3 (code)


Hi, Samy-

Samuel Dagan wrote (on 12/16/08 3:27 PM):
 
 Just by a superficial look on your code, you better change: 
 fill = symbole.getAttribut e(fill) ;
 with : 
 fill = symbole.getAttribut eNS(null, fill);
 (Look at http://jwatt. org/svg/authorin g/ )
 
 Hope that this will do the job.

Having been guilty of propagating this myth myself, I have to state that
this is not at all important, and is not the cause of any error. If you
aren't using namespaces (like XLink), you don't need to use
getAttributeNS. .. getAttribute works just as well with the null
namespace, so the code is correct as it stands.

Julie, I would recommend that you strip down the code to a minimal test
case that demonstrates exactly what the error is. You can you the
Firefox error console, or a debugging extension, to figure out where
that is.

Regards-
-Doug
 


  

[Non-text portions of this message have been removed]




-
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/