-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigating between layers in separate SVG files should be possible! #4
Comments
I agree and will try to implement this soon. Right now, there's the openSUSE conference happening, so my time this week is a little more stretched than usual. I'll try to get to it when possible (hopefully this week). It probably won't be difficult to implement. Are you fine with specifying the external files directly? I guess I can try to load an external file as a lookup table, but I'm not sure if it will be as easy in the SVG XML DOM vs. the HTML DOM (which is what jQuery is optimized for). I think it will work, however. What does the lookup look like? What would you like it to look like? (It may need to be a certain way based on technical requirements. However, I can try to make it how you want first, and then work from there.) I'm thinking that it should be an external file, and we should make it optional. With that being the case, I think we'd absolutely need to have the files served from a webserver for this to work. (Although, I might be able to work around that, depending on the file format, if it's critical to work w/o a webserver for more than one file.) Being that it's so easy to even spin up a local webserver (with Python or Node.js (especially with |
I think the rational of needing this can be summarized simply: (Yeah, what you said) |
So, this is a little duplication & restating of the concept, but I think it's useful to simply state it here in the bug report: Cross-document linking would be implemented in two different ways:
This will be implemented in the JavaScript, and it would be useful to have a simple command-line utility that builds the external file. However, if there's a command-line something that builds it, then how are duplications resolved? For example: document-2.svg has #foo document-1.svg links to, but does not contain #foo: What happens? (I think the easiest thing to implement is make the last one take priority, if there are duplicates.) If the file is made by hand, it shouldn't be an issue. Also, if the IDs are unique across documents, then it also shouldn't be an issue. |
As of git commit 668c47a, you can now navigate between documents. As a bonus, you now may use forward/backward history in your browser to navigate screens as you can also link to a specific page via URL. As an even extra special bonus, if you make a SVG filter in Inkscape and call it "hover", it will apply that filter as a hover effect (on clickable elements) when hovering (which is fantastic for prelighting buttons). I plan on adding implied .svg extension support next. After that, I'll look into scanning the documents and making a lookup table for links. |
I don't think we had a backup of the text, sadly. (I did check archive.org, and it didn't have it either.) Closes issue #4
(copy/paste from the etherpad :) )
The next() function needs to be able to link between SVG files, as well as layers in the current file. The way I do this in the old JS:
Will the above work in the new coffeescript magic mockup or is there a better way?
The rationale for why I need to move between SVG files:
http://linuxgrrl.com/fedora-ux/Projects/Anaconda/Prototypes/Screens/
I have different functional areas of these mockups split into separate SVG files because if it was one big SVG file, it would be a nightmare to collaborate with other designers via SparkleShare. We'd be running into git merge conflicts all the time.
The text was updated successfully, but these errors were encountered: