Skip to content

Commit

Permalink
feat(release): prepare to release
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbobell committed Apr 10, 2017
1 parent abe61d7 commit e18b3d1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "kityminder-core",
"title": "Kity Minder Core",
"description": "Powerful online mind graphic visualization and editor (command based)",
"version": "1.4.37",
"version": "1.4.38",
"main": [
"dist/kityminder.core.min.js",
"dist/kityminder.core.css"
Expand Down
20 changes: 11 additions & 9 deletions dist/kityminder.core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* ====================================================
* kityminder - v1.4.37 - 2017-03-23
* kityminder - v1.4.38 - 2017-04-10
* https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2017 Baidu FEX; Licensed MIT
Expand Down Expand Up @@ -1969,7 +1969,7 @@ _p[19] = {
this.fire("finishInitHook");
}
});
Minder.version = "1.4.37";
Minder.version = "1.4.38";
Minder.registerInitHook = function(hook) {
_initHooks.push(hook);
};
Expand Down Expand Up @@ -2311,7 +2311,7 @@ _p[21] = {
return this.rc;
},
getCommonAncestor: function(node) {
return MinderNode.getNodeCommonAncestor(this, node);
return MinderNode.getCommonAncestor(this, node);
},
contains: function(node) {
return this == node || this.isAncestorOf(node);
Expand Down Expand Up @@ -3041,6 +3041,8 @@ _p[27] = {
renderer.getRenderShape().setVisible(false);
lastBoxes[j] = null;
}
// 更新 render 的 contentBox
renderer.contentBox = lastBoxes[j];
}
}
for (j = 0; j < nodes.length; j++) {
Expand Down Expand Up @@ -6302,7 +6304,7 @@ _p[55] = {
var BACK_PATH = "M0,13c0,3.866,3.134,7,7,7h6c3.866,0,7-3.134,7-7V7H0V13z";
var MASK_PATH = "M20,10c0,3.866-3.134,7-7,7H7c-3.866,0-7-3.134-7-7V7c0-3.866,3.134-7,7-7h6c3.866,0,7,3.134,7,7V10z";
var PRIORITY_DATA = "priority";
// 进度图标的图形
// 优先级图标的图形
var PriorityIcon = kity.createClass("PriorityIcon", {
base: kity.Group,
constructor: function() {
Expand Down Expand Up @@ -8088,8 +8090,8 @@ _p[65] = {
url: imageUrl,
width: imageSize.width,
height: imageSize.height,
x: -renderContainer.getBoundaryBox().x + imageRenderBox.x + 20,
y: -renderContainer.getBoundaryBox().y + imageRenderBox.y + 20
x: -renderContainer.getBoundaryBox().x + imageRenderBox.x,
y: -renderContainer.getBoundaryBox().y + imageRenderBox.y
};
imagesInfo.push(imageInfo);
}
Expand Down Expand Up @@ -8132,9 +8134,9 @@ _p[65] = {
}
function drawImage(ctx, image, x, y, width, height) {
if (width && height) {
ctx.drawImage(image, x, y, width, height);
ctx.drawImage(image, x + padding, y + padding, width, height);
} else {
ctx.drawImage(image, x, y);
ctx.drawImage(image, x + padding, y + padding);
}
}
function generateDataUrl(canvas) {
Expand All @@ -8156,7 +8158,7 @@ _p[65] = {
return loadImages(imagesInfo);
}).then(function($images) {
for (var i = 0; i < $images.length; i++) {
drawImage(ctx, $images[i].element, $images[i].x, $images[i].y, $images[i].width, $images[i].height);
drawImage(ctx, $images[i].element, $images[i].x + offsetX, $images[i].y + offsetY, $images[i].width, $images[i].height);
}
DomURL.revokeObjectURL(svgDataUrl);
document.body.appendChild(canvas);
Expand Down
12 changes: 6 additions & 6 deletions dist/kityminder.core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "kityminder",
"title": "kityminder",
"description": "KityMinder Core Implement",
"version": "1.4.37",
"version": "1.4.38",
"homepage": "https://github.com/fex-team/kityminder-core",
"author": {
"name": "Baidu FEX",
Expand Down
2 changes: 1 addition & 1 deletion src/core/minder.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define(function(require, exports, module) {
}
});

Minder.version = '1.4.37';
Minder.version = '1.4.38';

Minder.registerInitHook = function(hook) {
_initHooks.push(hook);
Expand Down

0 comments on commit e18b3d1

Please sign in to comment.