@pie-lib/charting 7.0.4-next.31 → 7.0.4-next.33

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 (145) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +2 -5
  2. package/dist/actions-button.js +9 -9
  3. package/dist/axes.js +37 -37
  4. package/dist/bars/bar.js +2 -2
  5. package/dist/bars/common/bars.js +16 -16
  6. package/dist/bars/histogram.js +2 -2
  7. package/dist/chart-setup.js +20 -20
  8. package/dist/chart.js +6 -6
  9. package/dist/common/correctness-indicators.js +18 -18
  10. package/dist/common/drag-handle.js +21 -21
  11. package/dist/grid.js +12 -12
  12. package/dist/index.js +1 -1
  13. package/dist/key-legend.js +12 -12
  14. package/dist/line/common/drag-handle.js +13 -13
  15. package/dist/line/common/line.js +14 -14
  16. package/dist/line/line-cross.js +21 -21
  17. package/dist/line/line-dot.js +12 -12
  18. package/dist/mark-label.js +14 -14
  19. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +67 -0
  20. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisBottom.js +29 -0
  21. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisLeft.js +30 -0
  22. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +66 -0
  23. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +39 -0
  24. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  25. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  26. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +13 -0
  27. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  28. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  29. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +14 -0
  30. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +46 -0
  31. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +46 -0
  32. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  33. package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +17 -0
  34. package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +20 -0
  35. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/align.js +1 -1
  36. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/base.js +1 -1
  37. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/clamp.js +1 -1
  38. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/constant.js +1 -1
  39. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/domain.js +1 -1
  40. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/exponent.js +1 -1
  41. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/interpolate.js +2 -2
  42. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/nice.js +7 -7
  43. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/padding.js +1 -1
  44. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/range.js +1 -1
  45. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/reverse.js +9 -0
  46. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/round.js +2 -2
  47. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/scaleOperator.js +4 -6
  48. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/unknown.js +1 -1
  49. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/zero.js +9 -0
  50. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/scales/band.js +3 -3
  51. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/scales/point.js +3 -3
  52. 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
  53. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/createColorInterpolator.js +3 -3
  54. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +7 -0
  55. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/utils/isUtcScale.js +1 -1
  56. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  57. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Bar.js +15 -0
  58. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Circle.js +15 -0
  59. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +27 -0
  60. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js +24 -0
  61. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
  62. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
  63. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +27 -0
  64. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +68 -0
  65. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +19 -0
  66. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +13 -0
  67. package/dist/node_modules/.bun/{@visx_vendor@3.12.0 → @visx_vendor@4.0.0}/node_modules/@visx/vendor/esm/d3-interpolate.js +1 -1
  68. package/dist/node_modules/.bun/{@visx_vendor@3.12.0 → @visx_vendor@4.0.0}/node_modules/@visx/vendor/esm/d3-scale.js +1 -1
  69. package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js +8 -0
  70. package/dist/node_modules/.bun/{@visx_vendor@3.12.0 → @visx_vendor@4.0.0}/node_modules/@visx/vendor/esm/d3-time.js +1 -1
  71. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +1 -1
  72. package/dist/plot/common/plot.js +28 -28
  73. package/dist/plot/dot.js +10 -10
  74. package/dist/plot/line.js +12 -12
  75. package/dist/utils.js +2 -2
  76. package/package.json +19 -14
  77. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
  78. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +0 -46
  79. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +0 -47
  80. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
  81. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
  82. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  83. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  84. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  85. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  86. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  87. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  88. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  89. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  90. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  91. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
  92. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  93. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js +0 -9
  94. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/zero.js +0 -9
  95. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  96. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  97. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js +0 -29
  98. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js +0 -29
  99. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
  100. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -50
  101. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +0 -9
  102. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +0 -6
  103. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
  104. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  105. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  106. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  107. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -21
  108. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -21
  109. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Map.js +0 -10
  110. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -21
  111. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -9
  112. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -14
  113. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -15
  114. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -16
  115. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -9
  116. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -8
  117. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -14
  118. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -15
  119. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -19
  120. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -11
  121. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -13
  122. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -12
  123. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -18
  124. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -14
  125. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -14
  126. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -12
  127. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -16
  128. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -11
  129. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -14
  130. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -14
  131. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -13
  132. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -14
  133. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -19
  134. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -14
  135. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -13
  136. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -13
  137. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -14
  138. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -9
  139. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -12
  140. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_root.js +0 -10
  141. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -20
  142. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js +0 -11
  143. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -16
  144. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isObject.js +0 -12
  145. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/memoize.js +0 -20
