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
70549100
Commit
70549100
authored
May 08, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/fex-team/kityminder
into dev
parents
47885a01
f4b2d225
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
36 deletions
+22
-36
CHANGELOG.md
CHANGELOG.md
+5
-2
import.js
import.js
+0
-1
kityminder.config.js
kityminder.config.js
+1
-1
zh-cn.js
lang/zh-cn/zh-cn.js
+3
-1
button.js
src/adapter/button.js
+1
-1
preference.js
src/adapter/preference.js
+0
-6
view.js
src/adapter/view.js
+0
-18
jshint
src/core/jshint
+0
-0
expand.js
src/module/expand.js
+10
-4
buttonicon.css
themes/default/css/buttonicon.css
+2
-2
No files found.
CHANGELOG.md
View file @
70549100
...
...
@@ -5,13 +5,16 @@
1.
添加保存时可修改文件名
2.
添加超链接功能
3.
选中节点时,按F2直接进入文字编辑状态
4.
展开所有收起节点
###问题修复
1.
修复当滚动鼠标滚轮时,光标不跟着移动的问题
2.
优化了拖拽节点操作体验
3.
修复回退操作后所选节点未回选问题
4.
添加选中节点后可直接输入文字
5.
优化了当输入中文时,中文显示位置与光标距离过远的问题
4.
修复回退操作后展开收起的节点没有记录问题
5.
** 选中节点后可直接输入文字**
6.
优化了输入文字时的卡顿效果
7.
优化了当输入中文时,中文显示位置与光标距离过远的问题
## v1.1.2
...
...
import.js
View file @
70549100
...
...
@@ -66,7 +66,6 @@
,
'adapter/button.js'
,
'adapter/combobox.js'
,
'adapter/saveto.js'
,
'adapter/view.js'
,
'adapter/tooltips.js'
,
'adapter/layout.js'
,
'adapter/node.js'
...
...
kityminder.config.js
View file @
70549100
...
...
@@ -63,7 +63,7 @@
'KITYMINDER_HOME_URL'
:
getKMBasePath
(),
//定义工具栏
toolbars
:
[
'hand zoom-in zoom-out
expand contract | undo redo | bold italic | fontfamily fontsize forecolor | saveto | hyperlink unhyperlink | markers | node | preferenc
e | help'
'hand zoom-in zoom-out
collapsenode expandnode | undo redo | bold italic | fontfamily fontsize forecolor | saveto | hyperlink unhyperlink | markers | nod
e | help'
]
//只读模式,默认是false
//readOnly: true
...
...
lang/zh-cn/zh-cn.js
View file @
70549100
...
...
@@ -20,7 +20,9 @@ KityMinder.LANG[ 'zh-cn' ] = {
'help'
:
'帮助'
,
'preference'
:
'偏好设置'
,
'hyperlink'
:
'插入链接'
,
'unhyperlink'
:
"删除链接"
'unhyperlink'
:
"删除链接"
,
'expandnode'
:
"展开所有节点"
,
'collapsenode'
:
"闭合所有节点"
},
'popupcolor'
:
{
'clearColor'
:
'清空颜色'
,
...
...
src/adapter/button.js
View file @
70549100
KM
.
registerToolbarUI
(
'bold italic redo undo unhyperlink'
,
KM
.
registerToolbarUI
(
'bold italic redo undo unhyperlink
expandnode collapsenode hand zoom-in zoom-out
'
,
function
(
name
)
{
var
me
=
this
;
var
$btn
=
$
.
kmuibutton
(
{
...
...
src/adapter/preference.js
deleted
100644 → 0
View file @
47885a01
KM
.
registerUI
(
'preference'
,
function
(
name
)
{
var
km
=
this
;
//读取偏好设置,设置参数
}
);
\ No newline at end of file
src/adapter/view.js
deleted
100644 → 0
View file @
47885a01
KM
.
registerToolbarUI
(
'hand zoom-in zoom-out expand contract'
,
function
(
name
)
{
var
me
=
this
;
var
$btn
=
$
.
kmuibutton
(
{
icon
:
name
,
click
:
function
()
{
console
.
log
(
name
);
me
.
execCommand
(
name
);
},
title
:
this
.
getLang
(
'tooltips.'
)[
name
]
||
''
}
);
me
.
on
(
'interactchange'
,
function
()
{
var
state
=
me
.
queryCommandState
(
name
);
$btn
.
kmui
().
disabled
(
state
==
-
1
).
active
(
state
==
1
);
}
);
return
$btn
;
}
);
\ No newline at end of file
src/core/jshint
deleted
100644 → 0
View file @
47885a01
src/module/expand.js
View file @
70549100
...
...
@@ -11,6 +11,8 @@ KityMinder.registerModule( "Expand", function () {
_buffer
.
shift
();
}
}
// var setOptionValue = function ( root, layer, sub ) {
// var cur_layer = 1;
// var _buffer = root.getChildren();
...
...
@@ -120,7 +122,7 @@ KityMinder.registerModule( "Expand", function () {
return
this
.
getData
(
EXPAND_STATE_DATA
)
===
STATE_EXPAND
;
}
}
);
var
Expand
AllNodeCommand
=
kity
.
createClass
(
"ExpandAll
NodeCommand"
,
(
function
()
{
var
Expand
NodeCommand
=
kity
.
createClass
(
"Expand
NodeCommand"
,
(
function
()
{
return
{
base
:
Command
,
execute
:
function
(
km
)
{
...
...
@@ -128,16 +130,18 @@ KityMinder.registerModule( "Expand", function () {
n
.
expand
();
}
);
km
.
initStyle
();
},
queryState
:
function
(
km
)
{
return
0
;
}
};
}
)()
);
var
Collapse
AllNodeCommand
=
kity
.
createClass
(
"ExpandAll
NodeCommand"
,
(
function
()
{
var
Collapse
NodeCommand
=
kity
.
createClass
(
"Collapse
NodeCommand"
,
(
function
()
{
return
{
base
:
Command
,
execute
:
function
(
km
)
{
layerTravel
(
km
.
getRoot
(),
function
(
n
)
{
n
.
collapse
();
}
);
...
...
@@ -146,6 +150,7 @@ KityMinder.registerModule( "Expand", function () {
queryState
:
function
(
km
)
{
return
0
;
}
};
}
)()
);
return
{
...
...
@@ -158,8 +163,9 @@ KityMinder.registerModule( "Expand", function () {
}
},
'commands'
:
{
'
expand'
:
ExpandAll
NodeCommand
,
'
contract'
:
CollapseAll
NodeCommand
'
ExpandNode'
:
Expand
NodeCommand
,
'
CollapseNode'
:
Collapse
NodeCommand
}
};
}
);
\ No newline at end of file
themes/default/css/buttonicon.css
View file @
70549100
...
...
@@ -35,10 +35,10 @@
.kmui-btn-toolbar
.kmui-btn
.kmui-icon-preference
{
background
:
url(../images/setting.png)
no-repeat
2px
2px
;
}
.kmui-btn-toolbar
.kmui-btn
.kmui-icon-expand
{
.kmui-btn-toolbar
.kmui-btn
.kmui-icon-expand
node
{
background
:
url(../images/expand.png)
no-repeat
2px
2px
;
}
.kmui-btn-toolbar
.kmui-btn
.kmui-icon-co
ntract
{
.kmui-btn-toolbar
.kmui-btn
.kmui-icon-co
llapsenode
{
background
:
url(../images/contract.png)
no-repeat
2px
2px
;
}
...
...
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