intergalactic 15.65.3 → 15.66.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 (201) hide show
  1. package/CHANGELOG.md +73 -9
  2. package/animation/index.d.ts +1 -1
  3. package/animation/lib/cjs/Collapse.js +29 -29
  4. package/animation/lib/cjs/Collapse.js.map +1 -1
  5. package/animation/lib/cjs/FadeInOut.js +28 -28
  6. package/animation/lib/cjs/Scale.js +28 -28
  7. package/animation/lib/cjs/Slide.js +28 -28
  8. package/animation/lib/cjs/Transform.js +28 -28
  9. package/animation/lib/cjs/index.d.js.map +1 -1
  10. package/animation/lib/cjs/style/keyframes.shadow.css +53 -5
  11. package/animation/lib/es6/Collapse.js +29 -29
  12. package/animation/lib/es6/Collapse.js.map +1 -1
  13. package/animation/lib/es6/FadeInOut.js +28 -28
  14. package/animation/lib/es6/Scale.js +28 -28
  15. package/animation/lib/es6/Slide.js +28 -28
  16. package/animation/lib/es6/Transform.js +28 -28
  17. package/animation/lib/es6/index.d.js.map +1 -1
  18. package/animation/lib/es6/style/keyframes.shadow.css +53 -5
  19. package/animation/lib/types/index.d.ts +1 -1
  20. package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
  21. package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
  22. package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
  23. package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
  24. package/base-trigger/lib/es6/BaseTrigger.js +18 -18
  25. package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
  26. package/base-trigger/lib/es6/FilterTrigger.js +7 -7
  27. package/base-trigger/lib/es6/LinkTrigger.js +12 -12
  28. package/button/lib/cjs/Button.js +26 -26
  29. package/button/lib/cjs/style/button.shadow.css +10 -11
  30. package/button/lib/es6/Button.js +26 -26
  31. package/button/lib/es6/style/button.shadow.css +10 -11
  32. package/card/index.d.ts +10 -1
  33. package/card/lib/cjs/Card.js +10 -3
  34. package/card/lib/cjs/Card.js.map +1 -1
  35. package/card/lib/cjs/index.d.js.map +1 -1
  36. package/card/lib/es6/Card.js +10 -3
  37. package/card/lib/es6/Card.js.map +1 -1
  38. package/card/lib/es6/index.d.js.map +1 -1
  39. package/card/lib/types/index.d.ts +10 -1
  40. package/carousel/lib/cjs/Carousel.js +18 -7
  41. package/carousel/lib/cjs/Carousel.js.map +1 -1
  42. package/carousel/lib/es6/Carousel.js +18 -7
  43. package/carousel/lib/es6/Carousel.js.map +1 -1
  44. package/components.json +73 -73
  45. package/d3-chart/Area.d.ts +2 -2
  46. package/d3-chart/Line.d.ts +2 -2
  47. package/d3-chart/lib/cjs/Area.js +11 -11
  48. package/d3-chart/lib/cjs/Axis.js +14 -14
  49. package/d3-chart/lib/cjs/Bar.js +10 -10
  50. package/d3-chart/lib/cjs/Bubble.js +12 -12
  51. package/d3-chart/lib/cjs/Donut.js +9 -9
  52. package/d3-chart/lib/cjs/Dots.js +9 -9
  53. package/d3-chart/lib/cjs/Dots.js.map +1 -1
  54. package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
  55. package/d3-chart/lib/cjs/Hover.js +3 -3
  56. package/d3-chart/lib/cjs/Line.js +12 -10
  57. package/d3-chart/lib/cjs/Line.js.map +1 -1
  58. package/d3-chart/lib/cjs/Plot.js +3 -3
  59. package/d3-chart/lib/cjs/Radar.js +19 -19
  60. package/d3-chart/lib/cjs/RadialTree.js +11 -11
  61. package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
  62. package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
  63. package/d3-chart/lib/cjs/Tooltip.js +9 -9
  64. package/d3-chart/lib/cjs/Venn.js +9 -9
  65. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  66. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  67. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  68. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  69. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  70. package/d3-chart/lib/cjs/types/Area.d.js.map +1 -1
  71. package/d3-chart/lib/cjs/types/Line.d.js.map +1 -1
  72. package/d3-chart/lib/es6/Area.js +11 -11
  73. package/d3-chart/lib/es6/Axis.js +14 -14
  74. package/d3-chart/lib/es6/Bar.js +10 -10
  75. package/d3-chart/lib/es6/Bubble.js +12 -12
  76. package/d3-chart/lib/es6/Donut.js +9 -9
  77. package/d3-chart/lib/es6/Dots.js +9 -9
  78. package/d3-chart/lib/es6/Dots.js.map +1 -1
  79. package/d3-chart/lib/es6/HorizontalBar.js +10 -10
  80. package/d3-chart/lib/es6/Hover.js +3 -3
  81. package/d3-chart/lib/es6/Line.js +12 -10
  82. package/d3-chart/lib/es6/Line.js.map +1 -1
  83. package/d3-chart/lib/es6/Plot.js +3 -3
  84. package/d3-chart/lib/es6/Radar.js +19 -19
  85. package/d3-chart/lib/es6/RadialTree.js +11 -11
  86. package/d3-chart/lib/es6/ReferenceLine.js +9 -9
  87. package/d3-chart/lib/es6/ScatterPlot.js +9 -9
  88. package/d3-chart/lib/es6/Tooltip.js +9 -9
  89. package/d3-chart/lib/es6/Venn.js +9 -9
  90. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  91. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  92. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  93. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  94. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  95. package/d3-chart/lib/es6/types/Area.d.js.map +1 -1
  96. package/d3-chart/lib/es6/types/Line.d.js.map +1 -1
  97. package/d3-chart/lib/types/Area.d.ts +2 -2
  98. package/d3-chart/lib/types/Line.d.ts +2 -2
  99. package/data-table/lib/cjs/DataTable.js +5 -0
  100. package/data-table/lib/cjs/DataTable.js.map +1 -1
  101. package/data-table/lib/es6/DataTable.js +5 -0
  102. package/data-table/lib/es6/DataTable.js.map +1 -1
  103. package/date-picker/lib/cjs/DatePicker.js +1 -1
  104. package/date-picker/lib/cjs/DatePicker.js.map +1 -1
  105. package/date-picker/lib/cjs/DateRangeComparator.js +11 -8
  106. package/date-picker/lib/cjs/DateRangeComparator.js.map +1 -1
  107. package/date-picker/lib/cjs/MonthDateRangeComparator.js +7 -6
  108. package/date-picker/lib/cjs/MonthDateRangeComparator.js.map +1 -1
  109. package/date-picker/lib/cjs/components/Calendar.js +156 -72
  110. package/date-picker/lib/cjs/components/Calendar.js.map +1 -1
  111. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +206 -123
  112. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
  113. package/date-picker/lib/cjs/components/InputTrigger.js +50 -38
  114. package/date-picker/lib/cjs/components/InputTrigger.js.map +1 -1
  115. package/date-picker/lib/cjs/components/PickerAbstract.js +38 -29
  116. package/date-picker/lib/cjs/components/PickerAbstract.js.map +1 -1
  117. package/date-picker/lib/cjs/components/RangePickerAbstract.js +105 -79
  118. package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
  119. package/date-picker/lib/cjs/components/index.js +4 -4
  120. package/date-picker/lib/cjs/components/index.js.map +1 -1
  121. package/date-picker/lib/cjs/style/calendar.shadow.css +7 -3
  122. package/date-picker/lib/cjs/translations/en.json +8 -1
  123. package/date-picker/lib/cjs/utils/formatDate.js +19 -7
  124. package/date-picker/lib/cjs/utils/formatDate.js.map +1 -1
  125. package/date-picker/lib/es6/DatePicker.js +2 -2
  126. package/date-picker/lib/es6/DatePicker.js.map +1 -1
  127. package/date-picker/lib/es6/DateRangeComparator.js +11 -8
  128. package/date-picker/lib/es6/DateRangeComparator.js.map +1 -1
  129. package/date-picker/lib/es6/MonthDateRangeComparator.js +7 -6
  130. package/date-picker/lib/es6/MonthDateRangeComparator.js.map +1 -1
  131. package/date-picker/lib/es6/components/Calendar.js +157 -73
  132. package/date-picker/lib/es6/components/Calendar.js.map +1 -1
  133. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +206 -123
  134. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
  135. package/date-picker/lib/es6/components/InputTrigger.js +50 -38
  136. package/date-picker/lib/es6/components/InputTrigger.js.map +1 -1
  137. package/date-picker/lib/es6/components/PickerAbstract.js +38 -29
  138. package/date-picker/lib/es6/components/PickerAbstract.js.map +1 -1
  139. package/date-picker/lib/es6/components/RangePickerAbstract.js +105 -79
  140. package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
  141. package/date-picker/lib/es6/components/index.js +4 -4
  142. package/date-picker/lib/es6/components/index.js.map +1 -1
  143. package/date-picker/lib/es6/style/calendar.shadow.css +7 -3
  144. package/date-picker/lib/es6/translations/en.json +8 -1
  145. package/date-picker/lib/es6/utils/formatDate.js +16 -5
  146. package/date-picker/lib/es6/utils/formatDate.js.map +1 -1
  147. package/dropdown-menu/lib/cjs/DropdownMenu.js +46 -19
  148. package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
  149. package/dropdown-menu/lib/es6/DropdownMenu.js +47 -20
  150. package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
  151. package/icon/Check/l/index.js +1 -1
  152. package/icon/Check/l/index.mjs +1 -1
  153. package/icon/CheckDouble/l/index.d.ts +6 -0
  154. package/icon/CheckDouble/l/index.js +36 -0
  155. package/icon/CheckDouble/l/index.mjs +24 -0
  156. package/icon/CheckDouble/m/index.d.ts +6 -0
  157. package/icon/CheckDouble/m/index.js +36 -0
  158. package/icon/CheckDouble/m/index.mjs +24 -0
  159. package/icon/CollapseAlt/l/index.d.ts +6 -0
  160. package/icon/CollapseAlt/l/index.js +36 -0
  161. package/icon/CollapseAlt/l/index.mjs +24 -0
  162. package/icon/CollapseAlt/m/index.d.ts +6 -0
  163. package/icon/CollapseAlt/m/index.js +36 -0
  164. package/icon/CollapseAlt/m/index.mjs +24 -0
  165. package/icon/ExpandAlt/l/index.d.ts +6 -0
  166. package/icon/ExpandAlt/l/index.js +36 -0
  167. package/icon/ExpandAlt/l/index.mjs +24 -0
  168. package/icon/ExpandAlt/m/index.d.ts +6 -0
  169. package/icon/ExpandAlt/m/index.js +36 -0
  170. package/icon/ExpandAlt/m/index.mjs +24 -0
  171. package/package.json +26 -2
  172. package/pagination/lib/cjs/Pagination.js +10 -10
  173. package/pagination/lib/es6/Pagination.js +10 -10
  174. package/pills/index.d.ts +3 -3
  175. package/pills/lib/cjs/Pills.js +19 -18
  176. package/pills/lib/cjs/Pills.js.map +1 -1
  177. package/pills/lib/cjs/index.d.js.map +1 -1
  178. package/pills/lib/cjs/style/pills.shadow.css +6 -1
  179. package/pills/lib/es6/Pills.js +19 -18
  180. package/pills/lib/es6/Pills.js.map +1 -1
  181. package/pills/lib/es6/index.d.js.map +1 -1
  182. package/pills/lib/es6/style/pills.shadow.css +6 -1
  183. package/pills/lib/types/index.d.ts +3 -3
  184. package/select/lib/cjs/InputSearch.js +6 -6
  185. package/select/lib/cjs/Select.js +9 -9
  186. package/select/lib/es6/InputSearch.js +6 -6
  187. package/select/lib/es6/Select.js +9 -9
  188. package/tag/lib/cjs/Tag.js +20 -20
  189. package/tag/lib/cjs/style/tag.shadow.css +2 -1
  190. package/tag/lib/es6/Tag.js +20 -20
  191. package/tag/lib/es6/style/tag.shadow.css +2 -1
  192. package/time-picker/lib/cjs/PickerInput.js +3 -1
  193. package/time-picker/lib/cjs/PickerInput.js.map +1 -1
  194. package/time-picker/lib/cjs/TimePicker.js +12 -12
  195. package/time-picker/lib/es6/PickerInput.js +3 -1
  196. package/time-picker/lib/es6/PickerInput.js.map +1 -1
  197. package/time-picker/lib/es6/TimePicker.js +12 -12
  198. package/utils/lib/propsForElement.js +1 -1
  199. package/utils/lib/propsForElement.js.map +1 -1
  200. package/utils/lib/propsForElement.mjs +1 -1
  201. package/utils/lib/propsForElement.mjs.map +1 -1
