Mirror motif in 3D if applicable
This commit is contained in:
@@ -54,6 +54,7 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
|
|||||||
return this.getImage().__url.replace(/\?h=\d+$/, '?') +
|
return this.getImage().__url.replace(/\?h=\d+$/, '?') +
|
||||||
[
|
[
|
||||||
'h=313',
|
'h=313',
|
||||||
|
'mirror=' + (cropData.mirrored ? 1 : 0),
|
||||||
'canvas[edge]=' + cropData.edge,
|
'canvas[edge]=' + cropData.edge,
|
||||||
'crop[w]=' + cropData.width,
|
'crop[w]=' + cropData.width,
|
||||||
'crop[h]=' + cropData.height,
|
'crop[h]=' + cropData.height,
|
||||||
@@ -131,7 +132,7 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
|
|||||||
if (!showAs3d) {
|
if (!showAs3d) {
|
||||||
return this.get3dHandler().disable();
|
return this.get3dHandler().disable();
|
||||||
}
|
}
|
||||||
|
console.log(this.get3dUrl())
|
||||||
fabric.Image.fromURL(encodeURI(this.get3dUrl()), function (img) {
|
fabric.Image.fromURL(encodeURI(this.get3dUrl()), function (img) {
|
||||||
this.get3dHandler().setImage(img);
|
this.get3dHandler().setImage(img);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|||||||
Reference in New Issue
Block a user