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
bc182a2c
Commit
bc182a2c
authored
Apr 23, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改模块适应新的渲染方式
parent
553068b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
import.js
import.js
+4
-4
basestyle.js
src/module/basestyle.js
+1
-1
font.js
src/module/font.js
+1
-1
No files found.
import.js
View file @
bc182a2c
...
@@ -29,15 +29,15 @@
...
@@ -29,15 +29,15 @@
// ,'module/view.js'
// ,'module/view.js'
// ,'module/dragtree.js'
// ,'module/dragtree.js'
// ,'module/dropfile.js'
// ,'module/dropfile.js'
//
,'module/keyboard.js'
,
'module/keyboard.js'
,
'module/select.js'
,
'module/select.js'
//
,'module/history.js'
,
'module/history.js'
,
'module/editor.js'
,
'module/editor.js'
,
'module/editor.range.js'
,
'module/editor.range.js'
,
'module/editor.receiver.js'
,
'module/editor.receiver.js'
,
'module/editor.selection.js'
,
'module/editor.selection.js'
//
,'module/basestyle.js'
,
'module/basestyle.js'
//
,'module/font.js'
,
'module/font.js'
// ,'module/zoom.js'
// ,'module/zoom.js'
,
'module/nodetext.js'
,
'module/nodetext.js'
,
'ui/jquery-ui-1.10.4.custom.min.js'
,
'ui/jquery-ui-1.10.4.custom.min.js'
...
...
src/module/basestyle.js
View file @
bc182a2c
...
@@ -78,7 +78,7 @@ KityMinder.registerModule( "basestylemodule", function () {
...
@@ -78,7 +78,7 @@ KityMinder.registerModule( "basestylemodule", function () {
"italic"
:
"ctrl+i"
//italic
"italic"
:
"ctrl+i"
//italic
},
},
"events"
:
{
"events"
:
{
"
beforeRenderNode
"
:
function
(
e
)
{
"
afterrendernodecenter
"
:
function
(
e
)
{
//加粗
//加粗
if
(
e
.
node
.
getData
(
'bold'
)
)
{
if
(
e
.
node
.
getData
(
'bold'
)
)
{
e
.
node
.
getTextShape
().
setAttr
(
'font-weight'
,
'bold'
);
e
.
node
.
getTextShape
().
setAttr
(
'font-weight'
,
'bold'
);
...
...
src/module/font.js
View file @
bc182a2c
...
@@ -90,7 +90,7 @@ KityMinder.registerModule( "fontmodule", function () {
...
@@ -90,7 +90,7 @@ KityMinder.registerModule( "fontmodule", function () {
},
},
"events"
:
{
"events"
:
{
"
beforeRenderNode
"
:
function
(
e
)
{
"
afterrendernodecenter
"
:
function
(
e
)
{
var
val
;
var
val
;
if
(
val
=
e
.
node
.
getData
(
'fontfamily'
)
)
{
if
(
val
=
e
.
node
.
getData
(
'fontfamily'
)
)
{
e
.
node
.
getTextShape
().
setAttr
(
'font-family'
,
val
);
e
.
node
.
getTextShape
().
setAttr
(
'font-family'
,
val
);
...
...
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