Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
20d8194b
Commit
20d8194b
authored
Jan 21, 2014
by
Nick Schonning
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JSCS: Remove Illegal spaces
parent
e40c0c5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
jquery.flot.js
jquery.flot.js
+3
-3
jquery.flot.navigate.js
jquery.flot.navigate.js
+2
-2
jquery.flot.selection.js
jquery.flot.selection.js
+5
-5
No files found.
jquery.flot.js
View file @
20d8194b
...
@@ -1301,7 +1301,7 @@ Licensed under the MIT license.
...
@@ -1301,7 +1301,7 @@ Licensed under the MIT license.
for
(
i
=
0
;
i
<
series
.
length
;
++
i
)
{
for
(
i
=
0
;
i
<
series
.
length
;
++
i
)
{
s
=
series
[
i
];
s
=
series
[
i
];
s
.
datapoints
=
{
points
:
[]
};
s
.
datapoints
=
{
points
:
[]
};
executeHooks
(
hooks
.
processRawData
,
[
s
,
s
.
data
,
s
.
datapoints
]);
executeHooks
(
hooks
.
processRawData
,
[
s
,
s
.
data
,
s
.
datapoints
]);
}
}
// first pass: clean and copy data
// first pass: clean and copy data
...
@@ -1401,7 +1401,7 @@ Licensed under the MIT license.
...
@@ -1401,7 +1401,7 @@ Licensed under the MIT license.
for
(
i
=
0
;
i
<
series
.
length
;
++
i
)
{
for
(
i
=
0
;
i
<
series
.
length
;
++
i
)
{
s
=
series
[
i
];
s
=
series
[
i
];
executeHooks
(
hooks
.
processDatapoints
,
[
s
,
s
.
datapoints
]);
executeHooks
(
hooks
.
processDatapoints
,
[
s
,
s
.
datapoints
]);
}
}
// second pass: find datamax/datamin for auto-scaling
// second pass: find datamax/datamin for auto-scaling
...
@@ -3385,7 +3385,7 @@ Licensed under the MIT license.
...
@@ -3385,7 +3385,7 @@ Licensed under the MIT license.
}
}
}
}
placeholder
.
trigger
(
eventname
,
[
pos
,
item
]);
placeholder
.
trigger
(
eventname
,
[
pos
,
item
]);
}
}
function
triggerRedrawOverlay
()
{
function
triggerRedrawOverlay
()
{
...
...
jquery.flot.navigate.js
View file @
20d8194b
...
@@ -256,7 +256,7 @@ can set the default in the options.
...
@@ -256,7 +256,7 @@ can set the default in the options.
plot
.
draw
();
plot
.
draw
();
if
(
!
args
.
preventEvent
)
{
if
(
!
args
.
preventEvent
)
{
plot
.
getPlaceholder
().
trigger
(
"plotzoom"
,
[
plot
,
args
]);
plot
.
getPlaceholder
().
trigger
(
"plotzoom"
,
[
plot
,
args
]);
}
}
};
};
...
@@ -308,7 +308,7 @@ can set the default in the options.
...
@@ -308,7 +308,7 @@ can set the default in the options.
plot
.
draw
();
plot
.
draw
();
if
(
!
args
.
preventEvent
)
{
if
(
!
args
.
preventEvent
)
{
plot
.
getPlaceholder
().
trigger
(
"plotpan"
,
[
plot
,
args
]);
plot
.
getPlaceholder
().
trigger
(
"plotpan"
,
[
plot
,
args
]);
}
}
};
};
...
...
jquery.flot.selection.js
View file @
20d8194b
...
@@ -101,7 +101,7 @@ The plugin allso adds the following methods to the plot object:
...
@@ -101,7 +101,7 @@ The plugin allso adds the following methods to the plot object:
function
onMouseMove
(
e
)
{
function
onMouseMove
(
e
)
{
if
(
selection
.
active
)
{
if
(
selection
.
active
)
{
updateSelection
(
e
);
updateSelection
(
e
);
plot
.
getPlaceholder
().
trigger
(
"plotselecting"
,
[
getSelection
()
]);
plot
.
getPlaceholder
().
trigger
(
"plotselecting"
,
[
getSelection
()
]);
// prevent the default action if it is a 'touch' action
// prevent the default action if it is a 'touch' action
if
(
selection
.
touch
===
true
)
{
if
(
selection
.
touch
===
true
)
{
...
@@ -161,8 +161,8 @@ The plugin allso adds the following methods to the plot object:
...
@@ -161,8 +161,8 @@ The plugin allso adds the following methods to the plot object:
triggerSelectedEvent
();
triggerSelectedEvent
();
}
else
{
}
else
{
// this counts as a clear
// this counts as a clear
plot
.
getPlaceholder
().
trigger
(
"plotunselected"
,
[
]);
plot
.
getPlaceholder
().
trigger
(
"plotunselected"
,
[]);
plot
.
getPlaceholder
().
trigger
(
"plotselecting"
,
[
null
]);
plot
.
getPlaceholder
().
trigger
(
"plotselecting"
,
[
null
]);
}
}
selection
.
touch
=
false
;
selection
.
touch
=
false
;
...
@@ -192,11 +192,11 @@ The plugin allso adds the following methods to the plot object:
...
@@ -192,11 +192,11 @@ The plugin allso adds the following methods to the plot object:
function
triggerSelectedEvent
()
{
function
triggerSelectedEvent
()
{
var
r
=
getSelection
();
var
r
=
getSelection
();
plot
.
getPlaceholder
().
trigger
(
"plotselected"
,
[
r
]);
plot
.
getPlaceholder
().
trigger
(
"plotselected"
,
[
r
]);
// backwards-compat stuff, to be removed in future
// backwards-compat stuff, to be removed in future
if
(
r
.
xaxis
&&
r
.
yaxis
)
{
if
(
r
.
xaxis
&&
r
.
yaxis
)
{
plot
.
getPlaceholder
().
trigger
(
"selected"
,
[
{
x1
:
r
.
xaxis
.
from
,
y1
:
r
.
yaxis
.
from
,
x2
:
r
.
xaxis
.
to
,
y2
:
r
.
yaxis
.
to
}
]);
plot
.
getPlaceholder
().
trigger
(
"selected"
,
[
{
x1
:
r
.
xaxis
.
from
,
y1
:
r
.
yaxis
.
from
,
x2
:
r
.
xaxis
.
to
,
y2
:
r
.
yaxis
.
to
}
]);
}
}
}
}
...
...
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