Replies: 2 comments 10 replies
-
You are forging a new path here so all I can suggest is try using chrome and see if that reveals anything different. I do know Firefox has some caching issues that sometimes cause weird results. |
Beta Was this translation helpful? Give feedback.
-
So, I think it might relate to this part of the css file:
If I delete it, is seems to work. I have the I tried just overwriting for the specific object from the floorplan.yaml
but that didn't work. Any idea how to apply that on a single object, while retaining the |
Beta Was this translation helpful? Give feedback.
-
Specifically, I have this circle:
I need the circle to hide X % (
100% - entity_state
, which is charge of a phone) of what's behind. To do that, I put in my floorplan.yaml:(162 being because the "real" radius is
r_real = r - (stroke-width/2) = 28.786091 - (6/2) = 25.786091
. Meaning the circumference isc = 2 * pi * r_real ~ 162
).In the preview (editing the lovelace card) it looks as expected (I had the charge at 66%):
![Screenshot 2022-10-23 at 21 38 24](https://user-images.githubusercontent.com/20152788/197414454-8a9dd830-5364-4d2d-a7bb-f477bd3e3c67.png)
But once I click save, it looks all wonky:
![Screenshot 2022-10-23 at 21 38 37](https://user-images.githubusercontent.com/20152788/197414473-8663bb32-53eb-46dc-be38-ab31b9d09597.png)
and I have no clue why? It looks like it has done some scaling, since both the stroke-dashoffset and circle stroke-width (cmpared too what's behind) is off. But if I use the Firefox developer tools, the size,
stroke-dasharray
, andstroke-dashoffset
of the circle are all what I set them to, so I don't see where the scaling has happened.So basically, I'm completely inn the dark about what this behavior is, and how to fix this.
Any suggestions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions