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
99208ad2
Commit
99208ad2
authored
Mar 18, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gh-pages' of github.com:fex-team/kityminder into gh-pages
parents
8b4bfb8e
1e01e5b4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
12 deletions
+33
-12
kityminder.all.js
dist/kityminder.all.js
+15
-5
kityminder.all.min.js
dist/kityminder.all.min.js
+5
-5
publish
publish
+2
-1
layout.bottom.js
src/module/layout.bottom.js
+6
-1
layout.default.js
src/module/layout.default.js
+5
-0
No files found.
dist/kityminder.all.js
View file @
99208ad2
/*!
* ====================================================
* kityminder - v1.0.0 - 2014-03-1
7
* kityminder - v1.0.0 - 2014-03-1
8
* https://github.com/fex-team/kityminder
* GitHub: https://github.com/fex-team/kityminder.git
* Copyright (c) 2014 f-cube @ FEX; Licensed MIT
...
...
@@ -2714,6 +2714,11 @@ KityMinder.registerModule( "LayoutDefault", function () {
sideList
.
splice
(
index
,
1
);
}
parent
.
removeChild
(
nodes
[
0
]
);
if
(
parent
.
getType
()
!==
"root"
&&
parent
.
getChildren
().
length
===
0
)
{
var
prtLayout
=
parent
.
getLayout
();
prtLayout
.
shicon
.
remove
();
prtLayout
.
shicon
=
null
;
}
var
set
=
updateLayoutVertical
(
nodes
[
0
],
parent
,
"remove"
);
for
(
var
j
=
0
;
j
<
set
.
length
;
j
++
)
{
translateNode
(
set
[
j
]
);
...
...
@@ -2965,7 +2970,7 @@ KityMinder.registerModule( "LayoutBottom", function () {
var
sX
=
rootLayout
.
x
-
rootbranchwidth
/
2
;
for
(
var
k
=
0
;
k
<
mainnodes
.
length
;
k
++
)
{
var
mLayout
=
mainnodes
[
k
].
getLayout
();
mLayout
.
x
=
sX
;
mLayout
.
x
=
sX
+
nodeStyles
.
main
.
margin
[
3
]
+
5
;
sX
+=
mLayout
.
branchwidth
;
}
return
mainnodes
;
...
...
@@ -3258,6 +3263,11 @@ KityMinder.registerModule( "LayoutBottom", function () {
}
var
nodeLayout
=
nodes
[
0
].
getLayout
();
parent
.
removeChild
(
nodes
[
0
]
);
if
(
parent
.
getType
()
!==
"root"
&&
parent
.
getChildren
().
length
===
0
)
{
var
prtLayout
=
parent
.
getLayout
();
prtLayout
.
shicon
.
remove
();
prtLayout
.
shicon
=
null
;
}
var
set
=
updateLayoutAll
(
nodes
[
0
],
parent
,
"remove"
);
for
(
var
j
=
0
;
j
<
set
.
length
;
j
++
)
{
translateNode
(
set
[
j
]
);
...
...
@@ -3916,10 +3926,10 @@ KityMinder.registerModule( "KeyboardModule", function () {
var
pointIndexes
=
[],
p
;
root
.
traverse
(
function
(
node
)
{
p
=
node
.
get
Data
(
'point
'
);
p
=
node
.
get
RenderContainer
().
getRenderBox
(
'top
'
);
pointIndexes
.
push
(
{
x
:
p
.
x
,
y
:
p
.
y
,
x
:
p
.
x
+
p
.
width
/
2
,
y
:
p
.
y
+
p
.
height
/
2
,
node
:
node
}
);
}
);
...
...
dist/kityminder.all.min.js
View file @
99208ad2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
publish
View file @
99208ad2
...
...
@@ -2,7 +2,8 @@ git stash
git checkout gh-pages
git merge dev -m "merge from dev"
grunt
git commit -am "publish"
git add dist
git commit -m "publish"
git push origin gh-pages
git checkout dev
git stash pop
src/module/layout.bottom.js
View file @
99208ad2
...
...
@@ -174,7 +174,7 @@ KityMinder.registerModule( "LayoutBottom", function () {
var
sX
=
rootLayout
.
x
-
rootbranchwidth
/
2
;
for
(
var
k
=
0
;
k
<
mainnodes
.
length
;
k
++
)
{
var
mLayout
=
mainnodes
[
k
].
getLayout
();
mLayout
.
x
=
sX
;
mLayout
.
x
=
sX
+
nodeStyles
.
main
.
margin
[
3
]
+
5
;
sX
+=
mLayout
.
branchwidth
;
}
return
mainnodes
;
...
...
@@ -467,6 +467,11 @@ KityMinder.registerModule( "LayoutBottom", function () {
}
var
nodeLayout
=
nodes
[
0
].
getLayout
();
parent
.
removeChild
(
nodes
[
0
]
);
if
(
parent
.
getType
()
!==
"root"
&&
parent
.
getChildren
().
length
===
0
)
{
var
prtLayout
=
parent
.
getLayout
();
prtLayout
.
shicon
.
remove
();
prtLayout
.
shicon
=
null
;
}
var
set
=
updateLayoutAll
(
nodes
[
0
],
parent
,
"remove"
);
for
(
var
j
=
0
;
j
<
set
.
length
;
j
++
)
{
translateNode
(
set
[
j
]
);
...
...
src/module/layout.default.js
View file @
99208ad2
...
...
@@ -596,6 +596,11 @@ KityMinder.registerModule( "LayoutDefault", function () {
sideList
.
splice
(
index
,
1
);
}
parent
.
removeChild
(
nodes
[
0
]
);
if
(
parent
.
getType
()
!==
"root"
&&
parent
.
getChildren
().
length
===
0
)
{
var
prtLayout
=
parent
.
getLayout
();
prtLayout
.
shicon
.
remove
();
prtLayout
.
shicon
=
null
;
}
var
set
=
updateLayoutVertical
(
nodes
[
0
],
parent
,
"remove"
);
for
(
var
j
=
0
;
j
<
set
.
length
;
j
++
)
{
translateNode
(
set
[
j
]
);
...
...
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