Commit 833dffa3 authored by zhangbobell's avatar zhangbobell

feat(release): release v1.4.43

parent 88d70148
......@@ -2,7 +2,7 @@
"name": "kityminder-core",
"title": "Kity Minder Core",
"description": "Powerful online mind graphic visualization and editor (command based)",
"version": "1.4.42",
"version": "1.4.43",
"main": [
"dist/kityminder.core.min.js",
"dist/kityminder.core.css"
......
/*!
* ====================================================
* kityminder - v1.4.42 - 2017-05-24
* kityminder - v1.4.43 - 2017-05-24
* https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2017 Baidu FEX; Licensed MIT
......@@ -1969,7 +1969,7 @@ _p[19] = {
this.fire("finishInitHook");
}
});
Minder.version = "1.4.42";
Minder.version = "1.4.43";
Minder.registerInitHook = function(hook) {
_initHooks.push(hook);
};
......@@ -8104,19 +8104,17 @@ _p[65] = {
});
svgUrl = DomURL.createObjectURL(blob);
//svgUrl = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svgXml);
var allNodes = minder.getAllNode();
var imagesInfo = [];
for (var i = 0; i < allNodes.length; i++) {
var nodeData = allNodes[i].data;
if (nodeData.image && nodeData.expandState === "expand") {
/*
* 导出之前渲染这个节点,否则取出的 contentBox 不对
* by zhangbobell
* */
minder.renderNode(allNodes[i]);
// 遍历取出图片信息
traverse(minder.getRoot());
function traverse(node) {
var nodeData = node.data;
if (nodeData.image) {
minder.renderNode(node);
var nodeData = node.data;
var imageUrl = nodeData.image;
var imageSize = nodeData.imageSize;
var imageRenderBox = allNodes[i].getRenderBox("ImageRenderer", minder.getRenderContainer());
var imageRenderBox = node.getRenderBox("ImageRenderer", minder.getRenderContainer());
var imageInfo = {
url: imageUrl,
width: imageSize.width,
......@@ -8126,6 +8124,14 @@ _p[65] = {
};
imagesInfo.push(imageInfo);
}
// 若节点折叠,则直接返回
if (nodeData.expandState === "collapse") {
return;
}
var children = node.getChildren();
for (var i = 0; i < children.length; i++) {
traverse(children[i]);
}
}
return {
width: width,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@
"name": "kityminder",
"title": "kityminder",
"description": "KityMinder Core Implement",
"version": "1.4.42",
"version": "1.4.43",
"homepage": "https://github.com/fex-team/kityminder-core",
"author": {
"name": "Baidu FEX",
......
......@@ -30,7 +30,7 @@ define(function(require, exports, module) {
}
});
Minder.version = '1.4.42';
Minder.version = '1.4.43';
Minder.registerInitHook = function(hook) {
_initHooks.push(hook);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment