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
236e6c64
Commit
236e6c64
authored
Jan 03, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
e3f50f99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
dev.html
demo/dev.html
+5
-5
connect.js
src/module/connect.js
+1
-1
render.js
src/module/render.js
+1
-0
No files found.
demo/dev.html
View file @
236e6c64
...
@@ -49,20 +49,20 @@
...
@@ -49,20 +49,20 @@
centerY
:
minderHeight
/
2
,
centerY
:
minderHeight
/
2
,
style
:{
style
:{
radius
:
10
,
radius
:
10
,
fill
:
"
blu
e"
,
fill
:
"
orang
e"
,
stroke
:
"orange"
,
stroke
:
"orange"
,
color
:
"black"
,
color
:
"black"
,
padding
:[
10
,
10
,
10
,
10
],
padding
:[
10
,
10
,
10
,
10
],
fontSize
:
12
fontSize
:
20
},
},
text
:
"
node
"
,
text
:
"
I am the root
"
,
};
};
var
_childnode
=
new
MinderNode
();
var
_childnode
=
new
MinderNode
();
_node
.
insertChild
(
_childnode
);
_node
.
insertChild
(
_childnode
);
_childnode
.
data
=
{
_childnode
.
data
=
{
centerX
:
minderWidth
/
2
+
50
,
centerX
:
minderWidth
/
2
+
1
50
,
centerY
:
minderHeight
/
2
+
5
0
,
centerY
:
minderHeight
/
2
+
10
0
,
style
:{
style
:{
radius
:
10
,
radius
:
10
,
fill
:
"yellow"
,
fill
:
"yellow"
,
...
...
src/module/connect.js
View file @
236e6c64
...
@@ -147,7 +147,7 @@ var ConnectModule = KityMinder.registerModule( "ConnectModule", function () {
...
@@ -147,7 +147,7 @@ var ConnectModule = KityMinder.registerModule( "ConnectModule", function () {
var
parent
=
node
.
getParent
();
var
parent
=
node
.
getParent
();
console
.
log
(
"parent"
,
node
.
getParent
()
);
console
.
log
(
"parent"
,
node
.
getParent
()
);
var
_connect
=
new
ConnectBezier
(
parent
.
getRenderContainer
(),
node
.
getRenderContainer
()
);
var
_connect
=
new
ConnectBezier
(
parent
.
getRenderContainer
(),
node
.
getRenderContainer
()
);
_connect
.
stroke
(
new
kity
.
Pen
(
node
.
data
.
st
roke
,
node
.
data
.
strokeWidth
)
);
_connect
.
stroke
(
new
kity
.
Pen
(
node
.
data
.
st
yle
.
stroke
,
node
.
data
.
style
.
strokeWidth
)
);
node
.
connect
=
_connect
;
node
.
connect
=
_connect
;
console
.
log
(
_connect
);
console
.
log
(
_connect
);
minder
.
getRenderContainer
().
addShape
(
_connect
);
minder
.
getRenderContainer
().
addShape
(
_connect
);
...
...
src/module/render.js
View file @
236e6c64
...
@@ -38,6 +38,7 @@ KityMinder.registerModule( "RenderModule", function () {
...
@@ -38,6 +38,7 @@ KityMinder.registerModule( "RenderModule", function () {
return
{
return
{
base
:
Command
,
base
:
Command
,
execute
:
function
(
km
,
node
)
{
execute
:
function
(
km
,
node
)
{
console
.
log
(
"minderHHH"
,
km
)
renderNode
(
km
,
node
);
renderNode
(
km
,
node
);
}
}
};
};
...
...
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