[svg-developers] Re: SVG#, examples and interactivity

2005-02-06 Thread scasquiov


   Thanks for the reply. I will probably need to use the transform
  functions but not just yet. Meanwhile, rendering was taking to 
  long so I made a little digging :) ended up making a minor change 
  with a performance gain of at least 500% in rendering my test 
  SVG  :)  It would be great if you took a look to check if 
  it's worth adding this change to the latest version. How would 
  you prefer I send it to you? 
 
 Either way, on this list or directly. I am ambivalent : ) I 
 have been gathering fixes from all over and getting ready for 
 another commit once I have this transform stuff working (oh so 
 close now!). As an aside, a lot of the performance bottlenecks 
 are in exception creation many around CSS and colors. With a 
 slight change to the CSS regex I got a 2000% increase in the 
 debugger. It didn't make that much of a difference outside of 
 the debugger, but wow. I wouldn't use SharpVectorGraphics 
 without it. Then again, I am skittish about committing something 
 so unresearched... and lately I have been typing ambilevousy.
 


 The bottleneck you talk about is probably the one I worked on too; I
also have some doubts about how I solved it though. I'll send you the
changes off-list so that i can send them attached.
 If I find some extra time I'll use a profiler to identify other
eventual bottlenecks. 

 Cheers,
 /FC







-
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#, examples and interactivity

2005-02-06 Thread scasquiov



 Hi,

You need to reference the following dlls:
  SharpVectorBindings.dll 
  SharpVectorCss.dll  
  SharpVectorDom.dll  
  SharpVectorObjectModel.dll  
  SharpVectorRenderingEngine.dll
  SharpVectorScripting.dll  
  SharpVectorXml.dll
  SharpZipLib.dll   
  SvgComponents.dll   
  nunit.framework.dll 

and you can use a SvgComponents.SvgPictureBox to display the SVG
image, all you need is to add one to your form and load the svg file
when you require:

  svgPictureBox1.SourceURL = .\\test.svg;


 Regards,
 /FC



--- In svg-developers@yahoogroups.com, alvin w [EMAIL PROTECTED] wrote:
 Jeff,
  
 I am using SharpVectorGraphics in my project. But I don't know how
to use it to display an SVG file in my project. May I know which
library should I include in the references of my project and which
Windows Component (control) must I add in to display the SVG image.
  
 PinYiow
 
 
 Jeff Rafter [EMAIL PROTECTED] wrote:
 
   Thanks for the reply. I will probably need to use the transform
  functions but not just yet. Meanwhile, rendering was taking to long so
  I made a little digging :) ended up making a minor change with a
  performance gain of at least 500% in rendering my test SVG  :)  It
  would be great if you took a look to check if it's worth adding this
  change to the latest version. How would you prefer I send it to you? 
 
 Either way, on this list or directly. I am ambivalent : ) I have been 
 gathering fixes from all over and getting ready for another commit once 
 I have this transform stuff working (oh so close now!). As an aside, a 
 lot of the performance bottlenecks are in exception creation many
