[svg-developers] Help needed....Svg Parsing

2006-07-26 Thread pradeep sd
Hi All,
   
  Am able to parse svg and traverse through dom tree..The problem is when an 
non svg element is encountered(like Segments/Segments or Planes/Planes 
its giving exceptions.I dont know how to overcome this problem..plz any help 
me...its urgent...
   
  Sample code i used:
   
  class CreateSvgDom
{
 
 private String parser;
 private SAXSVGDocumentFactory fact;
 private SVGDocument doc; 
 
 public SVGDocument createMethod(String uri)
 {
  try
  {
   parser = XMLResourceDescriptor.getXMLParserClassName();   
   fact = new SAXSVGDocumentFactory(parser);
   fact.setValidating(false);
   doc = fact.createSVGDocument(uri);
   
  }
  
  catch(Exception e)
  {
   e.printStackTrace();
  }
  return doc;
 }
 
}
   
  Errors am getting: 
   
  org.w3c.dom.DOMException: The current document is unable to create an element 
of the requested type (namespace: http://www.w3.org/
2000/svg, name: Segments).
at org.apache.batik.dom.AbstractNode.createDOMException(Unknown Source)
at 
org.apache.batik.dom.svg.SVGDOMImplementation.createElementNS(Unknown Source)
at org.apache.batik.dom.svg.SVGOMDocument.createElementNS(Unknown 
Source)
at org.apache.batik.dom.util.SAXDocumentFactory.startElement(Unknown 
Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown Source)
at CreateSvgDom.createMethod(HandlingDomException.java:47)
at HandlingDomException.main(HandlingDomException.java:69)
Exception in thread main java.lang.NullPointerException
at HandlingDomException.main(HandlingDomException.java:71)


-
 Find out what India is talking about on Yahoo! Answers India.
SMS memory full? Store all your important SMS in your Yahoo! Mail. Register for 
SMS BAK UP now! 

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



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

* 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] set object inside screen

2006-07-26 Thread Erik Dahlström
On Sun, 23 Jul 2006 22:28:14 +0200, kunci78 [EMAIL PROTECTED] wrote:

 Hi,

 First sorry for my bad english.
 I make a map svg. Because the lot of texts (4000 texts) the rendering
 time is very slow. I want to make a level of details view for the text
 layer, but the display none/inline or visibility visible/hidden change
 is very slow for all objects in a group. I want to set just that
 objects, which is actually on the screen (inside my view zone). How can
 I select just this objects?

 Thanks,
 Kunci

http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement

getIntersectionList
   Returns the list of graphics elements whose rendered content intersects  
the
   supplied rectangle, honoring the 'pointer-events' property value on each
   candidate graphics element.

That could be what you want. However I don't think all viewers have  
implemented this method, so in practice you're probably stuck with  
grouping your texts somehow, and making them visible depending on zoom  
level.

It's also possible to implement yourself (in script) a function that  
checks the boundingboxes of the text elements against a rect of your  
choice. My guess is that Andreas Neumann already has some examples of how  
to do that, see http://www.carto.net.

And I would recommend using display:none over visibility:hidden,  
especially if you have many elements in your tree.

Hope this helps
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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] Svg dom parsing problem

2006-07-26 Thread pradeep sd
Hi All,

Am able to parse svg and traverse through dom tree..The problem is when an non
svg element is encountered(like Segments/Segments or Planes/Planes its
giving exceptions.I dont know how to overcome this problem..plz any help
me...its urgent...

Sample code i used:

class CreateSvgDom
{

private String parser;
private SAXSVGDocumentFactory fact;
private SVGDocument doc;

public SVGDocument createMethod(String uri)
{
try
{
parser = XMLResourceDescriptor.getXMLParserClassName();
fact = new SAXSVGDocumentFactory(parser);
fact.setValidating(false);
doc = fact.createSVGDocument(uri);

}

catch(Exception e)
{
e.printStackTrace();
}
return doc;
}

}

Errors am getting:

org.w3c.dom.DOMException: The current document is unable to create an element
of the requested type (namespace: http://www.w3.org/
2000/svg, name: Segments).
at org.apache.batik.dom.AbstractNode.createDOMException(Unknown Source)
at org.apache.batik.dom.svg.SVGDOMImplementation.createElementNS(Unknown
Source)
at org.apache.batik.dom.svg.SVGOMDocument.createElementNS(Unknown
Source)
at org.apache.batik.dom.util.SAXDocumentFactory.startElement(Unknown
Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.\
dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown
Source)
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
Source)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown Source)
at CreateSvgDom.createMethod(HandlingDomException.java:47)
at HandlingDomException.main(HandlingDomException.java:69)
Exception in thread main java.lang.NullPointerException
at HandlingDomException.main(HandlingDomException.java:71)


