@semcore/d3-chart 3.30.1 → 3.31.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 +17 -1
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +10 -10
- package/lib/cjs/Bubble.js +12 -12
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +9 -9
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +10 -10
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +12 -10
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Plot.js +3 -3
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +11 -11
- package/lib/cjs/ReferenceLine.js +9 -9
- 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/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +10 -10
- package/lib/es6/Bubble.js +12 -12
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +9 -9
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/HorizontalBar.js +10 -10
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +12 -10
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Plot.js +3 -3
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +11 -11
- package/lib/es6/ReferenceLine.js +9 -9
- 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/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/types/Area.d.ts +2 -2
- package/lib/types/Line.d.ts +2 -2
- package/package.json +7 -7
package/lib/cjs/ScatterPlot.js
CHANGED
|
@@ -23,15 +23,15 @@ var _utils = require("./utils");
|
|
|
23
23
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
24
24
|
var _Pattern = require("./Pattern");
|
|
25
25
|
/*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
|
|
26
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
27
|
-
"__SScatterPlot": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SValue": "
|
|
34
|
-
"--duration": "--
|
|
26
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_q3kbd_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_q3kbd);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_q3kbd_gg_:hover{opacity:.8}}.___SScatterPlot_q3kbd_gg_.__color_q3kbd_gg_{fill:var(--color_q3kbd)}.___SScatterPlot_q3kbd_gg_.__pattern_q3kbd_gg_.__color_q3kbd_gg_{fill:var(--pattern_q3kbd);stroke:var(--color_q3kbd);stroke-width:1px}.___SScatterPlot_q3kbd_gg_.__transparent_q3kbd_gg_{opacity:.3}.___SValue_q3kbd_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_q3kbd_gg_.__color_q3kbd_gg_{stroke:var(--color_q3kbd)}.___SValue_q3kbd_gg_.__transparent_q3kbd_gg_{opacity:.3}" /*__inner_css_end__*/, "q3kbd_gg_") /*__reshadow_css_end__*/, {
|
|
27
|
+
"__SScatterPlot": "___SScatterPlot_q3kbd_gg_",
|
|
28
|
+
"_color": "__color_q3kbd_gg_",
|
|
29
|
+
"--color": "--color_q3kbd",
|
|
30
|
+
"_pattern": "__pattern_q3kbd_gg_",
|
|
31
|
+
"--pattern": "--pattern_q3kbd",
|
|
32
|
+
"_transparent": "__transparent_q3kbd_gg_",
|
|
33
|
+
"__SValue": "___SValue_q3kbd_gg_",
|
|
34
|
+
"--duration": "--duration_q3kbd"
|
|
35
35
|
});
|
|
36
36
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
|
37
37
|
(0, _inherits2["default"])(ScatterPlotRoot, _Component);
|
package/lib/cjs/Tooltip.js
CHANGED
|
@@ -24,15 +24,15 @@ var _useColorResolver = require("@semcore/utils/lib/use/useColorResolver");
|
|
|
24
24
|
var _Pattern = require("./Pattern");
|
|
25
25
|
var _excluded = ["Children", "children", "tag", "forcedAdvancedMode"];
|
|
26
26
|
/*__reshadow-styles__:"./style/tooltip.shadow.css"*/
|
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
28
|
-
"__STooltip": "
|
|
29
|
-
"__STitle": "
|
|
30
|
-
"__SDotGroup": "
|
|
31
|
-
"__SDot": "
|
|
32
|
-
"__SDotCircle": "
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"__SFooter": "
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___STooltip_1pfyb_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_1pfyb_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_1pfyb_gg_{display:flex;align-items:center}.___SDot_1pfyb_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1pfyb_gg_.__color_1pfyb_gg_{background-color:var(--color_1pfyb);width:12px;height:12px;border-radius:50%}.___SFooter_1pfyb_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__*/, "1pfyb_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__STooltip": "___STooltip_1pfyb_gg_",
|
|
29
|
+
"__STitle": "___STitle_1pfyb_gg_",
|
|
30
|
+
"__SDotGroup": "___SDotGroup_1pfyb_gg_",
|
|
31
|
+
"__SDot": "___SDot_1pfyb_gg_",
|
|
32
|
+
"__SDotCircle": "___SDotCircle_1pfyb_gg_",
|
|
33
|
+
"_color": "__color_1pfyb_gg_",
|
|
34
|
+
"--color": "--color_1pfyb",
|
|
35
|
+
"__SFooter": "___SFooter_1pfyb_gg_"
|
|
36
36
|
});
|
|
37
37
|
/**
|
|
38
38
|
* `TooltipDotRenderContext` is a hack to bypass problem that getDotProps doesn't work for D3 tooltip.
|
package/lib/cjs/Venn.js
CHANGED
|
@@ -25,15 +25,15 @@ var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
|
25
25
|
var _Pattern = require("./Pattern");
|
|
26
26
|
var _uniqueID = _interopRequireDefault(require("@semcore/utils/lib/uniqueID"));
|
|
27
27
|
/*__reshadow-styles__:"./style/venn.shadow.css"*/
|
|
28
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
29
|
-
"__SCircle": "
|
|
30
|
-
"_color": "
|
|
31
|
-
"--color": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SIntersection": "
|
|
34
|
-
"--duration": "--
|
|
35
|
-
"_pattern": "
|
|
36
|
-
"--pattern": "--
|
|
28
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SCircle_82dk1_gg_,.___SIntersection_82dk1_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_82dk1_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_82dk1);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_82dk1_gg_:hover{fill-opacity:.7}}.___SCircle_82dk1_gg_.__color_82dk1_gg_{fill:var(--color_82dk1)}.___SCircle_82dk1_gg_.__pattern_82dk1_gg_.__color_82dk1_gg_{fill:var(--pattern_82dk1);fill-opacity:.7;stroke:var(--color_82dk1);stroke-width:1px}@media (hover:hover){.___SCircle_82dk1_gg_.__pattern_82dk1_gg_.__color_82dk1_gg_:hover{fill-opacity:.85}}.___SCircle_82dk1_gg_.__transparent_82dk1_gg_{opacity:.3}.___SIntersection_82dk1_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_82dk1_gg_:hover{fill-opacity:.1}}.___SIntersection_82dk1_gg_.__transparent_82dk1_gg_{opacity:.3}" /*__inner_css_end__*/, "82dk1_gg_") /*__reshadow_css_end__*/, {
|
|
29
|
+
"__SCircle": "___SCircle_82dk1_gg_",
|
|
30
|
+
"_color": "__color_82dk1_gg_",
|
|
31
|
+
"--color": "--color_82dk1",
|
|
32
|
+
"_transparent": "__transparent_82dk1_gg_",
|
|
33
|
+
"__SIntersection": "___SIntersection_82dk1_gg_",
|
|
34
|
+
"--duration": "--duration_82dk1",
|
|
35
|
+
"_pattern": "__pattern_82dk1_gg_",
|
|
36
|
+
"--pattern": "--pattern_82dk1"
|
|
37
37
|
});
|
|
38
38
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
|
39
39
|
(0, _inherits2["default"])(VennRoot, _Component);
|
|
@@ -16,8 +16,8 @@ var _intergalacticDynamicLocales = require("./translations/module/__intergalacti
|
|
|
16
16
|
var _WithI18n = require("@semcore/utils/lib/enhances/WithI18n");
|
|
17
17
|
var _flexBox = require("@semcore/flex-box");
|
|
18
18
|
/*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
|
|
19
|
-
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
20
|
-
"__SPlotA11yModule": "
|
|
19
|
+
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_10o1r_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_10o1r_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "10o1r_gg_") /*__reshadow_css_end__*/, {
|
|
20
|
+
"__SPlotA11yModule": "___SPlotA11yModule_10o1r_gg_"
|
|
21
21
|
});
|
|
22
22
|
var globalWasFocused = false;
|
|
23
23
|
var globalNavWithKeyboard = false;
|
|
@@ -21,8 +21,8 @@ var _flexBox = require("@semcore/flex-box");
|
|
|
21
21
|
var _i18nEnhance = require("@semcore/utils/lib/enhances/i18nEnhance");
|
|
22
22
|
var _intergalacticDynamicLocales = require("./translations/view/__intergalactic-dynamic-locales");
|
|
23
23
|
/*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
|
|
24
|
-
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
25
|
-
"__SPlotA11yView": "
|
|
24
|
+
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_1kxxi_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_1kxxi_gg_:focus,.___SPlotA11yView_1kxxi_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_1kxxi_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1kxxi_gg_ table,.___SPlotA11yView_1kxxi_gg_ td,.___SPlotA11yView_1kxxi_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "1kxxi_gg_") /*__reshadow_css_end__*/, {
|
|
25
|
+
"__SPlotA11yView": "___SPlotA11yView_1kxxi_gg_"
|
|
26
26
|
});
|
|
27
27
|
var PlotA11yView = function PlotA11yView(_ref3) {
|
|
28
28
|
var _ref = arguments[0],
|
|
@@ -22,10 +22,10 @@ var _BaseLegend2 = require("../BaseLegend");
|
|
|
22
22
|
var _intergalacticDynamicLocales = require("../../../translations/__intergalactic-dynamic-locales");
|
|
23
23
|
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
24
24
|
/*__reshadow-styles__:"./legend-flex.shadow.css"*/
|
|
25
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
26
|
-
"__SLegendFlex": "
|
|
27
|
-
"_direction_row": "
|
|
28
|
-
"_direction_column": "
|
|
25
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_qto3y_gg_._direction_row_qto3y_gg_{align-items:center;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_qto3y_gg_._direction_column_qto3y_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "qto3y_gg_") /*__reshadow_css_end__*/, {
|
|
26
|
+
"__SLegendFlex": "___SLegendFlex_qto3y_gg_",
|
|
27
|
+
"_direction_row": "_direction_row_qto3y_gg_",
|
|
28
|
+
"_direction_column": "_direction_column_qto3y_gg_"
|
|
29
29
|
});
|
|
30
30
|
var LegendFlexRoot = /*#__PURE__*/function (_BaseLegend) {
|
|
31
31
|
(0, _inherits2["default"])(LegendFlexRoot, _BaseLegend);
|
|
@@ -24,23 +24,23 @@ var _Pattern = require("../../../Pattern");
|
|
|
24
24
|
var _utils = require("../../../utils");
|
|
25
25
|
var _excluded = ["color"];
|
|
26
26
|
/*__reshadow-styles__:"./legend-item.shadow.css"*/
|
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
28
|
-
"__SLegendItem": "
|
|
29
|
-
"_disabled": "
|
|
30
|
-
"__SPointShape": "
|
|
31
|
-
"_color": "
|
|
32
|
-
"--color": "--
|
|
33
|
-
"_shape_Circle": "
|
|
34
|
-
"_size_l": "
|
|
35
|
-
"_size_m": "
|
|
36
|
-
"_shape_Line": "
|
|
37
|
-
"_shape_Square": "
|
|
38
|
-
"_shape_Pattern": "
|
|
39
|
-
"__SIcon": "
|
|
40
|
-
"__SLabel": "
|
|
41
|
-
"__SAdditionalLabel": "
|
|
42
|
-
"__SCount": "
|
|
43
|
-
"__SPatternSymbol": "
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SLegendItem_10j6x_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_10j6x_gg_:hover{cursor:pointer}.___SLegendItem_10j6x_gg_.__disabled_10j6x_gg_:hover{cursor:default}}.___SPointShape_10j6x_gg_.__color_10j6x_gg_{background-color:var(--color_10j6x);margin-right:8px;flex-shrink:0}.___SPointShape_10j6x_gg_._shape_Circle_10j6x_gg_._size_l_10j6x_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Circle_10j6x_gg_._size_m_10j6x_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Line_10j6x_gg_._size_l_10j6x_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_10j6x_gg_._shape_Line_10j6x_gg_._size_m_10j6x_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_10j6x_gg_._shape_Square_10j6x_gg_._size_l_10j6x_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Square_10j6x_gg_._size_m_10j6x_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_10j6x_gg_._shape_Pattern_10j6x_gg_{background-color:transparent;margin-right:4px}.___SIcon_10j6x_gg_{line-height:0;margin-right:4px}.___SIcon_10j6x_gg_._size_l_10j6x_gg_{margin-top:4px}.___SIcon_10j6x_gg_._size_m_10j6x_gg_{margin-top:2px}.___SLabel_10j6x_gg_{min-width:0}.___SAdditionalLabel_10j6x_gg_._size_l_10j6x_gg_,.___SCount_10j6x_gg_._size_l_10j6x_gg_,.___SLabel_10j6x_gg_._size_l_10j6x_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_10j6x_gg_._size_m_10j6x_gg_,.___SCount_10j6x_gg_._size_m_10j6x_gg_,.___SLabel_10j6x_gg_._size_m_10j6x_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_10j6x_gg_,.___SCount_10j6x_gg_{margin-left:4px}.___SAdditionalLabel_10j6x_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_10j6x_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_10j6x_gg_._size_l_10j6x_gg_::before{margin-top:10px}.___SAdditionalLabel_10j6x_gg_._size_m_10j6x_gg_::before{margin-top:8px}.___SPatternSymbol_10j6x_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "10j6x_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__SLegendItem": "___SLegendItem_10j6x_gg_",
|
|
29
|
+
"_disabled": "__disabled_10j6x_gg_",
|
|
30
|
+
"__SPointShape": "___SPointShape_10j6x_gg_",
|
|
31
|
+
"_color": "__color_10j6x_gg_",
|
|
32
|
+
"--color": "--color_10j6x",
|
|
33
|
+
"_shape_Circle": "_shape_Circle_10j6x_gg_",
|
|
34
|
+
"_size_l": "_size_l_10j6x_gg_",
|
|
35
|
+
"_size_m": "_size_m_10j6x_gg_",
|
|
36
|
+
"_shape_Line": "_shape_Line_10j6x_gg_",
|
|
37
|
+
"_shape_Square": "_shape_Square_10j6x_gg_",
|
|
38
|
+
"_shape_Pattern": "_shape_Pattern_10j6x_gg_",
|
|
39
|
+
"__SIcon": "___SIcon_10j6x_gg_",
|
|
40
|
+
"__SLabel": "___SLabel_10j6x_gg_",
|
|
41
|
+
"__SAdditionalLabel": "___SAdditionalLabel_10j6x_gg_",
|
|
42
|
+
"__SCount": "___SCount_10j6x_gg_",
|
|
43
|
+
"__SPatternSymbol": "___SPatternSymbol_10j6x_gg_"
|
|
44
44
|
});
|
|
45
45
|
var LegendItemRoot = /*#__PURE__*/function (_Component) {
|
|
46
46
|
(0, _inherits2["default"])(LegendItemRoot, _Component);
|
|
@@ -18,12 +18,12 @@ var _flexBox = require("@semcore/flex-box");
|
|
|
18
18
|
var _LegendItem = require("../LegendItem/LegendItem");
|
|
19
19
|
var _BaseLegend2 = require("../BaseLegend");
|
|
20
20
|
/*__reshadow-styles__:"./legend-table.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
22
|
-
"__SLegendTable": "
|
|
23
|
-
"_columns-count": "__columns-
|
|
24
|
-
"__SColumnItem": "
|
|
25
|
-
"_size_l": "
|
|
26
|
-
"_size_m": "
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SLegendTable_1g9zp_gg_.__columns-count_1g9zp_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_1g9zp_gg_._size_l_1g9zp_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_1g9zp_gg_._size_m_1g9zp_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "1g9zp_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SLegendTable": "___SLegendTable_1g9zp_gg_",
|
|
23
|
+
"_columns-count": "__columns-count_1g9zp_gg_",
|
|
24
|
+
"__SColumnItem": "___SColumnItem_1g9zp_gg_",
|
|
25
|
+
"_size_l": "_size_l_1g9zp_gg_",
|
|
26
|
+
"_size_m": "_size_m_1g9zp_gg_"
|
|
27
27
|
});
|
|
28
28
|
var LegendTableRoot = /*#__PURE__*/function (_BaseLegend) {
|
|
29
29
|
(0, _inherits2["default"])(LegendTableRoot, _BaseLegend);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show
|
|
1
|
+
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show dots */\n display?: boolean | ((index: number, active: boolean, single: boolean) => boolean);\n /** Hide property */\n hide?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IAreaDotsContext extends AreaDotsContext, UnknownProperties {}\nexport type AreaDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface IAreaNullProps extends AreaNullProps, UnknownProperties {}\nexport type AreaNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\ndeclare const Area: IntergalacticD3Component<'path', AreaProps, Context> & {\n Dots: IntergalacticD3Component<'circle', AreaDotsProps, AreaDotsContext>;\n Null: IntergalacticD3Component<'path', AreaNullProps, Context>;\n Line: IntergalacticD3Component<'path', Context, Context>;\n};\n\nexport default Area;\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show
|
|
1
|
+
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show dots */\n display?: boolean | ((index: number, active: boolean, single: boolean) => boolean);\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n /** Dot radius, radius of active dot is 4/3 times larger\n * @default 6\n */\n radius?: number;\n };\n\n/** @deprecated */\nexport interface ILineDotsContext extends LineDotsContext, UnknownProperties {}\nexport type LineDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface ILineNullProps extends LineNullProps, UnknownProperties {}\nexport type LineNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\nexport type LineAreaProps = Omit<LineProps, 'transparent'> & {\n /**\n * Field name from `data` (or from `area`, if passed) array for y0 point by the YAxis for the Area\n */\n y0: string;\n /**\n * Field name from `data` (or from `area`, if passed) array for y1 point by the YAxis for the Area\n */\n y1: string;\n\n /**\n * Optional data for render area\n */\n area?: Array<{ [key: string]: number }>;\n};\n\ndeclare const Line: IntergalacticD3Component<'line', LineProps, Context> & {\n Dots: IntergalacticD3Component<'circle', LineDotsProps, LineDotsContext>;\n Null: IntergalacticD3Component<'path', LineNullProps>;\n Area: IntergalacticD3Component<'path', LineAreaProps>;\n};\n\nexport default Line;\n"],"mappings":""}
|
package/lib/es6/Area.js
CHANGED
|
@@ -16,17 +16,17 @@ import { definedData, scaleOfBandwidth, getNullData, definedNullData, interpolat
|
|
|
16
16
|
import AnimatedClipPath from './AnimatedClipPath';
|
|
17
17
|
import { PatternFill } from './Pattern';
|
|
18
18
|
/*__reshadow-styles__:"./style/area.shadow.css"*/
|
|
19
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
20
|
-
"__SArea": "
|
|
21
|
-
"_color": "
|
|
22
|
-
"--color": "--
|
|
23
|
-
"_pattern": "
|
|
24
|
-
"--pattern": "--
|
|
25
|
-
"_transparent": "
|
|
26
|
-
"__SAreaLine": "
|
|
27
|
-
"--duration": "--
|
|
28
|
-
"__SNull": "
|
|
29
|
-
"_hide": "
|
|
19
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SArea_1w82h_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);fill-opacity:.2}.___SArea_1w82h_gg_.__color_1w82h_gg_{fill:var(--color_1w82h)}.___SArea_1w82h_gg_.__pattern_1w82h_gg_{fill:var(--pattern_1w82h);fill-opacity:.7}.___SArea_1w82h_gg_.__transparent_1w82h_gg_{opacity:.3}.___SAreaLine_1w82h_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SAreaLine_1w82h_gg_.__color_1w82h_gg_{stroke:var(--color_1w82h)}.___SAreaLine_1w82h_gg_.__transparent_1w82h_gg_{opacity:.3}.___SAreaLine_1w82h_gg_,.___SArea_1w82h_gg_{transition-property:d;transition-duration:var(--duration_1w82h);transition-timing-function:ease-in-out}.___SNull_1w82h_gg_{fill:transparent;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf);stroke-dasharray:4}.___SNull_1w82h_gg_.__hide_1w82h_gg_{display:none}" /*__inner_css_end__*/, "1w82h_gg_") /*__reshadow_css_end__*/, {
|
|
20
|
+
"__SArea": "___SArea_1w82h_gg_",
|
|
21
|
+
"_color": "__color_1w82h_gg_",
|
|
22
|
+
"--color": "--color_1w82h",
|
|
23
|
+
"_pattern": "__pattern_1w82h_gg_",
|
|
24
|
+
"--pattern": "--pattern_1w82h",
|
|
25
|
+
"_transparent": "__transparent_1w82h_gg_",
|
|
26
|
+
"__SAreaLine": "___SAreaLine_1w82h_gg_",
|
|
27
|
+
"--duration": "--duration_1w82h",
|
|
28
|
+
"__SNull": "___SNull_1w82h_gg_",
|
|
29
|
+
"_hide": "__hide_1w82h_gg_"
|
|
30
30
|
});
|
|
31
31
|
var AreaRoot = /*#__PURE__*/function (_Component) {
|
|
32
32
|
_inherits(AreaRoot, _Component);
|
package/lib/es6/Axis.js
CHANGED
|
@@ -12,20 +12,20 @@ import { Component, sstyled } from '@semcore/core';
|
|
|
12
12
|
import createElement from './createElement';
|
|
13
13
|
import { scaleOfBandwidth } from './utils';
|
|
14
14
|
/*__reshadow-styles__:"./style/axis.shadow.css"*/
|
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
16
|
-
"__SAxis": "
|
|
17
|
-
"_hide": "
|
|
18
|
-
"__STick": "
|
|
19
|
-
"__SGrid": "
|
|
20
|
-
"__STitle": "
|
|
21
|
-
"--transform-origin": "--transform-
|
|
22
|
-
"_position_top": "
|
|
23
|
-
"_position_bottom": "
|
|
24
|
-
"_position_right": "
|
|
25
|
-
"_position_left": "
|
|
26
|
-
"_verticalWritingMode": "
|
|
27
|
-
"_position_custom_0": "
|
|
28
|
-
"_position_custom_1": "
|
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxis_cqtrp_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SAxis_cqtrp_gg_.__hide_cqtrp_gg_,.___STick_cqtrp_gg_.__hide_cqtrp_gg_{display:none}.___STick_cqtrp_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79)}.___SGrid_cqtrp_gg_{fill:transparent;stroke:var(--intergalactic-border-secondary, #e0e1e9)}.___STitle_cqtrp_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-text-hint, #6c6e79);transform-origin:var(--transform-origin_cqtrp)}.___STitle_cqtrp_gg_._position_top_cqtrp_gg_{text-anchor:middle}.___STitle_cqtrp_gg_._position_bottom_cqtrp_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_cqtrp_gg_._position_left_cqtrp_gg_,.___STitle_cqtrp_gg_._position_right_cqtrp_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___STitle_cqtrp_gg_._position_left_cqtrp_gg_.__verticalWritingMode_cqtrp_gg_,.___STitle_cqtrp_gg_._position_right_cqtrp_gg_.__verticalWritingMode_cqtrp_gg_{writing-mode:vertical-rl;transform:none}.___STick_cqtrp_gg_._position_top_cqtrp_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_cqtrp_gg_._position_bottom_cqtrp_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_cqtrp_gg_._position_right_cqtrp_gg_{transform:translateX(16px);text-anchor:start;dominant-baseline:middle}.___STick_cqtrp_gg_._position_left_cqtrp_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}.___STick_cqtrp_gg_._position_custom_0_cqtrp_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_cqtrp_gg_._position_custom_1_cqtrp_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}" /*__inner_css_end__*/, "cqtrp_gg_") /*__reshadow_css_end__*/, {
|
|
16
|
+
"__SAxis": "___SAxis_cqtrp_gg_",
|
|
17
|
+
"_hide": "__hide_cqtrp_gg_",
|
|
18
|
+
"__STick": "___STick_cqtrp_gg_",
|
|
19
|
+
"__SGrid": "___SGrid_cqtrp_gg_",
|
|
20
|
+
"__STitle": "___STitle_cqtrp_gg_",
|
|
21
|
+
"--transform-origin": "--transform-origin_cqtrp",
|
|
22
|
+
"_position_top": "_position_top_cqtrp_gg_",
|
|
23
|
+
"_position_bottom": "_position_bottom_cqtrp_gg_",
|
|
24
|
+
"_position_right": "_position_right_cqtrp_gg_",
|
|
25
|
+
"_position_left": "_position_left_cqtrp_gg_",
|
|
26
|
+
"_verticalWritingMode": "__verticalWritingMode_cqtrp_gg_",
|
|
27
|
+
"_position_custom_0": "_position_custom_0_cqtrp_gg_",
|
|
28
|
+
"_position_custom_1": "_position_custom_1_cqtrp_gg_"
|
|
29
29
|
});
|
|
30
30
|
var CUSTOM_0 = Symbol('custom_0');
|
|
31
31
|
var CUSTOM_1 = Symbol('custom_1');
|
package/lib/es6/Bar.js
CHANGED
|
@@ -14,16 +14,16 @@ import AnimatedClipPath from './AnimatedClipPath';
|
|
|
14
14
|
import { scaleToBand, roundedPath } from './utils';
|
|
15
15
|
import { PatternFill } from './Pattern';
|
|
16
16
|
/*__reshadow-styles__:"./style/bar.shadow.css"*/
|
|
17
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
18
|
-
"__SBar": "
|
|
19
|
-
"--duration": "--
|
|
20
|
-
"_color": "
|
|
21
|
-
"--color": "--
|
|
22
|
-
"_pattern": "
|
|
23
|
-
"--pattern": "--
|
|
24
|
-
"_hide": "
|
|
25
|
-
"_transparent": "
|
|
26
|
-
"__SBackground": "
|
|
17
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_3ead1_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_3ead1);transition-timing-function:ease-in-out}.___SBar_3ead1_gg_.__color_3ead1_gg_{fill:var(--color_3ead1)}.___SBar_3ead1_gg_.__pattern_3ead1_gg_.__color_3ead1_gg_{fill:var(--pattern_3ead1);stroke:var(--color_3ead1);stroke-width:1px}.___SBar_3ead1_gg_.__hide_3ead1_gg_{display:none}.___SBar_3ead1_gg_.__transparent_3ead1_gg_{opacity:.3}.___SBackground_3ead1_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "3ead1_gg_") /*__reshadow_css_end__*/, {
|
|
18
|
+
"__SBar": "___SBar_3ead1_gg_",
|
|
19
|
+
"--duration": "--duration_3ead1",
|
|
20
|
+
"_color": "__color_3ead1_gg_",
|
|
21
|
+
"--color": "--color_3ead1",
|
|
22
|
+
"_pattern": "__pattern_3ead1_gg_",
|
|
23
|
+
"--pattern": "--pattern_3ead1",
|
|
24
|
+
"_hide": "__hide_3ead1_gg_",
|
|
25
|
+
"_transparent": "__transparent_3ead1_gg_",
|
|
26
|
+
"__SBackground": "___SBackground_3ead1_gg_"
|
|
27
27
|
});
|
|
28
28
|
export var MIN_HEIGHT = 2;
|
|
29
29
|
var calcPartBarY = function calcPartBarY(y, minHeight, height) {
|
package/lib/es6/Bubble.js
CHANGED
|
@@ -18,18 +18,18 @@ import { getBubbleChartValueScale, CONSTANT, measureText } from './utils';
|
|
|
18
18
|
import Tooltip from './Tooltip';
|
|
19
19
|
import { PatternFill } from './Pattern';
|
|
20
20
|
/*__reshadow-styles__:"./style/bubble.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
22
|
-
"__SBubble": "
|
|
23
|
-
"_color": "
|
|
24
|
-
"--color": "--
|
|
25
|
-
"_pattern": "
|
|
26
|
-
"--pattern": "--
|
|
27
|
-
"_transparent": "
|
|
28
|
-
"__SCenter": "
|
|
29
|
-
"__SLabel": "
|
|
30
|
-
"_position_right": "
|
|
31
|
-
"_position_left": "
|
|
32
|
-
"--duration": "--
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBubble_15kn7_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_15kn7);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_15kn7_gg_:hover{opacity:.8}}.___SBubble_15kn7_gg_.__color_15kn7_gg_{fill:var(--color_15kn7)}.___SBubble_15kn7_gg_.__pattern_15kn7_gg_.__color_15kn7_gg_{fill:var(--pattern_15kn7);stroke:var(--color_15kn7);stroke-width:1px}.___SBubble_15kn7_gg_.__transparent_15kn7_gg_{opacity:.3}.___SCenter_15kn7_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SCenter_15kn7_gg_.__color_15kn7_gg_{stroke:var(--color_15kn7)}.___SCenter_15kn7_gg_.__transparent_15kn7_gg_{opacity:.3}.___SLabel_15kn7_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLabel_15kn7_gg_._position_right_15kn7_gg_{text-anchor:end}.___SLabel_15kn7_gg_._position_left_15kn7_gg_{text-anchor:start}.___SLabel_15kn7_gg_.__color_15kn7_gg_{fill:var(--color_15kn7)}.___SLabel_15kn7_gg_.__transparent_15kn7_gg_{opacity:.3}" /*__inner_css_end__*/, "15kn7_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SBubble": "___SBubble_15kn7_gg_",
|
|
23
|
+
"_color": "__color_15kn7_gg_",
|
|
24
|
+
"--color": "--color_15kn7",
|
|
25
|
+
"_pattern": "__pattern_15kn7_gg_",
|
|
26
|
+
"--pattern": "--pattern_15kn7",
|
|
27
|
+
"_transparent": "__transparent_15kn7_gg_",
|
|
28
|
+
"__SCenter": "___SCenter_15kn7_gg_",
|
|
29
|
+
"__SLabel": "___SLabel_15kn7_gg_",
|
|
30
|
+
"_position_right": "_position_right_15kn7_gg_",
|
|
31
|
+
"_position_left": "_position_left_15kn7_gg_",
|
|
32
|
+
"--duration": "--duration_15kn7"
|
|
33
33
|
});
|
|
34
34
|
var BubbleRoot = /*#__PURE__*/function (_Component) {
|
|
35
35
|
_inherits(BubbleRoot, _Component);
|
package/lib/es6/Donut.js
CHANGED
|
@@ -23,15 +23,15 @@ import { CONSTANT, getChartDefaultColorName } from './utils';
|
|
|
23
23
|
import Tooltip from './Tooltip';
|
|
24
24
|
import { PatternFill } from './Pattern';
|
|
25
25
|
/*__reshadow-styles__:"./style/donut.shadow.css"*/
|
|
26
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
27
|
-
"__SPie": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SEmptyData": "
|
|
34
|
-
"__SLabel": "
|
|
26
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPie_arwvo_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_arwvo_gg_.__color_arwvo_gg_{fill:var(--color_arwvo)}.___SPie_arwvo_gg_.__pattern_arwvo_gg_.__color_arwvo_gg_{fill:var(--pattern_arwvo);stroke:var(--color_arwvo);stroke-width:1px}.___SPie_arwvo_gg_.__transparent_arwvo_gg_{opacity:.3}.___SEmptyData_arwvo_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_arwvo_gg_.__color_arwvo_gg_{fill:var(--color_arwvo)}.___SLabel_arwvo_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}" /*__inner_css_end__*/, "arwvo_gg_") /*__reshadow_css_end__*/, {
|
|
27
|
+
"__SPie": "___SPie_arwvo_gg_",
|
|
28
|
+
"_color": "__color_arwvo_gg_",
|
|
29
|
+
"--color": "--color_arwvo",
|
|
30
|
+
"_pattern": "__pattern_arwvo_gg_",
|
|
31
|
+
"--pattern": "--pattern_arwvo",
|
|
32
|
+
"_transparent": "__transparent_arwvo_gg_",
|
|
33
|
+
"__SEmptyData": "___SEmptyData_arwvo_gg_",
|
|
34
|
+
"__SLabel": "___SLabel_arwvo_gg_"
|
|
35
35
|
});
|
|
36
36
|
var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
|
|
37
37
|
function transitionAnglePie(_ref6) {
|
package/lib/es6/Dots.js
CHANGED
|
@@ -7,14 +7,14 @@ import trottle from '@semcore/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__*/".
|
|
11
|
-
"__SDot": "
|
|
12
|
-
"_hide": "
|
|
13
|
-
"_color": "
|
|
14
|
-
"--color": "--
|
|
15
|
-
"_transparent": "
|
|
16
|
-
"__SDots": "
|
|
17
|
-
"--duration": "--
|
|
10
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDots_1pfz2_gg_ .___SDot_1pfz2_gg_{transition-duration:var(--duration_1pfz2)}.___SDot_1pfz2_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_1pfz2_gg_.__hide_1pfz2_gg_{display:none}.___SDot_1pfz2_gg_.__color_1pfz2_gg_{fill:var(--color_1pfz2)}.___SDot_1pfz2_gg_.__transparent_1pfz2_gg_{opacity:.3}" /*__inner_css_end__*/, "1pfz2_gg_") /*__reshadow_css_end__*/, {
|
|
11
|
+
"__SDot": "___SDot_1pfz2_gg_",
|
|
12
|
+
"_hide": "__hide_1pfz2_gg_",
|
|
13
|
+
"_color": "__color_1pfz2_gg_",
|
|
14
|
+
"--color": "--color_1pfz2",
|
|
15
|
+
"_transparent": "__transparent_1pfz2_gg_",
|
|
16
|
+
"__SDots": "___SDots_1pfz2_gg_",
|
|
17
|
+
"--duration": "--duration_1pfz2"
|
|
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;
|
package/lib/es6/Dots.js.map
CHANGED
|
@@ -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
|
|
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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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"}
|
package/lib/es6/HorizontalBar.js
CHANGED
|
@@ -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__*/".
|
|
17
|
-
"__SBar": "
|
|
18
|
-
"--duration": "--
|
|
19
|
-
"_color": "
|
|
20
|
-
"--color": "--
|
|
21
|
-
"_pattern": "
|
|
22
|
-
"--pattern": "--
|
|
23
|
-
"_hide": "
|
|
24
|
-
"_transparent": "
|
|
25
|
-
"__SBackground": "
|
|
16
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_3ead1_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_3ead1);transition-timing-function:ease-in-out}.___SBar_3ead1_gg_.__color_3ead1_gg_{fill:var(--color_3ead1)}.___SBar_3ead1_gg_.__pattern_3ead1_gg_.__color_3ead1_gg_{fill:var(--pattern_3ead1);stroke:var(--color_3ead1);stroke-width:1px}.___SBar_3ead1_gg_.__hide_3ead1_gg_{display:none}.___SBar_3ead1_gg_.__transparent_3ead1_gg_{opacity:.3}.___SBackground_3ead1_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "3ead1_gg_") /*__reshadow_css_end__*/, {
|
|
17
|
+
"__SBar": "___SBar_3ead1_gg_",
|
|
18
|
+
"--duration": "--duration_3ead1",
|
|
19
|
+
"_color": "__color_3ead1_gg_",
|
|
20
|
+
"--color": "--color_3ead1",
|
|
21
|
+
"_pattern": "__pattern_3ead1_gg_",
|
|
22
|
+
"--pattern": "--pattern_3ead1",
|
|
23
|
+
"_hide": "__hide_3ead1_gg_",
|
|
24
|
+
"_transparent": "__transparent_3ead1_gg_",
|
|
25
|
+
"__SBackground": "___SBackground_3ead1_gg_"
|
|
26
26
|
});
|
|
27
27
|
export var MIN_WIDTH = 2;
|
|
28
28
|
var calcPartBarX = function calcPartBarX(x, minWidth, width) {
|
package/lib/es6/Hover.js
CHANGED
|
@@ -16,9 +16,9 @@ import trottle from '@semcore/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__*/".
|
|
20
|
-
"__SHoverLine": "
|
|
21
|
-
"__SHoverRect": "
|
|
19
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SHoverLine_f0tyo_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SHoverRect_f0tyo_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "f0tyo_gg_") /*__reshadow_css_end__*/, {
|
|
20
|
+
"__SHoverLine": "___SHoverLine_f0tyo_gg_",
|
|
21
|
+
"__SHoverRect": "___SHoverRect_f0tyo_gg_"
|
|
22
22
|
});
|
|
23
23
|
import Tooltip from './Tooltip';
|
|
24
24
|
var Hover = /*#__PURE__*/function (_Component) {
|