Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
e15b74c9
Commit
e15b74c9
authored
Jul 04, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化光标显示效果
parent
6074b46a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
editor.selection.js
src/module/editor.selection.js
+4
-3
kityminder.css
themes/default/css/kityminder.css
+1
-1
No files found.
src/module/editor.selection.js
View file @
e15b74c9
...
...
@@ -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
()
{
...
...
themes/default/css/kityminder.css
View file @
e15b74c9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment