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
d0599807
Commit
d0599807
authored
Feb 17, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dist
parent
305375af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
dev.js
dist/dev.js
+19
-3
No files found.
dist/dev.js
View file @
d0599807
...
...
@@ -802,7 +802,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
;
...
...
@@ -1357,6 +1359,18 @@ 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
;
}
)();
...
...
@@ -6552,7 +6566,8 @@ KityMinder.registerProtocal( "plain", function () {
}
return
decode
(
local
);
},
recognize
:
recognize
recognize
:
recognize
,
recognizePriority
:
-
1
};
}
);
...
...
@@ -6574,7 +6589,8 @@ KityMinder.registerProtocal( 'json', function () {
},
recognize
:
function
(
local
)
{
return
Utils
.
isString
(
local
)
&&
local
.
charAt
(
0
)
==
'{'
&&
local
.
charAt
(
local
.
length
-
1
)
==
'}'
;
}
},
recognizePriority
:
0
};
}
);
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