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
8f029a2a
Commit
8f029a2a
authored
Jan 13, 2021
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#41178【課題5】[TTSSBiz Web]PDF閲覧時障害
parent
f3dc2f5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
abvw/js/contentview.js
+10
-14
No files found.
abvw/js/contentview.js
View file @
8f029a2a
...
@@ -4781,14 +4781,16 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -4781,14 +4781,16 @@ CONTENTVIEW.flip = function(opt) {
if
(
CONTENTVIEW
.
srcRect
.
left
<
0
)
{
if
(
CONTENTVIEW
.
srcRect
.
left
<
0
)
{
CONTENTVIEW
.
srcRect
.
left
=
0
;
CONTENTVIEW
.
srcRect
.
left
=
0
;
CONTENTVIEW
.
srcRect
.
right
=
CONTENTVIEW
.
srcRect
.
left
+
CONTENTVIEW
.
srcRect
.
width
;
CONTENTVIEW
.
srcRect
.
right
=
CONTENTVIEW
.
srcRect
.
left
+
CONTENTVIEW
.
srcRect
.
width
;
}
else
if
(
CONTENTVIEW
.
srcRect
.
right
>
offscreen
.
width
)
{
}
if
(
CONTENTVIEW
.
srcRect
.
right
>
offscreen
.
width
)
{
CONTENTVIEW
.
srcRect
.
left
=
offscreen
.
width
-
CONTENTVIEW
.
srcRect
.
width
;
CONTENTVIEW
.
srcRect
.
left
=
offscreen
.
width
-
CONTENTVIEW
.
srcRect
.
width
;
CONTENTVIEW
.
srcRect
.
right
=
offscreen
.
width
;
CONTENTVIEW
.
srcRect
.
right
=
offscreen
.
width
;
}
}
if
(
CONTENTVIEW
.
srcRect
.
top
<
0
)
{
if
(
CONTENTVIEW
.
srcRect
.
top
<
0
)
{
CONTENTVIEW
.
srcRect
.
top
=
0
;
CONTENTVIEW
.
srcRect
.
top
=
0
;
CONTENTVIEW
.
srcRect
.
bottom
=
CONTENTVIEW
.
srcRect
.
top
+
CONTENTVIEW
.
srcRect
.
height
;
CONTENTVIEW
.
srcRect
.
bottom
=
CONTENTVIEW
.
srcRect
.
top
+
CONTENTVIEW
.
srcRect
.
height
;
}
else
if
(
CONTENTVIEW
.
srcRect
.
bottom
>
offscreen
.
height
)
{
}
if
(
CONTENTVIEW
.
srcRect
.
bottom
>
offscreen
.
height
)
{
CONTENTVIEW
.
srcRect
.
top
=
offscreen
.
height
-
CONTENTVIEW
.
srcRect
.
height
;
CONTENTVIEW
.
srcRect
.
top
=
offscreen
.
height
-
CONTENTVIEW
.
srcRect
.
height
;
CONTENTVIEW
.
srcRect
.
bottom
=
offscreen
.
height
;
CONTENTVIEW
.
srcRect
.
bottom
=
offscreen
.
height
;
}
}
...
@@ -5122,8 +5124,8 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5122,8 +5124,8 @@ CONTENTVIEW.flip = function(opt) {
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
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
//
if(w > width) w = width;
if
(
h
>
height
)
h
=
height
;
//
if(h > height) h = height;
context
.
drawImage
(
offscreen
,
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
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
);
...
@@ -5133,8 +5135,8 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5133,8 +5135,8 @@ CONTENTVIEW.flip = function(opt) {
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
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
//
if(w > width) w = width;
if
(
h
>
height
)
h
=
height
;
//
if(h > height) h = height;
context
.
drawImage
(
offscreen
,
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
...
@@ -5142,8 +5144,8 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5142,8 +5144,8 @@ CONTENTVIEW.flip = function(opt) {
}
else
{
}
else
{
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
if
(
w
>
width
)
w
=
width
;
//
if(w > width) w = width;
if
(
h
>
height
)
h
=
height
;
//
if(h > height) h = height;
context
.
drawImage
(
offscreen
,
context
.
drawImage
(
offscreen
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
...
@@ -5312,8 +5314,6 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5312,8 +5314,6 @@ CONTENTVIEW.flip = function(opt) {
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
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
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
,
w
,
h
,
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
);
...
@@ -5323,8 +5323,6 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5323,8 +5323,6 @@ CONTENTVIEW.flip = function(opt) {
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
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
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
,
w
,
h
,
CONTENTVIEW
.
srcRect
.
left
,
CONTENTVIEW
.
srcRect
.
top
,
w
,
h
,
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
CONTENTVIEW
.
destRect
.
left
,
CONTENTVIEW
.
destRect
.
top
,
width
,
height
);
...
@@ -5332,8 +5330,6 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -5332,8 +5330,6 @@ CONTENTVIEW.flip = function(opt) {
}
else
{
}
else
{
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
w
=
CONTENTVIEW
.
srcRect
.
right
-
CONTENTVIEW
.
srcRect
.
left
;
let
h
=
CONTENTVIEW
.
srcRect
.
bottom
-
CONTENTVIEW
.
srcRect
.
top
;
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
,
w
,
h
,
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