@@ -7,14 +7,14 @@ import trottle from 'intergalactic/utils/lib/rafTrottle';
7
7
  import createElement from './createElement';
8
8
  import { eventToPoint, invert, interpolateValue, getChartDefaultColorName } from './utils';
9
9
  /*__reshadow-styles__:"./style/dot.shadow.css"*/
10
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDots_17exw_gg_ .___SDot_17exw_gg_{transition-duration:var(--duration_17exw)}.___SDot_17exw_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_17exw_gg_.__hide_17exw_gg_{display:none}.___SDot_17exw_gg_.__color_17exw_gg_{fill:var(--color_17exw)}.___SDot_17exw_gg_.__transparent_17exw_gg_{opacity:.3}" /*__inner_css_end__*/, "17exw_gg_") /*__reshadow_css_end__*/, {
11
- "__SDot": "___SDot_17exw_gg_",
12
- "_hide": "__hide_17exw_gg_",
13
- "_color": "__color_17exw_gg_",
14
- "--color": "--color_17exw",
15
- "_transparent": "__transparent_17exw_gg_",
16
- "__SDots": "___SDots_17exw_gg_",
17
- "--duration": "--duration_17exw"
10
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDots_1aia1_gg_ .___SDot_1aia1_gg_{transition-duration:var(--duration_1aia1)}.___SDot_1aia1_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_1aia1_gg_.__hide_1aia1_gg_{display:none}.___SDot_1aia1_gg_.__color_1aia1_gg_{fill:var(--color_1aia1)}.___SDot_1aia1_gg_.__transparent_1aia1_gg_{opacity:.3}" /*__inner_css_end__*/, "1aia1_gg_") /*__reshadow_css_end__*/, {
11
+ "__SDot": "___SDot_1aia1_gg_",
12
+ "_hide": "__hide_1aia1_gg_",
13
+ "_color": "__color_1aia1_gg_",
14
+ "--color": "--color_1aia1",
15
+ "_transparent": "__transparent_1aia1_gg_",
16
+ "__SDots": "___SDots_1aia1_gg_",
17
+ "--duration": "--duration_1aia1"
18
18
  });
19
19
  import { PatternSymbol, getPatternSymbolSize } from './Pattern';
20
20
  var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
