synchro-charts
synchro-charts copied to clipboard
Add the small rounded corner of a ring and recalculate the label and …
Overview
Add the small rounded corner of a ring. Recalculate the label and icon positions when the size is updated.
Tests
[Include a link to the passing GitHub action running the test suite here.]
Legal
This project is available under the Apache 2.0 License.
could we get a snapshot test that actually visualizes this small corner?
Done. In cypress file.
And is there someway we can avoid having all this low level path building? Surely there's some library we can utilize?
The path calculation is a little tricky, and that's the only way I can think of it. And we can utilize zRender
library(https://github.com/ecomfe/zrender) to get Path. But it was rejected before.
What do you mean by zrender being rejected before?
on image packages/synchro-charts/cypress/snapshots/dial/dial.spec.ts/renders alarm Warning.snap.png you can see some colission between the icon and the ring
on image packages/synchro-charts/cypress/snapshots/dial/dial.spec.ts/renders alarm Warning.snap.png you can see some colission between the icon and the ring
This is because the iconSize set by cypress is very large, which is caused by the adaptive ring. If the icon size is set smaller, it will be solved.
gracefully handle the scenario a yMin
and yMax
or omitted from the viewport
gracefully handle the scenario a
yMin
andyMax
or omitted from the viewport
It displays 0%
if has no unit, or displays the input value and unit if has unit.
ensure that there is no message stating 'invalid data' when the latest value is greater than the specified yMax
. It's not invalid data for the data to be greater than yMax
ensure that there is no message stating 'invalid data' when the latest value is greater than the specified
yMax
. It's not invalid data for the data to be greater thanyMax
Understood. How about ' Data overflow'? Or do you have any suggestion to it?
ensure that there is no message stating 'invalid data' when the latest value is greater than the specified
yMax
. It's not invalid data for the data to be greater thanyMax
Understood. How about ' Data overflow'? Or do you have any suggestion to it?
We can just present no message in this scenario
ensure that there is no message stating 'invalid data' when the latest value is greater than the specified
yMax
. It's not invalid data for the data to be greater thanyMax
Understood. How about ' Data overflow'? Or do you have any suggestion to it?
We can just present no message in this scenario
Got it.
looks good, just need to clean up the git history to be a single commit, with a well formatted commit message in a 'conventional commit' style (https://www.conventionalcommits.org/en/v1.0.0/)
looks good, just need to clean up the git history to be a single commit, with a well formatted commit message in a 'conventional commit' style (https://www.conventionalcommits.org/en/v1.0.0/)
New PR: https://github.com/awslabs/synchro-charts/pull/180
closing in favor of https://github.com/awslabs/synchro-charts/pull/180