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
305375af
Commit
305375af
authored
Feb 17, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into gh-pages
parents
2b49b177
962898e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
minder.data.js
src/core/minder.data.js
+3
-1
geometry.js
src/module/geometry.js
+12
-0
json.js
src/protocal/json.js
+2
-1
plain.js
src/protocal/plain.js
+2
-1
No files found.
src/core/minder.data.js
View file @
305375af
...
...
@@ -7,7 +7,9 @@ Utils.extend( KityMinder, {
return
KityMinder
.
_protocals
[
name
]
||
null
;
},
getSupportedProtocals
:
function
()
{
return
Utils
.
keys
(
KityMinder
.
_protocals
);
return
Utils
.
keys
(
KityMinder
.
_protocals
).
sort
(
function
(
a
,
b
)
{
return
KityMinder
.
_protocals
[
b
].
recognizePriority
-
KityMinder
.
_protocals
[
a
].
recognizePriority
;
});
},
getAllRegisteredProtocals
:
function
()
{
return
KityMinder
.
_protocals
;
...
...
src/module/geometry.js
View file @
305375af
...
...
@@ -95,5 +95,17 @@ KityMinder.Geometry = ( function () {
return
unknown
;
};
g
.
expandBox
=
function
(
box
,
sizeX
,
sizeY
)
{
if
(
sizeY
===
undefined
)
{
sizeY
=
sizeX
;
}
return
wrapBox
(
{
left
:
box
.
left
-
sizeX
,
top
:
box
.
top
-
sizeY
,
right
:
box
.
right
+
sizeX
,
bottom
:
box
.
bottom
+
sizeY
}
);
};
return
g
;
}
)();
\ No newline at end of file
src/protocal/json.js
View file @
305375af
...
...
@@ -16,6 +16,7 @@ KityMinder.registerProtocal( 'json', function () {
},
recognize
:
function
(
local
)
{
return
Utils
.
isString
(
local
)
&&
local
.
charAt
(
0
)
==
'{'
&&
local
.
charAt
(
local
.
length
-
1
)
==
'}'
;
}
},
recognizePriority
:
0
};
}
);
\ No newline at end of file
src/protocal/plain.js
View file @
305375af
...
...
@@ -96,6 +96,7 @@ KityMinder.registerProtocal( "plain", function () {
}
return
decode
(
local
);
},
recognize
:
recognize
recognize
:
recognize
,
recognizePriority
:
-
1
};
}
);
\ No newline at end of file
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