# HG changeset patch # User wycc # Date 1280333719 -28800 # Node ID 492da72e6537f7aeb8617e13712273b20a981ffa # Parent 3a1e80de44fffe31cd12a246c5813b01a0506040 Add image tag support. diff -r 3a1e80de44ff -r 492da72e6537 nodejs/logo.png Binary file nodejs/logo.png has changed diff -r 3a1e80de44ff -r 492da72e6537 nodejs/svg.js --- a/nodejs/svg.js Thu Jul 29 00:12:18 2010 +0800 +++ b/nodejs/svg.js Thu Jul 29 00:15:19 2010 +0800 @@ -207,10 +207,13 @@ if (ref == null) return; sys.puts(ref); - if (ref.substr(0,7) != "file://") { + if (ref.substr(0,7) == "file://") { + ref = ref.substring(7); + } else if (ref.substr(0,5)=="file:") { + ref = ref.substring(5); + } else { return; } - ref = ref.substring(7); sys.puts("Load image "+ref); var w; var h; diff -r 3a1e80de44ff -r 492da72e6537 nodejs/test.svg --- a/nodejs/test.svg Thu Jul 29 00:12:18 2010 +0800 +++ b/nodejs/test.svg Thu Jul 29 00:15:19 2010 +0800 @@ -1,5 +1,6 @@ + + inkscape:window-y="25" + inkscape:window-maximized="0" /> +