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
f76a3351
Commit
f76a3351
authored
Feb 20, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed select
parent
692be834
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
select.js
src/module/select.js
+4
-4
No files found.
src/module/select.js
View file @
f76a3351
...
@@ -29,7 +29,7 @@ KityMinder.registerModule( "Select", function () {
...
@@ -29,7 +29,7 @@ KityMinder.registerModule( "Select", function () {
startPosition
=
g
.
snapToSharp
(
e
.
getPosition
()
);
startPosition
=
g
.
snapToSharp
(
e
.
getPosition
()
);
},
},
selectMove
:
function
(
e
)
{
selectMove
:
function
(
e
)
{
if
(
minder
.
isTextEditStatus
())
{
if
(
minder
.
isTextEditStatus
()
)
{
return
;
return
;
}
}
if
(
!
startPosition
)
return
;
if
(
!
startPosition
)
return
;
...
@@ -67,7 +67,7 @@ KityMinder.registerModule( "Select", function () {
...
@@ -67,7 +67,7 @@ KityMinder.registerModule( "Select", function () {
// 计算选中范围
// 计算选中范围
minder
.
getRoot
().
traverse
(
function
(
node
)
{
minder
.
getRoot
().
traverse
(
function
(
node
)
{
var
renderBox
=
node
.
getRenderContainer
().
getRenderBox
();
var
renderBox
=
node
.
getRenderContainer
().
getRenderBox
(
"top"
);
if
(
g
.
isBoxIntersect
(
renderBox
,
marquee
)
)
{
if
(
g
.
isBoxIntersect
(
renderBox
,
marquee
)
)
{
selectedNodes
.
push
(
node
);
selectedNodes
.
push
(
node
);
}
}
...
@@ -82,7 +82,7 @@ KityMinder.registerModule( "Select", function () {
...
@@ -82,7 +82,7 @@ KityMinder.registerModule( "Select", function () {
}
}
if
(
marqueeMode
)
{
if
(
marqueeMode
)
{
marqueeShape
.
fadeOut
(
200
,
'ease'
,
0
,
function
()
{
marqueeShape
.
fadeOut
(
200
,
'ease'
,
0
,
function
()
{
if
(
marqueeShape
.
remove
)
marqueeShape
.
remove
();
if
(
marqueeShape
.
remove
)
marqueeShape
.
remove
();
}
);
}
);
marqueeMode
=
false
;
marqueeMode
=
false
;
}
}
...
...
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