-
 Find out what India is talking about on Yahoo! Answers India.
SMS memory full? Store all your important SMS in your Yahoo! Mail. Register for 
SMS BAK UP now! 

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



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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: Help needed....Svg Parsing

2006-07-26 Thread Andreas Neumann
Hi pradeep,

It would be nice if you wouldn't send your question multiple times. Being 
annoying on this 
list does not increase but decrease chances that you'll get useful answers.

Also, your question seems to be SAX or xerces related, so why not post on these 
lists? I am 
pretty sure that your problem was already dealt with on other emaillists.

Andreas


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

 Hi All,

   Am able to parse svg and traverse through dom tree..The problem is when an 
 non svg 
element is encountered(like Segments/Segments or Planes/Planes its 
giving 
exceptions.I dont know how to overcome this problem..plz any help me...its 
urgent...

   Sample code i used:

   class CreateSvgDom
 {
  
  private String parser;
  private SAXSVGDocumentFactory fact;
  private SVGDocument doc; 
  
  public SVGDocument createMethod(String uri)
  {
   try
   {
parser = XMLResourceDescriptor.getXMLParserClassName();   
fact = new SAXSVGDocumentFactory(parser);
fact.setValidating(false);
doc = fact.createSVGDocument(uri);

   }
   
   catch(Exception e)
   {
e.printStackTrace();
   }
   return doc;
  }
  
 }

   Errors am getting: 

   org.w3c.dom.DOMException: The current document is unable to create an 
 element of 
the requested type (namespace: http://www.w3.org/
 2000/svg, name: Segments).
 at org.apache.batik.dom.AbstractNode.createDOMException(Unknown 
 Source)
 at 
 org.apache.batik.dom.svg.SVGDOMImplementation.createElementNS(Unknown 
Source)
 at org.apache.batik.dom.svg.SVGOMDocument.createElementNS(Unknown 
 Source)
 at org.apache.batik.dom.util.SAXDocumentFactory.startElement(Unknown 
 Source)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
 Source)
 at 
 org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at 
 org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
 at 
 org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
 at 
 org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
 at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument
(Unknown Source)
 at CreateSvgDom.createMethod(HandlingDomException.java:47)
 at HandlingDomException.main(HandlingDomException.java:69)
 Exception in thread main java.lang.NullPointerException
 at HandlingDomException.main(HandlingDomException.java:71)
 
   
 -
  Find out what India is talking about on Yahoo! Answers India.
 SMS memory full? Store all your important SMS in your Yahoo! Mail. Register 
 for SMS BAK 
UP now! 
 
 [Non-text portions of this message have been removed]







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

* 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 dom parsing problem

2006-07-26 Thread G. Wade Johnson
On Wed, 26 Jul 2006 10:54:18 +0100 (BST)
pradeep sd [EMAIL PROTECTED] wrote:

 Hi All,
 
 Am able to parse svg and traverse through dom tree..The problem is when an
 non svg element is encountered(like Segments/Segments or
 Planes/Planes its giving exceptions.I dont know how to overcome this
 problem..plz any help me...its urgent...

If these non-svg elements are not in a different namespace, then the parser
is right in giving exceptions. The Segments/Segments tag is not part of
SVG, so any document containing it is _not_SVG_.

If you need these elements, try putting them in a different namespace. I've
used this technique before with multiple viewers.

G. Wade
PS. One copy of the question was all you needed.
-- 
If it doesn't have to be right, I can make it arbitrarily fast.
-- Rick Hoselton


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

* 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: cross-viewer SVG development and debugging from within the browser

2006-07-26 Thread steltenpower
updated it a bit:

http://svgopen.steltenpower.com/2004/svgproxy.php?url=http%3A%2F%2Fsteltenpower.com%2Fstarter.svg

Ideas to add? (except for:actually implement all bookmarklets :-) )



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

 Just started development.
 I want your ideas too.
 Some ideas for inspiration and a tidbit of code i hope to soon expand:
 source: http://steltenpower.com/starter.svg (bad MIME for now)








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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: passing events

