Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

svg-developers · SVG Developers

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 8779
  • Category: Data Formats
  • Founded: Aug 16, 1999
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 11359 - 11388 of 66156   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#11359 From: "elsassph" <floufi-svg@...>
Date: Fri Feb 1, 2002 8:08 am
Subject: Re: Shared svg components - Advanced tree
elsassph
Send Email Send Email
 
I'm not sure to understand your objection. Everywhere in the GUI
(sane) world, GUI objects are supposed to be placed with a convenient
size, considering obviously that if their contents is too large,
scrollbars would appear to allow the user to see everything.

ie "for large trees" ;)

- Philippe

--- In svg-developers@y..., Tobias Reif <tobiasreif@p...> wrote:
> elsassph wrote:
>
> > Right, it can be resized. I made the frame very small to force the
> > the scrollbars to appear. Actually the black dot is not part of
> > the tree (it's just here to play) : the tree is not meant to be
> > resized often... but to be used ;)
>
>
> In the very small window with the scrollbars, (/without resizing),
it
> takes more clicks to navigate the tree, and only a small portion
can be
> seen @ once. IMHO, it's more convenient to use when scrolling is
not
> required, only for large trees.
>
>
> Tobi
>
>
> --
> http://www.pinkjuice.com/

#11360 From: Tobias Reif <tobiasreif@...>
Date: Fri Feb 1, 2002 8:13 am
Subject: Re: Re: Shared svg components - Advanced tree
tobiasreif@...
Send Email Send Email
 
> I'm not sure to understand your objection. Everywhere in the GUI
> (sane) world, GUI objects are supposed to be placed with a convenient
> size, considering obviously that if their contents is too large,
> scrollbars would appear to allow the user to see everything.
>
> ie "for large trees" ;)


We agree. It's just that the example starts out being very small, about
four folders high. That means that any operation requires a lot of
scrolling, for nearly any size of tree. In the example, there's a lot of
free space; the size of the tree explorer could be bigger. It's just MHO :)

Tobi


--
http://www.pinkjuice.com/

#11361 From: "pilatfr" <pilat@...>
Date: Fri Feb 1, 2002 8:58 am
Subject: Re: Wiki: transformations
pilatfr
Send Email Send Email
 
--- In svg-developers@y..., "pilatfr" <pilat@w...> wrote:
> I was working on a tool: you enter transformations as defined in
SVG
> and get rectangle transformed and matrix getCTM() ...
> http://pilat.free.fr/english/svg/transfo_svg.htm
>
> Testing this tool, I am very perplex!!
> I see that if I use skewX(45) for rectangle n°1 to n°2, then rotate
> (30) for n°2 to n°3, on drawing I cannot see a rotation between the
> rectangles n°2 and n°3!
> I know that in SVG, objects keep their cooordinates and transform
> user space coordinates... All that is correct but unusual for maths.
> So to see a rotation, I must swap the two transform ...
> To finish, if we build a composed transform, to use with SVG, we
have
> to enter transform from last to first...

After a night ... The problem is for transform who give not user
space coordinates orthonormal.
A simple flipX() will change orientation for angle
A skewX(45) give user space not orthogonal and in this space, matrix
for rotate give a transform that we cannot tell "rotation" ...
So if we have only a transformation who keep not orthonormal, if we
put it at the end, we get some correct ( for maths ) result.
In other case, it's any thing ....

> I post an example to explain:
>
> http://pilat.free.fr/temp/transfo_svg_test.svg

Michel

#11362 From: "transportfabric" <jim.mcneill@...>
Date: Fri Feb 1, 2002 9:07 am
Subject: Re: Adobe SVG Viewer v3 and MS Windows clients
transportfabric
Send Email Send Email
 
I have installed ASV 3 on an NT client and it did not work at all.
The install routine errored because GoLive wasn't present, and SVG
pages couldn't be viewed at all.

Yesterday I put build 76 onto a Windows 2000 client with no problems,
but then the client had administrator rights. If you have a look at
the forum over on adobe.com, you'll see that this has caused problems
for some people.

Regards
Jim

--- In svg-developers@y..., "cuvaa" <alexandre.cuva@l...> wrote:
> ???
> What problem ?
> I have installed the last Adobe SVG Viewer v3 on both system NT4
and
> W2K and I dont have problem ?
> Please be more specific on what problem you have
>
> tks
> Best Regard
>
>
> --- In svg-developers@y..., "transportfabric" <jim.mcneill@h...>
> wrote:
> > Has anyone had any luck installing Adobe SVG Viewer v3 on Windows
> > 2000 or Windows NT clients? It has been a known problem for quite
> > some time now, and I'm reluctant to try their latest download in
> case
> > it causes even more damage than their last one.

#11363 From: "elsassph" <floufi-svg@...>
Date: Fri Feb 1, 2002 9:11 am
Subject: Re: Shared svg components - Advanced tree
elsassph
Send Email Send Email
 
--- In svg-developers@y..., Tobias Reif <tobiasreif@p...> wrote:
>
> We agree. It's just that the example starts out being very small,
about
> four folders high. That means that any operation requires a lot of
> scrolling, for nearly any size of tree. In the example, there's a
lot of
> free space; the size of the tree explorer could be bigger. It's
just MHO :)
>
> Tobi


Allright, and now with about 45 "not small" items?

http://consume.free.fr/svg/samples/tree.svg

Well i believe i should add pageup/pagedown effect when you don't
click on the scrollbar tracker.

- Philippe

#11364 From: "Burkhard Stollenwerk" <futurefarm@...>
Date: Fri Feb 1, 2002 9:27 am
Subject: Re: Eventhandler,Arrays, LineLength arround Element
futurefarm@...
Send Email Send Email
 
