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
748e8d61
Commit
748e8d61
authored
Apr 18, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed "
parent
9f71d9fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
saveto.js
src/adapter/saveto.js
+1
-2
png.js
src/protocal/png.js
+2
-2
No files found.
src/adapter/saveto.js
View file @
748e8d61
...
...
@@ -11,7 +11,7 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
value
:
[],
autowidthitem
:
[],
enabledRecord
:
false
,
enabledSelected
:
false
enabledSelected
:
false
},
$combox
=
null
,
comboboxWidget
=
null
;
...
...
@@ -81,7 +81,6 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
}
}
else
if
(
data
&&
data
.
then
)
{
data
.
then
(
function
(
url
)
{
console
.
log
(
url
);
if
(
ie_ver
()
>
0
)
{
//doSave( 'application/base64', url.replace( 'image/octet-stream,', '' ), filename );
}
else
{
...
...
src/protocal/png.js
View file @
748e8d61
...
...
@@ -2,6 +2,7 @@ KityMinder.registerProtocal( "png", function () {
function
loadImage
(
url
,
callback
)
{
var
image
=
new
Image
();
image
.
onload
=
callback
;
console
.
log
(
url
);
image
.
src
=
url
;
}
...
...
@@ -27,7 +28,7 @@ KityMinder.registerProtocal( "png", function () {
ctx
=
canvas
.
getContext
(
'2d'
),
blob
,
DomURL
,
url
,
img
,
finishCallback
;
bgUrl
=
bgUrl
.
replace
(
/"/g
,
''
);
renderContainer
.
translate
(
-
renderBox
.
x
,
-
renderBox
.
y
);
svgXml
=
km
.
getPaper
().
container
.
innerHTML
;
...
...
@@ -73,7 +74,6 @@ KityMinder.registerProtocal( "png", function () {
var
url
=
canvas
.
toDataURL
(
'png'
);
return
url
.
replace
(
'image/png'
,
'image/octet-stream'
);
}
loadImage
(
url
,
function
()
{
var
svgImage
=
this
;
loadImage
(
bgUrl
,
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