UNPKG

@odoo/o-spreadsheet

Version:
32 lines (31 loc) 1.13 kB
/** * This file is largely inspired by owl 1. * `css` tag has been removed from owl 2 without workaround to manage css. * So, the solution was to import the behavior of owl 1 directly in our * codebase, with one difference: the css is added to the sheet as soon as the * css tag is executed. In owl 1, the css was added as soon as a Component was * created for the first time. */ import { CSSProperties, Style } from "../../types/misc"; export declare function getTextDecoration({ strikethrough, underline, }: { strikethrough?: boolean; underline?: boolean; }): string; /** * Convert the cell style to CSS properties. */ export declare function cellStyleToCss(style: Style | undefined): CSSProperties; /** * Convert the cell text style to CSS properties. */ export declare function cellTextStyleToCss(style: Style | undefined): CSSProperties; /** * Transform CSS properties into a CSS string. */ export declare function cssPropertiesToCss(attributes: CSSProperties): string; export declare function getElementMargins(el: Element): { top: number; bottom: number; left: number; right: number; };