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
f88b56f8
Commit
f88b56f8
authored
Apr 23, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added config
parent
78924b22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
node.js
src/core/node.js
+0
-1
layout.bottom.js
src/module/layout.bottom.js
+1
-1
layout.default.js
src/module/layout.default.js
+1
-1
No files found.
src/core/node.js
View file @
f88b56f8
...
@@ -16,7 +16,6 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
...
@@ -16,7 +16,6 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
this
.
rc
=
new
kity
.
Group
();
this
.
rc
=
new
kity
.
Group
();
this
.
rc
.
addClass
(
'km-minderNode'
);
this
.
rc
.
addClass
(
'km-minderNode'
);
this
.
rc
.
minderNode
=
this
;
this
.
rc
.
minderNode
=
this
;
this
.
_createBgGroup
();
this
.
_createBgGroup
();
this
.
_createContGroup
();
this
.
_createContGroup
();
},
},
...
...
src/module/layout.bottom.js
View file @
f88b56f8
...
@@ -154,7 +154,7 @@ KityMinder.registerModule( "LayoutBottom", function () {
...
@@ -154,7 +154,7 @@ KityMinder.registerModule( "LayoutBottom", function () {
default
:
default
:
break
;
break
;
}
}
contRc
.
setTransform
(
new
kity
.
Matrix
().
translate
(
nodeStyle
.
padding
[
3
],
nodeStyle
.
padding
[
0
]
+
node
.
getTextShape
().
getHeight
()
)
);
//
contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] + node.getTextShape().getHeight() ) );
};
};
var
updateLayoutMain
=
function
()
{
var
updateLayoutMain
=
function
()
{
var
_root
=
minder
.
getRoot
();
var
_root
=
minder
.
getRoot
();
...
...
src/module/layout.default.js
View file @
f88b56f8
...
@@ -176,7 +176,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -176,7 +176,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
default
:
default
:
break
;
break
;
}
}
contRc
.
setTransform
(
new
kity
.
Matrix
().
translate
(
nodeStyle
.
padding
[
3
],
nodeStyle
.
padding
[
0
]
+
node
.
getTextShape
().
getHeight
()
)
);
//
contRc.setTransform( new kity.Matrix().translate( nodeStyle.padding[ 3 ], nodeStyle.padding[ 0 ] + node.getTextShape().getHeight() ) );
};
};
//计算节点在垂直方向的位置
//计算节点在垂直方向的位置
var
updateLayoutVertical
=
function
(
node
,
parent
,
action
)
{
var
updateLayoutVertical
=
function
(
node
,
parent
,
action
)
{
...
...
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