Hallo,
first I´ll say thank you to Dean Jackson who has got the idea to emplement
eventhandler.
Now it look like this:
...onload ....
  var polys = maindoc.getElementsByTagName("polygon");
  var i=0;
  while(i<polys.length)
  {
    polys.item(i).setAttribute("onmouseover", "showParzelle(evt)");
    polys.item(i).setAttribute("onmouseout", "emptyParzelle(evt)");
    polys.item(i).setAttribute("onclick", "showDeatailData(evt)");
    i++
  }

Now,I´ve tried to colored other child-polygons it func, but I have to save
array of old colors to restore.
//---------------------------- mycodesnip:-------------------

function showParzelle(evt) {
  svgObj = evt.getTarget();
  //---  Nach weiteren Elementen unterhalb des Elternknotens suchen -- Other
Child of parent
  nr=svgObj.parentNode.getChildNodes().getLength();
  var i=0
  var obj
  while (i<nr)
  {
  obj = svgObj.parentNode.getChildNodes().item(i);
  if (obj.nodeName=="polygon")
  {
   // at empty object colors restore original color
   obj.style.setProperty("fill","rgb(0,0,255)"); //set PropertyValue, set new
color

  }
  i++
  }
  //----
  svgStyle = svgObj.getStyle();
  polycolor = svgStyle.getPropertyValue("fill"); //get PropertyValue, store
orginial color
  svgStyle.setProperty("fill","rgb(255,0,0)"); //set PropertyValue, set new
color
  bemassen(svgObj);

}

function emptyParzelle(evt) {

   svgStyle.setProperty("fill",polycolor); //set PropertyValue, restore
original color
   fchild.firstChild.deleteData(0,fchild.firstChild.nodeValue.length);

}

//------------------End of Snip

2. I show Area and length of polygon.
Problem. I would shown length of polygon arround.Lines in Polygon are not
interested in this way.
In Area its no problem (sums of of Childpolygons)


Have got anyone a resolution?
You can find project at: www.futurefarm.de/svgackertest/

Best Regarts

Burkhard Stollenwerk

#11365 From: "Burkhard Stollenwerk" <futurefarm@...>
Date: Fri Feb 1, 2002 9:33 am
Subject: Re: Embedded SVG
futurefarm@...
Send Email Send Email
 
Hallo,

can I embed SVG in a SVG-file like include in PHP

BurkhardStollenwerk

#11366 From: Tobias Reif <tobiasreif@...>
Date: Fri Feb 1, 2002 11:08 am
Subject: Re: Re: Shared svg components - Advanced tree
tobiasreif@...
Send Email Send Email
 
> Allright, and now with about 45 "not small" items?
>
> http://consume.free.fr/svg/samples/tree.svg
>
> Well i believe i should add pageup/pagedown effect when you don't
> click on the scrollbar tracker.


you mean when clicking on the scrollbars's track?
good idea

Tobi



--
http://www.pinkjuice.com/

#11367 From: "Damir Jezic" <Jezic@...>
Date: Fri Feb 1, 2002 12:02 pm
Subject: RE: Embedded SVG
Jezic@...
Send Email Send Email
 
Hi Burkhard,

The word "embedded" in the mail subject is referenced to our project which
is implementing the SVG standard into embedded systems, a particular kind of
computer systems.

Please take a closer look at:

http://www.embedding.net/eSVG/

Please let me know if I didn't understand quite well your question.

Best regards,

Damir Jezic.

> -----Original Message-----
> From: Burkhard Stollenwerk [mailto:futurefarm@...]
> Sent: Friday, February 01, 2002 10:33
> To: svg-developers@yahoogroups.com
> Subject: Re: [svg-developers] Embedded SVG
>
>
> Hallo,
>
> can I embed SVG in a SVG-file like include in PHP
>
> BurkhardStollenwerk
>
>
>
> -----
> To unsubscribe send a message to:
> svg-developers-unsubscribe@yahoogroups.com
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click
> "edit my membership"
> ----
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>

#11368 From: "Burkhard Stollenwerk" <futurefarm@...>
Date: Fri Feb 1, 2002 12:01 pm
Subject: Re: Eventhandler,Arrays, LineLength arround Element
futurefarm@...
Send Email Send Email
 
Colors not restore completly
Whats wrong ?

function showParzelle(evt) {
  svgObj = evt.getTarget();
  //---  Nach weiteren Elementen unterhalb des Elternknotens suchen -- Other
Child of parent
  nr=svgObj.parentNode.getChildNodes().getLength();
  var i=0

  var obj
  while (i<nr)
  {
  obj = svgObj.parentNode.getChildNodes().item(i);
  if (obj.nodeName=="polygon")
  {
   // at empty object colors restore original color
   svgcolor.push(obj.style.getPropertyValue("fill")) // get Propertyvalue
store original color
   obj.style.setProperty("fill","rgb(0,0,255)"); //set PropertyValue, set new
color

  }
  i++
  }
  //----
  svgStyle = svgObj.getStyle();
  polycolor = svgStyle.getPropertyValue("fill"); //get PropertyValue, store
orginial color
  svgStyle.setProperty("fill","rgb(255,0,0)"); //set PropertyValue, set new
color
  bemassen(svgObj);

}

function emptyParzelle(evt) {

   svgStyle.setProperty("fill",polycolor); //set PropertyValue, restore
original color
   fchild.firstChild.deleteData(0,fchild.firstChild.nodeValue.length);
   // Children color restore
   nr=svgObj.parentNode.getChildNodes().getLength();
   var i=0
   var j=0
   var obj
   while (i<nr)
   {
   obj = svgObj.parentNode.getChildNodes().item(i);
   if (obj.nodeName=="polygon")
   {
    // at empty object colors restore original color
    obj.style.setProperty("fill",svgcolor[j]); //set PropertyValue, set new
color
    svgcolor.pop()
    j++

   }
   i++
   }
}
best regart

