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
b4a9dc23
Commit
b4a9dc23
authored
Jan 22, 2016
by
hy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加一个根节点文字修改事件
parent
8c91b7e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
text.js
src/module/text.js
+8
-4
No files found.
src/module/text.js
View file @
b4a9dc23
...
...
@@ -76,7 +76,7 @@ define(function(require, exports, module) {
'comic sans ms'
:
-
0.2
,
'impact,chicago'
:
-
0.12
,
'times new roman'
:
-
0.02
,
'default'
:
-
0.15
'default'
:
-
0.15
},
'Lux'
:
{
'andale mono'
:
-
0.05
,
...
...
@@ -84,7 +84,7 @@ define(function(require, exports, module) {
'impact,chicago'
:
-
0.13
,
'times new roman'
:
-
0.1
,
'arial black,avant garde'
:
-
0.17
,
'default'
:
0
'default'
:
0
}
},
'firefox'
:
{
...
...
@@ -106,7 +106,7 @@ define(function(require, exports, module) {
'times new roman'
:
-
0.22
,
'sans-serif'
:
-
0.22
,
'arial black,avant garde'
:
-
0.17
,
'default'
:
-
0.16
'default'
:
-
0.16
},
'Lux'
:
{
"宋体,SimSun"
:
-
0.2
,
...
...
@@ -217,6 +217,10 @@ define(function(require, exports, module) {
node
.
_currentTextHash
=
textHash
;
if
(
node
.
type
===
'root'
)
{
node
.
minder
.
fire
(
'roottextchange'
,
{
node
:
node
});
};
return
function
()
{
textGroup
.
eachItem
(
function
(
i
,
textShape
)
{
var
y
=
yStart
+
i
*
fontSize
*
lineHeight
;
...
...
@@ -285,4 +289,4 @@ define(function(require, exports, module) {
});
module
.
exports
=
TextRenderer
;
});
\ No newline at end of file
});
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