@@ -77,7 +77,7 @@ function Dots(props) {
77
77
  var isPrev = d3.defined()(data[i - 1] || {});
78
78
  var isNext = d3.defined()(data[i + 1] || {});
79
79
  var active = i === activeIndex;
80
- var visible = display || i === activeIndex || !isPrev && !isNext;
80
+ var visible = typeof display === 'function' ? display(i, i === activeIndex, !isPrev && !isNext) : display || i === activeIndex || !isPrev && !isNext;
81
81
  var radius = radiusBase * (active ? 8 / 6 : 1);
82
82
  if (!d3.defined()(d)) return acc;
83
83
  if (!visible) return acc;
@@ -1 +1 @@
1
- {"version":3,"file":"Dots.js","names":["bisector","React","sstyled","trottle","createElement","eventToPoint","invert","interpolateValue","getChartDefaultColorName","style","_sstyled","insert","PatternSymbol","getPatternSymbolSize","EXCLUDE_PROPS","Dots","props","_ref3","SDot","Element","styles","color","d3","x","y","eventEmitter","display","hide","rootRef","scale","_props$duration","duration","transparent","_props$radius","radius","radiusBase","resolveColor","patterns","bisect","d","center","_React$useState","useState","_React$useState2","_slicedToArray","activeIndex","setActiveIndex","data","useMemo","filter","item","handlerMouseMoveRoot","useCallback","e","_scale","xScale","_eventToPoint","current","_eventToPoint2","pX","vX","handlerMouseLeaveRoot","useEffect","unsubscribeMouseMoveRoot","subscribe","persist","unsubscribeMouseLeaveRoot","dots","reduce","acc","i","isPrev","defined","isNext","active","visible","patternKey","_getPatternSymbolSize","_getPatternSymbolSize2","width","height","_ref","push","cn","concat","_ref2","SDots"],"sources":["../../src/Dots.jsx"],"sourcesContent":["import { bisector } from 'd3-array';\nimport React from 'react';\nimport { sstyled } from '@semcore/core';\nimport trottle from '@semcore/utils/lib/rafTrottle';\nimport createElement from './createElement';\nimport { eventToPoint, invert, interpolateValue, getChartDefaultColorName } from './utils';\n\nimport style from './style/dot.shadow.css';\nimport { PatternSymbol, getPatternSymbolSize } from './Pattern';\n\nconst EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];\n\nfunction Dots(props) {\n const {\n Element: SDot,\n styles,\n color,\n d3,\n x,\n y,\n eventEmitter,\n display,\n hide,\n rootRef,\n scale,\n duration = 500,\n transparent,\n radius: radiusBase = 6,\n resolveColor,\n patterns,\n } = props;\n const bisect = bisector((d) => d[x]).center;\n const [activeIndex, setActiveIndex] = React.useState(null);\n const data = React.useMemo(\n () => props.data.filter((item) => item[y] !== interpolateValue),\n [props.data],\n );\n\n const handlerMouseMoveRoot = React.useCallback(\n trottle((e) => {\n const [xScale] = scale;\n const [pX] = eventToPoint(e, rootRef.current);\n const vX = invert(xScale, pX);\n setActiveIndex(bisect(data, vX));\n }),\n [scale, data],\n );\n\n const handlerMouseLeaveRoot = React.useCallback(\n trottle(() => {\n setActiveIndex(null);\n }),\n [],\n );\n\n React.useEffect(() => {\n const unsubscribeMouseMoveRoot = eventEmitter.subscribe('onMouseMoveChart', (e) => {\n e.persist();\n handlerMouseMoveRoot(e);\n });\n\n const unsubscribeMouseLeaveRoot = eventEmitter.subscribe(\n 'onMouseLeaveChart',\n handlerMouseLeaveRoot,\n );\n\n return () => {\n unsubscribeMouseMoveRoot();\n unsubscribeMouseLeaveRoot();\n };\n }, [eventEmitter, scale, data, x, y]);\n\n const dots = data.reduce((acc, d, i) => {\n const isPrev = d3.defined()(data[i - 1] || {});\n const isNext = d3.defined()(data[i + 1] || {});\n const active = i === activeIndex;\n const visible = display || i === activeIndex || (!isPrev && !isNext);\n const radius = radiusBase * (active ? 8 / 6 : 1);\n if (!d3.defined()(d)) return acc;\n if (!visible) return acc;\n\n const patternKey = color || getChartDefaultColorName(0);\n const [width, height] = getPatternSymbolSize({\n patternKey,\n patterns,\n });\n\n if (!patterns) {\n acc.push(\n sstyled(styles)(\n <SDot\n render='circle'\n color={resolveColor(color)}\n patternKey={patternKey}\n patterns={patterns}\n key={`${i}`}\n value={d}\n visible={visible}\n active={active}\n hide={hide}\n transparent={transparent}\n cx={d3.x()(d)}\n cy={d3.y()(d)}\n r={radius}\n />,\n ),\n );\n } else {\n acc.push(\n sstyled(styles)(\n <SDot\n render={PatternSymbol}\n color={resolveColor(color)}\n patternKey={patternKey}\n patterns={patterns}\n key={`${i}`}\n value={d}\n visible={visible}\n active={active}\n hide={hide}\n transparent={transparent}\n x={d3.x()(d) - width / 2}\n y={d3.y()(d) - height / 2}\n radius={radius}\n />,\n ),\n );\n }\n // acc.push(<PatternSymbol color={resolveColor(color)} patternKey={color} />);\n return acc;\n }, []);\n const SDots = 'g';\n return sstyled(styles)(<SDots duration={`${duration}ms`}>{dots}</SDots>);\n}\n\nDots.style = style;\n\nexport default createElement(Dots);\n"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,UAAU;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,eAAe;AACvC,OAAOC,OAAO,MAAM,+BAA+B;AACnD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,YAAY,EAAEC,MAAM,EAAEC,gBAAgB,EAAEC,wBAAwB,QAAQ,SAAS;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAG3F,SAASC,aAAa,EAAEC,oBAAoB,QAAQ,WAAW;AAE/D,IAAMC,aAAa,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC;AAE3D,SAASC,IAAIA,CAACC,KAAK,EAAE;EAAA,IAAAC,KAAA;EACnB,IACWC,IAAI,GAgBXF,KAAK,CAhBPG,OAAO;IACPC,MAAM,GAeJJ,KAAK,CAfPI,MAAM;IACNC,KAAK,GAcHL,KAAK,CAdPK,KAAK;IACLC,EAAE,GAaAN,KAAK,CAb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ACE,CAAC,EAAE,CAACe,CAAC,CAAC;QAAA,KACVL;MAAM,GACT,EAEL;IACH,CAAC,MAAM;MAAA,IAAAmD,KAAA;MACLhB,GAAG,CAACa,IAAI,EAAAG,KAAA,GACNnF,OAAO,CAACkB,MAAM,CAAC,eACbnB,KAAA,CAAAG,aAAA,CAACc,IAAI,EAAAmE,KAAA,CAAAF,EAAA;QAAA,UACKvE,aAAa;QAAA,SACdwB,YAAY,CAACf,KAAK,CAAC;QAAA,cACduD,UAAU;QAAA,YACZvC,QAAQ;QAAA,UAAA+C,MAAA,CACVd,CAAC;QAAA,SACF/B,CAAC;QAAA,WACCoC,OAAO;QAAA,UACRD,MAAM;QAAA,QACR/C,IAAI;QAAA,eACGK,WAAW;QAAA,KACrBV,EAAE,CAACC,CAAC,EAAE,CAACgB,CAAC,CAAC,GAAGwC,KAAK,GAAG,CAAC;QAAA,KACrBzD,EAAE,CAACE,CAAC,EAAE,CAACe,CAAC,CAAC,GAAGyC,MAAM,GAAG,CAAC;QAAA,UACjB9C;MAAM,GACd,EAEL;IACH;IACA;IACA,OAAOmC,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;EACN,IAAMiB,KAAK,GAAG,GAAG;EACjB,OAAArE,KAAA,GAAOf,OAAO,CAACkB,MAAM,CAAC,eAACnB,KAAA,CAAAG,aAAA,CAACkF,KAAK,EAAArE,KAAA,CAAAkE,EAAA;IAAA,eAAAC,MAAA,CAAcrD,QAAQ;EAAA,IAAOoC,IAAI,CAAS;AACzE;AAEApD,IAAI,CAACN,KAAK,GAAGA,KAAK;AAElB,eAAeL,aAAa,CAACW,IAAI,CAAC"}
1
+ {"version":3,"file":"Dots.js","names":["bisector","React","sstyled","trottle","createElement","eventToPoint","invert","interpolateValue","getChartDefaultColorName","style","_sstyled","insert","PatternSymbol","getPatternSymbolSize","EXCLUDE_PROPS","Dots","props","_ref3","SDot","Element","styles","color","d3","x","y","eventEmitter","display","hide","rootRef","scale","_props$duration","duration","transparent","_props$radius","radius","radiusBase","resolveColor","patterns","bisect","d","center","_React$useState","useState","_React$useState2","_slicedToArray","activeIndex","setActiveIndex","data","useMemo","filter","item","handlerMouseMoveRoot","useCallback","e","_scale","xScale","_eventToPoint","current","_eventToPoint2","pX","vX","handlerMouseLeaveRoot","useEffect","unsubscribeMouseMoveRoot","subscribe","persist","unsubscribeMouseLeaveRoot","dots","reduce","acc","i","isPrev","defined","isNext","active","visible","patternKey","_getPatternSymbolSize","_getPatternSymbolSize2","width","height","_ref","push","cn","concat","_ref2","SDots"],"sources":["../../src/Dots.jsx"],"sourcesContent":["import { bisector } from 'd3-array';\nimport React from 'react';\nimport { sstyled } from '@semcore/core';\nimport trottle from '@semcore/utils/lib/rafTrottle';\nimport createElement from './createElement';\nimport { eventToPoint, invert, interpolateValue, getChartDefaultColorName } from './utils';\n\nimport style from './style/dot.shadow.css';\nimport { PatternSymbol, getPatternSymbolSize } from './Pattern';\n\nconst EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];\n\nfunction Dots(props) {\n const {\n Element: SDot,\n styles,\n color,\n d3,\n x,\n y,\n eventEmitter,\n display,\n hide,\n rootRef,\n scale,\n duration = 500,\n transparent,\n radius: radiusBase = 6,\n resolveColor,\n patterns,\n } = props;\n const bisect = bisector((d) => d[x]).center;\n const [activeIndex, setActiveIndex] = React.useState(null);\n const data = React.useMemo(\n () => props.data.filter((item) => item[y] !== interpolateValue),\n [props.data],\n );\n\n const handlerMouseMoveRoot = React.useCallback(\n trottle((e) => {\n const [xScale] = scale;\n const [pX] = eventToPoint(e, rootRef.current);\n const vX = invert(xScale, pX);\n setActiveIndex(bisect(data, vX));\n }),\n [scale, data],\n );\n\n const handlerMouseLeaveRoot = React.useCallback(\n trottle(() => {\n setActiveIndex(null);\n }),\n [],\n );\n\n React.useEffect(() => {\n const unsubscribeMouseMoveRoot = eventEmitter.subscribe('onMouseMoveChart', (e) => {\n e.persist();\n handlerMouseMoveRoot(e);\n });\n\n const unsubscribeMouseLeaveRoot = eventEmitter.subscribe(\n 'onMouseLeaveChart',\n handlerMouseLeaveRoot,\n );\n\n return () => {\n unsubscribeMouseMoveRoot();\n unsubscribeMouseLeaveRoot();\n };\n }, [eventEmitter, scale, data, x, y]);\n\n const dots = data.reduce((acc, d, i) => {\n const isPrev = d3.defined()(data[i - 1] || {});\n const isNext = d3.defined()(data[i + 1] || {});\n const active = i === activeIndex;\n const visible =\n typeof display === 'function'\n ? display(i, i === activeIndex, !isPrev && !isNext)\n : display || i === activeIndex || (!isPrev && !isNext);\n const radius = radiusBase * (active ? 8 / 6 : 1);\n if (!d3.defined()(d)) return acc;\n if (!visible) return acc;\n\n const patternKey = color || getChartDefaultColorName(0);\n const [width, height] = getPatternSymbolSize({\n patternKey,\n patterns,\n });\n\n if (!patterns) {\n acc.push(\n sstyled(styles)(\n <SDot\n render='circle'\n color={resolveColor(color)}\n patternKey={patternKey}\n patterns={patterns}\n key={`${i}`}\n value={d}\n visible={visible}\n active={active}\n hide={hide}\n transparent={transparent}\n cx={d3.x()(d)}\n cy={d3.y()(d)}\n r={radius}\n />,\n ),\n );\n } else {\n acc.push(\n sstyled(styles)(\n <SDot\n render={PatternSymbol}\n color={resolveColor(color)}\n patternKey={patternKey}\n patterns={patterns}\n key={`${i}`}\n value={d}\n visible={visible}\n active={active}\n hide={hide}\n transparent={transparent}\n x={d3.x()(d) - width / 2}\n y={d3.y()(d) - height / 2}\n radius={radius}\n />,\n ),\n );\n }\n // acc.push(<PatternSymbol color={resolveColor(color)} patternKey={color} />);\n return acc;\n }, []);\n const SDots = 'g';\n return sstyled(styles)(<SDots duration={`${duration}ms`}>{dots}</SDots>);\n}\n\nDots.style = style;\n\nexport default createElement(Dots);\n"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,UAAU;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,eAAe;AACvC,OAAOC,OAAO,MAAM,+BAA+B;AACnD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,Y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C,GAAGyC,MAAM,GAAG,CAAC;QAAA,UACjB9C;MAAM,GACd,EAEL;IACH;IACA;IACA,OAAOmC,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;EACN,IAAMiB,KAAK,GAAG,GAAG;EACjB,OAAArE,KAAA,GAAOf,OAAO,CAACkB,MAAM,CAAC,eAACnB,KAAA,CAAAG,aAAA,CAACkF,KAAK,EAAArE,KAAA,CAAAkE,EAAA;IAAA,eAAAC,MAAA,CAAcrD,QAAQ;EAAA,IAAOoC,IAAI,CAAS;AACzE;AAEApD,IAAI,CAACN,KAAK,GAAGA,KAAK;AAElB,eAAeL,aAAa,CAACW,IAAI,CAAC"}
@@ -13,16 +13,16 @@ import AnimatedClipPath from './AnimatedClipPath';
13
13
  import { scaleToBand, roundedPath } from './utils';
14
14
  import { PatternFill } from './Pattern';
15
15
  /*__reshadow-styles__:"./style/bar.shadow.css"*/
16
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_9boho_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_9boho);transition-timing-function:ease-in-out}.___SBar_9boho_gg_.__color_9boho_gg_{fill:var(--color_9boho)}.___SBar_9boho_gg_.__pattern_9boho_gg_.__color_9boho_gg_{fill:var(--pattern_9boho);stroke:var(--color_9boho);stroke-width:1px}.___SBar_9boho_gg_.__hide_9boho_gg_{display:none}.___SBar_9boho_gg_.__transparent_9boho_gg_{opacity:.3}.___SBackground_9boho_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "9boho_gg_") /*__reshadow_css_end__*/, {
17
- "__SBar": "___SBar_9boho_gg_",
18
- "--duration": "--duration_9boho",
19
- "_color": "__color_9boho_gg_",
20
- "--color": "--color_9boho",
21
- "_pattern": "__pattern_9boho_gg_",
22
- "--pattern": "--pattern_9boho",
23
- "_hide": "__hide_9boho_gg_",
24
- "_transparent": "__transparent_9boho_gg_",
25
- "__SBackground": "___SBackground_9boho_gg_"
16
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_1a5di_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1a5di);transition-timing-function:ease-in-out}.___SBar_1a5di_gg_.__color_1a5di_gg_{fill:var(--color_1a5di)}.___SBar_1a5di_gg_.__pattern_1a5di_gg_.__color_1a5di_gg_{fill:var(--pattern_1a5di);stroke:var(--color_1a5di);stroke-width:1px}.___SBar_1a5di_gg_.__hide_1a5di_gg_{display:none}.___SBar_1a5di_gg_.__transparent_1a5di_gg_{opacity:.3}.___SBackground_1a5di_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "1a5di_gg_") /*__reshadow_css_end__*/, {
17
+ "__SBar": "___SBar_1a5di_gg_",
18
+ "--duration": "--duration_1a5di",
19
+ "_color": "__color_1a5di_gg_",
20
+ "--color": "--color_1a5di",
21
+ "_pattern": "__pattern_1a5di_gg_",
22
+ "--pattern": "--pattern_1a5di",
23
+ "_hide": "__hide_1a5di_gg_",
24
+ "_transparent": "__transparent_1a5di_gg_",
25
+ "__SBackground": "___SBackground_1a5di_gg_"
26
26
  });