Burkhard Stollenwerk
----- Original Message -----
From: "Burkhard Stollenwerk" <futurefarm@...>
To: <svg-developers@yahoogroups.com>
Sent: Friday, February 01, 2002 10:27 AM
Subject: Re: [svg-developers] Eventhandler,Arrays, LineLength arround
Element


> Hallo,
> first I´ll say thank you to Dean Jackson who has got the idea to emplement
> eventhandler.
> Now it look like this:
> ...onload ....
>  var polys = maindoc.getElementsByTagName("polygon");
>  var i=0;
>  while(i<polys.length)
>  {
>    polys.item(i).setAttribute("onmouseover", "showParzelle(evt)");
>    polys.item(i).setAttribute("onmouseout", "emptyParzelle(evt)");
>    polys.item(i).setAttribute("onclick", "showDeatailData(evt)");
>    i++
>  }
>
> Now,I´ve tried to colored other child-polygons it func, but I have to save
> array of old colors to restore.
> //---------------------------- mycodesnip:-------------------
>
> function showParzelle(evt) {
>  svgObj = evt.getTarget();
>  //---  Nach weiteren Elementen unterhalb des Elternknotens suchen --
Other
> Child of parent
>  nr=svgObj.parentNode.getChildNodes().getLength();
>  var i=0
>  var obj
>  while (i<nr)
>  {
>  obj = svgObj.parentNode.getChildNodes().item(i);
>  if (obj.nodeName=="polygon")
>  {
>   // at empty object colors restore original color
>   obj.style.setProperty("fill","rgb(0,0,255)"); //set PropertyValue, set
new
> color
>
>  }
>  i++
>  }
>  //----
>  svgStyle = svgObj.getStyle();
>  polycolor = svgStyle.getPropertyValue("fill"); //get PropertyValue, store
> orginial color
>  svgStyle.setProperty("fill","rgb(255,0,0)"); //set PropertyValue, set new
> color
>  bemassen(svgObj);
>
> }
>
> function emptyParzelle(evt) {
>
>   svgStyle.setProperty("fill",polycolor); //set PropertyValue, restore
> original color
>   fchild.firstChild.deleteData(0,fchild.firstChild.nodeValue.length);
>
> }
>
> //------------------End of Snip
>
> 2. I show Area and length of polygon.
> Problem. I would shown length of polygon arround.Lines in Polygon are not
> interested in this way.
> In Area its no problem (sums of of Childpolygons)
>
>
> Have got anyone a resolution?
> You can find project at: www.futurefarm.de/svgackertest/
>
> Best Regarts
>
> Burkhard Stollenwerk
>
>
>
>
>
>
>
> -----
> To unsubscribe send a message to:
svg-developers-unsubscribe@yahoogroups.com
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
> ----
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>

#11369 From: "dennis_joel_david" <dennis.myren@...>
Date: Fri Feb 1, 2002 5:19 pm
Subject: right aligned text group?
dennis_joel_...
Send Email Send Email
 
I have a bunch of text elements which i are placed in rows.
i need these text elements(containing numbers) to be right aligned
on the same x position.
I mean, like, if u could program the text element to
recieve the x-position that i set as the x-position
where the text string shall end, rather than where it shall start,
if u know what i mean.
(i dont know the length of these strings).
thank u.

#11370 From: "pilatfr" <pilat@...>
Date: Fri Feb 1, 2002 5:46 pm
Subject: Re: right aligned text group?
pilatfr
Send Email Send Email
 
--- In svg-developers@y..., "dennis_joel_david" <dennis.myren@g...>
wrote:
> I have a bunch of text elements which i are placed in rows.
> i need these text elements(containing numbers) to be right aligned
> on the same x position.
> I mean, like, if u could program the text element to
> recieve the x-position that i set as the x-position
> where the text string shall end, rather than where it shall start,
> if u know what i mean.
> (i dont know the length of these strings).
> thank u.

use text-anchor="end"

Michel

#11371 From: "diblasi_r" <r_diblasi@...>
Date: Fri Feb 1, 2002 6:09 pm
Subject: Congradulations!!!! SVG Developers Group over 2000 members
diblasi_r
Send Email Send Email
 
Hello SVG Developers,

    I would like to point out the SVG Developers Group has gone over
2000 members and still growing!!!!

    On Founded: Aug 16, 1999, by Andrew Wooldridge:
http://groups.yahoo.com/group/svg-developers/message/1

First of all....I would like to say to all that have shared their
knowledge with me ...thank you so much.....I could not of done it
with out you.....you know who you are :-)

    This group has grown in size and in messages ...which is
great!!.....If you look at the home page for SVG Developers you can
see the steady growth in messages......this is outstanding and really
shows that the group is not just getting bigger a not sharing
information .....but is in fact growing in size and asking and
sharing information!

    I would like to state this openly....the skill level in the group
has grown tremendously in the last few months.....and I think that is
in great part because of the sharing that goes on in this group :-)
I would also like to point out the great resource SVG WiKi has become
in just a short time...again the SVG community working together :-)

   I know SVG in a great vector format and it will succeed...I have no
doubt that those who use it .....understand its many benefits :-)...

  It is out of the kindness of sharing ideas and for some.....
deadlines on projects... that makes other share.....but what ever the
reason.....The knowledge that is shared in this group will help
others understand SVG! With that is mind I live you all my favorite
closing:

            "We all learn by sharing what we know"

