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
0c98c607
Commit
0c98c607
authored
Dec 19, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix path
parent
4a06382a
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
255 additions
and
255 deletions
+255
-255
arc.js
src/connect/arc.js
+2
-2
bezier.js
src/connect/bezier.js
+2
-2
fish-bone-master.js
src/connect/fish-bone-master.js
+2
-2
l.js
src/connect/l.js
+2
-2
poly.js
src/connect/poly.js
+2
-2
under.js
src/connect/under.js
+2
-2
kityminder.js
src/kityminder.js
+70
-70
btree.js
src/layout/btree.js
+2
-2
filetree.js
src/layout/filetree.js
+2
-2
fish-bone-master.js
src/layout/fish-bone-master.js
+2
-2
fish-bone-slave.js
src/layout/fish-bone-slave.js
+3
-3
mind.js
src/layout/mind.js
+3
-3
arrange.js
src/module/arrange.js
+4
-4
basestyle.js
src/module/basestyle.js
+6
-6
clipboard.js
src/module/clipboard.js
+5
-5
dragtree.js
src/module/dragtree.js
+5
-5
expand.js
src/module/expand.js
+7
-7
font.js
src/module/font.js
+6
-6
history.js
src/module/history.js
+6
-6
hyperlink.js
src/module/hyperlink.js
+8
-8
image.js
src/module/image.js
+8
-8
keynav.js
src/module/keynav.js
+9
-9
node.js
src/module/node.js
+7
-7
note.js
src/module/note.js
+8
-8
outline.js
src/module/outline.js
+8
-8
priority.js
src/module/priority.js
+8
-8
progress.js
src/module/progress.js
+8
-8
resource.js
src/module/resource.js
+8
-8
select.js
src/module/select.js
+8
-8
style.js
src/module/style.js
+7
-7
text.js
src/module/text.js
+8
-8
view.js
src/module/view.js
+8
-8
zoom.js
src/module/zoom.js
+8
-8
default.js
src/template/default.js
+1
-1
filetree.js
src/template/filetree.js
+1
-1
fish-bone.js
src/template/fish-bone.js
+1
-1
right.js
src/template/right.js
+1
-1
structure.js
src/template/structure.js
+1
-1
default.js
src/theme/default.js
+1
-1
fish.js
src/theme/fish.js
+1
-1
fresh.js
src/theme/fresh.js
+2
-2
snow.js
src/theme/snow.js
+1
-1
wire.js
src/theme/wire.js
+1
-1
No files found.
src/connect/arc.js
View file @
0c98c607
...
...
@@ -8,8 +8,8 @@
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
connect
=
require
(
'core/connect'
);
var
kity
=
require
(
'
../
core/kity'
);
var
connect
=
require
(
'
../
core/connect'
);
var
connectMarker
=
new
kity
.
Marker
().
pipe
(
function
()
{
var
r
=
7
;
...
...
src/connect/bezier.js
View file @
0c98c607
...
...
@@ -8,8 +8,8 @@
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
connect
=
require
(
'core/connect'
);
var
kity
=
require
(
'
../
core/kity'
);
var
connect
=
require
(
'
../
core/connect'
);
connect
.
register
(
'bezier'
,
function
(
node
,
parent
,
connection
)
{
...
...
src/connect/fish-bone-master.js
View file @
0c98c607
...
...
@@ -8,8 +8,8 @@
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
connect
=
require
(
'core/connect'
);
var
kity
=
require
(
'
../
core/kity'
);
var
connect
=
require
(
'
../
core/connect'
);
connect
.
register
(
'fish-bone-master'
,
function
(
node
,
parent
,
connection
)
{
...
...
src/connect/l.js
View file @
0c98c607
...
...
@@ -8,8 +8,8 @@
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
connect
=
require
(
'core/connect'
);
var
kity
=
require
(
'
../
core/kity'
);
var
connect
=
require
(
'
../
core/connect'
);
connect
.
register
(
'l'
,
function
(
node
,
parent
,
connection
)
{
...
...
src/connect/poly.js
View file @
0c98c607
...
...
@@ -8,8 +8,8 @@
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
connect
=
require
(
'core/connect'
);
var
kity
=
require
(
'
../
core/kity'
);
var
connect
=
require
(
'
../
core/connect'
);
connect
.
register
(
'poly'
,
function
(
node
,
parent
,
connection
,
width
)
{
...
...
src/connect/under.js
View file @
0c98c607
...
...
@@ -8,8 +8,8 @@
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
connect
=
require
(
'core/connect'
);
var
kity
=
require
(
'
../
core/kity'
);
var
connect
=
require
(
'
../
core/connect'
);
connect
.
register
(
'under'
,
function
(
node
,
parent
,
connection
,
width
,
color
)
{
...
...
src/kityminder.js
View file @
0c98c607
...
...
@@ -10,87 +10,87 @@
define
(
'kityminder'
,
function
(
require
,
exports
,
module
)
{
var
kityminder
=
{
version
:
require
(
'core/minder'
).
version
version
:
require
(
'
./
core/minder'
).
version
};
// 核心导出,大写的部分导出类,小写的部分简单 require 一下
// 这里顺序是有讲究的,调整前先弄清楚依赖关系。
require
(
'core/utils'
);
kityminder
.
Minder
=
require
(
'core/minder'
);
kityminder
.
Command
=
require
(
'core/command'
);
kityminder
.
Node
=
require
(
'core/node'
);
require
(
'core/option'
);
kityminder
.
Event
=
require
(
'core/event'
);
kityminder
.
data
=
require
(
'core/data'
);
require
(
'core/compatibility'
);
kityminder
.
KeyMap
=
require
(
'core/keymap'
);
require
(
'core/key'
);
require
(
'core/status'
);
require
(
'core/paper'
);
require
(
'core/select'
);
kityminder
.
Module
=
require
(
'core/module'
);
require
(
'core/readonly'
);
kityminder
.
Render
=
require
(
'core/render'
);
kityminder
.
Connect
=
require
(
'core/connect'
);
kityminder
.
Layout
=
require
(
'core/layout'
);
kityminder
.
Theme
=
require
(
'core/theme'
);
kityminder
.
Template
=
require
(
'core/template'
);
kityminder
.
Promise
=
require
(
'core/promise'
);
require
(
'
./
core/utils'
);
kityminder
.
Minder
=
require
(
'
./
core/minder'
);
kityminder
.
Command
=
require
(
'
./
core/command'
);
kityminder
.
Node
=
require
(
'
./
core/node'
);
require
(
'
./
core/option'
);
kityminder
.
Event
=
require
(
'
./
core/event'
);
kityminder
.
data
=
require
(
'
./
core/data'
);
require
(
'
./
core/compatibility'
);
kityminder
.
KeyMap
=
require
(
'
./
core/keymap'
);
require
(
'
./
core/key'
);
require
(
'
./
core/status'
);
require
(
'
./
core/paper'
);
require
(
'
./
core/select'
);
kityminder
.
Module
=
require
(
'
./
core/module'
);
require
(
'
./
core/readonly'
);
kityminder
.
Render
=
require
(
'
./
core/render'
);
kityminder
.
Connect
=
require
(
'
./
core/connect'
);
kityminder
.
Layout
=
require
(
'
./
core/layout'
);
kityminder
.
Theme
=
require
(
'
./
core/theme'
);
kityminder
.
Template
=
require
(
'
./
core/template'
);
kityminder
.
Promise
=
require
(
'
./
core/promise'
);
// 模块依赖
require
(
'module/arrange'
);
require
(
'module/basestyle'
);
require
(
'module/clipboard'
);
require
(
'module/dragtree'
);
require
(
'module/expand'
);
require
(
'module/font'
);
require
(
'module/history'
);
require
(
'module/hyperlink'
);
require
(
'module/image'
);
require
(
'module/keynav'
);
require
(
'module/layout'
);
require
(
'module/node'
);
require
(
'module/note'
);
require
(
'module/outline'
);
require
(
'module/priority'
);
require
(
'module/progress'
);
require
(
'module/resource'
);
require
(
'module/select'
);
require
(
'module/style'
);
require
(
'module/text'
);
require
(
'module/view'
);
require
(
'module/zoom'
);
require
(
'
./
module/arrange'
);
require
(
'
./
module/basestyle'
);
require
(
'
./
module/clipboard'
);
require
(
'
./
module/dragtree'
);
require
(
'
./
module/expand'
);
require
(
'
./
module/font'
);
require
(
'
./
module/history'
);
require
(
'
./
module/hyperlink'
);
require
(
'
./
module/image'
);
require
(
'
./
module/keynav'
);
require
(
'
./
module/layout'
);
require
(
'
./
module/node'
);
require
(
'
./
module/note'
);
require
(
'
./
module/outline'
);
require
(
'
./
module/priority'
);
require
(
'
./
module/progress'
);
require
(
'
./
module/resource'
);
require
(
'
./
module/select'
);
require
(
'
./
module/style'
);
require
(
'
./
module/text'
);
require
(
'
./
module/view'
);
require
(
'
./
module/zoom'
);
require
(
'protocol/json'
);
require
(
'protocol/text'
);
require
(
'protocol/markdown'
);
require
(
'protocol/svg'
);
require
(
'protocol/png'
);
require
(
'
./
protocol/json'
);
require
(
'
./
protocol/text'
);
require
(
'
./
protocol/markdown'
);
require
(
'
./
protocol/svg'
);
require
(
'
./
protocol/png'
);
require
(
'layout/mind'
);
require
(
'layout/btree'
);
require
(
'layout/filetree'
);
require
(
'layout/fish-bone-master'
);
require
(
'layout/fish-bone-slave'
);
require
(
'
./
layout/mind'
);
require
(
'
./
layout/btree'
);
require
(
'
./
layout/filetree'
);
require
(
'
./
layout/fish-bone-master'
);
require
(
'
./
layout/fish-bone-slave'
);
require
(
'theme/default'
);
require
(
'theme/snow'
);
require
(
'theme/fresh'
);
require
(
'theme/fish'
);
require
(
'theme/snow'
);
require
(
'
./
theme/default'
);
require
(
'
./
theme/snow'
);
require
(
'
./
theme/fresh'
);
require
(
'
./
theme/fish'
);
require
(
'
./
theme/snow'
);
require
(
'connect/arc'
);
require
(
'connect/bezier'
);
require
(
'connect/fish-bone-master'
);
require
(
'connect/l'
);
require
(
'connect/poly'
);
require
(
'connect/under'
);
require
(
'
./
connect/arc'
);
require
(
'
./
connect/bezier'
);
require
(
'
./
connect/fish-bone-master'
);
require
(
'
./
connect/l'
);
require
(
'
./
connect/poly'
);
require
(
'
./
connect/under'
);
require
(
'template/default'
);
require
(
'template/structure'
);
require
(
'template/filetree'
);
require
(
'template/right'
);
require
(
'template/fish-bone'
);
require
(
'
./
template/default'
);
require
(
'
./
template/structure'
);
require
(
'
./
template/filetree'
);
require
(
'
./
template/right'
);
require
(
'
./
template/fish-bone'
);
module
.
exports
=
window
.
kityminder
=
kityminder
;
});
\ No newline at end of file
src/layout/btree.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
Layout
=
require
(
'core/layout'
);
var
kity
=
require
(
'
../
core/kity'
);
var
Layout
=
require
(
'
../
core/layout'
);
[
'left'
,
'right'
,
'top'
,
'bottom'
].
forEach
(
registerLayoutForDirection
);
...
...
src/layout/filetree.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
Layout
=
require
(
'core/layout'
);
var
kity
=
require
(
'
../
core/kity'
);
var
Layout
=
require
(
'
../
core/layout'
);
[
-
1
,
1
].
forEach
(
registerLayoutForDir
);
...
...
src/layout/fish-bone-master.js
View file @
0c98c607
...
...
@@ -8,8 +8,8 @@
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
Layout
=
require
(
'core/layout'
);
var
kity
=
require
(
'
../
core/kity'
);
var
Layout
=
require
(
'
../
core/layout'
);
Layout
.
register
(
'fish-bone-master'
,
kity
.
createClass
(
'FishBoneMasterLayout'
,
{
base
:
Layout
,
...
...
src/layout/fish-bone-slave.js
View file @
0c98c607
/**
* @fileOverview
*
*
*
*
* @author: techird
* @copyright: Baidu FEX, 2014
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
Layout
=
require
(
'core/layout'
);
var
kity
=
require
(
'
../
core/kity'
);
var
Layout
=
require
(
'
../
core/layout'
);
Layout
.
register
(
'fish-bone-slave'
,
kity
.
createClass
(
'FishBoneSlaveLayout'
,
{
base
:
Layout
,
...
...
src/layout/mind.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
Layout
=
require
(
'core/layout'
);
var
Minder
=
require
(
'core/minder'
);
var
kity
=
require
(
'
../
core/kity'
);
var
Layout
=
require
(
'
../
core/layout'
);
var
Minder
=
require
(
'
../
core/minder'
);
Layout
.
register
(
'mind'
,
kity
.
createClass
({
base
:
Layout
,
...
...
src/module/arrange.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
kity
=
require
(
'
../
core/kity'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
kity
.
extendClass
(
MinderNode
,
{
arrange
:
function
(
index
)
{
...
...
src/module/basestyle.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
TextRenderer
=
require
(
'./text'
);
...
...
src/module/clipboard.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
Module
.
register
(
'ClipboardModule'
,
function
()
{
var
km
=
this
,
...
...
src/module/dragtree.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
// 矩形的变形动画定义
var
MoveToParentCommand
=
kity
.
createClass
(
'MoveToParentCommand'
,
{
...
...
src/module/expand.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
keymap
=
require
(
'core/keymap'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
keymap
=
require
(
'
../
core/keymap'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'Expand'
,
function
()
{
var
minder
=
this
;
...
...
src/module/font.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
TextRenderer
=
require
(
'./text'
);
...
...
src/module/history.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
function
compareObject
(
source
,
target
)
{
var
tmp
;
...
...
src/module/hyperlink.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
// jscs:disable maximumLineLength
var
linkShapePath
=
'M16.614,10.224h-1.278c-1.668,0-3.07-1.07-3.599-2.556h4.877c0.707,0,1.278-0.571,1.278-1.278V3.834 c0-0.707-0.571-1.278-1.278-1.278h-4.877C12.266,1.071,13.668,0,15.336,0h1.278c2.116,0,3.834,1.716,3.834,3.834V6.39 C20.448,8.508,18.73,10.224,16.614,10.224z M5.112,5.112c0-0.707,0.573-1.278,1.278-1.278h7.668c0.707,0,1.278,0.571,1.278,1.278 S14.765,6.39,14.058,6.39H6.39C5.685,6.39,5.112,5.819,5.112,5.112z M2.556,3.834V6.39c0,0.707,0.573,1.278,1.278,1.278h4.877 c-0.528,1.486-1.932,2.556-3.599,2.556H3.834C1.716,10.224,0,8.508,0,6.39V3.834C0,1.716,1.716,0,3.834,0h1.278 c1.667,0,3.071,1.071,3.599,2.556H3.834C3.129,2.556,2.556,3.127,2.556,3.834z'
;
...
...
src/module/image.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'image'
,
function
()
{
function
loadImageSize
(
url
,
callback
)
{
...
...
src/module/keynav.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
keymap
=
require
(
'core/keymap'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
keymap
=
require
(
'
../
core/keymap'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'KeyboardModule'
,
function
()
{
var
min
=
Math
.
min
,
...
...
src/module/node.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
/**
* @command AppendChildNode
...
...
src/module/note.js
View file @
0c98c607
...
...
@@ -7,14 +7,14 @@
* @copyright: Baidu FEX, 2014
*/
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'NoteModule'
,
function
()
{
...
...
src/module/outline.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
var
OutlineRenderer
=
kity
.
createClass
(
'OutlineRenderer'
,
{
base
:
Renderer
,
...
...
src/module/priority.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'PriorityModule'
,
function
()
{
var
minder
=
this
;
...
...
src/module/progress.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'ProgressModule'
,
function
()
{
var
minder
=
this
;
...
...
src/module/resource.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'Resource'
,
function
()
{
...
...
src/module/select.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'Select'
,
function
()
{
var
minder
=
this
;
...
...
src/module/style.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'StyleModule'
,
function
()
{
var
styleNames
=
[
'font-size'
,
'font-family'
,
'font-weight'
,
'font-style'
,
'background'
,
'color'
];
...
...
src/module/text.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
var
FONT_ADJUST
=
{
'微软雅黑,Microsoft YaHei'
:
-
0.15
,
'arial black,avant garde'
:
-
0.17
,
...
...
src/module/view.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
var
ViewDragger
=
kity
.
createClass
(
'ViewDragger'
,
{
constructor
:
function
(
minder
)
{
...
...
src/module/zoom.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
utils
=
require
(
'core/utils'
);
var
Minder
=
require
(
'core/minder'
);
var
MinderNode
=
require
(
'core/node'
);
var
Command
=
require
(
'core/command'
);
var
Module
=
require
(
'core/module'
);
var
Renderer
=
require
(
'core/render'
);
var
kity
=
require
(
'
../
core/kity'
);
var
utils
=
require
(
'
../
core/utils'
);
var
Minder
=
require
(
'
../
core/minder'
);
var
MinderNode
=
require
(
'
../
core/node'
);
var
Command
=
require
(
'
../
core/command'
);
var
Module
=
require
(
'
../
core/module'
);
var
Renderer
=
require
(
'
../
core/render'
);
Module
.
register
(
'Zoom'
,
function
()
{
var
me
=
this
;
...
...
src/template/default.js
View file @
0c98c607
...
...
@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define
(
function
(
require
,
exports
,
module
)
{
var
template
=
require
(
'core/template'
);
var
template
=
require
(
'
../
core/template'
);
template
.
register
(
'default'
,
{
...
...
src/template/filetree.js
View file @
0c98c607
...
...
@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define
(
function
(
require
,
exports
,
module
)
{
var
template
=
require
(
'core/template'
);
var
template
=
require
(
'
../
core/template'
);
template
.
register
(
'filetree'
,
{
...
...
src/template/fish-bone.js
View file @
0c98c607
...
...
@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define
(
function
(
require
,
exports
,
module
)
{
var
template
=
require
(
'core/template'
);
var
template
=
require
(
'
../
core/template'
);
template
.
register
(
'fish-bone'
,
{
...
...
src/template/right.js
View file @
0c98c607
...
...
@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define
(
function
(
require
,
exports
,
module
)
{
var
template
=
require
(
'core/template'
);
var
template
=
require
(
'
../
core/template'
);
template
.
register
(
'right'
,
{
...
...
src/template/structure.js
View file @
0c98c607
...
...
@@ -7,7 +7,7 @@
* @copyright: Baidu FEX, 2014
*/
define
(
function
(
require
,
exports
,
module
)
{
var
template
=
require
(
'core/template'
);
var
template
=
require
(
'
../
core/template'
);
template
.
register
(
'structure'
,
{
...
...
src/theme/default.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
theme
=
require
(
'core/theme'
);
var
theme
=
require
(
'
../
core/theme'
);
[
'classic'
,
'classic-compact'
].
forEach
(
function
(
name
)
{
var
compact
=
name
==
'classic-compact'
;
...
...
src/theme/fish.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
theme
=
require
(
'core/theme'
);
var
theme
=
require
(
'
../
core/theme'
);
theme
.
register
(
'fish'
,
{
'background'
:
'#3A4144 url(ui/theme/default/images/grid.png) repeat'
,
...
...
src/theme/fresh.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
kity
=
require
(
'core/kity'
);
var
theme
=
require
(
'core/theme'
);
var
kity
=
require
(
'
../
core/kity'
);
var
theme
=
require
(
'
../
core/theme'
);
function
hsl
(
h
,
s
,
l
)
{
return
kity
.
Color
.
createHSL
(
h
,
s
,
l
);
...
...
src/theme/snow.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
theme
=
require
(
'core/theme'
);
var
theme
=
require
(
'
../
core/theme'
);
[
'snow'
,
'snow-compact'
].
forEach
(
function
(
name
)
{
var
compact
=
name
==
'snow-compact'
;
...
...
src/theme/wire.js
View file @
0c98c607
define
(
function
(
require
,
exports
,
module
)
{
var
theme
=
require
(
'core/theme'
);
var
theme
=
require
(
'
../
core/theme'
);
theme
.
register
(
'wire'
,
{
'background'
:
'black'
,
...
...
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