Беларускі вектар

Belarusian vector

Folder navigation, original size, dimensions and current zoom now in Opera SVG Viewer

, ,


It's been a long time since I updated my widget on this blog, but I've been making regular commits, so if you wanted you could pull the latest source code and see the progress on the widget.

Finally folder navigation is implemented in the viewer, which required quite a bit of head scratching on my part smile. Another tricky thing was making files display at their original size, but now it's working fine. So let me list the changes in this version of the SVG viewer.
  • ADDED (sub-)folder navigation
  • ADDED ability to display images at their original size
  • ADDED new menu items: Fit Image to Viewing Area, Only Fit Large Images, Zoom In, Zoom Out, Reset Zoom and Position, Disable Zoom and Pan, Wireframe mode, Hotkeys
  • ADDED and CHANGED some hotkeys
  • Width/height, viewBox attributes and current zoom level are now displayed in the status bar
  • If current image has <title> it's displayed as the widget title, like browsers do with HTML files
  • Improved speed of scanning folders for files
  • Tweaked UI


Feel free to tell me about the bugs found, and features you miss in the viewer.

Download Opera SVG Viewer v2.0b5

SVG Portrait of Marusia

Comments

Unregistered user Thursday, December 15, 2011 4:54:08 AM

Anonymous writes: when i click on a thumbnail, the loader indicator appear but the image don't.

Spadar ShutSpShut Thursday, December 15, 2011 8:06:12 AM

When this happens, if you right click on the widget and select Developer tools > Error console, what Javascript errors do yo see there?

Unregistered user Thursday, December 15, 2011 1:12:39 PM

Anonymous writes: I'm using Opera 11.60 and the error log is this: [15/12/2011 10:06:48] Widgets Widget loading warning: element not fully defined. [15/12/2011 10:06:49] Widgets Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute. [15/12/2011 10:06:50] Widgets Widget loading warning: element not fully defined. [15/12/2011 10:06:50] Widgets Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute. [15/12/2011 10:06:50] Actualización automática Scheduled new update check in 98990 seconds. [15/12/2011 10:06:50] Actualización automática AutoUpdate activated. [15/12/2011 10:07:47] Widgets Widget loading warning: element not fully defined. [15/12/2011 10:07:47] Widgets Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute.

Unregistered user Thursday, December 15, 2011 1:22:44 PM

david writes: Sorry for the text mess, I resend the message: I'm using Opera 11.60 and this is the error log: [15/12/2011 10:06:48] Widgets Widget loading warning: element not fully defined. [15/12/2011 10:06:49] Widgets Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute. [15/12/2011 10:06:50] Widgets Widget loading warning: element not fully defined. [15/12/2011 10:06:50] Widgets Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute. [15/12/2011 10:06:50] Actualización automática Scheduled new update check in 98990 seconds. [15/12/2011 10:06:50] Actualización automática AutoUpdate activated. [15/12/2011 10:07:47] Widgets Widget loading warning: element not fully defined. [15/12/2011 10:07:47] Widgets Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute.

davidcs1 Thursday, December 15, 2011 1:29:42 PM

Sorry, now I hope it works, I resend the message:

I'm using Opera 11.60 and this is the error log:

[15/12/2011 10:06:48] Widgets

Widget loading warning: <id> element not fully defined.
[15/12/2011 10:06:49] Widgets

Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute.
[15/12/2011 10:06:50] Widgets

Widget loading warning: <id> element not fully defined.
[15/12/2011 10:06:50] Widgets

Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute.
[15/12/2011 10:06:50] Actualización automática

Scheduled new update check in 98990 seconds.
[15/12/2011 10:06:50] Actualización automática

AutoUpdate activated.
[15/12/2011 10:07:47] Widgets

Widget loading warning: <id> element not fully defined.
[15/12/2011 10:07:47] Widgets

Widget loading warning: License href='(null)' is neither a valid IRI, nor a path within a widget - ignoring this attribute.

Spadar ShutSpShut Thursday, December 15, 2011 7:42:12 PM

Is this log from the widget error console or from Opera's? This seems to be messages of opera extensions, not the widget's. You need to right click on the widget itself and select Developer tools > Error console menu item to see the widget's errors.

davidcs1 Thursday, December 15, 2011 8:51:48 PM

this is the log in a large screenshot, because I cant't copy the text.

http://s9.postimage.org/qp3a289pp/console_error_log.png

Spadar ShutSpShut Thursday, December 15, 2011 10:21:18 PM

Thanks, now I can see the error. Does this happen on all files or on some particular ones? Could you send them to me?

davidcs1 Thursday, December 15, 2011 10:40:56 PM

In all files, included the samples.

btw, the version 1.2 don't have this problem to me.

Spadar ShutSpShut Friday, December 16, 2011 7:50:59 PM

Seems rather strange. Do you have enough space on the disk the widget is installed?
You could try to download the source code from here http://code.google.com/p/opera-svg-viewer/ which has been updated since this blog post, maybe the issue you are having is fixed already.

Unregistered user Monday, January 16, 2012 8:12:02 PM

zemane writes: I am also having the same issue described above; using Opera SVG Viewer v2.0b5. When I open the Viewer inside Opera, there is already several lines of messages (! on yellow triangles and red circles) in the Developer Tools > Error Console. I could not copy all of them, but here is the last one: (!) [1/16/2012 11:39:17 AM] CSS - widget://wuid-4f14273b-61df-04e5-0ea1-2bb461acb013/index.xhtml Inlined stylesheet Declaration syntax error Line 1: -wholerow a, .jstree .jstree-wholerow a:hover { text-indent:-9999px; !important; --------------------------------------------------------------------------------^ Then, I click on an Inkscape SVG thumbnail and another error message shows up: (!) [1/24/1970 10:34:22 PM] JavaScript - widget://wuid-4f14273b-61df-04e5-0ea1-2bb461acb013/index.xhtml Event thread: load Uncaught exception: TypeError: Cannot convert 'SVGRoot.document' to object Error thrown at line 675, column 2 in (el) in widget://wuid-4f14273b-61df-04e5-0ea1-2bb461acb013/scripts/OSV.js: SVGRoot.document.insertBefore(css, SVGRoot); called from line 1, column 0 in (event) in widget://wuid-4f14273b-61df-04e5-0ea1-2bb461acb013/index.xhtml: OSV.initObject(this) Notice the timestamp, it changes from current date to Jan/24/1970; maybe there is a clue in there. The last thing is, if you click on File > Exit it won't close; but you can close clicking on the red X, right-click > Close, or Alt+F4. Thanks Spadar Shut for developing this plugin, it is very much appreciated. Cheers, --Ze Mane

Spadar ShutSpShut Tuesday, January 17, 2012 2:52:03 PM

Ze Mane, thanks for reporting.
I've already fixed this bug and will post an updated widget in a couple of days.

Write a comment

New comments have been disabled for this post.