@mui/x-charts-vendor 8.26.0 → 9.0.0-alpha.2

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.
Files changed (94) hide show
  1. package/d3-array.d.ts +0 -1
  2. package/d3-array.js +2 -4
  3. package/{es/d3-array.mjs → d3-array.mjs} +0 -1
  4. package/d3-color.d.ts +0 -1
  5. package/d3-color.js +2 -4
  6. package/{es/d3-color.mjs → d3-color.mjs} +0 -1
  7. package/d3-format.d.ts +0 -1
  8. package/d3-format.js +2 -4
  9. package/{es/d3-format.mjs → d3-format.mjs} +0 -1
  10. package/d3-interpolate.d.ts +0 -1
  11. package/d3-interpolate.js +2 -4
  12. package/{es/d3-interpolate.mjs → d3-interpolate.mjs} +0 -1
  13. package/d3-path.d.ts +0 -1
  14. package/d3-path.js +2 -4
  15. package/{es/d3-path.mjs → d3-path.mjs} +0 -1
  16. package/d3-scale.d.ts +0 -1
  17. package/d3-scale.js +2 -4
  18. package/{es/d3-scale.mjs → d3-scale.mjs} +0 -1
  19. package/d3-shape.d.ts +0 -1
  20. package/d3-shape.js +2 -4
  21. package/{es/d3-shape.mjs → d3-shape.mjs} +0 -1
  22. package/d3-time-format.d.ts +0 -1
  23. package/d3-time-format.js +2 -4
  24. package/{es/d3-time-format.mjs → d3-time-format.mjs} +0 -1
  25. package/d3-time.d.ts +0 -1
  26. package/d3-time.js +2 -4
  27. package/{es/d3-time.mjs → d3-time.mjs} +0 -1
  28. package/d3-timer.d.ts +0 -1
  29. package/d3-timer.js +2 -4
  30. package/{es/d3-timer.mjs → d3-timer.mjs} +0 -1
  31. package/flatqueue.d.ts +4 -0
  32. package/{lib/flatqueue.js → flatqueue.js} +1 -2
  33. package/{es/flatqueue.mjs → flatqueue.mjs} +0 -2
  34. package/internmap.d.ts +4 -0
  35. package/internmap.js +2 -4
  36. package/{es/internmap.mjs → internmap.mjs} +0 -1
  37. package/lib-vendor/d3-array/src/difference.js +1 -1
  38. package/lib-vendor/d3-array/src/disjoint.js +1 -1
  39. package/lib-vendor/d3-array/src/group.js +1 -1
  40. package/lib-vendor/d3-array/src/index.js +1 -1
  41. package/lib-vendor/d3-array/src/intersection.js +1 -1
  42. package/lib-vendor/d3-array/src/mode.js +1 -1
  43. package/lib-vendor/d3-array/src/union.js +1 -1
  44. package/lib-vendor/d3-format/LICENSE +1 -1
  45. package/lib-vendor/d3-format/dist/d3-format.js +13 -15
  46. package/lib-vendor/d3-format/dist/d3-format.min.js +52 -53
  47. package/lib-vendor/d3-format/src/formatDecimal.js +2 -2
  48. package/lib-vendor/d3-format/src/formatPrefixAuto.js +1 -1
  49. package/lib-vendor/d3-format/src/locale.js +9 -8
  50. package/lib-vendor/d3-interpolate/dist/d3-interpolate.js +1 -1
  51. package/lib-vendor/d3-interpolate/dist/d3-interpolate.min.js +1 -1
  52. package/lib-vendor/d3-interpolate/src/cubehelix.js +1 -1
  53. package/lib-vendor/d3-interpolate/src/hcl.js +1 -1
  54. package/lib-vendor/d3-interpolate/src/hsl.js +1 -1
  55. package/lib-vendor/d3-interpolate/src/lab.js +1 -1
  56. package/lib-vendor/d3-interpolate/src/rgb.js +1 -1
  57. package/lib-vendor/d3-interpolate/src/value.js +1 -1
  58. package/lib-vendor/d3-scale/dist/d3-scale.js +1 -1
  59. package/lib-vendor/d3-scale/dist/d3-scale.min.js +1 -1
  60. package/lib-vendor/d3-scale/src/band.js +1 -1
  61. package/lib-vendor/d3-scale/src/continuous.js +2 -2
  62. package/lib-vendor/d3-scale/src/diverging.js +1 -1
  63. package/lib-vendor/d3-scale/src/linear.js +1 -1
  64. package/lib-vendor/d3-scale/src/log.js +2 -2
  65. package/lib-vendor/d3-scale/src/ordinal.js +1 -1
  66. package/lib-vendor/d3-scale/src/quantile.js +1 -1
  67. package/lib-vendor/d3-scale/src/quantize.js +1 -1
  68. package/lib-vendor/d3-scale/src/sequential.js +1 -1
  69. package/lib-vendor/d3-scale/src/sequentialQuantile.js +1 -1
  70. package/lib-vendor/d3-scale/src/threshold.js +1 -1
  71. package/lib-vendor/d3-scale/src/tickFormat.js +2 -2
  72. package/lib-vendor/d3-scale/src/time.js +2 -2
  73. package/lib-vendor/d3-scale/src/utcTime.js +2 -2
  74. package/lib-vendor/d3-shape/dist/d3-shape.js +1 -1
  75. package/lib-vendor/d3-shape/dist/d3-shape.min.js +1 -1
  76. package/lib-vendor/d3-shape/src/path.js +1 -1
  77. package/lib-vendor/d3-time/dist/d3-time.js +1 -1
  78. package/lib-vendor/d3-time/dist/d3-time.min.js +1 -1
  79. package/lib-vendor/d3-time/src/ticks.js +1 -1
  80. package/lib-vendor/d3-time-format/dist/d3-time-format.js +1 -1
  81. package/lib-vendor/d3-time-format/dist/d3-time-format.min.js +1 -1
  82. package/lib-vendor/d3-time-format/src/locale.js +1 -1
  83. package/package.json +176 -21
  84. package/lib/d3-array.js +0 -6
  85. package/lib/d3-color.js +0 -6
  86. package/lib/d3-format.js +0 -6
  87. package/lib/d3-interpolate.js +0 -6
  88. package/lib/d3-path.js +0 -6
  89. package/lib/d3-scale.js +0 -6
  90. package/lib/d3-shape.js +0 -6
  91. package/lib/d3-time-format.js +0 -6
  92. package/lib/d3-time.js +0 -6
  93. package/lib/d3-timer.js +0 -6
  94. package/lib/internmap.js +0 -6
