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

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 (272) hide show
  1. package/CHANGELOG.json +17 -0
  2. package/CHANGELOG.md +1116 -0
  3. package/LICENSE.md +5 -0
  4. package/lib/actions-button.js +145 -0
  5. package/lib/actions-button.js.map +1 -0
  6. package/lib/axes.js +643 -0
  7. package/lib/axes.js.map +1 -0
  8. package/lib/bars/bar.js +58 -0
  9. package/lib/bars/bar.js.map +1 -0
  10. package/lib/bars/common/bars.js +277 -0
  11. package/lib/bars/common/bars.js.map +1 -0
  12. package/lib/bars/common/correct-check-icon.js +54 -0
  13. package/lib/bars/common/correct-check-icon.js.map +1 -0
  14. package/lib/bars/histogram.js +59 -0
  15. package/lib/bars/histogram.js.map +1 -0
  16. package/lib/chart-setup.js +382 -0
  17. package/lib/chart-setup.js.map +1 -0
  18. package/lib/chart-type.js +80 -0
  19. package/lib/chart-type.js.map +1 -0
  20. package/lib/chart-types.js +22 -0
  21. package/lib/chart-types.js.map +1 -0
  22. package/lib/chart.js +384 -0
  23. package/lib/chart.js.map +1 -0
  24. package/lib/common/correctness-indicators.js +156 -0
  25. package/lib/common/correctness-indicators.js.map +1 -0
  26. package/lib/common/drag-handle.js +160 -0
  27. package/lib/common/drag-handle.js.map +1 -0
  28. package/lib/common/drag-icon.js +52 -0
  29. package/lib/common/drag-icon.js.map +1 -0
  30. package/lib/common/styles.js +22 -0
  31. package/lib/common/styles.js.map +1 -0
  32. package/lib/grid.js +112 -0
  33. package/lib/grid.js.map +1 -0
  34. package/lib/index.js +42 -0
  35. package/lib/index.js.map +1 -0
  36. package/lib/key-legend.js +87 -0
  37. package/lib/key-legend.js.map +1 -0
  38. package/lib/line/common/drag-handle.js +146 -0
  39. package/lib/line/common/drag-handle.js.map +1 -0
  40. package/lib/line/common/line.js +214 -0
  41. package/lib/line/common/line.js.map +1 -0
  42. package/lib/line/line-cross.js +214 -0
  43. package/lib/line/line-cross.js.map +1 -0
  44. package/lib/line/line-dot.js +158 -0
  45. package/lib/line/line-dot.js.map +1 -0
  46. package/lib/mark-label.js +237 -0
  47. package/lib/mark-label.js.map +1 -0
  48. package/lib/plot/common/plot.js +349 -0
  49. package/lib/plot/common/plot.js.map +1 -0
  50. package/lib/plot/dot.js +110 -0
  51. package/lib/plot/dot.js.map +1 -0
  52. package/lib/plot/line.js +140 -0
  53. package/lib/plot/line.js.map +1 -0
  54. package/lib/tool-menu.js +106 -0
  55. package/lib/tool-menu.js.map +1 -0
  56. package/lib/utils.js +189 -0
  57. package/lib/utils.js.map +1 -0
  58. package/package.json +28 -39
  59. package/src/__tests__/actions-button.test.jsx +280 -0
  60. package/src/__tests__/axes.test.jsx +667 -0
  61. package/src/__tests__/chart-setup.test.jsx +532 -0
  62. package/src/__tests__/chart-type.test.jsx +23 -0
  63. package/src/__tests__/chart.test.jsx +86 -0
  64. package/src/__tests__/grid.test.jsx +37 -0
  65. package/src/__tests__/key-legend.test.jsx +223 -0
  66. package/src/__tests__/mark-label.test.jsx +33 -0
  67. package/src/__tests__/tool-menu.test.jsx +522 -0
  68. package/src/__tests__/utils.js +36 -0
  69. package/src/__tests__/utils.test.js +100 -0
  70. package/src/actions-button.jsx +115 -0
  71. package/src/axes.jsx +594 -0
  72. package/src/bars/__tests__/bar.test.jsx +45 -0
  73. package/src/bars/__tests__/histogram.test.jsx +45 -0
  74. package/src/bars/__tests__/utils.js +30 -0
  75. package/src/bars/bar.js +28 -0
  76. package/src/bars/common/__tests__/bars.test.jsx +68 -0
  77. package/src/bars/common/__tests__/utils.js +30 -0
  78. package/src/bars/common/bars.jsx +249 -0
  79. package/src/bars/common/correct-check-icon.jsx +25 -0
  80. package/src/bars/histogram.js +28 -0
  81. package/src/chart-setup.jsx +356 -0
  82. package/src/chart-type.js +59 -0
  83. package/src/chart-types.js +8 -0
  84. package/src/chart.jsx +357 -0
  85. package/src/common/__tests__/correctness-indicators.test.jsx +720 -0
  86. package/src/common/__tests__/drag-handle.test.jsx +58 -0
  87. package/src/common/__tests__/utils.js +30 -0
  88. package/src/common/correctness-indicators.jsx +128 -0
  89. package/src/common/drag-handle.jsx +125 -0
  90. package/src/common/drag-icon.jsx +36 -0
  91. package/src/common/styles.js +19 -0
  92. package/src/grid.jsx +80 -0
  93. package/src/index.js +7 -0
  94. package/src/key-legend.jsx +77 -0
  95. package/src/line/__tests__/line-cross.test.jsx +463 -0
  96. package/src/line/__tests__/line-dot.test.jsx +41 -0
  97. package/src/line/__tests__/utils.js +36 -0
  98. package/src/line/common/__tests__/drag-handle.test.jsx +62 -0
  99. package/src/line/common/__tests__/line.test.jsx +79 -0
  100. package/src/line/common/__tests__/utils.js +30 -0
  101. package/src/line/common/drag-handle.jsx +114 -0
  102. package/src/line/common/line.jsx +171 -0
  103. package/src/line/line-cross.js +144 -0
  104. package/src/line/line-dot.js +111 -0
  105. package/src/mark-label.jsx +238 -0
  106. package/src/plot/__tests__/dot.test.jsx +344 -0
  107. package/src/plot/__tests__/line.test.jsx +375 -0
  108. package/src/plot/__tests__/utils.js +30 -0
  109. package/src/plot/common/__tests__/plot.test.jsx +69 -0
  110. package/src/plot/common/__tests__/utils.js +30 -0
  111. package/src/plot/common/plot.jsx +358 -0
  112. package/src/plot/dot.js +74 -0
  113. package/src/plot/line.js +98 -0
  114. package/src/tool-menu.jsx +85 -0
  115. package/src/utils.js +201 -0
  116. package/dist/_virtual/_rolldown/runtime.js +0 -23
  117. package/dist/actions-button.d.ts +0 -26
  118. package/dist/actions-button.js +0 -84
  119. package/dist/autosize-input.d.ts +0 -10
  120. package/dist/autosize-input.js +0 -66
  121. package/dist/axes.d.ts +0 -84
  122. package/dist/axes.js +0 -376
  123. package/dist/bars/bar.d.ts +0 -47
  124. package/dist/bars/bar.js +0 -27
  125. package/dist/bars/common/bars.d.ts +0 -98
  126. package/dist/bars/common/bars.js +0 -174
  127. package/dist/bars/common/correct-check-icon.d.ts +0 -18
  128. package/dist/bars/common/correct-check-icon.js +0 -50
  129. package/dist/bars/histogram.d.ts +0 -47
  130. package/dist/bars/histogram.js +0 -28
  131. package/dist/chart-setup.d.ts +0 -29
  132. package/dist/chart-setup.js +0 -231
  133. package/dist/chart-type.d.ts +0 -32
  134. package/dist/chart-type.js +0 -68
  135. package/dist/chart-types.d.ts +0 -41
  136. package/dist/chart-types.js +0 -17
  137. package/dist/chart.d.ts +0 -88
  138. package/dist/chart.js +0 -250
  139. package/dist/common/correctness-indicators.d.ts +0 -70
  140. package/dist/common/correctness-indicators.js +0 -106
  141. package/dist/common/drag-handle.d.ts +0 -129
  142. package/dist/common/drag-handle.js +0 -120
  143. package/dist/common/drag-icon.d.ts +0 -23
  144. package/dist/common/drag-icon.js +0 -45
  145. package/dist/common/styles.d.ts +0 -23
  146. package/dist/common/styles.js +0 -17
  147. package/dist/grid.d.ts +0 -45
  148. package/dist/grid.js +0 -56
  149. package/dist/index.d.ts +0 -14
  150. package/dist/index.js +0 -6
  151. package/dist/key-legend.d.ts +0 -19
  152. package/dist/key-legend.js +0 -46
  153. package/dist/line/common/drag-handle.d.ts +0 -120
  154. package/dist/line/common/drag-handle.js +0 -92
  155. package/dist/line/common/line.d.ts +0 -96
  156. package/dist/line/common/line.js +0 -114
  157. package/dist/line/line-cross.d.ts +0 -47
  158. package/dist/line/line-cross.js +0 -133
  159. package/dist/line/line-dot.d.ts +0 -47
  160. package/dist/line/line-dot.js +0 -101
  161. package/dist/mark-label.d.ts +0 -55
  162. package/dist/mark-label.js +0 -138
  163. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
  164. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisBottom.js +0 -46
  165. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisLeft.js +0 -47
  166. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
  167. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
  168. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  169. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  170. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  171. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  172. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  173. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  174. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  175. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  176. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  177. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
  178. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  179. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/align.js +0 -6
  180. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/base.js +0 -6
  181. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/clamp.js +0 -6
  182. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/constant.js +0 -6
  183. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/domain.js +0 -6
  184. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/exponent.js +0 -6
  185. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/interpolate.js +0 -10
  186. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/nice.js +0 -37
  187. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/padding.js +0 -6
  188. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/range.js +0 -6
  189. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/reverse.js +0 -9
  190. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/round.js +0 -7
  191. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/scaleOperator.js +0 -58
  192. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/unknown.js +0 -6
  193. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/operators/zero.js +0 -9
  194. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/band.js +0 -9
  195. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/scales/point.js +0 -9
  196. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +0 -10
  197. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/createColorInterpolator.js +0 -29
  198. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  199. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/isUtcScale.js +0 -7
  200. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  201. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Bar.js +0 -29
  202. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Circle.js +0 -29
  203. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
  204. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -50
  205. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +0 -9
  206. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +0 -6
  207. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
  208. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  209. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  210. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  211. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-interpolate.js +0 -8
  212. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-scale.js +0 -8
  213. package/dist/node_modules/.bun/@visx_vendor@3.12.0/node_modules/@visx/vendor/esm/d3-time.js +0 -8
  214. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +0 -32
  215. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -33
  216. package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +0 -32
  217. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -16
  218. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -21
  219. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -21
  220. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Map.js +0 -10
  221. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -21
  222. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -9
  223. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -14
  224. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -15
  225. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -16
  226. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -9
  227. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -8
  228. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -14
  229. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -15
  230. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -19
  231. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -11
  232. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -13
  233. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -12
  234. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -18
  235. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -14
  236. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -14
  237. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -12
  238. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -16
  239. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -11
  240. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -14
  241. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -14
  242. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -13
  243. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -14
  244. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -19
  245. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -14
  246. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -13
  247. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -13
  248. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -14
  249. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -9
  250. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -12
  251. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_root.js +0 -10
  252. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -20
  253. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js +0 -11
  254. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -16
  255. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/isObject.js +0 -12
  256. package/dist/node_modules/.bun/lodash@4.17.21/node_modules/lodash/memoize.js +0 -20
  257. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +0 -37
  258. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +0 -509
  259. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +0 -108
  260. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +0 -31
  261. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +0 -45
  262. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +0 -49
  263. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +0 -34
  264. package/dist/plot/common/plot.d.ts +0 -103
  265. package/dist/plot/common/plot.js +0 -227
  266. package/dist/plot/dot.d.ts +0 -47
  267. package/dist/plot/dot.js +0 -62
  268. package/dist/plot/line.d.ts +0 -47
  269. package/dist/plot/line.js +0 -84
  270. package/dist/tool-menu.d.ts +0 -31
  271. package/dist/utils.d.ts +0 -39
  272. package/dist/utils.js +0 -101
