JMRI icon indicating copy to clipboard operation
JMRI copied to clipboard

Web panel ignoring element "level"

Open mstevetodd opened this issue 2 years ago • 9 comments

When adding "shapes" to a panel, the user can specify a "level" for the shape, to control overlapping "shapes". This level is currently ignored by the web panel code. This issue is to correct this. Options:

  1. sort the "shapes" on the server side before adding them to the returned xml. This sorting will allow the client to continue to draw efficiently as each element is processed in the xml.
  2. change the canvas handling to create a canvas for each level, with corresponding z-index.
  3. create individual canvas for each drawn item, with corresponding z-index. Example config attached, NY&HV_RR_Carfloat_Configs panel shows the problem clearly where the gray rectangles should be on top of the yellow rounded rectangle. DR5000.zip

mstevetodd avatar Jan 01 '24 00:01 mstevetodd

This was found and discussed in #12663

mstevetodd avatar Jan 01 '24 00:01 mstevetodd

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Feb 19 '24 01:02 github-actions[bot]

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Apr 08 '24 02:04 github-actions[bot]

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar May 27 '24 02:05 github-actions[bot]