# HG changeset patch # User wycc # Date 1288792943 -28800 # Node ID 35b6a9411e26d3d94cee1b1b82d2445a74f84e52 # Parent 6d4b8c4051ff891ce931c886f94338ee07309767 Use inkscape:label to be the same way as the mbname. In this way, we can use the property editor to define name of the object. diff -r 6d4b8c4051ff -r 35b6a9411e26 nodejs/svg.js --- a/nodejs/svg.js Wed Oct 27 01:17:37 2010 +0800 +++ b/nodejs/svg.js Wed Nov 03 22:02:23 2010 +0800 @@ -97,6 +97,12 @@ if(mbname) { name = mbname.value(); mb_rt.mbnames[name] = obj; + return; + } + mbname = n.attr("label"); + if(mbname&&(mbname.value()!="")) { + name = mbname.value(); + mb_rt.mbnames[name] = obj; } }