kopia lustrzana https://github.com/inkstitch/inkstitch
remove last vestige of /printing/start
rodzic
884e193384
commit
1edd5c8635
|
@ -661,15 +661,11 @@ $(function() {
|
||||||
|
|
||||||
// rendering slows down the browser enough that we can miss sending
|
// rendering slows down the browser enough that we can miss sending
|
||||||
// pings, so tell the server side to wait for us
|
// pings, so tell the server side to wait for us
|
||||||
$.get("/printing/start")
|
ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, canvas.width, canvas.height);
|
||||||
.done(function() {
|
realistic_cache[item] = '<svg width=' + image.width + ' height=' + image.height + ' xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' +
|
||||||
ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, canvas.width, canvas.height);
|
'<image x=0 y=0 width=' + image.width + ' height=' + image.height + ' xlink:href="' + canvas.toDataURL() + '" />' +
|
||||||
realistic_cache[item] = '<svg width=' + image.width + ' height=' + image.height + ' xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' +
|
'</svg>';
|
||||||
'<image x=0 y=0 width=' + image.width + ' height=' + image.height + ' xlink:href="' + canvas.toDataURL() + '" />' +
|
finalize(realistic_cache[item]);
|
||||||
'</svg>';
|
|
||||||
finalize(realistic_cache[item]);
|
|
||||||
$.get("/printing/end");
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
image.src = '/realistic/' + item;
|
image.src = '/realistic/' + item;
|
||||||
} else {
|
} else {
|
||||||
|
|
Ładowanie…
Reference in New Issue