around 
 CSS and colors. With a slight change to the CSS regex I got a 2000% 
 increase in the debugger. It didn't make that much of a difference 
 outside of the debugger, but wow. I wouldn't use SharpVectorGraphics 
 without it. Then again, I am skittish about committing something so 
 unresearched... and lately I have been typing ambilevousy.
 
 All the best,
 Jeff Rafter
 
 
 -
 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 the Yahoo! Terms of Service. 
 
 
   
 -
 Do you Yahoo!?
  Yahoo! Search presents - Jib Jab's 'Second Term'
 
 [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: SVG#, examples and interactivity

2005-02-06 Thread scasquiov



 There's a conditional compilation constant named TEST in SVG#'s
source code, I think if you build the project without it you won't
need to reference nunit.framework.dll, otherwise you will.

 Regards,
 /FC


 thank for your reply. But are you sure I need to include
nunit.framework.dll in my project since I am not using nunit to do the
unit testing?
  
  
 PinYiow
 
 
 scasquiov [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 You need to reference the following dlls:
   SharpVectorBindings.dll 
   SharpVectorCss.dll  
   SharpVectorDom.dll  
   SharpVectorObjectModel.dll  
   SharpVectorRenderingEngine.dll
   SharpVectorScripting.dll  
   SharpVectorXml.dll
   SharpZipLib.dll   
   SvgComponents.dll   
   nunit.framework.dll 
 
 and you can use a SvgComponents.SvgPictureBox to display the SVG
 image, all you need is to add one to your form and load the svg file
 when you require:
 
   svgPictureBox1.SourceURL = .\\test.svg;
 
 
 Regards,
 /FC
 
 
 
 --- In svg-developers@yahoogroups.com, alvin w [EMAIL PROTECTED] wrote:
  Jeff,
   
  I am using SharpVectorGraphics in my project. But I don't know how
 to use it to display an SVG file in my project. May I know which
 library should I include in the references of my project and which
 Windows Component (control) must I add in to display the SVG image.
   
  PinYiow
  
  
  Jeff Rafter [EMAIL PROTECTED] wrote:
  
Thanks for the reply. I will probably need to use the transform
   functions but not just yet. Meanwhile, rendering was taking to
long so
   I made a little digging :) ended up making a minor change with a
   performance gain of at least 500% in rendering my test SVG  :)  It
   would be great if you took a look to check if it's worth adding this
   change to the latest version. How would you prefer I send it to
you? 
  
  Either way, on this list or directly. I am ambivalent : ) I have been 
  gathering fixes from all over and getting ready for another commit
once 
  I have this transform stuff working (oh so close now!). As an
aside, a 
  lot of the performance bottlenecks are in exception creation many
 around 
  CSS and colors. With a slight change to the CSS regex I got a 2000% 
  increase in the debugger. It didn't make that much of a difference 
  outside of the debugger, but wow. I wouldn't use SharpVectorGraphics 
  without it. Then again, I am skittish about committing something so 
  unresearched... and lately I have been typing ambilevousy.
  
  All the best,
  Jeff Rafter
  
  
  -
  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 the Yahoo! Terms of
Service. 
  
  
  
  -
  Do you Yahoo!?
   Yahoo! Search presents - Jib Jab's 'Second Term'
  
  [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 the Yahoo! Terms of Service. 
 
 
   
 -
 Do you Yahoo!?
  Yahoo! Mail - You care about security. So do we.
 
 [Non-text portions of this message have been removed]





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

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

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

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





RE: [svg-developers] Square as basic shape

2005-02-06 Thread Doug Schepers

Hi, Jerry-

Jerrold Maddox wrote:
| 
| NIce work on the regular polygons. They would be especially 
| useful for me in to use in patterns and as a way to do 
| tessellations and tiling.

Yes, I can see how regular polygons, in combination with clipPath, could
make some very cool tesslations.

Mind you, you can do that now, you just have to calculate the shapes by hand
(or with a graphical editor).

| (If anyone on the list don't realize that these go way beyond 
| M.C Escher, look at the examples, especially Japanese and 
| Islamic, on this site:
| http://library.thinkquest.org/16661/gallery/index.html )
| 
| One other, maybe naive, question - how hard would it be to 
| merge 3 hexagons into a diaper shape, so they could be used 
| in SVG very econmically.
| 
| Here is an Flash animation using them so you will know what 
| shape I am talking about:
| http://www.courses.psu.edu/art/art003_jxm22/animationsample.html

In SVG1.2, this would be doable, since you will be able to use VectorEffects
to make a single outline stroke for all 3 of the hexagons. However, that may
be overkill... You can do that right now using a polygon (again, calced by
hand), and it would be less computationaly expensive.

Regards-
Doug

doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.
 



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

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

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

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





Re: [svg-developers] Drag and Drop for groups

2005-02-06 Thread Burkhard Stollenwerk

Hello Doug,

it looks pretty fine.
But I have two problems.
1.)Not any group should be moved.
2.)I take the svg document by using PHP callback function. then SVG Document
is undefined.
The Onload function wouldn´t called.
Any solution about this?

Burkhard Stollenwerk


