5.2.3
2024-06-16
CHANGED
squared.lib.css
/*
switch (attr) {
case "width":
case "minWidth":
case "maxWidth":
case "paddingTop":
case "paddingRight":
case "paddingBottom":
case "paddingLeft":
case "scrollPaddingTop":
case "scrollPaddingRight":
case "scrollPaddingBottom":
case "scrollPaddingLeft":
case "left":
case "right":
case "marginTop":
case "marginBottom":
case "marginRight":
case "marginLeft":
case "scrollMarginTop":
case "scrollMarginBottom":
case "scrollMarginRight":
case "scrollMarginLeft":
case "height":
case "minHeight"
case "maxHeight":
case "top":
case "bottom":
case "verticalAlign":
return "px" | "%";
}
*/
function calculateStyle(element: HTMLElement | SVGElement, attr: string, value: string, boundingBox?: Dimension | null, percent?: boolean): string; // percent
function checkStyleValue(element: HTMLElement | SVGElement, attr: string, value: string, percent?: boolean): string; // percent
squared.svg.lib.util
function calculateStyle(element: HTMLElement | SVGElement, attr: string, value: string, percent?: boolean): string; // percent