P.S.
Again.....Thanks to all of you that have shared knowledge with
me....I have learned so much....and thank you for putting up with my
long messages ;-)

We all learn by sharing what we know
Robert A. DiBlasi
http://www.svgnotebook.com

#11372 From: "uneeklyme76" <uneeklyme76@...>
Date: Fri Feb 1, 2002 6:27 pm
Subject: Re: Congradulations!!!! SVG Developers Group over 2000 members
uneeklyme76
Send Email Send Email
 
Hi Robert,

I am very new to svg but I just wanted to say that I it think it is a
great tool and although i have just recently joined this group i have
learned quite a lot already just by reading through some older posts.
It's great how people respond quickly to messages!! We definitely
do "all learn by sharing what we know".

Regards,
Cara

--- In svg-developers@y..., "diblasi_r" <r_diblasi@h...> wrote:
> Hello SVG Developers,
>
>    I would like to point out the SVG Developers Group has gone over
> 2000 members and still growing!!!!
>
>    On Founded: Aug 16, 1999, by Andrew Wooldridge:
> http://groups.yahoo.com/group/svg-developers/message/1
>
> First of all....I would like to say to all that have shared their
> knowledge with me ...thank you so much.....I could not of done it
> with out you.....you know who you are :-)
>
>    This group has grown in size and in messages ...which is
> great!!.....If you look at the home page for SVG Developers you can
> see the steady growth in messages......this is outstanding and
really
> shows that the group is not just getting bigger a not sharing
> information .....but is in fact growing in size and asking and
> sharing information!
>
>    I would like to state this openly....the skill level in the
group
> has grown tremendously in the last few months.....and I think that
is
> in great part because of the sharing that goes on in this group :-)
> I would also like to point out the great resource SVG WiKi has
become
> in just a short time...again the SVG community working together :-)
>
>   I know SVG in a great vector format and it will succeed...I have
no
> doubt that those who use it .....understand its many benefits :-)...
>
>  It is out of the kindness of sharing ideas and for some.....
> deadlines on projects... that makes other share.....but what ever
the
> reason.....The knowledge that is shared in this group will help
> others understand SVG! With that is mind I live you all my favorite
> closing:
>
>            "We all learn by sharing what we know"
>
> P.S.
> Again.....Thanks to all of you that have shared knowledge with
> me....I have learned so much....and thank you for putting up with
my
> long messages ;-)
>
> We all learn by sharing what we know
> Robert A. DiBlasi
> http://www.svgnotebook.com

#11373 From: "diblasi_r" <r_diblasi@...>
Date: Fri Feb 1, 2002 6:34 pm
Subject: Re: Shared svg components - Advanced tree
diblasi_r
Send Email Send Email
 
Elsassph,

This is really becoming a interesting project!

I think it would be nice to document your work  ...so others
can understand how you did it.......yes I know that people can
look at the code ......but I am talking about an short article like
Antonio's:
http://www.xml.com/pub/a/2002/01/23/svg/index.html

I think it would be a great article....explain the javascript and the
SVG DOM and the element and attributes.....it would be nice.....step
by step....to give developer and idea how to go from start and
finish :-)

I think pageup / pagedown effect would be nice....

We all learn by sharing what we know
Robert A. DiBlasi
http://www.svgnotebook.com

--- In svg-developers@y..., "elsassph" <floufi-svg@a...> wrote:
> --- In svg-developers@y..., Tobias Reif <tobiasreif@p...> wrote:
> >
> > We agree. It's just that the example starts out being very small,
> about
> > four folders high. That means that any operation requires a lot
of
> > scrolling, for nearly any size of tree. In the example, there's a
> lot of
> > free space; the size of the tree explorer could be bigger. It's
> just MHO :)
> >
> > Tobi
>
>
> Allright, and now with about 45 "not small" items?
>
> http://consume.free.fr/svg/samples/tree.svg
>
> Well i believe i should add pageup/pagedown effect when you don't
> click on the scrollbar tracker.
>
> - Philippe

#11374 From: Chris Lilley <chris@...>
Date: Fri Feb 1, 2002 6:58 pm
Subject: Re: IE 6.0 and SVG DTD
nantonos2001
Send Email Send Email
 
On Friday, February 01, 2002, 3:15:27 AM, ibrahimhusseini2001 wrote:

i> I tried to view SVG docs with IE6.0 and get this:

i> Use of default namespace declaration attribute in DTD not supported.
i> Error processing resource

Declaring the namespace in the DTD is valid, but not supported by
applications that do not fetch the external DTD subset. Which is why
the SVG 1.0 Rec says to put the namespace declaration in the instance.

i> I tried to view the SVG dtd with IE6.0 and get this:

i> Cannot have a DTD declaration outside of a DTD. Error processing
i> resource 'file:///C:/download/svg/tmp0000.dtd'. Line 24, Position 12

i> <!ENTITY % BaselineShiftValue "CDATA">
i> -----------^

IE sniffs and decides (wrongly) that the DTD is an XML instance. The
error message is incorrect.


--
  Chris                            mailto:chris@...

#11375 From: "elsassph" <floufi-svg@...>
Date: Fri Feb 1, 2002 7:05 pm
Subject: Re: Shared svg components - Advanced tree
elsassph
Send Email Send Email
 
--- In svg-developers@y..., "diblasi_r" <r_diblasi@h...> wrote:
> Elsassph,
>
> This is really becoming a interesting project!
>
> I think it would be nice to document your work  ...so others
> can understand how you did it.......yes I know that people can
> look at the code ......but I am talking about an short article like
> Antonio's:
> http://www.xml.com/pub/a/2002/01/23/svg/index.html
>
> I think it would be a great article....explain the javascript and
the
> SVG DOM and the element and attributes.....it would be
nice.....step
> by step....to give developer and idea how to go from start and
> finish :-)
>
> I think pageup / pagedown effect would be nice....
>
> We all learn by sharing what we know
> Robert A. DiBlasi
> http://www.svgnotebook.com

