[svg-developers] Re: Placing SVG elements, other than text, along a path

2006-01-26 Thread Heiko Niemann
Hi Doug,

you can define a custom font (the letter 'C' e.g. could be a circle)
and then you use textPath as usual - either use percentage values for
the startOffset attribute or use script to calculate the offset for
more complex paths.

Some samples:

http://www.zuccaralloo.de/devgroup/samples/complexPaths.svg
http://www.zuccaralloo.de/devgroup/samples/railroad.svg
http://www.zuccaralloo.de/devgroup/samples/weatherFronts.svg
http://www.zuccaralloo.de/devgroup/samples/textPathMarkers.svg

Another sample showing a different technique for special paths:

http://www.zuccaralloo.de/devgroup/samples/curlyCurves.svg

Of course: these techniques have their limits - sharp corners e.g.
- but in some cases they might be useful. Just works for ASV. I think
FF 1.5 has implemented textPath but not custom fonts yet.

Regards,

Heiko

http://www.zuccaralloo.de/devgroup


--- In svg-developers@yahoogroups.com, "run2bmi21"
<[EMAIL PROTECTED]> wrote:
>
> I'd like to create a circular path in SVG and place circles on it,
> like charms on a bracelet.
> 
> I'm very familiar with placing text along a path via the 
> element.
> 
> Just wondering if other SVG elements, like circles, can be similarly
> placed.
> 
> Haven't yet run across how to do this in SVG.  Seems like this
> functionality *should* be in SVG if it isn't already.
> 
> Thanks in advance for any response.
>







-
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: Fw: hatchings patterns

2006-01-27 Thread Heiko Niemann
Hi Sylvain,

if you open following sample

http://www.zuccaralloo.de/devgroup/samples/hatchings.svg

you will see in the first row why your lines are broken in your
pattern and why setting the stroke-linecap attribute won't help:
simply because parts of the pattern are missing (the neighboring
corners). So you have to define two more lines that are parallel to
the first line to make the pattern complete.

In the second row I started to construct some basic hatchings. I don't
know whether that is what you are eventually looking for. I bet there
are books or tutorials out there telling all the tricks and logic how
to build patterns/wallpapers - some simple rules to follow, so
everything repeats and fits nicely. At least I found out some rules
already, but I am pretty sure somebody else has discovered them before
me. :)


Regards,

Heiko

http://www.zuccaralloo.de/devgroup






--- In svg-developers@yahoogroups.com, "Sylvain Caillet"
<[EMAIL PROTECTED]> wrote:
>
> Hi to all !
> 
> Does anybody has a good example of SVG files that use hatchings
patterns. I have to understand well the  specification (i am
writing a Java generator) and it's hard for me to build a nice pattern
with leaned brought closer continuous lines. The current code i use is : 
> 
> 
> 
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#aa;stroke-width:2px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
/>
> 
> and the hatchings are not continuous. I have already tried to modify
the "stroke-linecap" and "stroke-linejoin" values, but without success.
> 
> Thank you for your help
> 
> Best regards
> 
> Sylvain Caillet
> 
> [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/
 




[svg-developers] Re: Looking for that great drag node and edge example

2006-04-05 Thread Heiko Niemann
Hi,

probably not the one you are talking about but it does what you are
talking about. :)  Besides it's several month old, too.

http://www.zuccaralloo.de/devgroup/samples/boundRectangle.svg

Regards,
Heiko

http://www.zuccaralloo.de/devgroup



--- In svg-developers@yahoogroups.com, "run2bmi21"
<[EMAIL PROTECTED]> wrote:
>
> 
> A few month's back in these postings, I saw reference to an excellent 
> javascript (I think) drag and drop example of two nodes (squares I 
> think) connected by an edge.  When you drag the node, the connecting 
> edge drags with it.
> 
> Anybody remember the URL of that example?  I searched the postings for 
> 30 minutes but couldn't find it.  This time I'll bookmark it 
> immediately!
> 
> Thanks,
> 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/
 




[svg-developers] SVG Open Archives

2006-04-17 Thread Heiko Niemann
Hi,

does anybody know where the archives of SVG Open 2002-2005 have gone? 
All links http://www.svgopen.org/200x/... seem to be redirected to the 
homepage of the conference this summer.

Regards,

Heiko






-
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: changing SVG tag attributes?

2006-05-01 Thread Heiko Niemann
Hi,

http://www.w3.org/2000/svg";   
  xmlns:xlink="http://www.w3.org/1999/xlink";>
  
  


  



I changed width and height of your nested svg, so I could see 
something :) The line is pretty short, too. But otherwise 
setAttributeNS() just works fine -

Regards,

Heiko

http://www.zuccaralloo.de/devgroup





--- In svg-developers@yahoogroups.com, Darryl Watson <[EMAIL PROTECTED]> 
wrote:
>
> Hi all-
> 
> I have an SVG element within my SVG document, which contains other 
> elements, thus:
> 
> 
> 
> **
>
> **
> 
> 
> How do I change the x and y attributes of the inner SVG element?  
> setAttributeNS() doesn't seem to be working.  Do I have to create 
a new
> attributeNode for this element?
> 
> Thanks
>






-
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: Entity vs Inline Style

2004-09-15 Thread Heiko Niemann

Hi,

from ASV6/ReadMe.html [Tips and Hints]:

'Style attributes (or style attributes that use entity references) 
render more quickly than embedded stylesheets.'

Does not say how much quicker, though. Maybe somebody has tested that 
already? 

Regards-
-Heiko


--- In [EMAIL PROTECTED], "nickka53" <[EMAIL PROTECTED]> 
wrote:
> Is there a performance gain of one or the other using Entity or 
> Inline Style?



 Yahoo! Groups Sponsor ~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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: Markers

2004-09-18 Thread Heiko Niemann
Hi,

Philippe Lhoste wrote:
> OK (still experimenting...): the problem is with the opacity 
parameter.
> If I just remove it from the file above, it works.
> [...]
> But opacity is problematic with with Star but not with Arrow...
> 
> OK: it seems that the combination of stroke and opacity is making 
the 
> bug... We have to choose between having a stroke *or* an opacity 
for the 
> markers...
> 
> So to make my file above behaving the way I wanted, either remove 
the 
> opacity or the stroke* parameters.
> 

Performance issues - see:

http://www.svgopen.org/2002/papers/sorotokin__svg_secrets/

Transparency
Transparency is an expensive feature, but this is especially true for 
the group[!] transparency (which is defined by opacity property). 
Fill and stroke transparency are much cheaper. If you can, try to 
experiment with fill-opacity and stroke-opacity properties instead of 
plain opacity

Stroke vs. Fill
Stroke is computationally expensive operation. If you can, use fill, 
instead of stroke, even if it makes your shape more complex (this 
might require some experiments).

Star-marker: If you change opacity=".5" to fill-opacity=".5" and 
stroke-opacity=".5" it should work

Regards-
-Heiko




 Yahoo! Groups Sponsor ~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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: SVG rich client interface demo

2004-09-19 Thread Heiko Niemann

Hi Philippe,

You wrote:
>[...]
>Other remarks, less general:
>
> - I like to put a capital to Internet. [...] 
>
> - You should perhaps put more dots [...]
>
> - [...] I would add a new sentence [...]
>
> - [...] A quite common error from English speaking people. [...]
>
> - [...]

>I only make these remarks to help you. I see that file as a 
>resume, and a common saying is that spell errors are killer 
>here... [...]

Frankly, I don't think that remarks of this kind belong here. It is 
nice of people to report broken links, bugs, or spelling/grammar 
mistakes - but an email will do.

Regards-
-Heiko



 Yahoo! Groups Sponsor ~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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: ASV3.x, partial zoom, html interaction

2004-09-20 Thread Heiko Niemann
Hi,

are you looking for something like this:

http://www.kevlindev.com/gui/utilities/azap/index.htm


Regards-
-Heiko


--- In [EMAIL PROTECTED], "Pierre Bru" <[EMAIL PROTECTED]> 
wrote:
> --- In [EMAIL PROTECTED], "Jerome de la Goutte"
> <[EMAIL PROTECTED]> wrote:
> > Hi Pierre
> > 
> > I think this is not possible to have a partial zoom nor to have 
> > communication between 2 SVG because the upper HTML document which 
> > contains the 2 SVG will act as an intermediate between them.
> > a SVG cannot speak to the other . Sorry.
> 
> that's not exactly what I was trying to do (the IHM is overlaid on 
the
> map, not beside) but the map can be zoomed independantly :)
> 
> and it works as well in IE, in Mozilla and in Opera :)
> and it does not have the vicious effect in Mozilla to work on the 
fist
> time and not on any refresh of the window (refresh, reload, etc)
> 
> http://www.wherearewe.co.nz/karikarisvg.html
> 
> I have to study the source...
> 
> > 
> > Jérôme
> 
> pierre



 Yahoo! Groups Sponsor ~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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: external rcc in Adobe Viewer 6?

2004-09-22 Thread Heiko Niemann

http://www.w3.org/TR/sXBL/

Regards-
-Heiko


--- In [EMAIL PROTECTED], "orchidsonline" 
<[EMAIL PROTECTED]> wrote:
> 
> Thanks.
> 
> What's replacing this library concept in svg1.2?
> 
> 
> dave
> 



 Yahoo! Groups Sponsor ~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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: SVG in HTML

2004-09-24 Thread Heiko Niemann
Hi,

http://groups.yahoo.com/group/svg-developers/message/44085.htm

has a link to a sample and refers to a message that also shows a 
cross-browser solution that uses the browserEval() method.

Regards-
-Heiko




