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
f3dc2f5c
Commit
f3dc2f5c
authored
Jan 12, 2021
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#41178【課題5】[TTSSBiz Web]PDF閲覧時障害
parent
47588246
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
abvw/js/contentview.js
+30
-6
No files found.
abvw/js/contentview.js
View file @
f3dc2f5c
...
@@ -5120,20 +5120,32 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5120,20 +5120,32 @@ 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
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
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
);
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
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
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
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
}
}
}
else
{
}
else
{
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
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
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
}
}
context
.
restore
();
context
.
restore
();
...
@@ -5298,20 +5310,32 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5298,20 +5310,32 @@ 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
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
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
);
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
));
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
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
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
}
}
}
else
{
}
else
{
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
if
(
h
>
height
)
h
=
height
;
context
.
drawImage
(
offscreen
,
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
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
}
}
...
...
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