Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
b289f5f1
Commit
b289f5f1
authored
May 09, 2023
by
Jorem Magcawas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove comment
parent
251cc4f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
highlight.js
WebGde/WebContent/src/highlight/highlight.js
+0
-2
No files found.
WebGde/WebContent/src/highlight/highlight.js
View file @
b289f5f1
...
@@ -215,7 +215,6 @@ function initHighlight() {
...
@@ -215,7 +215,6 @@ function initHighlight() {
if
(
sessionStorage
.
getItem
(
"file_Name"
).
endsWith
(
PDF_EXTENSION
)){
if
(
sessionStorage
.
getItem
(
"file_Name"
).
endsWith
(
PDF_EXTENSION
)){
if
(
isCanvasNotCreated
){
if
(
isCanvasNotCreated
){
rect
=
canvasPDF
.
getBoundingClientRect
();
rect
=
canvasPDF
.
getBoundingClientRect
();
// createHighlight(entries[0].contentRect.width, entries[0].contentRect.height);
createHighlight
(
entries
[
0
].
contentRect
.
width
,
entries
[
0
].
contentRect
.
height
);
createHighlight
(
entries
[
0
].
contentRect
.
width
,
entries
[
0
].
contentRect
.
height
);
isCanvasNotCreated
=
false
;
isCanvasNotCreated
=
false
;
ctx
.
clearRect
(
0
,
0
,
canvasPDF
.
width
,
canvasPDF
.
height
);
ctx
.
clearRect
(
0
,
0
,
canvasPDF
.
width
,
canvasPDF
.
height
);
...
@@ -235,7 +234,6 @@ function initHighlight() {
...
@@ -235,7 +234,6 @@ function initHighlight() {
else
if
(
sessionStorage
.
getItem
(
"file_Name"
).
endsWith
(
JPG_EXTENSION
)
||
sessionStorage
.
getItem
(
"file_Name"
).
endsWith
(
PNG_EXTENSION
)){
else
if
(
sessionStorage
.
getItem
(
"file_Name"
).
endsWith
(
JPG_EXTENSION
)
||
sessionStorage
.
getItem
(
"file_Name"
).
endsWith
(
PNG_EXTENSION
)){
if
(
isCanvasNotCreated
){
if
(
isCanvasNotCreated
){
rect
=
canvasIMG
.
getBoundingClientRect
();
rect
=
canvasIMG
.
getBoundingClientRect
();
// createHighlight(entries[0].contentRect.width, entries[0].contentRect.height);
createHighlight
(
entries
[
0
].
contentRect
.
width
,
entries
[
0
].
contentRect
.
height
);
createHighlight
(
entries
[
0
].
contentRect
.
width
,
entries
[
0
].
contentRect
.
height
);
isCanvasNotCreated
=
false
;
isCanvasNotCreated
=
false
;
ctx
.
clearRect
(
0
,
0
,
canvasIMG
.
width
,
canvasIMG
.
height
);
ctx
.
clearRect
(
0
,
0
,
canvasIMG
.
width
,
canvasIMG
.
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