--- In [EMAIL PROTECTED], "clara consiglieri" 
<[EMAIL PROTECTED]> wrote:
> Thanks ronan,
> I'm looking for some examples of ECMAscripts but I'm not very 
lucky!!! :-(
> can you show me an ECMAscript by which I can open an html page?
>   - Original Message - 
>   From: [EMAIL PROTECTED] 
>   To: [EMAIL PROTECTED] 
>   Sent: Thursday, September 23, 2004 4:22 PM
>   Subject: Re: [svg-developers] Re: SVG in HTML
> 
> 
>   Clara,
> 
> 
>   Make sure that you are using ECMAScript commands and not 
Microsoft JS
>   commands.
> 
>   Scratching hard and trying to remember details:
>   When outside IE, the SVG plugin uses its built-in ECMASCript
>   implementation rather than the browser-based implementation
> 
>   Ronan
> 
>   http://www.vectoreal.com
>   ROIT Systems http://www.roitsystems.com
>   http://www.roasp.com
> 
>   > thanks robert, I copy the files in the Plugins directory of  
browsers
>   > netscape 7.2 and Opera and the files are visible. But there are 
some
>   > functions that works only with IE.
>   > For exemple I want open a new page .htm when I click a text and 
I use
>   > open(name+'.htm');
>   >
>   > but with Netscape or Opera it doesn't work!!!
>   >
>   > Please...help me...help me!!!
>   >
>   > clara
>   >
>   >
>   >
>   >
>   >
>   >   - Original Message -
>   >   From: asrdesigns
>   >   To: [EMAIL PROTECTED]
>   >   Sent: Thursday, September 23, 2004 11:05 AM
>   >   Subject: [svg-developers] Re: SVG in HTML
>   >
>   >
>   >   Hi Clara,
>   >
>   >   as far as I can tell, this works with all browsers
>   >
>   >>   type="image/svg-xml" standby="graph">
>   >
>   >   Here is the test page that I have copied this from:
>   >
>   >   http://www.asrdesigns.ltd.uk/simple-svg.html
>   >
>   >   Regards, Robert.
>   >
>   >
>   >   --- In [EMAIL PROTECTED], "clara consiglieri"
>   >   <[EMAIL PROTECTED]> wrote:
>   >   > hi all,
>   >   > I have a  SVG file in a HTML file (with some functions). It 
works
>   >   quite well with IE but not with Netscape or Opera. I used the 
tag
>   >and not  as you suggest.
>   >   > Can you help me?
>   >   > thanks a lot
>   >   > clara
>   >   >
>   >   >
>   >   > [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 Sponsor
>   >   ADVERTISEMENT
>   >
>   >
>   >
>   >
>   >
>   > 
--
>   >   Yahoo! Groups Links
>   >
>   > a.. To visit your group on the web, go to:
>   > http://groups.yahoo.com/group/svg-developers/
>   >
>   > b.. To unsubscribe from this group, send an email to:
>   > [EMAIL PROTECTED]
>   >
>   > c.. Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of
>   > Service.
>   >
>   >
>   >
>   > [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 unsubscribe send a message to: svg-developers-
[EMAIL PROTECTED]
>   -or-
>   visit http://groups.yahoo.com/group/svg-developers and 
click "edit my membership"
>    
> 
> 
> Yahoo! Groups Sponsor 
>   ADVERTISEMENT
>  
>
>
> 
> 
> 
--
>   Yahoo! Groups Links
> 
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/svg-developers/
>   
> b.. To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
> 
> 
> 
> [Non-text portions of this message have been removed]



 Yahoo! Groups Sponsor ~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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

[svg-developers] Re: changing attributes with JavaScript

2004-09-28 Thread Heiko Niemann
Hi,

function reset()
{
  svgRoot.setCurrentTime(0);  // with svgRoot = document.rootElement
}


you could call this function within a customized context menu or 
using a button or whatsoever in your svg

find a sample using setCurrentTime(), getCurrentTime(), 
pauseAnimations() and related methods at:

http://www.zuccaralloo.de/devgroup/content.php#klotski

Regards-
-Heiko



--- In [EMAIL PROTECTED], "Richard Pearman" 
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> As you know I'm using SVG for a super hero comic called "Dragon 
Knights".
> I'd like to give my readers the ability to replay files without 
downloading
> them again.  However I'm having trouble setting some attributes 
that are
> changed back to their orriginal states.  These are things that have 
been
> changed by SMIL animations and perhaps I have to use SMIL to change 
them
> back but it would be simpler if I could just use JavaScript.
> 
> I have a g that I'd like to restore to opacity="1", a viewBox on an 
svg
> element that needs to be retured to it's orriginal value and 
another g
> element that needs a filter removed.  Can you help me with this 
please?
> 
> Richard Pearman http://www.nucleus.com/~richardp/
> http://www.pixelpalaces.com/



 Yahoo! Groups Sponsor ~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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: parent node

2004-10-25 Thread Heiko Niemann


Hi,

var element = document.getElementById('child');
var parent = element.parentNode;

Regards-
-Heiko


--- In [EMAIL PROTECTED], "nickka53" <[EMAIL PROTECTED]> 
wrote:
> 
> Can I query for an element's parent node? I tried using the 
> svgDocument and selectSingleNode (using JavaScript) and XPath and 
it 
> didn't work for me.
> 
> svgDoc.setProperty("SelectionLanguage", "XPath");
> var parentNode = svgDoc.selectSingleNode("parent::cd
[attribute::id=" 
> + objectId + "]");





 Yahoo! Groups Sponsor ~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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: SVG in mozilla

2004-10-28 Thread Heiko Niemann


Hi,

PK> Take the  svg  files within the svg folder  and place
PK> them into the  mozilla plugins folder.

not if you installed Mozilla with native SVG support, see:

http://www.mozilla.org/projects/svg/faq.html#nnp


Reasons why your svg might not work:

- svg is not well-formed
- svg includes elements that are not supported yet, see:
  http://www.mozilla.org/projects/svg/status.html
- you did not define namespaces http://mail.yahoo.com





 Yahoo! Groups Sponsor ~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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: Setting elements hidden / visible?

2004-11-01 Thread Heiko Niemann


Hi Patricia,

basically there are two ways to do it: declarative (using the set 
and/or the animate element) or with script. The declarative way will 
just work with viewers that can handle animations (ASV3, ASV6 e.g.). 
Script should work with all viewers that I know/use (Batik, 
MozSVG,...).

There is a small sample at:

http://www.zuccaralloo.de/devgroup 
http://www.zuccaralloo.de/devgroup/samples/showHideToggle.svg

Maybe that is what you are looking for. Wasn't sure: '... the child 
nodes will expand ...' ???

Regards-
-Heiko



--- In [EMAIL PROTECTED], Patricia LaRue <[EMAIL PROTECTED]> 
wrote:
> Hi, all:
>  
> I need to make a plus (+) sign that when clicked the child nodes 
will expand and become visible.  Also make the plus (+) sign display 
as a minus (-) sign.
>  
> Is there a way to do this?  
>  
> Thank you,
> Patricia
> 
> 
> [Non-text portions of this message have been removed]





 Yahoo! Groups Sponsor ~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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: parentNode and use element

2004-11-03 Thread Heiko Niemann


Hi,

Holger Will wrote:
> why dont you go:
> 
> 
> 
>
> 
> 
> 
> so in myfunction,
> evt.target.firstChild is the useElement, and evt.target.parentNode 
is 
> the outer group.
> 

I think you have to use evt.currentTarget:
In ASV3 evt.target will still return the use element, so 
evt.target.firstChild throws an error whereas evt.target.parentNode 
should return the nested g element.

Also: AFAIK firstChild will just work if there is no whitespace 
otherwise firstChild will be a textnode. so you would have to say 
firstChild.nextSibling - so actually you have to check all this if 
you want to access elements via scripting 







function myfunction(e)
{
var target = e.target;
if(e.target.correspondingUseElement) target = 
e.target.correspondingUseElement;

alert(target.getAttributeNS(null,'id'); // returns 'useElem' 
or 'rectElem' - whereever you clicked
alert(e.currentTarget.getAttributeNS(null,'id'); // returns 'grpElem'
}


Regards-
-Heiko






 Yahoo! Groups Sponsor ~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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: setting zoom scale

2004-12-18 Thread Heiko Niemann


Hi,

when using CTRL+mouseclick the zoom event is actually fired twice 
(don't ask me why, though). So you would want to set currentScale 
after the second call (so true/false won't work). Furthermore: you 
would need to multiply by .75 to get 1.5 since CTRL+mouseclick will 
double currentScale already. The code could be like this:








 


This is probably not just ugly but also far away from a solution to 
the problem - actually a big mess you will be running into:
1) You will have to calculate the translation to center the chosen 
area. Since it was based on a factor of 2.
2) The factor for zooming out will suddenly be 2.667 (currentScale 
first divided by 2 then multiplied by .75). And there is no way to 
determine whether you zoom in or zoom out.
3) ...

A nested svg element + changing viewBox + disable built-in zoomAndPan 
and using your own tools is probably a better way to go.

Regards-
-Heiko






--- In [EMAIL PROTECTED], Richard Smith <[EMAIL PROTECTED]> 
wrote:
> You can put a flag in the function - a bit ugly but it works. I.e.
> 
> var currentScale;
> var newScale;
> var InHandler = false;
> 
> function zoomScale(){
>   if(inHandler) return;
>   inHandler = true;
>   currentScale = SVGRoot.currentScale;
>   newScale = currentScale * 1.5;
>   SVGRoot.setCurrentScale(newScale);
>   inHandler = false;
> }
> 
> Hope that helps.
> Richard





 Yahoo! Groups Sponsor ~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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: Animation stop and start

2004-12-21 Thread Heiko Niemann


Hi,

you need to add end="indefinite" to the animate elements to be able 
to stop them.

Do yo actually want to stop or pause the animations? Using endElement
() will stop a certain animation but not the global timeline 
(currentTime). Use pauseAnimations()/unpauseAnimations() on the root 
element to pause all(!) animations. It's not possible to just pause a 
single animation - using these methods. Anyhow, if you want to 
pause/unpause a single animation (animating motion) you will need to 
do that via scripting - in order to retrieve the current position and 
to update duration. That will involve 'some' calculation. :( And 
there are probably limits if - for example - repeatCount is involved -
 although I am sure there would be solutions for that, too. Annyhow 
here are some samples using pause/unpause and scripting:

http://www.zuccaralloo.de/devgroup/samples/klotski.svg
http://www.zuccaralloo.de/devgroup/samples/aniCurrentPosition1.svg
http://www.zuccaralloo.de/devgroup/samples/aniCurrentPosition2.svg
http://www.zuccaralloo.de/devgroup


Regards-
-Heiko


--- In [EMAIL PROTECTED], "Dale Ellis" <[EMAIL PROTECTED]> 
wrote:
> 
> Hi all,
> 
> im am having trouble triggering the start and stop of animations, 
> well the stop auctually start is fine. Below is my simplified code. 
> ballAni1, and ballAni2 hold my 
> SVGAnimateObjects and ball holds the imageObject thats being 
animated.
> I've put a comment in the code which describes the 2 problems im 
> facing...
> 
> 
> 
>   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
> 
> http://www.w3.org/2000/svg"; 
> xmlns:xlink="http://www.w3.org/1999/xlink";
>xmlns:a="http://www.adobe.com/svg10-extensions"; 
> a:timeline="independent"
>width="100%" height="100%" onload="init(evt)">
> 
> ..
> ..
> 
> ballAni1.beginElement();
> ballAni2.beginElement();
> 
> .
> .
> // here's where my problems are ***
> // 1, they don't stop
> // 2, I can't retrieve the current values of where x and y, its 
> returning the starting values
> endAni1.endElement();
> endAni2.endElement();
> alert(ball.getAttribute("x"));
> alert(ball.getAttribute("y"));
> 
> ..
> ..
> 
>  xlink:href="images/ball.gif">
>  calcMode="spline" keyTimes="0;2.5;5" 
> values="280;350;280" dur="1.5s" begin="indefinite;ballAni1.end"/>
>dur="5s" begin="indefinite" />
> 
> 
> 





 Yahoo! Groups Sponsor ~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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: Switching object alignment from left to right...

2004-12-21 Thread Heiko Niemann


Hi,





SVGDevelopers



SVGDevelopers




Regards-
-Heiko


--- In [EMAIL PROTECTED], "Joshua Woodward" 
<[EMAIL PROTECTED]> wrote:
> 
> Is there a way to make x="5" from being 5pt from the left to being 
> 5pt from the right. Just like text-align, but for a circle or 
another 
> basic shape?
> 
> Foe example, I have a bunch of rectangles lined up as a menu and 
they 
> all have x="1.85%", so what ever the size of the window they all 
stay 
> that far away from the left. I need to get a duplicate bunch of 
> rectangles to do the same thing only on the right side.
> 
> I have tried:
>  style="fill:#1C86EE; stroke:grey; troke-width:3;"/>   
>   
> This does not stay in the same place, when I make the window 
smaller 
> or larger, like the one on the left side, see below"
> 
>  style="fill:#104E8B; stroke:grey; stroke-width:3;"/>





 Yahoo! Groups Sponsor ~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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: ASV "Higher Quality"-modes and large Bitmaps

2004-12-22 Thread Heiko Niemann


Hi,

set:
defaultAntialias = false;

sample at ww.zuccaralloo.de/devgroup :

http://www.zuccaralloo.de/devgroup/samples/quality.svg


Regards-
-Heiko


--- In [EMAIL PROTECTED], "Vaross Oliver (CPTec GmbH)" 
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm using SVG to scroll and zoom a bitmap (png), showing transparent
> boxes over the bitmap to highlight certain areas in the bitmap.
> 
> This works fast and very good with bitmaps up to a certain size.
> For bitmaps with a "large" size, the same codes "breaks" and slows 
down
> to a crawl.
> 
> When I manually switch off "higher quality" in the viewer it works 
fast
> with any size of bitmap.
> 
> Question: Can I do anything about this? Can I programmatically 
switch
> off "higher quality"-mode for bigger bitmaps? Anything else I can 
do?
> 
> Thanks,
> 
> - Oliver





 Yahoo! Groups Sponsor ~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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: trying to animate scale(x_ratio) ('3D'-rotation around x=0,'z'=0)

2004-12-29 Thread Heiko Niemann


Hi Ruud,

if you use keyTimes and keySplines together you need to define a set 
of bezier control points for each interval.

- if you have keyTimes="0;.6;1" that's two intervals so keySplines 
would be e.g. keySplines=" .7,.1,.2,.9 ; .5,.7,.3,.3 "

- if you don't use keyTimes you can use just one bezier function 
that controls the pacing for the whole animation

modified sample:
...
values="1,-1; 0,0; 1,-1"
calcMode="spline"
keyTimes="0;.5;1"
keySplines=".7,.3,.2,1;.818,.5,.9,.9"
...

Regards-
-Heiko



--- In svg-developers@yahoogroups.com, "steltenpower" <[EMAIL PROTECTED]> 
wrote:
> 
> Cause you can write "2005" as something symmetrical i want 
to 'rotate'
> it: http://svgopen.steltenpower.com/2005.svg
> But it doesn't move at all :-(
> 
> What am i overlooking?
> 
> Just in case you don't even see the static thing, i'll try some
> ASCII-art:
> 
> ---  ---  ---  ---
>   |  | |  | |  |
> ---  | |  | |  ---
> || |  | ||
> ---  ---  ---  ---
> 
> PS: I know i should change it into SVG Fonts eventually.





 Yahoo! Groups Sponsor ~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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: How to obtain parameters from a file to implement dynamic animation

2005-01-08 Thread Heiko Niemann


Hi,

yes, basically you can do it with getURL() and eval(). At least ASV3 
lets you change values even while the animation is running.

sample:
http://www.zuccaralloo.de/devgroup/samples/changeAnimationValues.svg

download zip at: 
http://www.zuccaralloo.de/devgroup/content.php#msg-46893

In general I think you have to be very careful manipulating 
attribute values of animation elements. I don't think it was even 
meant to be this way that you can change 'attributeName' e.g.

But maybe that's not what you want to do:
If you actually just meant to load data to add more animation 
elements, then that is possible, too. Similar way. 

Maybe you can provide further information.

Regards-
Heiko 



--- In svg-developers@yahoogroups.com, "solomoonor" 
<[EMAIL PROTECTED]> wrote:
> 
> Hi, anyone have done any dynamic animation in svg that obtains the
> parameters from a file? I am stuck with it. How can svg read the
> information from a file? Can I use javascript to do it? Anyone got 
any
> ideas or have pieces of example code, please help. Thanks :)





-
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: How to obtain parameters from a file to implement dynamic animation

2005-01-08 Thread Heiko Niemann


Hi,

ok, if I understand correctly you don't actually animate values 
using the svg animation elements (animate, set, ...) You simply want 
to change values dynamically by getting data from a file and/or 
database. That is also done with getURL() and eval().

There are many samples around - a few on my sample page:
http://www.zuccaralloo.de/devgroup
e.g. dynaGraph, restaurant/eval and a new one:
http://www.zuccaralloo.de/devgroup/samples/dynamicVals.svg
which actually resulted from trying something else - thus it is not 
a good sample - at least not for how I actually would do data 
processing :-)  I think one good way to process data for a 
monitoring system is to define custom tags holding information like 
thresholds, key values, destination (element/attribute) and so on.

Regards-
Heiko  



--- In svg-developers@yahoogroups.com, "solomoonor" 
<[EMAIL PROTECTED]> wrote:
> 
> Hi Heiko Niemann,
>Thank you very much for your reply!!! Actally I am developing a 
> monitoring interface for Grid System. So, what I need is to obtain 
> the data flow value from the log file. For example, like Windows 
> Task Manager, it will show a animated curve. I do not need to 
change 
> the attributeName, The only thing I need to do is get the 
attribute 
> value that is not pre-defined. The difficulty that I am facing now 
> is I can't find the way to read the information from outside such 
as 
> a file to implement the animation. I can't find a solution to get 
> the unpredictable attribute value. I am so appreciated for you 
> help!!! Thanks and a late Happy New Year!!!
> 
> 
> --- In svg-developers@yahoogroups.com, "Heiko Niemann" <[EMAIL PROTECTED]> 
> wrote:
> > 
> > Hi,
> > 
> > yes, basically you can do it with getURL() and eval(). At least 
> ASV3 
> > lets you change values even while the animation is running.
> > 
> > sample:
> > 
> 
http://www.zuccaralloo.de/devgroup/samples/changeAnimationValues.svg
> > 
> > download zip at: 
> > http://www.zuccaralloo.de/devgroup/content.php#msg-46893
> > 
> > In general I think you have to be very careful manipulating 
> > attribute values of animation elements. I don't think it was 
even 
> > meant to be this way that you can change 'attributeName' e.g.
> > 
> > But maybe that's not what you want to do:
> > If you actually just meant to load data to add more animation 
> > elements, then that is possible, too. Similar way. 
> > 
> > Maybe you can provide further information.
> > 
> > Regards-
> > Heiko 
> > 
> > 
> > 
> > --- In svg-developers@yahoogroups.com, "solomoonor" 
> > <[EMAIL PROTECTED]> wrote:
> > > 
> > > Hi, anyone have done any dynamic animation in svg that obtains 
> the
> > > parameters from a file? I am stuck with it. How can svg read 
the
> > > information from a file? Can I use javascript to do it? Anyone 
> got 
> > any
> > > ideas or have pieces of example code, please help. Thanks :)





-
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: How to obtain parameters from a file to implement dynamic animation

2005-01-09 Thread Heiko Niemann


Hi,

I am not familiar with JSP, but I guess it does the same thing as 
ASP or PHP do: dynamically generate content (html,svg,text) server-
side and return it. So getURL() just calls the JSP and in this case 
it simply should return a string containing the data (which then is 
evaluated client-side). If you call the PHP script directly you can 
see what is returned:

http://www.zuccaralloo.de/devgroup/samples/dynamicVals.php

My webhost does not provide JSP so I tested it locally. I used 
Schroedinger from Micromata - free download at:

http://www.micromata.com/M_tec/schroedinger/index.html

I used following JSP (as I said I am a newbie at this, so all I can 
say is that it worked, but I don't really know whether this is how 
you do JSPs):

<%@ page language="java" contentType="text/plain"%>
<%@ page import="java.util.*"%>
<%
Random rndNb = new Random();
String data = "";
int maxNb = 8;

for(int i=1;i<=maxNb;i++)
{
  data += "P"+i+":"+(rndNb.nextInt(20)-10);
  if(i!=maxNb) data += ",";
}
out.print("{"+data+"}");
%>

Regards-
Heiko



--- In svg-developers@yahoogroups.com, solomon ah <[EMAIL PROTECTED]> 
wrote:
> Hi,
>Thank you so much for you help. It's very helpful. One stupid 
question, do getURL and eval work with JSP or servlet? Could you 
give anything like documentation to read about that? I can't find 
the right one. Thank you so much!!!
>  
> Regards
> 
> Heiko Niemann <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> ok, if I understand correctly you don't actually animate values 
> using the svg animation elements (animate, set, ...) You simply 
want 
> to change values dynamically by getting data from a file and/or 
> database. That is also done with getURL() and eval().
> 
> There are many samples around - a few on my sample page:
> http://www.zuccaralloo.de/devgroup
> e.g. dynaGraph, restaurant/eval and a new one:
> http://www.zuccaralloo.de/devgroup/samples/dynamicVals.svg
> which actually resulted from trying something else - thus it is 
not 
> a good sample - at least not for how I actually would do data 
> processing :-)  I think one good way to process data for a 
> monitoring system is to define custom tags holding information 
like 
> thresholds, key values, destination (element/attribute) and so on.
> 
> Regards-
> Heiko  
> 
> 
> 
> --- In svg-developers@yahoogroups.com, "solomoonor" 
> <[EMAIL PROTECTED]> wrote:
> > 
> > Hi Heiko Niemann,
> >Thank you very much for your reply!!! Actally I am developing 
a 
> > monitoring interface for Grid System. So, what I need is to 
obtain 
> > the data flow value from the log file. For example, like Windows 
> > Task Manager, it will show a animated curve. I do not need to 
> change 
> > the attributeName, The only thing I need to do is get the 
> attribute 
> > value that is not pre-defined. The difficulty that I am facing 
now 
> > is I can't find the way to read the information from outside 
such 
> as 
> > a file to implement the animation. I can't find a solution to 
get 
> > the unpredictable attribute value. I am so appreciated for you 
> > help!!! Thanks and a late Happy New Year!!!
> > 
> > 
> > --- In svg-developers@yahoogroups.com, "Heiko Niemann" <[EMAIL PROTECTED]> 
> > wrote:
> > > 
> > > Hi,
> > > 
> > > yes, basically you can do it with getURL() and eval(). At 
least 
> > ASV3 
> > > lets you change values even while the animation is running.
> > > 
> > > sample:
> > > 
> > 
> 
http://www.zuccaralloo.de/devgroup/samples/changeAnimationValues.svg
> > > 
> > > download zip at: 
> > > http://www.zuccaralloo.de/devgroup/content.php#msg-46893
> > > 
> > > In general I think you have to be very careful manipulating 
> > > attribute values of animation elements. I don't think it was 
> even 
> > > meant to be this way that you can change 'attributeName' e.g.
> > > 
> > > But maybe that's not what you want to do:
> > > If you actually just meant to load data to add more animation 
> > > elements, then that is possible, too. Similar way. 
> > > 
> > > Maybe you can provide further information.
> > > 
> > > Regards-
> > > Heiko 
> > > 
> > > 
> > > 
> > > --- In svg-developers@yahoogroups.com, "solomoonor" 
> > > <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > Hi, anyone have done any dynamic animation in svg that 
obtains 
> &g

[svg-developers] Re: authorize pointer events by types ??

2005-01-13 Thread Heiko Niemann


Jean-David,

could you give further information, what you are doing? I am a bit 
confused because you actually assign events to certain elements 
onclick, onmouseover. So do you mean if you have assigned several 
events to a group of elements and want to turn off events for 
certain elements? Right now I think of a custom attribute you could 
define ( ca:event="click" ) and then just run the functions that are 
called my the different events when there is a match.






function click(e)
{
  var elem = e.target;
  var mEve = elem.getAttributeNS('ca','event');
  if(mEve ==  'click') { ... }  
}

function over(e)
{
  var elem = e.target;
  var mEve = elem.getAttributeNS('ca','event');
  if(mEve ==  'over') { ... }  
}


Regards-
-Heiko



--- In svg-developers@yahoogroups.com, Jean-David Benamou  wrote:
> Hi ,
> 
> I know that one can shut off pointer events (mouseclick 
mousedown ...)
> using the pointer-events="none" property.
> 
> My question is :
> 
> Is it possible to allow only one type of mouse event ??
> I mean force object to respond only to mouseover and not
> to mousedown events for example ??
> 
> Thanks a lot
> JD





-
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: authorize pointer events by types ??

2005-01-13 Thread Heiko Niemann


Jean-David,

maybe using addEventListener() and removeEventListener()?

sample at www.zuccaralloo.de/devgroup:

http://www.zuccaralloo.de/devgroup/samples/eventsOff.svg

mouseover shows stroke
mouseout hides stroke
mousedown changes fill color
mouseup changes position

Is that coming closer to what you mean?

Regards-
-Heiko




--- In svg-developers@yahoogroups.com, "benamou"  wrote:
> Heiko, thanks for your reply
> 
> I am generating dynamically elements (paths) and they respond
> to many (all) mouse events.
> 
> However at some point I would like to "freeze" some mousevents
> (mousedown and mouse up) and keep some others (mouseover).
> 
> I could change on all elements or all groups of elements the
> mousevents properties but I was wondering if it was possible
> to disable for all the svg document some type of events instead
> of disabling all mouse events with pointer-events="none"
> 
> Something line "mouse-events = over only"
> 
> Thanks for the help
> JD
> 
> JD
> 
> 
> - Original Message - 
> From: "Heiko Niemann" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, January 13, 2005 9:25 PM
> Subject: [svg-developers] Re: authorize pointer events by types ??
> 
> 
> >
> >
> > Jean-David,
> >
> > could you give further information, what you are doing? I am a 
bit
> > confused because you actually assign events to certain elements
> > onclick, onmouseover. So do you mean if you have assigned several
> > events to a group of elements and want to turn off events for
> > certain elements? Right now I think of a custom attribute you 
could
> > define ( ca:event="click" ) and then just run the functions that 
are
> > called my the different events when there is a match.
> >
> > 
> > 
> > 
> > 
> >
> > function click(e)
> > {
> >  var elem = e.target;
> >  var mEve = elem.getAttributeNS('ca','event');
> >  if(mEve ==  'click') { ... }
> > }
> >
> > function over(e)
> > {
> >  var elem = e.target;
> >  var mEve = elem.getAttributeNS('ca','event');
> >  if(mEve ==  'over') { ... }
> > }
> >
> >
> > Regards-
> > -Heiko
> >
> >
> >
> > --- In svg-developers@yahoogroups.com, Jean-David Benamou  > [EMAIL PROTECTED]> wrote:
> >> Hi ,
> >>
> >> I know that one can shut off pointer events (mouseclick
> > mousedown ...)
> >> using the pointer-events="none" property.
> >>
> >> My question is :
> >>
> >> Is it possible to allow only one type of mouse event ??
> >> I mean force object to respond only to mouseover and not
> >> to mousedown events for example ??
> >>
> >> Thanks a lot
> >> JD
> >
> >
> >
> >
> >
> > -
> > 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 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: Map with moving objects

2005-01-19 Thread Heiko Niemann


Hello Hans,

there is a sample plus download at www.zuccaralloo.de/devgroup - 
direct link:

http://www.zuccaralloo.de/devgroup/samples/movingObjects.svg 

It uses random data generated by a php script, the real data could 
be sent on a similar way though. Move over objects to show tooltip. 
No zooming of the map yet :)

Regards-
-Heiko


--- In svg-developers@yahoogroups.com, " Hans M. Rupp"  wrote:
> Hallo! I am a complete newbie to SVG. I want to evaluate if I can 
use it
> in an upcoming project.
> I need to display a map on a client (ideally just a browser or a 
browser
> with a plug-in). On the map the position of moving objects
> should be displayed. Their position should be updated every second.
> Is it possible with SVG to separate the map data from the data of 
the
> moving objects?
> Ideally the map should only be transmitted once each session to the
> client.
> The map should be zoomable, without sending a request.
> The position of the moving objects should be requested 
independently
> from the map.
> 
> Is this possible?
> 
> Thanks,
> 
> Hans





-
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: Simple SVG Strip Chart Display

2005-01-23 Thread Heiko Niemann


Philippe,

Philippe Lhoste wrote:
> I beleive you (Heiko Niemann) shouldn't use
> 

[svg-developers] Re: Simple SVG Strip Chart Display

2005-01-24 Thread Heiko Niemann


Thomas,

you are of course right and I should have looked up the dtd, too. 
For some reason I had in mind that there was a default value - maybe 
because ASV loads scripts without the type set? Actually it's good 
that Batik is not so forgiving  - better: not forgiving at all - and 
does not accept sloppy coding. Well, I am positive that the script 
type issue with Mozilla will be solved - otherwise we will have a 
big mess I guess. :(

Regards-
-Heiko



> 
> Well, this is interesting, according to the SVG specification:
> 
> 
> 
>   %SVG.Core.attrib;
>  %SVG.XLink.attrib;
>  %SVG.External.attrib;
>  type %ContentType.datatype; #REQUIRED
>  >
> 
> Attribute definitions:
> 
> type = "content-type"
>  Identifies the scripting language for the given 'script' 
element. 
> The value content-type specifies a media type, per [RFC2045]. 
> Animatable: no.
> 
> 
> 
> The 'type' attribute is required on script elements and there 
is
> no default value (you might be confusing it 
with 'contentScriptType').
> That said it appears that since about April 2002 Batik has not
> required type to be set on script elements and it will default it 
to
> 'text/ecmascript' if it is not set.





-
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] viewport problem in Batik and mozSVG

2005-01-28 Thread Heiko Niemann


Hi,

I have a nested svg element thus establishing a new viewport with 
bounds defined by x,y,width,height. The overflow attribute is set to 
hidden although it would be by default.
Now, I would expect elements out of bounds to be invisible and not 
to be able to fire events. Well, unless I did something wrong or 
misunderstood something it seems that in Batik and mozSVG elements 
out of bounds are invisible but ARE able to fire events. Sample:

http://www.zuccaralloo.de/devgroup/samples/viewport.svg

Is this a known issue (bug) or just not implemented yet? Or do I 
have to compare overflow rather with visibility than display. But 
playing with different settings of pointer-events did not help 
either (if overflow was similar to visibility I expected pointer-
events="visible" might work).  

Regards-
-Heiko





-
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: viewport problem in Batik and mozSVG

2005-01-29 Thread Heiko Niemann


Hi Thomas,

I think the events should be clipped (or at least it should be an 
option among others). For me that is the whole idea having 
viewports. In the previous sample I could have done a workaround but 
here is a sample where I don't see a solution not having the events 
clipped (just think of having two maps with tooltips next to each 
other ...):

http://www.zuccaralloo.de/devgroup/samples/viewport2.svg

in:
http://lists.w3.org/Archives/Public/www-svg/2003Nov/0013.html

you say 'in fact I have written examples that make use of this lack 
of clipping in Batik'. Could you please provide one of these 
examples. I think if there is use/need for both then this part of 
the spec might need to be modified.

Regards-
-Heiko   












-
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: use and mouseover

2005-01-31 Thread Heiko Niemann


Hi Hans,

if I remember correctly ASV3 does not implement this right: you have 
to add the onmouseover attribute to the use element to make it work. 
In ASV6PR it works the way you did it. 
evt.target.correspondingUseElement will let you modify the - well, 
like it says - corresponding use element :)

