Answer the question
In order to leave comments, you need to log in
Help with rendering ODA actions on canvas using fabric?
I have already looked at the factory all the minis but there are not enough brains - I explain how it works - there are two canvases js-left-canvas-wrapper and js-right-canvas-wrapper ) structure trace -
<div class="canvas-container" style="width: 420px; height: 600px; position: relative; -moz-user-select: none;"><canvas id="js-left-canvas" data-page-id="1" width="420" height="600" class="ui-droppable lower-canvas" style="position: absolute; width: 420px; height: 600px; left: 0px; top: 0px; touch-action: none; -moz-user-select: none;">Обновите браузер</canvas>
<canvas class="upper-canvas ui-droppable" style="position: absolute; width: 420px; height: 600px; left: 0px; top: 0px; touch-action: none; -moz-user-select: none; cursor: default;" width="420" height="600"></canvas></div>
<img class="canvas-image" id="js-left-canvas-img" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD(тут идет отрисовка )" >
- here comes the rendering, the element is initially none and always like this) when drawing this img is taken and the canvas takes it and puts it in the background) the same with the canvas) Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question