Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
0899f58a
Commit
0899f58a
authored
Jan 13, 2021
by
Takuya Ogawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'contract/ttss/1.0.0_kim-ec' into contract/ttss/1.1.0
parents
db31bce5
eaccfcfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
10 deletions
+76
-10
abvw/js/contentview.js
+76
-10
No files found.
abvw/js/contentview.js
View file @
0899f58a
...
...
@@ -5120,21 +5120,54 @@ CONTENTVIEW.flip = function(opt) {
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
try
{
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
catch
(
error
)
{
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
}
else
{
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
try
{
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
catch
(
error
)
{
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
}
}
else
{
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
try
{
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
catch
(
error
)
{
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
}
context
.
restore
();
}
...
...
@@ -5298,21 +5331,54 @@ CONTENTVIEW.flip = function(opt) {
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
try
{
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
catch
(
error
)
{
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
}
else
{
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
try
{
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
catch
(
error
)
{
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
}
}
else
{
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
try
{
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
catch
(
error
)
{
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
}
}
context
.
restore
();
...
...
Write
Preview
Markdown
is supported
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