The workaround for ASV3 and ASV6PR:


...   
function tooltip(evt)
var elem = evt.target;
if(evt.target.correspondingUseElement) 
  elem = evt.target.correspondingUseElement;
alert(elem);
alert(elem.getAttributeNS(null,'id'));
}
...

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup




--- In svg-developers@yahoogroups.com, "hmrupp"  wrote:
> 
> Hi! 
> I want to implement tooltips on elements which I reference by use.
> 
> http://www.w3.org/2000/svg"; width="100%" height="100%">
>   
>   function tooltip(evt) {
>   alert("bla");
>   }
>   
>   
>   
>   
>   
>onmouseover="tooltip(evt)" id="black" />
>   
> 
>   http://www.w3.org/2000/svg"; width="100%" 
> height="100%">
>   
>onmouseover="tooltip(evt)" id="red" /> 
>   
> 
> 
> 
> The mouseover event is only fired when the circle which is not 
> created by use?
> How can I create a tootip on elements created with use?
> 
> Thanks,
> 
> Hans





-
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: fill=remove in animateTransform

2005-01-31 Thread Heiko Niemann


Hi Jilu,

the fill attribute of an animation element can have the 
values "remove" and "freeze". These values apply to the animation 
effect(!) not the animated object/target itself. 
Aashish showed the solution. I would do two modifications though: 1) 
Use display instead of visibility unless you want the hidden element 
still to be target of possible pointer events. 2) You could give 
your animateTransform element an id and then use id.end on the 
dependent set element to start it. So this way you don't have to 
edit the set element if you changed the dur attribute of your main 
animation element. 

