K
K
Kirill Gorelov2017-10-31 22:14:03
JavaScript
Kirill Gorelov, 2017-10-31 22:14:03

canvas - fabric.js image borders?

Guys, I'm reading the fabric.js library.
I can't figure out how to
59f8cb46e33d5544080520.jpeg
make this out of it.
59f8cb507000a317600165.jpeg
That is, the border of the image on the first screen is hidden, and on the second it is shown.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vetsmen, 2017-11-01
@vetsmen

You only draw borders inside the canvas. Try increasing its width and centering your phone object, then you can safely move the borders behind it and see them. The only problem that needs to be solved is how to hide content outside the phone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question