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
cc241e11
Commit
cc241e11
authored
Jul 07, 2014
by
campaign
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
d58cf2e5
7458951d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
progress.js
src/module/progress.js
+4
-3
view.js
src/module/view.js
+1
-4
zoom.js
src/module/zoom.js
+12
-3
No files found.
src/module/progress.js
View file @
cc241e11
...
@@ -30,10 +30,11 @@ KityMinder.registerModule('ProgressModule', function() {
...
@@ -30,10 +30,11 @@ KityMinder.registerModule('ProgressModule', function() {
var
check
=
new
kity
.
Path
()
var
check
=
new
kity
.
Path
()
.
getDrawer
()
.
getDrawer
()
.
moveTo
(
-
3
,
0
)
.
moveTo
(
-
3
,
-
1
)
.
lineTo
(
-
1
,
3
)
.
lineTo
(
-
1
,
2
)
.
lineTo
(
3
,
-
2
)
.
lineTo
(
3
,
-
3
)
.
getPath
()
.
getPath
()
.
stroke
(
'white'
,
2
)
.
setVisible
(
false
);
.
setVisible
(
false
);
this
.
addShapes
([
circle
,
pie
,
check
]);
this
.
addShapes
([
circle
,
pie
,
check
]);
...
...
src/module/view.js
View file @
cc241e11
...
@@ -72,10 +72,7 @@ var ViewDragger = kity.createClass("ViewDragger", {
...
@@ -72,10 +72,7 @@ var ViewDragger = kity.createClass("ViewDragger", {
if
(
isTempDrag
)
{
if
(
isTempDrag
)
{
dragger
.
setEnabled
(
false
);
dragger
.
setEnabled
(
false
);
isTempDrag
=
false
;
isTempDrag
=
false
;
var
me
=
this
;
this
.
rollbackStatus
();
setTimeout
(
function
()
{
me
.
rollbackStatus
();
});
}
}
});
});
}
}
...
...
src/module/zoom.js
View file @
cc241e11
...
@@ -4,6 +4,14 @@ KityMinder.registerModule('Zoom', function() {
...
@@ -4,6 +4,14 @@ KityMinder.registerModule('Zoom', function() {
var
timeline
;
var
timeline
;
me
.
setDefaultOptions
(
'zoom'
,
[
50
,
80
,
100
,
120
,
150
,
200
]);
me
.
setDefaultOptions
(
'zoom'
,
[
50
,
80
,
100
,
120
,
150
,
200
]);
function
fixPaperCTM
()
{
var
paper
=
me
.
getPaper
();
var
node
=
paper
.
shapeNode
;
var
ctm
=
node
.
getCTM
();
var
matrix
=
new
kity
.
Matrix
(
ctm
.
a
,
ctm
.
b
,
ctm
.
c
,
ctm
.
d
,
(
ctm
.
e
|
0
)
+
0.5
,
(
ctm
.
f
|
0
)
+
0.5
);
node
.
setAttribute
(
'transform'
,
'matrix('
+
matrix
.
toString
()
+
')'
);
}
function
zoomMinder
(
minder
,
zoom
)
{
function
zoomMinder
(
minder
,
zoom
)
{
var
paper
=
minder
.
getPaper
();
var
paper
=
minder
.
getPaper
();
...
@@ -17,10 +25,11 @@ KityMinder.registerModule('Zoom', function() {
...
@@ -17,10 +25,11 @@ KityMinder.registerModule('Zoom', function() {
setter
:
function
(
target
,
value
)
{
setter
:
function
(
target
,
value
)
{
viewport
.
zoom
=
value
;
viewport
.
zoom
=
value
;
viewport
.
center
=
{
viewport
.
center
=
{
x
:
viewport
.
center
.
x
|
0
+
0.5
,
x
:
viewport
.
center
.
x
,
y
:
viewport
.
center
.
y
|
0
+
0.5
y
:
viewport
.
center
.
y
};
};
target
.
setViewPort
(
viewport
);
target
.
setViewPort
(
viewport
);
fixPaperCTM
();
}
}
});
});
minder
.
zoom
=
zoom
;
minder
.
zoom
=
zoom
;
...
@@ -28,7 +37,7 @@ KityMinder.registerModule('Zoom', function() {
...
@@ -28,7 +37,7 @@ KityMinder.registerModule('Zoom', function() {
timeline
.
pause
();
timeline
.
pause
();
}
}
timeline
=
animator
.
start
(
paper
,
500
,
'ease'
,
function
()
{
timeline
=
animator
.
start
(
paper
,
500
,
'ease'
,
function
()
{
minder
.
refresh
(
3
00
);
minder
.
refresh
(
5
00
);
});
});
}
}
...
...
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