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
5dc7f91c
Commit
5dc7f91c
authored
Dec 02, 2016
by
张博
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/fex-team/kityminder-core
into dev
parents
06182eb1
dd71f27f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+1
-1
png.js
src/protocol/png.js
+5
-5
No files found.
README.md
View file @
5dc7f91c
...
...
@@ -10,7 +10,7 @@ KityMinder 是一款强大的脑图可视化/编辑工具,由百度 FEX 团队
*
包括脑图数据的可视化展示(Json 格式)
*
包括简单的编辑功能(节点创建、编辑、删除)。更加强大编辑功能的 KityMinder 编辑器请移步
[
kityminder-editor
](
https://github.com/fex-team/kityminder-editor
)
*
不包含第三方格式(FreeMind、XMind、MindManager)的支持,可以加载
[
kityminder-protocol
](
https://github.com/fex-team/kityminder-third-party-protocol
)
来扩展第三方格式支持。
*
不包含文件存储的支持,需要自行实现存储。可参照
[
百度脑图
](
https://
github.com/fex-team/
naotu.baidu.com
)
中的开源的 fio + 百度网盘方案进行实现。
*
不包含文件存储的支持,需要自行实现存储。可参照
[
百度脑图
](
https://naotu.baidu.com
)
中的开源的 fio + 百度网盘方案进行实现。
## 使用
...
...
src/protocol/png.js
View file @
5dc7f91c
...
...
@@ -136,10 +136,10 @@ define(function(require, exports, module) {
/* 获取 SVG 文件内容 */
var
svgInfo
=
getSVGInfo
(
minder
);
var
width
=
option
.
width
&&
option
.
width
>
svgInfo
.
width
?
option
.
width
:
svgInfo
.
width
;
var
height
=
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
offsetY
=
option
.
height
&&
option
.
height
>
svgInfo
.
height
?
(
option
.
height
-
svgInfo
.
height
)
/
2
:
0
;
var
width
=
option
&&
option
.
width
&&
option
.
width
>
svgInfo
.
width
?
option
.
width
:
svgInfo
.
width
;
var
height
=
option
&&
option
.
height
&&
option
.
height
>
svgInfo
.
height
?
option
.
height
:
svgInfo
.
height
;
var
offsetX
=
option
&&
option
.
width
&&
option
.
width
>
svgInfo
.
width
?
(
option
.
width
-
svgInfo
.
width
)
/
2
:
0
;
var
offsetY
=
option
&&
option
.
height
&&
option
.
height
>
svgInfo
.
height
?
(
option
.
height
-
svgInfo
.
height
)
/
2
:
0
;
var
svgDataUrl
=
svgInfo
.
dataUrl
;
var
imagesInfo
=
svgInfo
.
imagesInfo
;
...
...
@@ -219,4 +219,4 @@ define(function(require, exports, module) {
dataType
:
"base64"
,
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