M
M
Millerish2017-01-24 18:43:05
css
Millerish, 2017-01-24 18:43:05

canvas or svg?

Hello!
What is the easiest way to implement the visual design of canvases? There should be such functions (with the mouse):
1) creation of rectangular and epileptic figures;
2) dragging figures;
3) changing the size of figures;
4) association (out of two one);
Desirable:
5) adding points and the ability to stretch them, push them (corners, etc.)
This can be done on canvas or svg, but there is no experience in working with graphics. What is easier and more suitable? What do you recommend for the fastest results?
PS
Also interested in the question in terms of performance, tk. now I just implemented it on div + js and there are lags.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri, 2017-01-24
@riky

fabrikjs
canvas, drag and drop out of the box, grouping.

D
dom1n1k, 2017-01-24
@dom1n1k

IMHO canvas.
There are several different libraries, for example Paper.js
paperjs.org

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question