@semcore/d3-chart 2.7.2 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/Area.js +24 -16
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +13 -10
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +10 -10
- package/lib/cjs/Donut.js +12 -9
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +14 -11
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +12 -9
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +4 -4
- package/lib/cjs/Line.js +16 -11
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Plot.js +4 -4
- package/lib/cjs/RadialTree.js +11 -11
- package/lib/cjs/ReferenceLine.js +10 -10
- package/lib/cjs/ScatterPlot.js +7 -7
- package/lib/cjs/Tooltip.js +8 -8
- package/lib/cjs/Venn.js +22 -13
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +3 -3
- package/lib/cjs/a11y/PlotA11yView.js +4 -4
- package/lib/cjs/style/area.shadow.css +8 -0
- package/lib/cjs/style/bar.shadow.css +4 -0
- package/lib/cjs/style/donut.shadow.css +4 -0
- package/lib/cjs/style/dot.shadow.css +4 -0
- package/lib/cjs/style/line.shadow.css +4 -0
- package/lib/cjs/style/venn.shadow.css +8 -0
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/es6/Area.js +24 -16
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +13 -10
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +10 -10
- package/lib/es6/Donut.js +12 -9
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +14 -11
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/HorizontalBar.js +12 -9
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +4 -4
- package/lib/es6/Line.js +16 -11
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Plot.js +4 -4
- package/lib/es6/RadialTree.js +11 -11
- package/lib/es6/ReferenceLine.js +10 -10
- package/lib/es6/ScatterPlot.js +7 -7
- package/lib/es6/Tooltip.js +8 -8
- package/lib/es6/Venn.js +22 -13
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +3 -3
- package/lib/es6/a11y/PlotA11yView.js +4 -4
- package/lib/es6/style/area.shadow.css +8 -0
- package/lib/es6/style/bar.shadow.css +4 -0
- package/lib/es6/style/donut.shadow.css +4 -0
- package/lib/es6/style/dot.shadow.css +4 -0
- package/lib/es6/style/line.shadow.css +4 -0
- package/lib/es6/style/venn.shadow.css +8 -0
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/types/Area.d.ts +4 -0
- package/lib/types/Bar.d.ts +2 -0
- package/lib/types/Donut.d.ts +2 -0
- package/lib/types/HorizontalBar.d.ts +2 -0
- package/lib/types/Line.d.ts +2 -0
- package/lib/types/Venn.d.ts +4 -0
- package/package.json +1 -1
package/lib/cjs/HorizontalBar.js
CHANGED
|
@@ -42,17 +42,18 @@ var style = (
|
|
|
42
42
|
/*__reshadow_css_start__*/
|
|
43
43
|
_core.sstyled.insert(
|
|
44
44
|
/*__inner_css_start__*/
|
|
45
|
-
".
|
|
45
|
+
".___SBar_1c6er_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1c6er);transition-timing-function:ease-in-out}.___SBar_1c6er_gg_.__color_1c6er_gg_{fill:var(--color_1c6er)}.___SBar_1c6er_gg_.__hide_1c6er_gg_{display:none}.___SBar_1c6er_gg_.__transparent_1c6er_gg_{opacity:.3}.___SBackground_1c6er_gg_{fill:var(--intergalactic-chart-palette-order-other-data,#c4c7cf)}"
|
|
46
46
|
/*__inner_css_end__*/
|
|
47
|
-
, "
|
|
47
|
+
, "1c6er_gg_")
|
|
48
48
|
/*__reshadow_css_end__*/
|
|
49
49
|
, {
|
|
50
|
-
"__SBar": "
|
|
51
|
-
"--duration": "--
|
|
52
|
-
"_color": "
|
|
53
|
-
"--color": "--
|
|
54
|
-
"_hide": "
|
|
55
|
-
"
|
|
50
|
+
"__SBar": "___SBar_1c6er_gg_",
|
|
51
|
+
"--duration": "--duration_1c6er",
|
|
52
|
+
"_color": "__color_1c6er_gg_",
|
|
53
|
+
"--color": "--color_1c6er",
|
|
54
|
+
"_hide": "__hide_1c6er_gg_",
|
|
55
|
+
"_transparent": "__transparent_1c6er_gg_",
|
|
56
|
+
"__SBackground": "___SBackground_1c6er_gg_"
|
|
56
57
|
});
|
|
57
58
|
|
|
58
59
|
var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -97,7 +98,8 @@ var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
|
|
|
97
98
|
heightProps = _this$asProps2.height,
|
|
98
99
|
onMouseMove = _this$asProps2.onMouseMove,
|
|
99
100
|
onMouseLeave = _this$asProps2.onMouseLeave,
|
|
100
|
-
groupKey = _this$asProps2.groupKey
|
|
101
|
+
groupKey = _this$asProps2.groupKey,
|
|
102
|
+
transparent = _this$asProps2.transparent;
|
|
101
103
|
|
|
102
104
|
var _scale = (0, _slicedToArray2["default"])(scale, 2),
|
|
103
105
|
xScale = _scale[0],
|
|
@@ -133,6 +135,7 @@ var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
|
|
|
133
135
|
"index": i,
|
|
134
136
|
"hide": hide,
|
|
135
137
|
"color": color,
|
|
138
|
+
"transparent": transparent,
|
|
136
139
|
"x": barX,
|
|
137
140
|
"y": barY,
|
|
138
141
|
"width": width,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalBar.js","names":["HorizontalBarRoot","props","index","asProps","data","y","value","d","i","SBar","Element","styles","color","x","x0","scale","hide","offset","uid","duration","r","wMin","heightProps","height","onMouseMove","onMouseLeave","groupKey","xScale","yScale","barY","barX","Math","min","Object","is","getBandwidth","width","abs","max","domain","dSvg","getHorizontalRect","radius","Array","isArray","position","dataHintsHandler","describeGroupedValues","describeValueEntity","sstyled","size","map","renderBar","bind","rect","setAttribute","Component","uniqueIDEnhancement","style","Background","SBackground","xRange","range","bandwidth","roundedPath","createElement"],"sources":["../../src/HorizontalBar.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport ClipPath from './ClipPath';\nimport { getBandwidth, roundedPath } from './utils';\n\nimport style from './style/bar.shadow.css';\n\nclass HorizontalBarRoot extends Component {\n static displayName = 'HorizontalBar';\n static enhance = [uniqueIDEnhancement()];\n static style = style;\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n r: 2,\n wMin: 4,\n };\n\n getBackgroundProps(props, index) {\n const { data, y } = this.asProps;\n return {\n value: data[index][y],\n };\n }\n\n renderBar(d, i) {\n const SBar = this.Element;\n const {\n styles,\n color,\n x,\n x0,\n y,\n scale,\n hide,\n offset,\n uid,\n duration,\n r,\n wMin,\n height: heightProps,\n onMouseMove,\n onMouseLeave,\n groupKey,\n } = this.asProps;\n\n const [xScale, yScale] = scale;\n const barY = yScale(d[y]) + offset[1];\n const barX = xScale(Math.min(d[x0] ?? 0, d[x])) + offset[0] - (Object.is(d[x], -0) ? wMin : 0);\n const height = heightProps || getBandwidth(yScale);\n const width =\n Math.abs(xScale(d[x]) - Math.max(xScale(xScale.domain()[0]), xScale(d[x0] ?? 0))) || wMin;\n const dSvg = getHorizontalRect({\n x: barX,\n y: barY,\n width,\n height,\n radius: Array.isArray(r) ? r[i] : r,\n position: d[x] > 0 || Object.is(d[x], 0) ? 'right' : 'left',\n });\n\n if (groupKey) {\n this.asProps.dataHintsHandler.describeGroupedValues(groupKey, x);\n } else {\n this.asProps.dataHintsHandler.describeValueEntity(`${i}.${x}`, groupKey ?? d[y]);\n }\n\n return sstyled(styles)(\n <SBar\n aria-hidden\n key={`horizontal-bar-${i}`}\n render=\"path\"\n clipPath={`url(#${uid})`}\n __excludeProps={['data', 'scale', 'value']}\n childrenPosition=\"above\"\n value={d}\n index={i}\n hide={hide}\n color={color}\n x={barX}\n y={barY}\n width={width}\n height={height}\n d={dSvg}\n use:duration={`${duration}ms`}\n onMouseMove={onMouseMove}\n onMouseLeave={onMouseLeave}\n />,\n );\n }\n\n render() {\n const { data, uid, size, duration } = this.asProps;\n\n return (\n <>\n {data.map(this.renderBar.bind(this))}\n {duration && (\n <ClipPath\n aria-hidden\n setAttributeTag={(rect) => {\n rect.setAttribute('width', size[0]);\n }}\n id={uid}\n x=\"0\"\n y=\"0\"\n width={0}\n height={size[1]}\n transition={`width ${duration}ms ease-in-out`}\n />\n )}\n </>\n );\n }\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, value } = props;\n const [xScale, yScale] = scale;\n const xRange = xScale.range();\n\n return sstyled(styles)(\n <SBackground\n aria-hidden\n render=\"rect\"\n childrenPosition=\"above\"\n width={xRange[1] - xRange[0]}\n height={yScale.bandwidth()}\n x={xRange[0]}\n y={yScale(value)}\n />,\n );\n}\n\nfunction getHorizontalRect({ x, y, width, height, radius, position }) {\n if (width <= radius) return '';\n if (radius) {\n if (position === 'right')\n return roundedPath(x, y, width, height, radius, false, true, false, true);\n return roundedPath(x, y, width, height, radius, true, false, true, false);\n }\n return roundedPath(x, y, width, height, radius);\n}\n\nexport default createElement(HorizontalBarRoot, { Background });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;AACA;;AACA
|
|
1
|
+
{"version":3,"file":"HorizontalBar.js","names":["HorizontalBarRoot","props","index","asProps","data","y","value","d","i","SBar","Element","styles","color","x","x0","scale","hide","offset","uid","duration","r","wMin","heightProps","height","onMouseMove","onMouseLeave","groupKey","transparent","xScale","yScale","barY","barX","Math","min","Object","is","getBandwidth","width","abs","max","domain","dSvg","getHorizontalRect","radius","Array","isArray","position","dataHintsHandler","describeGroupedValues","describeValueEntity","sstyled","size","map","renderBar","bind","rect","setAttribute","Component","uniqueIDEnhancement","style","Background","SBackground","xRange","range","bandwidth","roundedPath","createElement"],"sources":["../../src/HorizontalBar.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport ClipPath from './ClipPath';\nimport { getBandwidth, roundedPath } from './utils';\n\nimport style from './style/bar.shadow.css';\n\nclass HorizontalBarRoot extends Component {\n static displayName = 'HorizontalBar';\n static enhance = [uniqueIDEnhancement()];\n static style = style;\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n r: 2,\n wMin: 4,\n };\n\n getBackgroundProps(props, index) {\n const { data, y } = this.asProps;\n return {\n value: data[index][y],\n };\n }\n\n renderBar(d, i) {\n const SBar = this.Element;\n const {\n styles,\n color,\n x,\n x0,\n y,\n scale,\n hide,\n offset,\n uid,\n duration,\n r,\n wMin,\n height: heightProps,\n onMouseMove,\n onMouseLeave,\n groupKey,\n transparent,\n } = this.asProps;\n\n const [xScale, yScale] = scale;\n const barY = yScale(d[y]) + offset[1];\n const barX = xScale(Math.min(d[x0] ?? 0, d[x])) + offset[0] - (Object.is(d[x], -0) ? wMin : 0);\n const height = heightProps || getBandwidth(yScale);\n const width =\n Math.abs(xScale(d[x]) - Math.max(xScale(xScale.domain()[0]), xScale(d[x0] ?? 0))) || wMin;\n const dSvg = getHorizontalRect({\n x: barX,\n y: barY,\n width,\n height,\n radius: Array.isArray(r) ? r[i] : r,\n position: d[x] > 0 || Object.is(d[x], 0) ? 'right' : 'left',\n });\n\n if (groupKey) {\n this.asProps.dataHintsHandler.describeGroupedValues(groupKey, x);\n } else {\n this.asProps.dataHintsHandler.describeValueEntity(`${i}.${x}`, groupKey ?? d[y]);\n }\n\n return sstyled(styles)(\n <SBar\n aria-hidden\n key={`horizontal-bar-${i}`}\n render=\"path\"\n clipPath={`url(#${uid})`}\n __excludeProps={['data', 'scale', 'value']}\n childrenPosition=\"above\"\n value={d}\n index={i}\n hide={hide}\n color={color}\n transparent={transparent}\n x={barX}\n y={barY}\n width={width}\n height={height}\n d={dSvg}\n use:duration={`${duration}ms`}\n onMouseMove={onMouseMove}\n onMouseLeave={onMouseLeave}\n />,\n );\n }\n\n render() {\n const { data, uid, size, duration } = this.asProps;\n\n return (\n <>\n {data.map(this.renderBar.bind(this))}\n {duration && (\n <ClipPath\n aria-hidden\n setAttributeTag={(rect) => {\n rect.setAttribute('width', size[0]);\n }}\n id={uid}\n x=\"0\"\n y=\"0\"\n width={0}\n height={size[1]}\n transition={`width ${duration}ms ease-in-out`}\n />\n )}\n </>\n );\n }\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, value } = props;\n const [xScale, yScale] = scale;\n const xRange = xScale.range();\n\n return sstyled(styles)(\n <SBackground\n aria-hidden\n render=\"rect\"\n childrenPosition=\"above\"\n width={xRange[1] - xRange[0]}\n height={yScale.bandwidth()}\n x={xRange[0]}\n y={yScale(value)}\n />,\n );\n}\n\nfunction getHorizontalRect({ x, y, width, height, radius, position }) {\n if (width <= radius) return '';\n if (radius) {\n if (position === 'right')\n return roundedPath(x, y, width, height, radius, false, true, false, true);\n return roundedPath(x, y, width, height, radius, true, false, true, false);\n }\n return roundedPath(x, y, width, height, radius);\n}\n\nexport default createElement(HorizontalBarRoot, { Background });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,iB;;;;;;;;;;;;WAYJ,4BAAmBC,KAAnB,EAA0BC,KAA1B,EAAiC;MAC/B,oBAAoB,KAAKC,OAAzB;MAAA,IAAQC,IAAR,iBAAQA,IAAR;MAAA,IAAcC,CAAd,iBAAcA,CAAd;MACA,OAAO;QACLC,KAAK,EAAEF,IAAI,CAACF,KAAD,CAAJ,CAAYG,CAAZ;MADF,CAAP;IAGD;;;WAED,mBAAUE,CAAV,EAAaC,CAAb,EAAgB;MAAA;;MACd,IAAMC,IAAI,GAAG,KAAKC,OAAlB;MACA,qBAkBI,KAAKP,OAlBT;MAAA,IACEQ,MADF,kBACEA,MADF;MAAA,IAEEC,KAFF,kBAEEA,KAFF;MAAA,IAGEC,CAHF,kBAGEA,CAHF;MAAA,IAIEC,EAJF,kBAIEA,EAJF;MAAA,IAKET,CALF,kBAKEA,CALF;MAAA,IAMEU,KANF,kBAMEA,KANF;MAAA,IAOEC,IAPF,kBAOEA,IAPF;MAAA,IAQEC,MARF,kBAQEA,MARF;MAAA,IASEC,GATF,kBASEA,GATF;MAAA,IAUEC,QAVF,kBAUEA,QAVF;MAAA,IAWEC,CAXF,kBAWEA,CAXF;MAAA,IAYEC,IAZF,kBAYEA,IAZF;MAAA,IAaUC,WAbV,kBAaEC,MAbF;MAAA,IAcEC,WAdF,kBAcEA,WAdF;MAAA,IAeEC,YAfF,kBAeEA,YAfF;MAAA,IAgBEC,QAhBF,kBAgBEA,QAhBF;MAAA,IAiBEC,WAjBF,kBAiBEA,WAjBF;;MAoBA,6CAAyBZ,KAAzB;MAAA,IAAOa,MAAP;MAAA,IAAeC,MAAf;;MACA,IAAMC,IAAI,GAAGD,MAAM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AA5Bd,MAA4B,SAA5BA,MAA4B;EAAA,IAApBoB,MAAoB,SAApBA,MAAoB;EAAA,IAAZG,QAAY,SAAZA,QAAY;EACpE,IAAIT,KAAK,IAAIM,MAAb,EAAqB,OAAO,EAAP;;EACrB,IAAIA,MAAJ,EAAY;IACV,IAAIG,QAAQ,KAAK,OAAjB,EACE,OAAO,IAAAmB,kBAAA,EAAYpD,CAAZ,EAAeR,CAAf,EAAkBgC,KAAlB,EAAyBd,MAAzB,EAAiCoB,MAAjC,EAAyC,KAAzC,EAAgD,IAAhD,EAAsD,KAAtD,EAA6D,IAA7D,CAAP;IACF,OAAO,IAAAsB,kBAAA,EAAYpD,CAAZ,EAAeR,CAAf,EAAkBgC,KAAlB,EAAyBd,MAAzB,EAAiCoB,MAAjC,EAAyC,IAAzC,EAA+C,KAA/C,EAAsD,IAAtD,EAA4D,KAA5D,CAAP;EACD;;EACD,OAAO,IAAAsB,kBAAA,EAAYpD,CAAZ,EAAeR,CAAf,EAAkBgC,KAAlB,EAAyBd,MAAzB,EAAiCoB,MAAjC,CAAP;AACD;;eAEc,IAAAuB,yBAAA,EAAclE,iBAAd,EAAiC;EAAE4D,UAAU,EAAVA;AAAF,CAAjC,C"}
|
package/lib/cjs/Hover.js
CHANGED
|
@@ -44,13 +44,13 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
".
|
|
47
|
+
".___SHoverLine_19lsr_gg_{stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf)}.___SHoverRect_19lsr_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover,rgba(196,199,207,.3))}"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "19lsr_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SHoverLine": "
|
|
53
|
-
"__SHoverRect": "
|
|
52
|
+
"__SHoverLine": "___SHoverLine_19lsr_gg_",
|
|
53
|
+
"__SHoverRect": "___SHoverRect_19lsr_gg_"
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
var Hover = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Line.js
CHANGED
|
@@ -46,17 +46,18 @@ var style = (
|
|
|
46
46
|
/*__reshadow_css_start__*/
|
|
47
47
|
_core.sstyled.insert(
|
|
48
48
|
/*__inner_css_start__*/
|
|
49
|
-
".
|
|
49
|
+
".___SLine_kgdrn_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:d;transition-duration:var(--duration_kgdrn);transition-timing-function:ease-in-out}.___SLine_kgdrn_gg_.__color_kgdrn_gg_{stroke:var(--color_kgdrn)}.___SLine_kgdrn_gg_.__hide_kgdrn_gg_{display:none}.___SLine_kgdrn_gg_.__transparent_kgdrn_gg_{opacity:.3}.___SNull_kgdrn_gg_{fill:transparent;stroke:var(-intergalactic-border-primary);stroke-dasharray:4}.___SNull_kgdrn_gg_.__hide_kgdrn_gg_{display:none}"
|
|
50
50
|
/*__inner_css_end__*/
|
|
51
|
-
, "
|
|
51
|
+
, "kgdrn_gg_")
|
|
52
52
|
/*__reshadow_css_end__*/
|
|
53
53
|
, {
|
|
54
|
-
"__SLine": "
|
|
55
|
-
"--duration": "--
|
|
56
|
-
"_color": "
|
|
57
|
-
"--color": "--
|
|
58
|
-
"_hide": "
|
|
59
|
-
"
|
|
54
|
+
"__SLine": "___SLine_kgdrn_gg_",
|
|
55
|
+
"--duration": "--duration_kgdrn",
|
|
56
|
+
"_color": "__color_kgdrn_gg_",
|
|
57
|
+
"--color": "--color_kgdrn",
|
|
58
|
+
"_hide": "__hide_kgdrn_gg_",
|
|
59
|
+
"_transparent": "__transparent_kgdrn_gg_",
|
|
60
|
+
"__SNull": "___SNull_kgdrn_gg_"
|
|
60
61
|
});
|
|
61
62
|
|
|
62
63
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -77,13 +78,15 @@ var LineRoot = /*#__PURE__*/function (_Component) {
|
|
|
77
78
|
y = _this$asProps.y,
|
|
78
79
|
d3 = _this$asProps.d3,
|
|
79
80
|
color = _this$asProps.color,
|
|
80
|
-
duration = _this$asProps.duration
|
|
81
|
+
duration = _this$asProps.duration,
|
|
82
|
+
transparent = _this$asProps.transparent;
|
|
81
83
|
return {
|
|
82
84
|
x: x,
|
|
83
85
|
y: y,
|
|
84
86
|
d3: d3,
|
|
85
87
|
color: color,
|
|
86
|
-
duration: duration
|
|
88
|
+
duration: duration,
|
|
89
|
+
transparent: transparent
|
|
87
90
|
};
|
|
88
91
|
}
|
|
89
92
|
}, {
|
|
@@ -118,7 +121,8 @@ var LineRoot = /*#__PURE__*/function (_Component) {
|
|
|
118
121
|
data = _this$asProps3.data,
|
|
119
122
|
duration = _this$asProps3.duration,
|
|
120
123
|
x = _this$asProps3.x,
|
|
121
|
-
y = _this$asProps3.y
|
|
124
|
+
y = _this$asProps3.y,
|
|
125
|
+
transparent = _this$asProps3.transparent;
|
|
122
126
|
this.asProps.dataHintsHandler.specifyDataRowFields(x, y);
|
|
123
127
|
this.asProps.dataHintsHandler.establishDataType('time-series');
|
|
124
128
|
return _ref = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SLine, _ref.cn("SLine", {
|
|
@@ -127,6 +131,7 @@ var LineRoot = /*#__PURE__*/function (_Component) {
|
|
|
127
131
|
"render": "path",
|
|
128
132
|
"hide": hide,
|
|
129
133
|
"color": color,
|
|
134
|
+
"transparent": transparent,
|
|
130
135
|
"d": d3(data),
|
|
131
136
|
"use:duration": "".concat(duration, "ms")
|
|
132
137
|
})), duration && /*#__PURE__*/_react["default"].createElement(_ClipPath["default"], _ref.cn("ClipPath", {
|
package/lib/cjs/Line.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.js","names":["LineRoot","asProps","x","y","d3","color","duration","data","getNullData","definedNullData","SLine","Element","styles","hide","uid","size","dataHintsHandler","specifyDataRowFields","establishDataType","sstyled","rect","setAttribute","Component","style","uniqueIDEnhancement","$rootProps","curve","curveLinear","scale","xScale","yScale","d3Line","defined","definedData","p","scaleOfBandwidth","Null","props","SNull","createElement","Dots"],"sources":["../../src/Line.jsx"],"sourcesContent":["import React from 'react';\nimport { curveLinear, line as d3Line } from 'd3-shape';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport { definedData, definedNullData, scaleOfBandwidth, getNullData } from './utils';\nimport Dots from './Dots';\nimport ClipPath from './ClipPath';\n\nimport style from './style/line.shadow.css';\n\nclass LineRoot extends Component {\n static displayName = 'Line';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({ x, y, $rootProps, curve = curveLinear, scale }) => {\n const [xScale, yScale] = scale || $rootProps.scale;\n return {\n d3: d3Line()\n .defined(definedData(x, y))\n .curve(curve)\n .x((p) => scaleOfBandwidth(xScale, p[x]))\n .y((p) => scaleOfBandwidth(yScale, p[y])),\n duration: 500,\n };\n };\n\n getDotsProps() {\n const { x, y, d3, color, duration } = this.asProps;\n return {\n x,\n y,\n d3,\n color,\n duration,\n };\n }\n\n getNullProps() {\n const { x, y, d3, color, data } = this.asProps;\n return {\n d3,\n // TODO: vertical\n data: getNullData(data, definedNullData(x, y), y),\n color,\n };\n }\n\n render() {\n const SLine = this.Element;\n const { styles, hide, color, uid, size, d3, data, duration, x, y } = this.asProps;\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y);\n this.asProps.dataHintsHandler.establishDataType('time-series');\n\n return sstyled(styles)(\n <>\n <SLine\n aria-hidden\n clipPath={`url(#${uid})`}\n render=\"path\"\n hide={hide}\n color={color}\n d={d3(data)}\n use:duration={`${duration}ms`}\n />\n {duration && (\n <ClipPath\n aria-hidden\n setAttributeTag={(rect) => {\n rect.setAttribute('width', size[0]);\n }}\n id={uid}\n x=\"0\"\n y=\"0\"\n width={0}\n height={size[1]}\n transition={`width ${duration}ms ease-in-out`}\n />\n )}\n </>,\n );\n }\n}\n\nfunction Null(props) {\n const { Element: SNull, styles, d3, data, hide } = props;\n return sstyled(styles)(<SNull render=\"path\" d={d3(data)} hide={hide} />);\n}\n\nexport default createElement(LineRoot, {\n Dots,\n Null,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA
|
|
1
|
+
{"version":3,"file":"Line.js","names":["LineRoot","asProps","x","y","d3","color","duration","transparent","data","getNullData","definedNullData","SLine","Element","styles","hide","uid","size","dataHintsHandler","specifyDataRowFields","establishDataType","sstyled","rect","setAttribute","Component","style","uniqueIDEnhancement","$rootProps","curve","curveLinear","scale","xScale","yScale","d3Line","defined","definedData","p","scaleOfBandwidth","Null","props","SNull","createElement","Dots"],"sources":["../../src/Line.jsx"],"sourcesContent":["import React from 'react';\nimport { curveLinear, line as d3Line } from 'd3-shape';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport { definedData, definedNullData, scaleOfBandwidth, getNullData } from './utils';\nimport Dots from './Dots';\nimport ClipPath from './ClipPath';\n\nimport style from './style/line.shadow.css';\n\nclass LineRoot extends Component {\n static displayName = 'Line';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({ x, y, $rootProps, curve = curveLinear, scale }) => {\n const [xScale, yScale] = scale || $rootProps.scale;\n return {\n d3: d3Line()\n .defined(definedData(x, y))\n .curve(curve)\n .x((p) => scaleOfBandwidth(xScale, p[x]))\n .y((p) => scaleOfBandwidth(yScale, p[y])),\n duration: 500,\n };\n };\n\n getDotsProps() {\n const { x, y, d3, color, duration, transparent } = this.asProps;\n return {\n x,\n y,\n d3,\n color,\n duration,\n transparent,\n };\n }\n\n getNullProps() {\n const { x, y, d3, color, data } = this.asProps;\n return {\n d3,\n // TODO: vertical\n data: getNullData(data, definedNullData(x, y), y),\n color,\n };\n }\n\n render() {\n const SLine = this.Element;\n const { styles, hide, color, uid, size, d3, data, duration, x, y, transparent } = this.asProps;\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y);\n this.asProps.dataHintsHandler.establishDataType('time-series');\n\n return sstyled(styles)(\n <>\n <SLine\n aria-hidden\n clipPath={`url(#${uid})`}\n render=\"path\"\n hide={hide}\n color={color}\n transparent={transparent}\n d={d3(data)}\n use:duration={`${duration}ms`}\n />\n {duration && (\n <ClipPath\n aria-hidden\n setAttributeTag={(rect) => {\n rect.setAttribute('width', size[0]);\n }}\n id={uid}\n x=\"0\"\n y=\"0\"\n width={0}\n height={size[1]}\n transition={`width ${duration}ms ease-in-out`}\n />\n )}\n </>,\n );\n }\n}\n\nfunction Null(props) {\n const { Element: SNull, styles, d3, data, hide } = props;\n return sstyled(styles)(<SNull render=\"path\" d={d3(data)} hide={hide} />);\n}\n\nexport default createElement(LineRoot, {\n Dots,\n Null,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,Q;;;;;;;;;;;;WAiBJ,wBAAe;MACb,oBAAmD,KAAKC,OAAxD;MAAA,IAAQC,CAAR,iBAAQA,CAAR;MAAA,IAAWC,CAAX,iBAAWA,CAAX;MAAA,IAAcC,EAAd,iBAAcA,EAAd;MAAA,IAAkBC,KAAlB,iBAAkBA,KAAlB;MAAA,IAAyBC,QAAzB,iBAAyBA,QAAzB;MAAA,IAAmCC,WAAnC,iBAAmCA,WAAnC;MACA,OAAO;QACLL,CAAC,EAADA,CADK;QAELC,CAAC,EAADA,CAFK;QAGLC,EAAE,EAAFA,EAHK;QAILC,KAAK,EAALA,KAJK;QAKLC,QAAQ,EAARA,QALK;QAMLC,WAAW,E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,CAAD,CAA1B,CAAP;IAAA,CAJD,CADC;IAMLG,QAAQ,EAAE;EANL,CAAP;AAQD,C;;AA8DH,SAAS+B,IAAT,CAAcC,KAAd,EAAqB;EAAA;;EACnB,IAAiBC,KAAjB,GAAmDD,KAAnD,CAAQ1B,OAAR;EAAA,IAAwBC,MAAxB,GAAmDyB,KAAnD,CAAwBzB,MAAxB;EAAA,IAAgCT,EAAhC,GAAmDkC,KAAnD,CAAgClC,EAAhC;EAAA,IAAoCI,IAApC,GAAmD8B,KAAnD,CAAoC9B,IAApC;EAAA,IAA0CM,IAA1C,GAAmDwB,KAAnD,CAA0CxB,IAA1C;EACA,eAAO,IAAAM,aAAA,EAAQP,MAAR,CAAP,eAAuB,gCAAC,KAAD;IAAA,UAAc,MAAd;IAAA,KAAwBT,EAAE,CAACI,IAAD,CAA1B;IAAA,QAAwCM;EAAxC,GAAvB;AACD;;eAEc,IAAA0B,yBAAA,EAAcxC,QAAd,EAAwB;EACrCyC,IAAI,EAAJA,gBADqC;EAErCJ,IAAI,EAAJA;AAFqC,CAAxB,C"}
|
package/lib/cjs/Plot.js
CHANGED
|
@@ -58,13 +58,13 @@ var style = (
|
|
|
58
58
|
/*__reshadow_css_start__*/
|
|
59
59
|
_core.sstyled.insert(
|
|
60
60
|
/*__inner_css_start__*/
|
|
61
|
-
".
|
|
61
|
+
".___SPlot_8eyfq_gg_{overflow:hidden}.___SPlot_8eyfq_gg_:active,.___SPlot_8eyfq_gg_:focus{outline:0;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_8eyfq_gg_.__keyboardFocused_8eyfq_gg_{border:1px solid var(--intergalactic-chart-palette-order-blue-second-order,#008ff8);box-shadow:var(--intergalactic-keyboard-focus,0 0 0 3px rgba(0,143,248,.3))}"
|
|
62
62
|
/*__inner_css_end__*/
|
|
63
|
-
, "
|
|
63
|
+
, "8eyfq_gg_")
|
|
64
64
|
/*__reshadow_css_end__*/
|
|
65
65
|
, {
|
|
66
|
-
"__SPlot": "
|
|
67
|
-
"_keyboardFocused": "
|
|
66
|
+
"__SPlot": "___SPlot_8eyfq_gg_",
|
|
67
|
+
"_keyboardFocused": "__keyboardFocused_8eyfq_gg_"
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/RadialTree.js
CHANGED
|
@@ -60,20 +60,20 @@ var style = (
|
|
|
60
60
|
/*__reshadow_css_start__*/
|
|
61
61
|
_core.sstyled.insert(
|
|
62
62
|
/*__inner_css_start__*/
|
|
63
|
-
".
|
|
63
|
+
".___SRadian_1jycq_gg_{cursor:pointer;fill:var(--intergalactic-chart-palette-order-blue-second-order,#008ff8)}.___SLine_1jycq_gg_{stroke:var(--intergalactic-chart-palette-order-blue-second-order,#008ff8)}.___SLine_1jycq_gg_.__color_1jycq_gg_{stroke:var(--color_1jycq)}.___SCap_1jycq_gg_{transition:r .1s}.___SLabel_1jycq_gg_{fill:var(--color_1jycq);cursor:var(--text-cursor_1jycq)}.___SRadian_1jycq_gg_:hover .___SLabel_1jycq_gg_{fill:var(--color-hovered_1jycq)}@media (prefers-reduced-motion){.___SLineCap_1jycq_gg_{transition:none}}"
|
|
64
64
|
/*__inner_css_end__*/
|
|
65
|
-
, "
|
|
65
|
+
, "1jycq_gg_")
|
|
66
66
|
/*__reshadow_css_end__*/
|
|
67
67
|
, {
|
|
68
|
-
"__SRadian": "
|
|
69
|
-
"__SLine": "
|
|
70
|
-
"_color": "
|
|
71
|
-
"--color": "--
|
|
72
|
-
"__SCap": "
|
|
73
|
-
"__SLabel": "
|
|
74
|
-
"--text-cursor": "--text-
|
|
75
|
-
"--color-hovered": "--color-
|
|
76
|
-
"__SLineCap": "
|
|
68
|
+
"__SRadian": "___SRadian_1jycq_gg_",
|
|
69
|
+
"__SLine": "___SLine_1jycq_gg_",
|
|
70
|
+
"_color": "__color_1jycq_gg_",
|
|
71
|
+
"--color": "--color_1jycq",
|
|
72
|
+
"__SCap": "___SCap_1jycq_gg_",
|
|
73
|
+
"__SLabel": "___SLabel_1jycq_gg_",
|
|
74
|
+
"--text-cursor": "--text-cursor_1jycq",
|
|
75
|
+
"--color-hovered": "--color-hovered_1jycq",
|
|
76
|
+
"__SLineCap": "___SLineCap_1jycq_gg_"
|
|
77
77
|
});
|
|
78
78
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
79
79
|
|
package/lib/cjs/ReferenceLine.js
CHANGED
|
@@ -42,19 +42,19 @@ var style = (
|
|
|
42
42
|
/*__reshadow_css_start__*/
|
|
43
43
|
_core.sstyled.insert(
|
|
44
44
|
/*__inner_css_start__*/
|
|
45
|
-
".
|
|
45
|
+
".___SReferenceLine_kxzm6_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis,#c4c7cf)}.___STitle_kxzm6_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#6c6e79);transform-origin:var(--transform-origin_kxzm6)}.___STitle_kxzm6_gg_._position_top_kxzm6_gg_{text-anchor:middle}.___STitle_kxzm6_gg_._position_bottom_kxzm6_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_kxzm6_gg_._position_right_kxzm6_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_kxzm6_gg_._position_left_kxzm6_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_kxzm6_gg_{fill:var(--intergalactic-chart-grid-period-bg,rgba(196,199,207,.2))}"
|
|
46
46
|
/*__inner_css_end__*/
|
|
47
|
-
, "
|
|
47
|
+
, "kxzm6_gg_")
|
|
48
48
|
/*__reshadow_css_end__*/
|
|
49
49
|
, {
|
|
50
|
-
"__SReferenceLine": "
|
|
51
|
-
"__STitle": "
|
|
52
|
-
"--transform-origin": "--transform-
|
|
53
|
-
"_position_top": "
|
|
54
|
-
"_position_bottom": "
|
|
55
|
-
"_position_right": "
|
|
56
|
-
"_position_left": "
|
|
57
|
-
"__SBackground": "
|
|
50
|
+
"__SReferenceLine": "___SReferenceLine_kxzm6_gg_",
|
|
51
|
+
"__STitle": "___STitle_kxzm6_gg_",
|
|
52
|
+
"--transform-origin": "--transform-origin_kxzm6",
|
|
53
|
+
"_position_top": "_position_top_kxzm6_gg_",
|
|
54
|
+
"_position_bottom": "_position_bottom_kxzm6_gg_",
|
|
55
|
+
"_position_right": "_position_right_kxzm6_gg_",
|
|
56
|
+
"_position_left": "_position_left_kxzm6_gg_",
|
|
57
|
+
"__SBackground": "___SBackground_kxzm6_gg_"
|
|
58
58
|
});
|
|
59
59
|
var side2direction = {
|
|
60
60
|
left: 'vertical',
|
package/lib/cjs/ScatterPlot.js
CHANGED
|
@@ -52,16 +52,16 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___SScatterPlot_1a7jh_gg_{fill:var(--intergalactic-chart-palette-order-blue,#2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1a7jh);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_1a7jh_gg_:hover{opacity:.8}.___SScatterPlot_1a7jh_gg_.__color_1a7jh_gg_{fill:var(--color_1a7jh)}.___SValue_1a7jh_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50,10px);stroke:var(--intergalactic-chart-palette-order-blue-second-order,#008ff8)}.___SValue_1a7jh_gg_.__color_1a7jh_gg_{stroke:var(--color_1a7jh)}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "1a7jh_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SScatterPlot": "
|
|
61
|
-
"--duration": "--
|
|
62
|
-
"_color": "
|
|
63
|
-
"--color": "--
|
|
64
|
-
"__SValue": "
|
|
60
|
+
"__SScatterPlot": "___SScatterPlot_1a7jh_gg_",
|
|
61
|
+
"--duration": "--duration_1a7jh",
|
|
62
|
+
"_color": "__color_1a7jh_gg_",
|
|
63
|
+
"--color": "--color_1a7jh",
|
|
64
|
+
"__SValue": "___SValue_1a7jh_gg_"
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Tooltip.js
CHANGED
|
@@ -60,17 +60,17 @@ var style = (
|
|
|
60
60
|
/*__reshadow_css_start__*/
|
|
61
61
|
_core.sstyled.insert(
|
|
62
62
|
/*__inner_css_start__*/
|
|
63
|
-
".
|
|
63
|
+
".___STooltip_slw9x_gg_{font-size:var(--intergalactic-fs-100,12px);line-height:var(--intergalactic-lh-100,133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral,#fff);border-radius:var(--intergalactic-rounded-medium,6px);border:1px solid var(--intergalactic-border-secondary,#e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,0 1px 12px 0 rgba(25,27,35,.15));padding:var(--intergalactic-spacing-3x,12px)}.___STitle_slw9x_gg_{color:var(--intergalactic-text-secondary,#6c6e79);margin-bottom:var(--intergalactic-spacing-2x,8px)}.___SDotGroup_slw9x_gg_{display:flex;align-items:center}.___SDot_slw9x_gg_{width:8px;height:8px;border-radius:50%;margin-right:var(--intergalactic-spacing-2x,8px);background:var(--intergalactic-icon-secondary-info,#2bb3ff)}.___SDot_slw9x_gg_.__color_slw9x_gg_{background:var(--color_slw9x)}"
|
|
64
64
|
/*__inner_css_end__*/
|
|
65
|
-
, "
|
|
65
|
+
, "slw9x_gg_")
|
|
66
66
|
/*__reshadow_css_end__*/
|
|
67
67
|
, {
|
|
68
|
-
"__STooltip": "
|
|
69
|
-
"__STitle": "
|
|
70
|
-
"__SDotGroup": "
|
|
71
|
-
"__SDot": "
|
|
72
|
-
"_color": "
|
|
73
|
-
"--color": "--
|
|
68
|
+
"__STooltip": "___STooltip_slw9x_gg_",
|
|
69
|
+
"__STitle": "___STitle_slw9x_gg_",
|
|
70
|
+
"__SDotGroup": "___SDotGroup_slw9x_gg_",
|
|
71
|
+
"__SDot": "___SDot_slw9x_gg_",
|
|
72
|
+
"_color": "__color_slw9x_gg_",
|
|
73
|
+
"--color": "--color_slw9x"
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
var TooltipRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Venn.js
CHANGED
|
@@ -48,16 +48,17 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SCircle_1e4mg_gg_{fill:var(--intergalactic-chart-palette-order-green,#59ddaa);stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1e4mg);transition-timing-function:ease-in-out}.___SCircle_1e4mg_gg_:hover{fill-opacity:.7}.___SCircle_1e4mg_gg_.__color_1e4mg_gg_{fill:var(--color_1e4mg)}.___SCircle_1e4mg_gg_.__transparent_1e4mg_gg_{opacity:.3}.___SIntersection_1e4mg_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;fill-opacity:0}.___SIntersection_1e4mg_gg_:hover{fill-opacity:.1}.___SIntersection_1e4mg_gg_.__transparent_1e4mg_gg_{opacity:.3}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "1e4mg_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SCircle": "
|
|
57
|
-
"--duration": "--
|
|
58
|
-
"_color": "
|
|
59
|
-
"--color": "--
|
|
60
|
-
"
|
|
56
|
+
"__SCircle": "___SCircle_1e4mg_gg_",
|
|
57
|
+
"--duration": "--duration_1e4mg",
|
|
58
|
+
"_color": "__color_1e4mg_gg_",
|
|
59
|
+
"--color": "--color_1e4mg",
|
|
60
|
+
"_transparent": "__transparent_1e4mg_gg_",
|
|
61
|
+
"__SIntersection": "___SIntersection_1e4mg_gg_"
|
|
61
62
|
});
|
|
62
63
|
|
|
63
64
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -146,13 +147,16 @@ var VennRoot = /*#__PURE__*/function (_Component) {
|
|
|
146
147
|
data: this.vennData[props.dataKey],
|
|
147
148
|
originalData: this.asProps.data[props.dataKey],
|
|
148
149
|
onMouseMove: this.bindHandlerTooltip(true, props),
|
|
149
|
-
onMouseLeave: this.bindHandlerTooltip(false, props)
|
|
150
|
+
onMouseLeave: this.bindHandlerTooltip(false, props),
|
|
151
|
+
transparent: this.asProps.transparent
|
|
150
152
|
};
|
|
151
153
|
}
|
|
152
154
|
}, {
|
|
153
155
|
key: "getIntersectionProps",
|
|
154
156
|
value: function getIntersectionProps(props) {
|
|
155
|
-
var
|
|
157
|
+
var _this$asProps2 = this.asProps,
|
|
158
|
+
duration = _this$asProps2.duration,
|
|
159
|
+
transparent = _this$asProps2.transparent;
|
|
156
160
|
var dataKeys = props.dataKey.split('/');
|
|
157
161
|
return {
|
|
158
162
|
duration: duration,
|
|
@@ -162,7 +166,8 @@ var VennRoot = /*#__PURE__*/function (_Component) {
|
|
|
162
166
|
}),
|
|
163
167
|
originalData: this.asProps.data[props.dataKey],
|
|
164
168
|
onMouseMove: this.bindHandlerTooltip(true, props),
|
|
165
|
-
onMouseLeave: this.bindHandlerTooltip(false, props)
|
|
169
|
+
onMouseLeave: this.bindHandlerTooltip(false, props),
|
|
170
|
+
transparent: transparent
|
|
166
171
|
};
|
|
167
172
|
}
|
|
168
173
|
}, {
|
|
@@ -202,7 +207,8 @@ function Circle(_ref6) {
|
|
|
202
207
|
duration = _ref6.duration,
|
|
203
208
|
name = _ref6.name,
|
|
204
209
|
dataKey = _ref6.dataKey,
|
|
205
|
-
dataHintsHandler = _ref6.dataHintsHandler
|
|
210
|
+
dataHintsHandler = _ref6.dataHintsHandler,
|
|
211
|
+
transparent = _ref6.transparent;
|
|
206
212
|
dataHintsHandler.describeValueEntity(dataKey, name);
|
|
207
213
|
return _ref = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCircle, _ref.cn("SCircle", {
|
|
208
214
|
"aria-hidden": true,
|
|
@@ -211,6 +217,7 @@ function Circle(_ref6) {
|
|
|
211
217
|
"cx": data.x,
|
|
212
218
|
"cy": data.y,
|
|
213
219
|
"r": data.radius,
|
|
220
|
+
"transparent": transparent,
|
|
214
221
|
"use:duration": "".concat(duration, "ms")
|
|
215
222
|
}));
|
|
216
223
|
}
|
|
@@ -223,7 +230,8 @@ function Intersection(props) {
|
|
|
223
230
|
data = props.data,
|
|
224
231
|
name = props.name,
|
|
225
232
|
dataKey = props.dataKey,
|
|
226
|
-
dataHintsHandler = props.dataHintsHandler
|
|
233
|
+
dataHintsHandler = props.dataHintsHandler,
|
|
234
|
+
transparent = props.transparent;
|
|
227
235
|
dataHintsHandler.describeValueEntity(dataKey, name);
|
|
228
236
|
|
|
229
237
|
var renderIntersection = _react["default"].useCallback( /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
@@ -238,7 +246,8 @@ function Intersection(props) {
|
|
|
238
246
|
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIntersection, _ref2.cn("SIntersection", {
|
|
239
247
|
"aria-hidden": true,
|
|
240
248
|
"render": renderIntersection,
|
|
241
|
-
"d": (0, _venn.intersectionAreaPath)(data)
|
|
249
|
+
"d": (0, _venn.intersectionAreaPath)(data),
|
|
250
|
+
"transparent": transparent
|
|
242
251
|
}));
|
|
243
252
|
}
|
|
244
253
|
|
package/lib/cjs/Venn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Venn.js","names":["VennRoot","canUseDOM","document","createElement","visible","props","x","clientX","y","clientY","eventEmitter","asProps","virtualElement","getBoundingClientRect","generateGetBoundingClientRect","CONSTANT","VIRTUAL_ELEMENT","emit","React","forwardRef","ref","width","height","top","right","bottom","left","data","orientation","orientationOrder","size","vennData","Object","entries","map","dataKey","sets","split","scaleSolution","normalizeSolution","venn","duration","originalData","onMouseMove","bindHandlerTooltip","onMouseLeave","dataKeys","delay","values","filter","d","includes","setid","Element","dataHintsHandler","establishDataType","getVennData","renderElement","Component","style","Math","PI","c1","c2","radius","Circle","SCircle","styles","color","name","describeValueEntity","sstyled","Intersection","SIntersection","renderIntersection","useCallback","intersectionAreaPath","Venn"],"sources":["../../src/Venn.jsx"],"sourcesContent":["import React from 'react';\nimport { venn, normalizeSolution, scaleSolution, intersectionAreaPath } from '@upsetjs/venn.js';\nimport { Component, sstyled } from '@semcore/core';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport { FadeInOut } from '@semcore/animation';\nimport createElement from './createElement';\nimport { CONSTANT } from './utils';\n\nimport style from './style/venn.shadow.css';\n\nclass VennRoot extends Component {\n static displayName = 'Venn';\n static style = style;\n\n static defaultProps = {\n orientation: Math.PI / 2,\n orientationOrder: (c1, c2) => c2.radius - c1.radius,\n duration: 500,\n };\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n\n generateGetBoundingClientRect(x = 0, y = 0) {\n return () => ({ width: 0, height: 0, top: y, right: x, bottom: y, left: x });\n }\n\n bindHandlerTooltip =\n (visible, props) =>\n ({ clientX: x, clientY: y }) => {\n const { eventEmitter } = this.asProps;\n this.virtualElement.getBoundingClientRect = this.generateGetBoundingClientRect(x, y);\n this.virtualElement[CONSTANT.VIRTUAL_ELEMENT] = true;\n eventEmitter.emit('onTooltipVisible', visible, props, this.virtualElement);\n };\n\n getVennData() {\n const { data, orientation, orientationOrder, size } = this.asProps;\n const [width, height] = size;\n const vennData = Object.entries(data).map(([dataKey, size]) => ({\n sets: dataKey.split('/'),\n size,\n }));\n return scaleSolution(\n normalizeSolution(venn(vennData), orientation, orientationOrder),\n width,\n height,\n 10,\n );\n }\n\n getCircleProps(props) {\n return {\n duration: this.asProps.duration,\n data: this.vennData[props.dataKey],\n originalData: this.asProps.data[props.dataKey],\n onMouseMove: this.bindHandlerTooltip(true, props),\n onMouseLeave: this.bindHandlerTooltip(false, props),\n };\n }\n\n getIntersectionProps(props) {\n const { duration } = this.asProps;\n const dataKeys = props.dataKey.split('/');\n return {\n duration,\n delay: duration,\n data: Object.values(this.vennData).filter((d) => dataKeys.includes(d.setid)),\n originalData: this.asProps.data[props.dataKey],\n onMouseMove: this.bindHandlerTooltip(true, props),\n onMouseLeave: this.bindHandlerTooltip(false, props),\n };\n }\n\n renderElement = React.forwardRef((props, ref) => {\n return <FadeInOut aria-hidden ref={ref} tag=\"g\" visible {...props} />;\n });\n\n render() {\n const Element = this.Element;\n this.asProps.dataHintsHandler.establishDataType('values-set');\n this.vennData = this.getVennData();\n return (\n <Element\n aria-hidden\n render={this.renderElement}\n childrenPosition=\"inside\"\n vennData={this.vennData}\n />\n );\n }\n}\n\nfunction Circle({\n Element: SCircle,\n styles,\n color,\n data,\n duration,\n name,\n dataKey,\n dataHintsHandler,\n}) {\n dataHintsHandler.describeValueEntity(dataKey, name);\n\n return sstyled(styles)(\n <SCircle\n aria-hidden\n render=\"circle\"\n color={color}\n cx={data.x}\n cy={data.y}\n r={data.radius}\n use:duration={`${duration}ms`}\n />,\n );\n}\n\nfunction Intersection(props) {\n const {
|
|
1
|
+
{"version":3,"file":"Venn.js","names":["VennRoot","canUseDOM","document","createElement","visible","props","x","clientX","y","clientY","eventEmitter","asProps","virtualElement","getBoundingClientRect","generateGetBoundingClientRect","CONSTANT","VIRTUAL_ELEMENT","emit","React","forwardRef","ref","width","height","top","right","bottom","left","data","orientation","orientationOrder","size","vennData","Object","entries","map","dataKey","sets","split","scaleSolution","normalizeSolution","venn","duration","originalData","onMouseMove","bindHandlerTooltip","onMouseLeave","transparent","dataKeys","delay","values","filter","d","includes","setid","Element","dataHintsHandler","establishDataType","getVennData","renderElement","Component","style","Math","PI","c1","c2","radius","Circle","SCircle","styles","color","name","describeValueEntity","sstyled","Intersection","SIntersection","renderIntersection","useCallback","intersectionAreaPath","Venn"],"sources":["../../src/Venn.jsx"],"sourcesContent":["import React from 'react';\nimport { venn, normalizeSolution, scaleSolution, intersectionAreaPath } from '@upsetjs/venn.js';\nimport { Component, sstyled } from '@semcore/core';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport { FadeInOut } from '@semcore/animation';\nimport createElement from './createElement';\nimport { CONSTANT } from './utils';\n\nimport style from './style/venn.shadow.css';\n\nclass VennRoot extends Component {\n static displayName = 'Venn';\n static style = style;\n\n static defaultProps = {\n orientation: Math.PI / 2,\n orientationOrder: (c1, c2) => c2.radius - c1.radius,\n duration: 500,\n };\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n\n generateGetBoundingClientRect(x = 0, y = 0) {\n return () => ({ width: 0, height: 0, top: y, right: x, bottom: y, left: x });\n }\n\n bindHandlerTooltip =\n (visible, props) =>\n ({ clientX: x, clientY: y }) => {\n const { eventEmitter } = this.asProps;\n this.virtualElement.getBoundingClientRect = this.generateGetBoundingClientRect(x, y);\n this.virtualElement[CONSTANT.VIRTUAL_ELEMENT] = true;\n eventEmitter.emit('onTooltipVisible', visible, props, this.virtualElement);\n };\n\n getVennData() {\n const { data, orientation, orientationOrder, size } = this.asProps;\n const [width, height] = size;\n const vennData = Object.entries(data).map(([dataKey, size]) => ({\n sets: dataKey.split('/'),\n size,\n }));\n return scaleSolution(\n normalizeSolution(venn(vennData), orientation, orientationOrder),\n width,\n height,\n 10,\n );\n }\n\n getCircleProps(props) {\n return {\n duration: this.asProps.duration,\n data: this.vennData[props.dataKey],\n originalData: this.asProps.data[props.dataKey],\n onMouseMove: this.bindHandlerTooltip(true, props),\n onMouseLeave: this.bindHandlerTooltip(false, props),\n transparent: this.asProps.transparent,\n };\n }\n\n getIntersectionProps(props) {\n const { duration, transparent } = this.asProps;\n const dataKeys = props.dataKey.split('/');\n return {\n duration,\n delay: duration,\n data: Object.values(this.vennData).filter((d) => dataKeys.includes(d.setid)),\n originalData: this.asProps.data[props.dataKey],\n onMouseMove: this.bindHandlerTooltip(true, props),\n onMouseLeave: this.bindHandlerTooltip(false, props),\n transparent,\n };\n }\n\n renderElement = React.forwardRef((props, ref) => {\n return <FadeInOut aria-hidden ref={ref} tag=\"g\" visible {...props} />;\n });\n\n render() {\n const Element = this.Element;\n this.asProps.dataHintsHandler.establishDataType('values-set');\n this.vennData = this.getVennData();\n return (\n <Element\n aria-hidden\n render={this.renderElement}\n childrenPosition=\"inside\"\n vennData={this.vennData}\n />\n );\n }\n}\n\nfunction Circle({\n Element: SCircle,\n styles,\n color,\n data,\n duration,\n name,\n dataKey,\n dataHintsHandler,\n transparent,\n}) {\n dataHintsHandler.describeValueEntity(dataKey, name);\n\n return sstyled(styles)(\n <SCircle\n aria-hidden\n render=\"circle\"\n color={color}\n cx={data.x}\n cy={data.y}\n r={data.radius}\n transparent={transparent}\n use:duration={`${duration}ms`}\n />,\n );\n}\n\nfunction Intersection(props) {\n const {\n Element: SIntersection,\n styles,\n data,\n name,\n dataKey,\n dataHintsHandler,\n transparent,\n } = props;\n dataHintsHandler.describeValueEntity(dataKey, name);\n\n const renderIntersection = React.useCallback(\n React.forwardRef((props, ref) => {\n return <FadeInOut aria-hidden ref={ref} tag=\"path\" visible {...props} />;\n }),\n [props],\n );\n return sstyled(styles)(\n <SIntersection\n aria-hidden\n render={renderIntersection}\n d={intersectionAreaPath(data)}\n transparent={transparent}\n />,\n );\n}\n\nconst Venn = createElement(VennRoot, { Circle, Intersection });\n\nexport default Venn;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,Q;;;;;;;;;;;;;;;uGAUa,IAAAC,qBAAA,MAAcC,QAAQ,CAACC,aAAT,CAAuB,KAAvB,CAAd,GAA8C,E;2GAO7D,UAACC,OAAD,EAAUC,KAAV;MAAA,OACA,iBAAgC;QAAA,IAApBC,CAAoB,SAA7BC,OAA6B;QAAA,IAARC,CAAQ,S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Ad,EAAwB;EAAEkE,MAAM,EAANA,MAAF;EAAUO,YAAY,EAAZA;AAAV,CAAxB,CAAb;eAEeK,I"}
|
|
@@ -40,12 +40,12 @@ var styles = (
|
|
|
40
40
|
/*__reshadow_css_start__*/
|
|
41
41
|
_core.sstyled.insert(
|
|
42
42
|
/*__inner_css_start__*/
|
|
43
|
-
".
|
|
43
|
+
".___SPlotA11yModule_b1w9z_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_b1w9z_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
|
|
44
44
|
/*__inner_css_end__*/
|
|
45
|
-
, "
|
|
45
|
+
, "b1w9z_gg_")
|
|
46
46
|
/*__reshadow_css_end__*/
|
|
47
47
|
, {
|
|
48
|
-
"__SPlotA11yModule": "
|
|
48
|
+
"__SPlotA11yModule": "___SPlotA11yModule_b1w9z_gg_"
|
|
49
49
|
});
|
|
50
50
|
var globalWasFocused = false;
|
|
51
51
|
var globalNavWithKeyboard = false;
|
|
@@ -48,13 +48,13 @@ var styles = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SPlotA11yView_3pcgq_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral,#fff);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_3pcgq_gg_:focus,.___SPlotA11yView_3pcgq_gg_.__focus-within_3pcgq_gg_{-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_3pcgq_gg_:focus,.___SPlotA11yView_3pcgq_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_3pcgq_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x,8px);display:block}.___SPlotA11yView_3pcgq_gg_ table,.___SPlotA11yView_3pcgq_gg_ td,.___SPlotA11yView_3pcgq_gg_ th{border:1px solid var(--intergalactic-border-primary,#c4c7cf)}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "3pcgq_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SPlotA11yView": "
|
|
57
|
-
"_focus-within": "__focus-
|
|
56
|
+
"__SPlotA11yView": "___SPlotA11yView_3pcgq_gg_",
|
|
57
|
+
"_focus-within": "__focus-within_3pcgq_gg_"
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
var PlotA11yView = function PlotA11yView(_ref3) {
|
|
@@ -9,6 +9,10 @@ SArea[color] {
|
|
|
9
9
|
fill: var(--color);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
SArea[transparent] {
|
|
13
|
+
opacity: 0.3;
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
SAreaLine {
|
|
13
17
|
stroke: var(--intergalactic-chart-palette-order-blue, #2bb3ff);
|
|
14
18
|
stroke-width: 3;
|
|
@@ -19,6 +23,10 @@ SAreaLine[color] {
|
|
|
19
23
|
stroke: var(--color);
|
|
20
24
|
}
|
|
21
25
|
|
|
26
|
+
SAreaLine[transparent] {
|
|
27
|
+
opacity: 0.3;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
SArea,
|
|
23
31
|
SAreaLine {
|
|
24
32
|
transition-property: d;
|