package/d3-array.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-array` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-array.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-array` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-array/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-array");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-array`
5
+ module.exports = require("./lib-vendor/d3-array/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-array` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-array/blob/main/LICENSE
4
3
  //
package/d3-color.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-color` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-color.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-color` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-color/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-color");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-color`
5
+ module.exports = require("./lib-vendor/d3-color/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-color` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-color/blob/main/LICENSE
4
3
  //
package/d3-format.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-format` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-format.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-format` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-format/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-format");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-format`
5
+ module.exports = require("./lib-vendor/d3-format/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-format` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-format/blob/main/LICENSE
4
3
  //
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-interpolate` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-interpolate.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-interpolate` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-interpolate/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-interpolate");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-interpolate`
5
+ module.exports = require("./lib-vendor/d3-interpolate/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-interpolate` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-interpolate/blob/main/LICENSE
4
3
  //
package/d3-path.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-path` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-path.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-path` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-path/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-path");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-path`
5
+ module.exports = require("./lib-vendor/d3-path/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-path` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-path/blob/main/LICENSE
4
3
  //
package/d3-scale.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-scale` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-scale.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-scale` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-scale/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-scale");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-scale`
5
+ module.exports = require("./lib-vendor/d3-scale/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-scale` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-scale/blob/main/LICENSE
4
3
  //
package/d3-shape.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-shape` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-shape.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-shape` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-shape/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-shape");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-shape`
5
+ module.exports = require("./lib-vendor/d3-shape/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-shape` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-shape/blob/main/LICENSE
4
3
  //
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-time-format` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-time-format.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-time-format` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-time-format/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-time-format");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-time-format`
5
+ module.exports = require("./lib-vendor/d3-time-format/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-time-format` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-time-format/blob/main/LICENSE
4
3
  //
package/d3-time.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-time` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-time.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-time` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-time/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-time");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-time`
5
+ module.exports = require("./lib-vendor/d3-time/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-time` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-time/blob/main/LICENSE
4
3
  //
package/d3-timer.d.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-timer` (TypeScript)
3
2
  //
4
3
  // Export the type definitions for this package:
package/d3-timer.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/d3-timer` (CommonJS)
3
2
  // See upstream license: https://github.com/d3/d3-timer/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/d3-timer");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-timer`
5
+ module.exports = require("./lib-vendor/d3-timer/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/d3-timer` (ESM)
3
2
  // See upstream license: https://github.com/d3/d3-timer/blob/main/LICENSE
4
3
  //
package/flatqueue.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ // `x-charts-vendor/flatqueue` (TypeScript)
2
+ //
3
+ // Export the type definitions for this package:
4
+ export * from "flatqueue";
@@ -1,6 +1,5 @@
1
-
2
1
  // `x-charts-vendor/flatqueue` (CommonJS)
3
2
  // See upstream license: git+https://github.com/mourner/flatqueue/blob/main/LICENSE
4
3
  //
5
4
  // Our CommonJS package relies on transpiled vendor files in `lib-vendor/flatqueue`
6
- module.exports = require("../lib-vendor/flatqueue/index.js");
5
+ module.exports = require("./lib-vendor/flatqueue/index.js");
@@ -1,8 +1,6 @@
1
-
2
1
  // `x-charts-vendor/flatqueue` (ESM)
3
2
  // See upstream license: git+https://github.com/mourner/flatqueue/blob/main/LICENSE
4
3
  //
5
4
  // Our ESM package uses the underlying installed dependencies of `node_modules/flatqueue`
6
5
  export * from "flatqueue";
7
-
8
6
  export { default } from "flatqueue";
package/internmap.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ // `x-charts-vendor/internmap` (TypeScript)
2
+ //
3
+ // Export the type definitions for this package:
4
+ export * from "internmap";
package/internmap.js CHANGED
@@ -1,7 +1,5 @@
1
-
2
1
  // `x-charts-vendor/internmap` (CommonJS)
3
2
  // See upstream license: https://github.com/mbostock/internmap/blob/main/LICENSE
4
3
  //
5
- // This file only exists for tooling that doesn't work yet with package.json:exports
6
- // by proxying through the CommonJS version.
7
- module.exports = require("./lib/internmap");
4
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/internmap`
5
+ module.exports = require("./lib-vendor/internmap/src/index.js");
@@ -1,4 +1,3 @@
1
-
2
1
  // `x-charts-vendor/internmap` (ESM)
3
2
  // See upstream license: https://github.com/mbostock/internmap/blob/main/LICENSE
4
3
  //
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = difference;
7
- var _index = require("../../../lib-vendor/internmap/src/index.js");
7
+ var _index = require("../../internmap/src/index.js");
8
8
  function difference(values, ...others) {
9
9
  values = new _index.InternSet(values);
10
10
  for (const other of others) {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = disjoint;
7
- var _index = require("../../../lib-vendor/internmap/src/index.js");
7
+ var _index = require("../../internmap/src/index.js");
8
8
  function disjoint(values, other) {
9
9
  const iterator = other[Symbol.iterator](),
10
10
  set = new _index.InternSet();
@@ -12,7 +12,7 @@ exports.index = index;
12
12
  exports.indexes = indexes;
13
13
  exports.rollup = rollup;
14
14
  exports.rollups = rollups;
15
- var _index = require("../../../lib-vendor/internmap/src/index.js");
15
+ var _index = require("../../internmap/src/index.js");
16
16
  var _identity = _interopRequireDefault(require("./identity.js"));
17
17
  function group(values, ...keys) {
18
18
  return nest(values, _identity.default, _identity.default, keys);
@@ -535,4 +535,4 @@ var _intersection = _interopRequireDefault(require("./intersection.js"));
535
535
  var _subset = _interopRequireDefault(require("./subset.js"));
536
536
  var _superset = _interopRequireDefault(require("./superset.js"));
537
537
  var _union = _interopRequireDefault(require("./union.js"));
538
- var _index = require("../../../lib-vendor/internmap/src/index.js");
538
+ var _index = require("../../internmap/src/index.js");
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = intersection;
7
- var _index = require("../../../lib-vendor/internmap/src/index.js");
7
+ var _index = require("../../internmap/src/index.js");
8
8
  function intersection(values, ...others) {
9
9
  values = new _index.InternSet(values);
10
10
  others = others.map(set);
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = mode;
7
- var _index = require("../../../lib-vendor/internmap/src/index.js");
7
+ var _index = require("../../internmap/src/index.js");
8
8
  function mode(values, valueof) {
9
9
  const counts = new _index.InternMap();
10
10
  if (valueof === undefined) {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = union;
7
- var _index = require("../../../lib-vendor/internmap/src/index.js");
7
+ var _index = require("../../internmap/src/index.js");
8
8
  function union(...others) {
9
9
  const set = new _index.InternSet();
10
10
  for (const other of others) {
@@ -1,4 +1,4 @@
1
- Copyright 2010-2021 Mike Bostock
1
+ Copyright 2010-2026 Mike Bostock
2
2
 
3
3
  Permission to use, copy, modify, and/or distribute this software for any purpose
4
4
  with or without fee is hereby granted, provided that the above copyright notice
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- // https://d3js.org/d3-format/ v3.1.0 Copyright 2010-2021 Mike Bostock
3
+ // https://d3js.org/d3-format/ v3.1.2 Copyright 2010-2026 Mike Bostock
4
4
  (function (global, factory) {
5
5
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.d3 = global.d3 || {}));
6
6
  })(this, function (exports) {
@@ -14,8 +14,8 @@
14
14
  // significant digits p, where x is positive and p is in [1, 21] or undefined.
15
15
  // For example, formatDecimalParts(1.23) returns ["123", 0].
16
16
  function formatDecimalParts(x, p) {
17
- if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
18
- var i,
17
+ if (!isFinite(x) || x === 0) return null; // NaN, ±Infinity, ±0
18
+ var i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e"),
19
19
  coefficient = x.slice(0, i);
20
20
 
21
21
  // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
@@ -107,7 +107,7 @@
107
107
  var prefixExponent;
108
108
  function formatPrefixAuto(x, p) {
109
109
  var d = formatDecimalParts(x, p);
110
- if (!d) return x + "";
110
+ if (!d) return prefixExponent = undefined, x.toPrecision(p);
111
111
  var coefficient = d[0],
112
112
  exponent = d[1],
113
113
  i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
@@ -150,7 +150,7 @@
150
150
  percent = locale.percent === undefined ? "%" : locale.percent + "",
151
151
  minus = locale.minus === undefined ? "−" : locale.minus + "",
152
152
  nan = locale.nan === undefined ? "NaN" : locale.nan + "";
153
- function newFormat(specifier) {
153
+ function newFormat(specifier, options) {
154
154
  specifier = formatSpecifier(specifier);
155
155
  var fill = specifier.fill,
156
156
  align = specifier.align,
@@ -174,8 +174,8 @@
174
174
 
175
175
  // Compute the prefix and suffix.
176
176
  // For SI-prefix, the suffix is lazily computed.
177
- var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
178
- suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
177
+ var prefix = (options && options.prefix !== undefined ? options.prefix : "") + (symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : ""),
178
+ suffix = (symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "") + (options && options.suffix !== undefined ? options.suffix : "");
179
179
 
180
180
  // What format function should we use?
181
181
  // Is this an integer type?
@@ -214,7 +214,7 @@
214
214
 
215
215
  // Compute the prefix and suffix.
216
216
  valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
217
- valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
217
+ valueSuffix = (type === "s" && !isNaN(value) && prefixExponent !== undefined ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
218
218
 
219
219
  // Break the formatted value into the integer “value” part that can be
220
220
  // grouped, and fractional or exponential “suffix” part that is not.
@@ -263,12 +263,13 @@
263
263
  return format;
264
264
  }
265
265
  function formatPrefix(specifier, value) {
266
- var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
267
- e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
266
+ var e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
268
267
  k = Math.pow(10, -e),
269
- prefix = prefixes[8 + e / 3];
268
+ f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier), {
269
+ suffix: prefixes[8 + e / 3]
270
+ });
270
271
  return function (value) {
271
- return f(k * value) + prefix;
272
+ return f(k * value);
272
273
  };
273
274
  }
274
275
  return {
@@ -307,7 +308,4 @@
307
308
  exports.precisionFixed = precisionFixed;
308
309
  exports.precisionPrefix = precisionPrefix;
309
310
  exports.precisionRound = precisionRound;
310
- Object.defineProperty(exports, '__esModule', {
311
- value: true
312
- });
313
311
  });