开发者

Replacement for SVG

开发者 https://www.devze.com 2023-04-05 16:50 出处:网络
My project is using SVG and there is a plan to move out of SVG and replace the existing functionality with suitable replacement.

My project is using SVG and there is a plan to move out of SVG and replace the existing functionality with suitable replacement.

My current SVG apps does following things,

1. Exposes the object(SVG shapes) relations or dependency in screen.

When there are two dependent shapes (say rect1 and rect2), we draw a line from rect1 to开发者_C百科 react2 to say that they are dependent.

2. Triggers javascript functions when we fire certain events (click or mouse over) on shapes.

Is there any alternatives to replace the SVG and simply the drawing process?

I am thinking to store the shapes information in database and auto generate the shapes in UI.

Thanks in advance.


What about using canvas from HTML 5. Consider client browsers version when decide to use canvas.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号