2006-07-26 Thread sent1729
Jeroen,

  You can use getIntersectionList(rect,null) funtion to get all the 
elements (as list of nodes) that intersects the point where you 
click the mouse and perform what ever operation you want on the 
bottom elemnent. By that way even if you have 20 elements stacked on 
top you can selectively perform operation on any element you need.

Hope this helps

Nathan.



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

 When you have 2 graphical objects on top of each other (a 
rectangle and 
 polygon f.e.), can you make the bottom one get the event when 
someone 
 clicks on the top object?
 
 Purpose is for a gis client to be able to edit a selected feature 
 (bottom one) when some other feature is still visible on top.
 
 Jeroen
 
 Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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] reusing an animateTransform in a use?

2006-07-26 Thread Holger Will
  

Hi David
unfortunatly its not possible to reuse animations with use, but you 
can use a simple script,
to clone the animate Element, and append it to the element you want to 
animate.

hth
Holger

-- 
if this information was useful, please try to help someone else !
My Private Homepage: http://www.treebuilder.de
My Companys Website: http://www.klimapartner-berlin.de



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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: cross-viewer SVG development and debugging from within the browser

2006-07-26 Thread Holger Will
Hi Stelt,
nice stuff !
i just had a quick look at it, here are a few thinks that come to mind:

 /*  known bugs 
 from http://wiki.svg.org/Cross-Platform_Authoring:
 in ASV 3
 * .getScreenCTM() does not work
 * Printing causes the SVG to be distorted. Use iframe with link 
to your SVG
 * http://wiki.svg.org/Known_Bugs :
 with workaround: clearInterval, XML Font selection
 without workaround: No animation events generated by 
dynamically added animateMotion elements, animateTranform - transform 
matrix multiplication sequence, hyperlink not instanced by the use

a workaround for the animateMotion bug is to insert just one 
animateMotion Element to your doc by hand, and then clone this element 
with js, now you can change any attributes on the animateMotion element, 
and events work.

 element, Bounding Box calculation with display:none
 probably workaround: printNode, event on object background
 in Batik 1.6 / Squiggle
 * window.innerWidth and innerHeight don't work (you can use 
=.getScreenCTM()= for most cases)

use root.width.baseVal.value and root.height.baseVal.value in Batik and 
FireFox, not tested in Opera.

 */

 /*  implementing parts of SVG that are not yet covered by 
certain viewers 
 add KevLinDev UserCoordinates stuff: 
http://www.kevlindev.com/tutorials/basics/transformations/toUserSpace/transformCursor.svg
 
, change it so viewBox is

i've build a getScreenCTM method for ASV3 , too.( 
http://www.treebuilder.de/svg/svgui/gsc.js )
here is how to use it.
everywhere you call getScreeCTM(), just do:

try{var m=element.getScreenCTM()
}catch(e){
var m=getScreenCTM(element)}
i think it still does not work for nested svg elements, but could be 
easily extended to do so.

 force units
 Use the px unit where this is assumed, for SVG 1.1 meaning on the 
attributes: stroke-width, stroke-dashoffset, font, font-size, 
baseline-shift, kerning, letter-spacing, word-spacing

im not sure what you mean here, but i prefer to use userCoordinates (the 
coordinate system established by viewBox) , because on some 
attribute-values you cant use px (i.e.: d attribute), and using 
userCoordinates just keeps all values in the same coordinate System.

i have to think about things to add, i will let you know if i come up 
with something.

cheers
Holger

-- 
if this information was useful, please try to help someone else !
My Private Homepage: http://www.treebuilder.de
My Companys Website: http://www.klimapartner-berlin.de



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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] reusing an animateTransform in a use?

2006-07-26 Thread Phi Tran
On 7/25/06, ddailey [EMAIL PROTECTED] wrote:

   I have a nice transform that I like such as:

 animateTransform attributeName=transform additive=sum
 type=translate
 dur=7s values=50 0;0 0;50 0 repeatCount=indefinite/







I wanted to reuse it as follows (I've given it an id, taken out its values

 attribute and hidden in a defs). :

 defs
 animateTransform attributeName=transform id=AT additive=sum
 type=translate dur=7s repeatCount=indefinite/
 /defs










Just a suggesttion:
Animate is classified as attribute. In many cases attribute'things and
style's are  interchangeable- I mean you can use in either places. You can
try to use CSS: style . . .  . But this would be browser/SVG player
specific. FF and IE handle those differently. As an example and As Svg
player developer I have seen a thing like 'Stroke' appear in all three
places::CSS/class, attribute and style and they all have different value.
Really I don't know which one is the author's intention.


Good luck.


Phi








Then:

 use xlink:href=#AT values=50 0;0 0;50 0 /

 This sort of thing works with normal SVG, but I can't seem to get it
 working
 with SMIL things. Is there some reason it might not be possible? If so I
 can
 quit trying.

 Thanks,
 David

  




-- 
Phi - Tran
Hugely increase your speed, saving your band-width with ZipProtocol
plus crystal clear SVG Rendering image at
HTTP://oneplusplus.com


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



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

* 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 dom parsing problem

2006-07-26 Thread Phi Tran
I believe that this is player's specific issue.
It should ignore None SVG name spaces.
In debugging SVG I have tried to change the name spaces and it went thru.
Unfortunately I have not used  'Batik. - You can try others player to see
what happen?.


Cheers

Phi

On 7/26/06, G. Wade Johnson [EMAIL PROTECTED] wrote:

   On Wed, 26 Jul 2006 10:54:18 +0100 (BST)
 pradeep sd [EMAIL PROTECTED] prad4svg%40yahoo.co.in wrote:

  Hi All,
 
  Am able to parse svg and traverse through dom tree..The problem is when
 an
  non svg element is encountered(like Segments/Segments or
  Planes/Planes its giving exceptions.I dont know how to overcome this
  problem..plz any help me...its urgent...

 If these non-svg elements are not in a different namespace, then the
 parser
 is right in giving exceptions. The Segments/Segments tag is not part
 of
 SVG, so any document containing it is _not_SVG_.

 If you need these elements, try putting them in a different namespace.
 I've
 used this technique before with multiple viewers.

 G. Wade
 PS. One copy of the question was all you needed.
 --
 If it doesn't have to be right, I can make it arbitrarily fast.
 -- Rick Hoselton

  




-- 
Phi - Tran
Hugely increase your speed, saving your band-width with ZipProtocol
plus crystal clear SVG Rendering image at
HTTP://oneplusplus.com


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



 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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] reusing an animateTransform in a use?

2006-07-26 Thread Erik Dahlström
On Tue, 25 Jul 2006 19:58:34 +0200, ddailey [EMAIL PROTECTED]  
wrote:

 I have a nice transform that I like such as:

 animateTransform attributeName=transform additive=sum  
 type=translate
 dur=7s values=50 0;0 0;50 0 repeatCount=indefinite/

 I wanted to reuse it as follows (I've given it an id, taken out its  
 values
 attribute and hidden in a defs). :

 defs
 animateTransform attributeName=transform id=AT additive=sum
 type=translate dur=7s repeatCount=indefinite/
 /defs

 Then:

 use xlink:href=#AT  values=50 0;0 0;50 0 /

 This sort of thing works with normal SVG, but I can't seem to get it  
 working
 with SMIL things. Is there some reason it might not be possible? If so I  
 can
 quit trying.

I think it's not possible with non-presentation attributes.

Presentation attributes/properties are cascaded, but unless stated  
otherwise (as for gradients xlink:href inheritance for example) attributes  
(like 'values') are not inherited.

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/

* 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] evt object - differences between IE and Firefox

2006-07-26 Thread DL
Can someone please explain why the basic test.svg below works as expected in 
IE6 
(ASV plugin) .. but not in Firefox 1.5.

On clicking the red box the box fill should change to null (black) and, on 
clicking a 
second time, the alert message pops up  .. This element doesn't have a fill 
attribute.

In Firefox 1.5 the onclick works but the box fill stays at red (even though a 
null fill 
attribute is detected on second click).

Thanks

DL

_

?xml version=1.0 encoding=UTF-8 standalone=no?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN 
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;

svg xmlns=http://www.w3.org/2000/svg; version=1.1 width=100 height=100

script type=text/ecmascript
  ![CDATA[
function removeFill(evt) {
  var element = evt.target;
  if (element.hasAttributeNS(null,fill)) {
element.removeAttributeNS(null,fill);
  }
  else {
alert(This element doesn't have a fill attribute.);
  }
}   
  ]]
/script

rect x=20 y=20 width=60 height=60 fill=red onclick=removeFill(evt) 
/

/svg


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



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

* 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] evt object - differences between IE and Firefox

2006-07-26 Thread Holger Will
Hi DL

  Can someone please explain why the basic test
  .svg below works as expected in IE6
  (ASV plugin) .. but not in Firefox 1.5.

this is a bug in Firefox, there are many places where removing an 
attribute does not work as intended.
the only woraround is to set a default value yourself, so in case of 
fill, just do fill=black before removing the attribute.
there are atributes where this is more difficult, like viewBox.

cheers
Holger

-- 
if this information was useful, please try to help someone else !
My Private Homepage: http://www.treebuilder.de
My Companys Website: http://www.klimapartner-berlin.de



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/1U_rlB/TM
~- 

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

* 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] reusing an animateTransform in a use?

2006-07-26 Thread Holger Will
  


 I have seen a thing like 'Stroke' appear in all three
 places::CSS/class, attribute and style and they all have different value.
 Really I don't know which one is the author's intention.

there might be a reason for that. for example, lets say you have an 
xml-file you want to turn into svg.
so lets say  there is a rectangle element in that file.
so it looks like this:

recangle/

 and we turn this recangle into a green rect/ with fixed dimensions 
using the language of your choice may it be js,asp,php,xslt or whatever.
so the output looks like this:

rect x=0 y=0 width=100 height=100 fill=green/

this is our default rect. now assume that the rectangle/ is styleable. 
so a  user can write something like this

rectangle style=fill:red/

so in our implementation of the rectangle/ element we just copy the 
style attribute to the resulting rect; so the resulting element looks 
like this:

rect x=0 y=0 width=100 height=100 fill=green style=fill:red/

so this is the users default rect. now lets say the user alows other 
users to use a custom stylesheet on that resulting page.
and the user-stylesheet may look like this:

rect {fill:blue !important}

so you have a blue rect. if you disable the stylesheet, the rect will be 
filled red, and if you disable all css, the rect is green.

so the essence is that there might be different authors of one file with 
different intentions.

hth
Holger

-- 
if this information was usefull, please try to help someone else !
My Private Homepage: http://www.treebuilder.de
My Companys Website: http://www.klimapartner-berlin.de



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

* 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: cross-viewer SVG development and debugging from within the browser

2006-07-26 Thread Holger Will
and to get the link working in firefox just put the a around the 
text element.

cheers
Holger

-- 
if this information was usefull, please try to help someone else !
My Private Homepage: http://www.treebuilder.de
My Companys Website: http://www.klimapartner-berlin.de



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

* 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] problem regarding transform

2006-07-26 Thread achio_84
Hi all...
I would like to ask whether it is possible to combine transform (scale) 
and transform (translate) in 1 javascript statement? 
For example:

shape1.setAttributeNS(null,transform,scale(+scaleLevel+));
shape1.setAttributeNS(null,transform,translate
(+positionx+,+positiony+));

Is there a way to combine both statement stated above to become 1 
statement? Coz after I scale the shape, and translate it, the scale 
change to it default value again... I don't know why

Regards,
achio.





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

* 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] problem regarding transform

2006-07-26 Thread Phi Tran
On 7/26/06, achio_84 [EMAIL PROTECTED] wrote:

   Hi all...
 I would like to ask whether it is possible to combine transform (scale)
 and transform (translate) in 1 javascript statement?
 For example:

 shape1.setAttributeNS(null,transform,scale(+scaleLevel+));
 shape1.setAttributeNS(null,transform,translate
 (+positionx+,+positiony+));




Is there a way to combine both statement stated above to become 1
 statement? Coz after I scale the shape, and translate it, the scale
 change to it default value again... I don't know why

 Regards,
 achio.

  




-- 
Phi - Tran
Hugely increase your speed, saving your band-width with ZipProtocol
plus crystal clear SVG Rendering image at
HTTP://oneplusplus.com


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



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

* 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] problem regarding transform

2006-07-26 Thread Doug Schepers
Hi, achio-

achio_84 wrote:
| 
| Hi all...
| I would like to ask whether it is possible to combine 
| transform (scale) 
| and transform (translate) in 1 javascript statement? 
| For example:
| 
| shape1.setAttributeNS(null,transform,scale(+scaleLevel+));
| shape1.setAttributeNS(null,transform,translate
| (+positionx+,+positiony+));
| 
| Is there a way to combine both statement stated above to become 1 
| statement? Coz after I scale the shape, and translate it, the scale 
| change to it default value again... I don't know why

An attribute value is a string, not a function. Thus, in order to have both
transformations active, you must concatenate them.  

shape1.setAttributeNS(null, transform,scale(+scaleLevel+)
translate(+positionx+,+positiony+));

or, to make it a little more managable 

var transformStr = scale(+scaleLevel+)
translate(+positionx+,+positiony+);
shape1.setAttributeNS(null, transform, transformStr);

These will both end up as e.g.:
circle cx=5 cy=55 r=20 transform=scale(2) translate(100,30) /


Note that you will get different results depending on the order of these
transform commands.  If translate is after scale, you will multiply the
parameters of translate by the parameters of the scale (e.g. in the above
example, it would be the equivalent of doubling the translate parameters, or
the same as saying transform=translate(200,60) scale(2)).

Regards-
Doug



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

* 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] problem regarding transform

2006-07-26 Thread Haritos, James

Hi achio,
I believe that you can use transform (matrix). The matrix command allows you
to combine all transform commands on a single line. Read about it here:
http://www.w3.org/TR/SVG/coords.html#TransformAttribute
http://www.w3.org/TR/SVG/coords.html#TransformAttribute  
:-) 

-Original Message-
From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Doug Schepers
Sent: Thursday, 27 July 2006 12:32 PM
To: svg-developers@yahoogroups.com
Subject: RE: [svg-developers] problem regarding transform



Hi, achio-

achio_84 wrote:
| 
| Hi all...
| I would like to ask whether it is possible to combine 
| transform (scale) 
| and transform (translate) in 1 javascript statement? 
| For example:
| 
| shape1.setAttributeNS(null,transform,scale(+scaleLevel+));
| shape1.setAttributeNS(null,transform,translate
| (+positionx+,+positiony+));
| 
| Is there a way to combine both statement stated above to become 1 
| statement? Coz after I scale the shape, and translate it, the scale 
| change to it default value again... I don't know why

An attribute value is a string, not a function. Thus, in order to have both
transformations active, you must concatenate them. 

shape1.setAttributeNS(null, transform,scale(+scaleLevel+)
translate(+positionx+,+positiony+));

or, to make it a little more managable 

var transformStr = scale(+scaleLevel+)
translate(+positionx+,+positiony+);
shape1.setAttributeNS(null, transform, transformStr);

These will both end up as e.g.:
circle cx=5 cy=55 r=20 transform=scale(2) translate(100,30) /

Note that you will get different results depending on the order of these
transform commands. If translate is after scale, you will multiply the
parameters of translate by the parameters of the scale (e.g. in the above
example, it would be the equivalent of doubling the translate parameters, or
the same as saying transform=translate(200,60) scale(2)).

Regards-
Doug



 



Australia Post is committed to providing our customers with excellent service. 
If we can assist you in any way please telephone 13 13 18 or visit our website.

The information contained in this e-mail communication may be proprietary, 
confidential or legally professionally privileged.  It is intended exclusively 
for the individual or entity to which it is addressed. You should only read, 
disclose, re-transmit, copy, distribute, act in reliance on or commercialise 
the information if you are authorised to do so. Australia Post does not 
represent, warrant or guarantee the integrity of this e-mail communication has 
been maintained nor that the communication is free of errors, virus or 
interference. 

If you are not the addressee or intended recipient please notify us by replying 
direct to the sender and then destroy any electronic or paper copy of this 
message. Any views expressed in this e-mail communication are taken to be those 
of the individual sender, except where the sender specifically attributes those 
views to Australia Post and is authorised to do so.

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



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

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