[svg-developers] Re: test for mouse position within shape?
Thanks, Philippe. http://www.kevlindev.com/geometry/2D/polygon-in-out.svg depends on Java; I want to do the svg widgets project I'm working on with just javascript, svg and xml (maybe php5 if I need massive amounts of data storage). I did a search on PointInPolygon and found a C function that I will try to convert to javascript, so your reply was very helpful. Thanks, Dave 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] test for mouse position within shape?
Is there a way to test to see if a mouse position is within a shape? If one uses getBBox() on a triangle, for example, the results are not very useful if one wants to know if the mouse is really within the triangle. Dave 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: external rcc in Adobe Viewer 6?
I've been thinking that the key to this is to get any page up and running in its simplest state and then layer in the goodies like filters, gradients, shapes, animations, etc. That way the user can see what's there before getting impatient and leaving. This could get messy because you would have to keep track of each widget's visual state so if the user went on to another "page", you could continue to complete the "layering" after the widgets are displayed/hidden as needed. It would also be great to be able to preload the most likely widgets the user will use next after the page is fully loaded so they could be visually finalized before displaying them. Memory usage will probally approach that of an normal application: just need to find creative ways of loading the widgets a little at a time. Something ought to be on the user's screen within the first few seconds of linking to the page. Couldn't get your old example to load. These messages are really helping me to clarify this concept. Thanks for your input. dave --- In [EMAIL PROTECTED], "Alastair Fettes" <[EMAIL PROTECTED]> wrote: > Dave, > > Wow, you just got the entire idea behind how I intend to make multi- > form applications using SPARK. That is exactly the way that I intend > to do things. Basically you author your entire application (a web > page may be considered an "application") in one SVG document and you > hide/show each "view" (window/form/frame/etc) as you go through the > application. Hide/show operations are performed by simply changing > the class attribute to use a predefined CSS class called "hide" which > has display:none (or could be opacity:0). This is all very quick and > will also speed up rendering because the scripting doesn't really > slow down if there aren't many objects on the screen that are visible. > > One thing for you to keep in mind when you do this is memory > constraints and trying to avoid having too many script objects loaded > at one time. A way to solve this problem is to dynamically > load/unload portions of your application as they become necessary. I > did an example of this a while ago using a very old version of my > widgets. The example can be found at: > http://www.schemasoft.org/resources/samples/afettes/demo0/simpleExampl > e.svg > > Note that the "Parent Window" is static when the page is first > loaded. When you click the "Enable/Show Window 2" button the "Parent > Window" becomes active as it's window controller is loaded and the > window becomes dynamic. > > Jim, > > My idea of a "web widget" is basically any form of interactive GUI > component. The interaction does not necessarily have to be user > initiated as it could simply be say a status window. As for using > DHTML over SVG I can't say I agree. The differences between a 100% > script based SVG app and a DHTML app don't seem to be too much but if > you reduce the amount of script used (say for svg creation) and > increase the amount of declarative SVG all of a sudden SVG apps > become very powerful. The problem with using DHTML as a user > interface technology is that it has very specific layout rules and > getting around them is a pain in the butt. SVG doesn't have any of > these layout problems (though it has it's own layout deficencies such > as no text flow, can you tell I'm looking forward to SVG 1.2?) so > therefore it gives the programmer the ability to think outside of the > box (or in DHTML's case the !). > > Anyways, just my thoughts on the matter. > > Cheers, > Alastair > > --- In [EMAIL PROTECTED], "orchidsonline" > <[EMAIL PROTECTED]> wrote: > > > What's a web widget? > > > > > > Good question. My view is that it is an object that: > > > > 1. has a predefined default look and behavior > > > > 2. can respond to user events from any widget on the web page, if > > necessary > > > > 3. is modular > > > > 4. and can use svg to give it some pizz. > > > > Examples are header, footer, columns, menu, buttons, text > containers, > > forms, various parts of a shopping cart, tabbed folder Almost > > anything that you see on a webpage can be made and packaged as a > > widget. > > > > I plan to design a one-page website using these widgets (in effect, > a > > web application like Mozilla's XUL). There is no reason to link to > > other pages within a site when you can just hide widgets and show > > widgets for each page. Fad
[svg-developers] Re: external rcc in Adobe Viewer 6?
> What's a web widget? Good question. My view is that it is an object that: 1. has a predefined default look and behavior 2. can respond to user events from any widget on the web page, if necessary 3. is modular 4. and can use svg to give it some pizz. Examples are header, footer, columns, menu, buttons, text containers, forms, various parts of a shopping cart, tabbed folder Almost anything that you see on a webpage can be made and packaged as a widget. I plan to design a one-page website using these widgets (in effect, a web application like Mozilla's XUL). There is no reason to link to other pages within a site when you can just hide widgets and show widgets for each page. Fade-outs and fade-ins, etc., could be used as visual clues. Need to keep track of "state" rather than changing pages. Can use JSRS to communicate with the server and database. I believe that as broadband use increases web users will demand that a site provide more than just info.; I think that effective, interactive visual content will also become more and more important. dave --- In [EMAIL PROTECTED], "Jim Ley" <[EMAIL PROTECTED]> wrote: > > "orchidsonline" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I am just getting into SVG and XML from a DHTML-PHP-MYSQL mentality > > and am excited about the creative possibilities. But is SVG ready to > > be used as a replacement for DHTML yet? > > No, SVG is not at all an appropriate replacement for DHTML, DHTML is the > dominant technology and much more appropriate than SVG for almost > everything - of course there's lots of things DHTML can't do, and this is > where you should be looking at SVG - mapping and charts are the obvious > choices. > > > 2. Any thoughts/suggests concerning coding web widgets using SVG? > > What's a web widget? > > Jim. 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: Customise context menu
There's a good example on this site: http://svglbc.datenverdrahten.de/ Here's some code: http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg11.dtd"; [ http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"; a3:scriptImplementation ( Adobe | browser | Microsoft | Netscape ) "Adobe"> ] > http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:ev="http://www.w3.org/2001/xml-events"; > var newMenuRoot = parseXML(printNode(document.getElementById ('newMenu')), contextMenu); contextMenu.replaceChild( newMenuRoot.firstChild, contextMenu.firstChild ); function MyFunction() { alert("MyFunction"); } function GetPosition( evt ) { alert("GetPosition"); } Custom Menu Zoom &In Zoom &Out &Original View &My Function Submenu Item1 Item2 Item3 Menu Link... Higher &Quality &Pause &Mute &Find... Find &Again &Copy SVG &View SVG... View Sourc&e... &Save SVG As... Sa&ve Current State... &Help... About SVG Viewer... NOTE: VertSB.js is available in the "files" section of this site; it is not necessary for what you want to do. dave --- In [EMAIL PROTECTED], "richardgnyla" <[EMAIL PROTECTED]> wrote: > I would like to not only disable the zoom and pan in the right click > context menu, but also to remove entirely from the menu. > > I have seen a bit of code to totally remove the context menu, but > still feel that some parts should be there such as whos its by, copy > etc.. > > I have only seen links that either get a script error or dont > explain it. > > Any links, tutorials > > Many thanks > > Richard 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?
Seems like SPARK and/or CGUI are the only logical options. I'll start digging into them tomorrow. Thanks to all for your help. dave --- In [EMAIL PROTECTED], "Alastair Fettes" <[EMAIL PROTECTED]> wrote: > Hi Dave, > > I've had one or two thoughts on the matter as have a number of other > people concerning SVG based UI widgets. A short list of tech's are > as follows: > > 1. SPARK - http://www.schemasoft.org (#1 because I did it, lol) > 2. CGUI - http://homepage.usask.ca/~ctl271/cgui/ > 3. Kevin Lindsey - http://www.kevlindev.com/gui/index.htm > > These are all non-RCC/XUL/sXBL solutions. Straight SVG+ECMAScript. > Technically they *should* run in any browser. I know that SPARK has > some problems in the new native mozilla svg renderer it seems (not > quite sure but I'm looking into it). Christopher Lewis would be > better to answer for CGUI. Kevin Lindsey - I don't think his GUI > website has been updated for a while now. Maybe he's been busy with > Sharp Vector Graphics? > > Anwyays, I hope those links will get you started. > > Cheers, > Alastair > http://www.schemasoft.org > > PS. > 2. Any thoughts/suggests concerning coding web widgets using > SVG? > http://www.svgopen.org/2004/papers/SPARK/ > > I could always use some help! :) > > > > --- In [EMAIL PROTECTED], "orchidsonline" > <[EMAIL PROTECTED]> wrote: > > Thanks for the info. > > > > After researching SVG and all the X...s from w3, etc... > > > > 1. I would love to develop web widgets using SVG and XUL but then I > > am limited only to Mozilla 1.8. Also, it is unlikely that anyone > > will extract the stuff needed to make a SVG-XUL plugin for IE. > > > > 2. SVG and sXBL looks like it may be a good combo but no browser > > supports that possibility yet or is likely to in the near future. > > > > 3. If I go the IE+Adobe Viewer route, then I can't use either XUL > or > > sXBL or RCC(which is dead anyway) with the SVG. Most of the Flash > > plugins are very restrictive in what they can do. > > > > > > I am just getting into SVG and XML from a DHTML-PHP-MYSQL mentality > > and am excited about the creative possibilities. But is SVG ready > to > > be used as a replacement for DHTML yet? > > > > > > So > > > > 1. Are any of the above conclusions way off base? > > > > 2. Any thoughts/suggests concerning coding web widgets using SVG? > > > > dave > > > > > > --- In [EMAIL PROTECTED], "Heiko Niemann" <[EMAIL PROTECTED]> > > wrote: > > > > > > 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 ~--> 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: external rcc in Adobe Viewer 6?
Thanks for the info. After researching SVG and all the X...s from w3, etc... 1. I would love to develop web widgets using SVG and XUL but then I am limited only to Mozilla 1.8. Also, it is unlikely that anyone will extract the stuff needed to make a SVG-XUL plugin for IE. 2. SVG and sXBL looks like it may be a good combo but no browser supports that possibility yet or is likely to in the near future. 3. If I go the IE+Adobe Viewer route, then I can't use either XUL or sXBL or RCC(which is dead anyway) with the SVG. Most of the Flash plugins are very restrictive in what they can do. I am just getting into SVG and XML from a DHTML-PHP-MYSQL mentality and am excited about the creative possibilities. But is SVG ready to be used as a replacement for DHTML yet? So 1. Are any of the above conclusions way off base? 2. Any thoughts/suggests concerning coding web widgets using SVG? dave --- In [EMAIL PROTECTED], "Heiko Niemann" <[EMAIL PROTECTED]> wrote: > > 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: external rcc in Adobe Viewer 6?
Thanks. What's replacing this library concept in svg1.2? dave --- In [EMAIL PROTECTED], "André M. Winter" <[EMAIL PROTECTED]> wrote: > you could check > > <http://www.carto.net/papers/svg/webmapping/files/thematicMap/> > > for a working example. but RCC is outdated by SVG1.2. > > andré > > -- > ___ > andre m. winter, > <http://www.carto.net/> > <http://www.vectoreal.com/> > <http://tirolatlas.uibk.ac.at/> > > > orchidsonline wrote: > > >Does anyone have an external RCC file working in Adobe Viewer 6? > > > >I cannot seem to get it working. > > > >Using the example from http://www- > >106.ibm.com/developerworks/library/x-svgxf2/ I am making a call to a > >svg "library" file in the same directory using: > > > > > > > >This file starts with: > > > > > > >xmlns="http://www.w3.org/2000/svg"; > >xmlns:xlink="http://www.w3.org/1999/xlink"; > >xmlns:ev="http://www.w3.org/2001/xml-events";> > > > >http://xmlns.fuchsia- > >design.com/ui/"> > > > > > > > > > x=".5" y=".5" rx="5" ry="5" width="0" height="25" /> > > > > > > .. > > > > > >What am I overlooking? > > > >Dave > > > > > > > > > > > > > >- > >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 Links > > > > > > > > > > > > > > > > > > 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] external rcc in Adobe Viewer 6?
Does anyone have an external RCC file working in Adobe Viewer 6? I cannot seem to get it working. Using the example from http://www- 106.ibm.com/developerworks/library/x-svgxf2/ I am making a call to a svg "library" file in the same directory using: This file starts with: http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:ev="http://www.w3.org/2001/xml-events";> http://xmlns.fuchsia- design.com/ui/"> .. What am I overlooking? Dave 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/