Thanks.

No doubt i would love to write something, but, it's already not
small : tree + tiny xml parser + scrollBox.
The scrollBox isn't very complicated, but the tree code is another
problem. Which point would be interesting?

By the way, pageup/pagedown now works ;)

- Philippe

#11376 From: "Burkhard Stollenwerk" <futurefarm@...>
Date: Fri Feb 1, 2002 7:20 pm
Subject: Re: Eventhandler,Arrays, LineLength arround Element
futurefarm@...
Send Email Send Email
 
My solution of problem:

svgStyle.setProperty("fill",polycolor); //set PropertyValue, restore
original color
   fchild.firstChild.deleteData(0,fchild.firstChild.nodeValue.length);//Text
löschen
   // Children color restore
   nr=svgObj.parentNode.getChildNodes().getLength();
   var i=0
   var j=0
   var obj
   while (i<nr)
   {
   obj = svgObj.parentNode.getChildNodes().item(i);
   if (obj.nodeName=="polygon")
   {
    // at empty object colors restore original color
    obj.style.setProperty("fill",svgcolor[j]); //set PropertyValue, set new
color

    j++

   }
   i++
   }
   for(i=0;i<=nr;i++){svgcolor.pop()}  // Its dirty


----- Original Message -----
From: "Burkhard Stollenwerk" <futurefarm@...>
To: <svg-developers@yahoogroups.com>
Sent: Friday, February 01, 2002 1:01 PM
Subject: Re: [svg-developers] Eventhandler,Arrays, LineLength arround
Element


> Colors not restore completly
> Whats wrong ?
>
> function showParzelle(evt) {
>  svgObj = evt.getTarget();
>  //---  Nach weiteren Elementen unterhalb des Elternknotens suchen --
Other
> Child of parent
>  nr=svgObj.parentNode.getChildNodes().getLength();
>  var i=0
>
>  var obj
>  while (i<nr)
>  {
>  obj = svgObj.parentNode.getChildNodes().item(i);
>  if (obj.nodeName=="polygon")
>  {
>   // at empty object colors restore original color
>   svgcolor.push(obj.style.getPropertyValue("fill")) // get Propertyvalue
> store original color
>   obj.style.setProperty("fill","rgb(0,0,255)"); //set PropertyValue, set
new
> color
>
>  }
>  i++
>  }
>  //----
>  svgStyle = svgObj.getStyle();
>  polycolor = svgStyle.getPropertyValue("fill"); //get PropertyValue, store
> orginial color
>  svgStyle.setProperty("fill","rgb(255,0,0)"); //set PropertyValue, set new
> color
>  bemassen(svgObj);
>
> }
>
> function emptyParzelle(evt) {
>
>   svgStyle.setProperty("fill",polycolor); //set PropertyValue, restore
> original color
>   fchild.firstChild.deleteData(0,fchild.firstChild.nodeValue.length);
>   // Children color restore
>   nr=svgObj.parentNode.getChildNodes().getLength();
>   var i=0
>   var j=0
>   var obj
>   while (i<nr)
>   {
>   obj = svgObj.parentNode.getChildNodes().item(i);
>   if (obj.nodeName=="polygon")
>   {
>    // at empty object colors restore original color
>    obj.style.setProperty("fill",svgcolor[j]); //set PropertyValue, set new
> color
>    svgcolor.pop()
>    j++
>
>   }
>   i++
>   }
> }
> best regart
>
> Burkhard Stollenwerk
> ----- Original Message -----
> From: "Burkhard Stollenwerk" <futurefarm@...>
> To: <svg-developers@yahoogroups.com>
> Sent: Friday, February 01, 2002 10:27 AM
> Subject: Re: [svg-developers] Eventhandler,Arrays, LineLength arround
> Element
>
>
> > Hallo,
> > first I´ll say thank you to Dean Jackson who has got the idea to
emplement
> > eventhandler.
> > Now it look like this:
> > ...onload ....
> >  var polys = maindoc.getElementsByTagName("polygon");
> >  var i=0;
> >  while(i<polys.length)
> >  {
> >    polys.item(i).setAttribute("onmouseover", "showParzelle(evt)");
> >    polys.item(i).setAttribute("onmouseout", "emptyParzelle(evt)");
> >    polys.item(i).setAttribute("onclick", "showDeatailData(evt)");
> >    i++
> >  }
> >
> > Now,I´ve tried to colored other child-polygons it func, but I have to
save
> > array of old colors to restore.
> > //---------------------------- mycodesnip:-------------------
> >
> > function showParzelle(evt) {
> >  svgObj = evt.getTarget();
> >  //---  Nach weiteren Elementen unterhalb des Elternknotens suchen --
> Other
> > Child of parent
> >  nr=svgObj.parentNode.getChildNodes().getLength();
> >  var i=0
> >  var obj
> >  while (i<nr)
> >  {
> >  obj = svgObj.parentNode.getChildNodes().item(i);
> >  if (obj.nodeName=="polygon")
> >  {
> >   // at empty object colors restore original color
> >   obj.style.setProperty("fill","rgb(0,0,255)"); //set PropertyValue, set
> new
> > color
> >
> >  }
> >  i++
> >  }
> >  //----
> >  svgStyle = svgObj.getStyle();
> >  polycolor = svgStyle.getPropertyValue("fill"); //get PropertyValue,
store
> > orginial color
> >  svgStyle.setProperty("fill","rgb(255,0,0)"); //set PropertyValue, set
new
> > color
> >  bemassen(svgObj);
> >
> > }
> >
> > function emptyParzelle(evt) {
> >
> >   svgStyle.setProperty("fill",polycolor); //set PropertyValue, restore
> > original color
> >   fchild.firstChild.deleteData(0,fchild.firstChild.nodeValue.length);
> >
> > }
> >
> > //------------------End of Snip
> >
> > 2. I show Area and length of polygon.
> > Problem. I would shown length of polygon arround.Lines in Polygon are
not
> > interested in this way.
> > In Area its no problem (sums of of Childpolygons)
> >
> >
> > Have got anyone a resolution?
> > You can find project at: www.futurefarm.de/svgackertest/
> >
> > Best Regarts
> >
> > Burkhard Stollenwerk
> >
> >
> >
> >
> >
> >
> >
> > -----
> > To unsubscribe send a message to:
> svg-developers-unsubscribe@yahoogroups.com
> > -or-
> > visit http://groups.yahoo.com/group/svg-developers and click "edit my
> membership"
> > ----
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
>
>
> -----
> To unsubscribe send a message to:
svg-developers-unsubscribe@yahoogroups.com
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
> ----
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>