- Original Message -
From: Doug Schepers [EMAIL PROTECTED]
To: svg-developers@yahoogroups.com
Sent: Friday, February 04, 2005 1:56 PM
Subject: RE: [svg-developers] Drag and Drop for groups




 Thanks for the kind words, Philippe.

 As you said, it's a pretty trivial problem, unless I'm misunderstanding
 something. I made a slight alteration to my sample, to show how to move
 groups:

 http://svg-whiz.com/svg/DragAndDropGroup.svg

 Regards-
 Doug

 doug . schepers  @ vectoreal.com
 www.vectoreal.com ...for scalable solutions.


 Philippe Lhoste wrote:
 |
 | Jérôme Tricand de la Goutte wrote:
 |  hello Burkhard.
 | 
 |  I don't have too much time now, i'm sorry The main issue for this
 |  problem is handling the mouse.
 |  You must detect onmousedown event, memorize it and the
 | object on which you've clicked, then react to onmousemove by
 | moving the object, until onmouseup is detected.
 | 
 |  The onmousemove and onmouseup can be fired on the SVG
 | document itself, but onmousedown must be fired on the group only.
 | 
 |  I'll try to make code when I'va time
 |
 | Well, usually I recommand to take a look at the good example
 | given by Doug Schepers at http://svg-whiz.com/samples.html
 | (DragAndDrop example).
 | It handles correctly transformations (zoom and pan) and is
 | quite robust.
 | The sample apply to elements only, but it should be easy,
 | given the hints provided by Jérôme, to apply it to groups.
 |
 | --
 | 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
 | --  --  --  --  --  --  --  --  --  --  --  --  --  --

 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005




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





RE: [svg-developers] Drag and Drop for groups

2005-02-06 Thread Doug Schepers

Hi, Burkhard-

I don't understand your questions. Perhaps you misunderstood the intent of
my sample. It's a very basic example of how to do drag-and-drop with groups.
I made a point of commenting the code, so that anyone who wants to figure
out how to adapt it to their own purposes can very easily do so. Obviously,
you will have to tear it apart and fit it into your own codebase.

To speak on your specific concerns:
1) Yes, it will drag any group (although this example might not work as-is
for grouped 'use' elements)... Keep in mind that it assumes that the element
grabbed is a top-level child of the group to be moved; if your SVG hierachy
markup is more complex than that, there are ways to find the proper group,
including testing against id and such;
2) Well, SVGDocument is just what I call it... Nothing magic about that,
just change the variable name. You could do something like this, too:

function Grab(evt)
{
   //get the document element, if it doesn't exist
   if ( !SVGDocument )
   {
  Init(evt);
   }
   
   // find out which element we moused down on
   var targetElement = evt.target;
   
   ...
};

Again, nothing magic about the onload event... You just need to initialize
the variables once.

Regards-
Doug

doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.
 

Burkhard Stollenwerk wrote:
| 
| Hello Doug,
| 
| it looks pretty fine.
| But I have two problems.
| 1.)Not any group should be moved.
| 2.)I take the svg document by using PHP callback function. 
| then SVG Document is undefined.
| The Onload function wouldn´t called.
| Any solution about this?
| 
| Burkhard Stollenwerk
| 
| 
| - Original Message -
| From: Doug Schepers [EMAIL PROTECTED]
| To: svg-developers@yahoogroups.com
| Sent: Friday, February 04, 2005 1:56 PM
| Subject: RE: [svg-developers] Drag and Drop for groups
| 
| 
| 
| 
|  Thanks for the kind words, Philippe.
| 
|  As you said, it's a pretty trivial problem, unless I'm 
|  misunderstanding something. I made a slight alteration to 
| my sample, 
|  to show how to move
|  groups:
| 
|  http://svg-whiz.com/svg/DragAndDropGroup.svg
| 
|  Regards-
|  Doug
| 
|  doug . schepers  @ vectoreal.com
|  www.vectoreal.com ...for scalable solutions.
| 



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

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

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

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





Re: [svg-developers] Drag and Drop for groups

2005-02-06 Thread Burkhard Stollenwerk

for example:

script file:
function ClickObj(evt)
 {
 }
 function MoveObj(evt)
 {
 }
 function OutClickObj(evt)
 {
 }
getURL(stallp.php,callback_get_tiere);

function callback_get_svg(urlRequestStatus)
{
 new_node=cb_parse(urlRequestStatus);
 child=svgdoc.getElementById(map)
 child.appendChild(new_node);
}


--

