@mui/x-charts-vendor 9.0.0 → 9.4.0
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-geo.d.ts +4 -0
- package/d3-geo.js +5 -0
- package/d3-geo.mjs +5 -0
- package/lib-vendor/d3-geo/LICENSE +34 -0
- package/lib-vendor/d3-geo/dist/d3-geo.js +2873 -0
- package/lib-vendor/d3-geo/dist/d3-geo.min.js +1957 -0
- package/lib-vendor/d3-geo/src/area.js +77 -0
- package/lib-vendor/d3-geo/src/bounds.js +169 -0
- package/lib-vendor/d3-geo/src/cartesian.js +42 -0
- package/lib-vendor/d3-geo/src/centroid.js +134 -0
- package/lib-vendor/d3-geo/src/circle.js +77 -0
- package/lib-vendor/d3-geo/src/clip/antimeridian.js +89 -0
- package/lib-vendor/d3-geo/src/clip/buffer.js +30 -0
- package/lib-vendor/d3-geo/src/clip/circle.js +173 -0
- package/lib-vendor/d3-geo/src/clip/extent.js +25 -0
- package/lib-vendor/d3-geo/src/clip/index.js +124 -0
- package/lib-vendor/d3-geo/src/clip/line.js +60 -0
- package/lib-vendor/d3-geo/src/clip/rectangle.js +159 -0
- package/lib-vendor/d3-geo/src/clip/rejoin.js +103 -0
- package/lib-vendor/d3-geo/src/compose.js +15 -0
- package/lib-vendor/d3-geo/src/constant.js +11 -0
- package/lib-vendor/d3-geo/src/contains.js +95 -0
- package/lib-vendor/d3-geo/src/distance.js +18 -0
- package/lib-vendor/d3-geo/src/graticule.js +118 -0
- package/lib-vendor/d3-geo/src/identity.js +8 -0
- package/lib-vendor/d3-geo/src/index.js +335 -0
- package/lib-vendor/d3-geo/src/interpolate.js +35 -0
- package/lib-vendor/d3-geo/src/length.js +50 -0
- package/lib-vendor/d3-geo/src/math.js +44 -0
- package/lib-vendor/d3-geo/src/noop.js +7 -0
- package/lib-vendor/d3-geo/src/path/area.js +50 -0
- package/lib-vendor/d3-geo/src/path/bounds.js +31 -0
- package/lib-vendor/d3-geo/src/path/centroid.js +89 -0
- package/lib-vendor/d3-geo/src/path/context.js +53 -0
- package/lib-vendor/d3-geo/src/path/index.js +71 -0
- package/lib-vendor/d3-geo/src/path/measure.js +47 -0
- package/lib-vendor/d3-geo/src/path/string.js +93 -0
- package/lib-vendor/d3-geo/src/pointEqual.js +10 -0
- package/lib-vendor/d3-geo/src/polygonContains.js +72 -0
- package/lib-vendor/d3-geo/src/projection/albers.js +11 -0
- package/lib-vendor/d3-geo/src/projection/albersUsa.js +118 -0
- package/lib-vendor/d3-geo/src/projection/azimuthal.js +26 -0
- package/lib-vendor/d3-geo/src/projection/azimuthalEqualArea.js +20 -0
- package/lib-vendor/d3-geo/src/projection/azimuthalEquidistant.js +20 -0
- package/lib-vendor/d3-geo/src/projection/conic.js +18 -0
- package/lib-vendor/d3-geo/src/projection/conicConformal.js +39 -0
- package/lib-vendor/d3-geo/src/projection/conicEqualArea.js +33 -0
- package/lib-vendor/d3-geo/src/projection/conicEquidistant.js +31 -0
- package/lib-vendor/d3-geo/src/projection/cylindricalEqualArea.js +17 -0
- package/lib-vendor/d3-geo/src/projection/equalEarth.js +37 -0
- package/lib-vendor/d3-geo/src/projection/equirectangular.js +16 -0
- package/lib-vendor/d3-geo/src/projection/fit.js +52 -0
- package/lib-vendor/d3-geo/src/projection/gnomonic.js +20 -0
- package/lib-vendor/d3-geo/src/projection/identity.js +103 -0
- package/lib-vendor/d3-geo/src/projection/index.js +181 -0
- package/lib-vendor/d3-geo/src/projection/mercator.js +51 -0
- package/lib-vendor/d3-geo/src/projection/naturalEarth1.js +29 -0
- package/lib-vendor/d3-geo/src/projection/orthographic.js +18 -0
- package/lib-vendor/d3-geo/src/projection/resample.js +106 -0
- package/lib-vendor/d3-geo/src/projection/stereographic.js +22 -0
- package/lib-vendor/d3-geo/src/projection/transverseMercator.js +27 -0
- package/lib-vendor/d3-geo/src/rotation.js +65 -0
- package/lib-vendor/d3-geo/src/stream.js +83 -0
- package/lib-vendor/d3-geo/src/transform.js +42 -0
- package/package.json +18 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = _default;
|
|
8
|
+
exports.orthographicRaw = orthographicRaw;
|
|
9
|
+
var _math = require("../math.js");
|
|
10
|
+
var _azimuthal = require("./azimuthal.js");
|
|
11
|
+
var _index = _interopRequireDefault(require("./index.js"));
|
|
12
|
+
function orthographicRaw(x, y) {
|
|
13
|
+
return [(0, _math.cos)(y) * (0, _math.sin)(x), (0, _math.sin)(y)];
|
|
14
|
+
}
|
|
15
|
+
orthographicRaw.invert = (0, _azimuthal.azimuthalInvert)(_math.asin);
|
|
16
|
+
function _default() {
|
|
17
|
+
return (0, _index.default)(orthographicRaw).scale(249.5).clipAngle(90 + _math.epsilon);
|
|
18
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
var _cartesian = require("../cartesian.js");
|
|
8
|
+
var _math = require("../math.js");
|
|
9
|
+
var _transform = require("../transform.js");
|
|
10
|
+
var maxDepth = 16,
|
|
11
|
+
// maximum depth of subdivision
|
|
12
|
+
cosMinDistance = (0, _math.cos)(30 * _math.radians); // cos(minimum angular distance)
|
|
13
|
+
|
|
14
|
+
function _default(project, delta2) {
|
|
15
|
+
return +delta2 ? resample(project, delta2) : resampleNone(project);
|
|
16
|
+
}
|
|
17
|
+
function resampleNone(project) {
|
|
18
|
+
return (0, _transform.transformer)({
|
|
19
|
+
point: function (x, y) {
|
|
20
|
+
x = project(x, y);
|
|
21
|
+
this.stream.point(x[0], x[1]);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function resample(project, delta2) {
|
|
26
|
+
function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {
|
|
27
|
+
var dx = x1 - x0,
|
|
28
|
+
dy = y1 - y0,
|
|
29
|
+
d2 = dx * dx + dy * dy;
|
|
30
|
+
if (d2 > 4 * delta2 && depth--) {
|
|
31
|
+
var a = a0 + a1,
|
|
32
|
+
b = b0 + b1,
|
|
33
|
+
c = c0 + c1,
|
|
34
|
+
m = (0, _math.sqrt)(a * a + b * b + c * c),
|
|
35
|
+
phi2 = (0, _math.asin)(c /= m),
|
|
36
|
+
lambda2 = (0, _math.abs)((0, _math.abs)(c) - 1) < _math.epsilon || (0, _math.abs)(lambda0 - lambda1) < _math.epsilon ? (lambda0 + lambda1) / 2 : (0, _math.atan2)(b, a),
|
|
37
|
+
p = project(lambda2, phi2),
|
|
38
|
+
x2 = p[0],
|
|
39
|
+
y2 = p[1],
|
|
40
|
+
dx2 = x2 - x0,
|
|
41
|
+
dy2 = y2 - y0,
|
|
42
|
+
dz = dy * dx2 - dx * dy2;
|
|
43
|
+
if (dz * dz / d2 > delta2 // perpendicular projected distance
|
|
44
|
+
|| (0, _math.abs)((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end
|
|
45
|
+
|| a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) {
|
|
46
|
+
// angular distance
|
|
47
|
+
resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);
|
|
48
|
+
stream.point(x2, y2);
|
|
49
|
+
resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return function (stream) {
|
|
54
|
+
var lambda00, x00, y00, a00, b00, c00,
|
|
55
|
+
// first point
|
|
56
|
+
lambda0, x0, y0, a0, b0, c0; // previous point
|
|
57
|
+
|
|
58
|
+
var resampleStream = {
|
|
59
|
+
point: point,
|
|
60
|
+
lineStart: lineStart,
|
|
61
|
+
lineEnd: lineEnd,
|
|
62
|
+
polygonStart: function () {
|
|
63
|
+
stream.polygonStart();
|
|
64
|
+
resampleStream.lineStart = ringStart;
|
|
65
|
+
},
|
|
66
|
+
polygonEnd: function () {
|
|
67
|
+
stream.polygonEnd();
|
|
68
|
+
resampleStream.lineStart = lineStart;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
function point(x, y) {
|
|
72
|
+
x = project(x, y);
|
|
73
|
+
stream.point(x[0], x[1]);
|
|
74
|
+
}
|
|
75
|
+
function lineStart() {
|
|
76
|
+
x0 = NaN;
|
|
77
|
+
resampleStream.point = linePoint;
|
|
78
|
+
stream.lineStart();
|
|
79
|
+
}
|
|
80
|
+
function linePoint(lambda, phi) {
|
|
81
|
+
var c = (0, _cartesian.cartesian)([lambda, phi]),
|
|
82
|
+
p = project(lambda, phi);
|
|
83
|
+
resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);
|
|
84
|
+
stream.point(x0, y0);
|
|
85
|
+
}
|
|
86
|
+
function lineEnd() {
|
|
87
|
+
resampleStream.point = point;
|
|
88
|
+
stream.lineEnd();
|
|
89
|
+
}
|
|
90
|
+
function ringStart() {
|
|
91
|
+
lineStart();
|
|
92
|
+
resampleStream.point = ringPoint;
|
|
93
|
+
resampleStream.lineEnd = ringEnd;
|
|
94
|
+
}
|
|
95
|
+
function ringPoint(lambda, phi) {
|
|
96
|
+
linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;
|
|
97
|
+
resampleStream.point = linePoint;
|
|
98
|
+
}
|
|
99
|
+
function ringEnd() {
|
|
100
|
+
resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);
|
|
101
|
+
resampleStream.lineEnd = lineEnd;
|
|
102
|
+
lineEnd();
|
|
103
|
+
}
|
|
104
|
+
return resampleStream;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = _default;
|
|
8
|
+
exports.stereographicRaw = stereographicRaw;
|
|
9
|
+
var _math = require("../math.js");
|
|
10
|
+
var _azimuthal = require("./azimuthal.js");
|
|
11
|
+
var _index = _interopRequireDefault(require("./index.js"));
|
|
12
|
+
function stereographicRaw(x, y) {
|
|
13
|
+
var cy = (0, _math.cos)(y),
|
|
14
|
+
k = 1 + (0, _math.cos)(x) * cy;
|
|
15
|
+
return [cy * (0, _math.sin)(x) / k, (0, _math.sin)(y) / k];
|
|
16
|
+
}
|
|
17
|
+
stereographicRaw.invert = (0, _azimuthal.azimuthalInvert)(function (z) {
|
|
18
|
+
return 2 * (0, _math.atan)(z);
|
|
19
|
+
});
|
|
20
|
+
function _default() {
|
|
21
|
+
return (0, _index.default)(stereographicRaw).scale(250).clipAngle(142);
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
exports.transverseMercatorRaw = transverseMercatorRaw;
|
|
8
|
+
var _math = require("../math.js");
|
|
9
|
+
var _mercator = require("./mercator.js");
|
|
10
|
+
function transverseMercatorRaw(lambda, phi) {
|
|
11
|
+
return [(0, _math.log)((0, _math.tan)((_math.halfPi + phi) / 2)), -lambda];
|
|
12
|
+
}
|
|
13
|
+
transverseMercatorRaw.invert = function (x, y) {
|
|
14
|
+
return [-y, 2 * (0, _math.atan)((0, _math.exp)(x)) - _math.halfPi];
|
|
15
|
+
};
|
|
16
|
+
function _default() {
|
|
17
|
+
var m = (0, _mercator.mercatorProjection)(transverseMercatorRaw),
|
|
18
|
+
center = m.center,
|
|
19
|
+
rotate = m.rotate;
|
|
20
|
+
m.center = function (_) {
|
|
21
|
+
return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);
|
|
22
|
+
};
|
|
23
|
+
m.rotate = function (_) {
|
|
24
|
+
return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);
|
|
25
|
+
};
|
|
26
|
+
return rotate([0, 0, 90]).scale(159.155);
|
|
27
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = _default;
|
|
8
|
+
exports.rotateRadians = rotateRadians;
|
|
9
|
+
var _compose = _interopRequireDefault(require("./compose.js"));
|
|
10
|
+
var _math = require("./math.js");
|
|
11
|
+
function rotationIdentity(lambda, phi) {
|
|
12
|
+
if ((0, _math.abs)(lambda) > _math.pi) lambda -= Math.round(lambda / _math.tau) * _math.tau;
|
|
13
|
+
return [lambda, phi];
|
|
14
|
+
}
|
|
15
|
+
rotationIdentity.invert = rotationIdentity;
|
|
16
|
+
function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {
|
|
17
|
+
return (deltaLambda %= _math.tau) ? deltaPhi || deltaGamma ? (0, _compose.default)(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma)) : rotationLambda(deltaLambda) : deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma) : rotationIdentity;
|
|
18
|
+
}
|
|
19
|
+
function forwardRotationLambda(deltaLambda) {
|
|
20
|
+
return function (lambda, phi) {
|
|
21
|
+
lambda += deltaLambda;
|
|
22
|
+
if ((0, _math.abs)(lambda) > _math.pi) lambda -= Math.round(lambda / _math.tau) * _math.tau;
|
|
23
|
+
return [lambda, phi];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function rotationLambda(deltaLambda) {
|
|
27
|
+
var rotation = forwardRotationLambda(deltaLambda);
|
|
28
|
+
rotation.invert = forwardRotationLambda(-deltaLambda);
|
|
29
|
+
return rotation;
|
|
30
|
+
}
|
|
31
|
+
function rotationPhiGamma(deltaPhi, deltaGamma) {
|
|
32
|
+
var cosDeltaPhi = (0, _math.cos)(deltaPhi),
|
|
33
|
+
sinDeltaPhi = (0, _math.sin)(deltaPhi),
|
|
34
|
+
cosDeltaGamma = (0, _math.cos)(deltaGamma),
|
|
35
|
+
sinDeltaGamma = (0, _math.sin)(deltaGamma);
|
|
36
|
+
function rotation(lambda, phi) {
|
|
37
|
+
var cosPhi = (0, _math.cos)(phi),
|
|
38
|
+
x = (0, _math.cos)(lambda) * cosPhi,
|
|
39
|
+
y = (0, _math.sin)(lambda) * cosPhi,
|
|
40
|
+
z = (0, _math.sin)(phi),
|
|
41
|
+
k = z * cosDeltaPhi + x * sinDeltaPhi;
|
|
42
|
+
return [(0, _math.atan2)(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi), (0, _math.asin)(k * cosDeltaGamma + y * sinDeltaGamma)];
|
|
43
|
+
}
|
|
44
|
+
rotation.invert = function (lambda, phi) {
|
|
45
|
+
var cosPhi = (0, _math.cos)(phi),
|
|
46
|
+
x = (0, _math.cos)(lambda) * cosPhi,
|
|
47
|
+
y = (0, _math.sin)(lambda) * cosPhi,
|
|
48
|
+
z = (0, _math.sin)(phi),
|
|
49
|
+
k = z * cosDeltaGamma - y * sinDeltaGamma;
|
|
50
|
+
return [(0, _math.atan2)(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi), (0, _math.asin)(k * cosDeltaPhi - x * sinDeltaPhi)];
|
|
51
|
+
};
|
|
52
|
+
return rotation;
|
|
53
|
+
}
|
|
54
|
+
function _default(rotate) {
|
|
55
|
+
rotate = rotateRadians(rotate[0] * _math.radians, rotate[1] * _math.radians, rotate.length > 2 ? rotate[2] * _math.radians : 0);
|
|
56
|
+
function forward(coordinates) {
|
|
57
|
+
coordinates = rotate(coordinates[0] * _math.radians, coordinates[1] * _math.radians);
|
|
58
|
+
return coordinates[0] *= _math.degrees, coordinates[1] *= _math.degrees, coordinates;
|
|
59
|
+
}
|
|
60
|
+
forward.invert = function (coordinates) {
|
|
61
|
+
coordinates = rotate.invert(coordinates[0] * _math.radians, coordinates[1] * _math.radians);
|
|
62
|
+
return coordinates[0] *= _math.degrees, coordinates[1] *= _math.degrees, coordinates;
|
|
63
|
+
};
|
|
64
|
+
return forward;
|
|
65
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
function streamGeometry(geometry, stream) {
|
|
8
|
+
if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {
|
|
9
|
+
streamGeometryType[geometry.type](geometry, stream);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
var streamObjectType = {
|
|
13
|
+
Feature: function (object, stream) {
|
|
14
|
+
streamGeometry(object.geometry, stream);
|
|
15
|
+
},
|
|
16
|
+
FeatureCollection: function (object, stream) {
|
|
17
|
+
var features = object.features,
|
|
18
|
+
i = -1,
|
|
19
|
+
n = features.length;
|
|
20
|
+
while (++i < n) streamGeometry(features[i].geometry, stream);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var streamGeometryType = {
|
|
24
|
+
Sphere: function (object, stream) {
|
|
25
|
+
stream.sphere();
|
|
26
|
+
},
|
|
27
|
+
Point: function (object, stream) {
|
|
28
|
+
object = object.coordinates;
|
|
29
|
+
stream.point(object[0], object[1], object[2]);
|
|
30
|
+
},
|
|
31
|
+
MultiPoint: function (object, stream) {
|
|
32
|
+
var coordinates = object.coordinates,
|
|
33
|
+
i = -1,
|
|
34
|
+
n = coordinates.length;
|
|
35
|
+
while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);
|
|
36
|
+
},
|
|
37
|
+
LineString: function (object, stream) {
|
|
38
|
+
streamLine(object.coordinates, stream, 0);
|
|
39
|
+
},
|
|
40
|
+
MultiLineString: function (object, stream) {
|
|
41
|
+
var coordinates = object.coordinates,
|
|
42
|
+
i = -1,
|
|
43
|
+
n = coordinates.length;
|
|
44
|
+
while (++i < n) streamLine(coordinates[i], stream, 0);
|
|
45
|
+
},
|
|
46
|
+
Polygon: function (object, stream) {
|
|
47
|
+
streamPolygon(object.coordinates, stream);
|
|
48
|
+
},
|
|
49
|
+
MultiPolygon: function (object, stream) {
|
|
50
|
+
var coordinates = object.coordinates,
|
|
51
|
+
i = -1,
|
|
52
|
+
n = coordinates.length;
|
|
53
|
+
while (++i < n) streamPolygon(coordinates[i], stream);
|
|
54
|
+
},
|
|
55
|
+
GeometryCollection: function (object, stream) {
|
|
56
|
+
var geometries = object.geometries,
|
|
57
|
+
i = -1,
|
|
58
|
+
n = geometries.length;
|
|
59
|
+
while (++i < n) streamGeometry(geometries[i], stream);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
function streamLine(coordinates, stream, closed) {
|
|
63
|
+
var i = -1,
|
|
64
|
+
n = coordinates.length - closed,
|
|
65
|
+
coordinate;
|
|
66
|
+
stream.lineStart();
|
|
67
|
+
while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);
|
|
68
|
+
stream.lineEnd();
|
|
69
|
+
}
|
|
70
|
+
function streamPolygon(coordinates, stream) {
|
|
71
|
+
var i = -1,
|
|
72
|
+
n = coordinates.length;
|
|
73
|
+
stream.polygonStart();
|
|
74
|
+
while (++i < n) streamLine(coordinates[i], stream, 1);
|
|
75
|
+
stream.polygonEnd();
|
|
76
|
+
}
|
|
77
|
+
function _default(object, stream) {
|
|
78
|
+
if (object && streamObjectType.hasOwnProperty(object.type)) {
|
|
79
|
+
streamObjectType[object.type](object, stream);
|
|
80
|
+
} else {
|
|
81
|
+
streamGeometry(object, stream);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
exports.transformer = transformer;
|
|
8
|
+
function _default(methods) {
|
|
9
|
+
return {
|
|
10
|
+
stream: transformer(methods)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function transformer(methods) {
|
|
14
|
+
return function (stream) {
|
|
15
|
+
var s = new TransformStream();
|
|
16
|
+
for (var key in methods) s[key] = methods[key];
|
|
17
|
+
s.stream = stream;
|
|
18
|
+
return s;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function TransformStream() {}
|
|
22
|
+
TransformStream.prototype = {
|
|
23
|
+
constructor: TransformStream,
|
|
24
|
+
point: function (x, y) {
|
|
25
|
+
this.stream.point(x, y);
|
|
26
|
+
},
|
|
27
|
+
sphere: function () {
|
|
28
|
+
this.stream.sphere();
|
|
29
|
+
},
|
|
30
|
+
lineStart: function () {
|
|
31
|
+
this.stream.lineStart();
|
|
32
|
+
},
|
|
33
|
+
lineEnd: function () {
|
|
34
|
+
this.stream.lineEnd();
|
|
35
|
+
},
|
|
36
|
+
polygonStart: function () {
|
|
37
|
+
this.stream.polygonStart();
|
|
38
|
+
},
|
|
39
|
+
polygonEnd: function () {
|
|
40
|
+
this.stream.polygonEnd();
|
|
41
|
+
}
|
|
42
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts-vendor",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Vendored dependencies for MUI X Charts.",
|
|
6
6
|
"license": "MIT AND ISC",
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
"directory": "packages/x-charts-vendor"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@babel/runtime": "^7.
|
|
19
|
+
"@babel/runtime": "^7.29.7",
|
|
20
20
|
"@types/d3-array": "^3.2.2",
|
|
21
21
|
"@types/d3-color": "^3.1.3",
|
|
22
22
|
"@types/d3-format": "^3.0.4",
|
|
23
|
+
"@types/d3-geo": "^3.1.0",
|
|
23
24
|
"@types/d3-interpolate": "^3.0.4",
|
|
24
25
|
"@types/d3-path": "^3.1.1",
|
|
25
26
|
"@types/d3-scale": "^4.0.9",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"d3-array": "^3.2.4",
|
|
31
32
|
"d3-color": "^3.1.0",
|
|
32
33
|
"d3-format": "^3.1.2",
|
|
34
|
+
"d3-geo": "^3.1.1",
|
|
33
35
|
"d3-interpolate": "^3.0.1",
|
|
34
36
|
"d3-path": "^3.1.0",
|
|
35
37
|
"d3-scale": "^4.0.2",
|
|
@@ -89,6 +91,20 @@
|
|
|
89
91
|
"default": "./d3-format.mjs"
|
|
90
92
|
}
|
|
91
93
|
},
|
|
94
|
+
"./d3-geo": {
|
|
95
|
+
"import": {
|
|
96
|
+
"types": "./d3-geo.d.ts",
|
|
97
|
+
"default": "./d3-geo.mjs"
|
|
98
|
+
},
|
|
99
|
+
"require": {
|
|
100
|
+
"types": "./d3-geo.d.ts",
|
|
101
|
+
"default": "./d3-geo.js"
|
|
102
|
+
},
|
|
103
|
+
"default": {
|
|
104
|
+
"types": "./d3-geo.d.ts",
|
|
105
|
+
"default": "./d3-geo.mjs"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
92
108
|
"./d3-interpolate": {
|
|
93
109
|
"import": {
|
|
94
110
|
"types": "./d3-interpolate.d.ts",
|