#11377 From: "diblasi_r" <r_diblasi@...>
Date: Fri Feb 1, 2002 7:28 pm
Subject: Re: Shared svg components - Advanced tree
diblasi_r
Send Email Send Email
 
Elsassph,

    I just down load your code as you wrote this message :-)
and as I write I have the tree.js open.....there is a lot
there ....but if you take one part at a time......in the end you will
have a wonderful explaination of how to construct a File system GUI
in SVG that is platform nutrual and resolution indepent.

Well.....as you stated the tree is complex......you could start
there! (lots to learn there)....but what about starting with the less
complex parts first....

    When I made the suggestion to you.....I was thinking Step by
step.....Now that you have constructed this wonderful SVG/javascript
code....if you had to teach someone from scratch......how would you
go about doing it?.....I think that would be the best......that way
you can help others that are just getting into SVG/javascript....I
think it is cool!....And I would like to make what you did :-)...and
understand it :-)...and then maybe add to it ;-)....once I understand
what is going on it the code...just a thought.....

I would be willing to help you.....I'm not the greatest at javascript
but I learn quickly....and I love to ask questions....

We all learn by sharing what we know
Robert A. DiBlasi
http://www.svgnotebook.com

--- In svg-developers@y..., "elsassph" <floufi-svg@a...> wrote:
> --- In svg-developers@y..., "diblasi_r" <r_diblasi@h...> wrote:
> > Elsassph,
> >
> > This is really becoming a interesting project!
> >
> > I think it would be nice to document your work  ...so others
> > can understand how you did it.......yes I know that people can
> > look at the code ......but I am talking about an short article
like
> > Antonio's:
> > http://www.xml.com/pub/a/2002/01/23/svg/index.html
> >
> > I think it would be a great article....explain the javascript and
> the
> > SVG DOM and the element and attributes.....it would be
> nice.....step
> > by step....to give developer and idea how to go from start and
> > finish :-)
> >
> > I think pageup / pagedown effect would be nice....
> >
> > We all learn by sharing what we know
> > Robert A. DiBlasi
> > http://www.svgnotebook.com
>
> Thanks.
>
> No doubt i would love to write something, but, it's already not
> small : tree + tiny xml parser + scrollBox.
> The scrollBox isn't very complicated, but the tree code is another
> problem. Which point would be interesting?
>
> By the way, pageup/pagedown now works ;)
>
> - Philippe

#11378 From: "Max Dunn" <maxdunn@...>
Date: Fri Feb 1, 2002 7:51 pm
Subject: RE: Re: Shared svg components - Advanced tree
maxdunnspi
Send Email Send Email
 
> I would be willing to help you.....I'm not the greatest at
> javascript but I learn quickly....and I love to ask questions....

Hi Robert,

I think you have a good point, it's useful to start from scratch and go
through each step towards figuring out something like this tree.

It may be better if the person doing this is not the person who first
wrote the code.

I just went through one of Michel Hirtzler's examples and wrote an
explanation of each step in understanding it - as I was struggling to
understand it I started with some very fundamental concepts.  (I will
let you know when the article is up somewhere).

Michel Hirtzler may not have been as good at explaining it, as he is a
total expert and probably takes for granted some of the more elemental
concepts. It's dangerous to know too much (or be too close to a
particular piece of code) sometimes.

So perhaps you should start such an article based on this tree?


Max

#11379 From: "uneeklyme76" <uneeklyme76@...>
Date: Fri Feb 1, 2002 7:59 pm
Subject: constant text size??
uneeklyme76
Send Email Send Email
 
How do i keep the text size the same size even when i zoom in and out?
I've disabled the zoomAndPan and instead created my own functions for
zoom and pan.

I've tried setting the font-size to a percentage but that doesn't
work. I know this can be done, i'm just not sure how to do it with my
own pan and zoom functions.

Can anyone help?
Thanks,
Cara

#11380 From: "diblasi_r" <r_diblasi@...>
Date: Fri Feb 1, 2002 8:08 pm
Subject: Re: Shared svg components - Advanced tree
diblasi_r
Send Email Send Email
 
Max,

   Understood,......I have already started to work though the code and
I make a circle diagram using "Graphviz".....which Tobias and
you ...pointed out :-)

......So if Elsassph and others are willing to answer my really basic
question I will try to make something that is basic step by step and
clear and simple.....I like this project....I think I want to uses it
as my site make on http://www.svgnotebook.com

   I will start and I will let you know what I come up with....right
