@pie-lib/graphing 4.0.5-next.33 → 4.0.5-next.35

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 (125) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +2 -5
  2. package/dist/axis/arrow.js +5 -5
  3. package/dist/axis/axes.js +29 -29
  4. package/dist/container/index.js +32 -32
  5. package/dist/coordinates-label.js +6 -6
  6. package/dist/graph-with-controls.js +25 -23
  7. package/dist/grid-setup.js +63 -63
  8. package/dist/grid.js +3 -3
  9. package/dist/key-legend.js +38 -38
  10. package/dist/labels.js +19 -19
  11. package/dist/mark-label.js +19 -19
  12. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +67 -0
  13. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +66 -0
  14. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +39 -0
  15. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  16. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  17. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +13 -0
  18. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  19. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  20. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +14 -0
  21. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/Grid.js +43 -0
  22. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +46 -0
  23. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +46 -0
  24. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  25. package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +17 -0
  26. package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +20 -0
  27. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/coerceNumber.js +2 -2
  28. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +7 -0
  29. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  30. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +27 -0
  31. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js +24 -0
  32. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
  33. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
  34. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +27 -0
  35. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +68 -0
  36. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +19 -0
  37. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +13 -0
  38. package/dist/toggle-bar.js +19 -19
  39. package/dist/tools/circle/bg-circle.js +4 -4
  40. package/dist/tools/circle/component.js +18 -18
  41. package/dist/tools/line/component.js +9 -9
  42. package/dist/tools/polygon/line.js +9 -9
  43. package/dist/tools/polygon/polygon.js +7 -7
  44. package/dist/tools/ray/component.js +9 -9
  45. package/dist/tools/segment/component.js +6 -6
  46. package/dist/tools/shared/arrow-head.js +17 -17
  47. package/dist/tools/shared/line/index.d.ts +1 -1
  48. package/dist/tools/shared/line/index.js +13 -13
  49. package/dist/tools/shared/line/line-path.js +9 -9
  50. package/dist/tools/shared/line/with-root-edge.js +5 -5
  51. package/dist/tools/shared/point/base-point.js +10 -10
  52. package/dist/tools/shared/point/index.js +10 -10
  53. package/dist/tools/shared/styles.d.ts +2 -2
  54. package/dist/tools/shared/styles.js +2 -2
  55. package/dist/tools/vector/component.js +7 -7
  56. package/dist/undo-redo.js +9 -9
  57. package/package.json +14 -14
  58. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
  59. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
  60. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
  61. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  62. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  63. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  64. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  65. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  66. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  67. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +0 -79
  68. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  69. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  70. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  71. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
  72. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  73. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  74. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  75. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
  76. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -50
  77. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +0 -9
  78. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +0 -6
  79. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
  80. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  81. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  82. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  83. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
  84. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
  85. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
  86. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
  87. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
  88. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
  89. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
  90. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
  91. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
  92. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
  93. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
  94. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
  95. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
  96. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
  97. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
  98. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
  99. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
  100. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
  101. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
  102. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
  103. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
  104. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
  105. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
  106. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
  107. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
  108. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
  109. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
  110. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
  111. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
  112. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
  113. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
  114. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
  115. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
  116. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
  117. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
  118. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
  119. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
  120. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
  121. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
  122. package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +0 -471
  123. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -53
  124. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -51
  125. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +0 -10
