@kevinburke/flot 5.1.2 → 5.1.3

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 CHANGED
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
5
5
  Starting with 5.0.0, this changelog tracks the @kevinburke/flot fork.
6
6
  For earlier upstream history, see the [flot/flot repository](https://github.com/flot/flot).
7
7
 
8
+ ## [5.1.3] - 2026-04-22
9
+
10
+ ### Fixed
11
+
12
+ - `rollup.config.js` / `jquery-adapter.js` / `jquery.flot.image.js`:
13
+ fix the standalone plugin bundles so they resolve their external
14
+ imports against `window.Flot` and `window.Flot.helpers` at runtime
15
+ instead of referencing missing Rollup-generated identifiers. This
16
+ restores loading for the broken standalone IIFE plugins, including
17
+ `jquery.flot.image.js`, `jquery.flot.crosshair.js`,
18
+ `jquery.flot.pie.js`, `jquery.flot.resize.js`, and
19
+ `jquery.flot.threshold.js`.
20
+
21
+ ### Documentation
22
+
23
+ - `API.md` / `CHANGELOG.md` (2.0.1 section): document the
24
+ `bars.barWidth` semantics correctly. Since 2.0, a plain numeric
25
+ `barWidth` is a multiplier of the minimum point spacing and absolute
26
+ widths require `[width, true]`.
27
+
8
28
  ## [5.1.2] - 2026-04-22
9
29
 
10
30
  ### Fixed
@@ -425,6 +445,24 @@ After:
425
445
 
426
446
  Note: A new capability allows for data (and min/max settings of axes) to be specified with a `timeBase` of either seconds or milliseconds. So, a range from 1-10 can either represent 9 milliseconds of data, or 9 seconds of data, depending on the setting of `timeBase` (whose default is "seconds").
427
447
 
448
+ ### `bars.barWidth`:
449
+ Before:
450
+
451
+ bars: { show: true, barWidth: 24 * 60 * 60 * 1000 } // one day, time mode
452
+
453
+ After:
454
+
455
+ bars: { show: true, barWidth: [24 * 60 * 60 * 1000, true] } // one day, absolute
456
+
457
+ Note: A plain-number `barWidth` is now interpreted as a *multiplier* of
458
+ the minimum distance between consecutive x-values in the series (so
459
+ `barWidth: 0.8` means "80% of the point spacing"). To keep the pre-2.0
460
+ behavior where `barWidth` is an absolute width in axis units, pass
461
+ `[width, true]`. Code ported from 0.x / 1.x that used absolute widths
462
+ (typical in time-mode bar charts) will silently produce bars many
463
+ orders of magnitude too wide, which can also inflate `axis.datamin` /
464
+ `axis.datamax` enough to break the time-axis tick generator.
465
+
428
466
  ### Script Locations:
429
467
 
430
468
  All scripts have been moved under the 'source' folder, so you will need to update all reference scripts to point to new location. Or you can use the file dist/es5/jquery.flot.js which is all source combined and minified.
package/dist/flot.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @kevinburke/flot v5.1.2 | MIT License | https://github.com/kevinburke/flot */
1
+ /*! @kevinburke/flot v5.1.3 | MIT License | https://github.com/kevinburke/flot */
2
2
  var Flot = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -4533,7 +4533,7 @@ var Flot = (function (exports) {
4533
4533
  // Plugin registry. Plugins push to this array to register themselves.
4534
4534
  var plugins = [];
4535
4535
 
4536
- var version = "5.1.2";
4536
+ var version = "5.1.3";
4537
4537
 
4538
4538
  // The main plot function.
4539
4539
  function plot(placeholder, data, options) {