是否有 svg 或 raphael 的库或工具可以平移和放大绘图?
有人知道是否有一个库(或类似库的东西)允许我创建带有文本注释的矢量图形(最好是基于 svg 或 raphael),并具有平移这些图形并放大它们的功能,当我放大时显示越来越多的细节,或者缩小时显示越来越少的细节,以便图像不会因与特定缩放级别无关的细节而混乱。
我知道我可以通过设置相应的视口来进行平移和缩放,但这仍然会显示我不想在缩小级别上看到的细节。
感谢您的指点。
Does somebody know if there is a library (or something like a library) that allows me to create text annoted vector graphics (preferably on the basis of svg or raphael) with the feature to pan over these graphics and zoom into them and, when I zoom into, shows more and more details, or, when zooming out, shows less details so that the image is not cluttered with details that are irrelevant for a particular zoom level.
I am aware I could do the panning and zooming with setting a corresponding viewport, but this would still show details that I don't want to see on a zoomed-out level.
Thanks for any pointers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SVGPan 是一个用于此目的的小脚本:
http://code.google.com/p/svgpan/< /a>
演示页面:
http://www.cyberz.org/projects/SVGPan/tiger.svg
SVGPan is a small script for this pourpose:
http://code.google.com/p/svgpan/
demo page:
http://www.cyberz.org/projects/SVGPan/tiger.svg
这里使用 Raphael
http 提供了一个解决方案: //dashasalo.com/2011/04/13/svg-image-zooming-and-panning-with-raphaeljs/
There is a solution provided here using Raphael
http://dashasalo.com/2011/04/13/svg-image-zooming-and-panning-with-raphaeljs/