← All releasesReleased on with 0.3.1 and 0.3.3
Element Editor 0.3.2
Added
- Drawing bar placement.
drawingBaron both adapters'<ElementEditorControls />also takes{ container }: the bar then renders in your own element (a slot under a small map), full width and static, instead of over the map (container: nullshows nothing until the element is set). New public CSS variables--elm-drawing-bar-bottomand--elm-drawing-bar-inset-xposition the in-map bar, for example above your own control cluster.
Changed
- The drawing bar is compact on narrow maps. When the map (or slot) is narrower than 420 px the bar shows the hint on one line with an ellipsis, the buttons on one row and, for a finger, 44 px tall, instead of wrapping to three lines and covering the host's controls. The drop-in editor's bar benefits too; wider maps are unchanged.
Fixed
- Element's stylesheets no longer restyle the rest of your page. Since 0.3.1 the published CSS is unlayered, and its Tailwind utilities (
.hidden,.absolute,.relative,.fixed,.sr-only,.inset-0,.z-10, responsive and state variants…) and theme variables were global. Loaded after your own CSS, they overrode your classes of the same name on your own elements: a host'shidden md:flexstayed hidden, panes grew to the wrong width. Every Element rule now matches only inside thedata-elm-themeelement and Element's portals, with the same specificity as before, so the editor looks exactly as in 0.3.1 and your page looks as it does without Element. The theme variables (--color-*,--spacing,--font-*…) are set on the editor root instead of:root, so a Tailwind v4 host's own theme is no longer overridden either. The bundledleaflet.css,maplibre-gl.cssand data-grid styles stay global, as when you import them yourself; Element's keyframes are renamedelm-*. Editor UI you render in a container of your own outside the editor root needs adata-elm-theme(ordata-elm-portal) attribute on it.