now I am graphing the varibles...... :-)

We all learn by sharing what we know
Robert A. DiBlasi
http://www.svgnotebook.com



--- In svg-developers@y..., "Max Dunn" <maxdunn@s...> wrote:
>
> > I would be willing to help you.....I'm not the greatest at
> > javascript but I learn quickly....and I love to ask questions....
>
> Hi Robert,
>
> I think you have a good point, it's useful to start from scratch
and go
> through each step towards figuring out something like this tree.
>
> It may be better if the person doing this is not the person who
first
> wrote the code.
>
> I just went through one of Michel Hirtzler's examples and wrote an
> explanation of each step in understanding it - as I was struggling
to
> understand it I started with some very fundamental concepts.  (I
will
> let you know when the article is up somewhere).
>
> Michel Hirtzler may not have been as good at explaining it, as he
is a
> total expert and probably takes for granted some of the more
elemental
> concepts. It's dangerous to know too much (or be too close to a
> particular piece of code) sometimes.
>
> So perhaps you should start such an article based on this tree?
>
>
> Max

#11381 From: "nlittlestone" <nlittlestone@...>
Date: Fri Feb 1, 2002 10:36 pm
Subject: saving, loading, printing, rasterizing
nlittlestone
Send Email Send Email
 
I have been working on an SVG/Javascript application that lets
users interactively create SVG drawings.  This has been going very
well, but now I am at the point of needing to be able to:
   save and reload the drawing created by the user
   print it
   rasterize it in a format well understood by browsers
    (most likely JPEG, perhaps PNG)
For these tasks there seems to be a maze of constraints and
limitations to navigate.

Saving: The current SVG can be saved with the Adobe SVG Viewer
context menu (very helpful!).  (Invoking with a button of my own
devising would be nice, but this will suffice).

Reloading: When I read it back in I need to create a document that
combines another SVG document from our web site (web.svg) with the
SVG file saved on the user's computer (local.svg).  Adobe's getURL
is not usable, since it is restricted to getting URLs from the
same site as the existing document.  I can load local.svg into an
svg image element occuring in web.svg, but this does not solve my
problem because I have not yet figured out a way to get to the DOM
tree for the image SVG.  (Is there a bug in the SVG spec: reading
the description of interface GetSVGDocument, I would expect
SVGImageElement to inherit this interface, but it does not appear
to ???)

I believe I will eventually succeed in reloading the document by
loading web.svg and local.svg into two separate instances of the
SVG viewer, and using Adobe's printNode and parseXML to transfer
local.svg to the web.svg instance.  But this seems clumsy, and I
wonder if there is a more straightforward way.

Printing: Printing can be done with the browser print function,
but I haven't figured out a clean way to print a full-page size
copy of only the SVG (there's other HTML on the web page I don't
want to print).  And if I somehow manage to port the application
to the Mac (despite poor scripting support there), it sounds like
I may have lots of problems printing.

Rasterizing: Can I do it at all? Batik seems the only choice I see
much discussion of, but it is documented to require Java 1.3,
which I can't expect users to have.  I haven't run across any
program that would seem to make client-side rasterization
practical. The rasterizing could be done at the server, but the
server we use is running FreeBSD, and there does not seem to be a
production quality version of Java 1.3 for FreeBSD.  Perhaps CSIRO
would be more suitable, which is claimed to only need Java 1.2??
It also appears that that a connection to an X-server may be
needed to get Java based rasterization to work (on the FreeBSD web
server).  It's not clear that it is practical to arrange this (the
web server is operated by a commercial web hosting company).
Eventually, Imagemagick may be a solution, but for now, I can't
see depending on its support for an apparently not-yet-documented
subset of SVG.  AlterCast is not available for FreeBSD and is out
of our price range.  Does any one have a good suggestion on how to
do the rasterizing either on the server (FreeBSD) or an arbitrary
client machine (Windows and Mac)?

It would be nice to get straightforward ways to perform these
tasks worked out.

  - Nick Littlestone

#11382 From: "sorotokin" <sorotokin@...>
Date: Fri Feb 1, 2002 11:34 pm
Subject: Re: saving, loading, printing, rasterizing
sorotokin
Send Email Send Email
 
--- In svg-developers@y..., "nlittlestone" <nlittlestone@m...> wrote:
> I have been working on an SVG/Javascript application that lets
> users interactively create SVG drawings.  This has been going very
> well, but now I am at the point of needing to be able to:
>   save and reload the drawing created by the user
>   print it
>   rasterize it in a format well understood by browsers
>    (most likely JPEG, perhaps PNG)
> For these tasks there seems to be a maze of constraints and
> limitations to navigate.
>
> Saving: The current SVG can be saved with the Adobe SVG Viewer
> context menu (very helpful!).  (Invoking with a button of my own
> devising would be nice, but this will suffice).

Use <?AdobeSVGViewer save="snapshot"?> just before
<svg> element if you want to save DOM snapshot.

>
> Reloading: When I read it back in I need to create a document that
> combines another SVG document from our web site (web.svg) with the
> SVG file saved on the user's computer (local.svg).  Adobe's getURL
> is not usable, since it is restricted to getting URLs from the
> same site as the existing document.  I can load local.svg into an
> svg image element occuring in web.svg, but this does not solve my
> problem because I have not yet figured out a way to get to the DOM
> tree for the image SVG.  (Is there a bug in the SVG spec: reading
> the description of interface GetSVGDocument, I would expect
> SVGImageElement to inherit this interface, but it does not appear
> to ???)

