Commit 3785d1e1 authored by 马金花儿's avatar 马金花儿

feat(release): release v1.4.48

增加双击图片展开大图的功能
parent 4cf41833
......@@ -13,4 +13,8 @@
height: 20px;
outline: none;
margin: 0;
}
\ No newline at end of file
}
.km-view image{
cursor: zoom-in;
}
/*!
* ====================================================
* Kity Minder Core - v1.4.47 - 2018-03-23
* Kity Minder Core - v1.4.48 - 2018-03-27
* https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2018 Baidu FEX; Licensed BSD-3-Clause
......@@ -5667,6 +5667,9 @@ _p[49] = {
if (title) {
image.node.setAttributeNS("http://www.w3.org/1999/xlink", "title", title);
}
image.node.ondblclick = function() {
!image.dragging && window.open(image.url);
};
var x = box.cx - size.width / 2;
var y = box.y - size.height - spaceTop;
image.setUrl(url).setX(x | 0).setY(y | 0).setWidth(size.width | 0).setHeight(size.height | 0);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@
"name": "kityminder-core",
"title": "Kity Minder Core",
"description": "KityMinder Core Implement",
"version": "1.4.47",
"version": "1.4.48",
"homepage": "https://github.com/fex-team/kityminder-core",
"author": {
"name": "Baidu FEX",
......
......@@ -13,4 +13,8 @@
height: 20px;
outline: none;
margin: 0;
}
\ No newline at end of file
}
.km-view image{
cursor: zoom-in;
}
......@@ -117,6 +117,10 @@ define(function(require, exports, module) {
image.node.setAttributeNS('http://www.w3.org/1999/xlink', 'title', title);
}
image.node.ondblclick = function () {
window.open(image.url);
}
var x = box.cx - size.width / 2;
var y = box.y - size.height - spaceTop;
......
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