Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
816ed14c
Commit
816ed14c
authored
Sep 24, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
4797a3b0
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
text.js
src/module/text.js
+3
-2
_kityminder.less
ui/theme/default/css/_kityminder.less
+1
-1
default.all.css
ui/theme/default/css/default.all.css
+1
-1
default.all.css.map
ui/theme/default/css/default.all.css.map
+1
-1
No files found.
src/module/text.js
View file @
816ed14c
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
var
FONT_ADJUST
=
{
var
FONT_ADJUST
=
{
'微软雅黑,Microsoft YaHei'
:
-
0.15
,
'微软雅黑,Microsoft YaHei'
:
-
0.15
,
'arial black,avant garde'
:
-
0.17
'arial black,avant garde'
:
-
0.17
,
'default'
:
-
0.15
};
};
var
TextRenderer
=
KityMinder
.
TextRenderer
=
kity
.
createClass
(
'TextRenderer'
,
{
var
TextRenderer
=
KityMinder
.
TextRenderer
=
kity
.
createClass
(
'TextRenderer'
,
{
...
@@ -23,7 +24,7 @@ var TextRenderer = KityMinder.TextRenderer = kity.createClass('TextRenderer', {
...
@@ -23,7 +24,7 @@ var TextRenderer = KityMinder.TextRenderer = kity.createClass('TextRenderer', {
var
lineHeight
=
node
.
getStyle
(
'line-height'
);
var
lineHeight
=
node
.
getStyle
(
'line-height'
);
var
fontSize
=
s
(
'font-size'
);
var
fontSize
=
s
(
'font-size'
);
var
fontFamily
=
node
.
getData
(
'font-family'
)
;
var
fontFamily
=
s
(
'font-family'
)
||
'default'
;
var
height
=
(
lineHeight
*
fontSize
)
*
textArr
.
length
-
(
lineHeight
-
1
)
*
fontSize
;
var
height
=
(
lineHeight
*
fontSize
)
*
textArr
.
length
-
(
lineHeight
-
1
)
*
fontSize
;
var
yStart
=
-
height
/
2
;
var
yStart
=
-
height
/
2
;
...
...
ui/theme/default/css/_kityminder.less
View file @
816ed14c
...
@@ -9,7 +9,7 @@ html, body, div {
...
@@ -9,7 +9,7 @@ html, body, div {
}
}
body, svg {
body, svg {
font-family:
Arial, "Microsoft Yahei", "Heiti SC"
, sans-serif;
font-family:
"Microsoft Yahei", "Heiti SC", Arial
, sans-serif;
}
}
html, body {
html, body {
...
...
ui/theme/default/css/default.all.css
View file @
816ed14c
...
@@ -1282,7 +1282,7 @@ div {
...
@@ -1282,7 +1282,7 @@ div {
}
}
body
,
body
,
svg
{
svg
{
font-family
:
Arial
,
"Microsoft Yahei"
,
"Heiti SC"
,
sans-serif
;
font-family
:
"Microsoft Yahei"
,
"Heiti SC"
,
Arial
,
sans-serif
;
}
}
html
,
html
,
body
{
body
{
...
...
ui/theme/default/css/default.all.css.map
View file @
816ed14c
This diff is collapsed.
Click to expand it.
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