export const SVG_WRAPPER_CLASS = 'svg-block-wrapper'; export const SVG_SCROLL_CONTAINER_CLASS = 'svg-scroll-container'; export const SVG_BLOCK_CLASS = 'svg-block'; export const SVG_LANGUAGE = 'svg'; export const XML_LANGUAGE = 'xml'; export const SVG_TAG_PREFIX = ' stays scoped to that root and can not reach the page. */ export const SVG_SANITIZE_CONFIG = { USE_PROFILES: { svg: true, svgFilters: true }, FORBID_TAGS: ['foreignObject', 'script'] }; /** * Shadow root style for an inline svg block. Mirrors the centered, padded * sizing the light dom used before the svg moved behind a shadow boundary. */ export const SVG_INLINE_SHADOW_STYLE = ':host{display:block;width:100%;text-align:center}svg{display:block;margin:0 auto;width:auto;height:auto;max-width:100%;max-height:70vh;min-height:8rem;padding:3rem 1rem}'; /** * Shadow root style for the zoom dialog svg. Lets the svg grow past its * intrinsic size so pan and zoom have room to work. */ export const SVG_DIALOG_SHADOW_STYLE = ':host{display:inline-block}svg{min-height:min(50vh,12rem);min-width:min(80vw,20rem);max-width:none;max-height:none;height:auto;width:auto;display:block}';