Commit 0584fdf8 authored by bbaer's avatar bbaer
Browse files

fixed a rotate edit, exportImage Button

parent 0d929e11
......@@ -818,8 +818,8 @@ $(function (n) {
img.width = this.canvas.width;
}
if (img.height < this.canvas.height) {
this.canvas.height = this.originalHeight;
img.width = this.canvas.height * img.height / img.width;
img.height = this.canvas.height;
}
}
this.canvas.centerObject(img);
......
......@@ -44,6 +44,9 @@
data-background-image="mockData/Scan2a.jpeg">
</div>
</div>
<div class="col-md-8">
<img id="target-png">
</div>
</div>
</div>
......
......@@ -10,6 +10,16 @@
"hasToggleElement": false,
"toggleElement": "",
"icon": "glyphicon-repeat"
}, {
"name": "exportImage",
"selector": "export-img",
"requiresDrawing": false,
"requiresSelection": false,
"isToggle": false,
"toggle": "",
"hasToggleElement": false,
"toggleElement": "",
"icon": "glyphicon-floppy-disk"
}
],
"currentMode": ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment