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
158f30b6
Commit
158f30b6
authored
Feb 11, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/kitygraph/kityminder
into dev
parents
92a78d6f
1fc93a5a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
93 deletions
+102
-93
basestyle.js
src/module/basestyle.js
+4
-0
editor.receiver.js
src/module/editor.receiver.js
+96
-93
font.js
src/module/font.js
+2
-0
No files found.
src/module/basestyle.js
View file @
158f30b6
...
@@ -13,11 +13,13 @@ KityMinder.registerModule( "basestylemodule", function () {
...
@@ -13,11 +13,13 @@ KityMinder.registerModule( "basestylemodule", function () {
utils
.
each
(
nodes
,
function
(
i
,
n
){
utils
.
each
(
nodes
,
function
(
i
,
n
){
n
.
setData
(
'bold'
);
n
.
setData
(
'bold'
);
n
.
getTextShape
().
setAttr
(
'font-weight'
);
n
.
getTextShape
().
setAttr
(
'font-weight'
);
km
.
updateLayout
(
n
)
})
})
}
else
{
}
else
{
utils
.
each
(
nodes
,
function
(
i
,
n
){
utils
.
each
(
nodes
,
function
(
i
,
n
){
n
.
setData
(
'bold'
,
true
);
n
.
setData
(
'bold'
,
true
);
n
.
getTextShape
().
setAttr
(
'font-weight'
,
'bold'
);
n
.
getTextShape
().
setAttr
(
'font-weight'
,
'bold'
);
km
.
updateLayout
(
n
)
})
})
}
}
},
},
...
@@ -43,11 +45,13 @@ KityMinder.registerModule( "basestylemodule", function () {
...
@@ -43,11 +45,13 @@ KityMinder.registerModule( "basestylemodule", function () {
utils
.
each
(
nodes
,
function
(
i
,
n
){
utils
.
each
(
nodes
,
function
(
i
,
n
){
n
.
setData
(
'italic'
);
n
.
setData
(
'italic'
);
n
.
getTextShape
().
setAttr
(
'font-style'
);
n
.
getTextShape
().
setAttr
(
'font-style'
);
km
.
updateLayout
(
n
)
})
})
}
else
{
}
else
{
utils
.
each
(
nodes
,
function
(
i
,
n
){
utils
.
each
(
nodes
,
function
(
i
,
n
){
n
.
setData
(
'italic'
,
true
);
n
.
setData
(
'italic'
,
true
);
n
.
getTextShape
().
setAttr
(
'font-style'
,
'italic'
);
n
.
getTextShape
().
setAttr
(
'font-style'
,
'italic'
);
km
.
updateLayout
(
n
)
})
})
}
}
},
},
...
...
src/module/editor.receiver.js
View file @
158f30b6
This diff is collapsed.
Click to expand it.
src/module/font.js
View file @
158f30b6
...
@@ -39,6 +39,7 @@ KityMinder.registerModule( "fontmodule", function () {
...
@@ -39,6 +39,7 @@ KityMinder.registerModule( "fontmodule", function () {
utils
.
each
(
nodes
,
function
(
i
,
n
)
{
utils
.
each
(
nodes
,
function
(
i
,
n
)
{
n
.
setData
(
'fontfamily'
,
family
);
n
.
setData
(
'fontfamily'
,
family
);
n
.
getTextShape
().
setAttr
(
'font-family'
,
family
);
n
.
getTextShape
().
setAttr
(
'font-family'
,
family
);
km
.
updateLayout
(
n
)
}
)
}
)
}
}
}
),
}
),
...
@@ -50,6 +51,7 @@ KityMinder.registerModule( "fontmodule", function () {
...
@@ -50,6 +51,7 @@ KityMinder.registerModule( "fontmodule", function () {
utils
.
each
(
nodes
,
function
(
i
,
n
)
{
utils
.
each
(
nodes
,
function
(
i
,
n
)
{
n
.
setData
(
'fontsize'
,
size
);
n
.
setData
(
'fontsize'
,
size
);
n
.
getTextShape
().
setSize
(
size
);
n
.
getTextShape
().
setSize
(
size
);
km
.
updateLayout
(
n
)
}
)
}
)
}
}
}
)
}
)
...
...
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