...

 
wrote:
> 
> Hello everybody,
> 
> I would like to remove my object after it did
> a translation, so i wrote :
> 
> But, the circle did not disappear.
> 
> Do you know why ??
> 
> Thanks a lot.
> 
> Jilu
> 
> 
> 
> 
>fx="30%" fy="30%">
>   
>   
>   
>   
>  stroke="black" fill-opacity="0.5"/>
> 1
>values="0 600;0 0" begin="0s" dur="20s" 
> fill="remove"/>
>   
> 
> 
> 
> 
> 





-
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: fill=remove in animateTransform

2005-01-31 Thread Heiko Niemann


Hi Jilu,

animation effect would be: 'object was moved from A to B' or 'color 
was changed from red to green'. If you set the fill attribute to 
'remove' these effects will be undone - so the object will be moved 
back to its original position (not necessarily A) and the color 
changed back to the original color (not necessarily red). So 'remove' 
is equal to 'undo'. If you set fill to 'freeze' the element will keep 
the final value for the animated attribute. So the object would stay 
at B and the color would stay green - until you restart the animation.

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup 



--- In svg-developers@yahoogroups.com, "Jilusan" <[EMAIL PROTECTED]> wrote:
> Hi Heiko,
> 
> To tell the true i did not catch the first part of your explanation,
> concerning the animation effect.
> But i understood the second part.
> 
> And every thing is fine now.
> 
> Thanks a lot,
> 
> Jilu
>   -Original Message-
>   From: Heiko Niemann [mailto:[EMAIL PROTECTED]
>   Sent: 31 janvier 2005 17:38
>   To: svg-developers@yahoogroups.com
>   Subject: [svg-developers] Re: fill=remove in animateTransform
> 
> 
> 
>   Hi Jilu,
> 
>   the fill attribute of an animation element can have the
>   values "remove" and "freeze". These values apply to the animation
>   effect(!) not the animated object/target itself.
>   Aashish showed the solution. I would do two modifications though: 
1)
>   Use display instead of visibility unless you want the hidden 
element
>   still to be target of possible pointer events. 2) You could give
>   your animateTransform element an id and then use id.end on the
>   dependent set element to start it. So this way you don't have to
>   edit the set element if you changed the dur attribute of your main
>   animation element.
> 
>   ...
>  id="anim01"
>   attributeName="transform"
>   type="translate"
>   values="0 600;0 0"
>   begin="0s" dur="20s"
>   fill="freeze"/>
>  ...
> 
>   Regards-
>   -Heiko
> 
> 
>   --- In svg-developers@yahoogroups.com, "jilusan" <[EMAIL PROTECTED]>
>   wrote:
>   >
>   > Hello everybody,
>   >
>   > I would like to remove my object after it did
>   > a translation, so i wrote :
>   >
>   > But, the circle did not disappear.
>   >
>   > Do you know why ??
>   >
>   > Thanks a lot.
>   >
>   > Jilu
>   >
>   > 
>   >
>   > 
>   >  > fx="30%" fy="30%">
>   >   
>   >   
>   >   
>   >   
>   >> stroke="black" fill-opacity="0.5"/>
>   > 1
>   >>   values="0 600;0 0" begin="0s" dur="20s"
>   > fill="remove"/>
>   >   
>   > 
>   >
>   > 
>   >
>   > 
> 
> 
> 
> 
> 
>   -
>   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
> 
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/svg-developers/
> 
> b.. To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> 
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.
> 
> 
> 
> [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/
 





[svg-developers] Re: translate then rotate then remove a image

2005-02-01 Thread Heiko Niemann


Hi Jilu,

add 
fill="freeze" to anim1 and
additive="sum" to anim2

see sample:
http://www.zuccaralloo.de/devgroup/samples/animatePhotos.svg

Regards-
-Heiko


--- In svg-developers@yahoogroups.com, "jilusan" <[EMAIL PROTECTED]> 
wrote:
> 
> Hello every body,
> 
> I would like to translate then rotate then remove an image.
> 
> But i have a problem, the center of the rotation is not
> the point for which the translation finish ?
> 
> Do you have any idea ???
> 
> Thanks a lot,
> 
> Jilu
> 
> 
> 
>   
> xlink:href="photo.JPG">
> 
> 1
>attributeName="transform" type="translate"
>   values="0 500; 0 100" begin="0s" dur="20s"/>
>attributeName="transform" type="rotate"
>   from="0" to="360" begin="anim1.end" 
dur="10s"/>
> 
>   
> 
> 





-
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: Polygon Rotation

2005-02-05 Thread Heiko Niemann


Hi,

something like
http://www.zuccaralloo.de/devgroup/samples/rotateRect.svg ?

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup/



--- In svg-developers@yahoogroups.com, pavan kumar 
<[EMAIL PROTECTED]> wrote:
>  
> 
>   yeah,  i would like to rotate the rectangle with
> animation  about  one of it sides (which is in along
> z-axis).  
> 
> Thank you,
> S.Pavan Kumar
> 
> 
> 
> 
> --- Philippe Lhoste <[EMAIL PROTECTED]> wrote:
> 
> > pavan kumar wrote:
> > >   How can i rotate a polygon about one of its
> > sides
> > > using  svg transformations .  
> > > 
> > > Thanking u,
> > > S.Pavan Kumar
> > 
> > I am not sure to understand your question.
> > You cannot rotate a polygon about one of its sides,
> > unless you do it in 
> > 3D, which SVG cannot do.
> > You *can* rotate a polygon about one point on one of
> > its sides, this is 
> > quite trivial, I show it with a rectangle below.
> > 
> >  >fill="lightblue" stroke="cyan"/>
> >  >fill="blue" stroke="lightblue"
> >transform="rotate(30, 200,250)"/>
> >  >  fill="red" stroke="lightred"/>
> > 
> > But perhaps you want to do animation?
> > 
> > -- 
> > Philippe Lhoste
> > --  (near) Paris -- France
> > --  http://Phi.Lho.free.fr
> > --  For servers mangling my From and Reply-To
> > fields,
> > --  please send private answers to PhiLho(a)GMX.net
> > --  --  --  --  --  --  --  --  --  --  --  --  -- 
> > --
> > 
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com





-
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: strange ASV6 plugin behavior / use and mouseover

2005-02-09 Thread Heiko Niemann


Hi Olaf,

it seems that the use element was implemented differently in ASV3, 
ASV6PR and Batik. See this test:

http://www.zuccaralloo.de/devgroup/samples/useElement.svg

What you will notice:

ASV3: target is always the use element, so the only way to figure 
out the referenced element seems to be to read the xlink:href value
correspondingElement and correspondingUseElement are not implemented

Batik: target returns the referenced element and currentTarget 
returns the use element (if the event attribute is in the use 
elemnet); correspondingElement and correspondingUseElement are not 
implemented either

ASV6PR: correspondingElement and correspondingUseElement are 
implemented and return correct values, currentTarget returns the use 
element when the event attribute is inside the element, target 
returns the element instance.

I can see just one combination that will return the same results in 
all three viewers - regarding the element instance:

- define the event attributes for each use element
- then use evt.currentTarget to access the element instance

Until now I always used somthing like:

var elem = evt.target.correspondingUseElement || evt.target;

or a similar if-clause to make things work in ASV3 and ASV6PR - this 
would also include grouped use elements with just one event 
attribute in the group element. Anyhow, currentTarget seems to be 
the way to go if you also want to use Batik.

By the way: I have no idea which implementation actually is correct -
 I would have to read the spec for that :-) , but I think ASV6PR 
