@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.
- package/d3-array.d.ts +0 -1
- package/d3-array.js +2 -4
- package/{es/d3-array.mjs → d3-array.mjs} +0 -1
- package/d3-color.d.ts +0 -1
- package/d3-color.js +2 -4
- package/{es/d3-color.mjs → d3-color.mjs} +0 -1
- package/d3-format.d.ts +0 -1
- package/d3-format.js +2 -4
- package/{es/d3-format.mjs → d3-format.mjs} +0 -1
- package/d3-interpolate.d.ts +0 -1
- package/d3-interpolate.js +2 -4
- package/{es/d3-interpolate.mjs → d3-interpolate.mjs} +0 -1
- package/d3-path.d.ts +0 -1
- package/d3-path.js +2 -4
- package/{es/d3-path.mjs → d3-path.mjs} +0 -1
- package/d3-scale.d.ts +0 -1
- package/d3-scale.js +2 -4
- package/{es/d3-scale.mjs → d3-scale.mjs} +0 -1
- package/d3-shape.d.ts +0 -1
- package/d3-shape.js +2 -4
- package/{es/d3-shape.mjs → d3-shape.mjs} +0 -1
- package/d3-time-format.d.ts +0 -1
- package/d3-time-format.js +2 -4
- package/{es/d3-time-format.mjs → d3-time-format.mjs} +0 -1
- package/d3-time.d.ts +0 -1
- package/d3-time.js +2 -4
- package/{es/d3-time.mjs → d3-time.mjs} +0 -1
- package/d3-timer.d.ts +0 -1
- package/d3-timer.js +2 -4
- package/{es/d3-timer.mjs → d3-timer.mjs} +0 -1
- package/flatqueue.d.ts +4 -0
- package/{lib/flatqueue.js → flatqueue.js} +1 -2
- package/{es/flatqueue.mjs → flatqueue.mjs} +0 -2
- package/internmap.d.ts +4 -0
- package/internmap.js +2 -4
- package/{es/internmap.mjs → internmap.mjs} +0 -1
- package/lib-vendor/d3-array/src/difference.js +1 -1
- package/lib-vendor/d3-array/src/disjoint.js +1 -1
- package/lib-vendor/d3-array/src/group.js +1 -1
- package/lib-vendor/d3-array/src/index.js +1 -1
- package/lib-vendor/d3-array/src/intersection.js +1 -1
- package/lib-vendor/d3-array/src/mode.js +1 -1
- package/lib-vendor/d3-array/src/union.js +1 -1
- package/lib-vendor/d3-format/LICENSE +1 -1
- package/lib-vendor/d3-format/dist/d3-format.js +13 -15
- package/lib-vendor/d3-format/dist/d3-format.min.js +52 -53
- package/lib-vendor/d3-format/src/formatDecimal.js +2 -2
- package/lib-vendor/d3-format/src/formatPrefixAuto.js +1 -1
- package/lib-vendor/d3-format/src/locale.js +9 -8
- package/lib-vendor/d3-interpolate/dist/d3-interpolate.js +1 -1
- package/lib-vendor/d3-interpolate/dist/d3-interpolate.min.js +1 -1
- package/lib-vendor/d3-interpolate/src/cubehelix.js +1 -1
- package/lib-vendor/d3-interpolate/src/hcl.js +1 -1
- package/lib-vendor/d3-interpolate/src/hsl.js +1 -1
- package/lib-vendor/d3-interpolate/src/lab.js +1 -1
- package/lib-vendor/d3-interpolate/src/rgb.js +1 -1
- package/lib-vendor/d3-interpolate/src/value.js +1 -1
- package/lib-vendor/d3-scale/dist/d3-scale.js +1 -1
- package/lib-vendor/d3-scale/dist/d3-scale.min.js +1 -1
- package/lib-vendor/d3-scale/src/band.js +1 -1
- package/lib-vendor/d3-scale/src/continuous.js +2 -2
- package/lib-vendor/d3-scale/src/diverging.js +1 -1
- package/lib-vendor/d3-scale/src/linear.js +1 -1
- package/lib-vendor/d3-scale/src/log.js +2 -2
- package/lib-vendor/d3-scale/src/ordinal.js +1 -1
- package/lib-vendor/d3-scale/src/quantile.js +1 -1
- package/lib-vendor/d3-scale/src/quantize.js +1 -1
- package/lib-vendor/d3-scale/src/sequential.js +1 -1
- package/lib-vendor/d3-scale/src/sequentialQuantile.js +1 -1
- package/lib-vendor/d3-scale/src/threshold.js +1 -1
- package/lib-vendor/d3-scale/src/tickFormat.js +2 -2
- package/lib-vendor/d3-scale/src/time.js +2 -2
- package/lib-vendor/d3-scale/src/utcTime.js +2 -2
- package/lib-vendor/d3-shape/dist/d3-shape.js +1 -1
- package/lib-vendor/d3-shape/dist/d3-shape.min.js +1 -1
- package/lib-vendor/d3-shape/src/path.js +1 -1
- package/lib-vendor/d3-time/dist/d3-time.js +1 -1
- package/lib-vendor/d3-time/dist/d3-time.min.js +1 -1
- package/lib-vendor/d3-time/src/ticks.js +1 -1
- package/lib-vendor/d3-time-format/dist/d3-time-format.js +1 -1
- package/lib-vendor/d3-time-format/dist/d3-time-format.min.js +1 -1
- package/lib-vendor/d3-time-format/src/locale.js +1 -1
- package/package.json +176 -21
- package/lib/d3-array.js +0 -6
- package/lib/d3-color.js +0 -6
- package/lib/d3-format.js +0 -6
- package/lib/d3-interpolate.js +0 -6
- package/lib/d3-path.js +0 -6
- package/lib/d3-scale.js +0 -6
- package/lib/d3-shape.js +0 -6
- package/lib/d3-time-format.js +0 -6
- package/lib/d3-time.js +0 -6
- package/lib/d3-timer.js +0 -6
- package/lib/internmap.js +0 -6
package/d3-array.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-color.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-format.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-interpolate.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-path.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-scale.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-shape.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-time-format.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-time.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/d3-timer.d.ts
CHANGED
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
|
-
//
|
|
6
|
-
|
|
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");
|
package/flatqueue.d.ts
ADDED
|
@@ -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("
|
|
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
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
|
-
//
|
|
6
|
-
|
|
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");
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = difference;
|
|
7
|
-
var _index = require("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
// https://d3js.org/d3-format/ v3.1.
|
|
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 ((
|
|
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
|
|
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
|
|
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
|
-
|
|
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)
|
|
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
|
});
|