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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
20 deletions
+86
-20
abvw/js/contentview.js
+86
-20
No files found.
abvw/js/contentview.js
View file @
0899f58a
...
@@ -5120,22 +5120,55 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5120,22 +5120,55 @@ CONTENTVIEW.flip = function(opt) {
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
drawImage
(
offscreen
,
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
try
{
context
.
drawImage
(
offscreen
,
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
{
}
else
{
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
drawImage
(
offscreen
,
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
try
{
context
.
drawImage
(
offscreen
,
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
{
}
else
{
context
.
drawImage
(
offscreen
,
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
try
{
}
context
.
drawImage
(
offscreen
,
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
();
context
.
restore
();
}
}
else
if
(
opt
==
2
){
else
if
(
opt
==
2
){
...
@@ -5298,22 +5331,55 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5298,22 +5331,55 @@ CONTENTVIEW.flip = function(opt) {
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
drawImage
(
offscreen
,
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
CONTENTVIEW
.
destRect
.
left
,
(
canvas
.
height
-
height
)
/
2
,
width
,
height
);
try
{
context
.
drawImage
(
offscreen
,
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
{
}
else
{
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
translate
(
canvas
.
width
/
2
,
canvas
.
height
/
2
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
rotate
(
$
(
rotatebtnR
).
attr
(
'angle'
)
*
Math
.
PI
/
180
);
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
translate
(
-
(
canvas
.
width
/
2
),
-
(
canvas
.
height
/
2
));
context
.
drawImage
(
offscreen
,
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
try
{
context
.
drawImage
(
offscreen
,
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
{
}
else
{
context
.
drawImage
(
offscreen
,
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
,
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
try
{
}
context
.
drawImage
(
offscreen
,
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
();
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