27
27
  export var MIN_WIDTH = 2;
28
28
  var calcPartBarX = function calcPartBarX(x, minWidth, width) {
@@ -16,9 +16,9 @@ import trottle from 'intergalactic/utils/lib/rafTrottle';
16
16
  import createElement from './createElement';
17
17
  import { scaleOfBandwidth, getIndexFromData, eventToPoint, invert, CONSTANT, scaleToBand } from './utils';
18
18
  /*__reshadow-styles__:"./style/hover.shadow.css"*/
19
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SHoverLine_3q1nt_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SHoverRect_3q1nt_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "3q1nt_gg_") /*__reshadow_css_end__*/, {
20
- "__SHoverLine": "___SHoverLine_3q1nt_gg_",
21
- "__SHoverRect": "___SHoverRect_3q1nt_gg_"
19
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SHoverLine_1kq1s_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SHoverRect_1kq1s_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "1kq1s_gg_") /*__reshadow_css_end__*/, {
20
+ "__SHoverLine": "___SHoverLine_1kq1s_gg_",
21
+ "__SHoverRect": "___SHoverRect_1kq1s_gg_"
22
22
  });
23
23
  import Tooltip from './Tooltip';
24
24
  var Hover = /*#__PURE__*/function (_Component) {
@@ -15,15 +15,15 @@ import Dots from './Dots';
15
15
  import AnimatedClipPath from './AnimatedClipPath';
16
16
  import { resolvePatternDasharray } from './Pattern';
17
17
  /*__reshadow-styles__:"./style/line.shadow.css"*/
18
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLine_loitq_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_loitq);transition-timing-function:ease-in-out}.___SLine_loitq_gg_.__color_loitq_gg_{stroke:var(--color_loitq)}.___SLine_loitq_gg_.__hide_loitq_gg_{display:none}.___SLine_loitq_gg_.__transparent_loitq_gg_{opacity:.3}.___SNull_loitq_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_loitq_gg_.__hide_loitq_gg_{display:none}.___SAria_loitq_gg_{transition-property:d;transition-duration:var(--duration_loitq);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SAria_loitq_gg_.__color_loitq_gg_{fill:var(--color_loitq)}" /*__inner_css_end__*/, "loitq_gg_") /*__reshadow_css_end__*/, {
19
- "__SLine": "___SLine_loitq_gg_",
20
- "--duration": "--duration_loitq",
21
- "_color": "__color_loitq_gg_",
22
- "--color": "--color_loitq",
23
- "_hide": "__hide_loitq_gg_",
24
- "_transparent": "__transparent_loitq_gg_",
25
- "__SNull": "___SNull_loitq_gg_",
26
- "__SAria": "___SAria_loitq_gg_"
18
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLine_1j13i_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_1j13i);transition-timing-function:ease-in-out}.___SLine_1j13i_gg_.__color_1j13i_gg_{stroke:var(--color_1j13i)}.___SLine_1j13i_gg_.__hide_1j13i_gg_{display:none}.___SLine_1j13i_gg_.__transparent_1j13i_gg_{opacity:.3}.___SNull_1j13i_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_1j13i_gg_.__hide_1j13i_gg_{display:none}.___SAria_1j13i_gg_{transition-property:d;transition-duration:var(--duration_1j13i);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SAria_1j13i_gg_.__color_1j13i_gg_{fill:var(--color_1j13i)}" /*__inner_css_end__*/, "1j13i_gg_") /*__reshadow_css_end__*/, {
19
+ "__SLine": "___SLine_1j13i_gg_",
20
+ "--duration": "--duration_1j13i",
21
+ "_color": "__color_1j13i_gg_",
22
+ "--color": "--color_1j13i",
23
+ "_hide": "__hide_1j13i_gg_",
24
+ "_transparent": "__transparent_1j13i_gg_",
25
+ "__SNull": "___SNull_1j13i_gg_",
26
+ "__SAria": "___SAria_1j13i_gg_"
27
27
  });