comes closest.

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup





--- In svg-developers@yahoogroups.com, Olaf Schnabel <[EMAIL PROTECTED]> 
wrote:
> Hi developers
> 
> I currently work on a SVG-in-SVG map with a simple mouseover 
effect (see 
> code below). An attribute (e.g. the id) should be shown as text in 
the 
> upper right corner during mouseover and mouseout. I have to use 
the 
> "use" element to clone a geometry in the "defs" section.
> But the "use" element seems to activate a strange behavior: While 
the 
> code works in Batik 1.5.1 without errors, the object (evt.target) 
will 
> not passed in ASV6 (tested in Firefox 1 and Internet Explorer 6).
> 
> Do you have any suggestions, if this is a general error in the 
ASV6 
> plugin and how I can avoid the problem?
> 
> Regards
> Olaf
> 
> ** SVG file *
> 
>  xmlns="http://www.w3.org/2000/svg"; 
> xmlns:xlink="http://www.w3.org/1999/xlink";>
> 
> 
> 
>  height="1" />
> 
>
> 
> 
>  onmouseout="showBez(evt);"/>
> 
> 
>  style="font-family:Arial;fill:black;">Bezirkname:
>  style="font-family:Arial;fill:black;"> 
> 
> 
> **
> *** JS File mouseovereffects.js **
> function showBez(evt) {
> var el = evt.target;
> var elName = el.getAttributeNS(null,"id");
> var displayTxt = document.getElementById("varBezirk");
> 
> if (evt.type == "mouseover"){displayTxt.firstChild.nodeValue = 
elName;}
> if (evt.type == "mouseout") {displayTxt.firstChild.nodeValue 
= " ";}
> }
> **
> 
> -- 
> Olaf Schnabel
> Department of Cartography
> Swiss Federal Institute of Technology (ETH)
> ETH Hoenggerberg, CH-8093  Zurich, Switzerland
> phone: ++41 44 633 3031
> e-mail: [EMAIL PROTECTED]
> www: http://www.ika.ethz.ch/schnabel





-
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: how to access fme:attribute by Javascript

2005-02-10 Thread Heiko Niemann


Hi Spring,

your sample at:

http://www.zuccaralloo.de/devgroup/samples/namespace.svg


Regards-
-Heiko

http://www.zuccaralloo.de/devgroup




--- In svg-developers@yahoogroups.com, "tangdm" <[EMAIL PROTECTED]> wrote:
> 
> I converted .shp files into svg file by FME Workbench. Here is a 
path 
> from the svg file.  
> 
>  fme:EASTING="552777" fme:NORTHING="6488598" fme:SITE_NO="2" 
> fme:SITE_LTTR="b" d="M 552777,6.4886e+006 m -63.9709,-63.9709 
> l0,127.942 127.942,0 0,-127.942 z "/>
> 
> I want to get the values of SITE_NAME,EASTING, NORTHING from my 
> javascript. They are actually the attibutes of the shapes' 
underlying 
> data table. getElementById(obj1).getAttributeNS
(null,"fme:SITE_NAME") 
> doesn't work. It raised an error "svgDoc.getElementById(...) is 
null 
> or not an object. 
> 
> Please advise how can I get these values.
> 
> Thank you.
> 
> Spring





-
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: Problem with clearInterval()

2005-02-10 Thread Heiko Niemann


Hi David,

probably can't use clearInterval() in the same function that is 
called by the setInterval() method.

Here is a sample that plays with setInterval() and clearInterval():

http://www.zuccaralloo.de/devgroup/samples/interval.svg


Regards-
-Heiko


http://www.zuccaralloo.de/devgroup




--- In svg-developers@yahoogroups.com, "coggeshalldavid" 
<[EMAIL PROTECTED]> wrote:
> 
> I can not get the clearInterval() to work within my SVG script 
element. The same exact code 
> works fine in HTML but will not "clear" in SVG.  Any ideas?
> 
> David C.
> 
>   
>   var intervalID
>   
>   function init(evt){
>   alert("Hello World")
>   intervalID = setInterval("update()",5000)
>   }
>   
>   function update() {
>   alert("Goodbye")
>   clearInterval(intervalID)
>   }
> 
>  ]]>





-
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: How to scale to fit embedded charts?

2005-02-14 Thread Heiko Niemann


Hi Edward,

if your document structure looks similar to this:

  ** root element

  
   


  
   ... code chart1

  

  ...


   


 
   ... code chart4  

  



you can either add a viewBox attribute to the container element or to
the root element of each of the charts. The viewBox values simply tell
which part/area of the chart you want to show in the container
(viewport). So if your container says width="300" and height="200" and
you set viewBox="0 0 600 400" your chart (size 600x400) is
automatically scaled to fit in the container (size 300x200). 

The viewBox and the container do not need to have the same aspect
ratio. You then can use the attribute preserveAspectRatio to determine
how to display/place the chart in the container (see chapter 7.8 of
the spec).

In your case it might be easiest to add the viewBox attribute to the
root element of the generated charts since you probably will know the
viewing area.

Regards-
-Heiko  



--- In svg-developers@yahoogroups.com, "toomanyedwards"
<[EMAIL PROTECTED]> wrote:
> 
> I have several externally generated svg charts that I want to 
> include in another SVG file so that I can display them in a tile 
> layou like this:
> 
>   Chart1 Chart2
>   Chart3 Chart4
> 
> How do I scale the size of the embedded svg charts to fit the area 
> they are given.  I know I can do:
> 
> 
>  ->
>...
>   
> 
> 
> But this will scale the chart to be half *it's* size and not tell it 
> to fill the space given to it.  I'm new to SVG so maybe I'm missing 
> something.  Any guidance is appreciated.
> 
>   Thanks!
> 
> 
>   Edward





-
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: metadata

2005-02-14 Thread Heiko Niemann


Hi Burkhard,

if you say:

var xml = parseXML(data.content, document)  // with data.content
actually being your xml snippet called via getURL you will get:

xml -> document fragment;

xml.firstChild -> element - since  is the first (child) node
of the document fragment;

xml.firstChild.firstChild -> text - the node you are looking for

xml.firstChild.firstChild.data -> your data;

If you just want to get a string like this you actually don't have to
use the xml format. You could call a text file containing this string
or call a script that generates and returns this string. 

var myStr = data.content; would be all to get your string

If you have more (structured) data e.g. an array your text file would
contain a string like ['datei1','datei2','datei3'] - or a script could
return this also - then you do:

var myData = eval(content.data);
alert(myData[2]);  // -> datei3


Regards-
-Heiko




--- In svg-developers@yahoogroups.com, "Burkhard Stollenwerk"
<[EMAIL PROTECTED]> wrote:
> Hello,
> how could I get the textdata within new_node?
> 
> 
> function callback_get_meta(urlRequestStatus)
> {
>  new_node=cb_parse(urlRequestStatus);
>  alert(pn(new_node));
> } 
> 
> alert delivered: 
> datei1##datei2##datei3##
> 
> 
> how could I get text >> datei1##datei2##datei3##
> 
> I have tried it with new_node.firstChild.data or
new_node.firstChild.nodeValue.
> But the delivered string is empty.
> 
> Could anybody help ?
> 
> Burkhard Stollenwerk
> 
> [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/
 





[svg-developers] Re: 2 adjacent rects

2005-02-15 Thread Heiko Niemann


Hi,

use the shape-rendering attribute and set it to 'crispEdges' to turn
off anti-aliasing which causes this thin line to appear.

...




...

Regards-
-Heiko




--- In svg-developers@yahoogroups.com, "tony_ser" <[EMAIL PROTECTED]> wrote:
> 
> Run into a problem with the ASV.
> When I put 2 rect right next each other, there is still a fine line 
> in the middle with the background color.
> 
> Any way to fix it
> Thanks!
> 
> 
> 
>  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
> 
> 
>style="fill:#ff; " />
>height="2694" style="fill:#ff; " />
>height="2694" style="fill:#ff; " />
> 





-
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: 2 adjacent rects

2005-02-16 Thread Heiko Niemann


Hi,

http://w3.org/TR/SVG11/painting.html#ShapeRenderingProperty

crispEdges is supported by ASV3, ASV6PR, Batik, and mozSVG that's all
I can tell, since I don't use/have other viewers. I am sure others do,
too.

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup




--- In svg-developers@yahoogroups.com, "tony_ser" <[EMAIL PROTECTED]> wrote:
> 
> Thanks! That will work.
> 
> Just curious, I find optimizeSpeed in the standard but not crispEdges.
> Is crispEdges only supported by certain viewer ?
> 
> Thanks!
> 
> --- In svg-developers@yahoogroups.com, "Heiko Niemann" <[EMAIL PROTECTED]> 
> wrote:
> > 
> > Hi,
> > 
> > use the shape-rendering attribute and set it to 'crispEdges' to turn
> > off anti-aliasing which causes this thin line to appear.
> > 
> > ...
> > 
> >  > fill="#ff" />
> >  > fill="#ff" />
> > 
> > ...
> > 
> > Regards-
> > -Heiko
> > 
> > 
> > 
> > 
> > --- In svg-developers@yahoogroups.com, "tony_ser" <[EMAIL PROTECTED]> wrote:
> > > 
> > > Run into a problem with the ASV.
> > > When I put 2 rect right next each other, there is still a fine 
> line 
> > > in the middle with the background color.
> > > 
> > > Any way to fix it
> > > Thanks!
> > > 
> > > 
> > > 
> > >  > > "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
> > > 
> > > 
> > >> > style="fill:#ff; " />
> > >> > height="2694" style="fill:#ff; " />
> > >> > height="2694" style="fill:#ff; " />
> > > 





-
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: Draw Arrow Head

2005-02-21 Thread Heiko Niemann


Hi,

you could also define your own font and use textPath to place markers
(glyphs) anywhere along a path setting the startOffset attribute -
doing so, orientation is no problem either. 

Sample:
http://www.zuccaralloo.de/devgroup/samples/textPathMarkers.svg

A glyph can be a simple path or any SVG content (see the spec chapter
20.4). So this is as flexible as using symbols. 
In your example you would have to adjust the font-size according to
the scaling that is done when you use viewBox - similar to adjusting
the stroke-width of your path. 

Your sample with an arrow at the middle of the path - and a little
animation that just happened to get in there when I was playing :-)

http://www.zuccaralloo.de/devgroup/samples/textPathMarkers2.svg

I hope it's not too confusing and you will get the basic idea. I guess
then you can start to try and play!

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup



--- In svg-developers@yahoogroups.com, raghu raman <[EMAIL PROTECTED]>
wrote:
> I need to draw a arrow head in middle of the given path. 
> 
> Kindly let me know your solutions
> 
>  
> 
> Raghu
> 
> 
> 
> Yahoo! India Matrimony: Find your life partneronline.
> 
> [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/
 





[svg-developers] Re: Performance

2005-02-22 Thread Heiko Niemann


Hi Friedhelm,

I dont't get any performance problems - and you probably would not
want my machine I am using for free :) 

Your modified sample:
http://www.zuccaralloo.de/devgroup/samples/performance.svg

modifications:

image element:
I removed fill and stroke-opacity (never have seen fill being used
with image, so I am not sure whether you need it or not)

rect elements (frames):
I changed fill to none and removed fill-opacity, I guess you can add
pointer-events set to 'all' if you plan any pointer events

rect elements (bars):
I changed stroke to 'none'


