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
d18c8279
Commit
d18c8279
authored
May 08, 2014
by
campaign
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
80650cdc
65f8f3ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
view.js
src/module/view.js
+5
-4
No files found.
src/module/view.js
View file @
d18c8279
...
@@ -97,7 +97,7 @@ KityMinder.registerModule( 'View', function () {
...
@@ -97,7 +97,7 @@ KityMinder.registerModule( 'View', function () {
queryState
:
function
(
minder
)
{
queryState
:
function
(
minder
)
{
return
minder
.
_viewDragger
.
isEnabled
()
?
1
:
0
;
return
minder
.
_viewDragger
.
isEnabled
()
?
1
:
0
;
},
},
enableReadOnly
:
false
enableReadOnly
:
false
}
);
}
);
var
CameraCommand
=
kity
.
createClass
(
"CameraCommand"
,
{
var
CameraCommand
=
kity
.
createClass
(
"CameraCommand"
,
{
...
@@ -110,7 +110,7 @@ KityMinder.registerModule( 'View', function () {
...
@@ -110,7 +110,7 @@ KityMinder.registerModule( 'View', function () {
km
.
getRenderContainer
().
fxTranslate
(
dx
,
dy
,
1000
,
"easeOutQuint"
);
km
.
getRenderContainer
().
fxTranslate
(
dx
,
dy
,
1000
,
"easeOutQuint"
);
this
.
setContentChanged
(
false
);
this
.
setContentChanged
(
false
);
},
},
enableReadOnly
:
false
enableReadOnly
:
false
}
);
}
);
return
{
return
{
...
@@ -153,8 +153,9 @@ KityMinder.registerModule( 'View', function () {
...
@@ -153,8 +153,9 @@ KityMinder.registerModule( 'View', function () {
e
.
preventDefault
();
e
.
preventDefault
();
},
},
'normal.dblclick readonly.dblclick'
:
function
(
e
)
{
'normal.dblclick readonly.dblclick'
:
function
(
e
)
{
if
(
e
.
getTargetNode
()
)
return
;
if
(
e
.
kityEvent
.
targetShape
instanceof
kity
.
Paper
)
{
this
.
execCommand
(
'camera'
,
this
.
getRoot
()
);
this
.
execCommand
(
'camera'
,
this
.
getRoot
()
);
}
}
}
}
}
};
};
...
...
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