admin管理员组文章数量:1435789
I'm developing a shemas in visio editor and later, after some changes, export them to svg format for view in browser.
I need a some method for identify my visio objects in svg file. This will be used in javascript for navigate over svg objects by link.
In the picture you can see, as Visio add the id to group or element. This id i can use in javascript, but this is added automatically, and i can't set it manually.
Is the method, to set these ids for my shapes in visio manually? For example group id of my wish is the: g#113-LI-601.
I'm developing a shemas in visio editor and later, after some changes, export them to svg format for view in browser.
I need a some method for identify my visio objects in svg file. This will be used in javascript for navigate over svg objects by link.
In the picture you can see, as Visio add the id to group or element. This id i can use in javascript, but this is added automatically, and i can't set it manually.
Is the method, to set these ids for my shapes in visio manually? For example group id of my wish is the: g#113-LI-601.
Share Improve this question asked Mar 7, 2015 at 23:17 Sergio BelevskijSergio Belevskij 2,9872 gold badges27 silver badges30 bronze badges3 Answers
Reset to default 1Not id, but i can set a title of an each group in visio drawing. After setting title of a group i can select them by this title in javascript.
So, after setting name in visio, we can see in svg title tag inside group definition:
Check out my add-in: http://vispublish.azurewebsites/
This add-in should solve this more or less. You can specify javascript ID and CSS class for each Visio element basically in Visio. On exporting SVG, the add-in post-processes the file and fixes all ids in the exported SVG file with specified ones / default ones (visio may export duplicates), plus fixes some Visio SVG glitches, and adds shape-data. You can export a local SVG using it also.
Related discussion: http://visguy./vgforum/index.php?topic=61.msg25233#msg25233
Sample: http://vispublish.azurewebsites/Diagram/Show/6d6bb81b-0daa-46c2-862b-8127b7e3c700
There is a Add-in for that. You can see it here https://unmanagedvisio./products/svg-publish/
You can change the id from the setting option in home menu after installing this plugin. Home->Setting->Developer->client id
Make sure the only way to save your client id is by removing the focus from that text box or just simple hit "Tab" after you are done with your custom id (client id)
本文标签: javascriptCreate attributes in visio drawing for export to svgStack Overflow
版权声明:本文标题:javascript - Create attributes in visio drawing for export to svg - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745643049a2667972.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论