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
33f39927
Commit
33f39927
authored
Jul 28, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
draw rulers in small zoom
parent
550ccb3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
word/Drawing/Rulers.js
word/Drawing/Rulers.js
+10
-8
No files found.
word/Drawing/Rulers.js
View file @
33f39927
...
...
@@ -626,6 +626,7 @@ function CHorRuler()
var
mm_1_4
=
10
*
dKoef_mm_to_pix
/
4
;
var
inch_1_8
=
25.4
*
dKoef_mm_to_pix
/
8
;
var
isDraw1_4
=
(
mm_1_4
>
7
)
?
true
:
false
;
var
middleVert
=
(
this
.
m_nTop
+
this
.
m_nBottom
)
/
2
;
var
part1
=
1
;
...
...
@@ -657,7 +658,7 @@ function CHorRuler()
lXPos
-=
(
lWidthText
/
2.0
);
context
.
fillText
(
strNum
,
lXPos
,
this
.
m_nBottom
-
3
);
}
else
if
(
1
==
index
)
else
if
(
1
==
index
&&
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
@@ -673,7 +674,7 @@ function CHorRuler()
context
.
lineTo
(
lXPos
,
middleVert
+
part2
);
context
.
stroke
();
}
else
else
if
(
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
@@ -702,7 +703,7 @@ function CHorRuler()
lXPos
-=
(
lWidthText
/
2.0
);
context
.
fillText
(
strNum
,
lXPos
,
this
.
m_nBottom
-
3
);
}
else
if
(
1
==
index
)
else
if
(
1
==
index
&&
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
@@ -718,7 +719,7 @@ function CHorRuler()
context
.
lineTo
(
lXPos
,
middleVert
+
part2
);
context
.
stroke
();
}
else
else
if
(
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
@@ -2891,6 +2892,7 @@ function CVerRuler()
context
.
fillStyle
=
"
#585B5E
"
;
var
mm_1_4
=
10
*
dKoef_mm_to_pix
/
4
;
var
isDraw1_4
=
(
mm_1_4
>
7
)
?
true
:
false
;
var
inch_1_8
=
25.4
*
dKoef_mm_to_pix
/
8
;
var
middleHor
=
(
this
.
m_nLeft
+
this
.
m_nRight
)
/
2
;
...
...
@@ -2931,7 +2933,7 @@ function CVerRuler()
else
context
.
setTransform
(
2
,
0
,
0
,
2
,
0
,
10
);
}
else
if
(
1
==
index
)
else
if
(
1
==
index
&&
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
@@ -2947,7 +2949,7 @@ function CVerRuler()
context
.
lineTo
(
middleHor
+
part2
,
lYPos
);
context
.
stroke
();
}
else
else
if
(
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
@@ -2983,7 +2985,7 @@ function CVerRuler()
else
context
.
setTransform
(
2
,
0
,
0
,
2
,
0
,
10
);
}
else
if
(
1
==
index
)
else
if
(
1
==
index
&&
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
@@ -2999,7 +3001,7 @@ function CVerRuler()
context
.
lineTo
(
middleHor
+
part2
,
lYPos
);
context
.
stroke
();
}
else
else
if
(
isDraw1_4
)
{
// 1/4
context
.
beginPath
();
...
...
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