@@ -1,63 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import n from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
4
- import r from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
5
- import i from "../constants/orientation.js";
6
- import a from "../utils/getLabelTransform.js";
7
- import o from "./Ticks.js";
8
- import s from "react";
9
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js
10
- var c = /* @__PURE__ */ e(t());
11
- function l() {
12
- return l = Object.assign ? Object.assign.bind() : function(e) {
13
- for (var t = 1; t < arguments.length; t++) {
14
- var n = arguments[t];
15
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
16
- }
17
- return e;
18
- }, l.apply(this, arguments);
19
- }
20
- var u = {
21
- textAnchor: "middle",
22
- fontFamily: "Arial",
23
- fontSize: 10,
24
- fill: "#222"
25
- };
26
- function d(e) {
27
- var t = e.axisFromPoint, d = e.axisLineClassName, f = e.axisToPoint, p = e.hideAxisLine, m = e.hideTicks, h = e.horizontal, g = e.label, _ = g === void 0 ? "" : g, v = e.labelClassName, y = e.labelOffset, b = y === void 0 ? 14 : y, x = e.labelProps, S = e.orientation, C = S === void 0 ? i.bottom : S, w = e.scale, T = e.stroke, E = T === void 0 ? "#222" : T, D = e.strokeDasharray, O = e.strokeWidth, k = O === void 0 ? 1 : O, A = e.tickClassName, j = e.tickComponent, M = e.tickLineProps, N = e.tickLabelProps, P = e.tickLength, F = P === void 0 ? 8 : P, I = e.tickStroke, L = I === void 0 ? "#222" : I, R = e.tickTransform, z = e.ticks, B = e.ticksComponent, V = B === void 0 ? o : B, H = l({}, u, x), U = l({}, u, typeof N == "object" ? N : null), W = z.map(function(e) {
28
- var t = e.value, n = e.index;
29
- return typeof N == "function" ? N(t, n, z) : U;
30
- }), G = Math.max.apply(Math, [10].concat(W.map(function(e) {
31
- return typeof e.fontSize == "number" ? e.fontSize : 0;
32
- })));
33
- return /*#__PURE__*/ s.createElement(s.Fragment, null, V({
34
- hideTicks: m,
35
- horizontal: h,
36
- orientation: C,
37
- scale: w,
38
- tickClassName: A,
39
- tickComponent: j,
40
- tickLabelProps: W,
41
- tickStroke: L,
42
- tickTransform: R,
43
- ticks: z,
44
- strokeWidth: k,
45
- tickLineProps: M
46
- }), !p && /*#__PURE__*/ s.createElement(n, {
47
- className: (0, c.default)("visx-axis-line", d),
48
- from: t,
49
- to: f,
50
- stroke: E,
51
- strokeWidth: k,
52
- strokeDasharray: D
53
- }), _ && /*#__PURE__*/ s.createElement(r, l({ className: (0, c.default)("visx-axis-label", v) }, a({
54
- labelOffset: b,
55
- labelProps: H,
56
- orientation: C,
57
- range: w.range(),
58
- tickLabelFontSize: G,
59
- tickLength: F
60
- }), H), _));
61
- }
62
- //#endregion
63
- export { d as default };
@@ -1,44 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import n from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
4
- import r from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js";
5
- import i from "../../../../../../@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js";
6
- import a from "../constants/orientation.js";
7
- import o from "react";
8
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js
9
- var s = /* @__PURE__ */ e(t());
10
- function c() {
11
- return c = Object.assign ? Object.assign.bind() : function(e) {
12
- for (var t = 1; t < arguments.length; t++) {
13
- var n = arguments[t];
14
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
15
- }
16
- return e;
17
- }, c.apply(this, arguments);
18
- }
19
- function l(e) {
20
- var t = e.hideTicks, l = e.horizontal, u = e.orientation, d = e.tickClassName, f = e.tickComponent, p = e.tickLabelProps, m = e.tickStroke, h = m === void 0 ? "#222" : m, g = e.tickTransform, _ = e.ticks, v = e.strokeWidth, y = e.tickLineProps;
21
- return _.map(function(e) {
22
- var m = e.value, _ = e.index, b = e.from, x = e.to, S = e.formattedValue, C = p[_] ?? {}, w = Math.max(10, typeof C.fontSize == "number" && C.fontSize || 0), T = x.y + (l && u !== a.top ? w : 0);
23
- return /*#__PURE__*/ o.createElement(n, {
24
- key: "visx-tick-" + m + "-" + _,
25
- className: (0, s.default)("visx-axis-tick", d),
26
- transform: g
27
- }, !t && /*#__PURE__*/ o.createElement(r, c({
28
- from: b,
29
- to: x,
30
- stroke: h,
31
- strokeWidth: v,
32
- strokeLinecap: "square"
33
- }, y)), f ? f(c({}, C, {
34
- x: x.x,
35
- y: T,
36
- formattedValue: S
37
- })) : /*#__PURE__*/ o.createElement(i, c({
38
- x: x.x,
39
- y: T
40
- }, C), S));
41
- });
42
- }
43
- //#endregion
44
- export { l as default };
@@ -1,9 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js
2
- var e = {
3
- top: "top",
4
- left: "left",
5
- right: "right",
6
- bottom: "bottom"
7
- };
8
- //#endregion
9
- export { e as default };
@@ -1,14 +0,0 @@
1
- import e from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
2
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js
3
- function t(t, n) {
4
- var r = t.x, i = t.y;
5
- return new e(n ? {
6
- x: r,
7
- y: i
8
- } : {
9
- x: i,
10
- y: r
11
- });
12
- }
13
- //#endregion
14
- export { t as default };
@@ -1,21 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js
2
- function e() {
3
- return e = Object.assign ? Object.assign.bind() : function(e) {
4
- for (var t = 1; t < arguments.length; t++) {
5
- var n = arguments[t];
6
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
7
- }
8
- return e;
9
- }, e.apply(this, arguments);
10
- }
11
- function t(t) {
12
- return t === void 0 && (t = 0), typeof t == "number" ? {
13
- start: t,
14
- end: t
15
- } : e({
16
- start: 0,
17
- end: 0
18
- }, t);
19
- }
20
- //#endregion
21
- export { t as default };
@@ -1,16 +0,0 @@
1
- import e from "../constants/orientation.js";
2
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js
3
- function t(t) {
4
- var n = t.labelOffset, r = t.labelProps, i = t.orientation, a = t.range, o = t.tickLabelFontSize, s = t.tickLength, c = i === e.left || i === e.top ? -1 : 1, l, u, d;
5
- if (i === e.top || i === e.bottom) {
6
- var f = i === e.bottom && typeof r.fontSize == "number" ? r.fontSize : 0;
7
- l = (Number(a[0]) + Number(a[a.length - 1])) / 2, u = c * (s + n + o + f);
8
- } else l = c * ((Number(a[0]) + Number(a[a.length - 1])) / 2), u = -(s + n), d = "rotate(" + c * 90 + ")";
9
- return {
10
- x: l,
11
- y: u,
12
- transform: d
13
- };
14
- }
15
- //#endregion
16
- export { t as default };
@@ -1,8 +0,0 @@
1
- import e from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js";
2
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js
3
- function t(t) {
4
- var n = t;
5
- return "tickFormat" in n ? n.tickFormat() : e;
6
- }
7
- //#endregion
8
- export { t as default };
@@ -1,15 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+axis@3.12.0+f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js
2
- function e(e, t) {
3
- t === void 0 && (t = "center");
4
- var n = e;
5
- if (t !== "start" && "bandwidth" in n) {
6
- var r = n.bandwidth();
7
- return t === "center" && (r /= 2), n.round() && (r = Math.round(r)), function(e) {
8
- var t = n(e);
9
- return typeof t == "number" ? t + r : t;
10
- };
11
- }
12
- return e;
13
- }
14
- //#endregion
15
- export { e as default };
@@ -1,79 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import n from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
4
- import r from "./GridRows.js";
5
- import i from "./GridColumns.js";
6
- import a from "react";
7
- import o from "prop-types";
8
- //#region ../../../node_modules/.bun/@visx+grid@3.12.0+f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js
9
- var s = /* @__PURE__ */ e(t()), c = [
10
- "top",
11
- "left",
12
- "xScale",
13
- "yScale",
14
- "width",
15
- "height",
16
- "className",
17
- "stroke",
18
- "strokeWidth",
19
- "strokeDasharray",
20
- "numTicksRows",
21
- "numTicksColumns",
22
- "rowLineStyle",
23
- "columnLineStyle",
24
- "xOffset",
25
- "yOffset",
26
- "rowTickValues",
27
- "columnTickValues"
28
- ];
29
- function l() {
30
- return l = Object.assign ? Object.assign.bind() : function(e) {
31
- for (var t = 1; t < arguments.length; t++) {
32
- var n = arguments[t];
33
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
34
- }
35
- return e;
36
- }, l.apply(this, arguments);
37
- }
38
- function u(e, t) {
39
- if (e == null) return {};
40
- var n = {}, r = Object.keys(e), i, a;
41
- for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
42
- return n;
43
- }
44
- function d(e) {
45
- var t = e.top, o = e.left, d = e.xScale, f = e.yScale, p = e.width, m = e.height, h = e.className, g = e.stroke, _ = e.strokeWidth, v = e.strokeDasharray, y = e.numTicksRows, b = e.numTicksColumns, x = e.rowLineStyle, S = e.columnLineStyle, C = e.xOffset, w = e.yOffset, T = e.rowTickValues, E = e.columnTickValues, D = u(e, c);
46
- return /*#__PURE__*/ a.createElement(n, {
47
- className: (0, s.default)("visx-grid", h),
48
- top: t,
49
- left: o
50
- }, /*#__PURE__*/ a.createElement(r, l({
51
- className: h,
52
- scale: f,
53
- width: p,
54
- stroke: g,
55
- strokeWidth: _,
56
- strokeDasharray: v,
57
- numTicks: y,
58
- lineStyle: x,
59
- offset: w,
60
- tickValues: T
61
- }, D)), /*#__PURE__*/ a.createElement(i, l({
62
- className: h,
63
- scale: d,
64
- height: m,
65
- stroke: g,
66
- strokeWidth: _,
67
- strokeDasharray: v,
68
- numTicks: b,
69
- lineStyle: S,
70
- offset: C,
71
- tickValues: E
72
- }, D)));
73
- }
74
- d.propTypes = {
75
- rowTickValues: o.array,
76
- columnTickValues: o.array
77
- };
78
- //#endregion
79
- export { d as default };
@@ -1,79 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import n from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
4
- import r from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
5
- import i from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
6
- import a from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
7
- import { require_Line as o } from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js";
8
- import s from "../utils/getScaleBandwidth.js";
9
- import c from "react";
10
- import l from "prop-types";
11
- //#region ../../../node_modules/.bun/@visx+grid@3.12.0+f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js
12
- var u = /* @__PURE__ */ e(t()), d = /* @__PURE__ */ e(o()), f = [
13
- "top",
14
- "left",
15
- "scale",
16
- "height",
17
- "stroke",
18
- "strokeWidth",
19
- "strokeDasharray",
20
- "className",
21
- "numTicks",
22
- "lineStyle",
23
- "offset",
24
- "tickValues",
25
- "children"
26
- ];
27
- function p() {
28
- return p = Object.assign ? Object.assign.bind() : function(e) {
29
- for (var t = 1; t < arguments.length; t++) {
30
- var n = arguments[t];
31
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
32
- }
33
- return e;
34
- }, p.apply(this, arguments);
35
- }
36
- function m(e, t) {
37
- if (e == null) return {};
38
- var n = {}, r = Object.keys(e), i, a;
39
- for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
40
- return n;
41
- }
42
- function h(e) {
43
- var t = e.top, o = t === void 0 ? 0 : t, l = e.left, h = l === void 0 ? 0 : l, g = e.scale, _ = e.height, v = e.stroke, y = v === void 0 ? "#eaf0f6" : v, b = e.strokeWidth, x = b === void 0 ? 1 : b, S = e.strokeDasharray, C = e.className, w = e.numTicks, T = w === void 0 ? 10 : w, E = e.lineStyle, D = e.offset, O = e.tickValues, k = e.children, A = m(e, f), j = O ?? i(g, T), M = (D ?? 0) + s(g) / 2, N = j.map(function(e, t) {
44
- var n = (r(g(e)) ?? 0) + M;
45
- return {
46
- index: t,
47
- from: new a({
48
- x: n,
49
- y: 0
50
- }),
51
- to: new a({
52
- x: n,
53
- y: _
54
- })
55
- };
56
- });
57
- return /*#__PURE__*/ c.createElement(n, {
58
- className: (0, u.default)("visx-columns", C),
59
- top: o,
60
- left: h
61
- }, k ? k({ lines: N }) : N.map(function(e) {
62
- var t = e.from, n = e.to, r = e.index;
63
- return /*#__PURE__*/ c.createElement(d.default, p({
64
- key: "column-line-" + r,
65
- from: t,
66
- to: n,
67
- stroke: y,
68
- strokeWidth: x,
69
- strokeDasharray: S,
70
- style: E
71
- }, A));
72
- }));
73
- }
74
- h.propTypes = {
75
- tickValues: l.array,
76
- height: l.number.isRequired
77
- };
78
- //#endregion
79
- export { h as default };
@@ -1,79 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import n from "../../../../../../@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
4
- import r from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
5
- import i from "../../../../../../@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js";
6
- import a from "../../../../../../@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js";
7
- import { require_Line as o } from "../../../../../../@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js";
8
- import s from "../utils/getScaleBandwidth.js";
9
- import c from "react";
10
- import l from "prop-types";
11
- //#region ../../../node_modules/.bun/@visx+grid@3.12.0+f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js
12
- var u = /* @__PURE__ */ e(t()), d = /* @__PURE__ */ e(o()), f = [
13
- "top",
14
- "left",
15
- "scale",
16
- "width",
17
- "stroke",
18
- "strokeWidth",
19
- "strokeDasharray",
20
- "className",
21
- "children",
22
- "numTicks",
23
- "lineStyle",
24
- "offset",
25
- "tickValues"
26
- ];
27
- function p() {
28
- return p = Object.assign ? Object.assign.bind() : function(e) {
29
- for (var t = 1; t < arguments.length; t++) {
30
- var n = arguments[t];
31
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
32
- }
33
- return e;
34
- }, p.apply(this, arguments);
35
- }
36
- function m(e, t) {
37
- if (e == null) return {};
38
- var n = {}, r = Object.keys(e), i, a;
39
- for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
40
- return n;
41
- }
42
- function h(e) {
43
- var t = e.top, o = t === void 0 ? 0 : t, l = e.left, h = l === void 0 ? 0 : l, g = e.scale, _ = e.width, v = e.stroke, y = v === void 0 ? "#eaf0f6" : v, b = e.strokeWidth, x = b === void 0 ? 1 : b, S = e.strokeDasharray, C = e.className, w = e.children, T = e.numTicks, E = T === void 0 ? 10 : T, D = e.lineStyle, O = e.offset, k = e.tickValues, A = m(e, f), j = k ?? i(g, E), M = (O ?? 0) + s(g) / 2, N = j.map(function(e, t) {
44
- var n = (r(g(e)) ?? 0) + M;
45
- return {
46
- index: t,
47
- from: new a({
48
- x: 0,
49
- y: n
50
- }),
51
- to: new a({
52
- x: _,
53
- y: n
54
- })
55
- };
56
- });
57
- return /*#__PURE__*/ c.createElement(n, {
58
- className: (0, u.default)("visx-rows", C),
59
- top: o,
60
- left: h
61
- }, w ? w({ lines: N }) : N.map(function(e) {
62
- var t = e.from, n = e.to, r = e.index;
63
- return /*#__PURE__*/ c.createElement(d.default, p({
64
- key: "row-line-" + r,
65
- from: t,
66
- to: n,
67
- stroke: y,
68
- strokeWidth: x,
69
- strokeDasharray: S,
70
- style: D
71
- }, A));
72
- }));
73
- }
74
- h.propTypes = {
75
- tickValues: l.array,
76
- width: l.number.isRequired
77
- };
78
- //#endregion
79
- export { h as default };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+grid@3.12.0+f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js
2
- function e(e) {
3
- return "bandwidth" in e ? e.bandwidth() : 0;
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,50 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import n from "react";
4
- import r from "prop-types";
5
- //#region ../../../node_modules/.bun/@visx+group@3.12.0+f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js
6
- var i = /* @__PURE__ */ e(t()), a = [
7
- "top",
8
- "left",
9
- "transform",
10
- "className",
11
- "children",
12
- "innerRef"
13
- ];
14
- function o() {
15
- return o = Object.assign ? Object.assign.bind() : function(e) {
16
- for (var t = 1; t < arguments.length; t++) {
17
- var n = arguments[t];
18
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
19
- }
20
- return e;
21
- }, o.apply(this, arguments);
22
- }
23
- function s(e, t) {
24
- if (e == null) return {};
25
- var n = {}, r = Object.keys(e), i, a;
26
- for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
27
- return n;
28
- }
29
- function c(e) {
30
- var t = e.top, r = t === void 0 ? 0 : t, c = e.left, l = c === void 0 ? 0 : c, u = e.transform, d = e.className, f = e.children, p = e.innerRef, m = s(e, a);
31
- return /*#__PURE__*/ n.createElement("g", o({
32
- ref: p,
33
- className: (0, i.default)("visx-group", d),
34
- transform: u || "translate(" + l + ", " + r + ")"
35
- }, m), f);
36
- }
37
- c.propTypes = {
38
- top: r.number,
39
- left: r.number,
40
- transform: r.string,
41
- className: r.string,
42
- children: r.node,
43
- innerRef: r.oneOfType([
44
- r.string,
45
- r.func,
46
- r.object
47
- ])
48
- };
49
- //#endregion
50
- export { c as default };
@@ -1,18 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+point@3.12.0/node_modules/@visx/point/esm/Point.js
2
- var e = /*#__PURE__*/ function() {
3
- function e(e) {
4
- var t = e.x, n = t === void 0 ? 0 : t, r = e.y, i = r === void 0 ? 0 : r;
5
- this.x = 0, this.y = 0, this.x = n, this.y = i;
6
- }
7
- var t = e.prototype;
8
- return t.value = function() {
9
- return {
10
- x: this.x,
11
- y: this.y
12
- };
13
- }, t.toArray = function() {
14
- return [this.x, this.y];
15
- }, e;
16
- }();
17
- //#endregion
18
- export { e as default };
@@ -1,9 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js
2
- function e(e, t) {
3
- var n = e;
4
- return "ticks" in n ? n.ticks(t) : n.domain().filter(function(e, n, r) {
5
- return t == null || r.length <= t || n % Math.round((r.length - 1) / t) === 0;
6
- });
7
- }
8
- //#endregion
9
- export { e as default };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js
2
- function e(e) {
3
- return e?.toString();
4
- }
5
- //#endregion
6
- export { e as default };
@@ -1,47 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import n from "react";
4
- //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js
5
- var r = /* @__PURE__ */ e(t()), i = [
6
- "from",
7
- "to",
8
- "fill",
9
- "className",
10
- "innerRef"
11
- ];
12
- function a() {
13
- return a = Object.assign ? Object.assign.bind() : function(e) {
14
- for (var t = 1; t < arguments.length; t++) {
15
- var n = arguments[t];
16
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
17
- }
18
- return e;
19
- }, a.apply(this, arguments);
20
- }
21
- function o(e, t) {
22
- if (e == null) return {};
23
- var n = {}, r = Object.keys(e), i, a;
24
- for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
25
- return n;
26
- }
27
- function s(e) {
28
- var t = e.from, s = t === void 0 ? {
29
- x: 0,
30
- y: 0
31
- } : t, c = e.to, l = c === void 0 ? {
32
- x: 1,
33
- y: 1
34
- } : c, u = e.fill, d = u === void 0 ? "transparent" : u, f = e.className, p = e.innerRef, m = o(e, i), h = s.x === l.x || s.y === l.y;
35
- return /*#__PURE__*/ n.createElement("line", a({
36
- ref: p,
37
- className: (0, r.default)("visx-line", f),
38
- x1: s.x,
39
- y1: s.y,
40
- x2: l.x,
41
- y2: l.y,
42
- fill: d,
43
- shapeRendering: h ? "crispEdges" : "auto"
44
- }, m));
45
- }
46
- //#endregion
47
- export { s as default };
@@ -1,50 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_classnames as t } from "../../../../../../classnames@2.5.1/node_modules/classnames/index.js";
3
- import { line as n } from "../util/D3ShapeFactories.js";
4
- import r from "react";
5
- //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js
6
- var i = /* @__PURE__ */ e(t()), a = [
7
- "children",
8
- "data",
9
- "x",
10
- "y",
11
- "fill",
12
- "className",
13
- "curve",
14
- "innerRef",
15
- "defined"
16
- ];
17
- function o() {
18
- return o = Object.assign ? Object.assign.bind() : function(e) {
19
- for (var t = 1; t < arguments.length; t++) {
20
- var n = arguments[t];
21
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
22
- }
23
- return e;
24
- }, o.apply(this, arguments);
25
- }
26
- function s(e, t) {
27
- if (e == null) return {};
28
- var n = {}, r = Object.keys(e), i, a;
29
- for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
30
- return n;
31
- }
32
- function c(e) {
33
- var t = e.children, c = e.data, l = c === void 0 ? [] : c, u = e.x, d = e.y, f = e.fill, p = f === void 0 ? "transparent" : f, m = e.className, h = e.curve, g = e.innerRef, _ = e.defined, v = _ === void 0 ? function() {
34
- return !0;
35
- } : _, y = s(e, a), b = n({
36
- x: u,
37
- y: d,
38
- defined: v,
39
- curve: h
40
- });
41
- return t ? /*#__PURE__*/ r.createElement(r.Fragment, null, t({ path: b })) : /*#__PURE__*/ r.createElement("path", o({
42
- ref: g,
43
- className: (0, i.default)("visx-linepath", m),
44
- d: b(l) || "",
45
- fill: p,
46
- strokeLinecap: "round"
47
- }, y));
48
- }
49
- //#endregion
50
- export { c as default };
@@ -1,9 +0,0 @@
1
- import e from "./setNumberOrNumberAccessor.js";
2
- import { line as t } from "d3-shape";
3
- //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js
4
- function n(n) {
5
- var r = n === void 0 ? {} : n, i = r.x, a = r.y, o = r.defined, s = r.curve, c = t();
6
- return i && e(c.x, i), a && e(c.y, a), o && c.defined(o), s && c.curve(s), c;
7
- }
8
- //#endregion
9
- export { n as line };
@@ -1,6 +0,0 @@
1
- //#region ../../../node_modules/.bun/@visx+shape@3.12.0+f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js
2
- function e(e, t) {
3
- e(t);
4
- }
5
- //#endregion
6
- export { e as default };