@kevinburke/flot 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +94 -0
- package/dist/flot.js +87 -12
- package/dist/flot.min.js +1 -1
- package/dist/flot.min.js.map +1 -1
- package/dist/flot.mjs +87 -12
- package/dist/jquery.flot.js +87 -12
- package/dist/jquery.flot.min.js +1 -1
- package/dist/jquery.flot.min.js.map +1 -1
- package/dist/plugins/jquery.flot.crosshair.js +1 -1
- package/dist/plugins/jquery.flot.image.js +1 -1
- package/dist/plugins/jquery.flot.pie.js +9 -1
- package/dist/plugins/jquery.flot.pie.min.js +1 -1
- package/dist/plugins/jquery.flot.pie.min.js.map +1 -1
- package/dist/plugins/jquery.flot.resize.js +1 -1
- package/dist/plugins/jquery.flot.threshold.js +1 -1
- package/package.json +14 -6
- package/source/jquery.canvaswrapper.js +9 -3
- package/source/jquery.flot.js +23 -5
- package/source/jquery.flot.legend.js +36 -3
- package/source/jquery.flot.navigate.js +18 -0
- package/source/jquery.flot.pie.js +8 -0
- package/types/test.ts +7 -7
package/types/test.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// sensible types. Run `npx tsc --noEmit types/test.ts` to check.
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
+
color,
|
|
5
6
|
type DataSeries,
|
|
6
7
|
type Plot,
|
|
7
8
|
type PlotOptions,
|
|
8
|
-
color,
|
|
9
9
|
plot,
|
|
10
10
|
saturated,
|
|
11
11
|
version,
|
|
@@ -44,11 +44,11 @@ const p: Plot = plot(el, data, options);
|
|
|
44
44
|
// Plot methods
|
|
45
45
|
p.getData();
|
|
46
46
|
p.setData(data);
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
47
|
+
const _offset = p.getPlotOffset();
|
|
48
|
+
const _width: number = p.width();
|
|
49
|
+
const _height: number = p.height();
|
|
50
|
+
const _axes = p.getAxes();
|
|
51
|
+
const _xAxes = p.getXAxes();
|
|
52
52
|
|
|
53
53
|
// Plugin methods (optional)
|
|
54
54
|
p.highlight?.(0, 0);
|
|
@@ -66,7 +66,7 @@ saturated.floorInBase(17, 5);
|
|
|
66
66
|
saturated.multiplyAdd(1e300, 10, 5);
|
|
67
67
|
|
|
68
68
|
// Version string
|
|
69
|
-
const
|
|
69
|
+
const _v: string = version;
|
|
70
70
|
|
|
71
71
|
// String placeholder also works
|
|
72
72
|
plot("#placeholder", data);
|