Replies: 4 comments 14 replies
-
Hi You need to share your svgs including xaml. Else I'd need yo redo all those things to actually see the (possible) bug in action. Also, kindly to the example as minimal possible 👍. |
Beta Was this translation helpful? Give feedback.
-
I have created a test plan and can see the issue: on the screenshot you can see the yellow box is shorter than grey box. but in the main SVG and elements SVG they are the same size - 150mm width Main SVG |
Beta Was this translation helpful? Give feedback.
-
This must not be what you are trying to do but two SVG squares on top of each other. Works fine for me.
|
Beta Was this translation helpful? Give feedback.
-
You should look into how to style things with CSS. It sounds like you're
just trying to hide one object, right?
Use a 'open/close' class, and style that selector in CSS, with
display:none/initial/whatever your need is.
Sent from mail, on phone...
tor. 6. okt. 2022 12.59 skrev done7k ***@***.***>:
… I see you are trying to use image set but I don't know why. Just hide the
top image.
But then I do not know how I can hide the bottom element image if the top
one does not overlap the bottom one fully. For example open/close door
below:
[image: floorplan-test3]
<https://user-images.githubusercontent.com/55544417/194296138-0f6a5322-4974-4915-8bf5-c7353e46b8e1.svg>
—
Reply to this email directly, view it on GitHub
<#238 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3CSBKJUVBPWAHDY6RXFV3WB2WKDANCNFSM6AAAAAAQNR7K4E>
.
You are receiving this because you commented.Message ID:
<ExperienceLovelace/ha-floorplan/repo-discussions/238/comments/3813452@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
I use floorplan.image_set action to swap element images basing on HA entity status - show open closed windows/doors. In overall it works fine but I noticed the images are shown a bit shorter (both ON and OFF) than they are. Why does it behave like this?
I use inkscape to draw the plan:
Beta Was this translation helpful? Give feedback.
All reactions