@semcore/d3-chart 16.0.3-prerelease.2 → 16.0.4-prerelease.3
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 +10 -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 +141 -84
- package/lib/cjs/Bubble.js.map +1 -1
- 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/Chart/BubbleChart.js +13 -4
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +14 -11
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- 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/style/bubble.shadow.css +4 -0
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- 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 +141 -84
- package/lib/es6/Bubble.js.map +1 -1
- 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/Chart/BubbleChart.js +13 -4
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +14 -11
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- 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/style/bubble.shadow.css +4 -0
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/esm/Area.mjs +12 -12
- package/lib/esm/Axis.mjs +15 -15
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +117 -81
- package/lib/esm/CompactHorizontalBar.mjs +17 -17
- package/lib/esm/Donut.mjs +10 -10
- package/lib/esm/Dots.mjs +9 -9
- package/lib/esm/HorizontalBar.mjs +17 -17
- package/lib/esm/Hover.mjs +4 -4
- package/lib/esm/Line.mjs +10 -10
- package/lib/esm/Plot.mjs +4 -4
- package/lib/esm/Radar.mjs +20 -20
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +13 -13
- package/lib/esm/ScatterPlot.mjs +10 -10
- package/lib/esm/Tooltip.mjs +10 -10
- package/lib/esm/Venn.mjs +10 -10
- package/lib/esm/a11y/PlotA11yModule.mjs +3 -3
- package/lib/esm/a11y/PlotA11yView.mjs +3 -3
- package/lib/esm/component/Chart/BubbleChart.mjs +11 -3
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +14 -11
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +18 -18
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +7 -7
- package/lib/esm/style/bubble.shadow.css +4 -0
- package/lib/types/Bubble.d.ts +13 -0
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +2 -2
- package/package.json +16 -16
|
@@ -104,13 +104,22 @@ var BubbleChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
104
104
|
}, {
|
|
105
105
|
key: "renderChart",
|
|
106
106
|
value: function renderChart() {
|
|
107
|
+
var dataDefinitions = this.state.dataDefinitions;
|
|
107
108
|
return /*#__PURE__*/React.createElement(Bubble, {
|
|
108
109
|
x: "x",
|
|
109
110
|
y: "y",
|
|
110
111
|
value: "value",
|
|
111
112
|
color: "color",
|
|
112
113
|
label: "label"
|
|
113
|
-
})
|
|
114
|
+
}, dataDefinitions.map(function (_ref2, index) {
|
|
115
|
+
var checked = _ref2.checked,
|
|
116
|
+
id = _ref2.id;
|
|
117
|
+
return /*#__PURE__*/React.createElement(Bubble.Circle, {
|
|
118
|
+
visible: checked,
|
|
119
|
+
key: id,
|
|
120
|
+
index: index
|
|
121
|
+
});
|
|
122
|
+
}));
|
|
114
123
|
}
|
|
115
124
|
}, {
|
|
116
125
|
key: "renderTooltip",
|
|
@@ -119,9 +128,9 @@ var BubbleChartComponent = /*#__PURE__*/function (_AbstractChart) {
|
|
|
119
128
|
if (!showTooltip) {
|
|
120
129
|
return null;
|
|
121
130
|
}
|
|
122
|
-
return /*#__PURE__*/React.createElement(Bubble.Tooltip, null, function (
|
|
123
|
-
var index =
|
|
124
|
-
data =
|
|
131
|
+
return /*#__PURE__*/React.createElement(Bubble.Tooltip, null, function (_ref3) {
|
|
132
|
+
var index = _ref3.index,
|
|
133
|
+
data = _ref3.data;
|
|
125
134
|
return {
|
|
126
135
|
children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Bubble.Tooltip.Title, null, "Data"), /*#__PURE__*/React.createElement(Text, {
|
|
127
136
|
tag: "div"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BubbleChart.js","names":["createComponent","i18nEnhance","Text","scaleLinear","React","Bubble","calculateBubbleDomain","AbstractChart","localizedMessages","BubbleChartComponent","_AbstractChart","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","get","data","props","map","_","index","toString","value","getDefaultDataDefinitions","_this","_this$props","legendProps","item","_legendProps$legendMa","_ref","_legendData$label","_legendData$icon","_legendData$defaultCh","legendData","legendMap","color","undefined","resolveColor","dataDefinition","id","label","icon","checked","defaultChecked","columns","additionalInfo","count","_this$asProps","asProps","xScale","_this$asProps$marginY","marginY","plotWidth","range","plotPadding","domain","_this$asProps2","yScale","_this$asProps2$margin","marginX","plotHeight","defaultLegendProps","shape","renderChart","createElement","x","y","renderTooltip","showTooltip","Tooltip","_ref2","children","Fragment","Title","tag","getLegendAriaLabel","getI18nText","chartType","_defineProperty","BubbleChart"],"sources":["../../../../src/component/Chart/BubbleChart.tsx"],"sourcesContent":["import { createComponent } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport { scaleLinear, type ScaleLinear } from 'd3-scale';\nimport React from 'react';\n\n// @ts-ignore\nimport { Bubble, calculateBubbleDomain } from '../..';\nimport { AbstractChart } from './AbstractChart';\nimport type { BubbleChartData, BubbleChartProps, BubbleChartType } from './BubbleChart.type';\nimport { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';\nimport type { LegendItem } from '../ChartLegend/LegendItem/LegendItem.type';\n\nclass BubbleChartComponent extends AbstractChart<\n BubbleChartData,\n BubbleChartProps,\n typeof BubbleChartComponent.enhance\n> {\n static displayName = 'Chart.Bubble';\n\n static enhance = [i18nEnhance(localizedMessages)] as const;\n\n protected get dataKeys(): string[] {\n const { data } = this.props;\n\n return data.map((_, index) => index.toString());\n }\n\n protected override getDefaultDataDefinitions(): Array<\n LegendItem & { columns: React.ReactNode[] }\n > {\n const { legendProps, data } = this.props;\n\n return data.map((item, index) => {\n const key = index.toString();\n const legendData = legendProps?.legendMap?.[key];\n\n if (item.color === undefined) {\n item.color = this.resolveColor(key, index);\n }\n\n const dataDefinition: LegendItem & { columns: React.ReactNode[] } = {\n id: key,\n label: legendData?.label ?? item.label ?? key,\n icon: legendData?.icon ?? undefined,\n checked: legendData?.defaultChecked ?? true,\n color: item.color,\n columns: [],\n };\n\n if (legendData?.additionalInfo || legendData?.count) {\n dataDefinition.additionalInfo = legendData.additionalInfo\n ? { label: legendData.additionalInfo }\n : legendData.count\n ? { count: legendData.count }\n : undefined;\n }\n\n return dataDefinition;\n });\n }\n\n get xScale() {\n const { xScale, marginY = 30, plotWidth, data } = this.asProps;\n\n if (xScale) {\n return xScale;\n }\n\n const range = [marginY, plotWidth - this.plotPadding];\n const domain = calculateBubbleDomain(data, 'x', range);\n\n return scaleLinear().domain(domain).range(range);\n }\n\n get yScale(): ScaleLinear<any, any> {\n const { yScale, marginX = 30, plotHeight, data } = this.asProps;\n\n if (yScale) {\n return yScale;\n }\n\n const range = [plotHeight - marginX, this.plotPadding];\n const domain = calculateBubbleDomain(data, 'y', range);\n\n return scaleLinear().domain(domain).range(range);\n }\n\n defaultLegendProps() {\n return {\n shape: 'Circle' as const,\n };\n }\n\n renderChart() {\n return <Bubble x='x' y='y' value='value' color='color' label='label' />;\n }\n\n renderTooltip() {\n const { showTooltip } = this.asProps;\n\n if (!showTooltip) {\n return null;\n }\n\n return (\n <Bubble.Tooltip>\n {({ index, data }: any) => {\n return {\n children: (\n <>\n <Bubble.Tooltip.Title>Data</Bubble.Tooltip.Title>\n <Text tag='div'>\n X axis\n {' '}\n {data[index].x}\n </Text>\n <Text tag='div'>\n Y axis\n {' '}\n {data[index].y}\n </Text>\n <Text tag='div'>\n Value\n {' '}\n {data[index].value}\n </Text>\n </>\n ),\n };\n }}\n </Bubble.Tooltip>\n );\n }\n\n protected getLegendAriaLabel(): string {\n return this.asProps.getI18nText('legendForChart', { chartType: 'Bubble' });\n }\n}\n\nexport const BubbleChart: BubbleChartType = createComponent(BubbleChartComponent);\n"],"mappings":";;;;;;;;AAAA,SAASA,eAAe,QAAQ,eAAe;AAC/C,OAAOC,WAAW,MAAM,8CAA8C;AACtE,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,SAASC,WAAW,QAA0B,UAAU;AACxD,OAAOC,KAAK,MAAM,OAAO;;AAEzB;AACA,SAASC,MAAM,EAAEC,qBAAqB,QAAQ,OAAO;AACrD,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,SAASC,iBAAiB,QAAQ,oDAAoD;AAAC,IAGjFC,oBAAoB,0BAAAC,cAAA;EAAA,SAAAD,qBAAA;IAAAE,eAAA,OAAAF,oBAAA;IAAA,OAAAG,UAAA,OAAAH,oBAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,oBAAA,EAAAC,cAAA;EAAA,OAAAK,YAAA,CAAAN,oBAAA;IAAAO,GAAA;IAAAC,GAAA,EASxB,SAAAA,IAAA,EAAmC;MACjC,IAAQC,IAAI,GAAK,IAAI,CAACC,KAAK,CAAnBD,IAAI;MAEZ,OAAOA,IAAI,CAACE,GAAG,CAAC,UAACC,CAAC,EAAEC,KAAK;QAAA,OAAKA,KAAK,CAACC,QAAQ,CAAC,CAAC;MAAA,EAAC;IACjD;EAAC;IAAAP,GAAA;IAAAQ,KAAA,EAED,SAAmBC,yBAAyBA,CAAA,EAE1C;MAAA,IAAAC,KAAA;MACA,IAAAC,WAAA,GAA8B,IAAI,CAACR,KAAK;QAAhCS,WAAW,GAAAD,WAAA,CAAXC,WAAW;QAAEV,IAAI,GAAAS,WAAA,CAAJT,IAAI;MAEzB,OAAOA,IAAI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CAAC,CAAC6C,CACT,CAAC,eACP/D,KAAA,CAAA8D,aAAA,CAAChE,IAAI;YAAC0E,GAAG,EAAC;UAAK,GAAC,QAEd,EAAC,GAAG,EACH1D,IAAI,CAACI,KAAK,CAAC,CAAC8C,CACT,CAAC,eACPhE,KAAA,CAAA8D,aAAA,CAAChE,IAAI;YAAC0E,GAAG,EAAC;UAAK,GAAC,OAEd,EAAC,GAAG,EACH1D,IAAI,CAACI,KAAK,CAAC,CAACE,KACT,CACN;QAEN,CAAC;MACH,CACc,CAAC;IAErB;EAAC;IAAAR,GAAA;IAAAQ,KAAA,EAED,SAAUqD,kBAAkBA,CAAA,EAAW;MACrC,OAAO,IAAI,CAAC3B,OAAO,CAAC4B,WAAW,CAAC,gBAAgB,EAAE;QAAEC,SAAS,EAAE;MAAS,CAAC,CAAC;IAC5E;EAAC;AAAA,EA5HgCxE,aAAa;AAAAyE,eAAA,CAA1CvE,oBAAoB,iBAKH,cAAc;AAAAuE,eAAA,CAL/BvE,oBAAoB,aAOP,CAACR,WAAW,CAACO,iBAAiB,CAAC,CAAC;AAwHnD,OAAO,IAAMyE,WAA4B,GAAGjF,eAAe,CAACS,oBAAoB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"BubbleChart.js","names":["createComponent","i18nEnhance","Text","scaleLinear","React","Bubble","calculateBubbleDomain","AbstractChart","localizedMessages","BubbleChartComponent","_AbstractChart","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","get","data","props","map","_","index","toString","value","getDefaultDataDefinitions","_this","_this$props","legendProps","item","_legendProps$legendMa","_ref","_legendData$label","_legendData$icon","_legendData$defaultCh","legendData","legendMap","color","undefined","resolveColor","dataDefinition","id","label","icon","checked","defaultChecked","columns","additionalInfo","count","_this$asProps","asProps","xScale","_this$asProps$marginY","marginY","plotWidth","range","plotPadding","domain","_this$asProps2","yScale","_this$asProps2$margin","marginX","plotHeight","defaultLegendProps","shape","renderChart","dataDefinitions","state","createElement","x","y","_ref2","Circle","visible","renderTooltip","showTooltip","Tooltip","_ref3","children","Fragment","Title","tag","getLegendAriaLabel","getI18nText","chartType","_defineProperty","BubbleChart"],"sources":["../../../../src/component/Chart/BubbleChart.tsx"],"sourcesContent":["import { createComponent } from '@semcore/core';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport { Text } from '@semcore/typography';\nimport { scaleLinear, type ScaleLinear } from 'd3-scale';\nimport React from 'react';\n\n// @ts-ignore\nimport { Bubble, calculateBubbleDomain } from '../..';\nimport { AbstractChart } from './AbstractChart';\nimport type { BubbleChartData, BubbleChartProps, BubbleChartType } from './BubbleChart.type';\nimport { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';\nimport type { LegendItem } from '../ChartLegend/LegendItem/LegendItem.type';\n\nclass BubbleChartComponent extends AbstractChart<\n BubbleChartData,\n BubbleChartProps,\n typeof BubbleChartComponent.enhance\n> {\n static displayName = 'Chart.Bubble';\n\n static enhance = [i18nEnhance(localizedMessages)] as const;\n\n protected get dataKeys(): string[] {\n const { data } = this.props;\n\n return data.map((_, index) => index.toString());\n }\n\n protected override getDefaultDataDefinitions(): Array<\n LegendItem & { columns: React.ReactNode[] }\n > {\n const { legendProps, data } = this.props;\n\n return data.map((item, index) => {\n const key = index.toString();\n const legendData = legendProps?.legendMap?.[key];\n\n if (item.color === undefined) {\n item.color = this.resolveColor(key, index);\n }\n\n const dataDefinition: LegendItem & { columns: React.ReactNode[] } = {\n id: key,\n label: legendData?.label ?? item.label ?? key,\n icon: legendData?.icon ?? undefined,\n checked: legendData?.defaultChecked ?? true,\n color: item.color,\n columns: [],\n };\n\n if (legendData?.additionalInfo || legendData?.count) {\n dataDefinition.additionalInfo = legendData.additionalInfo\n ? { label: legendData.additionalInfo }\n : legendData.count\n ? { count: legendData.count }\n : undefined;\n }\n\n return dataDefinition;\n });\n }\n\n get xScale() {\n const { xScale, marginY = 30, plotWidth, data } = this.asProps;\n\n if (xScale) {\n return xScale;\n }\n\n const range = [marginY, plotWidth - this.plotPadding];\n const domain = calculateBubbleDomain(data, 'x', range);\n\n return scaleLinear().domain(domain).range(range);\n }\n\n get yScale(): ScaleLinear<any, any> {\n const { yScale, marginX = 30, plotHeight, data } = this.asProps;\n\n if (yScale) {\n return yScale;\n }\n\n const range = [plotHeight - marginX, this.plotPadding];\n const domain = calculateBubbleDomain(data, 'y', range);\n\n return scaleLinear().domain(domain).range(range);\n }\n\n defaultLegendProps() {\n return {\n shape: 'Circle' as const,\n };\n }\n\n renderChart() {\n const { dataDefinitions } = this.state;\n\n return (\n <Bubble x='x' y='y' value='value' color='color' label='label'>\n {dataDefinitions.map(({ checked, id }, index) => (\n <Bubble.Circle visible={checked} key={id} index={index} />\n ))}\n </Bubble>\n );\n }\n\n renderTooltip() {\n const { showTooltip } = this.asProps;\n\n if (!showTooltip) {\n return null;\n }\n\n return (\n <Bubble.Tooltip>\n {({ index, data }: any) => {\n return {\n children: (\n <>\n <Bubble.Tooltip.Title>Data</Bubble.Tooltip.Title>\n <Text tag='div'>\n X axis\n {' '}\n {data[index].x}\n </Text>\n <Text tag='div'>\n Y axis\n {' '}\n {data[index].y}\n </Text>\n <Text tag='div'>\n Value\n {' '}\n {data[index].value}\n </Text>\n </>\n ),\n };\n }}\n </Bubble.Tooltip>\n );\n }\n\n protected getLegendAriaLabel(): string {\n return this.asProps.getI18nText('legendForChart', { chartType: 'Bubble' });\n }\n}\n\nexport const BubbleChart: BubbleChartType = createComponent(BubbleChartComponent);\n"],"mappings":";;;;;;;;AAAA,SAASA,eAAe,QAAQ,eAAe;AAC/C,OAAOC,WAAW,MAAM,8CAA8C;AACtE,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,SAASC,WAAW,QAA0B,UAAU;AACxD,OAAOC,KAAK,MAAM,OAAO;;AAEzB;AACA,SAASC,MAAM,EAAEC,qBAAqB,QAAQ,OAAO;AACrD,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,SAASC,iBAAiB,QAAQ,oDAAoD;AAAC,IAGjFC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A,CAAAgE,aAAA,CAAClE,IAAI;YAAC+E,GAAG,EAAC;UAAK,GAAC,OAEd,EAAC,GAAG,EACH/D,IAAI,CAACI,KAAK,CAAC,CAACE,KACT,CACN;QAEN,CAAC;MACH,CACc,CAAC;IAErB;EAAC;IAAAR,GAAA;IAAAQ,KAAA,EAED,SAAU0D,kBAAkBA,CAAA,EAAW;MACrC,OAAO,IAAI,CAAChC,OAAO,CAACiC,WAAW,CAAC,gBAAgB,EAAE;QAAEC,SAAS,EAAE;MAAS,CAAC,CAAC;IAC5E;EAAC;AAAA,EApIgC7E,aAAa;AAAA8E,eAAA,CAA1C5E,oBAAoB,iBAKH,cAAc;AAAA4E,eAAA,CAL/B5E,oBAAoB,aAOP,CAACR,WAAW,CAACO,iBAAiB,CAAC,CAAC;AAgInD,OAAO,IAAM8E,WAA4B,GAAGtF,eAAe,CAACS,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -17,16 +17,19 @@ export var BaseLegend = /*#__PURE__*/function (_Component) {
|
|
|
17
17
|
args[_key] = arguments[_key];
|
|
18
18
|
}
|
|
19
19
|
_this = _callSuper(this, BaseLegend, [].concat(args));
|
|
20
|
-
_defineProperty(_this, "onChangeLegendItem", function (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
_defineProperty(_this, "onChangeLegendItem", function (shape) {
|
|
21
|
+
return function (id, checked) {
|
|
22
|
+
var _this$props$onChangeV, _this$props;
|
|
23
|
+
if (shape !== 'Checkbox') return;
|
|
24
|
+
(_this$props$onChangeV = (_this$props = _this.props).onChangeVisibleItem) === null || _this$props$onChangeV === void 0 || _this$props$onChangeV.call(_this$props, id, checked);
|
|
25
|
+
if (checked) {
|
|
26
|
+
var _this$props$onMouseEn, _this$props2;
|
|
27
|
+
(_this$props$onMouseEn = (_this$props2 = _this.props).onMouseEnterItem) === null || _this$props$onMouseEn === void 0 || _this$props$onMouseEn.call(_this$props2, id);
|
|
28
|
+
} else {
|
|
29
|
+
var _this$props$onMouseLe, _this$props3;
|
|
30
|
+
(_this$props$onMouseLe = (_this$props3 = _this.props).onMouseLeaveItem) === null || _this$props$onMouseLe === void 0 || _this$props$onMouseLe.call(_this$props3, id);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
30
33
|
});
|
|
31
34
|
_defineProperty(_this, "onFocusLegendItem", function (checked) {
|
|
32
35
|
return function (id) {
|
|
@@ -104,7 +107,7 @@ export var BaseLegend = /*#__PURE__*/function (_Component) {
|
|
|
104
107
|
size: size,
|
|
105
108
|
onFocusLegendItem: this.onFocusLegendItem(line.checked),
|
|
106
109
|
onBlurLegendItem: this.onBlurLegendItem,
|
|
107
|
-
onChangeLegendItem: this.onChangeLegendItem,
|
|
110
|
+
onChangeLegendItem: this.onChangeLegendItem(shape),
|
|
108
111
|
onMouseEnter: line.checked ? this.bindOnMouseEnterItem(line.id) : undefined,
|
|
109
112
|
onMouseLeave: this.bindOnMouseLeaveItem(line.id),
|
|
110
113
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLegend.js","names":["Component","makeDataHintsHandlers","BaseLegend","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","id","checked","_this$props$onChangeV","_this$props","props","onChangeVisibleItem","call","_this$props$onMouseEn","_this$props2","onMouseEnterItem","_this$props$onMouseLe","_this$props3","onMouseLeaveItem","_this$props$onMouseEn2","_this$props5","_this$props$onMouseLe2","_this$props4","_this$props$onMouseLe3","_this$props6","e","_this$props$onMouseEn3","_this$props7","_this$props$onMouseLe4","_this$props8","_inherits","_createClass","key","value","componentDidMount","setHints","componentDidUpdate","prevProps","items","dataHints","_this$asProps","asProps","dataHintsHandler","undefined","forEach","legendItem","labelKey","label","getItem","index","line","Error","getLegendItemProps","_","_this$asProps2","_this$asProps2$shape","
|
|
1
|
+
{"version":3,"file":"BaseLegend.js","names":["Component","makeDataHintsHandlers","BaseLegend","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","shape","id","checked","_this$props$onChangeV","_this$props","props","onChangeVisibleItem","call","_this$props$onMouseEn","_this$props2","onMouseEnterItem","_this$props$onMouseLe","_this$props3","onMouseLeaveItem","_this$props$onMouseEn2","_this$props5","_this$props$onMouseLe2","_this$props4","_this$props$onMouseLe3","_this$props6","e","_this$props$onMouseEn3","_this$props7","_this$props$onMouseLe4","_this$props8","_inherits","_createClass","key","value","componentDidMount","setHints","componentDidUpdate","prevProps","items","dataHints","_this$asProps","asProps","dataHintsHandler","undefined","forEach","legendItem","labelKey","label","getItem","index","line","Error","getLegendItemProps","_","_this$asProps2","_this$asProps2$shape","_this$asProps2$size","size","patterns","_objectSpread","onFocusLegendItem","onBlurLegendItem","onChangeLegendItem","onMouseEnter","bindOnMouseEnterItem","onMouseLeave","bindOnMouseLeaveItem","style","gridRowStart","gridRowEnd"],"sources":["../../../../src/component/ChartLegend/BaseLegend.tsx"],"sourcesContent":["import { Component, type Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { LegendProps } from './BaseLegend.type';\nimport { StaticShapes, type LegendItemKey, type LegendItemProps, type ShapeType } from './LegendItem/LegendItem.type';\nimport { makeDataHintsHandlers } from '../../a11y/hints';\n\nexport abstract class BaseLegend<T extends LegendProps> extends Component<T> {\n componentDidMount() {\n this.setHints();\n }\n\n componentDidUpdate(prevProps: T) {\n if (prevProps.items !== this.props.items || prevProps.dataHints !== this.props.dataHints) {\n this.setHints();\n }\n }\n\n setHints() {\n const { items, dataHints } = this.asProps;\n const dataHintsHandler = dataHints ? makeDataHintsHandlers(dataHints) : undefined;\n\n items.forEach((legendItem) => {\n dataHintsHandler?.labelKey('value', legendItem.id, legendItem.label);\n });\n }\n\n getItem(index: number) {\n const line = this.asProps.items[index];\n\n if (line === undefined) {\n throw new Error(`No index \"${index}\" in lines`);\n }\n\n return line;\n }\n\n getLegendItemProps(\n _: {},\n index: number,\n ): LegendItemProps & Intergalactic.InternalTypings.ComponentPropsNesting<'div'> {\n const { shape = 'Checkbox', size = 'm', patterns } = this.asProps;\n const line = this.getItem(index);\n\n return {\n ...line,\n shape,\n size,\n onFocusLegendItem: this.onFocusLegendItem(line.checked),\n onBlurLegendItem: this.onBlurLegendItem,\n onChangeLegendItem: this.onChangeLegendItem(shape),\n onMouseEnter: line.checked ? this.bindOnMouseEnterItem(line.id) : undefined,\n onMouseLeave: this.bindOnMouseLeaveItem(line.id),\n style: { gridRowStart: `${index + 1}`, gridRowEnd: `${index + 2}` },\n patterns,\n };\n }\n\n onChangeLegendItem = (shape: ShapeType) => (id: LegendItemKey, checked: boolean) => {\n if (shape !== 'Checkbox') return;\n\n this.props.onChangeVisibleItem?.(id, checked);\n\n if (checked) {\n this.props.onMouseEnterItem?.(id);\n } else {\n this.props.onMouseLeaveItem?.(id);\n }\n };\n\n onFocusLegendItem = (checked: boolean) => (id: LegendItemKey) => {\n if (!checked) {\n return this.props.onMouseLeaveItem?.(id);\n }\n\n this.props.onMouseEnterItem?.(id);\n };\n\n onBlurLegendItem = (id: LegendItemKey) => {\n this.props.onMouseLeaveItem?.(id);\n };\n\n bindOnMouseEnterItem = (id: LegendItemKey) => {\n return (e: React.SyntheticEvent) => {\n this.props.onMouseEnterItem?.(id, e);\n };\n };\n\n bindOnMouseLeaveItem = (id: LegendItemKey) => {\n return (e: React.SyntheticEvent) => {\n this.props.onMouseLeaveItem?.(id, e);\n };\n };\n}\n"],"mappings":";;;;;;;;;AAAA,SAASA,SAAS,QAA4B,eAAe;AAK7D,SAASC,qBAAqB,QAAQ,kBAAkB;AAExD,WAAsBC,UAAU,0BAAAC,UAAA;EAAA,SAAAD,WAAA;IAAA,IAAAE,KAAA;IAAAC,eAAA,OAAAH,UAAA;IAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,M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AA,GAAqD,IAAI,CAACb,OAAO;QAAAc,oBAAA,GAAAD,cAAA,CAAzDjD,KAAK;QAALA,KAAK,GAAAkD,oBAAA,cAAG,UAAU,GAAAA,oBAAA;QAAAC,mBAAA,GAAAF,cAAA,CAAEG,IAAI;QAAJA,IAAI,GAAAD,mBAAA,cAAG,GAAG,GAAAA,mBAAA;QAAEE,QAAQ,GAAAJ,cAAA,CAARI,QAAQ;MAChD,IAAMR,IAAI,GAAG,IAAI,CAACF,OAAO,CAACC,KAAK,CAAC;MAEhC,OAAAU,aAAA,CAAAA,aAAA,KACKT,IAAI;QACP7C,KAAK,EAALA,KAAK;QACLoD,IAAI,EAAJA,IAAI;QACJG,iBAAiB,EAAE,IAAI,CAACA,iBAAiB,CAACV,IAAI,CAAC3C,OAAO,CAAC;QACvDsD,gBAAgB,EAAE,IAAI,CAACA,gBAAgB;QACvCC,kBAAkB,EAAE,IAAI,CAACA,kBAAkB,CAACzD,KAAK,CAAC;QAClD0D,YAAY,EAAEb,IAAI,CAAC3C,OAAO,GAAG,IAAI,CAACyD,oBAAoB,CAACd,IAAI,CAAC5C,EAAE,CAAC,GAAGqC,SAAS;QAC3EsB,YAAY,EAAE,IAAI,CAACC,oBAAoB,CAAChB,IAAI,CAAC5C,EAAE,CAAC;QAChD6D,KAAK,EAAE;UAAEC,YAAY,KAAAjE,MAAA,CAAK8C,KAAK,GAAG,CAAC,CAAE;UAAEoB,UAAU,KAAAlE,MAAA,CAAK8C,KAAK,GAAG,CAAC;QAAG,CAAC;QACnES,QAAQ,EAARA;MAAQ;IAEZ;EAAC;AAAA,EAjD6DpE,SAAS","ignoreList":[]}
|
|
@@ -16,12 +16,12 @@ import Divider from '@semcore/divider';
|
|
|
16
16
|
import { Flex } from '@semcore/flex-box';
|
|
17
17
|
import React from 'react';
|
|
18
18
|
/*!__reshadow-styles__:"./legend-flex.shadow.css"*/
|
|
19
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
19
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SLegendFlex_2vp15_gg_._direction_row_2vp15_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_2vp15_gg_._direction_column_2vp15_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}", /*__inner_css_end__*/"2vp15_gg_"),
|
|
20
20
|
/*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SLegendFlex": "
|
|
23
|
-
"_direction_row": "
|
|
24
|
-
"_direction_column": "
|
|
22
|
+
"__SLegendFlex": "___SLegendFlex_2vp15_gg_",
|
|
23
|
+
"_direction_row": "_direction_row_2vp15_gg_",
|
|
24
|
+
"_direction_column": "_direction_column_2vp15_gg_"
|
|
25
25
|
});
|
|
26
26
|
import { localizedMessages } from '../../../translations/__intergalactic-dynamic-locales';
|
|
27
27
|
import { BaseLegend } from '../BaseLegend';
|
|
@@ -24,25 +24,25 @@ import { Flex, Box } from '@semcore/flex-box';
|
|
|
24
24
|
import { Text as TypographyText } from '@semcore/typography';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
/*!__reshadow-styles__:"./legend-item.shadow.css"*/
|
|
27
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
27
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SLegendItem_1xl13_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1xl13_gg_:hover{cursor:pointer}.___SLegendItem_1xl13_gg_.__disabled_1xl13_gg_:hover{cursor:default}}.___SPointShape_1xl13_gg_.__color_1xl13_gg_{background-color:var(--color_1xl13);margin-right:8px;flex-shrink:0}.___SPointShape_1xl13_gg_._shape_Circle_1xl13_gg_._size_l_1xl13_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1xl13_gg_._shape_Circle_1xl13_gg_._size_m_1xl13_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1xl13_gg_._shape_Line_1xl13_gg_._size_l_1xl13_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1xl13_gg_._shape_Line_1xl13_gg_._size_m_1xl13_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1xl13_gg_._shape_Square_1xl13_gg_._size_l_1xl13_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1xl13_gg_._shape_Square_1xl13_gg_._size_m_1xl13_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1xl13_gg_._shape_Pattern_1xl13_gg_{background-color:transparent;margin-right:4px}.___SIcon_1xl13_gg_{line-height:0;margin-right:4px}.___SIcon_1xl13_gg_._size_l_1xl13_gg_{margin-top:4px}.___SIcon_1xl13_gg_._size_m_1xl13_gg_{margin-top:2px}.___SLabel_1xl13_gg_{min-width:0}.___SAdditionalLabel_1xl13_gg_._size_l_1xl13_gg_,.___SCount_1xl13_gg_._size_l_1xl13_gg_,.___SLabel_1xl13_gg_._size_l_1xl13_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1xl13_gg_._size_m_1xl13_gg_,.___SCount_1xl13_gg_._size_m_1xl13_gg_,.___SLabel_1xl13_gg_._size_m_1xl13_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1xl13_gg_,.___SCount_1xl13_gg_{margin-left:4px}.___SAdditionalLabel_1xl13_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1xl13_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_1xl13_gg_._size_l_1xl13_gg_::before{margin-top:10px}.___SAdditionalLabel_1xl13_gg_._size_m_1xl13_gg_::before{margin-top:8px}.___SPatternSymbol_1xl13_gg_{transform:scale(.8)}", /*__inner_css_end__*/"1xl13_gg_"),
|
|
28
28
|
/*__reshadow_css_end__*/
|
|
29
29
|
{
|
|
30
|
-
"__SLegendItem": "
|
|
31
|
-
"_disabled": "
|
|
32
|
-
"__SPointShape": "
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"_shape_Circle": "
|
|
36
|
-
"_size_l": "
|
|
37
|
-
"_size_m": "
|
|
38
|
-
"_shape_Line": "
|
|
39
|
-
"_shape_Square": "
|
|
40
|
-
"_shape_Pattern": "
|
|
41
|
-
"__SIcon": "
|
|
42
|
-
"__SLabel": "
|
|
43
|
-
"__SAdditionalLabel": "
|
|
44
|
-
"__SCount": "
|
|
45
|
-
"__SPatternSymbol": "
|
|
30
|
+
"__SLegendItem": "___SLegendItem_1xl13_gg_",
|
|
31
|
+
"_disabled": "__disabled_1xl13_gg_",
|
|
32
|
+
"__SPointShape": "___SPointShape_1xl13_gg_",
|
|
33
|
+
"_color": "__color_1xl13_gg_",
|
|
34
|
+
"--color": "--color_1xl13",
|
|
35
|
+
"_shape_Circle": "_shape_Circle_1xl13_gg_",
|
|
36
|
+
"_size_l": "_size_l_1xl13_gg_",
|
|
37
|
+
"_size_m": "_size_m_1xl13_gg_",
|
|
38
|
+
"_shape_Line": "_shape_Line_1xl13_gg_",
|
|
39
|
+
"_shape_Square": "_shape_Square_1xl13_gg_",
|
|
40
|
+
"_shape_Pattern": "_shape_Pattern_1xl13_gg_",
|
|
41
|
+
"__SIcon": "___SIcon_1xl13_gg_",
|
|
42
|
+
"__SLabel": "___SLabel_1xl13_gg_",
|
|
43
|
+
"__SAdditionalLabel": "___SAdditionalLabel_1xl13_gg_",
|
|
44
|
+
"__SCount": "___SCount_1xl13_gg_",
|
|
45
|
+
"__SPatternSymbol": "___SPatternSymbol_1xl13_gg_"
|
|
46
46
|
});
|
|
47
47
|
import { StaticShapes } from './LegendItem.type';
|
|
48
48
|
import { PatternSymbol } from '../../../Pattern';
|
|
@@ -14,14 +14,14 @@ import { createComponent, sstyled, Root } from '@semcore/core';
|
|
|
14
14
|
import { Box } from '@semcore/flex-box';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
/*!__reshadow-styles__:"./legend-table.shadow.css"*/
|
|
17
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
17
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SLegendTable_143bz_gg_.__columns-count_143bz_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_143bz_gg_._size_l_143bz_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_143bz_gg_._size_m_143bz_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}", /*__inner_css_end__*/"143bz_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SLegendTable": "
|
|
21
|
-
"_columns-count": "__columns-
|
|
22
|
-
"__SColumnItem": "
|
|
23
|
-
"_size_l": "
|
|
24
|
-
"_size_m": "
|
|
20
|
+
"__SLegendTable": "___SLegendTable_143bz_gg_",
|
|
21
|
+
"_columns-count": "__columns-count_143bz_gg_",
|
|
22
|
+
"__SColumnItem": "___SColumnItem_143bz_gg_",
|
|
23
|
+
"_size_l": "_size_l_143bz_gg_",
|
|
24
|
+
"_size_m": "_size_m_143bz_gg_"
|
|
25
25
|
});
|
|
26
26
|
import { BaseLegend } from '../BaseLegend';
|
|
27
27
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import type { Intergalactic, UnknownProperties } from '@semcore/core';\n\nimport type { Context } from './context';\nimport type { PatternsConfig } from './Pattern';\nimport type { IntergalacticD3Component } from './Plot';\nimport type { TooltipType } from './Tooltip';\n\n/** @deprecated */\nexport interface IBubbleProps extends BubbleProps, UnknownProperties {}\nexport type BubbleProps = 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 /** Field name from `data` array item for the circle radius */\n value: string;\n /** Field name from `data` array item for the circle label */\n label?: string;\n /** Circle color */\n color?: string;\n /** Cross in the center of the bubble\n * @default true\n */\n markedCross?: boolean;\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 accessibility */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IBubbleContext extends BubbleContext, UnknownProperties {}\nexport type BubbleContext = {\n /** Index element of data */\n index: number;\n};\n\ndeclare const Bubble: IntergalacticD3Component<Intergalactic.Tag, BubbleProps, BubbleContext> & {\n Tooltip: TooltipType<\n BubbleProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related bubble.\n */\n index: number;\n }\n >;\n};\n\nexport default Bubble;\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import type { Intergalactic, UnknownProperties } from '@semcore/core';\n\nimport type { Context } from './context';\nimport type { PatternsConfig } from './Pattern';\nimport type { IntergalacticD3Component } from './Plot';\nimport type { TooltipType } from './Tooltip';\n\n/** @deprecated */\nexport interface IBubbleProps extends BubbleProps, UnknownProperties {}\nexport type BubbleProps = 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 /** Field name from `data` array item for the circle radius */\n value: string;\n /** Field name from `data` array item for the circle label */\n label?: string;\n /** Circle color */\n color?: string;\n /** Cross in the center of the bubble\n * @default true\n */\n markedCross?: boolean;\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 accessibility */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IBubbleContext extends BubbleContext, UnknownProperties {}\nexport type BubbleContext = {\n /** Index element of data */\n index: number;\n};\n\nexport type BubbleCircleProps = {\n /** Item data index */\n index: number;\n\n /** Item visibility */\n visible?: boolean;\n};\n\ndeclare const Bubble: IntergalacticD3Component<Intergalactic.Tag, BubbleProps, BubbleContext> & {\n Tooltip: TooltipType<\n BubbleProps & {\n /**\n * @deprecated Use `index` instead.\n */\n xIndex: number;\n /**\n * Index of item in the `data` array used to render related bubble.\n */\n index: number;\n }\n >;\n Circle: IntergalacticD3Component<\n 'g',\n BubbleCircleProps,\n Context\n >;\n};\n\nexport default Bubble;\n"],"mappings":"","ignoreList":[]}
|
package/lib/esm/Area.mjs
CHANGED
|
@@ -25,21 +25,21 @@ var style = (
|
|
|
25
25
|
/*__reshadow_css_start__*/
|
|
26
26
|
(sstyled.insert(
|
|
27
27
|
/*__inner_css_start__*/
|
|
28
|
-
".
|
|
28
|
+
".___SArea_1nqfy_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);fill-opacity:.2}.___SArea_1nqfy_gg_.__color_1nqfy_gg_{fill:var(--color_1nqfy)}.___SArea_1nqfy_gg_.__pattern_1nqfy_gg_{fill:var(--pattern_1nqfy);fill-opacity:.7}.___SArea_1nqfy_gg_.__transparent_1nqfy_gg_{opacity:.3}.___SAreaLine_1nqfy_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SAreaLine_1nqfy_gg_.__color_1nqfy_gg_{stroke:var(--color_1nqfy)}.___SAreaLine_1nqfy_gg_.__transparent_1nqfy_gg_{opacity:.3}.___SAreaLine_1nqfy_gg_,.___SArea_1nqfy_gg_{transition-property:d;transition-duration:var(--duration_1nqfy);transition-timing-function:ease-in-out}.___SNull_1nqfy_gg_{fill:transparent;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf);stroke-dasharray:4}.___SNull_1nqfy_gg_.__hide_1nqfy_gg_{display:none}",
|
|
29
29
|
/*__inner_css_end__*/
|
|
30
|
-
"
|
|
30
|
+
"1nqfy_gg_"
|
|
31
31
|
), /*__reshadow_css_end__*/
|
|
32
32
|
{
|
|
33
|
-
"__SArea": "
|
|
34
|
-
"_color": "
|
|
35
|
-
"--color": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
38
|
-
"_transparent": "
|
|
39
|
-
"__SAreaLine": "
|
|
40
|
-
"--duration": "--
|
|
41
|
-
"__SNull": "
|
|
42
|
-
"_hide": "
|
|
33
|
+
"__SArea": "___SArea_1nqfy_gg_",
|
|
34
|
+
"_color": "__color_1nqfy_gg_",
|
|
35
|
+
"--color": "--color_1nqfy",
|
|
36
|
+
"_pattern": "__pattern_1nqfy_gg_",
|
|
37
|
+
"--pattern": "--pattern_1nqfy",
|
|
38
|
+
"_transparent": "__transparent_1nqfy_gg_",
|
|
39
|
+
"__SAreaLine": "___SAreaLine_1nqfy_gg_",
|
|
40
|
+
"--duration": "--duration_1nqfy",
|
|
41
|
+
"__SNull": "___SNull_1nqfy_gg_",
|
|
42
|
+
"_hide": "__hide_1nqfy_gg_"
|
|
43
43
|
})
|
|
44
44
|
);
|
|
45
45
|
var AreaRoot = /* @__PURE__ */ function(_Component) {
|
package/lib/esm/Axis.mjs
CHANGED
|
@@ -19,24 +19,24 @@ var style = (
|
|
|
19
19
|
/*__reshadow_css_start__*/
|
|
20
20
|
(sstyled.insert(
|
|
21
21
|
/*__inner_css_start__*/
|
|
22
|
-
".
|
|
22
|
+
".___SAxis_35o1m_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SAxis_35o1m_gg_.__hide_35o1m_gg_,.___STick_35o1m_gg_.__hide_35o1m_gg_{display:none}.___STick_35o1m_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79)}.___SGrid_35o1m_gg_{fill:transparent;stroke:var(--intergalactic-border-secondary, #e0e1e9)}.___STitle_35o1m_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-text-hint, #6c6e79);transform-origin:var(--transform-origin_35o1m)}.___STitle_35o1m_gg_._position_top_35o1m_gg_{text-anchor:middle}.___STitle_35o1m_gg_._position_bottom_35o1m_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_35o1m_gg_._position_left_35o1m_gg_,.___STitle_35o1m_gg_._position_right_35o1m_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___STitle_35o1m_gg_._position_left_35o1m_gg_.__verticalWritingMode_35o1m_gg_,.___STitle_35o1m_gg_._position_right_35o1m_gg_.__verticalWritingMode_35o1m_gg_{writing-mode:vertical-rl;transform:none}.___STick_35o1m_gg_._position_top_35o1m_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_35o1m_gg_._position_bottom_35o1m_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_35o1m_gg_._position_right_35o1m_gg_{transform:translateX(16px);text-anchor:start;dominant-baseline:middle}.___STick_35o1m_gg_._position_left_35o1m_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}.___STick_35o1m_gg_._position_custom_0_35o1m_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_35o1m_gg_._position_custom_1_35o1m_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}",
|
|
23
23
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
24
|
+
"35o1m_gg_"
|
|
25
25
|
), /*__reshadow_css_end__*/
|
|
26
26
|
{
|
|
27
|
-
"__SAxis": "
|
|
28
|
-
"_hide": "
|
|
29
|
-
"__STick": "
|
|
30
|
-
"__SGrid": "
|
|
31
|
-
"__STitle": "
|
|
32
|
-
"--transform-origin": "--transform-
|
|
33
|
-
"_position_top": "
|
|
34
|
-
"_position_bottom": "
|
|
35
|
-
"_position_right": "
|
|
36
|
-
"_position_left": "
|
|
37
|
-
"_verticalWritingMode": "
|
|
38
|
-
"_position_custom_0": "
|
|
39
|
-
"_position_custom_1": "
|
|
27
|
+
"__SAxis": "___SAxis_35o1m_gg_",
|
|
28
|
+
"_hide": "__hide_35o1m_gg_",
|
|
29
|
+
"__STick": "___STick_35o1m_gg_",
|
|
30
|
+
"__SGrid": "___SGrid_35o1m_gg_",
|
|
31
|
+
"__STitle": "___STitle_35o1m_gg_",
|
|
32
|
+
"--transform-origin": "--transform-origin_35o1m",
|
|
33
|
+
"_position_top": "_position_top_35o1m_gg_",
|
|
34
|
+
"_position_bottom": "_position_bottom_35o1m_gg_",
|
|
35
|
+
"_position_right": "_position_right_35o1m_gg_",
|
|
36
|
+
"_position_left": "_position_left_35o1m_gg_",
|
|
37
|
+
"_verticalWritingMode": "__verticalWritingMode_35o1m_gg_",
|
|
38
|
+
"_position_custom_0": "_position_custom_0_35o1m_gg_",
|
|
39
|
+
"_position_custom_1": "_position_custom_1_35o1m_gg_"
|
|
40
40
|
})
|
|
41
41
|
);
|
|
42
42
|
var CUSTOM_0 = Symbol("custom_0");
|
package/lib/esm/Bar.mjs
CHANGED
|
@@ -22,26 +22,26 @@ var style = (
|
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
23
|
(sstyled.insert(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
|
-
".
|
|
25
|
+
".___SBar_1wzam_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1wzam);transition-timing-function:ease-in-out}.___SBar_1wzam_gg_.__color_1wzam_gg_{fill:var(--color_1wzam)}.___SBar_1wzam_gg_.__pattern_1wzam_gg_.__color_1wzam_gg_{fill:var(--pattern_1wzam);stroke:var(--color_1wzam);stroke-width:1px}.___SBar_1wzam_gg_.__hide_1wzam_gg_{display:none}.___SBar_1wzam_gg_.__transparent_1wzam_gg_{opacity:.3}.___SBackground_1wzam_gg_.__onClick_1wzam_gg_,.___SBar_1wzam_gg_.__onClick_1wzam_gg_{cursor:pointer}.___SBackground_1wzam_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9)}.___SBarAnnotation_1wzam_gg_{display:flex;justify-content:space-between}.___SBarLabel_1wzam_gg_{color:var(--intergalactic-text-primary, #191b23);margin-right:auto}.___SBarLabel_1wzam_gg_,.___SBarPercent_1wzam_gg_,.___SBarValue_1wzam_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarPercent_1wzam_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SBarValue_1wzam_gg_{min-width:52px;display:flex;justify-content:flex-end;color:var(--intergalactic-text-primary, #191b23);text-align:right}.___SCompactHorizontalBarHoverRect_1wzam_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}",
|
|
26
26
|
/*__inner_css_end__*/
|
|
27
|
-
"
|
|
27
|
+
"1wzam_gg_"
|
|
28
28
|
), /*__reshadow_css_end__*/
|
|
29
29
|
{
|
|
30
|
-
"__SBar": "
|
|
31
|
-
"--duration": "--
|
|
32
|
-
"_color": "
|
|
33
|
-
"--color": "--
|
|
34
|
-
"_pattern": "
|
|
35
|
-
"--pattern": "--
|
|
36
|
-
"_hide": "
|
|
37
|
-
"_transparent": "
|
|
38
|
-
"_onClick": "
|
|
39
|
-
"__SBackground": "
|
|
40
|
-
"__SBarAnnotation": "
|
|
41
|
-
"__SBarLabel": "
|
|
42
|
-
"__SBarPercent": "
|
|
43
|
-
"__SBarValue": "
|
|
44
|
-
"__SCompactHorizontalBarHoverRect": "
|
|
30
|
+
"__SBar": "___SBar_1wzam_gg_",
|
|
31
|
+
"--duration": "--duration_1wzam",
|
|
32
|
+
"_color": "__color_1wzam_gg_",
|
|
33
|
+
"--color": "--color_1wzam",
|
|
34
|
+
"_pattern": "__pattern_1wzam_gg_",
|
|
35
|
+
"--pattern": "--pattern_1wzam",
|
|
36
|
+
"_hide": "__hide_1wzam_gg_",
|
|
37
|
+
"_transparent": "__transparent_1wzam_gg_",
|
|
38
|
+
"_onClick": "__onClick_1wzam_gg_",
|
|
39
|
+
"__SBackground": "___SBackground_1wzam_gg_",
|
|
40
|
+
"__SBarAnnotation": "___SBarAnnotation_1wzam_gg_",
|
|
41
|
+
"__SBarLabel": "___SBarLabel_1wzam_gg_",
|
|
42
|
+
"__SBarPercent": "___SBarPercent_1wzam_gg_",
|
|
43
|
+
"__SBarValue": "___SBarValue_1wzam_gg_",
|
|
44
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_1wzam_gg_"
|
|
45
45
|
})
|
|
46
46
|
);
|
|
47
47
|
var MIN_HEIGHT = 2;
|