正确的方式与< svg> [英] A right way to work with <svg>

查看:73
本文介绍了正确的方式与< svg>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果SVG文件中有完整的场景,使用SVG的正确方法是什么?

What is a right way to work with SVG if I have full scene in SVG file?


  1. 将场景拆分为多个文件

  2. 将整个场景加载到一个元素,然后对场景中的组进行动画处理?


推荐答案

这取决于你的工作方式。我想象,与其他人,例如动画师等,他们将经常提供单独的文件。所以它可能会更容易这种方式。我不认为这是一个正确的答案。如果你一次性加载它,至少你不必工作,当各种异步加载完成,虽然。

It depends how you work. I would imagine that working with others, e.g animators etc, that they would often provide separate files. So it may work out easier that way. I don't think there's a right answer to this one though. If you load it in one go, at least you don't have to work out when various async loads have finished though.

这篇关于正确的方式与< svg>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