Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
0584fdf8
Commit
0584fdf8
authored
Jan 05, 2018
by
bbaer
Browse files
fixed a rotate edit, exportImage Button
parent
0d929e11
Changes
3
Hide whitespace changes
Inline
Side-by-side
javascript/src/Plugins/qfq.fabric.js
View file @
0584fdf8
...
...
@@ -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
);
...
...
mockup/imageEditorFabric.html
View file @
0584fdf8
...
...
@@ -44,6 +44,9 @@
data-background-image=
"mockData/Scan2a.jpeg"
>
</div>
</div>
<div
class=
"col-md-8"
>
<img
id=
"target-png"
>
</div>
</div>
</div>
...
...
mockup/mockData/fabric.editor.buttons.json
View file @
0584fdf8
...
...
@@ -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"
:
""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment