@pie-lib/charting 7.0.4-next.32 → 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 (140) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +2 -5
  2. package/dist/actions-button.js +8 -8
  3. package/dist/axes.js +35 -35
  4. package/dist/bars/common/bars.js +13 -13
  5. package/dist/chart-setup.js +19 -19
  6. package/dist/common/correctness-indicators.js +18 -18
  7. package/dist/common/drag-handle.js +20 -20
  8. package/dist/grid.js +11 -11
  9. package/dist/key-legend.js +12 -12
  10. package/dist/line/common/drag-handle.js +12 -12
  11. package/dist/line/common/line.js +10 -10
  12. package/dist/line/line-cross.js +19 -19
  13. package/dist/line/line-dot.js +10 -10
  14. package/dist/mark-label.js +8 -8
  15. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js +67 -0
  16. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisBottom.js +29 -0
  17. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisLeft.js +30 -0
  18. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +66 -0
  19. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/axis/Ticks.js +39 -0
  20. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  21. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  22. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +13 -0
  23. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  24. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  25. package/dist/node_modules/.bun/@visx_axis@4.0.0_d84c32d47042070f/node_modules/@visx/axis/esm/utils/getTickPosition.js +14 -0
  26. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridColumns.js +46 -0
  27. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/grids/GridRows.js +46 -0
  28. package/dist/node_modules/.bun/@visx_grid@4.0.0_d84c32d47042070f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  29. package/dist/node_modules/.bun/@visx_group@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js +17 -0
  30. package/dist/node_modules/.bun/@visx_point@4.0.0/node_modules/@visx/point/esm/Point.js +20 -0
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/reverse.js +9 -0
  42. 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
  43. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/operators/scaleOperator.js +3 -5
  44. 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
  45. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/operators/zero.js +9 -0
  46. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/scales/band.js +2 -2
  47. package/dist/node_modules/.bun/{@visx_scale@3.12.0 → @visx_scale@4.0.0}/node_modules/@visx/scale/esm/scales/point.js +2 -2
  48. 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
  49. 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
  50. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js +7 -0
  51. 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
  52. package/dist/node_modules/.bun/@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  53. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Bar.js +15 -0
  54. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Circle.js +15 -0
  55. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/Line.js +27 -0
  56. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/shapes/LinePath.js +24 -0
  57. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
  58. package/dist/node_modules/.bun/@visx_shape@4.0.0_d84c32d47042070f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
  59. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/Text.js +27 -0
  60. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/hooks/useText.js +68 -0
  61. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/getStringWidth.js +19 -0
  62. package/dist/node_modules/.bun/@visx_text@4.0.0_d84c32d47042070f/node_modules/@visx/text/esm/util/memoize.js +13 -0
  63. 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
  64. 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
  65. package/dist/node_modules/.bun/@visx_vendor@4.0.0/node_modules/@visx/vendor/esm/d3-shape.js +8 -0
  66. 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
  67. package/dist/plot/common/plot.js +23 -23
  68. package/dist/plot/dot.js +8 -8
  69. package/dist/plot/line.js +10 -10
  70. package/dist/utils.js +2 -2
  71. package/package.json +11 -11
  72. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
  73. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +0 -46
  74. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +0 -47
  75. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
  76. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
  77. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  78. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  79. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  80. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  81. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  82. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  83. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  84. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  85. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  86. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
  87. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  88. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js +0 -9
  89. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/zero.js +0 -9
  90. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  91. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  92. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js +0 -29
  93. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js +0 -29
  94. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
  95. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -50
  96. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +0 -9
  97. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +0 -6
  98. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
  99. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  100. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  101. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  102. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
  103. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
  104. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
  105. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
  106. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
  107. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
  108. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
  109. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
  110. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
  111. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
  112. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
  113. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
  114. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
  115. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
  116. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
  117. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
  118. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
  119. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
  120. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
  121. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
  122. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
  123. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
  124. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
  125. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
  126. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
  127. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
  128. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
  129. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
  130. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
  131. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
  132. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
  133. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
  134. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
  135. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
  136. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
  137. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
  138. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
  139. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
  140. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
