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
bd435c0a
Commit
bd435c0a
authored
Jul 27, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release 1.2.1
parent
f555c541
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
90 deletions
+65
-90
index.html
dist/index.html
+11
-11
kityminder.all.js
dist/kityminder.all.js
+24
-37
kityminder.all.min.js
dist/kityminder.all.min.js
+2
-2
social.js
dist/social/social.js
+2
-1
social.js
social/social.js
+2
-2
layout.js
src/core/layout.js
+24
-37
No files found.
dist/index.html
View file @
bd435c0a
...
...
@@ -7,26 +7,26 @@
<meta
name=
"description"
content=
"百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, user-scalable=no"
>
<script
src=
"lib/jquery-2.1.0.min.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"lib/ZeroClipboard.min.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"lib/jquery-2.1.0.min.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"lib/ZeroClipboard.min.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
>
ZeroClipboard
.
setDefaults
(
{
moviePath
:
'lib/ZeroClipboard.swf'
}
);
</script>
<script
src=
"lib/kity.min.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"kityminder.all.min.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"kityminder.config.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"lang/zh-cn/zh-cn.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"lib/kity.min.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"kityminder.all.min.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"kityminder.config.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"lang/zh-cn/zh-cn.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"lib/zip.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"lib/zip.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script>
zip
.
inflateJSPath
=
'lib/inflate.js'
;
</script>
<script
src=
"lib/jquery.xml2json.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"lib/baidu-frontia-js-full-1.0.0.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"social/draftmanager.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"social/social.js?_=140619
388642
1"
charset=
"utf-8"
></script>
<script
src=
"lib/jquery.xml2json.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"lib/baidu-frontia-js-full-1.0.0.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"social/draftmanager.js?_=140619
656761
1"
charset=
"utf-8"
></script>
<script
src=
"social/social.js?_=140619
656761
1"
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 @
bd435c0a
...
...
@@ -2508,46 +2508,33 @@ kity.extendClass(Minder, {
matrix
.
m
.
e
=
Math
.
round
(
matrix
.
m
.
e
);
matrix
.
m
.
f
=
Math
.
round
(
matrix
.
m
.
f
);
if
(
!
matrix
.
equals
(
lastMatrix
))
{
// 如果当前有动画,停止动画
if
(
node
.
_layoutTimeline
)
{
node
.
_layoutTimeline
.
stop
();
node
.
_layoutTimeline
=
null
;
}
// 如果要求以动画形式来更新,创建动画
if
(
duration
)
{
node
.
_layoutTimeline
=
new
kity
.
Animator
(
lastMatrix
,
matrix
,
applyMatrix
)
.
start
(
node
,
duration
+
300
,
'ease'
)
.
on
(
'finish'
,
function
()
{
//可能性能低的时候会丢帧,手动添加一帧
kity
.
Timeline
.
requestFrame
(
function
()
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
});
consume
();
// 如果当前有动画,停止动画
if
(
node
.
_layoutTimeline
)
{
node
.
_layoutTimeline
.
stop
();
node
.
_layoutTimeline
=
null
;
}
// 如果要求以动画形式来更新,创建动画
if
(
duration
)
{
node
.
_layoutTimeline
=
new
kity
.
Animator
(
lastMatrix
,
matrix
,
applyMatrix
)
.
start
(
node
,
duration
+
300
,
'ease'
)
.
on
(
'finish'
,
function
()
{
//可能性能低的时候会丢帧,手动添加一帧
kity
.
Timeline
.
requestFrame
(
function
()
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
});
consume
();
});
}
// 否则直接更新
else
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
});
consume
();
}
}
else
{
// 可能位置没有改变,但是相关布局变量变了
me
.
fire
(
'layoutapply'
,
{
node
:
node
,
matrix
:
matrix
});
}
// 否则直接更新
else
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
...
...
dist/kityminder.all.min.js
View file @
bd435c0a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/social/social.js
View file @
bd435c0a
...
...
@@ -740,8 +740,9 @@ $(function() {
// 确定上传文件名
if
(
!
remotePath
)
{
filename
=
window
.
prompt
(
'请输入文件名: '
,
minder
.
getMinderTitle
());
filename
=
window
.
prompt
(
'请输入文件名: '
,
minder
.
getMinderTitle
()
.
replace
(
/
[\/\\\:\?\|\<\>\"\'\*]
/g
,
''
)
);
if
(
!
filename
)
return
;
filename
=
filename
.
replace
(
/
[\/\\\:\?\|\<\>\"\'\*]
/g
,
''
);
uploadPath
=
generateRemotePath
(
filename
);
}
else
{
uploadPath
=
remotePath
;
...
...
social/social.js
View file @
bd435c0a
...
...
@@ -740,9 +740,9 @@ $(function() {
// 确定上传文件名
if
(
!
remotePath
)
{
filename
=
window
.
prompt
(
'请输入文件名: '
,
minder
.
getMinderTitle
().
replace
(
/
[\/\\\:\?\|\<\>\*]
/g
,
''
));
filename
=
window
.
prompt
(
'请输入文件名: '
,
minder
.
getMinderTitle
().
replace
(
/
[\/\\\:\?\|\<\>\
"\'\
*]
/g
,
''
));
if
(
!
filename
)
return
;
filename
=
filename
.
replace
(
/
[\/\\\:\?\|\<\>\*]
/g
,
''
);
filename
=
filename
.
replace
(
/
[\/\\\:\?\|\<\>\
"\'\
*]
/g
,
''
);
uploadPath
=
generateRemotePath
(
filename
);
}
else
{
uploadPath
=
remotePath
;
...
...
src/core/layout.js
View file @
bd435c0a
...
...
@@ -227,46 +227,33 @@ kity.extendClass(Minder, {
matrix
.
m
.
e
=
Math
.
round
(
matrix
.
m
.
e
);
matrix
.
m
.
f
=
Math
.
round
(
matrix
.
m
.
f
);
if
(
!
matrix
.
equals
(
lastMatrix
))
{
// 如果当前有动画,停止动画
if
(
node
.
_layoutTimeline
)
{
node
.
_layoutTimeline
.
stop
();
node
.
_layoutTimeline
=
null
;
}
// 如果要求以动画形式来更新,创建动画
if
(
duration
)
{
node
.
_layoutTimeline
=
new
kity
.
Animator
(
lastMatrix
,
matrix
,
applyMatrix
)
.
start
(
node
,
duration
+
300
,
'ease'
)
.
on
(
'finish'
,
function
()
{
//可能性能低的时候会丢帧,手动添加一帧
kity
.
Timeline
.
requestFrame
(
function
()
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
});
consume
();
// 如果当前有动画,停止动画
if
(
node
.
_layoutTimeline
)
{
node
.
_layoutTimeline
.
stop
();
node
.
_layoutTimeline
=
null
;
}
// 如果要求以动画形式来更新,创建动画
if
(
duration
)
{
node
.
_layoutTimeline
=
new
kity
.
Animator
(
lastMatrix
,
matrix
,
applyMatrix
)
.
start
(
node
,
duration
+
300
,
'ease'
)
.
on
(
'finish'
,
function
()
{
//可能性能低的时候会丢帧,手动添加一帧
kity
.
Timeline
.
requestFrame
(
function
()
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
});
consume
();
});
}
// 否则直接更新
else
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
});
consume
();
}
}
else
{
// 可能位置没有改变,但是相关布局变量变了
me
.
fire
(
'layoutapply'
,
{
node
:
node
,
matrix
:
matrix
});
}
// 否则直接更新
else
{
applyMatrix
(
node
,
matrix
);
me
.
fire
(
'layoutfinish'
,
{
node
:
node
,
matrix
:
matrix
...
...
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