The highest CPU usage I get is 23% with a refresh rate set to 50ms -
but I guess nobody needs that rate client side anyhow.

Regards-
-Heiko



--- In svg-developers@yahoogroups.com, "friedhelmeichin"
<[EMAIL PROTECTED]> wrote:
> 
> Hi,
> I have extracted the essential code snippets.
> In this case the interval is 1 second but 75% CPU usage (P4/1.5GHz), 
> if I add more controls first cpu usage increaes and later the 
> interval grows too.
> But if I remove the background image, cpu usage is about 5%
> 
> I am using javaScript only for testing and to compare different 
> viewers/platforms
> 
> Later I would like to build a windows application using compiled code 
> in context of an "SVG viewer component" like eSVG, Mobiform,...
> 
> Regards Friedhelm
> 
> 
> 
> 
> viTest.js
> =
> 
> var text;
> var rect;
> var anim_timer;
> 
> function OnLoad(evt)
> {
>   //anim_timer = setInterval("OnTimer()", 1000);
>   anim_timer = setTimeout("OnTimer()", 1000);
> }
> 
> function OnTimer()
> {
>   var id;
>   var i;
>   var symbol;
>   
>   for(i=1; i<=15; i++)
>   {
>   var RandVal = Math.random();
> 
>   // set with of rect by random value
>   if (i<10)
>id = "fill0" + i;
>   else
>id = "fill" + i;
> 
>   rect = document.getElementById(id);
>   rect.setAttribute('width', RandVal*100);
>   }
>   setTimeout("OnTimer()", 1000);
> }
> 
> viTest.svg
> ==
> 
> 
> 
>  1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
> 
>  xmlns:xlink="http://www.w3.org/1999/xlink"; viewBox="0 0 1024 768" 
> xmlns="http://www.w3.org/2000/svg"; onclick="1" onload="OnLoad(evt)">
>
>Test Performance  
> height="100" transform="matrix(10.2304,0,0,7.42512,-205.313,-
> 148.255)" xlink:href="Main.JPG" />
>
>y="3.71" width="96" height="16" />
>id="frame" x="200.45" y="1.71" width="100" height="20" />
>
> 
> 
> 
>
>y="702.63" width="96" height="16" />
>id="frame" x="200.45" y="700.63" width="100" height="20" />
>
> 
> 
> 
> 
> 
> --- In svg-developers@yahoogroups.com, Mario Vernari <[EMAIL PROTECTED]> 
> wrote:
> > Hi Friedheim,
> > I agree with Domenico.
> > SCADA using SVG synopthics is my main job, since over 2 years.
> > I have several examples of SVG's taking almost no CPU.
> > 
> > The worstest problem (I'd say "fault") of SVG is that you cannot 
> control how 
> > much the SMIL animation can eat CPU.
> > So most of the time you have to manage the code (losing even lot of 
> time) to 
> > adjust animations so that the CPU is within acceptable margins.
> > Don't refuse the Javascript+DOM animation: in many situations it 
> would be 
> > convenient.
> > Cheers
> > Mario
> > 
> > 
> > 
> > On Monday 21 February 2005 11:56, friedhelmeichin wrote:
> > >  I am trying to build a scada mmi prototype with svg. For this I 
> used
> > >  a background image (1024x768 *.png or *.jpg file) and in 
> foreground
> > >  some simple dynamic controls like "led, bargraph, text, 
> symbol,...).
> > >  To get the dynamic behaviour, I used JavaScript and the DOM to 
> change
> > >  some attributes (text, color, visibility,...) of the controls 
> once
> > >  per second.
> > >
> > >  I work with IE+ASV to show this graphic. There I get a really bad
> > >  performance (97% CPU usage, 3s interval instead of 1s), if I 
> don't
> > >  use the attribute image-rendering="optimizeSpeed" at the 
> background
> > >  image element.
> > >  When I use "optimizeSpeed" performance is ok, but I am not sure, 
> if
> > >  the quality of the graphic is sufficient for a comercial product.
> > >
> > >  Is this a typical behaviour?
> > >
> > >  Are there other ways to increase performance?
> > >
> > >  I am looking forward to get response from anybody, who has some
> > >  experience in this case.
> > >
> > >  Regards
> > >  Friedhelm
> > >
> > >
> > >
> > >
> > >
> > >  -
> > >  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]
> > >  
> > > You

[svg-developers] Re: Performance

2005-02-22 Thread Heiko Niemann


Hi Nico,

I had no idea that this was a picture contest ;-)

Anyhow, I guess most members of this group would have prefered to
download a 2MB shiny picture sample to - well - just to see the same
result. All I can observe is that no matter what size or how many
tones the background picture has there is always about the same result
for me: CPU usage is - let's even say - 25% maximum at 50ms refresh
rate on a P3/866MHz with 32MB graphics card. Matter in fact: the
bigger and shinyer the image (yours included) the better the
performance. So my old muddy duotone 23.3k jpeg even is the worst
regarding this aspect.
I have no idea how rendering and rerendering is actually done, but my
understanding of it would be that a raster image will not cause as
much trouble as filters, gradients, or opacity do. Due to my
observations it even seems that a picture closer to the size of the
screen is easier to handle than a picture that is scaled to fit (but
there I might get on the wrong track).

Regards-
-Heiko