28
28
  var LineRoot = /*#__PURE__*/function (_Component) {
29
29
  _inherits(LineRoot, _Component);
@@ -201,7 +201,9 @@ function Area(props) {
201
201
  var _scale = _slicedToArray(scale, 2),
202
202
  xScale = _scale[0],
203
203
  yScale = _scale[1];
204
- var dataToArea = area !== null && area !== void 0 ? area : data;
204
+ var dataToArea = area !== null && area !== void 0 ? area : data.filter(function (d) {
205
+ return definedData(y0, y1)(d);
206
+ });
205
207
  var d3 = d3Area().curve(curve).x(function (data) {
206
208
  return xScale(data[x]);
207
209
  }).y0(function (data) {
@@ -1 +1 @@
1
- {"version":3,"file":"Line.js","names":["React","curveLinear","line","d3Line","area","d3Area","curveCardinal","Component","sstyled","uniqueIDEnhancement","useUID","createElement","definedData","definedNullData","scaleOfBandwidth","getNullData","interpolateValue","getChartDefaultColorName","Dots","AnimatedClipPath","resolvePatternDasharray","style","_sstyled","insert","LineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getDotsProps","_this$asProps","asProps","x","y","d3","color","resolveColor","duration","transparent","patterns","getNullProps","_this$asProps2","data","filter","item","getAreaProps","_this$asProps3","hide","scale","render","_ref","SLine","Element","_this$asProps4","styles","uid","size","dataHintsHandler","specifyDataRowFields","establishDataType","patternKey","Fragment","cn","concat","undefined","_defineProperty","_ref4","$rootProps","_ref4$curve","curve","_ref5","_ref6","_slicedToArray","xScale","yScale","defined","p","Null","props","_ref2","SNull","Area","_ref3","SAria","y0","y1","_props$curve","_scale","dataToArea"],"sources":["../../src/Line.jsx"],"sourcesContent":["import React from 'react';\nimport { curveLinear, line as d3Line, area as d3Area, curveCardinal } from 'd3-shape';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement, { useUID } from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport {\n definedData,\n definedNullData,\n scaleOfBandwidth,\n getNullData,\n interpolateValue,\n getChartDefaultColorName,\n} from './utils';\nimport Dots from './Dots';\nimport AnimatedClipPath from './AnimatedClipPath';\nimport { resolvePatternDasharray } from './Pattern';\n\nimport style from './style/line.shadow.css';\n\nclass LineRoot extends Component {\n static displayName = 'Line';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({ x, y, $rootProps, curve = curveLinear, scale }) => {\n const [xScale, yScale] = scale || $rootProps.scale;\n return {\n d3: d3Line()\n .defined(definedData(x, y))\n .curve(curve)\n .x((p) => scaleOfBandwidth(xScale, p[x]))\n .y((p) => scaleOfBandwidth(yScale, p[y])),\n duration: 500,\n };\n };\n\n getDotsProps() {\n const { x, y, d3, color, resolveColor, duration, transparent, patterns } = this.asProps;\n return {\n x,\n y,\n d3,\n color,\n resolveColor,\n duration,\n transparent,\n patterns,\n };\n }\n\n getNullProps() {\n const { x, y, d3, color, resolveColor } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n d3,\n // TODO: vertical\n data: getNullData(data, definedNullData(x, y), y),\n color,\n resolveColor,\n };\n }\n\n getAreaProps() {\n const { x, y, color, hide, duration, scale } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n x,\n y,\n data,\n color,\n hide,\n duration,\n scale,\n };\n }\n\n render() {\n const SLine = this.Element;\n const {\n styles,\n hide,\n color,\n resolveColor,\n uid,\n size,\n d3,\n duration,\n x,\n y,\n transparent,\n patterns,\n } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y);\n this.asProps.dataHintsHandler.establishDataType('time-series');\n\n const patternKey = color || getChartDefaultColorName(0);\n\n return sstyled(styles)(\n <>\n <SLine\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={resolveColor(color)}\n transparent={transparent}\n d={d3(data)}\n use:duration={`${duration}ms`}\n strokeDasharray={patterns ? resolvePatternDasharray(patternKey, patterns) : undefined}\n />\n {duration && (\n <AnimatedClipPath\n aria-hidden\n duration={duration}\n id={uid}\n x='0'\n y='0'\n width={0}\n height={size[1]}\n />\n )}\n </>,\n );\n }\n}\n\nfunction Null(props) {\n const { Element: SNull, styles, d3, data, hide } = props;\n return sstyled(styles)(<SNull render='path' d={d3(data)} hide={hide} />);\n}\n\nfunction Area(props) {\n const uid = useUID();\n const {\n Element: SAria,\n styles,\n data,\n hide,\n duration,\n color,\n scale,\n x,\n y0,\n y1,\n curve = curveCardinal,\n area,\n patterns,\n } = props;\n const [xScale, yScale] = scale;\n const dataToArea = area ?? data;\n\n const d3 = d3Area()\n .curve(curve)\n .x((data) => xScale(data[x]))\n .y0((data) => yScale(data[y0]))\n .y1((data) => yScale(data[y1]));\n\n return sstyled(styles)(\n <SAria\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={color}\n d={d3(dataToArea)}\n use:duration={`${duration}ms`}\n patterns={patterns}\n />,\n );\n}\n\nexport default createElement(LineRoot, {\n Dots,\n Null,\n Area,\n});\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,IAAI,IAAIC,MAAM,EAAEC,IAAI,IAAIC,MAAM,EAAEC,aAAa,QAAQ,UAAU;AACrF,SAASC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AAClD,OAAOC,mBAAmB,IAAIC,MAAM,QAAQ,6BAA6B;AACzE,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SACEC,WAAW,EACXC,eAAe,EACfC,gBAAgB,EAChBC,WAAW,EACXC,gBAAgB,EAChBC,wBAAwB,QACnB,SAAS;AAChB,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,uBAAuB,QAAQ,WAAW;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAI9CC,QAAQ,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,QAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,QAAA;EAAA,SAAAA,SAAA;IAAAK,eAAA,OAAAL,QAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,O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,MAAM,GAAAa,MAAA;EACrB,IAAMC,UAAU,GAAG1F,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI4C,IAAI;EAE/B,IAAMR,EAAE,GAAGnC,MAAM,EAAE,CAChBsE,KAAK,CAACA,KAAK,CAAC,CACZrC,CAAC,CAAC,UAACU,IAAI;IAAA,OAAK+B,MAAM,CAAC/B,IAAI,CAACV,CAAC,CAAC,CAAC;EAAA,EAAC,CAC5BoD,EAAE,CAAC,UAAC1C,IAAI;IAAA,OAAKgC,MAAM,CAAChC,IAAI,CAAC0C,EAAE,CAAC,CAAC;EAAA,EAAC,CAC9BC,EAAE,CAAC,UAAC3C,IAAI;IAAA,OAAKgC,MAAM,CAAChC,IAAI,CAAC2C,EAAE,CAAC,CAAC;EAAA,EAAC;EAEjC,OAAAH,KAAA,GAAOhF,OAAO,CAACoD,MAAM,CAAC,eACpB5D,KAAA,CAAAW,aAAA,CAAC8E,KAAK,EAAAD,KAAA,CAAApB,EAAA;IAAA;IAAA,oBAAAC,MAAA,CAEcR,GAAG;IAAA,UACd,MAAM;IAAA,QACPR,IAAI;IAAA,SACHZ,KAAK;IAAA,KACTD,EAAE,CAACsD,UAAU,CAAC;IAAA,mBAAAzB,MAAA,CACA1B,QAAQ;IAAA,YACfE;EAAQ,GAClB;AAEN;AAEA,eAAelC,aAAa,CAACa,QAAQ,EAAE;EACrCN,IAAI,EAAJA,IAAI;EACJiE,IAAI,EAAJA,IAAI;EACJI,IAAI,EAAJA;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"Line.js","names":["React","curveLinear","line","d3Line","area","d3Area","curveCardinal","Component","sstyled","uniqueIDEnhancement","useUID","createElement","definedData","definedNullData","scaleOfBandwidth","getNullData","interpolateValue","getChartDefaultColorName","Dots","AnimatedClipPath","resolvePatternDasharray","style","_sstyled","insert","LineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getDotsProps","_this$asProps","asProps","x","y","d3","color","resolveColor","duration","transparent","patterns","getNullProps","_this$asProps2","data","filter","item","getAreaProps","_this$asProps3","hide","scale","render","_ref","SLine","Element","_this$asProps4","styles","uid","size","dataHintsHandler","specifyDataRowFields","establishDataType","patternKey","Fragment","cn","concat","undefined","_defineProperty","_ref4","$rootProps","_ref4$curve","curve","_ref5","_ref6","_slicedToArray","xScale","yScale","defined","p","Null","props","_ref2","SNull","Area","_ref3","SAria","y0","y1","_props$curve","_scale","dataToArea","d"],"sources":["../../src/Line.jsx"],"sourcesContent":["import React from 'react';\nimport { curveLinear, line as d3Line, area as d3Area, curveCardinal } from 'd3-shape';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement, { useUID } from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport {\n definedData,\n definedNullData,\n scaleOfBandwidth,\n getNullData,\n interpolateValue,\n getChartDefaultColorName,\n} from './utils';\nimport Dots from './Dots';\nimport AnimatedClipPath from './AnimatedClipPath';\nimport { resolvePatternDasharray } from './Pattern';\n\nimport style from './style/line.shadow.css';\n\nclass LineRoot extends Component {\n static displayName = 'Line';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({ x, y, $rootProps, curve = curveLinear, scale }) => {\n const [xScale, yScale] = scale || $rootProps.scale;\n return {\n d3: d3Line()\n .defined(definedData(x, y))\n .curve(curve)\n .x((p) => scaleOfBandwidth(xScale, p[x]))\n .y((p) => scaleOfBandwidth(yScale, p[y])),\n duration: 500,\n };\n };\n\n getDotsProps() {\n const { x, y, d3, color, resolveColor, duration, transparent, patterns } = this.asProps;\n return {\n x,\n y,\n d3,\n color,\n resolveColor,\n duration,\n transparent,\n patterns,\n };\n }\n\n getNullProps() {\n const { x, y, d3, color, resolveColor } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n d3,\n // TODO: vertical\n data: getNullData(data, definedNullData(x, y), y),\n color,\n resolveColor,\n };\n }\n\n getAreaProps() {\n const { x, y, color, hide, duration, scale } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n x,\n y,\n data,\n color,\n hide,\n duration,\n scale,\n };\n }\n\n render() {\n const SLine = this.Element;\n const {\n styles,\n hide,\n color,\n resolveColor,\n uid,\n size,\n d3,\n duration,\n x,\n y,\n transparent,\n patterns,\n } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y);\n this.asProps.dataHintsHandler.establishDataType('time-series');\n\n const patternKey = color || getChartDefaultColorName(0);\n\n return sstyled(styles)(\n <>\n <SLine\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={resolveColor(color)}\n transparent={transparent}\n d={d3(data)}\n use:duration={`${duration}ms`}\n strokeDasharray={patterns ? resolvePatternDasharray(patternKey, patterns) : undefined}\n />\n {duration && (\n <AnimatedClipPath\n aria-hidden\n duration={duration}\n id={uid}\n x='0'\n y='0'\n width={0}\n height={size[1]}\n />\n )}\n </>,\n );\n }\n}\n\nfunction Null(props) {\n const { Element: SNull, styles, d3, data, hide } = props;\n return sstyled(styles)(<SNull render='path' d={d3(data)} hide={hide} />);\n}\n\nfunction Area(props) {\n const uid = useUID();\n const {\n Element: SAria,\n styles,\n data,\n hide,\n duration,\n color,\n scale,\n x,\n y0,\n y1,\n curve = curveCardinal,\n area,\n patterns,\n } = props;\n const [xScale, yScale] = scale;\n const dataToArea = area ?? data.filter((d) => definedData(y0, y1)(d));\n\n const d3 = d3Area()\n .curve(curve)\n .x((data) => xScale(data[x]))\n .y0((data) => yScale(data[y0]))\n .y1((data) => yScale(data[y1]));\n\n return sstyled(styles)(\n <SAria\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={color}\n d={d3(dataToArea)}\n use:duration={`${duration}ms`}\n patterns={patterns}\n />,\n );\n}\n\nexport default createElement(LineRoot, {\n Dots,\n Null,\n Area,\n});\n"],"mappings":";;;;;;;AAAA,OAAOA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AC,CAAC;EAAA,EAAC,CAC9BC,EAAE,CAAC,UAAC3C,IAAI;IAAA,OAAKgC,MAAM,CAAChC,IAAI,CAAC2C,EAAE,CAAC,CAAC;EAAA,EAAC;EAEjC,OAAAH,KAAA,GAAOhF,OAAO,CAACoD,MAAM,CAAC,eACpB5D,KAAA,CAAAW,aAAA,CAAC8E,KAAK,EAAAD,KAAA,CAAApB,EAAA;IAAA;IAAA,oBAAAC,MAAA,CAEcR,GAAG;IAAA,UACd,MAAM;IAAA,QACPR,IAAI;IAAA,SACHZ,KAAK;IAAA,KACTD,EAAE,CAACsD,UAAU,CAAC;IAAA,mBAAAzB,MAAA,CACA1B,QAAQ;IAAA,YACfE;EAAQ,GAClB;AAEN;AAEA,eAAelC,aAAa,CAACa,QAAQ,EAAE;EACrCN,IAAI,EAAJA,IAAI;EACJiE,IAAI,EAAJA,IAAI;EACJI,IAAI,EAAJA;AACF,CAAC,CAAC"}
@@ -18,9 +18,9 @@ import { PlotA11yModule } from './a11y/PlotA11yModule';
18
18
  import { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';
19
19
  import colorResolverEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
20
20
  /*__reshadow-styles__:"./style/plot.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlot_nprc8_gg_{overflow:hidden}.___SPlot_nprc8_gg_:active,.___SPlot_nprc8_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_nprc8_gg_.__keyboardFocused_nprc8_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "nprc8_gg_") /*__reshadow_css_end__*/, {
22
- "__SPlot": "___SPlot_nprc8_gg_",
23
- "_keyboardFocused": "__keyboardFocused_nprc8_gg_"
21
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlot_1np9z_gg_{overflow:hidden}.___SPlot_1np9z_gg_:active,.___SPlot_1np9z_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1np9z_gg_.__keyboardFocused_1np9z_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "1np9z_gg_") /*__reshadow_css_end__*/, {
22
+ "__SPlot": "___SPlot_1np9z_gg_",
23
+ "_keyboardFocused": "__keyboardFocused_1np9z_gg_"
24
24
  });
25
25
  var PlotRoot = /*#__PURE__*/function (_Component) {
26
26
  _inherits(PlotRoot, _Component);
@@ -22,25 +22,25 @@ import { CONSTANT, eventToPoint, getChartDefaultColorName, measureText } from '.
22
22
  import Tooltip from './Tooltip';
23
23
  import { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';
24
24
  /*__reshadow-styles__:"./style/radar.shadow.css"*/
25
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxisLine_dnyef_gg_,.___SAxisTick_dnyef_gg_,.___SAxis_dnyef_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_dnyef_gg_,.___SAxisTick_dnyef_gg_{stroke-dasharray:2}.___SAxisLine_dnyef_gg_.__active_dnyef_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_dnyef_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_dnyef_gg_.__xDirection_dnyef_gg_{text-anchor:var(--xDirection_dnyef)}.___SAxisLabel_dnyef_gg_.__yDirection_dnyef_gg_{dominant-baseline:var(--yDirection_dnyef)}.___SPolygonDot_dnyef_gg_,.___SPolygon_dnyef_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_dnyef_gg_{opacity:.2}.___SPolygon_dnyef_gg_.__color_dnyef_gg_{fill:var(--color_dnyef)}.___SPolygon_dnyef_gg_.__pattern_dnyef_gg_.__color_dnyef_gg_{fill:var(--pattern_dnyef);stroke:var(--color_dnyef);stroke-width:1px}.___SPolygonDot_dnyef_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_dnyef_gg_.__transparent_dnyef_gg_{opacity:.3}.___SPolygonDot_dnyef_gg_.__color_dnyef_gg_{fill:var(--color_dnyef)}.___SPolygonLine_dnyef_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_dnyef_gg_.__transparent_dnyef_gg_{opacity:.3}.___SPolygonLine_dnyef_gg_.__color_dnyef_gg_{stroke:var(--color_dnyef)}.___SPieRect_dnyef_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "dnyef_gg_") /*__reshadow_css_end__*/, {
26
- "__SAxis": "___SAxis_dnyef_gg_",
27
- "__SAxisLine": "___SAxisLine_dnyef_gg_",
28
- "__SAxisTick": "___SAxisTick_dnyef_gg_",
29
- "_active": "__active_dnyef_gg_",
30
- "__SAxisLabel": "___SAxisLabel_dnyef_gg_",
31
- "_xDirection": "__xDirection_dnyef_gg_",
32
- "--xDirection": "--xDirection_dnyef",
33
- "_yDirection": "__yDirection_dnyef_gg_",
34
- "--yDirection": "--yDirection_dnyef",
35
- "__SPolygon": "___SPolygon_dnyef_gg_",
36
- "_color": "__color_dnyef_gg_",
37
- "--color": "--color_dnyef",
38
- "_pattern": "__pattern_dnyef_gg_",
39
- "--pattern": "--pattern_dnyef",
40
- "__SPolygonDot": "___SPolygonDot_dnyef_gg_",
41
- "_transparent": "__transparent_dnyef_gg_",
42
- "__SPolygonLine": "___SPolygonLine_dnyef_gg_",
43
- "__SPieRect": "___SPieRect_dnyef_gg_"
25
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxisLine_d71gd_gg_,.___SAxisTick_d71gd_gg_,.___SAxis_d71gd_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_d71gd_gg_,.___SAxisTick_d71gd_gg_{stroke-dasharray:2}.___SAxisLine_d71gd_gg_.__active_d71gd_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_d71gd_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_d71gd_gg_.__xDirection_d71gd_gg_{text-anchor:var(--xDirection_d71gd)}.___SAxisLabel_d71gd_gg_.__yDirection_d71gd_gg_{dominant-baseline:var(--yDirection_d71gd)}.___SPolygonDot_d71gd_gg_,.___SPolygon_d71gd_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_d71gd_gg_{opacity:.2}.___SPolygon_d71gd_gg_.__color_d71gd_gg_{fill:var(--color_d71gd)}.___SPolygon_d71gd_gg_.__pattern_d71gd_gg_.__color_d71gd_gg_{fill:var(--pattern_d71gd);stroke:var(--color_d71gd);stroke-width:1px}.___SPolygonDot_d71gd_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_d71gd_gg_.__transparent_d71gd_gg_{opacity:.3}.___SPolygonDot_d71gd_gg_.__color_d71gd_gg_{fill:var(--color_d71gd)}.___SPolygonLine_d71gd_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_d71gd_gg_.__transparent_d71gd_gg_{opacity:.3}.___SPolygonLine_d71gd_gg_.__color_d71gd_gg_{stroke:var(--color_d71gd)}.___SPieRect_d71gd_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "d71gd_gg_") /*__reshadow_css_end__*/, {
26
+ "__SAxis": "___SAxis_d71gd_gg_",
27
+ "__SAxisLine": "___SAxisLine_d71gd_gg_",
28
+ "__SAxisTick": "___SAxisTick_d71gd_gg_",
29
+ "_active": "__active_d71gd_gg_",
30
+ "__SAxisLabel": "___SAxisLabel_d71gd_gg_",
31
+ "_xDirection": "__xDirection_d71gd_gg_",
32
+ "--xDirection": "--xDirection_d71gd",
33
+ "_yDirection": "__yDirection_d71gd_gg_",
34
+ "--yDirection": "--yDirection_d71gd",
35
+ "__SPolygon": "___SPolygon_d71gd_gg_",
36
+ "_color": "__color_d71gd_gg_",
37
+ "--color": "--color_d71gd",
38
+ "_pattern": "__pattern_d71gd_gg_",
39
+ "--pattern": "--pattern_d71gd",
40
+ "__SPolygonDot": "___SPolygonDot_d71gd_gg_",
41
+ "_transparent": "__transparent_d71gd_gg_",
42
+ "__SPolygonLine": "___SPolygonLine_d71gd_gg_",
43
+ "__SPieRect": "___SPieRect_d71gd_gg_"
44
44
  });
45
45
  var clampAngle = function clampAngle(angle) {
46
46
  angle = angle % (2 * Math.PI);
@@ -21,17 +21,17 @@ import createElement from './createElement';
21
21
  import { getChartDefaultColorName, measureText } from './utils';
22
22
  import { PatternSymbol, getPatternSymbolSize } from './Pattern';
23
23
  /*__reshadow-styles__:"./style/radial-tree.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_iofrt_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_iofrt_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_iofrt_gg_.__color_iofrt_gg_{stroke:var(--color_iofrt)}.___SLine_iofrt_gg_.__transparent_iofrt_gg_{opacity:.3}.___SCap_iofrt_gg_{transition:r .1s}.___SCap_iofrt_gg_.__pattern_iofrt_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_iofrt_gg_.__transparent_iofrt_gg_,.___SIcon_iofrt_gg_.__transparent_iofrt_gg_,.___SLabel_iofrt_gg_.__transparent_iofrt_gg_{opacity:.3}.___SLabel_iofrt_gg_{fill:var(--color_iofrt)}@media (hover:hover){.___SRadian_iofrt_gg_:hover .___SLabel_iofrt_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_iofrt_gg_{transition:none}}" /*__inner_css_end__*/, "iofrt_gg_") /*__reshadow_css_end__*/, {
25
- "__SRadian": "___SRadian_iofrt_gg_",
26
- "__SLine": "___SLine_iofrt_gg_",
27
- "_color": "__color_iofrt_gg_",
28
- "--color": "--color_iofrt",
29
- "_transparent": "__transparent_iofrt_gg_",
30
- "__SCap": "___SCap_iofrt_gg_",
31
- "_pattern": "__pattern_iofrt_gg_",
32
- "__SIcon": "___SIcon_iofrt_gg_",
33
- "__SLabel": "___SLabel_iofrt_gg_",
34
- "__SLineCap": "___SLineCap_iofrt_gg_"
24
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_1fb4g_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1fb4g_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1fb4g_gg_.__color_1fb4g_gg_{stroke:var(--color_1fb4g)}.___SLine_1fb4g_gg_.__transparent_1fb4g_gg_{opacity:.3}.___SCap_1fb4g_gg_{transition:r .1s}.___SCap_1fb4g_gg_.__pattern_1fb4g_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1fb4g_gg_.__transparent_1fb4g_gg_,.___SIcon_1fb4g_gg_.__transparent_1fb4g_gg_,.___SLabel_1fb4g_gg_.__transparent_1fb4g_gg_{opacity:.3}.___SLabel_1fb4g_gg_{fill:var(--color_1fb4g)}@media (hover:hover){.___SRadian_1fb4g_gg_:hover .___SLabel_1fb4g_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1fb4g_gg_{transition:none}}" /*__inner_css_end__*/, "1fb4g_gg_") /*__reshadow_css_end__*/, {
25
+ "__SRadian": "___SRadian_1fb4g_gg_",
26
+ "__SLine": "___SLine_1fb4g_gg_",
27
+ "_color": "__color_1fb4g_gg_",
28
+ "--color": "--color_1fb4g",
29
+ "_transparent": "__transparent_1fb4g_gg_",
30
+ "__SCap": "___SCap_1fb4g_gg_",
31
+ "_pattern": "__pattern_1fb4g_gg_",
32
+ "__SIcon": "___SIcon_1fb4g_gg_",
33
+ "__SLabel": "___SLabel_1fb4g_gg_",
34
+ "__SLineCap": "___SLineCap_1fb4g_gg_"
35
35
  });
36
36
  var baseAngle = -Math.PI / 2; // The top vertical line
37
37
  var RadialTreeBase = /*#__PURE__*/function (_Component) {
@@ -11,15 +11,15 @@ import { Component, sstyled } from 'intergalactic/core';
11
11
  import createElement from './createElement';
12
12
  import { scaleOfBandwidth } from './utils';
13
13
  /*__reshadow-styles__:"./style/reference-line.shadow.css"*/
14
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_1pp9i_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_1pp9i_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1pp9i)}.___STitle_1pp9i_gg_._position_top_1pp9i_gg_{text-anchor:middle}.___STitle_1pp9i_gg_._position_bottom_1pp9i_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1pp9i_gg_._position_left_1pp9i_gg_,.___STitle_1pp9i_gg_._position_right_1pp9i_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1pp9i_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "1pp9i_gg_") /*__reshadow_css_end__*/, {
15
- "__SReferenceLine": "___SReferenceLine_1pp9i_gg_",
16
- "__STitle": "___STitle_1pp9i_gg_",
17
- "--transform-origin": "--transform-origin_1pp9i",
18
- "_position_top": "_position_top_1pp9i_gg_",
19
- "_position_bottom": "_position_bottom_1pp9i_gg_",
20
- "_position_right": "_position_right_1pp9i_gg_",
21
- "_position_left": "_position_left_1pp9i_gg_",
22
- "__SBackground": "___SBackground_1pp9i_gg_"
14
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_1umhw_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_1umhw_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1umhw)}.___STitle_1umhw_gg_._position_top_1umhw_gg_{text-anchor:middle}.___STitle_1umhw_gg_._position_bottom_1umhw_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1umhw_gg_._position_left_1umhw_gg_,.___STitle_1umhw_gg_._position_right_1umhw_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1umhw_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "1umhw_gg_") /*__reshadow_css_end__*/, {
15
+ "__SReferenceLine": "___SReferenceLine_1umhw_gg_",
16
+ "__STitle": "___STitle_1umhw_gg_",
17
+ "--transform-origin": "--transform-origin_1umhw",
18
+ "_position_top": "_position_top_1umhw_gg_",
19
+ "_position_bottom": "_position_bottom_1umhw_gg_",
20
+ "_position_right": "_position_right_1umhw_gg_",
21
+ "_position_left": "_position_left_1umhw_gg_",
22
+ "__SBackground": "___SBackground_1umhw_gg_"
23
23
  });
24
24
  var side2direction = {
25
25
  left: 'vertical',
@@ -18,15 +18,15 @@ import { CONSTANT, getScatterPlotRadius } from './utils';
18
18
  import Tooltip from './Tooltip';
19
19
  import { PatternFill } from './Pattern';
20
20
  /*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1k923_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1k923);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1k923_gg_:hover{opacity:.8}}.___SScatterPlot_1k923_gg_.__color_1k923_gg_{fill:var(--color_1k923)}.___SScatterPlot_1k923_gg_.__pattern_1k923_gg_.__color_1k923_gg_{fill:var(--pattern_1k923);stroke:var(--color_1k923);stroke-width:1px}.___SScatterPlot_1k923_gg_.__transparent_1k923_gg_{opacity:.3}.___SValue_1k923_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1k923_gg_.__color_1k923_gg_{stroke:var(--color_1k923)}.___SValue_1k923_gg_.__transparent_1k923_gg_{opacity:.3}" /*__inner_css_end__*/, "1k923_gg_") /*__reshadow_css_end__*/, {
22
- "__SScatterPlot": "___SScatterPlot_1k923_gg_",
23
- "_color": "__color_1k923_gg_",
24
- "--color": "--color_1k923",
25
- "_pattern": "__pattern_1k923_gg_",
26
- "--pattern": "--pattern_1k923",
27
- "_transparent": "__transparent_1k923_gg_",
28
- "__SValue": "___SValue_1k923_gg_",
29
- "--duration": "--duration_1k923"
21
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1p1si_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1p1si);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1p1si_gg_:hover{opacity:.8}}.___SScatterPlot_1p1si_gg_.__color_1p1si_gg_{fill:var(--color_1p1si)}.___SScatterPlot_1p1si_gg_.__pattern_1p1si_gg_.__color_1p1si_gg_{fill:var(--pattern_1p1si);stroke:var(--color_1p1si);stroke-width:1px}.___SScatterPlot_1p1si_gg_.__transparent_1p1si_gg_{opacity:.3}.___SValue_1p1si_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1p1si_gg_.__color_1p1si_gg_{stroke:var(--color_1p1si)}.___SValue_1p1si_gg_.__transparent_1p1si_gg_{opacity:.3}" /*__inner_css_end__*/, "1p1si_gg_") /*__reshadow_css_end__*/, {
22
+ "__SScatterPlot": "___SScatterPlot_1p1si_gg_",
23
+ "_color": "__color_1p1si_gg_",
24
+ "--color": "--color_1p1si",
25
+ "_pattern": "__pattern_1p1si_gg_",
26
+ "--pattern": "--pattern_1p1si",
27
+ "_transparent": "__transparent_1p1si_gg_",
28
+ "__SValue": "___SValue_1p1si_gg_",
29
+ "--duration": "--duration_1p1si"
30
30
  });
