Commit 2d92f0ae authored by Akikonata's avatar Akikonata

dist

parent 346a490f
......@@ -7,26 +7,26 @@
<meta name="description" content="百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。">
<script src="lib/jquery-2.1.0.min.js?_=1399630582836" charset="utf-8"></script>
<script src="lib/ZeroClipboard.min.js?_=1399630582836" charset="utf-8"></script>
<script src="lib/jquery-2.1.0.min.js?_=1399633502321" charset="utf-8"></script>
<script src="lib/ZeroClipboard.min.js?_=1399633502321" charset="utf-8"></script>
<script type="text/javascript">
ZeroClipboard.setDefaults( { moviePath: 'lib/ZeroClipboard.swf' } );
</script>
<script src="lib/kitygraph.all.min.js?_=1399630582836" charset="utf-8"></script>
<script src="kityminder.all.min.js?_=1399630582836" charset="utf-8"></script>
<script src="kityminder.config.js?_=1399630582836" charset="utf-8"></script>
<script src="lang/zh-cn/zh-cn.js?_=1399630582836" charset="utf-8"></script>
<script src="lib/kitygraph.all.min.js?_=1399633502321" charset="utf-8"></script>
<script src="kityminder.all.min.js?_=1399633502321" charset="utf-8"></script>
<script src="kityminder.config.js?_=1399633502321" charset="utf-8"></script>
<script src="lang/zh-cn/zh-cn.js?_=1399633502321" charset="utf-8"></script>
<script src="lib/zip.js?_=1399630582836" charset="utf-8"></script>
<script src="lib/zip.js?_=1399633502321" charset="utf-8"></script>
<script>
zip.inflateJSPath = 'lib/inflate.js';
</script>
<script src="lib/jquery.xml2json.js?_=1399630582836" charset="utf-8"></script>
<script src="lib/baidu-frontia-js-full-1.0.0.js?_=1399630582836" charset="utf-8"></script>
<script src="social/draftmanager.js?_=1399630582836" charset="utf-8"></script>
<script src="social/social.js?_=1399630582836" charset="utf-8"></script>
<script src="lib/jquery.xml2json.js?_=1399633502321" charset="utf-8"></script>
<script src="lib/baidu-frontia-js-full-1.0.0.js?_=1399633502321" charset="utf-8"></script>
<script src="social/draftmanager.js?_=1399633502321" charset="utf-8"></script>
<script src="social/social.js?_=1399633502321" charset="utf-8"></script>
<link href="social/social.css" rel="stylesheet">
<link href="themes/default/css/import.css" type="text/css" rel="stylesheet" />
......
......@@ -2438,9 +2438,13 @@ KityMinder.registerModule( "LayoutModule", function () {
initStyle: function () {
var curStyle = this.getCurrentStyle();
this._rc.remove();
var transform = this._rc.transform;
this._rc = new kity.Group();
this._paper.addShape( this._rc );
this._rc.transform = transform;
this._rc._applyTransform();
var _root = this.getRoot();
_root.preTraverse( function ( n ) {
n.clearLayout();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4846,7 +4846,8 @@ define("graphic/text", [ "graphic/textcontent", "graphic/shape", "core/class", "
var svg = require("graphic/svg");
var offsetHash = {};
function getTextBoundOffset(text) {
var font = window.getComputedStyle(text.node).font;
var style = window.getComputedStyle(text.node);
var font = [ style.fontFamily, style.fontSize, style.fontStretch, style.fontStyle, style.fontVariant, style.fontWeight ].join("-");
if (offsetHash[font]) {
return offsetHash[font];
}
......@@ -4866,9 +4867,6 @@ define("graphic/text", [ "graphic/textcontent", "graphic/shape", "core/class", "
if (content !== undefined) {
this.setContent(content);
}
this.whenPaperReady(function() {
this.setVerticalAlign(this.verticalAlign);
});
},
setX: function(x) {
this.node.setAttribute("x", x);
......@@ -4900,24 +4898,26 @@ define("graphic/text", [ "graphic/textcontent", "graphic/shape", "core/class", "
},
// top/bottom/middle/baseline
setVerticalAlign: function(align) {
var dy;
switch (align) {
case "top":
dy = getTextBoundOffset(this).top;
break;
this.whenPaperReady(function() {
var dy;
switch (align) {
case "top":
dy = getTextBoundOffset(this).top;
break;
case "bottom":
dy = getTextBoundOffset(this).bottom;
break;
case "bottom":
dy = getTextBoundOffset(this).bottom;
break;
case "middle":
dy = getTextBoundOffset(this).middle;
break;
case "middle":
dy = getTextBoundOffset(this).middle;
break;
default:
dy = 0;
}
this.node.setAttribute("dy", dy);
default:
dy = 0;
}
this.node.setAttribute("dy", dy);
});
this.verticalAlign = align;
return this;
},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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