intergalactic 15.93.0 → 15.94.0-prerelease.0

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 (207) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/accordion/lib/cjs/Accordion.js +7 -7
  3. package/accordion/lib/es6/Accordion.js +7 -7
  4. package/breadcrumbs/lib/cjs/Breadcrumbs.js +25 -24
  5. package/breadcrumbs/lib/cjs/Breadcrumbs.js.map +1 -1
  6. package/breadcrumbs/lib/cjs/style/breadcrumbs.shadow.css +48 -36
  7. package/breadcrumbs/lib/es6/Breadcrumbs.js +25 -24
  8. package/breadcrumbs/lib/es6/Breadcrumbs.js.map +1 -1
  9. package/breadcrumbs/lib/es6/style/breadcrumbs.shadow.css +48 -36
  10. package/button/lib/cjs/Button.js +95 -55
  11. package/button/lib/cjs/Button.js.map +1 -1
  12. package/button/lib/es6/Button.js +95 -55
  13. package/button/lib/es6/Button.js.map +1 -1
  14. package/card/index.d.ts +5 -1
  15. package/card/lib/cjs/Card.js +17 -13
  16. package/card/lib/cjs/Card.js.map +1 -1
  17. package/card/lib/cjs/index.d.js.map +1 -1
  18. package/card/lib/es6/Card.js +17 -13
  19. package/card/lib/es6/Card.js.map +1 -1
  20. package/card/lib/es6/index.d.js.map +1 -1
  21. package/card/lib/types/index.d.ts +5 -1
  22. package/carousel/lib/cjs/Carousel.js +19 -19
  23. package/carousel/lib/cjs/style/carousel.shadow.css +1 -1
  24. package/carousel/lib/es6/Carousel.js +19 -19
  25. package/carousel/lib/es6/style/carousel.shadow.css +1 -1
  26. package/color-picker/lib/cjs/ColorPicker.js +23 -23
  27. package/color-picker/lib/cjs/PaletteManager.js +23 -23
  28. package/color-picker/lib/cjs/components/InputColor.js +23 -23
  29. package/color-picker/lib/es6/ColorPicker.js +23 -23
  30. package/color-picker/lib/es6/PaletteManager.js +23 -23
  31. package/color-picker/lib/es6/components/InputColor.js +23 -23
  32. package/components.json +31 -30
  33. package/d3-chart/{ReferenceLine.d.ts → Reference.d.ts} +31 -5
  34. package/d3-chart/index.d.ts +1 -2
  35. package/d3-chart/lib/cjs/Area.js +11 -11
  36. package/d3-chart/lib/cjs/Axis.js +14 -14
  37. package/d3-chart/lib/cjs/Bar.js +10 -10
  38. package/d3-chart/lib/cjs/Bubble.js +12 -12
  39. package/d3-chart/lib/cjs/Donut.js +9 -9
  40. package/d3-chart/lib/cjs/Dots.js +8 -8
  41. package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
  42. package/d3-chart/lib/cjs/Hover.js +3 -3
  43. package/d3-chart/lib/cjs/Line.js +9 -9
  44. package/d3-chart/lib/cjs/Plot.js +3 -3
  45. package/d3-chart/lib/cjs/Radar.js +19 -19
  46. package/d3-chart/lib/cjs/RadialTree.js +11 -11
  47. package/d3-chart/lib/cjs/{ReferenceLine.js → Reference.js} +91 -48
  48. package/d3-chart/lib/cjs/Reference.js.map +1 -0
  49. package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
  50. package/d3-chart/lib/cjs/Tooltip.js +9 -9
  51. package/d3-chart/lib/cjs/Venn.js +9 -9
  52. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  53. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  54. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  55. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  56. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  57. package/d3-chart/lib/cjs/index.js +14 -2
  58. package/d3-chart/lib/cjs/index.js.map +1 -1
  59. package/d3-chart/lib/{es6/style/reference-line.shadow.css → cjs/style/reference.shadow.css} +8 -0
  60. package/d3-chart/lib/cjs/types/Reference.d.js +2 -0
  61. package/d3-chart/lib/cjs/types/Reference.d.js.map +1 -0
  62. package/d3-chart/lib/cjs/types/index.d.js +4 -11
  63. package/d3-chart/lib/cjs/types/index.d.js.map +1 -1
  64. package/d3-chart/lib/es6/Area.js +11 -11
  65. package/d3-chart/lib/es6/Axis.js +14 -14
  66. package/d3-chart/lib/es6/Bar.js +10 -10
  67. package/d3-chart/lib/es6/Bubble.js +12 -12
  68. package/d3-chart/lib/es6/Donut.js +9 -9
  69. package/d3-chart/lib/es6/Dots.js +8 -8
  70. package/d3-chart/lib/es6/HorizontalBar.js +10 -10
  71. package/d3-chart/lib/es6/Hover.js +3 -3
  72. package/d3-chart/lib/es6/Line.js +9 -9
  73. package/d3-chart/lib/es6/Plot.js +3 -3
  74. package/d3-chart/lib/es6/Radar.js +19 -19
  75. package/d3-chart/lib/es6/RadialTree.js +11 -11
  76. package/d3-chart/lib/es6/{ReferenceLine.js → Reference.js} +88 -47
  77. package/d3-chart/lib/es6/Reference.js.map +1 -0
  78. package/d3-chart/lib/es6/ScatterPlot.js +9 -9
  79. package/d3-chart/lib/es6/Tooltip.js +9 -9
  80. package/d3-chart/lib/es6/Venn.js +9 -9
  81. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  82. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  83. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  84. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  85. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  86. package/d3-chart/lib/es6/index.js +1 -1
  87. package/d3-chart/lib/es6/index.js.map +1 -1
  88. package/d3-chart/lib/{cjs/style/reference-line.shadow.css → es6/style/reference.shadow.css} +8 -0
  89. package/d3-chart/lib/es6/types/Reference.d.js +2 -0
  90. package/d3-chart/lib/es6/types/Reference.d.js.map +1 -0
  91. package/d3-chart/lib/es6/types/index.d.js +1 -2
  92. package/d3-chart/lib/es6/types/index.d.js.map +1 -1
  93. package/d3-chart/lib/types/{ReferenceLine.d.ts → Reference.d.ts} +31 -5
  94. package/d3-chart/lib/types/index.d.ts +1 -2
  95. package/data-table/lib/cjs/DataTable.js +37 -37
  96. package/data-table/lib/es6/DataTable.js +37 -37
  97. package/date-picker/lib/cjs/components/Calendar.js +21 -21
  98. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
  99. package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
  100. package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
  101. package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
  102. package/date-picker/lib/es6/components/Calendar.js +21 -21
  103. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
  104. package/date-picker/lib/es6/components/InputTrigger.js +29 -29
  105. package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
  106. package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
  107. package/drag-and-drop/lib/cjs/DragAndDrop.js +16 -16
  108. package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
  109. package/dropdown/lib/cjs/Dropdown.js +3 -3
  110. package/dropdown/lib/cjs/Dropdown.js.map +1 -1
  111. package/dropdown/lib/es6/Dropdown.js +3 -3
  112. package/dropdown/lib/es6/Dropdown.js.map +1 -1
  113. package/dropdown-menu/lib/cjs/DropdownMenu.js +16 -16
  114. package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
  115. package/dropdown-menu/lib/es6/DropdownMenu.js +16 -16
  116. package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
  117. package/ellipsis/lib/cjs/Ellipsis.js +10 -10
  118. package/ellipsis/lib/es6/Ellipsis.js +10 -10
  119. package/errors/lib/cjs/Error.js +9 -9
  120. package/errors/lib/es6/Error.js +9 -9
  121. package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
  122. package/feature-popover/lib/es6/FeaturePopover.js +10 -10
  123. package/feedback-form/index.d.ts +12 -2
  124. package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
  125. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
  126. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
  127. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
  128. package/feedback-form/lib/cjs/index.d.js.map +1 -1
  129. package/feedback-form/lib/es6/FeedbackForm.js +7 -7
  130. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
  131. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
  132. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
  133. package/feedback-form/lib/es6/index.d.js.map +1 -1
  134. package/feedback-form/lib/types/index.d.ts +12 -2
  135. package/fullscreen-modal/lib/cjs/FullscreenModal.js +16 -14
  136. package/fullscreen-modal/lib/cjs/FullscreenModal.js.map +1 -1
  137. package/fullscreen-modal/lib/es6/FullscreenModal.js +16 -14
  138. package/fullscreen-modal/lib/es6/FullscreenModal.js.map +1 -1
  139. package/inline-input/lib/cjs/InlineInput.js +14 -14
  140. package/inline-input/lib/es6/InlineInput.js +14 -14
  141. package/input/index.d.ts +4 -0
  142. package/input/lib/cjs/Input.js +17 -17
  143. package/input/lib/cjs/index.d.js.map +1 -1
  144. package/input/lib/es6/Input.js +17 -17
  145. package/input/lib/es6/index.d.js.map +1 -1
  146. package/input/lib/types/index.d.ts +4 -0
  147. package/input-mask/lib/cjs/InputMask.js +6 -6
  148. package/input-mask/lib/es6/InputMask.js +6 -6
  149. package/input-number/lib/cjs/InputNumber.js +19 -13
  150. package/input-number/lib/cjs/InputNumber.js.map +1 -1
  151. package/input-number/lib/es6/InputNumber.js +19 -13
  152. package/input-number/lib/es6/InputNumber.js.map +1 -1
  153. package/input-tags/lib/cjs/InputTags.js +12 -12
  154. package/input-tags/lib/es6/InputTags.js +12 -12
  155. package/link/lib/cjs/Link.js +75 -35
  156. package/link/lib/cjs/Link.js.map +1 -1
  157. package/link/lib/cjs/style/link.shadow.css +1 -1
  158. package/link/lib/es6/Link.js +75 -35
  159. package/link/lib/es6/Link.js.map +1 -1
  160. package/link/lib/es6/style/link.shadow.css +1 -1
  161. package/package.json +4 -2
  162. package/pagination/lib/cjs/Pagination.js +10 -10
  163. package/pagination/lib/es6/Pagination.js +10 -10
  164. package/popper/lib/cjs/Popper.js +7 -7
  165. package/popper/lib/cjs/Popper.js.map +1 -1
  166. package/popper/lib/es6/Popper.js +7 -7
  167. package/popper/lib/es6/Popper.js.map +1 -1
  168. package/scroll-area/lib/cjs/ScrollArea.js +74 -42
  169. package/scroll-area/lib/cjs/ScrollArea.js.map +1 -1
  170. package/scroll-area/lib/cjs/ScrollBar.js +6 -6
  171. package/scroll-area/lib/cjs/style/scroll-area.shadow.css +9 -3
  172. package/scroll-area/lib/es6/ScrollArea.js +74 -42
  173. package/scroll-area/lib/es6/ScrollArea.js.map +1 -1
  174. package/scroll-area/lib/es6/ScrollBar.js +6 -6
  175. package/scroll-area/lib/es6/style/scroll-area.shadow.css +9 -3
  176. package/select/lib/cjs/InputSearch.js +6 -6
  177. package/select/lib/cjs/Select.js +9 -9
  178. package/select/lib/cjs/Select.js.map +1 -1
  179. package/select/lib/es6/InputSearch.js +6 -6
  180. package/select/lib/es6/Select.js +9 -9
  181. package/select/lib/es6/Select.js.map +1 -1
  182. package/stylelint-plugin/index.d.ts +1 -0
  183. package/stylelint-plugin/index.js +8 -0
  184. package/stylelint-plugin/index.mjs +1 -0
  185. package/stylelint-plugin/lib/cjs/index.js +102 -0
  186. package/stylelint-plugin/lib/cjs/index.js.map +1 -0
  187. package/stylelint-plugin/lib/es6/index.js +99 -0
  188. package/stylelint-plugin/lib/es6/index.js.map +1 -0
  189. package/stylelint-plugin/lib/types/index.d.ts +1 -0
  190. package/time-picker/lib/cjs/TimePicker.js +12 -12
  191. package/time-picker/lib/es6/TimePicker.js +12 -12
  192. package/tooltip/index.d.ts +9 -17
  193. package/tooltip/lib/cjs/Tooltip.js +27 -17
  194. package/tooltip/lib/cjs/Tooltip.js.map +1 -1
  195. package/tooltip/lib/cjs/index.d.js.map +1 -1
  196. package/tooltip/lib/cjs/style/tooltip.shadow.css +5 -2
  197. package/tooltip/lib/es6/Tooltip.js +27 -17
  198. package/tooltip/lib/es6/Tooltip.js.map +1 -1
  199. package/tooltip/lib/es6/index.d.js.map +1 -1
  200. package/tooltip/lib/es6/style/tooltip.shadow.css +5 -2
  201. package/tooltip/lib/types/index.d.ts +9 -17
  202. package/d3-chart/lib/cjs/ReferenceLine.js.map +0 -1
  203. package/d3-chart/lib/cjs/types/ReferenceLine.d.js +0 -2
  204. package/d3-chart/lib/cjs/types/ReferenceLine.d.js.map +0 -1
  205. package/d3-chart/lib/es6/ReferenceLine.js.map +0 -1
  206. package/d3-chart/lib/es6/types/ReferenceLine.d.js +0 -2
  207. package/d3-chart/lib/es6/types/ReferenceLine.d.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReferenceLine.js","names":["_react","_interopRequireDefault","require","_core","_createElement","_utils","style","_index","sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref4","value","_ref5","_slicedToArray2","xScale","yScale","yRange","range","x","scaleOfBandwidth","x1","x2","y1","y2","horizontal","_ref6","_ref7","xRange","y","rectDirection2props","_ref8","endValue","_ref9","width","undefined","height","_ref10","_ref11","titleOffset","titleSideToProps","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","ReferenceLineRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","createElement","Fragment","cn","_objectSpread2","ReferenceLine","Title","Component","_defineProperty2","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground","_default","exports"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value, endValue) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n const width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;\n return {\n x: x,\n y: yRange[1],\n width,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value, endValue) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n const height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, resolveColor, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render='line'\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={resolveColor(color)}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render='text'\n childrenPosition='inside'\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value, endValue } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground\n render='rect'\n childrenPosition='inside'\n {...positionProps(scale, value, endValue)}\n />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAA2C;AAAA,IAAAI,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAA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AAUA,CAACT,KAAK,EAAE;EAAA,IAAAU,KAAA;EACzB,IAAiBC,WAAW,GAA+CX,KAAK,CAAxEhB,OAAO;IAAeM,MAAM,GAAuCU,KAAK,CAAlDV,MAAM;IAAEH,KAAK,GAAgCa,KAAK,CAA1Cb,KAAK;IAAET,QAAQ,GAAsBsB,KAAK,CAAnCtB,QAAQ;IAAElD,KAAK,GAAewE,KAAK,CAAzBxE,KAAK;IAAEoB,QAAQ,GAAKoD,KAAK,CAAlBpD,QAAQ;EACtE,IAAM2C,aAAa,GAAG7C,mBAAmB,CAAC1B,cAAc,CAAC0D,QAAQ,CAAC,CAAC;EAEnE,OAAAgC,KAAA,GAAO,IAAA5F,aAAO,EAACwE,MAAM,CAAC,eACpBhF,MAAA,YAAAkF,aAAA,CAACmB,WAAW,EAAAD,KAAA,CAAAhB,EAAA,oBAAAC,cAAA;IAAA,UACH,MAAM;IAAA,oBACI;EAAQ,GACrBJ,aAAa,CAACJ,KAAK,EAAE3D,KAAK,EAAEoB,QAAQ,CAAC,GACzC;AAEN;AAEA,IAAMgD,aAAa,GAAG,IAAAJ,yBAAa,EAAC3B,iBAAiB,EAAE;EACrDgC,KAAK,EAALA,KAAK;EACLY,UAAU,EAAVA;AACF,CAAC,CAAC;AAAC,IAAAG,QAAA,GAEYhB,aAAa;AAAAiB,OAAA,cAAAD,QAAA"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=ReferenceLine.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n\n title?: string;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineTitleProps extends ReferenceLineTitleProps, UnknownProperties {}\nexport type ReferenceLineTitleProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineBackgroundProps\n extends ReferenceLineBackgroundProps,\n UnknownProperties {}\nexport type ReferenceLineBackgroundProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n\ndeclare const ReferenceLine: IntergalacticD3Component<'line', ReferenceLineProps, Context> & {\n Title: IntergalacticD3Component<'text', ReferenceLineTitleProps, Context>;\n Background: IntergalacticD3Component<'rect', ReferenceLineBackgroundProps, Context>;\n};\n\nexport default ReferenceLine;\n"],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReferenceLine.js","names":["React","Component","sstyled","createElement","scaleOfBandwidth","style","_sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref4","value","_ref5","_slicedToArray","xScale","yScale","yRange","range","x","x1","x2","y1","y2","horizontal","_ref6","_ref7","xRange","y","rectDirection2props","_ref8","endValue","_ref9","width","undefined","height","_ref10","_ref11","titleOffset","titleSideToProps","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","ReferenceLineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","Fragment","cn","_objectSpread","ReferenceLine","Title","_defineProperty","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value, endValue) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n const width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;\n return {\n x: x,\n y: yRange[1],\n width,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value, endValue) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n const height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, resolveColor, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render='line'\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={resolveColor(color)}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render='text'\n childrenPosition='inside'\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value, endValue } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground\n render='rect'\n childrenPosition='inside'\n {...positionProps(scale, value, endValue)}\n />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AAClD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,gBAAgB,QAAQ,SAAS;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EA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X,KAAK,CAAxEd,OAAO;IAAeM,MAAM,GAAuCQ,KAAK,CAAlDR,MAAM;IAAEH,KAAK,GAAgCW,KAAK,CAA1CX,KAAK;IAAET,QAAQ,GAAsBoB,KAAK,CAAnCpB,QAAQ;IAAEjD,KAAK,GAAeqE,KAAK,CAAzBrE,KAAK;IAAEmB,QAAQ,GAAKkD,KAAK,CAAlBlD,QAAQ;EACtE,IAAM2C,aAAa,GAAG7C,mBAAmB,CAACzB,cAAc,CAACyD,QAAQ,CAAC,CAAC;EAEnE,OAAA8B,KAAA,GAAO7F,OAAO,CAAC2E,MAAM,CAAC,eACpB7E,KAAA,CAAAG,aAAA,CAAC6F,WAAW,EAAAD,KAAA,CAAAf,EAAA,gBAAAC,aAAA;IAAA,UACH,MAAM;IAAA,oBACI;EAAQ,GACrBH,aAAa,CAACJ,KAAK,EAAE1D,KAAK,EAAEmB,QAAQ,CAAC,GACzC;AAEN;AAEA,IAAM+C,aAAa,GAAG/E,aAAa,CAACiD,iBAAiB,EAAE;EACrD+B,KAAK,EAALA,KAAK;EACLW,UAAU,EAAVA;AACF,CAAC,CAAC;AAEF,eAAeZ,aAAa"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ReferenceLine.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n\n title?: string;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineTitleProps extends ReferenceLineTitleProps, UnknownProperties {}\nexport type ReferenceLineTitleProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineBackgroundProps\n extends ReferenceLineBackgroundProps,\n UnknownProperties {}\nexport type ReferenceLineBackgroundProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n\ndeclare const ReferenceLine: IntergalacticD3Component<'line', ReferenceLineProps, Context> & {\n Title: IntergalacticD3Component<'text', ReferenceLineTitleProps, Context>;\n Background: IntergalacticD3Component<'rect', ReferenceLineBackgroundProps, Context>;\n};\n\nexport default ReferenceLine;\n"],"mappings":""}