Yes, and it Adobe SVG Viewer implementation that's exactly
what's done. But there is the same restriction (that you cannot
access SVG DOM for document that came from a different domain).

>
> I believe I will eventually succeed in reloading the document by
> loading web.svg and local.svg into two separate instances of the
> SVG viewer, and using Adobe's printNode and parseXML to transfer
> local.svg to the web.svg instance.  But this seems clumsy, and I
> wonder if there is a more straightforward way.

I am not sure how you are going to do that. You'd need to use
some browser methods, as Adobe SVG Viewer allows you to work
only within your domain (for security reasons).

>
> Printing: Printing can be done with the browser print function,
> but I haven't figured out a clean way to print a full-page size
> copy of only the SVG (there's other HTML on the web page I don't
> want to print).  And if I somehow manage to port the application
> to the Mac (despite poor scripting support there), it sounds like
> I may have lots of problems printing.
>

You can try to hide your HTML with CSS media types (defined
in your stylesheet for HTML).

> Rasterizing: Can I do it at all? Batik seems the only choice I see
> much discussion of, but it is documented to require Java 1.3,
> which I can't expect users to have.  I haven't run across any
> program that would seem to make client-side rasterization
> practical. The rasterizing could be done at the server, but the

When you do Copy SVG in Adobe SVG Viewer, it puts a copy
of the rasterized SVG on the clipboard. You can paste it
in any image editing or word processing program (sometimes
you'd have to say "Paste Special" to select image rather
then text).

Peter

> server we use is running FreeBSD, and there does not seem to be a
> production quality version of Java 1.3 for FreeBSD.  Perhaps CSIRO
> would be more suitable, which is claimed to only need Java 1.2??
> It also appears that that a connection to an X-server may be
> needed to get Java based rasterization to work (on the FreeBSD web
> server).  It's not clear that it is practical to arrange this (the
> web server is operated by a commercial web hosting company).
> Eventually, Imagemagick may be a solution, but for now, I can't
> see depending on its support for an apparently not-yet-documented
> subset of SVG.  AlterCast is not available for FreeBSD and is out
> of our price range.  Does any one have a good suggestion on how to
> do the rasterizing either on the server (FreeBSD) or an arbitrary
> client machine (Windows and Mac)?
>
> It would be nice to get straightforward ways to perform these
> tasks worked out.
>
>  - Nick Littlestone

#11383 From: Dean Jackson <dean@...>
Date: Sat Feb 2, 2002 2:47 am
Subject: what happened to "Foundation SVG"?
obscureusername
Send Email Send Email
 
I've just found out that "Foundation SVG" from
Friends of ED has been cancelled. Last I heard,
it was due out in November 2001.

Ian, Stefan, etc... what happened?

Dean

#11384 From: "mmmr7ckl" <mmmr7ckl@...>
Date: Sat Feb 2, 2002 3:33 am
Subject: Re: Newbie!
mmmr7ckl
Send Email Send Email
 
--- In svg-developers@y..., "honnen_martin" <Martin.Honnen@t...> wrote:
> --- In svg-developers@y..., "mmmr7ckl" <mmmr7ckl@y...> wrote:
> > Hi!
> > I'm a newbie here.
> > I know how to modify SVG attributes. How to modify the _contents_
> of a
> > text element using javascript?
> > <text x="100" y="100" id="mytext">
> >   blabla
> > </text>
> > function newtext(x) {
> >   t = GetElementById("mytext");
> >   t.text="yay!"
> > }
>
> If your text element has a single text child node you can use
>   document.getElementById("mytext").firstChild.nodeValue = "Kibology"

That's great -- however I don't know what construct will make a text
element have more than one child node. Can you give me an example? Ta

#11385 From: "Peter Schonefeld" <peter.schonefeld@...>
Date: Sat Feb 2, 2002 5:12 am
Subject: RE: constant text size??
peterschonefeld
Send Email Send Email
 
Hi Cara

> How do i keep the text size the same size even
> when i zoom in and out?

This link should help you out...

http://www.siliconpublishing.org/svgfaq/Zoom.asp

Also, it's not of much help right now, but in the svg1.1
working draft the working group have seen the need to
address this issue.  See 3.2 Using Viewport Coordinates
http://www.w3.org/TR/SVG11/

Regards
Peter

#11386 From: Lance Dyas <lancelot@...>
Date: Sat Feb 2, 2002 5:17 am
Subject: Re: Re: saving, loading, printing, rasterizing
garthan_drag...
Send Email Send Email
 
I just thought I would mention that many of the things you are running into
are security limits... there is a Windows specific end run around if you are
interested...go to
msdn.microimages.com
and look up HTA's aka HTML applications

HTAs allows you to access the local file system and access code across
domains
and use activeX components unrestricted and similar things. Essentially you
can take code that was designed as a web application and extend it into
a local application.

If you dont mind windows only environment its slick and  easy too.

Lance

#11387 From: "Peter Schonefeld" <peter.schonefeld@...>
Date: Sat Feb 2, 2002 5:29 am
Subject: RE: Re: Shared svg components - Advanced tree
peterschonefeld
Send Email Send Email
 
Philippe,

Complements to the Chef! :)

http://consume.free.fr/svg/samples/tree.svg

Peter

#11388 From: "biosoft_indore" <vector_graphic@...>
Date: Sat Feb 2, 2002 8:41 am
Subject: changing cursor on mouse-over on text element
biosoft_indore
Send Email Send Email
 
Hello everybody,
  I am new to svg , just begun development in it. I would like to know
how to set the cursor property for a text element.
my requirement is to show the arrowhhead cursor even when the mouse
is over a text element.
Please reply soon.
Thanks in advance.

Messages 11359 - 11388 of 66156   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help