@@ -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
  });
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,
@@ -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
@@ -4,8 +4,8 @@ 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,7 +18,7 @@ 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
24
  })), m = class extends i.Component {
@@ -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,
@@ -85,7 +85,7 @@ var f = (e, t) => {
85
85
  }
86
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
91
  } })), g = class extends i.Component {
@@ -104,7 +104,7 @@ var f = (e, t) => {
104
104
  };
105
105
  render() {
106
106
  let t = this.props;
107
- return /* @__PURE__ */ u(e, { children: /* @__PURE__ */ u(h, {
107
+ return /* @__PURE__ */ l(e, { children: /* @__PURE__ */ l(h, {
108
108
  ...t,
109
109
  onChange: this.changeLine
110
110
  }) });
@@ -1,5 +1,5 @@
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
5
  import { Line as a } from "./common/line.js";
@@ -7,33 +7,33 @@ 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: _
@@ -5,8 +5,8 @@ import i from "react";
5
5
  import a from "prop-types";
6
6
  import { styled as o } from "@mui/material/styles";
7
7
  import { types as s } from "@pie-lib/plot";
8
- import { color as c } from "@pie-lib/render-ui";
9
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { color as u } from "@pie-lib/render-ui";
10
10
  //#region src/line/line-dot.tsx
11
11
  var d = o("circle")(() => ({})), f = o("circle")(() => ({
12
12
  height: "20px",
@@ -15,13 +15,13 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
15
15
  pointerEvents: "auto"
16
16
  })), p = ({ scale: n, x: r, y: a, r: o, correctness: s, interactive: p, correctData: m, label: h, ...g }) => {
17
17
  let [_, v] = i.useState(!1), y = !s && p;
18
- return /* @__PURE__ */ u("g", {
18
+ return /* @__PURE__ */ l("g", {
19
19
  onMouseEnter: () => v(!0),
20
20
  onMouseLeave: () => v(!1),
21
21
  onTouchStart: () => v(!0),
22
22
  onTouchEnd: () => v(!1),
23
23
  children: [
24
- /* @__PURE__ */ l(f, {
24
+ /* @__PURE__ */ c(f, {
25
25
  cx: n.x(r),
26
26
  cy: n.y(a),
27
27
  r: o * 3,
@@ -29,7 +29,7 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
29
29
  onMouseLeave: () => v(!1),
30
30
  ...g
31
31
  }),
32
- /* @__PURE__ */ l(d, {
32
+ /* @__PURE__ */ c(d, {
33
33
  cx: n.x(r),
34
34
  cy: n.y(a),
35
35
  r: o,
@@ -37,7 +37,7 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
37
37
  interactive: p,
38
38
  ...g
39
39
  }),
40
- /* @__PURE__ */ l(e, {
40
+ /* @__PURE__ */ c(e, {
41
41
  scale: n,
42
42
  x: r,
43
43
  y: a,
@@ -45,7 +45,7 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
45
45
  correctness: s,
46
46
  interactive: p
47
47
  }),
48
- /* @__PURE__ */ l(t, {
48
+ /* @__PURE__ */ c(t, {
49
49
  scale: n,
50
50
  x: r,
51
51
  r: o,
@@ -53,12 +53,12 @@ var d = o("circle")(() => ({})), f = o("circle")(() => ({
53
53
  correctData: m,
54
54
  label: h
55
55
  }),
56
- _ && y && /* @__PURE__ */ l("rect", {
56
+ _ && y && /* @__PURE__ */ c("rect", {
57
57
  x: n.x(r) - o * 2,
58
58
  y: n.y(a) - o * 2,
59
59
  width: o * 4,
60
60
  height: o * 4,
61
- stroke: c.defaults.BORDER_GRAY,
61
+ stroke: u.defaults.BORDER_GRAY,
62
62
  strokeWidth: "1",
63
63
  fill: "none"
64
64
  })
@@ -86,7 +86,7 @@ var m = class extends i.Component {
86
86
  };
87
87
  render() {
88
88
  let e = this.props, { data: t, graphProps: i } = e, { scale: a = {}, size: o = {} } = i || {}, s = n(a.x, t, o.width, "lineDot");
89
- return /* @__PURE__ */ l(r, {
89
+ return /* @__PURE__ */ c(r, {
90
90
  ...e,
91
91
  xBand: s,
92
92
  CustomDraggableComponent: p
@@ -5,8 +5,8 @@ import { useCallback as a, useEffect as o, useRef as s, useState as c } from "re
5
5
  import l from "prop-types";
6
6
  import { styled as u } from "@mui/material/styles";
7
7
  import { types as d } from "@pie-lib/plot";
8
- import { color as f } from "@pie-lib/render-ui";
9
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
8
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
9
+ import { color as m } from "@pie-lib/render-ui";
10
10
  import { renderMath as h } from "@pie-element/shared-math-rendering-mathjax";
11
11
  //#region src/mark-label.tsx
12
12
  var g = u("div")({
@@ -29,7 +29,7 @@ var _ = u("div")(({ theme: e }) => ({
29
29
  textAlign: "center",
30
30
  fontSize: e.typography.fontSize + 2,
31
31
  fontFamily: e.typography.fontFamily,
32
- color: f.primaryDark(),
32
+ color: m.primaryDark(),
33
33
  paddingTop: e.typography.fontSize / 2,
34
34
  "&.disabledMarkLabel": {
35
35
  ...r("color"),
@@ -50,7 +50,7 @@ function y(e) {
50
50
  if (v(e)) return i[0] && i[1] && (r = i[0]), a = `\\(${r}\\frac{${n[0]}}{${n[1]}}\\)`, a;
51
51
  }
52
52
  var b = (n) => {
53
- let [r, i] = c(null), l = a((e) => i(e), null), { mark: u = {}, disabled: d, inputRef: f, barWidth: v, rotate: b, correctness: x, autoFocus: S, error: C, isHiddenLabel: w, limitCharacters: T, correctnessIndicator: E } = n, [D, O] = c(u.label), [k, A] = c(y(u.label)), [j, M] = c(!1), N = s(null), P = (e) => {
53
+ let [r, i] = c(null), l = a((e) => i(e), null), { mark: u = {}, disabled: d, inputRef: m, barWidth: v, rotate: b, correctness: x, autoFocus: S, error: C, isHiddenLabel: w, limitCharacters: T, correctnessIndicator: E } = n, [D, O] = c(u.label), [k, A] = c(y(u.label)), [j, M] = c(!1), N = s(null), P = (e) => {
54
54
  T && e.target.value && e.target.value.length > 20 || O(e.target.value);
55
55
  }, F = () => j === !1 && k !== void 0, I = (e) => {
56
56
  A(y(u.label)), M(!1), n.onChange(e.target.value);
@@ -63,9 +63,9 @@ var b = (n) => {
63
63
  }, [u.label]), o(() => {
64
64
  let e = N.current;
65
65
  e && k && (e.innerHTML = k, h(e));
66
- }, [D, k]), /* @__PURE__ */ m(g, { children: [E, F() ? /* @__PURE__ */ p(_, {
66
+ }, [D, k]), /* @__PURE__ */ p(g, { children: [E, F() ? /* @__PURE__ */ f(_, {
67
67
  ref: (e) => {
68
- N.current = e, typeof f == "function" && f(e);
68
+ N.current = e, typeof m == "function" && m(e);
69
69
  },
70
70
  className: e({
71
71
  disabledMarkLabel: d,
@@ -82,9 +82,9 @@ var b = (n) => {
82
82
  visibility: w ? "hidden" : "unset",
83
83
  marginTop: E ? "24px" : "0"
84
84
  }
85
- }) : /* @__PURE__ */ p(t, {
85
+ }) : /* @__PURE__ */ f(t, {
86
86
  inputRef: (e) => {
87
- l(e), typeof f == "function" && f(e);
87
+ l(e), typeof m == "function" && m(e);
88
88
  },
89
89
  name: "mark-label-input",
90
90
  autoFocus: j || S,
@@ -0,0 +1,67 @@
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@4.0.0_d84c32d47042070f/node_modules/@visx/group/esm/Group.js";
4
+ import r from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/coerceNumber.js";
5
+ import i from "../../../../../../@visx_scale@4.0.0/node_modules/@visx/scale/esm/utils/getTicks.js";
6
+ import a from "../constants/orientation.js";
7
+ import o from "./AxisRenderer.js";
8
+ import s from "../utils/getTickPosition.js";
9
+ import c from "../utils/getTickFormatter.js";
10
+ import l from "../utils/createPoint.js";
11
+ import u from "../utils/getAxisRangePaddingConfig.js";
12
+ import { jsx as d } from "react/jsx-runtime";
13
+ //#region ../../../node_modules/.bun/@visx+axis@4.0.0+d84c32d47042070f/node_modules/@visx/axis/esm/axis/Axis.js
14
+ var f = /* @__PURE__ */ e(t());
15
+ function p(e) {
16
+ let { children: t = o, axisClassName: p, hideAxisLine: m = !1, hideTicks: h = !1, hideZero: g = !1, innerRef: _, left: v = 0, numTicks: y = 10, orientation: b = a.bottom, rangePadding: x = 0, scale: S, tickFormat: C, tickLength: w = 8, tickValues: T, top: E = 0, ...D } = e, O = C ?? c(S), k = b === a.left, A = b === a.top, j = A || b === a.bottom, M = s(S), N = k || A ? -1 : 1, P = S.range(), F = u(x), I = l({
17
+ x: Number(P[0]) + .5 - F.start,
18
+ y: 0
19
+ }, j), L = l({
20
+ x: Number(P[P.length - 1]) + .5 + F.end,
21
+ y: 0
22
+ }, j), R = (T ?? i(S, y)).filter((e) => !g || e !== 0 && e !== "0").map((e, t) => ({
23
+ value: e,
24
+ index: t
25
+ })), z = R.map((e) => {
26
+ let { value: t, index: n } = e, i = r(M(t));
27
+ return {
28
+ value: t,
29
+ index: n,
30
+ from: l({
31
+ x: i,
32
+ y: 0
33
+ }, j),
34
+ to: l({
35
+ x: i,
36
+ y: w * N
37
+ }, j),
38
+ formattedValue: O(t, n, R)
39
+ };
40
+ });
41
+ return /*#__PURE__*/ d(n, {
42
+ className: (0, f.default)("visx-axis", p),
43
+ innerRef: _,
44
+ top: E,
45
+ left: v,
46
+ children: t({
47
+ ...D,
48
+ axisFromPoint: I,
49
+ axisToPoint: L,
50
+ hideAxisLine: m,
51
+ hideTicks: h,
52
+ hideZero: g,
53
+ horizontal: j,
54
+ numTicks: y,
55
+ orientation: b,
56
+ rangePadding: x,
57
+ scale: S,
58
+ tickFormat: O,
59
+ tickLength: w,
60
+ tickPosition: M,
61
+ tickSign: N,
62
+ ticks: z
63
+ })
64
+ });
65
+ }
66
+ //#endregion
67
+ export { p as default };