@corva/ui 3.74.0-11 → 3.74.0-12
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/cjs-bundle/components/Chart/components/AxisOverlay.js +1 -1
- package/cjs-bundle/components/Chart/components/AxisOverlay.js.map +1 -1
- package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartWrapper.js.map +1 -1
- package/components/Chart/components/AxisOverlay.d.ts +2 -1
- package/components/Chart/components/AxisOverlay.d.ts.map +1 -1
- package/components/Chart/components/AxisOverlay.js +1 -1
- package/components/Chart/components/AxisOverlay.js.map +1 -1
- package/components/Chart/components/ChartWrapper.d.ts.map +1 -1
- package/components/Chart/components/ChartWrapper.js +1 -1
- package/components/Chart/components/ChartWrapper.js.map +1 -1
- package/components/Chart/components/__tests__/AxisOverlay.test.d.ts +2 -0
- package/components/Chart/components/__tests__/AxisOverlay.test.d.ts.map +1 -0
- package/mcp-server/server.mjs +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("@babel/runtime/helpers/slicedToArray"),e=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),i=require("@material-ui/core"),r=require("@material-ui/icons/Straighten"),l=require("../ChartWrapperContext.js"),n=require("react/jsx-runtime");function
|
|
1
|
+
"use strict";var t=require("@babel/runtime/helpers/slicedToArray"),e=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),i=require("@material-ui/core"),r=require("@material-ui/icons/Straighten"),l=require("../ChartWrapperContext.js"),n=require("react/jsx-runtime");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=a(t),s=a(e),c=a(r),f=["axis","left","width","top","bottom","right","labelOffset","offset","height","coll","opposite","visible","onCustomizeScaleClick"],p=i.makeStyles((function(t){return{axis:function(t){var e=t.width,o=t.height;return{position:"absolute",cursor:"pointer",width:e,left:t.left,bottom:t.bottom,height:o,right:t.right,top:t.top}},tooltip:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:125,backgroundColor:t.palette.background.b9,color:t.palette.text.primary,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px",borderRadius:"4px",padding:"4px",zIndex:1e4},tooltipIcon:{fontSize:16,color:t.palette.primary.text6}}}));module.exports=function(t){var e,r=t.axis,a=t.left,h=t.width,d=t.top,x=t.bottom,b=t.right,g=t.labelOffset,m=t.offset,v=t.height,y=t.coll,C=t.opposite,j=t.visible,S=t.onCustomizeScaleClick,E=s.default(t,f),q=o.useContext(l).chart,w=o.useState({}),B=u.default(w,2),k=B[0],z=B[1],M=o.useRef(),W=(null==q?void 0:q.inverted)?"yAxis"===y:"xAxis"===y,I=14+Math.abs(g),R=14+Math.abs(g),A=p({width:W?h:R,height:W?R:v,top:W?C?d-R+m:"auto":d,right:W?b:C?b-R-m:"auto",left:W?a:C?"auto":a-R+m,bottom:W?C?"auto":x-R-m:x}),N=null===(e=M.current)||void 0===e?void 0:e.getBoundingClientRect(),O=n.jsxs("div",{className:A.tooltip,children:[n.jsx(c.default,{className:A.tooltipIcon})," Customize Scale"]}),P=function(){r.update({lineColor:"#03BCD4",lineWidth:2,labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}}})},H=function(){r.update({lineColor:"#3B3B3B",lineWidth:1,labels:{style:{color:"#9E9E9E"}},title:{style:{color:"#9E9E9E"}}})};return o.useEffect((function(){var t=q.axisGroup;t&&(t.element.style.cursor="pointer")}),[q]),j?n.jsx(i.Tooltip,{title:O,placement:W?C?"bottom":"top":C?"left":"right",onMouseMove:function(t){var e=t.pageX,o=t.pageY;z({x:e,y:o})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){var t=C?I:0,e=C?0:I;return{top:W?N.y-t:k.y,left:W?k.x:N.x-e,right:W?k.x:N.x+e,bottom:W?N.y+t:k.y,width:0,height:0}}}},children:n.jsx("div",{className:A.axis,ref:M,onClick:function(){return S(E)},onMouseOver:P,onMouseLeave:H,onFocus:P,onBlur:H})}):null};
|
|
2
2
|
//# sourceMappingURL=AxisOverlay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisOverlay.js","sources":["../../../../../src/components/Chart/components/AxisOverlay.js"],"sourcesContent":["import { useContext, useEffect, useRef, useState } from 'react';\nimport { makeStyles, Tooltip } from '@material-ui/core';\nimport StraightenIcon from '@material-ui/icons/Straighten';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\n\nconst DEFAULT_AXIS_SIZE = 14;\nconst TOOLTIP_MARGIN = 14;\n\nconst useStyles = makeStyles(theme => ({\n axis: ({ width, height, left, bottom, right, top }) => ({\n position: 'absolute',\n cursor: 'pointer',\n width,\n left,\n bottom,\n height,\n right,\n top,\n }),\n tooltip: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n minWidth: 125,\n backgroundColor: theme.palette.background.b9,\n color: theme.palette.text.primary,\n fontSize: '12px',\n lineHeight: '16px',\n letterSpacing: '0.4px',\n borderRadius: '4px',\n padding: '4px',\n zIndex: 10000,\n },\n tooltipIcon: {\n fontSize: 16,\n color: theme.palette.primary.text6,\n },\n}));\n\nconst AxisOverlay = ({\n left,\n width,\n top,\n bottom,\n right,\n labelOffset,\n offset,\n height,\n coll,\n opposite,\n visible,\n onCustomizeScaleClick,\n ...otherProps\n}) => {\n const { chart } = useContext(ChartWrapperContext);\n const [tooltipPosition, setTooltipPosition] = useState({});\n const axisRef = useRef();\n const isInvertedChart = chart?.inverted;\n const isXAxis = isInvertedChart ? coll === 'yAxis' : coll === 'xAxis';\n\n const tooltipMargin = TOOLTIP_MARGIN + Math.abs(labelOffset);\n const axisSize = DEFAULT_AXIS_SIZE + Math.abs(labelOffset);\n\n
|
|
1
|
+
{"version":3,"file":"AxisOverlay.js","sources":["../../../../../src/components/Chart/components/AxisOverlay.js"],"sourcesContent":["import { useContext, useEffect, useRef, useState } from 'react';\nimport { makeStyles, Tooltip } from '@material-ui/core';\nimport StraightenIcon from '@material-ui/icons/Straighten';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\n\nconst DEFAULT_AXIS_SIZE = 14;\nconst TOOLTIP_MARGIN = 14;\n\nconst useStyles = makeStyles(theme => ({\n axis: ({ width, height, left, bottom, right, top }) => ({\n position: 'absolute',\n cursor: 'pointer',\n width,\n left,\n bottom,\n height,\n right,\n top,\n }),\n tooltip: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n minWidth: 125,\n backgroundColor: theme.palette.background.b9,\n color: theme.palette.text.primary,\n fontSize: '12px',\n lineHeight: '16px',\n letterSpacing: '0.4px',\n borderRadius: '4px',\n padding: '4px',\n zIndex: 10000,\n },\n tooltipIcon: {\n fontSize: 16,\n color: theme.palette.primary.text6,\n },\n}));\n\nconst AxisOverlay = ({\n axis,\n left,\n width,\n top,\n bottom,\n right,\n labelOffset,\n offset,\n height,\n coll,\n opposite,\n visible,\n onCustomizeScaleClick,\n ...otherProps\n}) => {\n const { chart } = useContext(ChartWrapperContext);\n const [tooltipPosition, setTooltipPosition] = useState({});\n const axisRef = useRef();\n const isInvertedChart = chart?.inverted;\n const isXAxis = isInvertedChart ? coll === 'yAxis' : coll === 'xAxis';\n\n const tooltipMargin = TOOLTIP_MARGIN + Math.abs(labelOffset);\n const axisSize = DEFAULT_AXIS_SIZE + Math.abs(labelOffset);\n\n const axisWidth = isXAxis ? width : axisSize;\n const axisHeight = isXAxis ? axisSize : height;\n\n const getLeftPosition = () => {\n if (isXAxis) return left;\n return opposite ? 'auto' : left - axisSize + offset;\n };\n\n const getRightPosition = () => {\n if (isXAxis) return right;\n return !opposite ? 'auto' : right - axisSize - offset;\n };\n\n const getTopPosition = () => {\n if (!isXAxis) return top;\n return !opposite ? 'auto' : top - axisSize + offset;\n };\n\n const getBottomPosition = () => {\n if (!isXAxis) return bottom;\n return opposite ? 'auto' : bottom - axisSize - offset;\n };\n\n const classes = useStyles({\n width: axisWidth,\n height: axisHeight,\n top: getTopPosition(),\n right: getRightPosition(),\n left: getLeftPosition(),\n bottom: getBottomPosition(),\n });\n\n const axisPosition = axisRef.current?.getBoundingClientRect();\n\n const tooltip = (\n <div className={classes.tooltip}>\n <StraightenIcon className={classes.tooltipIcon} /> Customize Scale\n </div>\n );\n\n const handleTooltipMouseMove = ({ pageX, pageY }) => {\n setTooltipPosition({ x: pageX, y: pageY });\n };\n\n const handleAxisMouseOver = () => {\n axis.update({\n lineColor: '#03BCD4',\n lineWidth: 2,\n labels: {\n style: {\n color: '#ffffff',\n },\n },\n title: {\n style: {\n color: '#ffffff',\n },\n },\n });\n };\n\n const handleAxisMouseLeave = () => {\n axis.update({\n lineColor: '#3B3B3B',\n lineWidth: 1,\n labels: {\n style: {\n color: '#9E9E9E',\n },\n },\n title: {\n style: {\n color: '#9E9E9E',\n },\n },\n });\n };\n\n const getTooltipBoundingClientRect = () => {\n const verticalMargin = opposite ? tooltipMargin : 0;\n const horizontalMargin = opposite ? 0 : tooltipMargin;\n return {\n top: isXAxis ? axisPosition.y - verticalMargin : tooltipPosition.y,\n left: isXAxis ? tooltipPosition.x : axisPosition.x - horizontalMargin,\n right: isXAxis ? tooltipPosition.x : axisPosition.x + horizontalMargin,\n bottom: isXAxis ? axisPosition.y + verticalMargin : tooltipPosition.y,\n width: 0,\n height: 0,\n };\n };\n\n const getTooltipPlacement = () => {\n if (isXAxis) return opposite ? 'bottom' : 'top';\n return opposite ? 'left' : 'right';\n };\n\n useEffect(() => {\n const { axisGroup } = chart;\n if (axisGroup) axisGroup.element.style.cursor = 'pointer';\n }, [chart]);\n\n if (!visible) return null;\n\n return (\n <Tooltip\n title={tooltip}\n placement={getTooltipPlacement()}\n onMouseMove={handleTooltipMouseMove}\n PopperProps={{\n anchorEl: {\n clientHeight: 0,\n clientWidth: 0,\n getBoundingClientRect: getTooltipBoundingClientRect,\n },\n }}\n >\n <div\n className={classes.axis}\n ref={axisRef}\n onClick={() => onCustomizeScaleClick(otherProps)}\n onMouseOver={handleAxisMouseOver}\n onMouseLeave={handleAxisMouseLeave}\n onFocus={handleAxisMouseOver}\n onBlur={handleAxisMouseLeave}\n />\n </Tooltip>\n );\n};\n\nexport default AxisOverlay;\n"],"names":["useStyles","makeStyles","theme","axis","_ref","width","height","position","cursor","left","bottom","right","top","tooltip","display","alignItems","justifyContent","minWidth","backgroundColor","palette","background","b9","color","text","primary","fontSize","lineHeight","letterSpacing","borderRadius","padding","zIndex","tooltipIcon","text6","_ref2","_axisRef$current","labelOffset","offset","coll","opposite","visible","onCustomizeScaleClick","otherProps","_objectWithoutProperties","_excluded","chart","useContext","ChartWrapperContext","_useState","useState","_useState2","_slicedToArray","tooltipPosition","setTooltipPosition","axisRef","useRef","isXAxis","inverted","tooltipMargin","Math","abs","axisSize","classes","axisPosition","current","getBoundingClientRect","_jsxs","jsxs","className","children","_jsx","StraightenIcon","handleAxisMouseOver","update","lineColor","lineWidth","labels","style","title","handleAxisMouseLeave","useEffect","axisGroup","element","Tooltip","placement","onMouseMove","_ref3","pageX","pageY","x","y","PopperProps","anchorEl","clientHeight","clientWidth","verticalMargin","horizontalMargin","jsx","ref","onClick","onMouseOver","onMouseLeave","onFocus","onBlur"],"mappings":"wgBASMA,EAAYC,EAAAA,YAAW,SAAAC,GAAK,MAAK,CACrCC,KAAM,SAAAC,GAAA,IAAGC,IAAAA,MAAOC,IAAAA,OAAgC,MAAQ,CACtDC,SAAU,WACVC,OAAQ,UACRH,MAAAA,EACAI,OAJsBA,KAKtBC,SAL4BA,OAM5BJ,OAAAA,EACAK,QAPoCA,MAQpCC,MAR2CA,IAS3C,EACFC,QAAS,CACPC,QAAS,OACTC,WAAY,SACZC,eAAgB,gBAChBC,SAAU,IACVC,gBAAiBhB,EAAMiB,QAAQC,WAAWC,GAC1CC,MAAOpB,EAAMiB,QAAQI,KAAKC,QAC1BC,SAAU,OACVC,WAAY,OACZC,cAAe,QACfC,aAAc,MACdC,QAAS,MACTC,OAAQ,K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("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("@material-ui/core"),o=require("lodash"),n=require("react"),i=require("../ChartWrapperContext.js"),a=require("../constants.js"),l=require("../effects/useZoom.js"),c=require("../effects/useChartModifier.js"),u=require("../effects/useChartTypeSwitch.js"),s=require("./AxisOverlay.js"),h=require("react/jsx-runtime");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=d(e),f=d(r);function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){v.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var C=t.makeStyles({container:{width:"100%",height:"100%",position:"relative"}}),y={zoomType:"xy",panning:{enabled:!0,type:"xy"}},b=function(){};module.exports=function(e){var r,t,d,v,m,g,j,O,S=e.children,x=e.chartRef,Z=e.isAxesCoordinatesShown,q=void 0!==Z&&Z,E=e.onCustomizeScaleClick,w=void 0===E?null:E,P=e.onZoomChangeCallback,T=void 0===P?b:P,z=e.chartOptions,k=void 0===z?{}:z,A=C(),H=n.useState({}),M=f.default(H,2),D=M[0],I=M[1],R=l.useZoom({chart:null===(r=x.current)||void 0===r?void 0:r.chart}),B=R.zoomStatus,N=R.zoomConfig,_=R.handleZoomEvent,G=R.handleResetZoom,W=R.isZoomEnabled,F=R.handleIsZoomEnabledChange,J=R.debouncedChartSelection;n.useEffect((function(){var e,r,t;o.isEmpty(null===(e=x.current)||void 0===e?void 0:e.chart)||I({marginBottom:null===(r=x.current)||void 0===r||null===(t=r.chart)||void 0===t?void 0:t.marginBottom})}),[]);var K=(null===(t=x.current)||void 0===t||null===(d=t.chart)||void 0===d||null===(v=d.plotBox)||void 0===v?void 0:v.height)<=a.MIN_CHART_HEIGHT;c.useChartModifier({chart:null===(m=x.current)||void 0===m?void 0:m.chart,chartOptions:o.merge({},y,k),isZoomEnabled:W,isMinHeightChart:K,onZoomChangeCallback:T,handleChartSelection:J,isAxesCoordinatesShown:q});var L=u.useChartTypeSwitch({chart:null===(g=x.current)||void 0===g?void 0:g.chart}),Q=L.chartType,U=L.handleChartTypeChange,V={chart:null===(j=x.current)||void 0===j?void 0:j.chart,chartType:Q,zoomConfig:N,chartStyles:D,zoomStatus:B,isZoomEnabled:W,setChartStyles:I,handleChartTypeChange:U,handleResetZoom:G,handleZoomEvent:_,isMinHeightChart:K,handleChartSelection:J,handleChangeChartStyles:function(e){I((function(r){return p(p({},r),e)}))},handleIsZoomEnabledChange:F};return h.jsx("div",{className:A.container,children:h.jsxs(i.Provider,{value:V,children:[S,w&&(null===(O=x.current)||void 0===O?void 0:O.chart.axes.map((function(e){return h.jsx(s,p({onCustomizeScaleClick:w},e),e.coll)})))]})})};
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("@material-ui/core"),o=require("lodash"),n=require("react"),i=require("../ChartWrapperContext.js"),a=require("../constants.js"),l=require("../effects/useZoom.js"),c=require("../effects/useChartModifier.js"),u=require("../effects/useChartTypeSwitch.js"),s=require("./AxisOverlay.js"),h=require("react/jsx-runtime");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=d(e),f=d(r);function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){v.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var C=t.makeStyles({container:{width:"100%",height:"100%",position:"relative"}}),y={zoomType:"xy",panning:{enabled:!0,type:"xy"}},b=function(){};module.exports=function(e){var r,t,d,v,m,g,j,O,S=e.children,x=e.chartRef,Z=e.isAxesCoordinatesShown,q=void 0!==Z&&Z,E=e.onCustomizeScaleClick,w=void 0===E?null:E,P=e.onZoomChangeCallback,T=void 0===P?b:P,z=e.chartOptions,k=void 0===z?{}:z,A=C(),H=n.useState({}),M=f.default(H,2),D=M[0],I=M[1],R=l.useZoom({chart:null===(r=x.current)||void 0===r?void 0:r.chart}),B=R.zoomStatus,N=R.zoomConfig,_=R.handleZoomEvent,G=R.handleResetZoom,W=R.isZoomEnabled,F=R.handleIsZoomEnabledChange,J=R.debouncedChartSelection;n.useEffect((function(){var e,r,t;o.isEmpty(null===(e=x.current)||void 0===e?void 0:e.chart)||I({marginBottom:null===(r=x.current)||void 0===r||null===(t=r.chart)||void 0===t?void 0:t.marginBottom})}),[]);var K=(null===(t=x.current)||void 0===t||null===(d=t.chart)||void 0===d||null===(v=d.plotBox)||void 0===v?void 0:v.height)<=a.MIN_CHART_HEIGHT;c.useChartModifier({chart:null===(m=x.current)||void 0===m?void 0:m.chart,chartOptions:o.merge({},y,k),isZoomEnabled:W,isMinHeightChart:K,onZoomChangeCallback:T,handleChartSelection:J,isAxesCoordinatesShown:q});var L=u.useChartTypeSwitch({chart:null===(g=x.current)||void 0===g?void 0:g.chart}),Q=L.chartType,U=L.handleChartTypeChange,V={chart:null===(j=x.current)||void 0===j?void 0:j.chart,chartType:Q,zoomConfig:N,chartStyles:D,zoomStatus:B,isZoomEnabled:W,setChartStyles:I,handleChartTypeChange:U,handleResetZoom:G,handleZoomEvent:_,isMinHeightChart:K,handleChartSelection:J,handleChangeChartStyles:function(e){I((function(r){return p(p({},r),e)}))},handleIsZoomEnabledChange:F};return h.jsx("div",{className:A.container,children:h.jsxs(i.Provider,{value:V,children:[S,w&&(null===(O=x.current)||void 0===O?void 0:O.chart.axes.map((function(e){return h.jsx(s,p(p({onCustomizeScaleClick:w},e),{},{axis:e}),e.coll)})))]})})};
|
|
2
2
|
//# sourceMappingURL=ChartWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartWrapper.js","sources":["../../../../../src/components/Chart/components/ChartWrapper.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty, merge } from 'lodash';\nimport { useEffect, useState } from 'react';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\nimport { MIN_CHART_HEIGHT } from '../constants';\nimport { useChartModifier, useChartTypeSwitch, useZoom } from '../effects';\n\nimport AxisOverlay from './AxisOverlay';\n\nconst useStyles = makeStyles({\n container: {\n width: '100%',\n height: '100%',\n position: 'relative',\n },\n});\n\nconst defaultChartOptions = {\n zoomType: 'xy',\n panning: {\n enabled: true,\n type: 'xy',\n },\n};\n\nconst ChartWrapper = ({\n children,\n chartRef,\n isAxesCoordinatesShown = false,\n onCustomizeScaleClick = null,\n onZoomChangeCallback = DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK,\n chartOptions = {},\n}) => {\n const classes = useStyles();\n const [chartStyles, setChartStyles] = useState({});\n\n const {\n zoomStatus,\n zoomConfig,\n handleZoomEvent,\n handleResetZoom,\n isZoomEnabled,\n handleIsZoomEnabledChange,\n debouncedChartSelection,\n } = useZoom({\n chart: chartRef.current?.chart,\n });\n\n useEffect(() => {\n if (isEmpty(chartRef.current?.chart)) {\n return;\n }\n setChartStyles({ marginBottom: chartRef.current?.chart?.marginBottom });\n }, []);\n\n const handleChangeChartStyles = styles => {\n setChartStyles(prevState => ({ ...prevState, ...styles }));\n };\n const isMinHeightChart = chartRef.current?.chart?.plotBox?.height <= MIN_CHART_HEIGHT;\n\n useChartModifier({\n chart: chartRef.current?.chart,\n chartOptions: merge({}, defaultChartOptions, chartOptions),\n isZoomEnabled,\n isMinHeightChart,\n onZoomChangeCallback,\n handleChartSelection: debouncedChartSelection,\n isAxesCoordinatesShown,\n });\n\n const { chartType, handleChartTypeChange } = useChartTypeSwitch({\n chart: chartRef.current?.chart,\n });\n\n const contextValue = {\n chart: chartRef.current?.chart,\n chartType,\n zoomConfig,\n chartStyles,\n zoomStatus,\n isZoomEnabled,\n setChartStyles,\n handleChartTypeChange,\n handleResetZoom,\n handleZoomEvent,\n isMinHeightChart,\n handleChartSelection: debouncedChartSelection,\n handleChangeChartStyles,\n handleIsZoomEnabledChange,\n };\n\n return (\n <div className={classes.container}>\n <ChartWrapperContext.Provider value={contextValue}>\n {children}\n {onCustomizeScaleClick &&\n chartRef.current?.chart.axes.map(axis => (\n <AxisOverlay
|
|
1
|
+
{"version":3,"file":"ChartWrapper.js","sources":["../../../../../src/components/Chart/components/ChartWrapper.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty, merge } from 'lodash';\nimport { useEffect, useState } from 'react';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\nimport { MIN_CHART_HEIGHT } from '../constants';\nimport { useChartModifier, useChartTypeSwitch, useZoom } from '../effects';\n\nimport AxisOverlay from './AxisOverlay';\n\nconst useStyles = makeStyles({\n container: {\n width: '100%',\n height: '100%',\n position: 'relative',\n },\n});\n\nconst defaultChartOptions = {\n zoomType: 'xy',\n panning: {\n enabled: true,\n type: 'xy',\n },\n};\n\nconst ChartWrapper = ({\n children,\n chartRef,\n isAxesCoordinatesShown = false,\n onCustomizeScaleClick = null,\n onZoomChangeCallback = DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK,\n chartOptions = {},\n}) => {\n const classes = useStyles();\n const [chartStyles, setChartStyles] = useState({});\n\n const {\n zoomStatus,\n zoomConfig,\n handleZoomEvent,\n handleResetZoom,\n isZoomEnabled,\n handleIsZoomEnabledChange,\n debouncedChartSelection,\n } = useZoom({\n chart: chartRef.current?.chart,\n });\n\n useEffect(() => {\n if (isEmpty(chartRef.current?.chart)) {\n return;\n }\n setChartStyles({ marginBottom: chartRef.current?.chart?.marginBottom });\n }, []);\n\n const handleChangeChartStyles = styles => {\n setChartStyles(prevState => ({ ...prevState, ...styles }));\n };\n const isMinHeightChart = chartRef.current?.chart?.plotBox?.height <= MIN_CHART_HEIGHT;\n\n useChartModifier({\n chart: chartRef.current?.chart,\n chartOptions: merge({}, defaultChartOptions, chartOptions),\n isZoomEnabled,\n isMinHeightChart,\n onZoomChangeCallback,\n handleChartSelection: debouncedChartSelection,\n isAxesCoordinatesShown,\n });\n\n const { chartType, handleChartTypeChange } = useChartTypeSwitch({\n chart: chartRef.current?.chart,\n });\n\n const contextValue = {\n chart: chartRef.current?.chart,\n chartType,\n zoomConfig,\n chartStyles,\n zoomStatus,\n isZoomEnabled,\n setChartStyles,\n handleChartTypeChange,\n handleResetZoom,\n handleZoomEvent,\n isMinHeightChart,\n handleChartSelection: debouncedChartSelection,\n handleChangeChartStyles,\n handleIsZoomEnabledChange,\n };\n\n return (\n <div className={classes.container}>\n <ChartWrapperContext.Provider value={contextValue}>\n {children}\n {onCustomizeScaleClick &&\n chartRef.current?.chart.axes.map(axis => (\n <AxisOverlay\n key={axis.coll}\n onCustomizeScaleClick={onCustomizeScaleClick}\n {...axis}\n axis={axis}\n />\n ))}\n </ChartWrapperContext.Provider>\n </div>\n );\n};\n\nconst DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK = () => {};\n\nexport default ChartWrapper;\n"],"names":["useStyles","makeStyles","container","width","height","position","defaultChartOptions","zoomType","panning","enabled","type","DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK","_ref","_chartRef$current","_chartRef$current4","_chartRef$current4$ch","_chartRef$current4$ch2","_chartRef$current5","_chartRef$current6","_chartRef$current7","_chartRef$current8","children","chartRef","_ref$isAxesCoordinate","isAxesCoordinatesShown","_ref$onCustomizeScale","onCustomizeScaleClick","_ref$onZoomChangeCall","onZoomChangeCallback","_ref$chartOptions","chartOptions","classes","_useState","useState","_useState2","_slicedToArray","chartStyles","setChartStyles","_useZoom","useZoom","chart","current","zoomStatus","zoomConfig","handleZoomEvent","handleResetZoom","isZoomEnabled","handleIsZoomEnabledChange","debouncedChartSelection","useEffect","_chartRef$current2","_chartRef$current3","_chartRef$current3$ch","isEmpty","marginBottom","isMinHeightChart","plotBox","MIN_CHART_HEIGHT","useChartModifier","merge","handleChartSelection","_useChartTypeSwitch","useChartTypeSwitch","chartType","handleChartTypeChange","contextValue","handleChangeChartStyles","styles","prevState","_jsx","className","_jsxs","ChartWrapperContext","Provider","value","axes","map","axis","AxisOverlay","_objectSpread","coll"],"mappings":"2lCAUA,IAAMA,EAAYC,EAAAA,WAAW,CAC3BC,UAAW,CACTC,MAAO,OACPC,OAAQ,OACRC,SAAU,cAIRC,EAAsB,CAC1BC,SAAU,KACVC,QAAS,CACPC,SAAS,EACTC,KAAM,OAwFJC,EAAgD,WAAQ,iBApFzC,SAOfC,GAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EANJC,IAAAA,SACAC,IAAAA,SAAQC,EAAAX,EACRY,uBAAAA,cAA8BD,EAAAE,EAAAb,EAC9Bc,sBAAAA,aAAwB,KAAID,EAAAE,EAAAf,EAC5BgB,qBAAAA,aAAuBjB,EAA6CgB,EAAAE,EAAAjB,EACpEkB,aAAAA,OAAY,IAAAD,EAAG,CAAA,EAAEA,EAEXE,EAAU/B,IAChBgC,EAAsCC,EAAQA,SAAC,IAAGC,EAAAC,EAAAA,QAAAH,EAAA,GAA3CI,EAAWF,EAAA,GAAEG,EAAcH,EAAA,GAElCI,EAQIC,EAAAA,QAAQ,CACVC,cAAOlB,EAAAA,EAASmB,4BAAT5B,EAAkB2B,QARzBE,IAAAA,WACAC,IAAAA,WACAC,IAAAA,gBACAC,IAAAA,gBACAC,IAAAA,cACAC,IA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AAOT,EAAa5C,SAAA,CAC/CA,EACAK,IACiB,QAAhBJ,EAAAA,EAASmB,eAAO,IAAArB,OAAA,EAAhBA,EAAkBoB,MAAMmC,KAAKC,KAAI,SAAAC,GAAI,OACnCR,MAACS,EAAWC,EAAAA,EAAA,CAEVrD,sBAAuBA,GACnBmD,GAAI,GAAA,CACRA,KAAMA,IAHDA,EAAKG,KAKb,SAIX"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
declare const AxisOverlay: ({ left, width, top, bottom, right, labelOffset, offset, height, coll, opposite, visible, onCustomizeScaleClick, ...otherProps }: {
|
|
1
|
+
declare const AxisOverlay: ({ axis, left, width, top, bottom, right, labelOffset, offset, height, coll, opposite, visible, onCustomizeScaleClick, ...otherProps }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
+
axis: any;
|
|
3
4
|
bottom: any;
|
|
4
5
|
coll: any;
|
|
5
6
|
height: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"names":[],"mappings":"AAwCA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"AxisOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"names":[],"mappings":"AAwCA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;wCAwJhB,CAAC;eAEa,WAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as o,useState as i,useRef as r,useEffect as l}from"react";import{makeStyles as n,Tooltip as a}from"@material-ui/core";import
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as o,useState as i,useRef as r,useEffect as l}from"react";import{makeStyles as n,Tooltip as a}from"@material-ui/core";import s from"@material-ui/icons/Straighten";import p from"../ChartWrapperContext.js";import{jsxs as c,jsx as f}from"react/jsx-runtime";var u=["axis","left","width","top","bottom","right","labelOffset","offset","height","coll","opposite","visible","onCustomizeScaleClick"],h=n((function(t){return{axis:function(t){var e=t.width,o=t.height;return{position:"absolute",cursor:"pointer",width:e,left:t.left,bottom:t.bottom,height:o,right:t.right,top:t.top}},tooltip:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:125,backgroundColor:t.palette.background.b9,color:t.palette.text.primary,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px",borderRadius:"4px",padding:"4px",zIndex:1e4},tooltipIcon:{fontSize:16,color:t.palette.primary.text6}}})),m=function(n){var m,d=n.axis,g=n.left,b=n.width,x=n.top,v=n.bottom,y=n.right,C=n.labelOffset,w=n.offset,B=n.height,E=n.coll,S=n.opposite,z=n.visible,M=n.onCustomizeScaleClick,W=e(n,u),k=o(p).chart,j=i({}),I=t(j,2),A=I[0],N=I[1],O=r(),P=(null==k?void 0:k.inverted)?"yAxis"===E:"xAxis"===E,R=14+Math.abs(C),H=14+Math.abs(C),D=h({width:P?b:H,height:P?H:B,top:P?S?x-H+w:"auto":x,right:P?y:S?y-H-w:"auto",left:P?g:S?"auto":g-H+w,bottom:P?S?"auto":v-H-w:v}),F=null===(m=O.current)||void 0===m?void 0:m.getBoundingClientRect(),G=c("div",{className:D.tooltip,children:[f(s,{className:D.tooltipIcon})," Customize Scale"]}),L=function(){d.update({lineColor:"#03BCD4",lineWidth:2,labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}}})},T=function(){d.update({lineColor:"#3B3B3B",lineWidth:1,labels:{style:{color:"#9E9E9E"}},title:{style:{color:"#9E9E9E"}}})};return l((function(){var t=k.axisGroup;t&&(t.element.style.cursor="pointer")}),[k]),z?f(a,{title:G,placement:P?S?"bottom":"top":S?"left":"right",onMouseMove:function(t){var e=t.pageX,o=t.pageY;N({x:e,y:o})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){var t=S?R:0,e=S?0:R;return{top:P?F.y-t:A.y,left:P?A.x:F.x-e,right:P?A.x:F.x+e,bottom:P?F.y+t:A.y,width:0,height:0}}}},children:f("div",{className:D.axis,ref:O,onClick:function(){return M(W)},onMouseOver:L,onMouseLeave:T,onFocus:L,onBlur:T})}):null};export{m as default};
|
|
2
2
|
//# sourceMappingURL=AxisOverlay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisOverlay.js","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"sourcesContent":["import { useContext, useEffect, useRef, useState } from 'react';\nimport { makeStyles, Tooltip } from '@material-ui/core';\nimport StraightenIcon from '@material-ui/icons/Straighten';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\n\nconst DEFAULT_AXIS_SIZE = 14;\nconst TOOLTIP_MARGIN = 14;\n\nconst useStyles = makeStyles(theme => ({\n axis: ({ width, height, left, bottom, right, top }) => ({\n position: 'absolute',\n cursor: 'pointer',\n width,\n left,\n bottom,\n height,\n right,\n top,\n }),\n tooltip: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n minWidth: 125,\n backgroundColor: theme.palette.background.b9,\n color: theme.palette.text.primary,\n fontSize: '12px',\n lineHeight: '16px',\n letterSpacing: '0.4px',\n borderRadius: '4px',\n padding: '4px',\n zIndex: 10000,\n },\n tooltipIcon: {\n fontSize: 16,\n color: theme.palette.primary.text6,\n },\n}));\n\nconst AxisOverlay = ({\n left,\n width,\n top,\n bottom,\n right,\n labelOffset,\n offset,\n height,\n coll,\n opposite,\n visible,\n onCustomizeScaleClick,\n ...otherProps\n}) => {\n const { chart } = useContext(ChartWrapperContext);\n const [tooltipPosition, setTooltipPosition] = useState({});\n const axisRef = useRef();\n const isInvertedChart = chart?.inverted;\n const isXAxis = isInvertedChart ? coll === 'yAxis' : coll === 'xAxis';\n\n const tooltipMargin = TOOLTIP_MARGIN + Math.abs(labelOffset);\n const axisSize = DEFAULT_AXIS_SIZE + Math.abs(labelOffset);\n\n
|
|
1
|
+
{"version":3,"file":"AxisOverlay.js","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"sourcesContent":["import { useContext, useEffect, useRef, useState } from 'react';\nimport { makeStyles, Tooltip } from '@material-ui/core';\nimport StraightenIcon from '@material-ui/icons/Straighten';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\n\nconst DEFAULT_AXIS_SIZE = 14;\nconst TOOLTIP_MARGIN = 14;\n\nconst useStyles = makeStyles(theme => ({\n axis: ({ width, height, left, bottom, right, top }) => ({\n position: 'absolute',\n cursor: 'pointer',\n width,\n left,\n bottom,\n height,\n right,\n top,\n }),\n tooltip: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n minWidth: 125,\n backgroundColor: theme.palette.background.b9,\n color: theme.palette.text.primary,\n fontSize: '12px',\n lineHeight: '16px',\n letterSpacing: '0.4px',\n borderRadius: '4px',\n padding: '4px',\n zIndex: 10000,\n },\n tooltipIcon: {\n fontSize: 16,\n color: theme.palette.primary.text6,\n },\n}));\n\nconst AxisOverlay = ({\n axis,\n left,\n width,\n top,\n bottom,\n right,\n labelOffset,\n offset,\n height,\n coll,\n opposite,\n visible,\n onCustomizeScaleClick,\n ...otherProps\n}) => {\n const { chart } = useContext(ChartWrapperContext);\n const [tooltipPosition, setTooltipPosition] = useState({});\n const axisRef = useRef();\n const isInvertedChart = chart?.inverted;\n const isXAxis = isInvertedChart ? coll === 'yAxis' : coll === 'xAxis';\n\n const tooltipMargin = TOOLTIP_MARGIN + Math.abs(labelOffset);\n const axisSize = DEFAULT_AXIS_SIZE + Math.abs(labelOffset);\n\n const axisWidth = isXAxis ? width : axisSize;\n const axisHeight = isXAxis ? axisSize : height;\n\n const getLeftPosition = () => {\n if (isXAxis) return left;\n return opposite ? 'auto' : left - axisSize + offset;\n };\n\n const getRightPosition = () => {\n if (isXAxis) return right;\n return !opposite ? 'auto' : right - axisSize - offset;\n };\n\n const getTopPosition = () => {\n if (!isXAxis) return top;\n return !opposite ? 'auto' : top - axisSize + offset;\n };\n\n const getBottomPosition = () => {\n if (!isXAxis) return bottom;\n return opposite ? 'auto' : bottom - axisSize - offset;\n };\n\n const classes = useStyles({\n width: axisWidth,\n height: axisHeight,\n top: getTopPosition(),\n right: getRightPosition(),\n left: getLeftPosition(),\n bottom: getBottomPosition(),\n });\n\n const axisPosition = axisRef.current?.getBoundingClientRect();\n\n const tooltip = (\n <div className={classes.tooltip}>\n <StraightenIcon className={classes.tooltipIcon} /> Customize Scale\n </div>\n );\n\n const handleTooltipMouseMove = ({ pageX, pageY }) => {\n setTooltipPosition({ x: pageX, y: pageY });\n };\n\n const handleAxisMouseOver = () => {\n axis.update({\n lineColor: '#03BCD4',\n lineWidth: 2,\n labels: {\n style: {\n color: '#ffffff',\n },\n },\n title: {\n style: {\n color: '#ffffff',\n },\n },\n });\n };\n\n const handleAxisMouseLeave = () => {\n axis.update({\n lineColor: '#3B3B3B',\n lineWidth: 1,\n labels: {\n style: {\n color: '#9E9E9E',\n },\n },\n title: {\n style: {\n color: '#9E9E9E',\n },\n },\n });\n };\n\n const getTooltipBoundingClientRect = () => {\n const verticalMargin = opposite ? tooltipMargin : 0;\n const horizontalMargin = opposite ? 0 : tooltipMargin;\n return {\n top: isXAxis ? axisPosition.y - verticalMargin : tooltipPosition.y,\n left: isXAxis ? tooltipPosition.x : axisPosition.x - horizontalMargin,\n right: isXAxis ? tooltipPosition.x : axisPosition.x + horizontalMargin,\n bottom: isXAxis ? axisPosition.y + verticalMargin : tooltipPosition.y,\n width: 0,\n height: 0,\n };\n };\n\n const getTooltipPlacement = () => {\n if (isXAxis) return opposite ? 'bottom' : 'top';\n return opposite ? 'left' : 'right';\n };\n\n useEffect(() => {\n const { axisGroup } = chart;\n if (axisGroup) axisGroup.element.style.cursor = 'pointer';\n }, [chart]);\n\n if (!visible) return null;\n\n return (\n <Tooltip\n title={tooltip}\n placement={getTooltipPlacement()}\n onMouseMove={handleTooltipMouseMove}\n PopperProps={{\n anchorEl: {\n clientHeight: 0,\n clientWidth: 0,\n getBoundingClientRect: getTooltipBoundingClientRect,\n },\n }}\n >\n <div\n className={classes.axis}\n ref={axisRef}\n onClick={() => onCustomizeScaleClick(otherProps)}\n onMouseOver={handleAxisMouseOver}\n onMouseLeave={handleAxisMouseLeave}\n onFocus={handleAxisMouseOver}\n onBlur={handleAxisMouseLeave}\n />\n </Tooltip>\n );\n};\n\nexport default AxisOverlay;\n"],"names":["useStyles","makeStyles","theme","axis","_ref","width","height","position","cursor","left","bottom","right","top","tooltip","display","alignItems","justifyContent","minWidth","backgroundColor","palette","background","b9","color","text","primary","fontSize","lineHeight","letterSpacing","borderRadius","padding","zIndex","tooltipIcon","text6","AxisOverlay","_ref2","_axisRef$current","labelOffset","offset","coll","opposite","visible","onCustomizeScaleClick","otherProps","_objectWithoutProperties","_excluded","chart","useContext","ChartWrapperContext","_useState","useState","_useState2","_slicedToArray","tooltipPosition","setTooltipPosition","axisRef","useRef","isXAxis","inverted","tooltipMargin","Math","abs","axisSize","classes","axisPosition","current","getBoundingClientRect","_jsxs","className","children","_jsx","StraightenIcon","handleAxisMouseOver","update","lineColor","lineWidth","labels","style","title","handleAxisMouseLeave","useEffect","axisGroup","element","Tooltip","placement","onMouseMove","_ref3","pageX","pageY","x","y","PopperProps","anchorEl","clientHeight","clientWidth","verticalMargin","horizontalMargin","ref","onClick","onMouseOver","onMouseLeave","onFocus","onBlur"],"mappings":"2gBASMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,KAAM,SAAAC,GAAA,IAAGC,IAAAA,MAAOC,IAAAA,OAAgC,MAAQ,CACtDC,SAAU,WACVC,OAAQ,UACRH,MAAAA,EACAI,OAJsBA,KAKtBC,SAL4BA,OAM5BJ,OAAAA,EACAK,QAPoCA,MAQpCC,MAR2CA,IAS3C,EACFC,QAAS,CACPC,QAAS,OACTC,WAAY,SACZC,eAAgB,gBAChBC,SAAU,IACVC,gBAAiBhB,EAAMiB,QAAQC,WAAWC,GAC1CC,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-1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartWrapper.js"],"names":[],"mappings":"AA0BA,QAAA,MAAM,YAAY;;;;;;;
|
|
1
|
+
{"version":3,"file":"ChartWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartWrapper.js"],"names":[],"mappings":"AA0BA,QAAA,MAAM,YAAY;;;;;;;iCAkFjB,CAAC;AAEF,QAAA,MAAM,6CAA6C,YAAW,CAAC;eAEhD,YAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{makeStyles as r}from"@material-ui/core";import{isEmpty as o,merge as n}from"lodash";import{useState as i,useEffect as a}from"react";import l from"../ChartWrapperContext.js";import{MIN_CHART_HEIGHT as c}from"../constants.js";import{useZoom as h}from"../effects/useZoom.js";import{useChartModifier as s}from"../effects/useChartModifier.js";import{useChartTypeSwitch as d}from"../effects/useChartTypeSwitch.js";import m from"./AxisOverlay.js";import{jsx as u,jsxs as p}from"react/jsx-runtime";function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function v(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?f(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var C=r({container:{width:"100%",height:"100%",position:"relative"}}),b={zoomType:"xy",panning:{enabled:!0,type:"xy"}},y=function(e){var r,f,y,O,j,S,Z,w
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{makeStyles as r}from"@material-ui/core";import{isEmpty as o,merge as n}from"lodash";import{useState as i,useEffect as a}from"react";import l from"../ChartWrapperContext.js";import{MIN_CHART_HEIGHT as c}from"../constants.js";import{useZoom as h}from"../effects/useZoom.js";import{useChartModifier as s}from"../effects/useChartModifier.js";import{useChartTypeSwitch as d}from"../effects/useChartTypeSwitch.js";import m from"./AxisOverlay.js";import{jsx as u,jsxs as p}from"react/jsx-runtime";function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function v(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?f(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var C=r({container:{width:"100%",height:"100%",position:"relative"}}),b={zoomType:"xy",panning:{enabled:!0,type:"xy"}},y=function(e){var r,f,y,O,j,S,Z,x,w=e.children,P=e.chartRef,E=e.isAxesCoordinatesShown,z=void 0!==E&&E,T=e.onCustomizeScaleClick,k=void 0===T?null:T,A=e.onZoomChangeCallback,D=void 0===A?g:A,B=e.chartOptions,M=void 0===B?{}:B,R=C(),H=i({}),I=t(H,2),N=I[0],W=I[1],q=h({chart:null===(r=P.current)||void 0===r?void 0:r.chart}),F=q.zoomStatus,G=q.zoomConfig,J=q.handleZoomEvent,K=q.handleResetZoom,L=q.isZoomEnabled,Q=q.handleIsZoomEnabledChange,U=q.debouncedChartSelection;a((function(){var e,t,r;o(null===(e=P.current)||void 0===e?void 0:e.chart)||W({marginBottom:null===(t=P.current)||void 0===t||null===(r=t.chart)||void 0===r?void 0:r.marginBottom})}),[]);var V=(null===(f=P.current)||void 0===f||null===(y=f.chart)||void 0===y||null===(O=y.plotBox)||void 0===O?void 0:O.height)<=c;s({chart:null===(j=P.current)||void 0===j?void 0:j.chart,chartOptions:n({},b,M),isZoomEnabled:L,isMinHeightChart:V,onZoomChangeCallback:D,handleChartSelection:U,isAxesCoordinatesShown:z});var X=d({chart:null===(S=P.current)||void 0===S?void 0:S.chart}),Y=X.chartType,$=X.handleChartTypeChange,_={chart:null===(Z=P.current)||void 0===Z?void 0:Z.chart,chartType:Y,zoomConfig:G,chartStyles:N,zoomStatus:F,isZoomEnabled:L,setChartStyles:W,handleChartTypeChange:$,handleResetZoom:K,handleZoomEvent:J,isMinHeightChart:V,handleChartSelection:U,handleChangeChartStyles:function(e){W((function(t){return v(v({},t),e)}))},handleIsZoomEnabledChange:Q};return u("div",{className:R.container,children:p(l.Provider,{value:_,children:[w,k&&(null===(x=P.current)||void 0===x?void 0:x.chart.axes.map((function(e){return u(m,v(v({onCustomizeScaleClick:k},e),{},{axis:e}),e.coll)})))]})})},g=function(){};export{y as default};
|
|
2
2
|
//# sourceMappingURL=ChartWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartWrapper.js","sources":["../../../../src/components/Chart/components/ChartWrapper.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty, merge } from 'lodash';\nimport { useEffect, useState } from 'react';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\nimport { MIN_CHART_HEIGHT } from '../constants';\nimport { useChartModifier, useChartTypeSwitch, useZoom } from '../effects';\n\nimport AxisOverlay from './AxisOverlay';\n\nconst useStyles = makeStyles({\n container: {\n width: '100%',\n height: '100%',\n position: 'relative',\n },\n});\n\nconst defaultChartOptions = {\n zoomType: 'xy',\n panning: {\n enabled: true,\n type: 'xy',\n },\n};\n\nconst ChartWrapper = ({\n children,\n chartRef,\n isAxesCoordinatesShown = false,\n onCustomizeScaleClick = null,\n onZoomChangeCallback = DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK,\n chartOptions = {},\n}) => {\n const classes = useStyles();\n const [chartStyles, setChartStyles] = useState({});\n\n const {\n zoomStatus,\n zoomConfig,\n handleZoomEvent,\n handleResetZoom,\n isZoomEnabled,\n handleIsZoomEnabledChange,\n debouncedChartSelection,\n } = useZoom({\n chart: chartRef.current?.chart,\n });\n\n useEffect(() => {\n if (isEmpty(chartRef.current?.chart)) {\n return;\n }\n setChartStyles({ marginBottom: chartRef.current?.chart?.marginBottom });\n }, []);\n\n const handleChangeChartStyles = styles => {\n setChartStyles(prevState => ({ ...prevState, ...styles }));\n };\n const isMinHeightChart = chartRef.current?.chart?.plotBox?.height <= MIN_CHART_HEIGHT;\n\n useChartModifier({\n chart: chartRef.current?.chart,\n chartOptions: merge({}, defaultChartOptions, chartOptions),\n isZoomEnabled,\n isMinHeightChart,\n onZoomChangeCallback,\n handleChartSelection: debouncedChartSelection,\n isAxesCoordinatesShown,\n });\n\n const { chartType, handleChartTypeChange } = useChartTypeSwitch({\n chart: chartRef.current?.chart,\n });\n\n const contextValue = {\n chart: chartRef.current?.chart,\n chartType,\n zoomConfig,\n chartStyles,\n zoomStatus,\n isZoomEnabled,\n setChartStyles,\n handleChartTypeChange,\n handleResetZoom,\n handleZoomEvent,\n isMinHeightChart,\n handleChartSelection: debouncedChartSelection,\n handleChangeChartStyles,\n handleIsZoomEnabledChange,\n };\n\n return (\n <div className={classes.container}>\n <ChartWrapperContext.Provider value={contextValue}>\n {children}\n {onCustomizeScaleClick &&\n chartRef.current?.chart.axes.map(axis => (\n <AxisOverlay
|
|
1
|
+
{"version":3,"file":"ChartWrapper.js","sources":["../../../../src/components/Chart/components/ChartWrapper.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty, merge } from 'lodash';\nimport { useEffect, useState } from 'react';\n\nimport ChartWrapperContext from '../ChartWrapperContext';\nimport { MIN_CHART_HEIGHT } from '../constants';\nimport { useChartModifier, useChartTypeSwitch, useZoom } from '../effects';\n\nimport AxisOverlay from './AxisOverlay';\n\nconst useStyles = makeStyles({\n container: {\n width: '100%',\n height: '100%',\n position: 'relative',\n },\n});\n\nconst defaultChartOptions = {\n zoomType: 'xy',\n panning: {\n enabled: true,\n type: 'xy',\n },\n};\n\nconst ChartWrapper = ({\n children,\n chartRef,\n isAxesCoordinatesShown = false,\n onCustomizeScaleClick = null,\n onZoomChangeCallback = DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK,\n chartOptions = {},\n}) => {\n const classes = useStyles();\n const [chartStyles, setChartStyles] = useState({});\n\n const {\n zoomStatus,\n zoomConfig,\n handleZoomEvent,\n handleResetZoom,\n isZoomEnabled,\n handleIsZoomEnabledChange,\n debouncedChartSelection,\n } = useZoom({\n chart: chartRef.current?.chart,\n });\n\n useEffect(() => {\n if (isEmpty(chartRef.current?.chart)) {\n return;\n }\n setChartStyles({ marginBottom: chartRef.current?.chart?.marginBottom });\n }, []);\n\n const handleChangeChartStyles = styles => {\n setChartStyles(prevState => ({ ...prevState, ...styles }));\n };\n const isMinHeightChart = chartRef.current?.chart?.plotBox?.height <= MIN_CHART_HEIGHT;\n\n useChartModifier({\n chart: chartRef.current?.chart,\n chartOptions: merge({}, defaultChartOptions, chartOptions),\n isZoomEnabled,\n isMinHeightChart,\n onZoomChangeCallback,\n handleChartSelection: debouncedChartSelection,\n isAxesCoordinatesShown,\n });\n\n const { chartType, handleChartTypeChange } = useChartTypeSwitch({\n chart: chartRef.current?.chart,\n });\n\n const contextValue = {\n chart: chartRef.current?.chart,\n chartType,\n zoomConfig,\n chartStyles,\n zoomStatus,\n isZoomEnabled,\n setChartStyles,\n handleChartTypeChange,\n handleResetZoom,\n handleZoomEvent,\n isMinHeightChart,\n handleChartSelection: debouncedChartSelection,\n handleChangeChartStyles,\n handleIsZoomEnabledChange,\n };\n\n return (\n <div className={classes.container}>\n <ChartWrapperContext.Provider value={contextValue}>\n {children}\n {onCustomizeScaleClick &&\n chartRef.current?.chart.axes.map(axis => (\n <AxisOverlay\n key={axis.coll}\n onCustomizeScaleClick={onCustomizeScaleClick}\n {...axis}\n axis={axis}\n />\n ))}\n </ChartWrapperContext.Provider>\n </div>\n );\n};\n\nconst DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK = () => {};\n\nexport default ChartWrapper;\n"],"names":["useStyles","makeStyles","container","width","height","position","defaultChartOptions","zoomType","panning","enabled","type","ChartWrapper","_ref","_chartRef$current","_chartRef$current4","_chartRef$current4$ch","_chartRef$current4$ch2","_chartRef$current5","_chartRef$current6","_chartRef$current7","_chartRef$current8","children","chartRef","_ref$isAxesCoordinate","isAxesCoordinatesShown","_ref$onCustomizeScale","onCustomizeScaleClick","_ref$onZoomChangeCall","onZoomChangeCallback","DEFAULT_CHART_WRAPPER_ON_ZOOM_CHANGE_CALLBACK","_ref$chartOptions","chartOptions","classes","_useState","useState","_useState2","_slicedToArray","chartStyles","setChartStyles","_useZoom","useZoom","chart","current","zoomStatus","zoomConfig","handleZoomEvent","handleResetZoom","isZoomEnabled","handleIsZoomEnabledChange","debouncedChartSelection","useEffect","_chartRef$current2","_chartRef$current3","_chartRef$current3$ch","isEmpty","marginBottom","isMinHeightChart","plotBox","MIN_CHART_HEIGHT","useChartModifier","merge","handleChartSelection","_useChartTypeSwitch","useChartTypeSwitch","chartType","handleChartTypeChange","contextValue","handleChangeChartStyles","styles","prevState","_jsx","className","_jsxs","ChartWrapperContext","Provider","value","axes","map","axis","AxisOverlay","_objectSpread","coll"],"mappings":"ypCAUA,IAAMA,EAAYC,EAAW,CAC3BC,UAAW,CACTC,MAAO,OACPC,OAAQ,OACRC,SAAU,cAIRC,EAAsB,CAC1BC,SAAU,KACVC,QAAS,CACPC,SAAS,EACTC,KAAM,OAIJC,EAAe,SAOfC,GAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EANJC,IAAAA,SACAC,IAAAA,SAAQC,EAAAX,EACRY,uBAAAA,cAA8BD,EAAAE,EAAAb,EAC9Bc,sBAAAA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AAAA,EACAI,cAAAA,EACAT,eAAAA,EACA2B,sBAAAA,EACAnB,gBAAAA,EACAD,gBAAAA,EACAW,iBAAAA,EACAK,qBAAsBZ,EACtBkB,wBAhC8B,SAAAC,GAC9B9B,GAAe,SAAA+B,GAAS,OAAUA,EAAAA,EAAAA,CAAAA,EAAAA,GAAcD,EAAM,KAgCtDpB,0BAAAA,GAGF,OACEsB,EAAA,MAAA,CAAKC,UAAWvC,EAAQ9B,UAAUmB,SAChCmD,EAACC,EAAoBC,SAAQ,CAACC,MAAOT,EAAa7C,SAAA,CAC/CA,EACAK,IACiB,QAAhBJ,EAAAA,EAASoB,eAAO,IAAAtB,OAAA,EAAhBA,EAAkBqB,MAAMmC,KAAKC,KAAI,SAAAC,GAAI,OACnCR,EAACS,EAAWC,EAAAA,EAAA,CAEVtD,sBAAuBA,GACnBoD,GAAI,GAAA,CACRA,KAAMA,IAHDA,EAAKG,KAKb,SAIX,EAEMpD,EAAgD,WAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxisOverlay.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/components/__tests__/AxisOverlay.test.js"],"names":[],"mappings":""}
|
package/mcp-server/server.mjs
CHANGED