@@ -1,22 +1,22 @@
1
1
  import "react";
2
2
  import e from "prop-types";
3
3
  import { styled as t } from "@mui/material/styles";
4
- import { color as n } from "@pie-lib/render-ui";
5
- import { jsx as r } from "react/jsx-runtime";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import { color as r } from "@pie-lib/render-ui";
6
6
  import i from "@mui/icons-material/Check";
7
7
  import a from "@mui/icons-material/Close";
8
8
  //#region src/common/correctness-indicators.tsx
9
9
  var o = t(i)(({ theme: e }) => ({
10
10
  borderRadius: e.spacing(2),
11
- color: n.defaults.WHITE,
11
+ color: r.defaults.WHITE,
12
12
  fontSize: "16px",
13
13
  width: "16px",
14
14
  height: "16px",
15
15
  padding: "2px",
16
- border: `1px solid ${n.defaults.WHITE}`,
16
+ border: `1px solid ${r.defaults.WHITE}`,
17
17
  stroke: "initial",
18
18
  boxSizing: "unset",
19
- backgroundColor: n.correct(),
19
+ backgroundColor: r.correct(),
20
20
  display: "block",
21
21
  "&.small": {
22
22
  fontSize: "10px",
@@ -25,49 +25,49 @@ var o = t(i)(({ theme: e }) => ({
25
25
  }
26
26
  })), s = t(a)(({ theme: e }) => ({
27
27
  borderRadius: e.spacing(2),
28
- color: n.defaults.WHITE,
28
+ color: r.defaults.WHITE,
29
29
  fontSize: "16px",
30
30
  width: "16px",
31
31
  height: "16px",
32
32
  padding: "2px",
33
- border: `1px solid ${n.defaults.WHITE}`,
33
+ border: `1px solid ${r.defaults.WHITE}`,
34
34
  stroke: "initial",
35
35
  boxSizing: "unset",
36
- backgroundColor: n.incorrectWithIcon(),
36
+ backgroundColor: r.incorrectWithIcon(),
37
37
  display: "block",
38
38
  "&.small": {
39
39
  fontSize: "10px",
40
40
  width: "10px",
41
41
  height: "10px"
42
42
  }
43
- })), c = ({ scale: e, x: t, y: n, correctness: i, interactive: a }) => {
43
+ })), c = ({ scale: e, x: t, y: r, correctness: i, interactive: a }) => {
44
44
  if (!i || !a) return null;
45
- let c = e ? e.x(t) : t, l = e ? e.y(n) : n, u = i.value === "correct";
46
- return /* @__PURE__ */ r("foreignObject", {
45
+ let c = e ? e.x(t) : t, l = e ? e.y(r) : r, u = i.value === "correct";
46
+ return /* @__PURE__ */ n("foreignObject", {
47
47
  x: c - 11,
48
48
  y: l - 11,
49
49
  width: 22,
50
50
  height: 22,
51
- children: r(u ? o : s, { title: i.label })
51
+ children: n(u ? o : s, { title: i.label })
52
52
  });
53
- }, l = ({ scale: e, x: t, correctness: n, correctData: i, label: a }) => {
54
- if (n && n.value === "incorrect") {
53
+ }, l = ({ scale: e, x: t, correctness: r, correctData: i, label: a }) => {
54
+ if (r && r.value === "incorrect") {
55
55
  let s = parseFloat(i.find((e) => e.label === a)?.value);
56
56
  if (isNaN(s)) return null;
57
57
  let c = e.y(s) - 7.5;
58
- return /* @__PURE__ */ r("foreignObject", {
58
+ return /* @__PURE__ */ n("foreignObject", {
59
59
  x: e.x(t) - 7.5,
60
60
  y: c,
61
61
  width: 15,
62
62
  height: 15,
63
- children: /* @__PURE__ */ r(o, {
63
+ children: /* @__PURE__ */ n(o, {
64
64
  className: "small",
65
- title: n.label
65
+ title: r.label
66
66
  })
67
67
  });
68
68
  }
69
69
  return null;
70
- }, u = ({ correctness: e, interactive: t }) => !e || !t ? null : e.value === "correct" ? /* @__PURE__ */ r(o, { title: e.label }) : /* @__PURE__ */ r(s, { title: e.label });
70
+ }, u = ({ correctness: e, interactive: t }) => !e || !t ? null : e.value === "correct" ? /* @__PURE__ */ n(o, { title: e.label }) : /* @__PURE__ */ n(s, { title: e.label });
71
71
  c.propTypes = {
72
72
  scale: e.shape({
73
73
  x: e.func,
@@ -4,8 +4,8 @@ import "react";
4
4
  import n from "prop-types";
5
5
  import { styled as r } from "@mui/material/styles";
6
6
  import { gridDraggable as i, types as a, utils as o } from "@pie-lib/plot";
7
- import { color as s } from "@pie-lib/render-ui";
8
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import { color as l } from "@pie-lib/render-ui";
9
9
  import u from "@mui/icons-material/Check";
10
10
  import d from "@mui/icons-material/Close";
11
11
  //#region src/common/drag-handle.tsx
@@ -13,75 +13,75 @@ var f = r("svg")(() => ({ overflow: "visible !important" })), p = r("ellipse")((
13
13
  fill: "transparent",
14
14
  clipPath: "polygon(50% 0%, 100% 0%, 100% 50%, 0% 50%, 0% 0%)"
15
15
  })), m = r(u)(() => ({
16
- backgroundColor: s.correct(),
16
+ backgroundColor: l.correct(),
17
17
  borderRadius: "16px",
18
- color: s.defaults.WHITE,
18
+ color: l.defaults.WHITE,
19
19
  fontSize: "16px",
20
20
  padding: "2px",
21
- border: `4px solid ${s.defaults.WHITE}`,
21
+ border: `4px solid ${l.defaults.WHITE}`,
22
22
  width: "16px",
23
23
  height: "16px",
24
24
  boxSizing: "unset"
25
25
  })), h = r(d)(() => ({
26
- backgroundColor: s.incorrectWithIcon(),
26
+ backgroundColor: l.incorrectWithIcon(),
27
27
  borderRadius: "16px",
28
- color: s.defaults.WHITE,
28
+ color: l.defaults.WHITE,
29
29
  fontSize: "16px",
30
30
  padding: "2px",
31
- border: `4px solid ${s.defaults.WHITE}`,
31
+ border: `4px solid ${l.defaults.WHITE}`,
32
32
  width: "16px",
33
33
  height: "16px",
34
34
  boxSizing: "unset"
35
35
  })), g = ({ x: n, y: r, width: i, graphProps: a, interactive: o, isHovered: u, correctness: d, isPlot: g, ..._ }) => {
36
36
  let { scale: v } = a, y = e(i)?.scale;
37
- return /* @__PURE__ */ l(f, {
37
+ return /* @__PURE__ */ c(f, {
38
38
  x: n,
39
39
  y: v.y(r) - 10,
40
40
  width: i,
41
41
  overflow: "visible",
42
42
  children: [
43
- u && !d && o && /* @__PURE__ */ c(t, {
43
+ u && !d && o && /* @__PURE__ */ s(t, {
44
44
  width: i,
45
45
  scaleValue: y,
46
- color: s.defaults.BORDER_GRAY
46
+ color: l.defaults.BORDER_GRAY
47
47
  }),
48
- o && !d && /* @__PURE__ */ c(p, {
48
+ o && !d && /* @__PURE__ */ s(p, {
49
49
  cx: i / 2,
50
50
  cy: 10,
51
51
  rx: i / 2,
52
52
  ry: 66,
53
53
  ..._
54
54
  }),
55
- /* @__PURE__ */ c("defs", { children: /* @__PURE__ */ l("filter", {
55
+ /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ c("filter", {
56
56
  id: "bottomShadow",
57
57
  x: "0",
58
58
  y: "0",
59
59
  width: "140%",
60
60
  height: "140%",
61
61
  children: [
62
- /* @__PURE__ */ c("feGaussianBlur", {
62
+ /* @__PURE__ */ s("feGaussianBlur", {
63
63
  in: "SourceAlpha",
64
64
  stdDeviation: "3"
65
65
  }),
66
- /* @__PURE__ */ c("feOffset", {
66
+ /* @__PURE__ */ s("feOffset", {
67
67
  dx: "0",
68
68
  dy: "5",
69
69
  result: "offsetblur"
70
70
  }),
71
- /* @__PURE__ */ c("feFlood", { floodColor: "#00000033" }),
72
- /* @__PURE__ */ c("feComposite", {
71
+ /* @__PURE__ */ s("feFlood", { floodColor: "#00000033" }),
72
+ /* @__PURE__ */ s("feComposite", {
73
73
  in2: "offsetblur",
74
74
  operator: "in"
75
75
  }),
76
- /* @__PURE__ */ l("feMerge", { children: [/* @__PURE__ */ c("feMergeNode", {}), /* @__PURE__ */ c("feMergeNode", { in: "SourceGraphic" })] })
76
+ /* @__PURE__ */ c("feMerge", { children: [/* @__PURE__ */ s("feMergeNode", {}), /* @__PURE__ */ s("feMergeNode", { in: "SourceGraphic" })] })
77
77
  ]
78
78
  }) }),
79
- d && o && !g && /* @__PURE__ */ c("foreignObject", {
79
+ d && o && !g && /* @__PURE__ */ s("foreignObject", {
80
80
  x: i / 2 - 14,
81
81
  y: 0,
82
82
  width: 40,
83
83
  height: 40,
84
- children: d.value === "correct" ? /* @__PURE__ */ c(m, { title: d.label }) : /* @__PURE__ */ c(h, { title: d.label })
84
+ children: d.value === "correct" ? /* @__PURE__ */ s(m, { title: d.label }) : /* @__PURE__ */ s(h, { title: d.label })
85
85
  })
86
86
  ]
87
87
  });
@@ -117,4 +117,4 @@ var _ = g, v = i({
117
117
  })
118
118
  })(_);
119
119
  //#endregion
120
- export { _ as DragHandle, v as default };
120
+ export { v as D, v as default, _ as DragHandle };
package/dist/grid.js CHANGED
@@ -1,13 +1,13 @@
1
- import e from "./node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js";
2
- import t from "./node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js";
1
+ import e from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js";
2
+ import t from "./node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js";
3
3
  import n from "react";
4
4
  import r from "prop-types";
5
5
  import { styled as i } from "@mui/material/styles";
6
6
  import { types as a } from "@pie-lib/plot";
7
- import { color as o } from "@pie-lib/render-ui";
8
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
+ import { color as c } from "@pie-lib/render-ui";
9
9
  //#region src/grid.tsx
10
- var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Component {
10
+ var l = i("g")(() => ({ stroke: c.primaryLight() })), u = class extends n.Component {
11
11
  static propTypes = {
12
12
  className: r.string,
13
13
  graphProps: a.GraphPropsType.isRequired,
@@ -24,26 +24,26 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
24
24
  unlabeledLines: [],
25
25
  labeledLines: []
26
26
  });
27
- return /* @__PURE__ */ c(l, { children: [
28
- /* @__PURE__ */ s(e, {
27
+ return /* @__PURE__ */ s(l, { children: [
28
+ /* @__PURE__ */ o(e, {
29
29
  scale: u.y,
30
30
  width: d.width,
31
31
  tickValues: _,
32
32
  lineStyle: {
33
- stroke: o.fadedPrimary(),
33
+ stroke: c.fadedPrimary(),
34
34
  strokeWidth: 1
35
35
  }
36
36
  }),
37
- /* @__PURE__ */ s(e, {
37
+ /* @__PURE__ */ o(e, {
38
38
  scale: u.y,
39
39
  width: d.width,
40
40
  tickValues: v,
41
41
  lineStyle: {
42
- stroke: _.length ? o.visualElementsColors.GRIDLINES_COLOR : o.fadedPrimary(),
42
+ stroke: _.length ? c.visualElementsColors.GRIDLINES_COLOR : c.fadedPrimary(),
43
43
  strokeWidth: 1
44
44
  }
45
45
  }),
46
- /* @__PURE__ */ s(t, {
46
+ /* @__PURE__ */ o(t, {
47
47
  scale: r,
48
48
  height: d.height,
49
49
  offset: r.bandwidth() / 2,
@@ -53,4 +53,4 @@ var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Compon
53
53
  }
54
54
  };
55
55
  //#endregion
56
- export { u as default };
56
+ export { u as Grid, u as default };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import e from "./chart-types.js";
2
- import t from "./chart.js";
2
+ import { Chart as t } from "./chart.js";
3
3
  import n from "./chart-type.js";
4
4
  import r from "./chart-setup.js";
5
5
  import i from "./key-legend.js";
@@ -1,14 +1,14 @@
1
1
  import "react";
2
2
  import e from "prop-types";
3
3
  import { styled as t } from "@mui/material/styles";
4
- import { color as n } from "@pie-lib/render-ui";
5
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ import { color as i } from "@pie-lib/render-ui";
6
6
  import a from "@mui/icons-material/Check";
7
7
  import o from "@mui/icons-material/Close";
8
8
  import s from "@pie-lib/translator";
9
9
  //#region src/key-legend.tsx
10
10
  var c = t("div")(({ theme: e }) => ({
11
- backgroundColor: n.defaults.WHITE,
11
+ backgroundColor: i.defaults.WHITE,
12
12
  padding: e.spacing(2),
13
13
  width: "355px",
14
14
  boxShadow: "inset 0px 1px 5px 0px #9297A6",
@@ -23,23 +23,23 @@ var c = t("div")(({ theme: e }) => ({
23
23
  fontSize: e.typography.h6.fontSize,
24
24
  fontWeight: "700"
25
25
  })), d = t("div")(() => ({ marginLeft: "2px" })), f = t(a)(({ theme: e }) => ({
26
- backgroundColor: n.correct(),
26
+ backgroundColor: i.correct(),
27
27
  borderRadius: e.spacing(2),
28
- color: n.defaults.WHITE
28
+ color: i.defaults.WHITE
29
29
  })), p = t(o)(({ theme: e }) => ({
30
- backgroundColor: n.incorrectWithIcon(),
30
+ backgroundColor: i.incorrectWithIcon(),
31
31
  borderRadius: e.spacing(2),
32
- color: n.defaults.WHITE
32
+ color: i.defaults.WHITE
33
33
  })), m = t("div")(() => ({
34
34
  marginLeft: "3px",
35
35
  display: "flex",
36
36
  alignItems: "center",
37
37
  gap: "12px"
38
- })), { translator: h } = s, g = ({ language: e }) => /* @__PURE__ */ i(c, { children: [
39
- /* @__PURE__ */ r(u, { children: "Key" }),
40
- /* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(p, {}), /* @__PURE__ */ r("div", { children: h.t("charting.keyLegend.incorrectAnswer", { lng: e }) })] }),
41
- /* @__PURE__ */ i(l, { children: [/* @__PURE__ */ r(f, {}), /* @__PURE__ */ r("div", { children: h.t("charting.keyLegend.correctAnswer", { lng: e }) })] }),
42
- /* @__PURE__ */ i(m, { children: [/* @__PURE__ */ r(f, { fontSize: "small" }), /* @__PURE__ */ r(d, { children: h.t("charting.keyLegend.correctKeyAnswer", { lng: e }) })] })
38
+ })), { translator: h } = s, g = ({ language: e }) => /* @__PURE__ */ r(c, { children: [
39
+ /* @__PURE__ */ n(u, { children: "Key" }),
40
+ /* @__PURE__ */ r(l, { children: [/* @__PURE__ */ n(p, {}), /* @__PURE__ */ n("div", { children: h.t("charting.keyLegend.incorrectAnswer", { lng: e }) })] }),
41
+ /* @__PURE__ */ r(l, { children: [/* @__PURE__ */ n(f, {}), /* @__PURE__ */ n("div", { children: h.t("charting.keyLegend.correctAnswer", { lng: e }) })] }),
42
+ /* @__PURE__ */ r(m, { children: [/* @__PURE__ */ n(f, { fontSize: "small" }), /* @__PURE__ */ n(d, { children: h.t("charting.keyLegend.correctKeyAnswer", { lng: e }) })] })
43
43
  ] });
44
44
  g.propTypes = { language: e.string };
45
45
  //#endregion
@@ -1,11 +1,11 @@
1
- import e from "../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
2
2
  import { disabled as t } from "../../common/styles.js";
3
3
  import n from "react";
4
4
  import r from "prop-types";
5
5
  import { styled as i } from "@mui/material/styles";
6
6
  import { gridDraggable as a, types as o, utils as s } from "@pie-lib/plot";
7
- import { color as c } from "@pie-lib/render-ui";
8
- import { jsx as l } from "react/jsx-runtime";
7
+ import { jsx as c } from "react/jsx-runtime";
8
+ import { color as l } from "@pie-lib/render-ui";
9
9
  //#region src/line/common/drag-handle.tsx
10
10
  var u = i("g")(({ theme: e }) => ({
11
11
  color: "black",
@@ -19,24 +19,24 @@ var u = i("g")(({ theme: e }) => ({
19
19
  stroke: "transparent"
20
20
  },
21
21
  "& .line": {
22
- stroke: c.defaults.TEXT,
22
+ stroke: l.defaults.TEXT,
23
23
  transition: "fill 200ms linear, height 200ms linear",
24
24
  "&.non-interactive": t("stroke")
25
25
  },
26
26
  "& .disabledPoint": {
27
- fill: c.defaults.BLACK + " !important",
28
- stroke: c.defaults.BLACK + " !important"
27
+ fill: l.defaults.BLACK + " !important",
28
+ stroke: l.defaults.BLACK + " !important"
29
29
  },
30
- "& .correctIcon": { backgroundColor: c.correct() },
31
- "& .incorrectIcon": { backgroundColor: c.incorrectWithIcon() },
30
+ "& .correctIcon": { backgroundColor: l.correct() },
31
+ "& .incorrectIcon": { backgroundColor: l.incorrectWithIcon() },
32
32
  "& .correctnessIcon": {
33
33
  borderRadius: e.spacing(2),
34
- color: c.defaults.WHITE,
34
+ color: l.defaults.WHITE,
35
35
  fontSize: "16px",
36
36
  width: "16px",
37
37
  height: "16px",
38
38
  padding: "2px",
39
- border: `1px solid ${c.defaults.WHITE}`,
39
+ border: `1px solid ${l.defaults.WHITE}`,
40
40
  stroke: "initial",
41
41
  boxSizing: "unset"
42
42
  },
@@ -60,15 +60,15 @@ var u = i("g")(({ theme: e }) => ({
60
60
  })
61
61
  };
62
62
  render() {
63
- let { x: t, y: n, graphProps: r, className: i, interactive: a, CustomDraggableComponent: o, correctness: s, ...c } = this.props, { scale: d } = r;
64
- return o ? /* @__PURE__ */ l(u, { children: /* @__PURE__ */ l(o, {
63
+ let { x: t, y: n, graphProps: r, className: i, interactive: a, CustomDraggableComponent: o, correctness: s, ...l } = this.props, { scale: d } = r;
64
+ return o ? /* @__PURE__ */ c(u, { children: /* @__PURE__ */ c(o, {
65
65
  scale: d,
66
66
  x: t,
67
67
  y: n,
68
68
  className: e(i, !a && "non-interactive"),
69
69
  correctness: s,
70
70
  interactive: a,
71
- ...c
71
+ ...l
72
72
  }) }) : null;
73
73
  }
74
74
  }, f = a({
@@ -1,13 +1,13 @@
1
- import e from "../../node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
2
- import t from "../../node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js";
1
+ import e from "../../node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
2
+ import t from "../../node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js";
3
3
  import n, { DragHandle as r } from "./drag-handle.js";
4
4
  import i from "react";
5
5
  import a from "prop-types";
6
6
  import { styled as o } from "@mui/material/styles";
7
7
  import { isEqual as s } from "@pie-element/shared-lodash";
8
8
  import { types as c } from "@pie-lib/plot";
9
- import { color as l } from "@pie-lib/render-ui";
10
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
10
+ import { color as d } from "@pie-lib/render-ui";
11
11
  //#region src/line/common/line.tsx
12
12
  var f = (e, t) => {
13
13
  let { max: n } = t || {}, r = e.length;
@@ -18,10 +18,10 @@ var f = (e, t) => {
18
18
  }));
19
19
  }, p = o(t)(() => ({
20
20
  fill: "transparent",
21
- stroke: l.defaults.TERTIARY,
21
+ stroke: d.defaults.TERTIARY,
22
22
  strokeWidth: 3,
23
23
  transition: "stroke 200ms ease-in, stroke-width 200ms ease-in"
24
- })), m = o(class extends i.Component {
24
+ })), m = class extends i.Component {
25
25
  static propTypes = {
26
26
  onChange: a.func,
27
27
  value: a.number,
@@ -59,15 +59,15 @@ var f = (e, t) => {
59
59
  r[e].dragValue = n, this.setDragValue(r);
60
60
  };
61
61
  render() {
62
- let { graphProps: e, data: t, CustomDraggableComponent: a, defineChart: o, correctData: s } = this.props, { line: c, dragging: l } = this.state, { scale: m } = e, h = l ? c : f(t, e.domain);
63
- return /* @__PURE__ */ d(i.Fragment, { children: [/* @__PURE__ */ u(p, {
62
+ let { graphProps: e, data: t, CustomDraggableComponent: a, defineChart: o, correctData: s } = this.props, { line: c, dragging: d } = this.state, { scale: m } = e, h = d ? c : f(t, e.domain);
63
+ return /* @__PURE__ */ u(i.Fragment, { children: [/* @__PURE__ */ l(p, {
64
64
  data: h,
65
65
  x: (e) => m.x(e.x),
66
66
  y: (e) => m.y(e.dragValue === void 0 ? e.y : e.dragValue),
67
67
  className: "line"
68
68
  }), h && h.map((t, i) => {
69
69
  let c = o || t.interactive;
70
- return /* @__PURE__ */ u(c ? n : r, {
70
+ return /* @__PURE__ */ l(c ? n : r, {
71
71
  x: t.x,
72
72
  y: t.dragValue === void 0 ? t.y : t.dragValue,
73
73
  interactive: c,
@@ -83,12 +83,12 @@ var f = (e, t) => {
83
83
  }, `point-${t.x}-${i}`);
84
84
  })] });
85
85
  }
86
- })(() => ({ "& .line": {
86
+ }, h = o(m)(() => ({ "& .line": {
87
87
  fill: "transparent",
88
- stroke: l.defaults.TERTIARY,
88
+ stroke: d.defaults.TERTIARY,
89
89
  strokeWidth: 3,
90
90
  transition: "stroke 200ms ease-in, stroke-width 200ms ease-in"
91
- } })), h = class extends i.Component {
91
+ } })), g = class extends i.Component {
92
92
  static propTypes = {
93
93
  data: a.array,
94
94
  onChange: a.func,
@@ -104,11 +104,11 @@ var f = (e, t) => {
104
104
  };
105
105
  render() {
106
106
  let t = this.props;
107
- return /* @__PURE__ */ u(e, { children: /* @__PURE__ */ u(m, {
107
+ return /* @__PURE__ */ l(e, { children: /* @__PURE__ */ l(h, {
108
108
  ...t,
109
109
  onChange: this.changeLine
110
110
  }) });
111
111
  }
112
112
  };
113
113
  //#endregion
114
- export { h as default };
114
+ export { g as Line, g as default, m as RawLine };
@@ -1,39 +1,39 @@
1
- import e from "../node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js";
2
- import t from "../node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js";
1
+ import e from "../node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
2
+ import t from "../node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js";
3
3
  import { CorrectnessIndicator as n, SmallCorrectPointIndicator as r } from "../common/correctness-indicators.js";
4
4
  import { dataToXBand as i } from "../utils.js";
5
- import a from "./common/line.js";
5
+ import { Line as a } from "./common/line.js";
6
6
  import o, { useState as s } from "react";
7
7
  import c from "prop-types";
8
8
  import { styled as l } from "@mui/material/styles";
9
9
  import { types as u } from "@pie-lib/plot";
10
- import { color as d } from "@pie-lib/render-ui";
11
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
11
+ import { color as p } from "@pie-lib/render-ui";
12
12
  //#region src/line/line-cross.tsx
13
13
  var m = l(t)(() => ({
14
- stroke: d.defaults.TEXT,
14
+ stroke: p.defaults.TEXT,
15
15
  transition: "fill 200ms linear, height 200ms linear",
16
- "&.non-interactive": { stroke: d.disabled?.() || "#ccc" }
16
+ "&.non-interactive": { stroke: p.disabled?.() || "#ccc" }
17
17
  })), h = l(e)(({ correctness: e, interactive: t }) => ({
18
- stroke: d.defaults.TEXT,
18
+ stroke: p.defaults.TEXT,
19
19
  transition: "fill 200ms linear, height 200ms linear",
20
20
  ...e && !t && {
21
- fill: `${d.defaults.BLACK} !important`,
22
- stroke: `${d.defaults.BLACK} !important`
21
+ fill: `${p.defaults.BLACK} !important`,
22
+ stroke: `${p.defaults.BLACK} !important`
23
23
  },
24
- "&.non-interactive": { stroke: d.disabled?.() || "#ccc" }
24
+ "&.non-interactive": { stroke: p.disabled?.() || "#ccc" }
25
25
  })), g = l("circle")(() => ({
26
26
  height: "20px",
27
27
  fill: "transparent",
28
28
  stroke: "transparent"
29
29
  })), _ = (e) => {
30
30
  let { className: t, scale: i, x: a, y: o, r: c, correctness: l, interactive: u, correctData: _, label: v, ...y } = e, [b, x] = s(!1), S = c * 4, C = S / 2, w = i.x(a), T = i.y(o);
31
- return /* @__PURE__ */ p(h, {
31
+ return /* @__PURE__ */ f(h, {
32
32
  className: t,
33
33
  correctness: l,
34
34
  interactive: u,
35
35
  children: [
36
- /* @__PURE__ */ f(m, {
36
+ /* @__PURE__ */ d(m, {
37
37
  data: [{
38
38
  x: i.x(a) - c,
39
39
  y: i.y(o) + c
@@ -46,7 +46,7 @@ var m = l(t)(() => ({
46
46
  strokeWidth: 5,
47
47
  style: { pointerEvents: "none" }
48
48
  }, `point-${a}-${o}-1`),
49
- /* @__PURE__ */ f(m, {
49
+ /* @__PURE__ */ d(m, {
50
50
  data: [{
51
51
  x: i.x(a) - c,
52
52
  y: i.y(o) - c
@@ -59,17 +59,17 @@ var m = l(t)(() => ({
59
59
  strokeWidth: 5,
60
60
  style: { pointerEvents: "none" }
61
61
  }, `point-${a}-${o}-2`),
62
- b && /* @__PURE__ */ f("rect", {
62
+ b && /* @__PURE__ */ d("rect", {
63
63
  x: w - C,
64
64
  y: T - C,
65
65
  width: S,
66
66
  height: S,
67
- stroke: d.defaults.BORDER_GRAY,
67
+ stroke: p.defaults.BORDER_GRAY,
68
68
  fill: "none",
69
69
  strokeWidth: 2,
70
70
  pointerEvents: "none"
71
71
  }),
72
- /* @__PURE__ */ f(g, {
72
+ /* @__PURE__ */ d(g, {
73
73
  cx: w,
74
74
  cy: T,
75
75
  r: c * 2,
@@ -77,7 +77,7 @@ var m = l(t)(() => ({
77
77
  onMouseLeave: () => x(!1),
78
78
  ...y
79
79
  }),
80
- /* @__PURE__ */ f(n, {
80
+ /* @__PURE__ */ d(n, {
81
81
  scale: i,
82
82
  x: a,
83
83
  y: o,
@@ -85,7 +85,7 @@ var m = l(t)(() => ({
85
85
  correctness: l,
86
86
  interactive: u
87
87
  }),
88
- /* @__PURE__ */ f(r, {
88
+ /* @__PURE__ */ d(r, {
89
89
  scale: i,
90
90
  x: a,
91
91
  r: c,
@@ -118,7 +118,7 @@ var v = class extends o.Component {
118
118
  };
119
119
  render() {
120
120
  let e = this.props, { data: t, graphProps: n } = e, { scale: r = {}, size: o = {} } = n || {}, s = i(r.x, t, o.width, "lineCross");
121
- return /* @__PURE__ */ f(a, {
121
+ return /* @__PURE__ */ d(a, {
122
122
  ...e,
123
123
  xBand: s,
124
124
  CustomDraggableComponent: _
@@ -130,4 +130,4 @@ var v = class extends o.Component {
130
130
  name: "Line Cross"
131
131
  });
132
132
  //#endregion
133
- export { y as default };
133
+ export { v as LineCross, y as default };