31
31
  var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
32
32
  _inherits(ScatterPlotRoot, _Component);
@@ -21,15 +21,15 @@ import createElement from './createElement';
21
21
  import { CONSTANT, getChartDefaultColorName } from './utils';
22
22
  import { useColorResolver } from 'intergalactic/utils/lib/use/useColorResolver';
23
23
  /*__reshadow-styles__:"./style/tooltip.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_18x95_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_18x95_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_18x95_gg_{display:flex;align-items:center}.___SDot_18x95_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_18x95_gg_.__color_18x95_gg_{background-color:var(--color_18x95);width:12px;height:12px;border-radius:50%}.___SFooter_18x95_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "18x95_gg_") /*__reshadow_css_end__*/, {
25
- "__STooltip": "___STooltip_18x95_gg_",
26
- "__STitle": "___STitle_18x95_gg_",
27
- "__SDotGroup": "___SDotGroup_18x95_gg_",
28
- "__SDot": "___SDot_18x95_gg_",
29
- "__SDotCircle": "___SDotCircle_18x95_gg_",
30
- "_color": "__color_18x95_gg_",
31
- "--color": "--color_18x95",
32
- "__SFooter": "___SFooter_18x95_gg_"
24
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_12ob0_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_12ob0_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_12ob0_gg_{display:flex;align-items:center}.___SDot_12ob0_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_12ob0_gg_.__color_12ob0_gg_{background-color:var(--color_12ob0);width:12px;height:12px;border-radius:50%}.___SFooter_12ob0_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "12ob0_gg_") /*__reshadow_css_end__*/, {
25
+ "__STooltip": "___STooltip_12ob0_gg_",
26
+ "__STitle": "___STitle_12ob0_gg_",
27
+ "__SDotGroup": "___SDotGroup_12ob0_gg_",
28
+ "__SDot": "___SDot_12ob0_gg_",
29
+ "__SDotCircle": "___SDotCircle_12ob0_gg_",
30
+ "_color": "__color_12ob0_gg_",
31
+ "--color": "--color_12ob0",
32
+ "__SFooter": "___SFooter_12ob0_gg_"
33
33
  });
