@ledgerhq/lumen-ui-react-visualization 0.1.2 → 0.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/dist/lib/Components/CartesianChart/CartesianChart.d.ts +3 -0
- package/dist/lib/Components/CartesianChart/CartesianChart.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/CartesianChart.js +70 -0
- package/dist/lib/Components/CartesianChart/context/cartesianChartContext.d.ts +8 -0
- package/dist/lib/Components/CartesianChart/context/cartesianChartContext.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/context/cartesianChartContext.js +9 -0
- package/dist/lib/Components/CartesianChart/context/index.d.ts +3 -0
- package/dist/lib/Components/CartesianChart/context/index.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/context/useBuildChartContext.d.ts +23 -0
- package/dist/lib/Components/CartesianChart/context/useBuildChartContext.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/context/useBuildChartContext.js +61 -0
- package/dist/lib/Components/CartesianChart/index.d.ts +4 -0
- package/dist/lib/Components/CartesianChart/index.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/types.d.ts +48 -0
- package/dist/lib/Components/CartesianChart/types.d.ts.map +1 -0
- package/dist/lib/Components/Line/Line.d.ts +3 -0
- package/dist/lib/Components/Line/Line.d.ts.map +1 -0
- package/dist/lib/Components/Line/Line.js +53 -0
- package/dist/lib/Components/Line/index.d.ts +3 -0
- package/dist/lib/Components/Line/index.d.ts.map +1 -0
- package/dist/lib/Components/Line/types.d.ts +24 -0
- package/dist/lib/Components/Line/types.d.ts.map +1 -0
- package/dist/lib/Components/Line/utils.d.ts +19 -0
- package/dist/lib/Components/Line/utils.d.ts.map +1 -0
- package/dist/lib/Components/Line/utils.js +22 -0
- package/dist/lib/Components/LineChart/LineChart.d.ts +2 -8
- package/dist/lib/Components/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/LineChart/LineChart.js +78 -23
- package/dist/lib/Components/LineChart/index.d.ts +1 -0
- package/dist/lib/Components/LineChart/index.d.ts.map +1 -1
- package/dist/lib/Components/LineChart/types.d.ts +61 -0
- package/dist/lib/Components/LineChart/types.d.ts.map +1 -0
- package/dist/lib/Components/XAxis/XAxis.d.ts +4 -0
- package/dist/lib/Components/XAxis/XAxis.d.ts.map +1 -0
- package/dist/lib/Components/XAxis/XAxis.js +79 -0
- package/dist/lib/Components/XAxis/index.d.ts +3 -0
- package/dist/lib/Components/XAxis/index.d.ts.map +1 -0
- package/dist/lib/Components/XAxis/types.d.ts +3 -0
- package/dist/lib/Components/XAxis/types.d.ts.map +1 -0
- package/dist/lib/Components/YAxis/YAxis.d.ts +4 -0
- package/dist/lib/Components/YAxis/YAxis.d.ts.map +1 -0
- package/dist/lib/Components/YAxis/YAxis.js +79 -0
- package/dist/lib/Components/YAxis/index.d.ts +3 -0
- package/dist/lib/Components/YAxis/index.d.ts.map +1 -0
- package/dist/lib/Components/YAxis/types.d.ts +3 -0
- package/dist/lib/Components/YAxis/types.d.ts.map +1 -0
- package/dist/lib/utils/domain/domain.d.ts +17 -0
- package/dist/lib/utils/domain/domain.d.ts.map +1 -0
- package/dist/lib/utils/domain/domain.js +38 -0
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/scales/scales.d.ts +24 -0
- package/dist/lib/utils/scales/scales.d.ts.map +1 -0
- package/dist/lib/utils/scales/scales.js +25 -0
- package/dist/lib/utils/ticks/ticks.d.ts +27 -0
- package/dist/lib/utils/ticks/ticks.d.ts.map +1 -0
- package/dist/lib/utils/ticks/ticks.js +23 -0
- package/dist/lib/utils/types.d.ts +132 -6
- package/dist/lib/utils/types.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +35 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.js +9 -0
- package/dist/node_modules/d3-array/src/bisector.js +37 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/number.js +6 -0
- package/dist/node_modules/d3-array/src/range.js +9 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-color/src/color.js +305 -0
- package/dist/node_modules/d3-color/src/define.js +12 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.js +68 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/color.js +24 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-path/src/path.js +64 -0
- package/dist/node_modules/d3-scale/src/band.js +41 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.js +75 -0
- package/dist/node_modules/d3-scale/src/init.js +16 -0
- package/dist/node_modules/d3-scale/src/linear.js +39 -0
- package/dist/node_modules/d3-scale/src/log.js +86 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
- package/dist/node_modules/d3-shape/src/area.js +56 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +39 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/line.js +29 -0
- package/dist/node_modules/d3-shape/src/path.js +18 -0
- package/dist/node_modules/d3-shape/src/point.js +10 -0
- package/dist/node_modules/internmap/src/index.js +35 -0
- package/dist/package.json +15 -3
- package/package.json +13 -1
- package/dist/lib/utils/math/index.d.ts +0 -1
- package/dist/lib/utils/math/index.d.ts.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import d from "./array.js";
|
|
2
|
+
import o from "./constant.js";
|
|
3
|
+
import a from "./curve/linear.js";
|
|
4
|
+
import { withPath as v } from "./path.js";
|
|
5
|
+
import { x as b, y as w } from "./point.js";
|
|
6
|
+
function j(e, r) {
|
|
7
|
+
var m = o(!0), i = null, l = a, u = null, s = v(t);
|
|
8
|
+
e = typeof e == "function" ? e : e === void 0 ? b : o(e), r = typeof r == "function" ? r : r === void 0 ? w : o(r);
|
|
9
|
+
function t(n) {
|
|
10
|
+
var f, h = (n = d(n)).length, p, c = !1, g;
|
|
11
|
+
for (i == null && (u = l(g = s())), f = 0; f <= h; ++f)
|
|
12
|
+
!(f < h && m(p = n[f], f, n)) === c && ((c = !c) ? u.lineStart() : u.lineEnd()), c && u.point(+e(p, f, n), +r(p, f, n));
|
|
13
|
+
if (g) return u = null, g + "" || null;
|
|
14
|
+
}
|
|
15
|
+
return t.x = function(n) {
|
|
16
|
+
return arguments.length ? (e = typeof n == "function" ? n : o(+n), t) : e;
|
|
17
|
+
}, t.y = function(n) {
|
|
18
|
+
return arguments.length ? (r = typeof n == "function" ? n : o(+n), t) : r;
|
|
19
|
+
}, t.defined = function(n) {
|
|
20
|
+
return arguments.length ? (m = typeof n == "function" ? n : o(!!n), t) : m;
|
|
21
|
+
}, t.curve = function(n) {
|
|
22
|
+
return arguments.length ? (l = n, i != null && (u = l(i)), t) : l;
|
|
23
|
+
}, t.context = function(n) {
|
|
24
|
+
return arguments.length ? (n == null ? i = u = null : u = l(i = n), t) : i;
|
|
25
|
+
}, t;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
j as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Path as e } from "../../d3-path/src/path.js";
|
|
2
|
+
function l(i) {
|
|
3
|
+
let t = 3;
|
|
4
|
+
return i.digits = function(n) {
|
|
5
|
+
if (!arguments.length) return t;
|
|
6
|
+
if (n == null)
|
|
7
|
+
t = null;
|
|
8
|
+
else {
|
|
9
|
+
const r = Math.floor(n);
|
|
10
|
+
if (!(r >= 0)) throw new RangeError(`invalid digits: ${n}`);
|
|
11
|
+
t = r;
|
|
12
|
+
}
|
|
13
|
+
return i;
|
|
14
|
+
}, () => new e(t);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
l as withPath
|
|
18
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
class i extends Map {
|
|
2
|
+
constructor(t, s = f) {
|
|
3
|
+
if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: s } }), t != null) for (const [r, o] of t) this.set(r, o);
|
|
4
|
+
}
|
|
5
|
+
get(t) {
|
|
6
|
+
return super.get(n(this, t));
|
|
7
|
+
}
|
|
8
|
+
has(t) {
|
|
9
|
+
return super.has(n(this, t));
|
|
10
|
+
}
|
|
11
|
+
set(t, s) {
|
|
12
|
+
return super.set(u(this, t), s);
|
|
13
|
+
}
|
|
14
|
+
delete(t) {
|
|
15
|
+
return super.delete(c(this, t));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function n({ _intern: e, _key: t }, s) {
|
|
19
|
+
const r = t(s);
|
|
20
|
+
return e.has(r) ? e.get(r) : s;
|
|
21
|
+
}
|
|
22
|
+
function u({ _intern: e, _key: t }, s) {
|
|
23
|
+
const r = t(s);
|
|
24
|
+
return e.has(r) ? e.get(r) : (e.set(r, s), s);
|
|
25
|
+
}
|
|
26
|
+
function c({ _intern: e, _key: t }, s) {
|
|
27
|
+
const r = t(s);
|
|
28
|
+
return e.has(r) && (s = e.get(r), e.delete(r)), s;
|
|
29
|
+
}
|
|
30
|
+
function f(e) {
|
|
31
|
+
return e !== null && typeof e == "object" ? e.valueOf() : e;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
i as InternMap
|
|
35
|
+
};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react-visualization",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -33,11 +33,23 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
36
|
+
"@ledgerhq/lumen-design-core": "0.1.11",
|
|
37
|
+
"@ledgerhq/lumen-ui-react": "0.1.22",
|
|
37
38
|
"class-variance-authority": "^0.7.1",
|
|
38
39
|
"clsx": "^2.1.1",
|
|
39
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
40
41
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
41
42
|
"tailwind-merge": "^2.6.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@ledgerhq/lumen-utils-shared": "0.1.3",
|
|
46
|
+
"d3-array": "^3.2.4",
|
|
47
|
+
"d3-scale": "^4.0.2",
|
|
48
|
+
"d3-shape": "^3.2.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/d3-array": "^3.2.2",
|
|
52
|
+
"@types/d3-scale": "^4.0.9",
|
|
53
|
+
"@types/d3-shape": "^3.1.8"
|
|
42
54
|
}
|
|
43
|
-
}
|
|
55
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/lumen-ui-react-visualization",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"keywords": [
|
|
@@ -34,10 +34,22 @@
|
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@ledgerhq/lumen-design-core": "0.1.11",
|
|
37
|
+
"@ledgerhq/lumen-ui-react": "0.1.24",
|
|
37
38
|
"class-variance-authority": "^0.7.1",
|
|
38
39
|
"clsx": "^2.1.1",
|
|
39
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
40
41
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
41
42
|
"tailwind-merge": "^2.6.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@ledgerhq/lumen-utils-shared": "0.1.3",
|
|
46
|
+
"d3-array": "^3.2.4",
|
|
47
|
+
"d3-scale": "^4.0.2",
|
|
48
|
+
"d3-shape": "^3.2.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/d3-array": "^3.2.2",
|
|
52
|
+
"@types/d3-scale": "^4.0.9",
|
|
53
|
+
"@types/d3-shape": "^3.1.8"
|
|
42
54
|
}
|
|
43
55
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/math/index.ts"],"names":[],"mappings":""}
|