@@ -1,129 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/charting/src/common/drag-handle.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
- export declare const DragHandle: {
12
- ({ x, y, width, graphProps, interactive, isHovered, correctness, isPlot, ...rest }: {
13
- [x: string]: any;
14
- x: any;
15
- y: any;
16
- width: any;
17
- graphProps: any;
18
- interactive: any;
19
- isHovered: any;
20
- correctness: any;
21
- isPlot: any;
22
- }): React.JSX.Element;
23
- propTypes: {
24
- x: PropTypes.Validator<number>;
25
- y: PropTypes.Validator<number>;
26
- width: PropTypes.Requireable<number>;
27
- graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
28
- scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
29
- x: PropTypes.Validator<(...args: any[]) => any>;
30
- y: PropTypes.Validator<(...args: any[]) => any>;
31
- }>>>;
32
- snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
33
- x: PropTypes.Validator<(...args: any[]) => any>;
34
- y: PropTypes.Validator<(...args: any[]) => any>;
35
- }>>>;
36
- domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
37
- min: PropTypes.Validator<number>;
38
- max: PropTypes.Validator<number>;
39
- step: PropTypes.Requireable<number>;
40
- }>>>;
41
- range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
42
- min: PropTypes.Validator<number>;
43
- max: PropTypes.Validator<number>;
44
- step: PropTypes.Requireable<number>;
45
- }>>>;
46
- size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
47
- width: PropTypes.Validator<number>;
48
- height: PropTypes.Validator<number>;
49
- }>>>;
50
- }>>>;
51
- interactive: PropTypes.Requireable<boolean>;
52
- isHovered: PropTypes.Requireable<boolean>;
53
- correctness: PropTypes.Requireable<PropTypes.InferProps<{
54
- value: PropTypes.Requireable<string>;
55
- label: PropTypes.Requireable<string>;
56
- }>>;
57
- isPlot: PropTypes.Requireable<boolean>;
58
- };
59
- };
60
- export declare const D: {
61
- new (props: any): {
62
- grid: any;
63
- onStart: any;
64
- position: any;
65
- tiny: any;
66
- getScaledBounds: any;
67
- getClientPoint: any;
68
- skipDragOutsideOfBounds: any;
69
- onDrag: any;
70
- getDelta: any;
71
- applyDelta: any;
72
- onStop: any;
73
- render(): React.JSX.Element;
74
- context: unknown;
75
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
76
- forceUpdate(callback?: (() => void) | undefined): void;
77
- readonly props: Readonly<{}>;
78
- state: Readonly<{}>;
79
- refs: {
80
- [key: string]: React.ReactInstance;
81
- };
82
- componentDidMount?(): void;
83
- shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
84
- componentWillUnmount?(): void;
85
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
86
- getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
87
- componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
88
- componentWillMount?(): void;
89
- UNSAFE_componentWillMount?(): void;
90
- componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
91
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
92
- componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
93
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
94
- };
95
- propTypes: {
96
- disabled: PropTypes.Requireable<boolean>;
97
- onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
98
- onDrag: PropTypes.Requireable<(...args: any[]) => any>;
99
- onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
100
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
101
- onMove: PropTypes.Requireable<(...args: any[]) => any>;
102
- graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
103
- scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
104
- x: PropTypes.Validator<(...args: any[]) => any>;
105
- y: PropTypes.Validator<(...args: any[]) => any>;
106
- }>>>;
107
- snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
108
- x: PropTypes.Validator<(...args: any[]) => any>;
109
- y: PropTypes.Validator<(...args: any[]) => any>;
110
- }>>>;
111
- domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
112
- min: PropTypes.Validator<number>;
113
- max: PropTypes.Validator<number>;
114
- step: PropTypes.Requireable<number>;
115
- }>>>;
116
- range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
117
- min: PropTypes.Validator<number>;
118
- max: PropTypes.Validator<number>;
119
- step: PropTypes.Requireable<number>;
120
- }>>>;
121
- size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
122
- width: PropTypes.Validator<number>;
123
- height: PropTypes.Validator<number>;
124
- }>>>;
125
- }>>>;
126
- };
127
- contextType?: React.Context<any> | undefined;
128
- };
129
- export default D;
@@ -1,120 +0,0 @@
1
- import { getScale as e } from "../utils.js";
2
- import t from "./drag-icon.js";
3
- import "react";
4
- import n from "prop-types";
5
- import { styled as r } from "@mui/material/styles";
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";
9
- import u from "@mui/icons-material/Check";
10
- import d from "@mui/icons-material/Close";
11
- //#region src/common/drag-handle.tsx
12
- var f = r("svg")(() => ({ overflow: "visible !important" })), p = r("ellipse")(() => ({
13
- fill: "transparent",
14
- clipPath: "polygon(50% 0%, 100% 0%, 100% 50%, 0% 50%, 0% 0%)"
15
- })), m = r(u)(() => ({
16
- backgroundColor: s.correct(),
17
- borderRadius: "16px",
18
- color: s.defaults.WHITE,
19
- fontSize: "16px",
20
- padding: "2px",
21
- border: `4px solid ${s.defaults.WHITE}`,
22
- width: "16px",
23
- height: "16px",
24
- boxSizing: "unset"
25
- })), h = r(d)(() => ({
26
- backgroundColor: s.incorrectWithIcon(),
27
- borderRadius: "16px",
28
- color: s.defaults.WHITE,
29
- fontSize: "16px",
30
- padding: "2px",
31
- border: `4px solid ${s.defaults.WHITE}`,
32
- width: "16px",
33
- height: "16px",
34
- boxSizing: "unset"
35
- })), g = ({ x: n, y: r, width: i, graphProps: a, interactive: o, isHovered: u, correctness: d, isPlot: g, ..._ }) => {
36
- let { scale: v } = a, y = e(i)?.scale;
37
- return /* @__PURE__ */ l(f, {
38
- x: n,
39
- y: v.y(r) - 10,
40
- width: i,
41
- overflow: "visible",
42
- children: [
43
- u && !d && o && /* @__PURE__ */ c(t, {
44
- width: i,
45
- scaleValue: y,
46
- color: s.defaults.BORDER_GRAY
47
- }),
48
- o && !d && /* @__PURE__ */ c(p, {
49
- cx: i / 2,
50
- cy: 10,
51
- rx: i / 2,
52
- ry: 66,
53
- ..._
54
- }),
55
- /* @__PURE__ */ c("defs", { children: /* @__PURE__ */ l("filter", {
56
- id: "bottomShadow",
57
- x: "0",
58
- y: "0",
59
- width: "140%",
60
- height: "140%",
61
- children: [
62
- /* @__PURE__ */ c("feGaussianBlur", {
63
- in: "SourceAlpha",
64
- stdDeviation: "3"
65
- }),
66
- /* @__PURE__ */ c("feOffset", {
67
- dx: "0",
68
- dy: "5",
69
- result: "offsetblur"
70
- }),
71
- /* @__PURE__ */ c("feFlood", { floodColor: "#00000033" }),
72
- /* @__PURE__ */ c("feComposite", {
73
- in2: "offsetblur",
74
- operator: "in"
75
- }),
76
- /* @__PURE__ */ l("feMerge", { children: [/* @__PURE__ */ c("feMergeNode", {}), /* @__PURE__ */ c("feMergeNode", { in: "SourceGraphic" })] })
77
- ]
78
- }) }),
79
- d && o && !g && /* @__PURE__ */ c("foreignObject", {
80
- x: i / 2 - 14,
81
- y: 0,
82
- width: 40,
83
- height: 40,
84
- children: d.value === "correct" ? /* @__PURE__ */ c(m, { title: d.label }) : /* @__PURE__ */ c(h, { title: d.label })
85
- })
86
- ]
87
- });
88
- };
89
- g.propTypes = {
90
- x: n.number.isRequired,
91
- y: n.number.isRequired,
92
- width: n.number,
93
- graphProps: a.GraphPropsType.isRequired,
94
- interactive: n.bool,
95
- isHovered: n.bool,
96
- correctness: n.shape({
97
- value: n.string,
98
- label: n.string
99
- }),
100
- isPlot: n.bool
101
- };
102
- var _ = g, v = i({
103
- axis: "y",
104
- fromDelta: (e, t) => (t.x = 0, o.point(e).add(o.point(t)).y),
105
- bounds: (e, { domain: t, range: n }) => {
106
- let r = {
107
- left: 0,
108
- top: e.y,
109
- bottom: e.y,
110
- right: 0
111
- };
112
- return o.bounds(r, t, n);
113
- },
114
- anchorPoint: (e) => ({
115
- x: e.x,
116
- y: e.y
117
- })
118
- })(_);
119
- //#endregion
120
- export { _ as DragHandle, v as default };
@@ -1,23 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/charting/src/common/drag-icon.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
- declare const DragIcon: {
12
- ({ width, scaleValue, color }: {
13
- width: any;
14
- scaleValue: any;
15
- color: any;
16
- }): React.JSX.Element;
17
- propTypes: {
18
- width: PropTypes.Validator<number>;
19
- scaleValue: PropTypes.Validator<number>;
20
- color: PropTypes.Requireable<string>;
21
- };
22
- };
23
- export default DragIcon;
@@ -1,45 +0,0 @@
1
- import { getAdjustedX as e, getScale as t } from "../utils.js";
2
- import "react";
3
- import n from "prop-types";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/common/drag-icon.tsx
6
- var a = ({ width: n, scaleValue: a, color: o }) => /* @__PURE__ */ r("svg", {
7
- x: e(n, a),
8
- y: t(n)?.deltay,
9
- color: o,
10
- width: n,
11
- height: n,
12
- overflow: "visible",
13
- viewBox: `0 0 ${n} ${n}`,
14
- style: { overflow: "visible !important" },
15
- children: /* @__PURE__ */ i("g", {
16
- xmlns: "http://www.w3.org/2000/svg",
17
- fill: "currentColor",
18
- stroke: "currentColor",
19
- transform: `scale(${a})`,
20
- children: [
21
- /* @__PURE__ */ r("circle", {
22
- cx: "28.5",
23
- cy: "23.5",
24
- r: "22",
25
- fill: "white",
26
- stroke: "currentColor"
27
- }),
28
- /* @__PURE__ */ r("path", {
29
- d: "M33.5 21.25H23.4609C22.7578 21.25 22.4062 20.4297 22.9141 19.9219L27.9141 14.9219C28.2266 14.6094 28.7344 14.6094 29.0469 14.9219L34.0469 19.9219C34.5547 20.4297 34.2031 21.25 33.5 21.25Z",
30
- fill: "currentColor"
31
- }),
32
- /* @__PURE__ */ r("path", {
33
- d: "M23.5 25.75L33.5391 25.75C34.2422 25.75 34.5938 26.5703 34.0859 27.0781L29.0859 32.0781C28.7734 32.3906 28.2656 32.3906 27.9531 32.0781L22.9531 27.0781C22.4453 26.5703 22.7969 25.75 23.5 25.75Z",
34
- fill: "currentColor"
35
- })
36
- ]
37
- })
38
- });
39
- a.propTypes = {
40
- width: n.number.isRequired,
41
- scaleValue: n.number.isRequired,
42
- color: n.string
43
- };
44
- //#endregion
45
- export { a as default };
@@ -1,23 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/charting/src/common/styles.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- export declare const disabled: (key?: string) => {
10
- [x: string]: string;
11
- pointerEvents: string;
12
- border: string;
13
- };
14
- export declare const correct: (key?: string) => {
15
- [x: string]: any;
16
- pointerEvents: string;
17
- border: string;
18
- };
19
- export declare const incorrect: (key?: string) => {
20
- [x: string]: any;
21
- pointerEvents: string;
22
- border: string;
23
- };
@@ -1,17 +0,0 @@
1
- import { color as e } from "@pie-lib/render-ui";
2
- //#region src/common/styles.ts
3
- var t = (t = "fill") => ({
4
- [t]: `var(--graph-disabled, ${e.disabled()})`,
5
- pointerEvents: "none",
6
- border: "none"
7
- }), n = (t = "fill") => ({
8
- [t]: e.correct(),
9
- pointerEvents: "none",
10
- border: `solid 1px ${e.correct()}`
11
- }), r = (t = "fill") => ({
12
- [t]: e.incorrect(),
13
- pointerEvents: "none",
14
- border: `solid 1px ${e.incorrect()}`
15
- });
16
- //#endregion
17
- export { n as correct, t as disabled, r as incorrect };
package/dist/grid.d.ts DELETED
@@ -1,45 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/charting/src/grid.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
- export declare class Grid extends React.Component {
12
- static propTypes: {
13
- className: PropTypes.Requireable<string>;
14
- graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
15
- scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
16
- x: PropTypes.Validator<(...args: any[]) => any>;
17
- y: PropTypes.Validator<(...args: any[]) => any>;
18
- }>>>;
19
- snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
20
- x: PropTypes.Validator<(...args: any[]) => any>;
21
- y: PropTypes.Validator<(...args: any[]) => any>;
22
- }>>>;
23
- domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
24
- min: PropTypes.Validator<number>;
25
- max: PropTypes.Validator<number>;
26
- step: PropTypes.Requireable<number>;
27
- }>>>;
28
- range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
29
- min: PropTypes.Validator<number>;
30
- max: PropTypes.Validator<number>;
31
- step: PropTypes.Requireable<number>;
32
- }>>>;
33
- size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
34
- width: PropTypes.Validator<number>;
35
- height: PropTypes.Validator<number>;
36
- }>>>;
37
- }>>>;
38
- xBand: PropTypes.Requireable<(...args: any[]) => any>;
39
- columnTickValues: PropTypes.Requireable<any[]>;
40
- rowTickValues: PropTypes.Requireable<any[]>;
41
- };
42
- static defaultProps: {};
43
- render(): React.JSX.Element;
44
- }
45
- export default Grid;
package/dist/grid.js DELETED
@@ -1,56 +0,0 @@
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";
3
- import n from "react";
4
- import r from "prop-types";
5
- import { styled as i } from "@mui/material/styles";
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";
9
- //#region src/grid.tsx
10
- var l = i("g")(() => ({ stroke: o.primaryLight() })), u = class extends n.Component {
11
- static propTypes = {
12
- className: r.string,
13
- graphProps: a.GraphPropsType.isRequired,
14
- xBand: r.func,
15
- columnTickValues: r.array,
16
- rowTickValues: r.array
17
- };
18
- static defaultProps = {};
19
- render() {
20
- let { graphProps: n, xBand: r, rowTickValues: i, columnTickValues: a } = this.props, { scale: u = {}, size: d = {}, range: f = {} } = n || {}, { step: p = 0, labelStep: m = 0 } = f, h = p && m && p < m, g = (e, t) => {
21
- let n = (e.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, i = 10 ** Math.max(n, r);
22
- return e * i % (t * i) / i;
23
- }, { unlabeledLines: _, labeledLines: v } = (i || []).reduce((e, t) => (h && g(t, m) !== 0 ? e.unlabeledLines.push(t) : e.labeledLines.push(t), e), {
24
- unlabeledLines: [],
25
- labeledLines: []
26
- });
27
- return /* @__PURE__ */ c(l, { children: [
28
- /* @__PURE__ */ s(e, {
29
- scale: u.y,
30
- width: d.width,
31
- tickValues: _,
32
- lineStyle: {
33
- stroke: o.fadedPrimary(),
34
- strokeWidth: 1
35
- }
36
- }),
37
- /* @__PURE__ */ s(e, {
38
- scale: u.y,
39
- width: d.width,
40
- tickValues: v,
41
- lineStyle: {
42
- stroke: _.length ? o.visualElementsColors.GRIDLINES_COLOR : o.fadedPrimary(),
43
- strokeWidth: 1
44
- }
45
- }),
46
- /* @__PURE__ */ s(t, {
47
- scale: r,
48
- height: d.height,
49
- offset: r.bandwidth() / 2,
50
- tickValues: a
51
- })
52
- ] });
53
- }
54
- };
55
- //#endregion
56
- export { u as default };
package/dist/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/charting/src/index.js
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import Chart from './chart.js';
10
- import chartTypes from './chart-types.js';
11
- import ConfigureChartPanel from './chart-setup.js';
12
- import ChartType from './chart-type.js';
13
- import KeyLegend from './key-legend.js';
14
- export { Chart, chartTypes, ChartType, ConfigureChartPanel, KeyLegend };
package/dist/index.js DELETED
@@ -1,6 +0,0 @@
1
- import e from "./chart-types.js";
2
- import t from "./chart.js";
3
- import n from "./chart-type.js";
4
- import r from "./chart-setup.js";
5
- import i from "./key-legend.js";
6
- export { t as Chart, n as ChartType, r as ConfigureChartPanel, i as KeyLegend, e as chartTypes };
@@ -1,19 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/charting/src/key-legend.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
- declare const KeyLegend: {
12
- ({ language }: {
13
- language: any;
14
- }): React.JSX.Element;
15
- propTypes: {
16
- language: PropTypes.Requireable<string>;
17
- };
18
- };
19
- export default KeyLegend;
@@ -1,46 +0,0 @@
1
- import "react";
2
- import e from "prop-types";
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";
6
- import a from "@mui/icons-material/Check";
7
- import o from "@mui/icons-material/Close";
8
- import s from "@pie-lib/translator";
9
- //#region src/key-legend.tsx
10
- var c = t("div")(({ theme: e }) => ({
11
- backgroundColor: n.defaults.WHITE,
12
- padding: e.spacing(2),
13
- width: "355px",
14
- boxShadow: "inset 0px 1px 5px 0px #9297A6",
15
- display: "flex",
16
- flexDirection: "column",
17
- gap: "16px"
18
- })), l = t("div")(() => ({
19
- display: "flex",
20
- alignItems: "center",
21
- gap: "12px"
22
- })), u = t("div")(({ theme: e }) => ({
23
- fontSize: e.typography.h6.fontSize,
24
- fontWeight: "700"
25
- })), d = t("div")(() => ({ marginLeft: "2px" })), f = t(a)(({ theme: e }) => ({
26
- backgroundColor: n.correct(),
27
- borderRadius: e.spacing(2),
28
- color: n.defaults.WHITE
29
- })), p = t(o)(({ theme: e }) => ({
30
- backgroundColor: n.incorrectWithIcon(),
31
- borderRadius: e.spacing(2),
32
- color: n.defaults.WHITE
33
- })), m = t("div")(() => ({
34
- marginLeft: "3px",
35
- display: "flex",
36
- alignItems: "center",
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 }) })] })
43
- ] });
44
- g.propTypes = { language: e.string };
45
- //#endregion
46
- export { g as default };
@@ -1,120 +0,0 @@
1
- /**
2
- * @synced-from pie-lib/packages/charting/src/line/common/drag-handle.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import React from 'react';
10
- import PropTypes from 'prop-types';
11
- declare class RawDragHandle extends React.Component {
12
- static propTypes: {
13
- x: PropTypes.Validator<number>;
14
- y: PropTypes.Validator<number>;
15
- width: PropTypes.Requireable<number>;
16
- graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
17
- scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
18
- x: PropTypes.Validator<(...args: any[]) => any>;
19
- y: PropTypes.Validator<(...args: any[]) => any>;
20
- }>>>;
21
- snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
22
- x: PropTypes.Validator<(...args: any[]) => any>;
23
- y: PropTypes.Validator<(...args: any[]) => any>;
24
- }>>>;
25
- domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
26
- min: PropTypes.Validator<number>;
27
- max: PropTypes.Validator<number>;
28
- step: PropTypes.Requireable<number>;
29
- }>>>;
30
- range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
31
- min: PropTypes.Validator<number>;
32
- max: PropTypes.Validator<number>;
33
- step: PropTypes.Requireable<number>;
34
- }>>>;
35
- size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
36
- width: PropTypes.Validator<number>;
37
- height: PropTypes.Validator<number>;
38
- }>>>;
39
- }>>>;
40
- className: PropTypes.Requireable<string>;
41
- interactive: PropTypes.Requireable<boolean>;
42
- CustomDraggableComponent: PropTypes.Requireable<(...args: any[]) => any>;
43
- correctness: PropTypes.Requireable<PropTypes.InferProps<{
44
- value: PropTypes.Requireable<string>;
45
- label: PropTypes.Requireable<string>;
46
- }>>;
47
- };
48
- render(): React.JSX.Element | null;
49
- }
50
- export declare const DragHandle: typeof RawDragHandle;
51
- declare const DraggableHandle: {
52
- new (props: any): {
53
- grid: any;
54
- onStart: any;
55
- position: any;
56
- tiny: any;
57
- getScaledBounds: any;
58
- getClientPoint: any;
59
- skipDragOutsideOfBounds: any;
60
- onDrag: any;
61
- getDelta: any;
62
- applyDelta: any;
63
- onStop: any;
64
- render(): React.JSX.Element;
65
- context: unknown;
66
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
67
- forceUpdate(callback?: (() => void) | undefined): void;
68
- readonly props: Readonly<{}>;
69
- state: Readonly<{}>;
70
- refs: {
71
- [key: string]: React.ReactInstance;
72
- };
73
- componentDidMount?(): void;
74
- shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
75
- componentWillUnmount?(): void;
76
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
77
- getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
78
- componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
79
- componentWillMount?(): void;
80
- UNSAFE_componentWillMount?(): void;
81
- componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
82
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
83
- componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
84
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
85
- };
86
- propTypes: {
87
- disabled: PropTypes.Requireable<boolean>;
88
- onDragStart: PropTypes.Requireable<(...args: any[]) => any>;
89
- onDrag: PropTypes.Requireable<(...args: any[]) => any>;
90
- onDragStop: PropTypes.Requireable<(...args: any[]) => any>;
91
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
92
- onMove: PropTypes.Requireable<(...args: any[]) => any>;
93
- graphProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
94
- scale: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
95
- x: PropTypes.Validator<(...args: any[]) => any>;
96
- y: PropTypes.Validator<(...args: any[]) => any>;
97
- }>>>;
98
- snap: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
99
- x: PropTypes.Validator<(...args: any[]) => any>;
100
- y: PropTypes.Validator<(...args: any[]) => any>;
101
- }>>>;
102
- domain: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
103
- min: PropTypes.Validator<number>;
104
- max: PropTypes.Validator<number>;
105
- step: PropTypes.Requireable<number>;
106
- }>>>;
107
- range: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
108
- min: PropTypes.Validator<number>;
109
- max: PropTypes.Validator<number>;
110
- step: PropTypes.Requireable<number>;
111
- }>>>;
112
- size: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
113
- width: PropTypes.Validator<number>;
114
- height: PropTypes.Validator<number>;
115
- }>>>;
116
- }>>>;
117
- };
118
- contextType?: React.Context<any> | undefined;
119
- };
120
- export default DraggableHandle;