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
26c4353e
Commit
26c4353e
authored
Dec 19, 2013
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev.html update
parent
4d64fed6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
5 deletions
+45
-5
dev.html
demo/dev.html
+43
-5
dev.php
dist/dev.php
+2
-0
No files found.
demo/dev.html
View file @
26c4353e
...
@@ -10,12 +10,50 @@
...
@@ -10,12 +10,50 @@
</body>
</body>
<script>
<script>
var
minder
=
new
km
.
KityMinder
();
var
minder
=
new
km
.
KityMinder
();
var
node1
=
new
km
.
MinderNode
().
pipe
(
function
()
{
this
.
setData
(
'x'
,
100
);
function
allEvent
()
{
this
.
setData
(
'y'
,
100
);
var
events
=
'click mousedown mouseup keydown keyup keypress dblclick interactchange contentchange selectionchange import'
.
split
(
' '
);
this
.
setData
(
'text'
,
"this is a text"
);
var
pharseEvents
=
[];
for
(
var
i
=
0
;
i
<
events
.
length
;
i
++
)
{
pharseEvents
.
push
(
'before'
+
events
[
i
]);
pharseEvents
.
push
(
'pre'
+
events
[
i
]);
pharseEvents
.
push
(
events
[
i
]);
}
return
pharseEvents
.
join
(
' '
);
}
minder
.
on
(
allEvent
(),
function
(
e
)
{
console
.
log
(
e
.
type
);
});
minder
.
importData
({
data
:
{
x
:
50
,
y
:
50
,
text
:
'center'
,
},
children
:
[{
data
:
{
x
:
200
,
y
:
50
,
text
:
'child1'
}
},{
data
:
{
x
:
200
,
y
:
100
,
text
:
'child2'
},
children
:
[{
data
:
{
x
:
350
,
y
:
100
,
text
:
'leaf'
}
}]
}]
});
});
minder
.
getRoot
().
insertChild
(
node1
);
minder
.
update
();
minder
.
update
();
//console.log(minder.exportData());
</script>
</script>
</html>
</html>
\ No newline at end of file
dist/dev.php
View file @
26c4353e
...
@@ -10,6 +10,8 @@ $dependency = Array(
...
@@ -10,6 +10,8 @@ $dependency = Array(
$content
=
""
;
$content
=
""
;
header
(
'Content-Type: text/javascript'
);
foreach
(
$dependency
as
$index
=>
$dep
)
{
foreach
(
$dependency
as
$index
=>
$dep
)
{
echo
file_get_contents
(
"../
$dep
"
)
.
"
\n\n
"
;
echo
file_get_contents
(
"../
$dep
"
)
.
"
\n\n
"
;
}
}
\ No newline at end of file
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