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
ba29cdf5
Commit
ba29cdf5
authored
May 11, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix navigate to invisible nodes
parent
b8941f1a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
34 deletions
+46
-34
index.html
dist/index.html
+11
-11
kityminder.all.js
dist/kityminder.all.js
+17
-11
kityminder.all.min.js
dist/kityminder.all.min.js
+2
-2
keyboard.js
src/module/keyboard.js
+16
-10
No files found.
dist/index.html
View file @
ba29cdf5
...
...
@@ -7,26 +7,26 @@
<meta
name=
"description"
content=
"百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。"
>
<script
src=
"lib/jquery-2.1.0.min.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"lib/ZeroClipboard.min.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"lib/jquery-2.1.0.min.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"lib/ZeroClipboard.min.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
>
ZeroClipboard
.
setDefaults
(
{
moviePath
:
'lib/ZeroClipboard.swf'
}
);
</script>
<script
src=
"lib/kitygraph.all.min.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"kityminder.all.min.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"kityminder.config.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"lang/zh-cn/zh-cn.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"lib/kitygraph.all.min.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"kityminder.all.min.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"kityminder.config.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"lang/zh-cn/zh-cn.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"lib/zip.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"lib/zip.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script>
zip
.
inflateJSPath
=
'lib/inflate.js'
;
</script>
<script
src=
"lib/jquery.xml2json.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"lib/baidu-frontia-js-full-1.0.0.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"social/draftmanager.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"social/social.js?_=139982
259217
2"
charset=
"utf-8"
></script>
<script
src=
"lib/jquery.xml2json.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"lib/baidu-frontia-js-full-1.0.0.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"social/draftmanager.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<script
src=
"social/social.js?_=139982
459806
2"
charset=
"utf-8"
></script>
<link
href=
"social/social.css"
rel=
"stylesheet"
>
<link
href=
"themes/default/css/import.css"
type=
"text/css"
rel=
"stylesheet"
/>
...
...
dist/kityminder.all.js
View file @
ba29cdf5
/*!
* ====================================================
* kityminder - v1.1.3 - 2014-05-1
1
* kityminder - v1.1.3 - 2014-05-1
2
* https://github.com/fex-team/kityminder
* GitHub: https://github.com/fex-team/kityminder.git
* Copyright (c) 2014 f-cube @ FEX; Licensed MIT
...
...
@@ -4709,16 +4709,20 @@ KityMinder.registerModule( "KeyboardModule", function () {
p
;
root
.
traverse
(
function
(
node
)
{
p
=
node
.
getRenderContainer
().
getRenderBox
(
'top'
);
pointIndexes
.
push
(
{
left
:
p
.
x
,
top
:
p
.
y
,
right
:
p
.
x
+
p
.
width
,
bottom
:
p
.
y
+
p
.
height
,
width
:
p
.
width
,
height
:
p
.
height
,
node
:
node
,
text
:
node
.
getText
()
}
);
// bugfix: 不应导航到收起的节点(判断其尺寸是否存在)
if
(
p
.
width
&&
p
.
height
)
{
pointIndexes
.
push
(
{
left
:
p
.
x
,
top
:
p
.
y
,
right
:
p
.
x
+
p
.
width
,
bottom
:
p
.
y
+
p
.
height
,
width
:
p
.
width
,
height
:
p
.
height
,
node
:
node
,
text
:
node
.
getText
()
}
);
}
}
);
for
(
var
i
=
0
;
i
<
pointIndexes
.
length
;
i
++
)
{
findClosestPointsFor
(
pointIndexes
,
i
);
...
...
@@ -4754,8 +4758,10 @@ KityMinder.registerModule( "KeyboardModule", function () {
var
current
,
dist
;
for
(
var
i
=
0
;
i
<
pointIndexes
.
length
;
i
++
)
{
if
(
i
==
iFind
)
continue
;
current
=
pointIndexes
[
i
];
dist
=
getCoefedDistance
(
current
,
find
);
// left check
...
...
dist/kityminder.all.min.js
View file @
ba29cdf5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/module/keyboard.js
View file @
ba29cdf5
...
...
@@ -10,16 +10,20 @@ KityMinder.registerModule( "KeyboardModule", function () {
p
;
root
.
traverse
(
function
(
node
)
{
p
=
node
.
getRenderContainer
().
getRenderBox
(
'top'
);
pointIndexes
.
push
(
{
left
:
p
.
x
,
top
:
p
.
y
,
right
:
p
.
x
+
p
.
width
,
bottom
:
p
.
y
+
p
.
height
,
width
:
p
.
width
,
height
:
p
.
height
,
node
:
node
,
text
:
node
.
getText
()
}
);
// bugfix: 不应导航到收起的节点(判断其尺寸是否存在)
if
(
p
.
width
&&
p
.
height
)
{
pointIndexes
.
push
(
{
left
:
p
.
x
,
top
:
p
.
y
,
right
:
p
.
x
+
p
.
width
,
bottom
:
p
.
y
+
p
.
height
,
width
:
p
.
width
,
height
:
p
.
height
,
node
:
node
,
text
:
node
.
getText
()
}
);
}
}
);
for
(
var
i
=
0
;
i
<
pointIndexes
.
length
;
i
++
)
{
findClosestPointsFor
(
pointIndexes
,
i
);
...
...
@@ -55,8 +59,10 @@ KityMinder.registerModule( "KeyboardModule", function () {
var
current
,
dist
;
for
(
var
i
=
0
;
i
<
pointIndexes
.
length
;
i
++
)
{
if
(
i
==
iFind
)
continue
;
current
=
pointIndexes
[
i
];
dist
=
getCoefedDistance
(
current
,
find
);
// left check
...
...
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