@semcore/d3-chart 3.59.2 → 3.60.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.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +12 -12
- package/lib/cjs/CompactHorizontalBar.js +16 -16
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +3 -3
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +12 -12
- package/lib/cjs/Reference.js +12 -12
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +9 -9
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +12 -12
- package/lib/es6/CompactHorizontalBar.js +16 -16
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +3 -3
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +12 -12
- package/lib/es6/Reference.js +12 -12
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +9 -9
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/package.json +3 -3
package/lib/es6/RadialTree.js
CHANGED
|
@@ -21,18 +21,18 @@ 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__*/".
|
|
25
|
-
"__SRadian": "
|
|
26
|
-
"__SLine": "
|
|
27
|
-
"_stroke": "
|
|
28
|
-
"--stroke": "--
|
|
29
|
-
"_transparent": "
|
|
30
|
-
"__SCap": "
|
|
31
|
-
"_pattern": "
|
|
32
|
-
"__SIcon": "
|
|
33
|
-
"__SLabel": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"__SLineCap": "
|
|
24
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_9fd75_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_9fd75_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_9fd75_gg_.__stroke_9fd75_gg_{stroke:var(--stroke_9fd75)}.___SLine_9fd75_gg_.__transparent_9fd75_gg_{opacity:.3}.___SCap_9fd75_gg_{transition:r .1s}.___SCap_9fd75_gg_.__pattern_9fd75_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_9fd75_gg_.__transparent_9fd75_gg_,.___SIcon_9fd75_gg_.__transparent_9fd75_gg_,.___SLabel_9fd75_gg_.__transparent_9fd75_gg_{opacity:.3}.___SLabel_9fd75_gg_{fill:var(--color_9fd75)}@media (hover:hover){.___SRadian_9fd75_gg_:hover .___SLabel_9fd75_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_9fd75_gg_{transition:none}}" /*__inner_css_end__*/, "9fd75_gg_") /*__reshadow_css_end__*/, {
|
|
25
|
+
"__SRadian": "___SRadian_9fd75_gg_",
|
|
26
|
+
"__SLine": "___SLine_9fd75_gg_",
|
|
27
|
+
"_stroke": "__stroke_9fd75_gg_",
|
|
28
|
+
"--stroke": "--stroke_9fd75",
|
|
29
|
+
"_transparent": "__transparent_9fd75_gg_",
|
|
30
|
+
"__SCap": "___SCap_9fd75_gg_",
|
|
31
|
+
"_pattern": "__pattern_9fd75_gg_",
|
|
32
|
+
"__SIcon": "___SIcon_9fd75_gg_",
|
|
33
|
+
"__SLabel": "___SLabel_9fd75_gg_",
|
|
34
|
+
"--color": "--color_9fd75",
|
|
35
|
+
"__SLineCap": "___SLineCap_9fd75_gg_"
|
|
36
36
|
});
|
|
37
37
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
38
38
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Reference.js
CHANGED
|
@@ -12,18 +12,18 @@ import uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';
|
|
|
12
12
|
import createElement from './createElement';
|
|
13
13
|
import { scaleOfBandwidth } from './utils';
|
|
14
14
|
/*__reshadow-styles__:"./style/reference.shadow.css"*/
|
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
16
|
-
"__SReferenceLine": "
|
|
17
|
-
"__STitle": "
|
|
18
|
-
"--transform-origin": "--transform-
|
|
19
|
-
"_position_top": "
|
|
20
|
-
"_position_bottom": "
|
|
21
|
-
"_position_right": "
|
|
22
|
-
"_position_left": "
|
|
23
|
-
"__SBackground": "
|
|
24
|
-
"__SStripes": "
|
|
25
|
-
"--fill": "--
|
|
26
|
-
"__SStripesPatternPath": "
|
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_1lsl9_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1lsl9_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1lsl9)}.___STitle_1lsl9_gg_._position_top_1lsl9_gg_{text-anchor:middle}.___STitle_1lsl9_gg_._position_bottom_1lsl9_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1lsl9_gg_._position_left_1lsl9_gg_,.___STitle_1lsl9_gg_._position_right_1lsl9_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1lsl9_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_1lsl9_gg_{fill:var(--fill_1lsl9)}.___SStripesPatternPath_1lsl9_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}" /*__inner_css_end__*/, "1lsl9_gg_") /*__reshadow_css_end__*/, {
|
|
16
|
+
"__SReferenceLine": "___SReferenceLine_1lsl9_gg_",
|
|
17
|
+
"__STitle": "___STitle_1lsl9_gg_",
|
|
18
|
+
"--transform-origin": "--transform-origin_1lsl9",
|
|
19
|
+
"_position_top": "_position_top_1lsl9_gg_",
|
|
20
|
+
"_position_bottom": "_position_bottom_1lsl9_gg_",
|
|
21
|
+
"_position_right": "_position_right_1lsl9_gg_",
|
|
22
|
+
"_position_left": "_position_left_1lsl9_gg_",
|
|
23
|
+
"__SBackground": "___SBackground_1lsl9_gg_",
|
|
24
|
+
"__SStripes": "___SStripes_1lsl9_gg_",
|
|
25
|
+
"--fill": "--fill_1lsl9",
|
|
26
|
+
"__SStripesPatternPath": "___SStripesPatternPath_1lsl9_gg_"
|
|
27
27
|
});
|
|
28
28
|
var side2direction = {
|
|
29
29
|
left: 'vertical',
|
package/lib/es6/ScatterPlot.js
CHANGED
|
@@ -18,15 +18,15 @@ import { 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__*/".
|
|
22
|
-
"__SScatterPlot": "
|
|
23
|
-
"_color": "
|
|
24
|
-
"--color": "--
|
|
25
|
-
"_pattern": "
|
|
26
|
-
"--pattern": "--
|
|
27
|
-
"_transparent": "
|
|
28
|
-
"__SValue": "
|
|
29
|
-
"--duration": "--
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_vhfd4_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_vhfd4);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_vhfd4_gg_:hover{opacity:.8}}.___SScatterPlot_vhfd4_gg_.__color_vhfd4_gg_{fill:var(--color_vhfd4)}.___SScatterPlot_vhfd4_gg_.__pattern_vhfd4_gg_.__color_vhfd4_gg_{fill:var(--pattern_vhfd4);stroke:var(--color_vhfd4);stroke-width:1px}.___SScatterPlot_vhfd4_gg_.__transparent_vhfd4_gg_{opacity:.3}.___SValue_vhfd4_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_vhfd4_gg_.__color_vhfd4_gg_{stroke:var(--color_vhfd4)}.___SValue_vhfd4_gg_.__transparent_vhfd4_gg_{opacity:.3}" /*__inner_css_end__*/, "vhfd4_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SScatterPlot": "___SScatterPlot_vhfd4_gg_",
|
|
23
|
+
"_color": "__color_vhfd4_gg_",
|
|
24
|
+
"--color": "--color_vhfd4",
|
|
25
|
+
"_pattern": "__pattern_vhfd4_gg_",
|
|
26
|
+
"--pattern": "--pattern_vhfd4",
|
|
27
|
+
"_transparent": "__transparent_vhfd4_gg_",
|
|
28
|
+
"__SValue": "___SValue_vhfd4_gg_",
|
|
29
|
+
"--duration": "--duration_vhfd4"
|
|
30
30
|
});
|
|
31
31
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
|
32
32
|
_inherits(ScatterPlotRoot, _Component);
|
package/lib/es6/Tooltip.js
CHANGED
|
@@ -21,15 +21,15 @@ import createElement from './createElement';
|
|
|
21
21
|
import { getChartDefaultColorName } from './utils';
|
|
22
22
|
import { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';
|
|
23
23
|
/*__reshadow-styles__:"./style/tooltip.shadow.css"*/
|
|
24
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
25
|
-
"__STooltip": "
|
|
26
|
-
"__STitle": "
|
|
27
|
-
"__SDotGroup": "
|
|
28
|
-
"__SDot": "
|
|
29
|
-
"__SDotCircle": "
|
|
30
|
-
"_color": "
|
|
31
|
-
"--color": "--
|
|
32
|
-
"__SFooter": "
|
|
24
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_1sacj_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_1sacj_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_1sacj_gg_{display:flex;align-items:center}.___SDot_1sacj_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1sacj_gg_.__color_1sacj_gg_{background-color:var(--color_1sacj);width:8px;height:8px;border-radius:50%}.___SFooter_1sacj_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__*/, "1sacj_gg_") /*__reshadow_css_end__*/, {
|
|
25
|
+
"__STooltip": "___STooltip_1sacj_gg_",
|
|
26
|
+
"__STitle": "___STitle_1sacj_gg_",
|
|
27
|
+
"__SDotGroup": "___SDotGroup_1sacj_gg_",
|
|
28
|
+
"__SDot": "___SDot_1sacj_gg_",
|
|
29
|
+
"__SDotCircle": "___SDotCircle_1sacj_gg_",
|
|
30
|
+
"_color": "__color_1sacj_gg_",
|
|
31
|
+
"--color": "--color_1sacj",
|
|
32
|
+
"__SFooter": "___SFooter_1sacj_gg_"
|
|
33
33
|
});
|
|
34
34
|
import { PatternSymbol } from './Pattern';
|
|
35
35
|
|
package/lib/es6/Venn.js
CHANGED
|
@@ -20,15 +20,15 @@ import Tooltip from './Tooltip';
|
|
|
20
20
|
import { PatternFill } from './Pattern';
|
|
21
21
|
import uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';
|
|
22
22
|
/*__reshadow-styles__:"./style/venn.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
24
|
-
"__SCircle": "
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"_transparent": "
|
|
28
|
-
"__SIntersection": "
|
|
29
|
-
"--duration": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
23
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_18er9_gg_,.___SIntersection_18er9_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_18er9_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_18er9);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_18er9_gg_:hover{fill-opacity:.7}}.___SCircle_18er9_gg_.__color_18er9_gg_{fill:var(--color_18er9)}.___SCircle_18er9_gg_.__pattern_18er9_gg_.__color_18er9_gg_{fill:var(--pattern_18er9);fill-opacity:.7;stroke:var(--color_18er9);stroke-width:1px}@media (hover:hover){.___SCircle_18er9_gg_.__pattern_18er9_gg_.__color_18er9_gg_:hover{fill-opacity:.85}}.___SCircle_18er9_gg_.__transparent_18er9_gg_{opacity:.3}.___SIntersection_18er9_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_18er9_gg_:hover{fill-opacity:.1}}.___SIntersection_18er9_gg_.__transparent_18er9_gg_{opacity:.3}" /*__inner_css_end__*/, "18er9_gg_") /*__reshadow_css_end__*/, {
|
|
24
|
+
"__SCircle": "___SCircle_18er9_gg_",
|
|
25
|
+
"_color": "__color_18er9_gg_",
|
|
26
|
+
"--color": "--color_18er9",
|
|
27
|
+
"_transparent": "__transparent_18er9_gg_",
|
|
28
|
+
"__SIntersection": "___SIntersection_18er9_gg_",
|
|
29
|
+
"--duration": "--duration_18er9",
|
|
30
|
+
"_pattern": "__pattern_18er9_gg_",
|
|
31
|
+
"--pattern": "--pattern_18er9"
|
|
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 '@semcore/core';
|
|
12
12
|
/*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
|
|
13
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
14
|
-
"__SPlotA11yModule": "
|
|
13
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_hqyv2_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_hqyv2_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "hqyv2_gg_") /*__reshadow_css_end__*/, {
|
|
14
|
+
"__SPlotA11yModule": "___SPlotA11yModule_hqyv2_gg_"
|
|
15
15
|
});
|
|
16
16
|
import { Context as I18nContext, useI18n } from '@semcore/utils/lib/enhances/WithI18n';
|
|
17
17
|
import { Box } from '@semcore/flex-box';
|
|
@@ -9,8 +9,8 @@ import { getIntl } from './intl';
|
|
|
9
9
|
import { summarize } from './summarize';
|
|
10
10
|
import { Root, sstyled } from '@semcore/core';
|
|
11
11
|
/*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
|
|
12
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
13
|
-
"__SPlotA11yView": "
|
|
12
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_p2ant_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_p2ant_gg_:focus,.___SPlotA11yView_p2ant_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_p2ant_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_p2ant_gg_ table,.___SPlotA11yView_p2ant_gg_ td,.___SPlotA11yView_p2ant_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "p2ant_gg_") /*__reshadow_css_end__*/, {
|
|
13
|
+
"__SPlotA11yView": "___SPlotA11yView_p2ant_gg_"
|
|
14
14
|
});
|
|
15
15
|
import { Box } from '@semcore/flex-box';
|
|
16
16
|
import { useAsyncI18nMessages } from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
@@ -10,10 +10,10 @@ import React from 'react';
|
|
|
10
10
|
import createComponent, { sstyled, Root } from '@semcore/core';
|
|
11
11
|
import { Flex } from '@semcore/flex-box';
|
|
12
12
|
/*__reshadow-styles__:"./legend-flex.shadow.css"*/
|
|
13
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
14
|
-
"__SLegendFlex": "
|
|
15
|
-
"_direction_row": "
|
|
16
|
-
"_direction_column": "
|
|
13
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_18uo4_gg_._direction_row_18uo4_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_18uo4_gg_._direction_column_18uo4_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "18uo4_gg_") /*__reshadow_css_end__*/, {
|
|
14
|
+
"__SLegendFlex": "___SLegendFlex_18uo4_gg_",
|
|
15
|
+
"_direction_row": "_direction_row_18uo4_gg_",
|
|
16
|
+
"_direction_column": "_direction_column_18uo4_gg_"
|
|
17
17
|
});
|
|
18
18
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
|
19
19
|
import Divider from '@semcore/divider';
|
|
@@ -19,23 +19,23 @@ import { Flex, Box } from '@semcore/flex-box';
|
|
|
19
19
|
import Checkbox from '@semcore/checkbox';
|
|
20
20
|
import { Text as TypographyText } from '@semcore/typography';
|
|
21
21
|
/*__reshadow-styles__:"./legend-item.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
23
|
-
"__SLegendItem": "
|
|
24
|
-
"_disabled": "
|
|
25
|
-
"__SPointShape": "
|
|
26
|
-
"_color": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_shape_Circle": "
|
|
29
|
-
"_size_l": "
|
|
30
|
-
"_size_m": "
|
|
31
|
-
"_shape_Line": "
|
|
32
|
-
"_shape_Square": "
|
|
33
|
-
"_shape_Pattern": "
|
|
34
|
-
"__SIcon": "
|
|
35
|
-
"__SLabel": "
|
|
36
|
-
"__SAdditionalLabel": "
|
|
37
|
-
"__SCount": "
|
|
38
|
-
"__SPatternSymbol": "
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_y85ng_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_y85ng_gg_:hover{cursor:pointer}.___SLegendItem_y85ng_gg_.__disabled_y85ng_gg_:hover{cursor:default}}.___SPointShape_y85ng_gg_.__color_y85ng_gg_{background-color:var(--color_y85ng);margin-right:8px;flex-shrink:0}.___SPointShape_y85ng_gg_._shape_Circle_y85ng_gg_._size_l_y85ng_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_y85ng_gg_._shape_Circle_y85ng_gg_._size_m_y85ng_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_y85ng_gg_._shape_Line_y85ng_gg_._size_l_y85ng_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_y85ng_gg_._shape_Line_y85ng_gg_._size_m_y85ng_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_y85ng_gg_._shape_Square_y85ng_gg_._size_l_y85ng_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_y85ng_gg_._shape_Square_y85ng_gg_._size_m_y85ng_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_y85ng_gg_._shape_Pattern_y85ng_gg_{background-color:transparent;margin-right:4px}.___SIcon_y85ng_gg_{line-height:0;margin-right:4px}.___SIcon_y85ng_gg_._size_l_y85ng_gg_{margin-top:4px}.___SIcon_y85ng_gg_._size_m_y85ng_gg_{margin-top:2px}.___SLabel_y85ng_gg_{min-width:0}.___SAdditionalLabel_y85ng_gg_._size_l_y85ng_gg_,.___SCount_y85ng_gg_._size_l_y85ng_gg_,.___SLabel_y85ng_gg_._size_l_y85ng_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_y85ng_gg_._size_m_y85ng_gg_,.___SCount_y85ng_gg_._size_m_y85ng_gg_,.___SLabel_y85ng_gg_._size_m_y85ng_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_y85ng_gg_,.___SCount_y85ng_gg_{margin-left:4px}.___SAdditionalLabel_y85ng_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_y85ng_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_y85ng_gg_._size_l_y85ng_gg_::before{margin-top:10px}.___SAdditionalLabel_y85ng_gg_._size_m_y85ng_gg_::before{margin-top:8px}.___SPatternSymbol_y85ng_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "y85ng_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SLegendItem": "___SLegendItem_y85ng_gg_",
|
|
24
|
+
"_disabled": "__disabled_y85ng_gg_",
|
|
25
|
+
"__SPointShape": "___SPointShape_y85ng_gg_",
|
|
26
|
+
"_color": "__color_y85ng_gg_",
|
|
27
|
+
"--color": "--color_y85ng",
|
|
28
|
+
"_shape_Circle": "_shape_Circle_y85ng_gg_",
|
|
29
|
+
"_size_l": "_size_l_y85ng_gg_",
|
|
30
|
+
"_size_m": "_size_m_y85ng_gg_",
|
|
31
|
+
"_shape_Line": "_shape_Line_y85ng_gg_",
|
|
32
|
+
"_shape_Square": "_shape_Square_y85ng_gg_",
|
|
33
|
+
"_shape_Pattern": "_shape_Pattern_y85ng_gg_",
|
|
34
|
+
"__SIcon": "___SIcon_y85ng_gg_",
|
|
35
|
+
"__SLabel": "___SLabel_y85ng_gg_",
|
|
36
|
+
"__SAdditionalLabel": "___SAdditionalLabel_y85ng_gg_",
|
|
37
|
+
"__SCount": "___SCount_y85ng_gg_",
|
|
38
|
+
"__SPatternSymbol": "___SPatternSymbol_y85ng_gg_"
|
|
39
39
|
});
|
|
40
40
|
import { StaticShapes } from './LegendItem.type';
|
|
41
41
|
import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
|
|
@@ -11,12 +11,12 @@ import React from 'react';
|
|
|
11
11
|
import createComponent, { sstyled, Root } from '@semcore/core';
|
|
12
12
|
import { Box } from '@semcore/flex-box';
|
|
13
13
|
/*__reshadow-styles__:"./legend-table.shadow.css"*/
|
|
14
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
15
|
-
"__SLegendTable": "
|
|
16
|
-
"_columns-count": "__columns-
|
|
17
|
-
"__SColumnItem": "
|
|
18
|
-
"_size_l": "
|
|
19
|
-
"_size_m": "
|
|
14
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendTable_11w0m_gg_.__columns-count_11w0m_gg_{font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_11w0m_gg_._size_l_11w0m_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_11w0m_gg_._size_m_11w0m_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "11w0m_gg_") /*__reshadow_css_end__*/, {
|
|
15
|
+
"__SLegendTable": "___SLegendTable_11w0m_gg_",
|
|
16
|
+
"_columns-count": "__columns-count_11w0m_gg_",
|
|
17
|
+
"__SColumnItem": "___SColumnItem_11w0m_gg_",
|
|
18
|
+
"_size_l": "_size_l_11w0m_gg_",
|
|
19
|
+
"_size_m": "_size_m_11w0m_gg_"
|
|
20
20
|
});
|
|
21
21
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
|
22
22
|
import { BaseLegend } from '../BaseLegend';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/d3-chart",
|
|
3
3
|
"description": "Semrush D3 Chart Component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.60.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@semcore/flex-box": "5.41.2",
|
|
22
22
|
"@semcore/popper": "5.46.2",
|
|
23
23
|
"@semcore/utils": "4.48.2",
|
|
24
|
-
"@semcore/typography": "5.
|
|
25
|
-
"@semcore/icon": "4.
|
|
24
|
+
"@semcore/typography": "5.53.0",
|
|
25
|
+
"@semcore/icon": "4.61.0",
|
|
26
26
|
"@types/d3-shape": "^3.1.0",
|
|
27
27
|
"@upsetjs/venn.js": "1.4.2",
|
|
28
28
|
"d3-array": "3.1.6",
|