34
34
  import { PatternSymbol } from './Pattern';
35
35
 
@@ -20,15 +20,15 @@ import Tooltip from './Tooltip';
20
20
  import { PatternFill } from './Pattern';
21
21
  import uniqueIDEnhancement from 'intergalactic/utils/lib/uniqueID';
22
22
  /*__reshadow-styles__:"./style/venn.shadow.css"*/
23
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_1n2e1_gg_,.___SIntersection_1n2e1_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1n2e1_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1n2e1);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1n2e1_gg_:hover{fill-opacity:.7}}.___SCircle_1n2e1_gg_.__color_1n2e1_gg_{fill:var(--color_1n2e1)}.___SCircle_1n2e1_gg_.__pattern_1n2e1_gg_.__color_1n2e1_gg_{fill:var(--pattern_1n2e1);fill-opacity:.7;stroke:var(--color_1n2e1);stroke-width:1px}@media (hover:hover){.___SCircle_1n2e1_gg_.__pattern_1n2e1_gg_.__color_1n2e1_gg_:hover{fill-opacity:.85}}.___SCircle_1n2e1_gg_.__transparent_1n2e1_gg_{opacity:.3}.___SIntersection_1n2e1_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1n2e1_gg_:hover{fill-opacity:.1}}.___SIntersection_1n2e1_gg_.__transparent_1n2e1_gg_{opacity:.3}" /*__inner_css_end__*/, "1n2e1_gg_") /*__reshadow_css_end__*/, {
24
- "__SCircle": "___SCircle_1n2e1_gg_",
25
- "_color": "__color_1n2e1_gg_",
26
- "--color": "--color_1n2e1",
27
- "_transparent": "__transparent_1n2e1_gg_",
28
- "__SIntersection": "___SIntersection_1n2e1_gg_",
29
- "--duration": "--duration_1n2e1",
30
- "_pattern": "__pattern_1n2e1_gg_",
31
- "--pattern": "--pattern_1n2e1"
23
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_1quyc_gg_,.___SIntersection_1quyc_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1quyc_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1quyc);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1quyc_gg_:hover{fill-opacity:.7}}.___SCircle_1quyc_gg_.__color_1quyc_gg_{fill:var(--color_1quyc)}.___SCircle_1quyc_gg_.__pattern_1quyc_gg_.__color_1quyc_gg_{fill:var(--pattern_1quyc);fill-opacity:.7;stroke:var(--color_1quyc);stroke-width:1px}@media (hover:hover){.___SCircle_1quyc_gg_.__pattern_1quyc_gg_.__color_1quyc_gg_:hover{fill-opacity:.85}}.___SCircle_1quyc_gg_.__transparent_1quyc_gg_{opacity:.3}.___SIntersection_1quyc_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1quyc_gg_:hover{fill-opacity:.1}}.___SIntersection_1quyc_gg_.__transparent_1quyc_gg_{opacity:.3}" /*__inner_css_end__*/, "1quyc_gg_") /*__reshadow_css_end__*/, {
24
+ "__SCircle": "___SCircle_1quyc_gg_",
25
+ "_color": "__color_1quyc_gg_",
26
+ "--color": "--color_1quyc",
27
+ "_transparent": "__transparent_1quyc_gg_",
28
+ "__SIntersection": "___SIntersection_1quyc_gg_",
29
+ "--duration": "--duration_1quyc",
30
+ "_pattern": "__pattern_1quyc_gg_",
31
+ "--pattern": "--pattern_1quyc"
32
32
  });
33
33
  var VennRoot = /*#__PURE__*/function (_Component) {
34
34
  _inherits(VennRoot, _Component);
@@ -10,8 +10,8 @@ import { normalizeLocale } from './locale';
10
10
  import { localizedMessages } from './translations/module/__intergalactic-dynamic-locales';
11
11
  import { Root, sstyled } from 'intergalactic/core';
12
12
  /*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
13
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_37sxy_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_37sxy_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "37sxy_gg_") /*__reshadow_css_end__*/, {
14
- "__SPlotA11yModule": "___SPlotA11yModule_37sxy_gg_"
13
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_1cmzo_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1cmzo_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "1cmzo_gg_") /*__reshadow_css_end__*/, {
14
+ "__SPlotA11yModule": "___SPlotA11yModule_1cmzo_gg_"
15
15
  });
