Refactoring the utilities to reduce monosize of components
Refactoring the utilities to remove indirect function invocations. This reduced the monosize of each cartesian components by 4kB on an average. Additionally following changes were made:
- Removed other unused function arguments
- Removed event handlers like mouseLeave, blur, mouseOut which were empty functions.
- Made property shorthands as applicable, reduced if else blocks in simple logics
- Removed additional eslint comments per line when already same has been applied for whole file.
- Removed unused states within the component classes.
- Used destructuring of argument values of getGraphData function which removed d3-axis import and axis type declarations from each chart.
📊 Bundle size report
✅ No changes found
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Can you update the PR description to represent only the changes in this PR.
Performed Full test pass on this PR https://fluentuipr.z22.web.core.windows.net/pull/31291/public-docsite/index.html#/controls. Tested the functionality (manual testing) for all the charts.