Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
70824353
Commit
70824353
authored
Mar 18, 2014
by
Marc Duez
Browse files
graph.js : debug resolution line with time_order
-resolution line now change when time order change
parent
eaa4fcc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/graph.js
View file @
70824353
...
@@ -184,7 +184,6 @@ Graph.prototype = {
...
@@ -184,7 +184,6 @@ Graph.prototype = {
var
coordinates
=
[
0
,
0
];
var
coordinates
=
[
0
,
0
];
coordinates
=
d3
.
mouse
(
d3
.
select
(
"
#
"
+
this
.
id
+
"
_svg
"
).
node
());
coordinates
=
d3
.
mouse
(
d3
.
select
(
"
#
"
+
this
.
id
+
"
_svg
"
).
node
());
d
.
pos
=
(
coordinates
[
0
]
-
this
.
marge4
)
/
this
.
resizeW
d
.
pos
=
(
coordinates
[
0
]
-
this
.
marge4
)
/
this
.
resizeW
console
.
log
(
d
.
pos
)
}
else
{
}
else
{
d
.
pos
=
this
.
graph_col
[
this
.
m
.
time_order
.
indexOf
(
i
)];
d
.
pos
=
this
.
graph_col
[
this
.
m
.
time_order
.
indexOf
(
i
)];
}
}
...
@@ -486,7 +485,7 @@ Graph.prototype = {
...
@@ -486,7 +485,7 @@ Graph.prototype = {
p
.
push
([
0
,
(
1
-
this
.
scale_x
(
res
[
0
][
r
]
*
this
.
precision
)
)
]);
p
.
push
([
0
,
(
1
-
this
.
scale_x
(
res
[
0
][
r
]
*
this
.
precision
)
)
]);
for
(
var
i
=
0
;
i
<
this
.
graph_col
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
this
.
graph_col
.
length
;
i
++
){
p
.
push
([(
this
.
graph_col
[
i
]),
(
1
-
this
.
scale_x
(
res
[
i
][
r
]
*
this
.
precision
))]);
p
.
push
([(
this
.
graph_col
[
i
]),
(
1
-
this
.
scale_x
(
res
[
this
.
m
.
time_order
[
i
]
][
r
]
*
this
.
precision
))]);
}
}
p
.
push
([
1
,
(
1
-
this
.
scale_x
(
res
[
this
.
graph_col
.
length
-
1
][
r
]
*
this
.
precision
))]);
p
.
push
([
1
,
(
1
-
this
.
scale_x
(
res
[
this
.
graph_col
.
length
-
1
][
r
]
*
this
.
precision
))]);
p
.
push
([
1
,
1
+
0.1
]);
p
.
push
([
1
,
1
+
0.1
]);
...
...
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