UNPKG

markdown-flow-ui

Version:

A React UI library for rendering markdown with interactive flow components, typewriter effects, and plugin support

3 lines (2 loc) 606 B
"use strict";const r=require("./index-CbHAb2u0.js");var u=r.__name((e,t,i,n)=>{e.attr("class",i);const{width:o,height:h,x:c,y:s}=w(e,t);r.configureSvgSize(e,h,o,n);const a=x(c,s,o,h,t);e.attr("viewBox",a),r.log.debug(`viewBox configured: ${a} with padding: ${t}`)},"setupViewPortForSVG"),w=r.__name((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),x=r.__name((e,t,i,n,o)=>`${e-o} ${t-o} ${i} ${n}`,"createViewBox");exports.setupViewPortForSVG=u; //# sourceMappingURL=chunk-NRVI72HA-CS7yAr6Y.js.map