Commit e15b74c9 authored by techird's avatar techird

优化光标显示效果

parent 6074b46a
......@@ -69,8 +69,9 @@ Minder.Selection = kity.createClass( 'Selection', {
},
setPosition: function ( offset ) {
try {
this.x = Math.round(offset.x);
this.y = Math.round(offset.y);
// 这两个是神奇的 0.5 —— SVG 要边缘锐利,你需要一些对齐
this.x = Math.round(offset.x) - 0.5;
this.y = Math.round(offset.y) - 1.5;
} catch ( e ) {
console.log(e);
......@@ -79,7 +80,7 @@ Minder.Selection = kity.createClass( 'Selection', {
return this;
},
setHeight: function ( height ) {
this.height = height;
this.height = Math.round(height) + 2;
return this;
},
setHide: function () {
......
......@@ -251,7 +251,7 @@ button#share-btn:hover {
overflow: hidden;
}
svg, body {
font-family: Arial, "Hiragino Sans GB", "Microsoft Yahei", "Heiti SC", sans-serif;
font-family: Arial, "Microsoft Yahei", "Heiti SC", sans-serif;
}
#about {
position:absolute;
......
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