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
4ed9e476
Commit
4ed9e476
authored
May 04, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加preference.js
parent
f2461c03
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
import.js
import.js
+2
-0
kityminder.config.js
kityminder.config.js
+1
-0
minder.js
src/core/minder.js
+5
-2
No files found.
import.js
View file @
4ed9e476
...
...
@@ -70,6 +70,7 @@
,
'adapter/node.js'
,
'adapter/contextmenu.js'
,
'adapter/dialog.js'
,
'adapter/preference.js'
,
'protocal/xmind.js'
,
'protocal/freemind.js'
,
'protocal/mindmanager.js'
...
...
@@ -77,6 +78,7 @@
,
'protocal/json.js'
,
'protocal/png.js'
,
'protocal/svg.js'
),
baseURL
=
'src/'
;
for
(
var
i
=
0
,
pi
;
pi
=
paths
[
i
++
];)
{
...
...
kityminder.config.js
View file @
4ed9e476
...
...
@@ -81,6 +81,7 @@
//设置km整体的z-index大小
//,zIndex : 1000
//设置初始加载时展开的层数和子节点数目阈值
//默认是全部展开,0表示全部展开
//,defaultExpand: {
//defaultLayer: 0,
//defaultSubShow: 0
...
...
src/core/minder.js
View file @
4ed9e476
...
...
@@ -18,14 +18,17 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
getOptions
:
function
(
key
)
{
return
this
.
_options
[
key
];
},
setDefaultOptions
:
function
(
key
,
val
)
{
setDefaultOptions
:
function
(
key
,
val
,
cover
)
{
var
obj
=
{};
if
(
Utils
.
isString
(
key
)
)
{
obj
[
key
]
=
val
;
}
else
{
obj
=
key
;
}
utils
.
extend
(
this
.
_options
,
obj
,
true
);
utils
.
extend
(
this
.
_options
,
obj
,
!
cover
);
},
setOptions
:
function
(
key
,
val
)
{
this
.
setDefaultOptions
(
key
,
val
,
true
)
},
_initMinder
:
function
()
{
...
...
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