--- In svg-developers@yahoogroups.com, "Domenico Strazzullo"
<[EMAIL PROTECTED]> wrote:
> 
> Heiko wrote:
> 
> > I dont't get any performance problems - and you probably would not
> > want my machine I am using for free :)
> 
> You certainly don't get performance problems with a muddy duotone 
> 23.3k jpeg. With some other image like in:
> http://www.dotuscomus.com/svg/test/performance1.svg
> cpu usage gets to 100%. With a reasonably good image it does pose a 
> problem, that's probably why Friedhelm is blowing a 100x100 image 
> (if he is doing that). The question being what kind of image he's 
> using. The result is too poor, visually, for a picture type image, 
> unless that would be the sought after effect.
> 
> Nico 
> 
> 
> --- In svg-developers@yahoogroups.com, "Heiko Niemann" <[EMAIL PROTECTED]> 
> wrote:
> > 
> > Hi Friedhelm,
> > 
> > I dont't get any performance problems - and you probably would not
> > want my machine I am using for free :) 
> > 
> > Your modified sample:
> > http://www.zuccaralloo.de/devgroup/samples/performance.svg
> > 
> > modifications:
> > 
> > image element:
> > I removed fill and stroke-opacity (never have seen fill being used
> > with image, so I am not sure whether you need it or not)
> > 
> > rect elements (frames):
> > I changed fill to none and removed fill-opacity, I guess you can 
> add
> > pointer-events set to 'all' if you plan any pointer events
> > 
> > rect elements (bars):
> > I changed stroke to 'none'
> > 
> > 
> > The highest CPU usage I get is 23% with a refresh rate set to 
> 50ms -
> > but I guess nobody needs that rate client side anyhow.
> > 
> > Regards-
> > -Heiko
> > 
> > 
> > 
> > --- In svg-developers@yahoogroups.com, "friedhelmeichin"
> > <[EMAIL PROTECTED]> wrote:
> > > 
> > > Hi,
> > > I have extracted the essential code snippets.
> > > In this case the interval is 1 second but 75% CPU usage 
> (P4/1.5GHz), 
> > > if I add more controls first cpu usage increaes and later the 
> > > interval grows too.
> > > But if I remove the background image, cpu usage is about 5%
> > > 
> > > I am using javaScript only for testing and to compare different 
> > > viewers/platforms
> > > 
> > > Later I would like to build a windows application using compiled 
> code 
> > > in context of an "SVG viewer component" like eSVG, Mobiform,...
> > > 
> > > Regards Friedhelm
> > > 
> > > 
> > > 
> > > 
> > > viTest.js
> > > =
> > > 
> > > var text;
> > > var rect;
> > > var anim_timer;
> > > 
> > > function OnLoad(evt)
> > > {
> > >   //anim_timer = setInterval("OnTimer()", 1000);
> > >   anim_timer = setTimeout("OnTimer()", 1000);
> > > }
> > > 
> > > function OnTimer()
> > > {
> > >   var id;
> > >   var i;
> > >   var symbol;
> > >   
> > >   for(i=1; i<=15; i++)
> > >   {
> > >   var RandVal = Math.random();
> > > 
> > >   // set with of rect by random value
> > >   if (i<10)
> > >id = "fill0" + i;
> > >   else
> > >id = "fill" + i;
> > > 
> > >   rect = document.getElementById(id);
> > >   rect.setAttribute('width', 

[svg-developers] Re: Change Scale in zooming

2005-02-24 Thread Heiko Niemann


Hi,

I assume you also want to keep the stroke-width of your line when
zooming, if that is the case you can bind the scaling of the marker to
the stroke-width. Just set the markerUnits attribute to 'strokeWidth'.
So when you zoom a function is called that adjusts the stroke-width of
your line and the size of the marker is changed automatically.

sample at:
http://www.zuccaralloo.de/devgroup/samples/scaleMarker.svg

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup



--- In svg-developers@yahoogroups.com, raghu raman <[EMAIL PROTECTED]>
wrote:
> Hi,
>I have a line with arrrow head. I draw an arrow head using
marker. I don't like to change the scale of the arrow head in zoom in
and zoom out. I have no idea how to implement this functionality. let
know your solution please
>  
> Thanks 
> Raghu
> 
> Yahoo! India Matrimony: Find your life partneronline.
> 
> [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/
 





[svg-developers] Re: Launch a sound both at startup and on click ?

2005-02-26 Thread Heiko Niemann


Hi Tim,

no script needed. You can simply define a value-list for the begin
attribute: begin="0s;playButton.click"

sample at:
http://www.zuccaralloo.de/devgroup/samples/sound.svg

download at:
http://www.zuccaralloo.de/devgroup/?m=messages

Regards-
-Heiko



--- In svg-developers@yahoogroups.com, "tim_anglade"
<[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I'm trying to use sounds with ASV6. I know how to launch a sound at
> startup or when a "button" is clicked, but my problem is, I'd like to
> do  both.
> 
> Example : a startup music that begins as soon as the svg is loaded.
> The user can then click a "stop" button to make it stop (I know how to
> go that far), but I would like to implement a "play" button to make
> the music start again. Logicaly, I can't put two "begin" properties in
> one  "sound" element. Maybe I could use javascript, but I don't know
> much about it..
> 
> 
> Any help would be greatly appreciated.
> 
> Thanks in advance,
> Tim.





-
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: SVG showing up as XML text file in browser (viewer IS installed)

2005-02-27 Thread Heiko Niemann


Hi Margie,

both applications you mention rely on plugin/browser communication
(html to svg / svg to html, several svgs embedded in html, scripts
loaded by html called by svg, ...) And all this just works with IE.
Between ASV and other browsers this communication is broken - well to
be correct, there is browserEval() which gives you a bridge from ASV
to the browser (so you could call functions inside html e.g.) - but
not the other way around, thus there is no communication between
embedded svgs possible -> svg to html to svg.

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup 




--- In svg-developers@yahoogroups.com, Marjorie Roswell
<[EMAIL PROTECTED]> wrote:
> I appreciate all the help.
> 
> Still some glitches, though I've followed the directions below.
> 
> Weird glitches, and I wonder if anyone has any ideas.
> 
> Check out EpiQMS, the Pennsylvania Epidemiology Query Management System
> http://app2.health.state.pa.us/epiqms/Asp/ChooseDataset.asp
> 
> When I view the maps in IE, no problem.
> 
> Under Firefox, although I do get the outline of the map, the colors
> are not filled in, and in particular, the legend, instead of
> containing data, only says "!" for each entry.
> 
> Likewise, these maps don't show up properly in Firefox, so it's not
> unique to that EpiQMS application:
> http://healthcybermap.org/PCT/STDs/
> 
> These are both awesome applications. Can anyone figure out how to view
> them in Firefox?
> 
> Margie
> 
> 
> 
> 
> On Sun, 27 Feb 2005 12:09:48 -0500, Jerrold Maddox <[EMAIL PROTECTED]> wrote:
> >  These directions worked for me:
> >  
> >  http://hayobethlehem.nl/news/2005/01/mozilla-firefox-svg-issues/
> >  describes the following support for Adobe SVG Viewer Version: 6.0
Build 
> >  38363 in Firefox 1.0 as a Manual install.
> >  1. Install Adobe SVG Viewer 6.0
> >  2. Copy NPSVG6.dll and NPSVG6.zip to your browser's plugins
folder. These 
> >  files are normally located in C:\Program Files\Common
Files\Adobe\SVG 
> >  Viewer 6.0\Plugins\
> >  
> >  Jerry
> >  
> >  At 01:12 AM 2/27/2005, you wrote:
> >  >I downloaded Firefox, love its speed, appreciate the tip, but
alas, I
> >  >think I've downloaded and run the version 3 and version 6 ASV a slew
> >  >of times, and I still can't see SVG files in Firefox. It's 1:10 on a
> >  >Saturday night. Oy, the things we do.
> >  >
> >  >Any hints?
> >  >
> >  >Margie
> >  >
> >  >
> >  >On Sat, 26 Feb 2005 10:21:41 -0800, Michael Bolger
> >  ><[EMAIL PROTECTED]> wrote:
> >  > >  Hi Marjorie
> >  > >
> >  > >  >get the display of the xml with the plus and minus signs in
my IE
> >  > >
> >  > >  I like Firefox with ASV 6.0
> >  > > 
> >  >
> >
http://www.adobe.com/svg/viewer/install/beta.html
> >  > >
> >  > >
> >  > >  cheers
> >  > >  michael
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >  -
> >  > >  To unsubscribe send a message to:
> >  > > [EMAIL PROTECTED]
> >  > >  -or-
> >  > >  visit 
> >  >
> >
http://groups.yahoo.com/group/svg-developers
> >  > and click "edit my
> >  > > membership"
> >  > >  
> >  > >
> >  > >
> >  > >
> >  > >  Yahoo! Groups Sponsor
> >  > >
> >  > >  ADVERTISEMENT
> >  > >
> >  > >
> >  > >  
> >  > >  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 the Yahoo! Terms of
Service.
> >  >
> >  >
> >  >-
> >  >To unsubscribe send a message to:
> > [EMAIL PROTECTED]
> >  >-or-
> >  >visit 
> >
>http://groups.yahoo.com/group/svg-developers
> >  >and click "edit my membership"
> >  >
> >  >
> >  >
> >  >Yahoo! Groups Sponsor
> >  >ADVERTISEMENT
> >
>
> >  >click here
> >  >
> >  >
> >  >
> >  >--
> >  >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 the 
> >  > Yahoo! Terms of Service.
> >  
> >  
> >  [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 "

[svg-developers] Re: read text from a file and draw it on the SVG dynamically

2005-02-28 Thread Heiko Niemann


Hi,

you use getURL to load either a static file or call a server side
script (PHP,ASP,JSP,...) that generates/returns text.

Using ASV or Batik getURL also works locally (no server needed), using
MozillaSVG or FireFoxSVG you have to add the getURL method via the
XMLHttpRequest Object, thus it will just work on a server.

sample at:
http://www.zuccaralloo.de/devgroup/samples/textFromFile.svg

download at:
http://www.zuccaralloo.de/devgroup/?m=messages

Batik: add type="text/ecmascript" to the script element

Regards-
-Heiko



--- In svg-developers@yahoogroups.com, "solomoonor" <[EMAIL PROTECTED]>
wrote:
> 
> Hi, anyone got idea how to read a text value from a file and draw it
> on the svg? I just know how to change the attributes but don't know
> how to get the text from the file. I've read the document and try to
> find out how to do it, but just don't understand -_-||





-
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: show mouse coordinates

2005-02-28 Thread Heiko Niemann


Hi,

as far as I can tell the problem is that you have different aspect
ratios for width/height of your svg and for your viewBox width/height
- which of course is ok, but causes problems calculating coordinates.

The default values for the preserveAspectRatio attribute are "xMidYMid
meet" thus there is just one scaling factor that is used to make the
svg content fit into the box (either svgW/vboxW or svgH/vboxH). But in
your script you are using both so that should be one reason for wrong
coordinates. Because of xMidYMid being default your content (about 422
units wide when scaled to meet) is also shifted to the right ->
(530-422)/2 = 54 units.

I have not tested your code so I don't know whether you will also run
into problems when you zoom/pan. But it almost seems like it :(
A first step to make everything easier would be to have equal aspect
ratios e.g. viewBox="x0 y0 128.896 85.12" - but maybe you can't do that.

Regards-
-Heiko


http://www.zuccaralloo.de/devgroup 

 



--- In svg-developers@yahoogroups.com, "Halil AKINCI" <[EMAIL PROTECTED]>
wrote:
> 
> Hi,
>  
> To show mouse coordinates on screen, I use following lines;
>  
> var X = x0 + (evt.getClientX() - svgroot.currentTranslate.x)*(vboxW/
> (svgW*svgroot.currentScale));
> var Y = -(y0 + (evt.getClientY() - svgroot.currentTranslate.y)*(vboxH/
> (svgH*svgroot.currentScale)));
> var point = String(X).substr(0,8) + " , " + String(Y).substr(0,8) 
> + " ";
> var position =  svgdoc.getElementById("position");
> position.getFirstChild().setData(point);
>  
> in the above lines,
>  
> svgdoc = evt.target.getOwnerDocument();
> svgroot = svgdoc.getDocumentElement();
> var vbox = (svgroot.getAttribute("viewBox")).split(' ');
> x0 = parseFloat(vbox[0]);
> y0 = parseFloat(vbox[1]);
> vboxW = parseFloat(vbox[2]);
> vboxH = parseFloat(vbox[3]);
> svgW = parseFloat(svgroot.getAttribute("width"));
> svgH = parseFloat(svgroot.getAttribute("height"));
>  
> but it doens't work correctly. X coordinates show almost correct, but 
> Y coordinate is wrong. How can I fix Y coordinates?
>  
> Thanks...
>  
> *** my svg file is ***
>  
> 
>   "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd
> ">
>  
> 
>  
>   
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>   
>   
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>family="Verdana" fill="red" >34
>   
>
>
>
>
>
>
>
>
>
>
>
>  
>   
>   
>
>
>
>
>
>
>
>
>
>
>
>
>   
>family="Verdana" fill="black" >121
>  
> 





-
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: DOM Tree like Explorer

2005-03-07 Thread Heiko Niemann


Hi,

BLI-team -> Stefan Kubitzky at:

http://www.bli.uni-essen.de/contact/contact.asp

There is a link to more svgs of this type (need to register first) at:

http://www.bmecat.org/English/index.asp?main=Links&pid=

Regards-
-Heiko




--- In svg-developers@yahoogroups.com, "skatethere" <[EMAIL PROTECTED]>
wrote:
> 
> --- In svg-developers@yahoogroups.com, "André M. Winter -
> Carto.net"
> <[EMAIL PROTECTED]> wrote:
> > some more detail,
> > 
> > ,
> found 
> > at 
> 
> Andre, that is *very* nice. Do you know how to reach Stefan Kubitzky
> to ask about reuse/modification of his work by others (I may be
> interested in adapting his code for internal network diagramming), or
> know his intentions regarding modification?
> 
> I particularly like the auto-layout engine for the schema boxes and
> connections.
> 
> Thanks,
>   --kirby





-
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: SVG animation fill:remove???

2005-03-11 Thread Heiko Niemann


Hi Helen,

there are several ways to do this. If you just need the rectangle to
be displayed during the animation (plus 2 seconds) I would simply
change the display attribute of the rect to "none" - as starting
value. Then you can either say:
1) anim -> fill="remove" ,  rect -> height="501"  or
2) anim -> fill="freeze" ,  rect -> height=""

#1 you can find here:
http://www.zuccaralloo.de/devgroup/samples/animateFlood.svg

#2 seems to be more flexible since you don't have to worry about the
starting value of height.

Using a keyTimes list and a values list - as proposed earlier -
probably will work, too. But - as the spec says - "Each time value in
the keyTimes list is specified as a floating point value between
0 and 1 ..."  So you would have to calculate those values - and
recalculate them if you change the duration of your animation.

Regards,
Heiko

http://www.zuccaralloo.de/devgroup




--- In svg-developers@yahoogroups.com, "helensobrien"
<[EMAIL PROTECTED]> wrote:
> 
> Hi
> 
> I have an animation that I want to remove a few seconds after it is 
> finished the animation.
> So I want it to be there a few seconds longer then the duration.
> 
> I can not use fill:freeze and then set it to hidden as this 
> interfers if reset is pressed and the animation does not occur 
> again. So at the moment I can using fill:remove.
> 
> Can anyone please help me if they know how I can keep the animation 
> showing for a few seconds longer after the duration.
> 
> My code is as follows:
>  style="stroke:black; fill:blue; stroke-width:0">
>  to="501" begin="runTap.click" dur="5" fill="remove" />
> 
> 
> Thank you,
> Kind Regards





-
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: endElement

2005-03-11 Thread Heiko Niemann


Hi,

just as Antoine says: the end attribute needs to be set to
"indefinite". Same applies to the begin attribute if you wanted to use
beginElement().

Sample at:
http://www.zuccaralloo.de/devgroup/samples/endElement.svg


Regards,
Heiko


http://www.zuccaralloo.de/devgroup




--- In svg-developers@yahoogroups.com, "rossallard" <[EMAIL PROTECTED]>
wrote:
> 
> I'm having trouble stopping an animation using the endElement 
> method.  Basically, it doesn't work and I don't get an error.  Is 
> this a known problem with ASVG 3.0?  Is there another way to do it? 
> 
> Thanks





-
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: Question on tspan and text

2005-03-14 Thread Heiko Niemann


Hi,

sample at:
http://www.zuccaralloo.de/devgroup/samples/cloneTSpan.svg

Regards-
-Heiko


http://www.zuccaralloo.de/devgroup



--- In svg-developers@yahoogroups.com, [EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I have been trying to create a tspan entry for an existing text node
i.e.
> do the following:
> 
>   - create a clone of a certain span element
>   - update the text of this CLONED tspan element
>   - APPEND THIS MODIFIED CLONE ONTO THE TEXT NODE
> This just does not work. Essentially, I can see the updated text.
But, 'dy'
> remains at 0 it appears so- the text just overwrites itself.
> 
> Any suggestions? If I use parseXML, it works properly. But, I really
wish
> to work this off the DOM - not via the parseXML route.
> 
> I have included my script below:
> 
> function clickRtn(evt)
> {
>   doc = evt.target.ownerDocument;
> 
>   rt1 = doc.getElementById('ListArea'); // text node
>   rt2 = doc.getElementById('ListItemsEntrySample'); // tspan
node under
> the above text node
> 
>   rt3 = rt2.cloneNode(true);
> 
>   rt3.childNodes.item(0).dy = '1.2em';
>   rt3.childNodes.item(0).data = 'testing time';
>   rt3.addEventListener('click', clickRtn, false);
> 
>   rt1.appendChild(rt3);
> 
> 
> }
> 
> Thanks,
> Shreesh





-
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: Algorithm for Ellipse

2005-03-20 Thread Heiko Niemann


Hi,

if you want to draw an ellipse with origin at cx,cy, the radii rx,ry
and a rotation of dg degrees you can do following:

1) draw ellipse (two elliptical arcs) and rotate it via tranform:

points A(ax,ay), B(bx,by)

path of ellipse: "M ax ay A rx ry 0 0 1 bx by rx ry 0 0 1 ax ay z"

with

ax = cx - rx
ay = cy
bx = cx + rx
by = cy

(using absolute coordinates)

adding the transformation you will get:



If you use the x-axis-rotation parameter - first pararmeter of 0 0 1 -
to rotate the ellipse and keep all the other parameters the same, you
will NOT get an ellipse that is congruent to the original ellipse, but
rather an ellipse that is rotated but still goes through points A and
B. So it is either bigger or smaller (and thus not being an ellipse
anymore).
But you can still use the x-axis-rotation parameter to achieve the
desired result:

2) draw ellipse using x-axis-rotation parameter, calculating start and
end points:

if you rotate the ellipse via x-axis-rotation parameter you have to
calculate the coordinates of A and B - which you know have to be on a
circle having the radius rx.

A point D(dx,dy) on a circle with origin (0,0) and radius r at dg
degrees you can calculate as follows (javascript):

dx = r*Math.cos(dg*Math.PI/180);
dy = r*Math.sin(dg*Math.PI/180);

so you get:

path of ellipse: "M ax ay A rx ry dg 0 1 bx by rx ry dg 0 1 ax ay z"

with

ax = cx - dx;
ay = cy - dy;
bx = cx + dx;
by = cy + dy;

There is a sample at:

http://www.zuccaralloo.de/devgroup/samples/rotateEllipse.svg

showing four ellipses:

blue: 'original' ellipse (not rotated)
gray fill: original rotated using transformation 
green: setting x-axis-rotation parameter using same start and end
points as original
red: setting x-axis-rotation parameter plus calculating start and end
points


Regards-
-Heiko





--- In svg-developers@yahoogroups.com, raghu raman <[EMAIL PROTECTED]>
wrote:
> Hello
>  
> I am new to this group. I have primary axis, secondary axis , origin
and Rotation Angle.Using this i need to draw an ellipse without using
the standard function of ellipse. It would be vey helpful, if  I draw
an ellipse using Lines using some algorithm.
>  
> Please kindly let me know your suggestions.
>  
> Thanks & Regards
> Senthil
> 
> 
> Yahoo! India Matrimony: Find your life partneronline.
> 
> [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/
 





[svg-developers] weather fronts with textPath and custom font

2005-03-20 Thread Heiko Niemann


Hi,

http://www.zuccaralloo.de/devgroup/samples/weatherFronts.svg

shows a sample using textPath, a custom font and custom elements to
generate weather front curves. The attributes of the custom elements
determine the size, type and space in between the front symbols. The
actual space between the symbols will be adjusted to the length of the
path and the number of intervals calculated to fit on the path. Thus a
front will have this order: 1/2length of space - symbol - space - ...
-  space - symbol - 1/2length of space.

Anyhow, this probably needs some improvements but maybe somebody has
use for it or will modify it to fit their needs.

download (including the map) at:
http://www.zuccaralloo.de/devgroup/content.php?m=messages

Regards-
-Heiko





-
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] Curly Curves

2005-03-20 Thread Heiko Niemann


Hi,

I think about couple weeks ago somebody was looking for a way to draw
'curly curves' (along with drawing weather fronts). 

http://www.zuccaralloo.de/devgroup/samples/curlyCurves.svg

uses custom elements to define paths and the style of the 'curls'. The
script looks for those elements and generates paths consisting of
eliptical arcs. Besides presentation attributes there are 1) a clock
attribute telling which way the arcs are supposed to be drawn
(sweep-flag), 2) a span attribute telling the length of each arc (can
be less or more, since the span is calculated the way that a even
number of arcs fits on the path), 3) a r attribute which influences
the height of the arcs. More presentation attributes could be added -
or default values defined.

Regards-
-Heiko

http://www.zuccaralloo.de/devgroup





-
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: how to use 'nonzero' with paths ?

2005-05-05 Thread Heiko Niemann
Hi Hago,

in order to use fill-rule the two paths need to be concatenated. In
your case you also need to adjust transformations (scale, translate)
you have made.
After that you would use fill-rule "evenodd" since both paths have the
same direction. Et voilà:

http://www.zuccaralloo.de/devgroup/samples/apples.svg

Regards,

Heiko  

http://www.zuccaralloo.de/devgroup



--- In svg-developers@yahoogroups.com, "Hago Ziegler" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I have a problem with the fill-rule "nonzero". I don't understand to
use  
> it properly with paths.
> 
> There are 2 shapes of an apple, one on another, the above one a
little bit  
> smaller than the one below.
> 
> I would like the whole apple to be transparent in the area of the
smaller  
> shape, so that only a sort of apple-outline ans the SVG-background is  
> visible.
> 
> See at: http://hagoschaos.de/h/freunde/nonzero.html
> 
> Regards,  Hago




-
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: how to draw rialroad line style in SVG

2005-07-18 Thread Heiko Niemann
Hi,

here is a sample where you can see what Peter Kalev suggested: 

http://www.zuccaralloo.de/devgroup/samples/railroad.svg

So you could define entities which makes things easier when you need
to change a path. Since this sample also uses textpath and animation
it probably just will run with ASV3/ASV6.

Regards,

Heiko

http://www.zuccaralloo.de/devgroup


--- In svg-developers@yahoogroups.com, "zhg331" <[EMAIL PROTECTED]> wrote:
> Hi group, I am a beginner with SVG. I want to know is there any way to 
> draw railroad line with SVG. many thanks




-
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: getURL/parseXML does not work

2005-08-08 Thread Heiko Niemann
Hi DD,

#1) What does your webserver return if you call the xml file directly?

#2) Have you tried different samples that use getURL()?

You could download

http://www.zuccaralloo.de/devgroup/downloads/restaurant_xml.zip

and see whether that runs. 

#3) Do you just call static xml files or do you also execute some kind
of server-side script - accessing a database i.e.?

#4) ...

note: There are alternatives to xml and parseXML() if you just want to
get some data/values.  

Regards,

Heiko




--- In svg-developers@yahoogroups.com, "deeti_dave" <[EMAIL PROTECTED]>
wrote:
> Dear Holger:
> 
> Thank you very much for your suggestion. But this still does not 
> solve my problem completely. If I run this code just as a stand 
> alone program, it works okay, but the trouble starts when I call 
> this svg page through webserver, and run the same code, I get getURL
> () failed! I also tried putting the whole path of the xml file in 
> getURL(), and also the webserver address and the filename, still 
> does not work, Both svg and xml files are in the same folder on the 
> same machine.
> 
> I would really appreciate it if anyone can throw some light on this 
> problem...
> 
> Thanks
> DD
> 
> 
> 
> --- In svg-developers@yahoogroups.com, Holger Will <[EMAIL PROTECTED]> 
> wrote:
> > deeti_dave schrieb:
> > 
> > > Hi There,
> > >
> > > I am having trouble in using getURL()/parseXML() in svg. I am 
> using
> > > a custom made webserver, could it be the one, not supporting the
> > > request? I am getting "request failed" alert everytime I try. I 
> am
> > > using IE 6.0 browser, and I checked that it works fine when 
> loading
> > > data from xml files in html pages. The svg part seems to be 
> showing
> > > okay. I am using very simple code in my svg file here:
> > >
> > >
> > >
> > > var svgdoc;
> > >
> > > function getFile(evt){
> > >   svgdoc = evt.getTarget().getOwnerDocument();
> > > getURL("testXML.xml", testFunction);
> > > alert("HIII");
> > > }
> > >
> > > function testFunction(obj){
> > > var string = '';
> > >   if(obj.success){
> > > string = obj.content;
> > > var xmldoc = parseXML(obj.content,svgdoc)
> > > var nodes = xmldoc.childNodes;
> > > for(var i=0; i > >   var group = nodes.item(i);
> > >   alert("group: "+group);
> > > }
> > >  
> > >   }else{
> > >alert("request failed !")
> > > }
> > > }
> > >
> > >
> > > my xml file is:
> > >
> > > 
> > > 
> > >   
> > > 
> > >   Lname
> > >   Fname
> > > 
> > >   
> > > 
> > >
> > >
> > >
> > > I would really appreciate it if someone can help me...
> > > Thank you.
> > >
> > >
> > >
> > your code does work in IE+ASV6 when you remove the  prolog 
> from 
> > your .xml file.
> > 
> > hth
> > Holger




 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12h4o3uvm/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=112399/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy.
~-> 

-
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: Real time map animation in svg

2005-08-09 Thread Heiko Niemann
Hi Nathan,

since you have come that far I was wondering where you actually need
help. I assume you eventually will store the GPS data in some database
(some kind of ID, coordinates, timestamp, ...). On a webserver you
would have some sort of script (php,jsp,asp,...) to generate the data
you want to send to your svg/application. That data could be in xml
format or - which I generally use - in JSON format. The
svg/application would contain some routine/interval calling the script
on the webserver via getURL() and then you can simply process the data
 that was retrieved -> update positions of objects that are already
shown, delete objects, add new objects and so on. If your data is in
xml format you will use parseXML() to access it, if it is JSON format
you will use eval().

I built a little sample simulating the whole process. You will need
two windows:

#1: Cockpit - can simulate a moving object that sends coordinates in a
certain interval (GPS data):

http://www.zuccaralloo.de/devgroup/samples/realTimeCockpit.svg

#2: Monitor - simulates the monitor/application that retrieves the
data from the webserver and shows all objects (so if several people
should be online at the same time, everyone can watch everybody else)

http://www.zuccaralloo.de/devgroup/samples/realTimeMonitor.svg


Those samples work with Squiggle/Batik and ASV3/ASV6 on FF, IE6, and
maybe others.



Regards,

Heiko






--- In svg-developers@yahoogroups.com, "sent1729" <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I am trying to build an application for real time mapping using SVG.I 
> would greatly appreciate any suggestion. 
> 
> I am using Apache squiggle browser. I would like to show the GPS 
> points that I collect moving in real time on the browser. I am 
> planning on using a java program that can communicate to the com-port 
> and writes the NMEA strings to a text file(I have done this using VBA 
> in AutoCAD map). I have conversion routines that converts the raw 
> lat/lon to the SVG coordinates in which the raster and vector layers 
> are displayed (I've already got the georeferenced vector layers and 
> the raster aerial imagery to display on the svg browser).
> 
> Now is it possible to see the GPS point(in SVG coordinates) moving 
> real time on the screene?. In other words, it should be like a GPS 
> navigation tool that tracks and shows the motion of any vehicle on 
> the screen(with raster and vector layers) based on the input from the 
> GPS reciever.
> 
> Thanks for any input.
> Nathan.




 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hcpb2qg/M=362335.6886445.7839731.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123663684/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!.
~-> 

-
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!!!Draw complex lines with SVG

2005-08-23 Thread Heiko Niemann
Hi,

unless you draw horizontal or vertical lines there is no easy solution
for this. For the latter you could use patterns.

If you want to draw curves you can define custom elements and a custom
font and then use script to create complex paths.

Sample showing some of the lines you are looking for:

http://www.zuccaralloo.de/devgroup/samples/complexPaths.svg


More samples were I used this technique:

http://www.zuccaralloo.de/devgroup/samples/railroad.svg
http://www.zuccaralloo.de/devgroup/samples/weatherFronts.svg
http://www.zuccaralloo.de/devgroup/samples/textPathMarkers.svg


Another sample showing a different technique for special paths:

http://www.zuccaralloo.de/devgroup/samples/curlyCurves.svg


Of course: all these techniques have their limits - sharp corners e.g.
- but in some cases they might be useful.

Regards,

Heiko
 



--- In svg-developers@yahoogroups.com, zhu yang <[EMAIL PROTECTED]> wrote:
> Hi, group
> I met some difficulties for drawing the following lines with SVG.
Click the hyperlink, you can see the desired line
> 
> lane
http://pg.photos.yahoo.com/ph/zhg331/detail?.dir=/f620&.dnm=2d34.jpg&.src=ph
> Bus route
>
http://pg.photos.yahoo.com/ph/zhg331/detail?.dir=/f620&.dnm=d6e0.jpg&.src=ph
> railroad
>
http://pg.photos.yahoo.com/ph/zhg331/detail?.dir=/f620&.dnm=14a0.jpg&.src=ph
> nautical
>
http://pg.photos.yahoo.com/ph/zhg331/detail?.dir=/f620&.dnm=6999.jpg&.src=ph
> tripleGraded
>
http://pg.photos.yahoo.com/ph/zhg331/detail?.dir=/f620&.dnm=7087.jpg&.src=ph
> coutour
>
http://pg.photos.yahoo.com/ph/zhg331/detail?.dir=/f620&.dnm=cdb8.jpg&.src=ph
> 
> BTW, the path has been determined. Is it possible to draw these
lines without changing the path.
> 
> Thank you very much
> 
>   
> -
>  Start your day with Yahoo! - make it your home page 
> 
> [Non-text portions of this message have been removed]




 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12h3mpu6d/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124848865/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy.
~-> 

-
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: Can I use pattern to fill a Path?

2005-09-01 Thread Heiko Niemann
Hi Zhu,


--- In svg-developers@yahoogroups.com, zhu yang <[EMAIL PROTECTED]> wrote:
> Hi, guys
>  
> I tried to use pattern or symbols instead of the font. My method is
to use the pattern as the stroke to draw a line. such as 
>  
> 
> 
>  x="0" y="0" width="10" height="5" viewBox="0 0 20 10" orient='auto'>
> 
> 
> 
> 
> 
> 
> 
>  style="fill: url(#test); stroke: black;"/>
> 
> 
> 
> 
> 
>  
>  
> However, the pattern seems only work on horizental line. I think
unlike the marker, the pattern has no orient="auto" parameter to
rotate the patttern along path automatically. Do you think it is
possible to reach the same result as with font?
>

no that's not possible. 

Regards,

Heiko





 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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/