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
458c8d03
Commit
458c8d03
authored
Sep 13, 2017
by
bbaer
Browse files
quick save.
parent
bd605ab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/Plugins/qfq.fabric.js
View file @
458c8d03
...
...
@@ -6,12 +6,12 @@ var QfqNS = QfqNS || {};
$
(
function
(
n
)
{
n
.
Fabric
=
function
()
{
var
qFabric
=
this
;
this
.
canvas
=
this
.
__canvas
=
new
fabric
.
Canvas
(
'
c
'
,
{
isDrawingMode
:
true
,
stateful
:
true
,
enableRetinaScaling
:
true
});
var
qFabric
=
this
;
this
.
canvas
.
on
(
'
mouse:up
'
,
function
(
e
)
{
qFabric
.
defaultMouseUpEvent
(
e
)
});
this
.
canvas
.
on
(
'
mouse:down
'
,
function
(
e
)
{
qFabric
.
defaultMouseDownEvent
(
e
)
});
this
.
canvas
.
on
(
'
mouse:move
'
,
function
(
e
)
{
qFabric
.
defaultMouseMoveEvent
(
e
)
});
...
...
@@ -215,8 +215,8 @@ $(function (n) {
n
.
Fabric
.
prototype
.
resizeRectangle
=
function
(
o
)
{
if
(
!
this
.
isDown
)
return
;
var
rect
=
canvas
.
getActiveObject
();
var
pointer
=
canvas
.
getPointer
(
o
.
e
);
var
rect
=
this
.
canvas
.
getActiveObject
();
var
pointer
=
this
.
canvas
.
getPointer
(
o
.
e
);
if
(
this
.
origX
>
pointer
.
x
){
rect
.
set
({
...
...
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