16
16
  import { Context as I18nContext, useI18n } from 'intergalactic/utils/lib/enhances/WithI18n';
17
17
  import { Box } from 'intergalactic/flex-box';
@@ -13,8 +13,8 @@ import { getIntl } from './intl';
13
13
  import { summarize } from './summarize';
14
14
  import { Root, sstyled } from 'intergalactic/core';
15
15
  /*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
16
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_1xmqn_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_1xmqn_gg_:focus,.___SPlotA11yView_1xmqn_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_1xmqn_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1xmqn_gg_ table,.___SPlotA11yView_1xmqn_gg_ td,.___SPlotA11yView_1xmqn_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "1xmqn_gg_") /*__reshadow_css_end__*/, {
17
- "__SPlotA11yView": "___SPlotA11yView_1xmqn_gg_"
16
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_tg0cl_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_tg0cl_gg_:focus,.___SPlotA11yView_tg0cl_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_tg0cl_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_tg0cl_gg_ table,.___SPlotA11yView_tg0cl_gg_ td,.___SPlotA11yView_tg0cl_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "tg0cl_gg_") /*__reshadow_css_end__*/, {
17
+ "__SPlotA11yView": "___SPlotA11yView_tg0cl_gg_"
18
18
  });
19
19
  import { Box } from 'intergalactic/flex-box';
20
20
  import { useAsyncI18nMessages } from 'intergalactic/utils/lib/enhances/i18nEnhance';
@@ -10,10 +10,10 @@ import React from 'react';
10
10
  import createComponent, { sstyled, Root } from 'intergalactic/core';
11
11
  import { Flex } from 'intergalactic/flex-box';
12
12
  /*__reshadow-styles__:"./legend-flex.shadow.css"*/
13
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_1dbxd_gg_._direction_row_1dbxd_gg_{align-items:center;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1dbxd_gg_._direction_column_1dbxd_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "1dbxd_gg_") /*__reshadow_css_end__*/, {
14
- "__SLegendFlex": "___SLegendFlex_1dbxd_gg_",
15
- "_direction_row": "_direction_row_1dbxd_gg_",
16
- "_direction_column": "_direction_column_1dbxd_gg_"
13
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_12wpo_gg_._direction_row_12wpo_gg_{align-items:center;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_12wpo_gg_._direction_column_12wpo_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "12wpo_gg_") /*__reshadow_css_end__*/, {
14
+ "__SLegendFlex": "___SLegendFlex_12wpo_gg_",
15
+ "_direction_row": "_direction_row_12wpo_gg_",
16
+ "_direction_column": "_direction_column_12wpo_gg_"
17
17
  });
18
18
  import { LegendItemComponent } from '../LegendItem/LegendItem';
19
19
  import Divider from 'intergalactic/divider';
@@ -19,23 +19,23 @@ import { Flex, Box } from 'intergalactic/flex-box';
19
19
  import Checkbox from 'intergalactic/checkbox';
20
20
  import { Text as TypographyText } from 'intergalactic/typography';
21
21
  /*__reshadow-styles__:"./legend-item.shadow.css"*/
22
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_7s8xo_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_7s8xo_gg_:hover{cursor:pointer}.___SLegendItem_7s8xo_gg_.__disabled_7s8xo_gg_:hover{cursor:default}}.___SPointShape_7s8xo_gg_.__color_7s8xo_gg_{background-color:var(--color_7s8xo);margin-right:8px;flex-shrink:0}.___SPointShape_7s8xo_gg_._shape_Circle_7s8xo_gg_._size_l_7s8xo_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_7s8xo_gg_._shape_Circle_7s8xo_gg_._size_m_7s8xo_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_7s8xo_gg_._shape_Line_7s8xo_gg_._size_l_7s8xo_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_7s8xo_gg_._shape_Line_7s8xo_gg_._size_m_7s8xo_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_7s8xo_gg_._shape_Square_7s8xo_gg_._size_l_7s8xo_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_7s8xo_gg_._shape_Square_7s8xo_gg_._size_m_7s8xo_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_7s8xo_gg_._shape_Pattern_7s8xo_gg_{background-color:transparent;margin-right:4px}.___SIcon_7s8xo_gg_{line-height:0;margin-right:4px}.___SIcon_7s8xo_gg_._size_l_7s8xo_gg_{margin-top:4px}.___SIcon_7s8xo_gg_._size_m_7s8xo_gg_{margin-top:2px}.___SLabel_7s8xo_gg_{min-width:0}.___SAdditionalLabel_7s8xo_gg_._size_l_7s8xo_gg_,.___SCount_7s8xo_gg_._size_l_7s8xo_gg_,.___SLabel_7s8xo_gg_._size_l_7s8xo_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_7s8xo_gg_._size_m_7s8xo_gg_,.___SCount_7s8xo_gg_._size_m_7s8xo_gg_,.___SLabel_7s8xo_gg_._size_m_7s8xo_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_7s8xo_gg_,.___SCount_7s8xo_gg_{margin-left:4px}.___SAdditionalLabel_7s8xo_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_7s8xo_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_7s8xo_gg_._size_l_7s8xo_gg_::before{margin-top:10px}.___SAdditionalLabel_7s8xo_gg_._size_m_7s8xo_gg_::before{margin-top:8px}.___SPatternSymbol_7s8xo_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "7s8xo_gg_") /*__reshadow_css_end__*/, {
23
- "__SLegendItem": "___SLegendItem_7s8xo_gg_",
24
- "_disabled": "__disabled_7s8xo_gg_",
25
- "__SPointShape": "___SPointShape_7s8xo_gg_",
26
- "_color": "__color_7s8xo_gg_",
27
- "--color": "--color_7s8xo",
28
- "_shape_Circle": "_shape_Circle_7s8xo_gg_",
29
- "_size_l": "_size_l_7s8xo_gg_",
30
- "_size_m": "_size_m_7s8xo_gg_",
31
- "_shape_Line": "_shape_Line_7s8xo_gg_",
32
- "_shape_Square": "_shape_Square_7s8xo_gg_",
33
- "_shape_Pattern": "_shape_Pattern_7s8xo_gg_",
34
- "__SIcon": "___SIcon_7s8xo_gg_",
35
- "__SLabel": "___SLabel_7s8xo_gg_",
36
- "__SAdditionalLabel": "___SAdditionalLabel_7s8xo_gg_",
37
- "__SCount": "___SCount_7s8xo_gg_",
38
- "__SPatternSymbol": "___SPatternSymbol_7s8xo_gg_"
22
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_1w0pc_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1w0pc_gg_:hover{cursor:pointer}.___SLegendItem_1w0pc_gg_.__disabled_1w0pc_gg_:hover{cursor:default}}.___SPointShape_1w0pc_gg_.__color_1w0pc_gg_{background-color:var(--color_1w0pc);margin-right:8px;flex-shrink:0}.___SPointShape_1w0pc_gg_._shape_Circle_1w0pc_gg_._size_l_1w0pc_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Circle_1w0pc_gg_._size_m_1w0pc_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Line_1w0pc_gg_._size_l_1w0pc_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1w0pc_gg_._shape_Line_1w0pc_gg_._size_m_1w0pc_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1w0pc_gg_._shape_Square_1w0pc_gg_._size_l_1w0pc_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Square_1w0pc_gg_._size_m_1w0pc_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Pattern_1w0pc_gg_{background-color:transparent;margin-right:4px}.___SIcon_1w0pc_gg_{line-height:0;margin-right:4px}.___SIcon_1w0pc_gg_._size_l_1w0pc_gg_{margin-top:4px}.___SIcon_1w0pc_gg_._size_m_1w0pc_gg_{margin-top:2px}.___SLabel_1w0pc_gg_{min-width:0}.___SAdditionalLabel_1w0pc_gg_._size_l_1w0pc_gg_,.___SCount_1w0pc_gg_._size_l_1w0pc_gg_,.___SLabel_1w0pc_gg_._size_l_1w0pc_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1w0pc_gg_._size_m_1w0pc_gg_,.___SCount_1w0pc_gg_._size_m_1w0pc_gg_,.___SLabel_1w0pc_gg_._size_m_1w0pc_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1w0pc_gg_,.___SCount_1w0pc_gg_{margin-left:4px}.___SAdditionalLabel_1w0pc_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1w0pc_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_1w0pc_gg_._size_l_1w0pc_gg_::before{margin-top:10px}.___SAdditionalLabel_1w0pc_gg_._size_m_1w0pc_gg_::before{margin-top:8px}.___SPatternSymbol_1w0pc_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "1w0pc_gg_") /*__reshadow_css_end__*/, {
23
+ "__SLegendItem": "___SLegendItem_1w0pc_gg_",
24
+ "_disabled": "__disabled_1w0pc_gg_",
25
+ "__SPointShape": "___SPointShape_1w0pc_gg_",
26
+ "_color": "__color_1w0pc_gg_",
27
+ "--color": "--color_1w0pc",
28
+ "_shape_Circle": "_shape_Circle_1w0pc_gg_",
29
+ "_size_l": "_size_l_1w0pc_gg_",
30
+ "_size_m": "_size_m_1w0pc_gg_",
31
+ "_shape_Line": "_shape_Line_1w0pc_gg_",
32
+ "_shape_Square": "_shape_Square_1w0pc_gg_",
33
+ "_shape_Pattern": "_shape_Pattern_1w0pc_gg_",
34
+ "__SIcon": "___SIcon_1w0pc_gg_",
35
+ "__SLabel": "___SLabel_1w0pc_gg_",
36
+ "__SAdditionalLabel": "___SAdditionalLabel_1w0pc_gg_",
37
+ "__SCount": "___SCount_1w0pc_gg_",
38
+ "__SPatternSymbol": "___SPatternSymbol_1w0pc_gg_"
39
39
  });
40
40
  import { StaticShapes } from './LegendItem.type';
41
41
  import resolveColorEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';