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
ef89fc48
Commit
ef89fc48
authored
Feb 18, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by zhanyi
parent
d53af815
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
editor.js
src/module/editor.js
+15
-1
editor.receiver.js
src/module/editor.receiver.js
+1
-0
icon.js
src/module/icon.js
+2
-2
No files found.
src/module/editor.js
View file @
ef89fc48
...
@@ -48,7 +48,7 @@ KityMinder.registerModule( "TextEditModule", function () {
...
@@ -48,7 +48,7 @@ KityMinder.registerModule( "TextEditModule", function () {
}
}
},
},
'mouseup'
:
function
(
e
){
'mouseup'
:
function
(
e
){
if
(
!
sel
.
collapsed
){
if
(
!
sel
.
collapsed
&&
mouseDownStatus
){
receiver
.
updateRange
(
range
)
receiver
.
updateRange
(
range
)
}
}
mouseDownStatus
=
false
;
mouseDownStatus
=
false
;
...
@@ -119,6 +119,20 @@ KityMinder.registerModule( "TextEditModule", function () {
...
@@ -119,6 +119,20 @@ KityMinder.registerModule( "TextEditModule", function () {
.
updateRange
(
range
);
.
updateRange
(
range
);
}
if
(
e
.
commandName
==
'priority'
||
e
.
commandName
==
'progress'
){
receiver
.
setBaseOffset
()
.
getTextOffsetData
();
if
(
sel
.
collapsed
){
receiver
.
updateSelection
();
}
else
{
receiver
.
updateSelectionShow
(
1
)
}
}
}
}
}
}
}
...
...
src/module/editor.receiver.js
View file @
ef89fc48
...
@@ -143,6 +143,7 @@ Minder.Receiver = kity.createClass('Receiver',{
...
@@ -143,6 +143,7 @@ Minder.Receiver = kity.createClass('Receiver',{
// var textOffset = this.textShape.getRenderBox();
// var textOffset = this.textShape.getRenderBox();
var
contRcOffset
=
this
.
minderNode
.
getContRc
().
getRenderBox
();
var
contRcOffset
=
this
.
minderNode
.
getContRc
().
getRenderBox
();
this
.
offset
=
{
this
.
offset
=
{
x
:
nodeOffset
.
x
+
contRcOffset
.
x
,
x
:
nodeOffset
.
x
+
contRcOffset
.
x
,
y
:
nodeOffset
.
y
+
contRcOffset
.
y
y
:
nodeOffset
.
y
+
contRcOffset
.
y
...
...
src/module/icon.js
View file @
ef89fc48
...
@@ -87,8 +87,8 @@ KityMinder.registerModule( "IconModule", function () {
...
@@ -87,8 +87,8 @@ KityMinder.registerModule( "IconModule", function () {
}
)()
);
}
)()
);
return
{
return
{
"commands"
:
{
"commands"
:
{
"
set
priority"
:
setPriorityCommand
,
"priority"
:
setPriorityCommand
,
"
set
progress"
:
setProgressCommand
"progress"
:
setProgressCommand
},
},
"events"
:
{
"events"
:
{
"RenderNode"
:
function
(
e
)
{
"RenderNode"
:
function
(
e
)
{
...
...
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