@semcore/d3-chart 18.0.0 → 18.1.0-prerelease.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 +19 -0
- package/lib/cjs/Area.js +12 -12
- package/lib/cjs/Axis.js +15 -15
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +14 -14
- package/lib/cjs/CompactHorizontalBar.js +16 -16
- package/lib/cjs/Donut.js +13 -11
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +12 -12
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +15 -17
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Pattern.js +6 -6
- package/lib/cjs/Plot.js +2 -2
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +12 -12
- package/lib/cjs/Reference.js +148 -55
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +12 -12
- 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/AbstractChart.js +16 -13
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +25 -0
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +22 -14
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +12 -0
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +19 -17
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +12 -0
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +11 -11
- package/lib/cjs/style/abstract-chart.shadow.css +2 -2
- package/lib/cjs/style/area.shadow.css +1 -1
- package/lib/cjs/style/donut.shadow.css +1 -1
- package/lib/cjs/style/line.shadow.css +2 -2
- package/lib/cjs/style/plot.shadow.css +4 -0
- package/lib/cjs/style/reference.shadow.css +7 -10
- package/lib/cjs/types/Reference.d.js.map +1 -1
- package/lib/es6/Area.js +12 -12
- package/lib/es6/Axis.js +15 -15
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +14 -14
- package/lib/es6/CompactHorizontalBar.js +16 -16
- package/lib/es6/Donut.js +13 -11
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +12 -12
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +15 -17
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Pattern.js +6 -6
- package/lib/es6/Plot.js +2 -2
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +12 -12
- package/lib/es6/Reference.js +148 -55
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +12 -12
- 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/AbstractChart.js +16 -13
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +26 -1
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +22 -14
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +12 -0
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +19 -17
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +12 -0
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +11 -11
- package/lib/es6/style/abstract-chart.shadow.css +2 -2
- package/lib/es6/style/area.shadow.css +1 -1
- package/lib/es6/style/donut.shadow.css +1 -1
- package/lib/es6/style/line.shadow.css +2 -2
- package/lib/es6/style/plot.shadow.css +4 -0
- package/lib/es6/style/reference.shadow.css +7 -10
- package/lib/es6/types/Reference.d.js.map +1 -1
- package/lib/esm/Area.mjs +13 -13
- package/lib/esm/Axis.mjs +16 -16
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +15 -15
- package/lib/esm/CompactHorizontalBar.mjs +17 -17
- package/lib/esm/Donut.mjs +14 -12
- package/lib/esm/Dots.mjs +13 -13
- package/lib/esm/HorizontalBar.mjs +17 -17
- package/lib/esm/Hover.mjs +16 -18
- package/lib/esm/Line.mjs +10 -10
- package/lib/esm/Pattern.mjs +7 -7
- package/lib/esm/Plot.mjs +3 -3
- package/lib/esm/Radar.mjs +20 -20
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +145 -56
- package/lib/esm/ScatterPlot.mjs +10 -10
- package/lib/esm/Tooltip.mjs +13 -13
- 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/AbstractChart.mjs +17 -14
- package/lib/esm/component/Chart/CigaretteChart.mjs +1 -1
- package/lib/esm/component/Chart/LineChart.mjs +26 -0
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +23 -15
- package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +12 -0
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +20 -18
- package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +12 -0
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +12 -12
- package/lib/esm/style/abstract-chart.shadow.css +2 -2
- package/lib/esm/style/area.shadow.css +1 -1
- package/lib/esm/style/donut.shadow.css +1 -1
- package/lib/esm/style/line.shadow.css +2 -2
- package/lib/esm/style/plot.shadow.css +4 -0
- package/lib/esm/style/reference.shadow.css +7 -10
- package/lib/types/Reference.d.ts +21 -4
- package/lib/types/component/Chart/AbstractChart.d.ts +1 -0
- package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +36 -0
- package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts.map +1 -1
- package/package.json +15 -14
- package/vite.config.ts +1 -0
package/lib/es6/Hover.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hover.js","names":["Component","sstyled","Root","canUseDOM","getFocusableIn","hasParent","trottle","useEnhancedEffect","React","createElement","style","_sstyled","insert","Tooltip","scaleOfBandwidth","getIndexFromData","eventToPoint","invert","scaleToBand","STROKE_WIDTH","NOTCH_WIDTH","NOTCH_DELTA","formatValue","locale","value","Date","Intl","DateTimeFormat","day","month","format","Hover","constructor","args","_defineProperty","xIndex","yIndex","document","e","currentTarget","isTickUnder","eventEmitter","data","scale","x","y","rootRef","patterns","plotId","asProps","clientX","clientY","xScale","yScale","pX","pY","current","vX","vY","undefined","state","xRect","yRect","height","getBoundingClientRect","yOriginal","heightOriginal","isRootTooltip","target","setState","diff","dimension","heightValue","emit","componentDidMount","unsubscribeMouseMoveRoot","subscribe","_","persist","handlerMouseMoveRoot","unsubscribeMouseLeaveRoot","handlerMouseLeaveRoot","componentWillUnmount","HoverLineRoot","render","_ref3","hideHoverLine","meta","isHide","SHoverLine","Element","styles","dataHints","hideTickHover","xRange","range","yRange","x1","y1","Fragment","cn","HoveredTick","getTicksSize","getTicksPosition","titles","getHorizontalAxesTitle","bind","length","HoverRectRoot","_ref4","SHoverRect","xBand","yBand","xStep","step","xPaddingInner","paddingInner","yStep","yPaddingInner","HOVERED_TICK_MARGIN_Y","HOVERED_TICK_PADDING_Y","HOVERED_TICK_PADDING_X","props","_ref5","tickFormatter","isFirstTick","isLastTick","size","position","contentRef","useRef","interactive","setInteractive","useState","formattedValue","isMightBeInteractive","width","SHoveredTickWrapper","SHoveredTickContent","SHoveredTick","w","tickX","tickY","HoverLineTooltip","_ref","arguments[0]","_ref6","SHoverLineTooltip","_assignProps","HoverLine","HoverRectTooltip","_ref2","_ref7","SHoverRectTooltip","_assignProps2","HoverRect","_______childrenComponents"],"sources":["../../src/Hover.jsx"],"sourcesContent":["import { Component, sstyled, Root } from '@semcore/core';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport { getFocusableIn } from '@semcore/core/lib/utils/focus-lock/getFocusableIn';\nimport { hasParent } from '@semcore/core/lib/utils/hasParent';\nimport trottle from '@semcore/core/lib/utils/rafTrottle';\nimport useEnhancedEffect from '@semcore/core/lib/utils/use/useEnhancedEffect';\nimport React from 'react';\n\nimport createElement from './createElement';\nimport style from './style/hover.shadow.css';\nimport Tooltip from './Tooltip';\nimport { scaleOfBandwidth, getIndexFromData, eventToPoint, invert, scaleToBand } from './utils';\n\nconst STROKE_WIDTH = 1;\nconst NOTCH_WIDTH = 9;\nconst NOTCH_DELTA = NOTCH_WIDTH / 2 - STROKE_WIDTH / 4;\n\nfunction formatValue(locale, value) {\n if (value instanceof Date) {\n return new Intl.DateTimeFormat(locale ?? 'en', {\n day: 'numeric',\n month: 'short',\n }).format(value);\n }\n return value;\n}\nclass Hover extends Component {\n static style = style;\n\n state = {\n xIndex: null,\n yIndex: null,\n };\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n\n handlerMouseMoveRoot = trottle((e, currentTarget, isTickUnder) => {\n const { eventEmitter, data, scale, x, y, rootRef, patterns, plotId } = this.asProps;\n const { clientX, clientY } = e;\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, rootRef.current);\n const vX = invert(xScale, pX);\n const vY = invert(yScale, pY);\n const xIndex = x === undefined || vX === undefined ? null : getIndexFromData(data, xScale, x, vX);\n const yIndex = y === undefined || vY === undefined ? null : getIndexFromData(data, yScale, y, vY);\n const state = { xIndex, yIndex, patterns };\n\n const { x: xRect, y: yRect, height } = rootRef.current.getBoundingClientRect();\n const { y: yOriginal, height: heightOriginal } = currentTarget.getBoundingClientRect();\n const isRootTooltip = hasParent(e.target, rootRef.current);\n\n this.setState(state, () => {\n let x, y;\n\n if (isRootTooltip) {\n x = clientX;\n // preserve static vertical position if it's a move on a tick.\n y = isTickUnder ? yRect + height / 2 : clientY;\n } else {\n const diff = clientY - yOriginal;\n const dimension = (diff / heightOriginal) * 100;\n const heightValue = (height / 100) * dimension;\n\n x = pX + xRect;\n // preserve static vertical position if it's a move on tick.\n y = isTickUnder ? yRect + height / 2 : yRect + heightValue;\n }\n\n eventEmitter.emit(`setTooltipPosition_${plotId}`, x, y);\n eventEmitter.emit(`setTooltipRenderingProps_${plotId}`, {}, state);\n eventEmitter.emit(`setTooltipVisible_${plotId}`, xIndex !== null || yIndex !== null);\n });\n });\n\n handlerMouseLeaveRoot = trottle(() => {\n const state = {\n xIndex: null,\n yIndex: null,\n patterns: this.asProps.patterns,\n };\n this.setState(state, () => {\n this.asProps.eventEmitter.emit(`setTooltipVisible_${this.asProps.plotId}`, false);\n });\n });\n\n componentDidMount() {\n const { eventEmitter } = this.asProps;\n this.unsubscribeMouseMoveRoot = eventEmitter.subscribe('onMouseMoveChart', (e, _, isTickUnder) => {\n e.persist();\n this.handlerMouseMoveRoot(e, e.currentTarget, isTickUnder);\n });\n this.unsubscribeMouseLeaveRoot = eventEmitter.subscribe('onMouseLeaveChart', this.handlerMouseLeaveRoot);\n }\n\n componentWillUnmount() {\n if (this.unsubscribeMouseMoveRoot) {\n this.unsubscribeMouseMoveRoot();\n }\n if (this.unsubscribeMouseLeaveRoot) {\n this.unsubscribeMouseLeaveRoot();\n }\n }\n}\n\nclass HoverLineRoot extends Hover {\n static displayName = 'HoverLine';\n\n render() {\n const { hideHoverLine, meta, locale } = this.asProps;\n const { xIndex, yIndex } = this.state;\n\n const isHide = typeof hideHoverLine === 'function' ? hideHoverLine(xIndex, yIndex) : hideHoverLine;\n\n if (isHide) {\n return null;\n }\n\n const SHoverLine = this.Element;\n const { styles, x, y, data, scale, dataHints, hideTickHover } = this.asProps;\n const [xScale, yScale] = scale;\n\n const xRange = xScale.range();\n const yRange = yScale.range();\n const x1 = xIndex !== null ? scaleOfBandwidth(xScale, data[xIndex][x]) : undefined;\n const y1 = yIndex !== null ? scaleOfBandwidth(yScale, data[yIndex][y]) : undefined;\n\n return sstyled(styles)(\n <>\n {xIndex !== null\n ? (\n <>\n <SHoverLine render='g' index={xIndex} stroke-width={STROKE_WIDTH} aria-hidden>\n <line x1={x1 - NOTCH_DELTA} x2={x1 + NOTCH_DELTA} y1={yRange[0]} y2={yRange[0]} />\n <line x1={x1} y1={yRange[0]} x2={x1} y2={yRange[1]} />\n <line x1={x1 - NOTCH_DELTA} x2={x1 + NOTCH_DELTA} y1={yRange[1]} y2={yRange[1]} />\n </SHoverLine>\n {!hideTickHover && (\n <HoveredTick\n size={meta.getTicksSize('horizontal')}\n position={meta.getTicksPosition('horizontal')}\n tickFormatter={dataHints.titles.getHorizontalAxesTitle ?? formatValue.bind(null, locale)}\n value={data[xIndex]?.[x]}\n isFirstTick={xIndex === 0}\n isLastTick={xIndex === data.length - 1}\n styles={styles}\n x={x1}\n yRange={yRange}\n />\n )}\n </>\n )\n : null}\n {yIndex !== null\n ? (\n <SHoverLine render='g' index={yIndex} stroke-width={STROKE_WIDTH} aria-hidden>\n <line x1={xRange[0]} y1={y1 - NOTCH_DELTA} x2={xRange[0]} y2={y1 + NOTCH_DELTA} />\n <line x1={xRange[0]} y1={y1} x2={xRange[1]} y2={y1} />\n <line x1={xRange[1]} y1={y1 - NOTCH_DELTA} x2={xRange[1]} y2={y1 + NOTCH_DELTA} />\n </SHoverLine>\n )\n : null}\n </>,\n );\n }\n}\n\nclass HoverRectRoot extends Hover {\n static displayName = 'HoverRect';\n\n render() {\n const { hideHoverLine, meta } = this.asProps;\n\n if (hideHoverLine) {\n return null;\n }\n\n const SHoverRect = this.Element;\n const { styles, x, y, data, scale, dataHints, hideTickHover, locale } = this.asProps;\n const { xIndex, yIndex } = this.state;\n const [xScale, yScale] = scale;\n\n const xRange = xScale.range();\n const yRange = yScale.range();\n const xBand = scaleToBand(xScale);\n const yBand = scaleToBand(yScale);\n\n const xStep = xBand.step();\n const xPaddingInner = xBand.paddingInner();\n const yStep = yBand.step();\n const yPaddingInner = yBand.paddingInner();\n\n return sstyled(styles)(\n <>\n {xIndex !== null && (\n <>\n <SHoverRect\n aria-hidden\n render='rect'\n index={xIndex}\n width={xStep - xPaddingInner / 2}\n height={yRange[0] - yRange[1]}\n x={xScale(data[xIndex][x]) - (xStep * xPaddingInner) / 2}\n y={yRange[1]}\n />\n {!hideTickHover && (\n <HoveredTick\n size={meta.getTicksSize('horizontal')}\n position={meta.getTicksPosition('horizontal')}\n tickFormatter={dataHints.titles.getHorizontalAxesTitle ?? formatValue.bind(null, locale)}\n value={data[xIndex]?.[x]}\n styles={styles}\n x={xScale(data[xIndex][x]) + (xStep * (1 - xPaddingInner)) / 2}\n yRange={yRange}\n />\n )}\n </>\n )}\n {yIndex !== null && (\n <SHoverRect\n aria-hidden\n render='rect'\n index={yIndex}\n width={xRange[1] - xRange[0]}\n height={yStep - yPaddingInner / 2}\n x={xRange[0]}\n y={yScale(data[yIndex][y]) - (yStep * yPaddingInner) / 2}\n />\n )}\n </>,\n );\n }\n}\n\nconst HOVERED_TICK_MARGIN_Y = 8;\nconst HOVERED_TICK_PADDING_Y = 3;\nconst HOVERED_TICK_PADDING_X = 12;\n\nfunction HoveredTick(props) {\n const { tickFormatter, value, isFirstTick = false, isLastTick = false, styles, x, yRange, size, position } = props;\n\n const contentRef = React.useRef(null);\n const [interactive, setInteractive] = React.useState(false);\n\n const formattedValue = tickFormatter(value);\n\n const isMightBeInteractive = formattedValue !== null && typeof formattedValue === 'object';\n\n useEnhancedEffect(() => {\n if (!isMightBeInteractive || !contentRef.current) {\n setInteractive(false);\n return;\n }\n\n setInteractive(getFocusableIn(contentRef.current).length > 0);\n });\n\n if (size?.width === undefined || size?.height === undefined || position === null) return null;\n\n const { width, height } = size;\n\n const SHoveredTickWrapper = 'foreignObject';\n const SHoveredTickContent = 'div';\n const SHoveredTick = 'span';\n\n const w = width + HOVERED_TICK_PADDING_X * 2;\n const tickX = isFirstTick\n ? x\n : isLastTick\n ? x - w\n : x - w / 2;\n const tickY = position === 'top'\n ? yRange[1] - height - HOVERED_TICK_MARGIN_Y + HOVERED_TICK_PADDING_Y\n : yRange[0] + HOVERED_TICK_MARGIN_Y - HOVERED_TICK_PADDING_Y;\n\n return sstyled(styles)(\n <SHoveredTickWrapper\n x={tickX}\n y={tickY}\n width={w}\n height={height}\n data-is-first={isFirstTick}\n data-is-last={isLastTick}\n position={position}\n aria-hidden={interactive ? undefined : true}\n >\n <SHoveredTickContent ref={contentRef}>\n <SHoveredTick>{formattedValue}</SHoveredTick>\n </SHoveredTickContent>\n </SHoveredTickWrapper>,\n );\n}\n\nfunction HoverLineTooltip(props) {\n const SHoverLineTooltip = Root;\n return sstyled(props.styles)(<SHoverLineTooltip render={Tooltip} tag={HoverLine} excludeAnchorProps />);\n}\nfunction HoverRectTooltip(props) {\n const SHoverRectTooltip = Root;\n return sstyled(props.styles)(<SHoverRectTooltip render={Tooltip} tag={HoverRect} excludeAnchorProps />);\n}\n\nconst HoverLine = createElement(HoverLineRoot, {\n Tooltip: [HoverLineTooltip, Tooltip._______childrenComponents],\n});\nconst HoverRect = createElement(HoverRectRoot, {\n Tooltip: [HoverRectTooltip, Tooltip._______childrenComponents],\n});\n\nexport { HoverLine, HoverRect };\n"],"mappings":";;;;AAAA,SAASA,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACxD,OAAOC,SAAS,MAAM,mCAAmC;AACzD,SAASC,cAAc,QAAQ,mDAAmD;AAClF,SAASC,SAAS,QAAQ,mCAAmC;AAC7D,OAAOC,OAAO,MAAM,oCAAoC;AACxD,OAAOC,iBAAiB,MAAM,+CAA+C;AAC7E,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,aAAa,MAAM,iBAAiB;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAE5C,OAAOC,OAAO,MAAM,WAAW;AAC/B,SAASC,gBAAgB,EAAEC,gBAAgB,EAAEC,YAAY,EAAEC,MAAM,EAAEC,WAAW,QAAQ,SAAS;AAE/F,MAAMC,YAAY,GAAG,CAAC;AACtB,MAAMC,WAAW,GAAG,CAAC;AACrB,MAAMC,WAAW,GAAGD,WAAW,GAAG,CAAC,GAAGD,YAAY,GAAG,CAAC;AAEtD,SAASG,WAAWA,CAACC,MAAM,EAAEC,KAAK,EAAE;EAClC,IAAIA,KAAK,YAAYC,IAAI,EAAE;IACzB,OAAO,IAAIC,IAAI,CAACC,cAAc,CAACJ,MAAM,IAAI,IAAI,EAAE;MAC7CK,GAAG,EAAE,SAAS;MACdC,KAAK,EAAE;IACT,CAAC,CAAC,CAACC,MAAM,CAACN,KAAK,CAAC;EAClB;EACA,OAAOA,KAAK;AACd;AACA,MAAMO,KAAK,SAAS/B,SAAS,CAAC;EAAAgC,YAAA,GAAAC,IAAA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,aAAa,CAAC0E,aAAa,EAAE;EAC7CtE,OAAO,EAAE,CAACkI,gBAAgB,EAAElI,OAAO,CAAC+I,yBAAyB;AAC/D,CAAC,CAAC;AACF,MAAMD,SAAS,GAAGlJ,aAAa,CAACmG,aAAa,EAAE;EAC7C/F,OAAO,EAAE,CAACyI,gBAAgB,EAAEzI,OAAO,CAAC+I,yBAAyB;AAC/D,CAAC,CAAC;AAEF,SAASP,SAAS,EAAEM,SAAS","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Hover.js","names":["Component","sstyled","Root","canUseDOM","getFocusableIn","hasParent","trottle","useEnhancedEffect","React","createElement","style","_sstyled","insert","Tooltip","scaleOfBandwidth","getIndexFromData","eventToPoint","invert","scaleToBand","STROKE_WIDTH","NOTCH_WIDTH","NOTCH_DELTA","formatValue","locale","value","Date","Intl","DateTimeFormat","day","month","format","Hover","constructor","args","_defineProperty","xIndex","yIndex","document","e","currentTarget","isTickUnder","eventEmitter","data","scale","x","y","rootRef","patterns","plotId","asProps","clientX","clientY","xScale","yScale","pX","pY","current","vX","vY","undefined","state","xRect","yRect","height","getBoundingClientRect","yOriginal","heightOriginal","isRootTooltip","target","setState","diff","dimension","heightValue","emit","componentDidMount","unsubscribeMouseMoveRoot","subscribe","_","persist","handlerMouseMoveRoot","unsubscribeMouseLeaveRoot","handlerMouseLeaveRoot","componentWillUnmount","HoverLineRoot","render","_ref3","hideHoverLine","meta","isHide","SHoverLine","Element","styles","dataHints","hideTickHover","xRange","range","yRange","x1","y1","Fragment","cn","HoveredTick","getTicksSize","getTicksPosition","titles","getHorizontalAxesTitle","bind","length","HoverRectRoot","_ref4","SHoverRect","xBand","yBand","xStep","step","xPaddingInner","paddingInner","yStep","yPaddingInner","HOVERED_TICK_MARGIN_Y","HOVERED_TICK_PADDING_Y","HOVERED_TICK_PADDING_X","props","_ref5","tickFormatter","isFirstTick","isLastTick","size","position","formattedValue","contentRef","useRef","isRendered","width","isMightBeInteractive","forEach","node","setAttribute","SHoveredTickWrapper","SHoveredTickContent","SHoveredTick","w","tickX","tickY","HoverLineTooltip","_ref","arguments[0]","_ref6","SHoverLineTooltip","_assignProps","HoverLine","HoverRectTooltip","_ref2","_ref7","SHoverRectTooltip","_assignProps2","HoverRect","_______childrenComponents"],"sources":["../../src/Hover.jsx"],"sourcesContent":["import { Component, sstyled, Root } from '@semcore/core';\nimport canUseDOM from '@semcore/core/lib/utils/canUseDOM';\nimport { getFocusableIn } from '@semcore/core/lib/utils/focus-lock/getFocusableIn';\nimport { hasParent } from '@semcore/core/lib/utils/hasParent';\nimport trottle from '@semcore/core/lib/utils/rafTrottle';\nimport useEnhancedEffect from '@semcore/core/lib/utils/use/useEnhancedEffect';\nimport React from 'react';\n\nimport createElement from './createElement';\nimport style from './style/hover.shadow.css';\nimport Tooltip from './Tooltip';\nimport { scaleOfBandwidth, getIndexFromData, eventToPoint, invert, scaleToBand } from './utils';\n\nconst STROKE_WIDTH = 1;\nconst NOTCH_WIDTH = 9;\nconst NOTCH_DELTA = NOTCH_WIDTH / 2 - STROKE_WIDTH / 4;\n\nfunction formatValue(locale, value) {\n if (value instanceof Date) {\n return new Intl.DateTimeFormat(locale ?? 'en', {\n day: 'numeric',\n month: 'short',\n }).format(value);\n }\n return value;\n}\nclass Hover extends Component {\n static style = style;\n\n state = {\n xIndex: null,\n yIndex: null,\n };\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n\n handlerMouseMoveRoot = trottle((e, currentTarget, isTickUnder) => {\n const { eventEmitter, data, scale, x, y, rootRef, patterns, plotId } = this.asProps;\n const { clientX, clientY } = e;\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, rootRef.current);\n const vX = invert(xScale, pX);\n const vY = invert(yScale, pY);\n const xIndex = x === undefined || vX === undefined ? null : getIndexFromData(data, xScale, x, vX);\n const yIndex = y === undefined || vY === undefined ? null : getIndexFromData(data, yScale, y, vY);\n const state = { xIndex, yIndex, patterns };\n\n const { x: xRect, y: yRect, height } = rootRef.current.getBoundingClientRect();\n const { y: yOriginal, height: heightOriginal } = currentTarget.getBoundingClientRect();\n const isRootTooltip = hasParent(e.target, rootRef.current);\n\n this.setState(state, () => {\n let x, y;\n\n if (isRootTooltip) {\n x = clientX;\n // preserve static vertical position if it's a move on a tick.\n y = isTickUnder ? yRect + height / 2 : clientY;\n } else {\n const diff = clientY - yOriginal;\n const dimension = (diff / heightOriginal) * 100;\n const heightValue = (height / 100) * dimension;\n\n x = pX + xRect;\n // preserve static vertical position if it's a move on tick.\n y = isTickUnder ? yRect + height / 2 : yRect + heightValue;\n }\n\n eventEmitter.emit(`setTooltipPosition_${plotId}`, x, y);\n eventEmitter.emit(`setTooltipRenderingProps_${plotId}`, {}, state);\n eventEmitter.emit(`setTooltipVisible_${plotId}`, xIndex !== null || yIndex !== null);\n });\n });\n\n handlerMouseLeaveRoot = trottle(() => {\n const state = {\n xIndex: null,\n yIndex: null,\n patterns: this.asProps.patterns,\n };\n this.setState(state, () => {\n this.asProps.eventEmitter.emit(`setTooltipVisible_${this.asProps.plotId}`, false);\n });\n });\n\n componentDidMount() {\n const { eventEmitter } = this.asProps;\n this.unsubscribeMouseMoveRoot = eventEmitter.subscribe('onMouseMoveChart', (e, _, isTickUnder) => {\n e.persist();\n this.handlerMouseMoveRoot(e, e.currentTarget, isTickUnder);\n });\n this.unsubscribeMouseLeaveRoot = eventEmitter.subscribe('onMouseLeaveChart', this.handlerMouseLeaveRoot);\n }\n\n componentWillUnmount() {\n if (this.unsubscribeMouseMoveRoot) {\n this.unsubscribeMouseMoveRoot();\n }\n if (this.unsubscribeMouseLeaveRoot) {\n this.unsubscribeMouseLeaveRoot();\n }\n }\n}\n\nclass HoverLineRoot extends Hover {\n static displayName = 'HoverLine';\n\n render() {\n const { hideHoverLine, meta, locale } = this.asProps;\n const { xIndex, yIndex } = this.state;\n\n const isHide = typeof hideHoverLine === 'function' ? hideHoverLine(xIndex, yIndex) : hideHoverLine;\n\n if (isHide) {\n return null;\n }\n\n const SHoverLine = this.Element;\n const { styles, x, y, data, scale, dataHints, hideTickHover } = this.asProps;\n const [xScale, yScale] = scale;\n\n const xRange = xScale.range();\n const yRange = yScale.range();\n const x1 = xIndex !== null ? scaleOfBandwidth(xScale, data[xIndex][x]) : undefined;\n const y1 = yIndex !== null ? scaleOfBandwidth(yScale, data[yIndex][y]) : undefined;\n\n return sstyled(styles)(\n <>\n {xIndex !== null\n ? (\n <>\n <SHoverLine render='g' index={xIndex} stroke-width={STROKE_WIDTH} aria-hidden>\n <line x1={x1 - NOTCH_DELTA} x2={x1 + NOTCH_DELTA} y1={yRange[0]} y2={yRange[0]} />\n <line x1={x1} y1={yRange[0]} x2={x1} y2={yRange[1]} />\n <line x1={x1 - NOTCH_DELTA} x2={x1 + NOTCH_DELTA} y1={yRange[1]} y2={yRange[1]} />\n </SHoverLine>\n {!hideTickHover && (\n <HoveredTick\n size={meta.getTicksSize('horizontal')}\n position={meta.getTicksPosition('horizontal')}\n tickFormatter={dataHints.titles.getHorizontalAxesTitle ?? formatValue.bind(null, locale)}\n value={data[xIndex]?.[x]}\n isFirstTick={xIndex === 0}\n isLastTick={xIndex === data.length - 1}\n styles={styles}\n x={x1}\n yRange={yRange}\n />\n )}\n </>\n )\n : null}\n {yIndex !== null\n ? (\n <SHoverLine render='g' index={yIndex} stroke-width={STROKE_WIDTH} aria-hidden>\n <line x1={xRange[0]} y1={y1 - NOTCH_DELTA} x2={xRange[0]} y2={y1 + NOTCH_DELTA} />\n <line x1={xRange[0]} y1={y1} x2={xRange[1]} y2={y1} />\n <line x1={xRange[1]} y1={y1 - NOTCH_DELTA} x2={xRange[1]} y2={y1 + NOTCH_DELTA} />\n </SHoverLine>\n )\n : null}\n </>,\n );\n }\n}\n\nclass HoverRectRoot extends Hover {\n static displayName = 'HoverRect';\n\n render() {\n const { hideHoverLine, meta } = this.asProps;\n\n if (hideHoverLine) {\n return null;\n }\n\n const SHoverRect = this.Element;\n const { styles, x, y, data, scale, dataHints, hideTickHover, locale } = this.asProps;\n const { xIndex, yIndex } = this.state;\n const [xScale, yScale] = scale;\n\n const xRange = xScale.range();\n const yRange = yScale.range();\n const xBand = scaleToBand(xScale);\n const yBand = scaleToBand(yScale);\n\n const xStep = xBand.step();\n const xPaddingInner = xBand.paddingInner();\n const yStep = yBand.step();\n const yPaddingInner = yBand.paddingInner();\n\n return sstyled(styles)(\n <>\n {xIndex !== null && (\n <>\n <SHoverRect\n aria-hidden\n render='rect'\n index={xIndex}\n width={xStep - xPaddingInner / 2}\n height={yRange[0] - yRange[1]}\n x={xScale(data[xIndex][x]) - (xStep * xPaddingInner) / 2}\n y={yRange[1]}\n />\n {!hideTickHover && (\n <HoveredTick\n size={meta.getTicksSize('horizontal')}\n position={meta.getTicksPosition('horizontal')}\n tickFormatter={dataHints.titles.getHorizontalAxesTitle ?? formatValue.bind(null, locale)}\n value={data[xIndex]?.[x]}\n styles={styles}\n x={xScale(data[xIndex][x]) + (xStep * (1 - xPaddingInner)) / 2}\n yRange={yRange}\n />\n )}\n </>\n )}\n {yIndex !== null && (\n <SHoverRect\n aria-hidden\n render='rect'\n index={yIndex}\n width={xRange[1] - xRange[0]}\n height={yStep - yPaddingInner / 2}\n x={xRange[0]}\n y={yScale(data[yIndex][y]) - (yStep * yPaddingInner) / 2}\n />\n )}\n </>,\n );\n }\n}\n\nconst HOVERED_TICK_MARGIN_Y = 8;\nconst HOVERED_TICK_PADDING_Y = 3;\nconst HOVERED_TICK_PADDING_X = 12;\n\nfunction HoveredTick(props) {\n const { tickFormatter, value, isFirstTick = false, isLastTick = false, styles, x, yRange, size, position } = props;\n\n const formattedValue = tickFormatter(value);\n\n const contentRef = React.useRef(null);\n\n const isRendered = size?.width !== undefined && size?.height !== undefined && position !== null;\n const isMightBeInteractive = formattedValue !== null && typeof formattedValue === 'object';\n\n useEnhancedEffect(() => {\n if (!isRendered || !isMightBeInteractive || !contentRef.current) return;\n\n getFocusableIn(contentRef.current).forEach((node) => node.setAttribute('tabindex', '-1'));\n }, [value, isRendered, isMightBeInteractive]);\n\n if (!isRendered) return null;\n\n const { width, height } = size;\n\n const SHoveredTickWrapper = 'foreignObject';\n const SHoveredTickContent = 'div';\n const SHoveredTick = 'span';\n\n const w = width + HOVERED_TICK_PADDING_X * 2;\n const tickX = isFirstTick\n ? x\n : isLastTick\n ? x - w\n : x - w / 2;\n const tickY = position === 'top'\n ? yRange[1] - height - HOVERED_TICK_MARGIN_Y + HOVERED_TICK_PADDING_Y\n : yRange[0] + HOVERED_TICK_MARGIN_Y - HOVERED_TICK_PADDING_Y;\n\n return sstyled(styles)(\n <SHoveredTickWrapper\n x={tickX}\n y={tickY}\n width={w}\n height={height}\n data-is-first={isFirstTick}\n data-is-last={isLastTick}\n position={position}\n data-hovered-tick\n aria-hidden='true'\n >\n <SHoveredTickContent ref={contentRef}>\n <SHoveredTick>{formattedValue}</SHoveredTick>\n </SHoveredTickContent>\n </SHoveredTickWrapper>,\n );\n}\n\nfunction HoverLineTooltip(props) {\n const SHoverLineTooltip = Root;\n return sstyled(props.styles)(<SHoverLineTooltip render={Tooltip} tag={HoverLine} excludeAnchorProps />);\n}\nfunction HoverRectTooltip(props) {\n const SHoverRectTooltip = Root;\n return sstyled(props.styles)(<SHoverRectTooltip render={Tooltip} tag={HoverRect} excludeAnchorProps />);\n}\n\nconst HoverLine = createElement(HoverLineRoot, {\n Tooltip: [HoverLineTooltip, Tooltip._______childrenComponents],\n});\nconst HoverRect = createElement(HoverRectRoot, {\n Tooltip: [HoverRectTooltip, Tooltip._______childrenComponents],\n});\n\nexport { HoverLine, HoverRect };\n"],"mappings":";;;;AAAA,SAASA,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACxD,OAAOC,SAAS,MAAM,mCAAmC;AACzD,SAASC,cAAc,QAAQ,mDAAmD;AAClF,SAASC,SAAS,QAAQ,mCAAmC;AAC7D,OAAOC,OAAO,MAAM,oCAAoC;AACxD,OAAOC,iBAAiB,MAAM,+CAA+C;AAC7E,OAAOC,KAAK,MA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F,CAAC;AAE1B;AAEA,SAASe,gBAAgBA,CAACtB,KAAK,EAAE;EAAA,IAAAuB,IAAA,GAAAC,YAAA;IAAAC,KAAA;EAC/B,MAAMC,iBAAiB,GACiCvI,OAAO;EAA/D,OAAAsI,KAAA,GAAOlJ,OAAO,CAACyH,KAAK,CAAC/B,MAAM,CAAC,eAACnF,KAAA,CAAAC,aAAA,CAAC2I,iBAAiB,EAAAD,KAAA,CAAA/C,EAAA;IAAA,GAAAiD,YAAA;MAAA,OAAuBC,SAAS;MAAA;IAAA,GAAAL,IAAA;EAAA,EAAsB,CAAC;AACxG;AACA,SAASM,gBAAgBA,CAAC7B,KAAK,EAAE;EAAA,IAAA8B,KAAA,GAAAN,YAAA;IAAAO,KAAA;EAC/B,MAAMC,iBAAiB,GACiC7I,OAAO;EAA/D,OAAA4I,KAAA,GAAOxJ,OAAO,CAACyH,KAAK,CAAC/B,MAAM,CAAC,eAACnF,KAAA,CAAAC,aAAA,CAACiJ,iBAAiB,EAAAD,KAAA,CAAArD,EAAA;IAAA,GAAAuD,aAAA;MAAA,OAAuBC,SAAS;MAAA;IAAA,GAAAJ,KAAA;EAAA,EAAsB,CAAC;AACxG;AAEA,MAAMF,SAAS,GAAG7I,aAAa,CAAC0E,aAAa,EAAE;EAC7CtE,OAAO,EAAE,CAACmI,gBAAgB,EAAEnI,OAAO,CAACgJ,yBAAyB;AAC/D,CAAC,CAAC;AACF,MAAMD,SAAS,GAAGnJ,aAAa,CAACmG,aAAa,EAAE;EAC7C/F,OAAO,EAAE,CAAC0I,gBAAgB,EAAE1I,OAAO,CAACgJ,yBAAyB;AAC/D,CAAC,CAAC;AAEF,SAASP,SAAS,EAAEM,SAAS","ignoreList":[]}
|
package/lib/es6/Line.js
CHANGED
|
@@ -12,17 +12,17 @@ import createElement from './createElement';
|
|
|
12
12
|
import Dots from './Dots';
|
|
13
13
|
import { ForecastGradient, PotentialGradient, resolvePatternDasharray, StrokeMask } from './Pattern';
|
|
14
14
|
/*!__reshadow-styles__:"./style/line.shadow.css"*/
|
|
15
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
15
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SLine_tx3eh_gg_{fill:#0000;stroke-width:2;stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));transition-property:d;transition-duration:var(--duration_tx3eh);transition-timing-function:ease-in-out}.___SLine_tx3eh_gg_.__color_tx3eh_gg_{stroke:var(--color_tx3eh)}.___SLine_tx3eh_gg_.__hide_tx3eh_gg_{display:none}.___SLine_tx3eh_gg_.__transparent_tx3eh_gg_{opacity:.3}.___SNull_tx3eh_gg_{fill:#0000;stroke:var(--intergalactic-chart-data-null,oklch(.9 .009 234));stroke-dasharray:4}.___SNull_tx3eh_gg_.__hide_tx3eh_gg_{display:none}.___SLineArea_tx3eh_gg_{transition-property:d;transition-duration:var(--duration_tx3eh);transition-timing-function:ease-in-out;opacity:.1;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SLineArea_tx3eh_gg_.__color_tx3eh_gg_{fill:var(--color_tx3eh)}", /*__inner_css_end__*/"tx3eh_gg_"),
|
|
16
16
|
/*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SLine": "
|
|
19
|
-
"--duration": "--
|
|
20
|
-
"_color": "
|
|
21
|
-
"--color": "--
|
|
22
|
-
"_hide": "
|
|
23
|
-
"_transparent": "
|
|
24
|
-
"__SNull": "
|
|
25
|
-
"__SLineArea": "
|
|
18
|
+
"__SLine": "___SLine_tx3eh_gg_",
|
|
19
|
+
"--duration": "--duration_tx3eh",
|
|
20
|
+
"_color": "__color_tx3eh_gg_",
|
|
21
|
+
"--color": "--color_tx3eh",
|
|
22
|
+
"_hide": "__hide_tx3eh_gg_",
|
|
23
|
+
"_transparent": "__transparent_tx3eh_gg_",
|
|
24
|
+
"__SNull": "___SNull_tx3eh_gg_",
|
|
25
|
+
"__SLineArea": "___SLineArea_tx3eh_gg_"
|
|
26
26
|
});
|
|
27
27
|
import { definedData, definedNullData, scaleOfBandwidth, getNullData, interpolateValue, getChartDefaultColorName, eventToPoint, invert, getDataOfType } from './utils';
|
|
28
28
|
class LineRoot extends Component {
|
package/lib/es6/Pattern.js
CHANGED
|
@@ -4,14 +4,14 @@ import { sstyled } from '@semcore/core';
|
|
|
4
4
|
import propsForElement from '@semcore/core/lib/utils/propsForElement';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
/*!__reshadow-styles__:"./style/pattern.shadow.css"*/
|
|
7
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
7
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SLinearGradient_1f31y_gg_ .___SStopFrom_1f31y_gg_{stop-color:var(--violet-300_1f31y,#c08eff)}@media (color-gamut:p3){.___SLinearGradient_1f31y_gg_ .___SStopFrom_1f31y_gg_{stop-color:var(--violet-300_1f31y,oklch(.74 .17 303))}}.___SLinearGradient_1f31y_gg_ .___SStopTo_1f31y_gg_{stop-color:var(--green-100_1f31y,oklch(.9 .11 175))}", /*__inner_css_end__*/"1f31y_gg_"),
|
|
8
8
|
/*__reshadow_css_end__*/
|
|
9
9
|
{
|
|
10
|
-
"__SLinearGradient": "
|
|
11
|
-
"__SStopFrom": "
|
|
12
|
-
"--violet-300": "--violet-
|
|
13
|
-
"__SStopTo": "
|
|
14
|
-
"--green-100": "--green-
|
|
10
|
+
"__SLinearGradient": "___SLinearGradient_1f31y_gg_",
|
|
11
|
+
"__SStopFrom": "___SStopFrom_1f31y_gg_",
|
|
12
|
+
"--violet-300": "--violet-300_1f31y",
|
|
13
|
+
"__SStopTo": "___SStopTo_1f31y_gg_",
|
|
14
|
+
"--green-100": "--green-100_1f31y"
|
|
15
15
|
});
|
|
16
16
|
/**
|
|
17
17
|
* Object that is fully describes the pattern
|
package/lib/es6/Plot.js
CHANGED
|
@@ -11,10 +11,10 @@ import { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';
|
|
|
11
11
|
import { PlotA11yModule } from './a11y/PlotA11yModule';
|
|
12
12
|
import { ChartMetaData } from './ChartMetaData';
|
|
13
13
|
/*!__reshadow-styles__:"./style/plot.shadow.css"*/
|
|
14
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
14
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SPlot_sccu4_gg_{overflow:hidden}.___SPlot_sccu4_gg_:focus{outline:none}.___SPlot_sccu4_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_sccu4_gg_:has([data-tick-content] :focus-visible) foreignObject[data-hovered-tick]{visibility:hidden}.___SPlot_sccu4_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline,oklch(.23 .009 245));outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded,8px)}", /*__inner_css_end__*/"sccu4_gg_"),
|
|
15
15
|
/*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SPlot": "
|
|
17
|
+
"__SPlot": "___SPlot_sccu4_gg_"
|
|
18
18
|
});
|
|
19
19
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
20
20
|
import { eventToPoint, uniqueId } from './utils';
|
package/lib/es6/Radar.js
CHANGED
|
@@ -12,27 +12,27 @@ import React, { cloneElement } from 'react';
|
|
|
12
12
|
import createElement from './createElement';
|
|
13
13
|
import { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';
|
|
14
14
|
/*!__reshadow-styles__:"./style/radar.shadow.css"*/
|
|
15
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
15
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SAxisLine_1twag_gg_,.___SAxisTick_1twag_gg_,.___SAxis_1twag_gg_{stroke:var(--intergalactic-chart-grid-line,oklch(.7 .021 242));stroke-width:1;fill:#0000}.___SAxisLine_1twag_gg_,.___SAxisTick_1twag_gg_{stroke-dasharray:2}.___SAxisLine_1twag_gg_.__active_1twag_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .011 234.9))}.___SAxisLabel_1twag_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_1twag_gg_.__xDirection_1twag_gg_{text-anchor:var(--xDirection_1twag)}.___SAxisLabel_1twag_gg_.__yDirection_1twag_gg_{dominant-baseline:var(--yDirection_1twag)}.___SPolygon_1twag_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));opacity:.2}.___SPolygon_1twag_gg_.__color_1twag_gg_{fill:var(--color_1twag)}.___SPolygon_1twag_gg_.__pattern_1twag_gg_.__color_1twag_gg_{fill:var(--pattern_1twag);stroke:var(--color_1twag);stroke-width:1px}.___SPolygonDot_1twag_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border,#fff);r:6px;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SPolygonDot_1twag_gg_.__transparent_1twag_gg_{opacity:.3}.___SPolygonDot_1twag_gg_.__color_1twag_gg_{fill:var(--color_1twag)}.___SPolygonLine_1twag_gg_{stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));stroke-width:3;fill:#0000}.___SPolygonLine_1twag_gg_.__transparent_1twag_gg_{opacity:.3}.___SPolygonLine_1twag_gg_.__color_1twag_gg_{stroke:var(--color_1twag)}.___SPieRect_1twag_gg_{outline:none;fill:var(--intergalactic-chart-grid-bar-hover,oklch(.375 .09 242.7/.05))}", /*__inner_css_end__*/"1twag_gg_"),
|
|
16
16
|
/*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SAxis": "
|
|
19
|
-
"__SAxisLine": "
|
|
20
|
-
"__SAxisTick": "
|
|
21
|
-
"_active": "
|
|
22
|
-
"__SAxisLabel": "
|
|
23
|
-
"_xDirection": "
|
|
24
|
-
"--xDirection": "--
|
|
25
|
-
"_yDirection": "
|
|
26
|
-
"--yDirection": "--
|
|
27
|
-
"__SPolygon": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"__SPolygonDot": "
|
|
33
|
-
"_transparent": "
|
|
34
|
-
"__SPolygonLine": "
|
|
35
|
-
"__SPieRect": "
|
|
18
|
+
"__SAxis": "___SAxis_1twag_gg_",
|
|
19
|
+
"__SAxisLine": "___SAxisLine_1twag_gg_",
|
|
20
|
+
"__SAxisTick": "___SAxisTick_1twag_gg_",
|
|
21
|
+
"_active": "__active_1twag_gg_",
|
|
22
|
+
"__SAxisLabel": "___SAxisLabel_1twag_gg_",
|
|
23
|
+
"_xDirection": "__xDirection_1twag_gg_",
|
|
24
|
+
"--xDirection": "--xDirection_1twag",
|
|
25
|
+
"_yDirection": "__yDirection_1twag_gg_",
|
|
26
|
+
"--yDirection": "--yDirection_1twag",
|
|
27
|
+
"__SPolygon": "___SPolygon_1twag_gg_",
|
|
28
|
+
"_color": "__color_1twag_gg_",
|
|
29
|
+
"--color": "--color_1twag",
|
|
30
|
+
"_pattern": "__pattern_1twag_gg_",
|
|
31
|
+
"--pattern": "--pattern_1twag",
|
|
32
|
+
"__SPolygonDot": "___SPolygonDot_1twag_gg_",
|
|
33
|
+
"_transparent": "__transparent_1twag_gg_",
|
|
34
|
+
"__SPolygonLine": "___SPolygonLine_1twag_gg_",
|
|
35
|
+
"__SPieRect": "___SPieRect_1twag_gg_"
|
|
36
36
|
});
|
|
37
37
|
import Tooltip from './Tooltip';
|
|
38
38
|
import { eventToPoint, getChartDefaultColorName, measureText } from './utils';
|
package/lib/es6/RadialTree.js
CHANGED
|
@@ -10,20 +10,20 @@ import React from 'react';
|
|
|
10
10
|
import createElement from './createElement';
|
|
11
11
|
import { PatternSymbol, getPatternSymbolSize } from './Pattern';
|
|
12
12
|
/*!__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
|
13
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
13
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SRadian_lr7wy_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info,oklch(.23 .009 245))}.___SLine_lr7wy_gg_{stroke:var(--intergalactic-text-large-info,oklch(.23 .009 245))}.___SLine_lr7wy_gg_.__stroke_lr7wy_gg_{stroke:var(--stroke_lr7wy)}.___SLine_lr7wy_gg_.__transparent_lr7wy_gg_{opacity:.3}.___SCap_lr7wy_gg_{transition:r .1s}.___SCap_lr7wy_gg_.__pattern_lr7wy_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:1px}.___SCap_lr7wy_gg_.__transparent_lr7wy_gg_,.___SIcon_lr7wy_gg_.__transparent_lr7wy_gg_{opacity:.3}.___SLabel_lr7wy_gg_{fill:var(--color_lr7wy)}.___SLabel_lr7wy_gg_.__transparent_lr7wy_gg_{opacity:.3}@media (hover:hover){.___SRadian_lr7wy_gg_:hover .___SLabel_lr7wy_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_lr7wy_gg_{transition:none}}", /*__inner_css_end__*/"lr7wy_gg_"),
|
|
14
14
|
/*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SRadian": "
|
|
17
|
-
"__SLine": "
|
|
18
|
-
"_stroke": "
|
|
19
|
-
"--stroke": "--
|
|
20
|
-
"_transparent": "
|
|
21
|
-
"__SCap": "
|
|
22
|
-
"_pattern": "
|
|
23
|
-
"__SIcon": "
|
|
24
|
-
"__SLabel": "
|
|
25
|
-
"--color": "--
|
|
26
|
-
"__SLineCap": "
|
|
16
|
+
"__SRadian": "___SRadian_lr7wy_gg_",
|
|
17
|
+
"__SLine": "___SLine_lr7wy_gg_",
|
|
18
|
+
"_stroke": "__stroke_lr7wy_gg_",
|
|
19
|
+
"--stroke": "--stroke_lr7wy",
|
|
20
|
+
"_transparent": "__transparent_lr7wy_gg_",
|
|
21
|
+
"__SCap": "___SCap_lr7wy_gg_",
|
|
22
|
+
"_pattern": "__pattern_lr7wy_gg_",
|
|
23
|
+
"__SIcon": "___SIcon_lr7wy_gg_",
|
|
24
|
+
"__SLabel": "___SLabel_lr7wy_gg_",
|
|
25
|
+
"--color": "--color_lr7wy",
|
|
26
|
+
"__SLineCap": "___SLineCap_lr7wy_gg_"
|
|
27
27
|
});
|
|
28
28
|
import { getChartDefaultColorName, measureText } from './utils';
|
|
29
29
|
const baseAngle = -Math.PI / 2; // The top vertical line
|
package/lib/es6/Reference.js
CHANGED
|
@@ -3,22 +3,20 @@ import { sstyled as _sstyled } from "@semcore/core";
|
|
|
3
3
|
import { Component, sstyled } from '@semcore/core';
|
|
4
4
|
import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { SvgElement } from './component/SvgElement';
|
|
6
7
|
import createElement from './createElement';
|
|
7
8
|
/*!__reshadow-styles__:"./style/reference.shadow.css"*/
|
|
8
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
9
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SReferenceLine_1mtsj_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .011 234.9))}.___STitle_1mtsj_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#00132466)}.___STitle_1mtsj_gg_._position_top_1mtsj_gg_{dominant-baseline:hanging}.___STitle_1mtsj_gg_._position_bottom_1mtsj_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1mtsj_gg_._position_left_1mtsj_gg_,.___STitle_1mtsj_gg_._position_right_1mtsj_gg_{transform:rotate(-90deg);dominant-baseline:middle;text-anchor:middle}.___SSubTitle_1mtsj_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label-accent,#000408e6);font-weight:700}@media (color-gamut:p3){.___SSubTitle_1mtsj_gg_{fill:var(--intergalactic-chart-grid-text-label-accent,oklch(.102 .021 230.9/.9))}}.___SBackground_1mtsj_gg_{fill:var(--intergalactic-chart-grid-period-bg,oklch(.96 .005 232.5))}", /*__inner_css_end__*/"1mtsj_gg_"),
|
|
9
10
|
/*__reshadow_css_end__*/
|
|
10
11
|
{
|
|
11
|
-
"__SReferenceLine": "
|
|
12
|
-
"__STitle": "
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"__SBackground": "
|
|
19
|
-
"__SStripes": "___SStripes_103dp_gg_",
|
|
20
|
-
"--fill": "--fill_103dp",
|
|
21
|
-
"__SStripesPatternPath": "___SStripesPatternPath_103dp_gg_"
|
|
12
|
+
"__SReferenceLine": "___SReferenceLine_1mtsj_gg_",
|
|
13
|
+
"__STitle": "___STitle_1mtsj_gg_",
|
|
14
|
+
"_position_top": "_position_top_1mtsj_gg_",
|
|
15
|
+
"_position_bottom": "_position_bottom_1mtsj_gg_",
|
|
16
|
+
"_position_right": "_position_right_1mtsj_gg_",
|
|
17
|
+
"_position_left": "_position_left_1mtsj_gg_",
|
|
18
|
+
"__SSubTitle": "___SSubTitle_1mtsj_gg_",
|
|
19
|
+
"__SBackground": "___SBackground_1mtsj_gg_"
|
|
22
20
|
});
|
|
23
21
|
import { scaleOfBandwidth } from './utils';
|
|
24
22
|
const STROKE_WIDTH = 1;
|
|
@@ -159,6 +157,7 @@ class ReferenceLineRoot extends Component {
|
|
|
159
157
|
render() {
|
|
160
158
|
var _ref;
|
|
161
159
|
const SReferenceLine = this.Element;
|
|
160
|
+
const SArea = SvgElement;
|
|
162
161
|
const {
|
|
163
162
|
title,
|
|
164
163
|
scale,
|
|
@@ -166,7 +165,9 @@ class ReferenceLineRoot extends Component {
|
|
|
166
165
|
value,
|
|
167
166
|
color,
|
|
168
167
|
resolveColor,
|
|
169
|
-
styles
|
|
168
|
+
styles,
|
|
169
|
+
uid,
|
|
170
|
+
area
|
|
170
171
|
} = this.asProps;
|
|
171
172
|
const positionProps = lineDirection2props[side2direction[position]];
|
|
172
173
|
const {
|
|
@@ -174,7 +175,25 @@ class ReferenceLineRoot extends Component {
|
|
|
174
175
|
notchLast,
|
|
175
176
|
...line
|
|
176
177
|
} = positionProps(scale, value);
|
|
177
|
-
|
|
178
|
+
const patternId = `${uid}-pattern`;
|
|
179
|
+
return _ref = sstyled(styles), /*#__PURE__*/React.createElement(React.Fragment, null, area && /*#__PURE__*/React.createElement("g", _ref.cn("g", {
|
|
180
|
+
"aria-hidden": true
|
|
181
|
+
}), /*#__PURE__*/React.createElement("defs", _ref.cn("defs", {}), /*#__PURE__*/React.createElement("linearGradient", _ref.cn("linearGradient", {
|
|
182
|
+
"id": patternId,
|
|
183
|
+
"x1": '0%',
|
|
184
|
+
"y1": '0%',
|
|
185
|
+
"x2": '0%',
|
|
186
|
+
"y2": '100%'
|
|
187
|
+
}), getColorByUse('neutral', resolveColor))), /*#__PURE__*/React.createElement(SArea, _ref.cn("SArea", {
|
|
188
|
+
"tag": 'path',
|
|
189
|
+
"d": getReferenceAreaPath({
|
|
190
|
+
x: line.x1 - area / 2,
|
|
191
|
+
y: line.y2,
|
|
192
|
+
width: area,
|
|
193
|
+
height: line.y1 - line.y2
|
|
194
|
+
}),
|
|
195
|
+
"fill": `url(#${patternId})`
|
|
196
|
+
}))), /*#__PURE__*/React.createElement(SReferenceLine, _ref.cn("SReferenceLine", {
|
|
178
197
|
"render": 'g',
|
|
179
198
|
"__excludeProps": ['data', 'scale', 'format', 'value', 'color'],
|
|
180
199
|
"stroke": resolveColor(color)
|
|
@@ -182,7 +201,7 @@ class ReferenceLineRoot extends Component {
|
|
|
182
201
|
...notchFirst
|
|
183
202
|
})), /*#__PURE__*/React.createElement("line", _ref.cn("line", {
|
|
184
203
|
...line
|
|
185
|
-
})), /*#__PURE__*/React.createElement("line", _ref.cn("line", {
|
|
204
|
+
})), !area && /*#__PURE__*/React.createElement("line", _ref.cn("line", {
|
|
186
205
|
...notchLast
|
|
187
206
|
}))), title && /*#__PURE__*/React.createElement(ReferenceLine.Title, null, title));
|
|
188
207
|
}
|
|
@@ -192,6 +211,7 @@ _defineProperty(ReferenceLineRoot, "style", style);
|
|
|
192
211
|
_defineProperty(ReferenceLineRoot, "defaultProps", {
|
|
193
212
|
position: 'left'
|
|
194
213
|
});
|
|
214
|
+
_defineProperty(ReferenceLineRoot, "enhance", [uniqueIDEnhancement()]);
|
|
195
215
|
function Title(props) {
|
|
196
216
|
var _ref2;
|
|
197
217
|
const {
|
|
@@ -219,31 +239,86 @@ function Title(props) {
|
|
|
219
239
|
"y": y
|
|
220
240
|
}));
|
|
221
241
|
}
|
|
222
|
-
function
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
242
|
+
function getColorByUse(use, resolveColor) {
|
|
243
|
+
switch (use) {
|
|
244
|
+
case 'bad':
|
|
245
|
+
{
|
|
246
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("stop", {
|
|
247
|
+
offset: "0%",
|
|
248
|
+
stopColor: resolveColor('red-50'),
|
|
249
|
+
stopOpacity: "0.8"
|
|
250
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
251
|
+
offset: "12.68%",
|
|
252
|
+
stopColor: resolveColor('red-50'),
|
|
253
|
+
stopOpacity: "0.5"
|
|
254
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
255
|
+
offset: "87.98%",
|
|
256
|
+
stopColor: resolveColor('red-50'),
|
|
257
|
+
stopOpacity: "0.0"
|
|
258
|
+
}));
|
|
259
|
+
}
|
|
260
|
+
case 'good':
|
|
261
|
+
{
|
|
262
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("stop", {
|
|
263
|
+
offset: "0%",
|
|
264
|
+
stopColor: resolveColor('green-50'),
|
|
265
|
+
stopOpacity: "0.8"
|
|
266
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
267
|
+
offset: "12.68%",
|
|
268
|
+
stopColor: resolveColor('green-50'),
|
|
269
|
+
stopOpacity: "0.4"
|
|
270
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
271
|
+
offset: "87.98%",
|
|
272
|
+
stopColor: resolveColor('green-50'),
|
|
273
|
+
stopOpacity: "0.0"
|
|
274
|
+
}));
|
|
275
|
+
}
|
|
276
|
+
case 'insight':
|
|
277
|
+
{
|
|
278
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("stop", {
|
|
279
|
+
offset: "0%",
|
|
280
|
+
stopColor: resolveColor('violet-50'),
|
|
281
|
+
stopOpacity: "0.9"
|
|
282
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
283
|
+
offset: "12.68%",
|
|
284
|
+
stopColor: resolveColor('violet-50'),
|
|
285
|
+
stopOpacity: "0.5"
|
|
286
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
287
|
+
offset: "87.98%",
|
|
288
|
+
stopColor: resolveColor('violet-50'),
|
|
289
|
+
stopOpacity: "0.0"
|
|
290
|
+
}));
|
|
291
|
+
}
|
|
292
|
+
default:
|
|
293
|
+
{
|
|
294
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("stop", {
|
|
295
|
+
offset: "0%",
|
|
296
|
+
stopColor: resolveColor('gray-50'),
|
|
297
|
+
stopOpacity: "0.9"
|
|
298
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
299
|
+
offset: "41.83%",
|
|
300
|
+
stopColor: resolveColor('gray-50'),
|
|
301
|
+
stopOpacity: "0.5"
|
|
302
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
303
|
+
offset: "87.98%",
|
|
304
|
+
stopColor: resolveColor('gray-50'),
|
|
305
|
+
stopOpacity: "0.0"
|
|
306
|
+
}));
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
function getReferenceAreaPath({
|
|
311
|
+
x,
|
|
312
|
+
y,
|
|
313
|
+
width,
|
|
314
|
+
height
|
|
315
|
+
}) {
|
|
316
|
+
const r = 12;
|
|
317
|
+
const path = `M ${x},${y + r} Q ${x},${y} ${x + r},${y} H ${x + width - r} Q ${x + width},${y} ${x + width},${y + r} V ${y + height} H ${x} Z`;
|
|
318
|
+
return path;
|
|
238
319
|
}
|
|
239
|
-
Background.style = style;
|
|
240
|
-
const diagonalGap = 8;
|
|
241
|
-
const gap = Math.sqrt(diagonalGap ** 2 + diagonalGap ** 2);
|
|
242
|
-
const gap12 = gap * (1 / 2);
|
|
243
|
-
const gap32 = gap * (3 / 2);
|
|
244
|
-
const path = `M-${gap},-${gap12} L${gap},${gap32} M-${gap12},-${gap} L${gap32},${gap}`;
|
|
245
320
|
function Stripes(props) {
|
|
246
|
-
var
|
|
321
|
+
var _ref3;
|
|
247
322
|
const {
|
|
248
323
|
Element: SStripes,
|
|
249
324
|
styles,
|
|
@@ -251,32 +326,50 @@ function Stripes(props) {
|
|
|
251
326
|
position = 'left',
|
|
252
327
|
value,
|
|
253
328
|
endValue,
|
|
254
|
-
uid
|
|
329
|
+
uid,
|
|
330
|
+
use = 'neutral',
|
|
331
|
+
title,
|
|
332
|
+
subTitle,
|
|
333
|
+
resolveColor
|
|
255
334
|
} = props;
|
|
256
|
-
const
|
|
257
|
-
const positionProps = rectDirection2props[side2direction[position]];
|
|
335
|
+
const positionProps = rectDirection2props[side2direction[position]](scale, value, endValue);
|
|
258
336
|
const patternId = `${uid}-pattern`;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
})), /*#__PURE__*/React.createElement("pattern", _ref4.cn("pattern", {
|
|
337
|
+
const STitle = SvgElement;
|
|
338
|
+
const SSubTitle = SvgElement;
|
|
339
|
+
const textX = positionProps.x + 6;
|
|
340
|
+
const textY = positionProps.y + 6;
|
|
341
|
+
return _ref3 = sstyled(styles), /*#__PURE__*/React.createElement("g", _ref3.cn("g", {}), /*#__PURE__*/React.createElement("defs", _ref3.cn("defs", {}), /*#__PURE__*/React.createElement("linearGradient", _ref3.cn("linearGradient", {
|
|
265
342
|
"id": patternId,
|
|
266
|
-
"
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
343
|
+
"x1": '0%',
|
|
344
|
+
"y1": '0%',
|
|
345
|
+
"x2": '0%',
|
|
346
|
+
"y2": '100%'
|
|
347
|
+
}), getColorByUse(use, resolveColor))), /*#__PURE__*/React.createElement(SStripes, _ref3.cn("SStripes", {
|
|
348
|
+
"render": 'path',
|
|
349
|
+
"d": getReferenceAreaPath(positionProps),
|
|
350
|
+
"childrenPosition": 'inside',
|
|
351
|
+
"fill": `url(#${patternId})`
|
|
352
|
+
})), title && /*#__PURE__*/React.createElement(STitle, _ref3.cn("STitle", {
|
|
353
|
+
"tag": 'text',
|
|
354
|
+
"childrenPosition": 'inside',
|
|
355
|
+
"position": 'top',
|
|
356
|
+
"x": textX,
|
|
357
|
+
"y": textY
|
|
358
|
+
}), title), subTitle && /*#__PURE__*/React.createElement(SSubTitle, _ref3.cn("SSubTitle", {
|
|
359
|
+
"tag": 'text',
|
|
360
|
+
"childrenPosition": 'inside',
|
|
361
|
+
"position": 'top',
|
|
362
|
+
"x": textX,
|
|
363
|
+
"y": textY + 26
|
|
364
|
+
}), subTitle));
|
|
272
365
|
}
|
|
273
366
|
Stripes.style = style;
|
|
274
367
|
Stripes.enhance = [uniqueIDEnhancement()];
|
|
275
368
|
export const ReferenceLine = createElement(ReferenceLineRoot, {
|
|
276
369
|
Title,
|
|
277
|
-
Background,
|
|
370
|
+
Background: Stripes,
|
|
278
371
|
Stripes
|
|
279
372
|
});
|
|
280
|
-
export const ReferenceBackground = createElement(
|
|
373
|
+
export const ReferenceBackground = createElement(Stripes);
|
|
281
374
|
export const ReferenceStripes = createElement(Stripes);
|
|
282
375
|
//# sourceMappingURL=Reference.js.map
|