XML Elves

XML Elves

<community>of XML and SVG Developers</community>


1st question

This is a discussion on 1st question within the SVG Questions forums, part of the SVG Forums category; Hi folks, I am new to SVG and am trying to get up to speed with it--I have a few ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2009, 09:42 AM
Junior Member
 
Join Date: Feb 2009
Posts: 2
Default 1st question

Hi folks,

I am new to SVG and am trying to get up to speed with it--I have a few questions.

Q1: how do I combine basic objects to form a composite object that I can deal with as a single object?

I have a simple circle with a guassian filter to blur the circle. Then I have a similar circle that is displayed over the blured circle for a drop shadow of the colored circle. I have both of these <circle ....> in a group like:
<g onmousedown..... onmousemove.... onmouseup.... >
<circle ....> with blur
<circle ....> regular circle with out blur filter
</g>

Now I do a transformation so I can move this composite object. But only the regular circle (the 1st circle) moves, that is, the blurred circle or the drop shadow does not move with the regular circle. Once I move the regular circle and expose the blurred shadow, I can move it. But they do not move as a single, combined object.

So, my 1st question is how do I combine objects to create composite objects that can be dealt with as a single object?

Q2: If my circle is small and I am trying to move it, if I move the mouse too fast the curzer moves out of the circle and the circle stops. I have an onmouseup event that sets a variable to false that stops the movement (as a number of the tutorial examples show). But this is problematic when the object is small because of the movement of the mouse.

So, what is a better technique for moving small objects with the mouse?

Thanks,

-Andres
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-13-2009, 08:44 AM
Junior Member
 
Join Date: Feb 2009
Posts: 2
Default answer

OK...I like talking to myself :-)

I have found the answer to my first question.

If I group my composite object within <defs> it all works as expected. I did not have my groups (<g>.>>...</g>) within <defs>....</defs>. Now that I put them within the <defs> it works.

SVG is really cool---I like this.

-Andres
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
1st, question


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -6. The time now is 01:21 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.0 RC3

Data recovery laptop
Need hard disk drive data recovery for yout laptop? Visit Data Clinic for cost effective and professional data recovery.


1 2 3 4 5 6 7 8 9 10 11 12 13 14