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
fcc99c9a
Commit
fcc99c9a
authored
Oct 20, 2016
by
citywill
Committed by
GitHub
Oct 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update png.js
修复option参数为undefined的bug
parent
89c16d02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
png.js
src/protocol/png.js
+5
-5
No files found.
src/protocol/png.js
View file @
fcc99c9a
...
@@ -136,10 +136,10 @@ define(function(require, exports, module) {
...
@@ -136,10 +136,10 @@ define(function(require, exports, module) {
/* 获取 SVG 文件内容 */
/* 获取 SVG 文件内容 */
var
svgInfo
=
getSVGInfo
(
minder
);
var
svgInfo
=
getSVGInfo
(
minder
);
var
width
=
option
.
width
&&
option
.
width
>
svgInfo
.
width
?
option
.
width
:
svgInfo
.
width
;
var
width
=
option
&&
option
.
width
&&
option
.
width
>
svgInfo
.
width
?
option
.
width
:
svgInfo
.
width
;
var
height
=
option
.
height
&&
option
.
height
>
svgInfo
.
height
?
option
.
height
:
svgInfo
.
height
;
var
height
=
option
&&
option
.
height
&&
option
.
height
>
svgInfo
.
height
?
option
.
height
:
svgInfo
.
height
;
var
offsetX
=
option
.
width
&&
option
.
width
>
svgInfo
.
width
?
(
option
.
width
-
svgInfo
.
width
)
/
2
:
0
;
var
offsetX
=
option
&&
option
.
width
&&
option
.
width
>
svgInfo
.
width
?
(
option
.
width
-
svgInfo
.
width
)
/
2
:
0
;
var
offsetY
=
option
.
height
&&
option
.
height
>
svgInfo
.
height
?
(
option
.
height
-
svgInfo
.
height
)
/
2
:
0
;
var
offsetY
=
option
&&
option
.
height
&&
option
.
height
>
svgInfo
.
height
?
(
option
.
height
-
svgInfo
.
height
)
/
2
:
0
;
var
svgDataUrl
=
svgInfo
.
dataUrl
;
var
svgDataUrl
=
svgInfo
.
dataUrl
;
var
imagesInfo
=
svgInfo
.
imagesInfo
;
var
imagesInfo
=
svgInfo
.
imagesInfo
;
...
@@ -219,4 +219,4 @@ define(function(require, exports, module) {
...
@@ -219,4 +219,4 @@ define(function(require, exports, module) {
dataType
:
"base64"
,
dataType
:
"base64"
,
encode
:
encode
encode
:
encode
});
});
});
});
\ 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