stallp.php:
print ('g id=Tier'.$i.'
 onmousedown=ClickDown(evt) onclick=ClickObj(evt)
onmousemove=MoveObj(evt)
onmouseup=OutOfObj(evt) onmouseout=OutOfObj(evt)
');


Why could the functions in scriptfile not found?

Burkhard Stollenwerk


function callback(..)



-
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] callback PHP and javascript

2005-02-06 Thread Burkhard Stollenwerk

Hello,
I ´ll drag and drop g objects.
But how could I can take the javascript functions from the javascript code by 
using the PHP created.


for example:

script file:
function ClickObj(evt)
 {
 }
 function MoveObj(evt)
 {
 }
 function OutClickObj(evt)
 {
 }
getURL(stallp.php,callback_get_tiere);

function callback_get_svg(urlRequestStatus)
{
 new_node=cb_parse(urlRequestStatus);
 child=svgdoc.getElementById(map)
 child.appendChild(new_node);
}


--

stallp.php:
svg
?
print ('g id=Tier'.$i.'
 onmousedown=ClickDown(evt) onclick=ClickObj(evt)
onmousemove=MoveObj(evt)
onmouseup=OutOfObj(evt) onmouseout=OutOfObj(evt)
');
?
/g
/svg


Why could the functions in scriptfile not found?
Canj anybody help me?

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/
 





Re: [svg-developers] Drag and Drop for groups

2005-02-06 Thread Burkhard Stollenwerk

Thanks Doug,

I ´ll try it again.
But I think the problem is the callback codeloading .
What do you think?

Burkhard
- Original Message -
From: Doug Schepers [EMAIL PROTECTED]
To: svg-developers@yahoogroups.com
Sent: Sunday, February 06, 2005 8:26 PM
Subject: RE: [svg-developers] Drag and Drop for groups




 Hi, Burkhard-

 I don't understand your questions. Perhaps you misunderstood the intent of
 my sample. It's a very basic example of how to do drag-and-drop with
groups.
 I made a point of commenting the code, so that anyone who wants to figure
 out how to adapt it to their own purposes can very easily do so.
Obviously,
 you will have to tear it apart and fit it into your own codebase.

 To speak on your specific concerns:
 1) Yes, it will drag any group (although this example might not work as-is
 for grouped 'use' elements)... Keep in mind that it assumes that the
element
 grabbed is a top-level child of the group to be moved; if your SVG
hierachy
 markup is more complex than that, there are ways to find the proper
group,
 including testing against id and such;
 2) Well, SVGDocument is just what I call it... Nothing magic about that,
 just change the variable name. You could do something like this, too:

 function Grab(evt)
 {
//get the document element, if it doesn't exist
if ( !SVGDocument )
{
   Init(evt);
}

// find out which element we moused down on
var targetElement = evt.target;

...
 };

 Again, nothing magic about the onload event... You just need to initialize
 the variables once.

 Regards-
 Doug

 doug . schepers  @ vectoreal.com
 www.vectoreal.com ...for scalable solutions.


 Burkhard Stollenwerk wrote:
 |
 | Hello Doug,
 |
 | it looks pretty fine.
 | But I have two problems.
 | 1.)Not any group should be moved.
 | 2.)I take the svg document by using PHP callback function.
 | then SVG Document is undefined.
 | The Onload function wouldn´t called.
 | Any solution about this?
 |
 | Burkhard Stollenwerk
 |
 |
 | - Original Message -
 | From: Doug Schepers [EMAIL PROTECTED]
 | To: svg-developers@yahoogroups.com
 | Sent: Friday, February 04, 2005 1:56 PM
 | Subject: RE: [svg-developers] Drag and Drop for groups
 |
 |
 | 
 | 
 |  Thanks for the kind words, Philippe.
 | 
 |  As you said, it's a pretty trivial problem, unless I'm
 |  misunderstanding something. I made a slight alteration to
 | my sample,
 |  to show how to move
 |  groups:
 | 
 |  http://svg-whiz.com/svg/DragAndDropGroup.svg
 | 
 |  Regards-
 |  Doug
 | 
 |  doug . schepers  @ vectoreal.com
 |  www.vectoreal.com ...for scalable solutions.
 | 



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