Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
0934cecc
Commit
0934cecc
authored
Apr 21, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retina <-> noretina switch
parent
419e1ab1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
common/scroll.js
common/scroll.js
+14
-7
slide/Drawing/HtmlPage.js
slide/Drawing/HtmlPage.js
+6
-0
word/Drawing/HtmlPage.js
word/Drawing/HtmlPage.js
+6
-0
No files found.
common/scroll.js
View file @
0934cecc
...
...
@@ -199,10 +199,13 @@ CArrowDrawer.prototype.InitSize = function ( sizeW, sizeH, is_retina ) {
this
.
SizeNaturalH
<<=
1
;
}
this
.
ImageLeft
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
ImageTop
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
ImageRight
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
ImageBottom
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
if
(
null
==
this
.
ImageLeft
||
null
==
this
.
ImageTop
||
null
==
this
.
ImageRight
||
null
==
this
.
ImageBottom
)
{
this
.
ImageLeft
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
ImageTop
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
ImageRight
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
ImageBottom
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
}
this
.
ImageLeft
[
ScrollOverType
.
NONE
].
width
=
this
.
SizeW
;
this
.
ImageLeft
[
ScrollOverType
.
NONE
].
height
=
this
.
SizeH
;
...
...
@@ -1619,8 +1622,7 @@ function ScrollObject( elemID, settings, dbg ) {
this
.
startColorFadeOutStart
=
_HEXTORGB_
(
this
.
settings
.
scrollerColorOver
).
R
;
this
.
startColorFadeInOutStart
=
-
1
;
if
(
window
.
devicePixelRatio
==
2
)
this
.
IsRetina
=
true
;
this
.
IsRetina
=
AscCommon
.
AscBrowser
.
isRetina
;
this
.
piperImgVert
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
this
.
piperImgHor
=
[
document
.
createElement
(
'
canvas
'
),
document
.
createElement
(
'
canvas
'
)];
...
...
@@ -1851,6 +1853,12 @@ ScrollObject.prototype = {
},
Repos
:
function
(
settings
,
bIsHorAttack
,
bIsVerAttack
)
{
if
(
this
.
IsRetina
!=
AscCommon
.
AscBrowser
.
isRetina
)
{
this
.
IsRetina
=
AscCommon
.
AscBrowser
.
isRetina
;
this
.
ArrowDrawer
.
InitSize
(
this
.
settings
.
arrowSizeH
,
this
.
settings
.
arrowSizeW
,
this
.
IsRetina
);
}
if
(
bIsVerAttack
)
{
var
_canvasH
=
settings
.
screenH
;
...
...
@@ -2425,7 +2433,6 @@ ScrollObject.prototype = {
function
drawScroller
()
{
that
.
context
.
beginPath
();
if
(
that
.
isVerticalScroll
)
{
...
...
slide/Drawing/HtmlPage.js
View file @
0934cecc
...
...
@@ -2480,6 +2480,12 @@ function CEditorPage(api)
this
.
m_bIsUpdateHorRuler
=
true
;
this
.
m_bIsUpdateVerRuler
=
true
;
if
(
this
.
m_bIsRuler
)
{
this
.
UpdateHorRulerBack
(
true
);
this
.
UpdateVerRulerBack
(
true
);
}
this
.
m_oHorRuler
.
RepaintChecker
.
BlitAttack
=
true
;
this
.
m_oVerRuler
.
RepaintChecker
.
BlitAttack
=
true
;
...
...
word/Drawing/HtmlPage.js
View file @
0934cecc
...
...
@@ -2694,6 +2694,12 @@ function CEditorPage(api)
this
.
m_bIsUpdateHorRuler
=
true
;
this
.
m_bIsUpdateVerRuler
=
true
;
if
(
this
.
m_bIsRuler
)
{
this
.
UpdateHorRulerBack
(
true
);
this
.
UpdateVerRulerBack
(
true
);
}
this
.
m_oHorRuler
.
RepaintChecker
.
BlitAttack
=
true
;
this
.
m_oVerRuler
.
RepaintChecker
.
BlitAttack
=
true
;
...
...
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