5.3.0

2024-08-06

BREAKING

squared.base
class Node {
    toFloat(attr: CssStyleAttr, fallback?: number, options?: CssInitialOptions): number; // Uses Node.valueOf without options
    toInt(attr: CssStyleAttr, fallback?: number, options?: CssInitialOptions): number;
}

class NodeUI {
    get textIndent(): number; // Detection for "each-line" and "hanging"
}

ADDED

squared.base
interface ControllerSettingsStyleUI {
    inputFontSize?: string;
    buttonFontSize?: string;
    textareaFontSize?: string;
    selectFontSize?: string;
    h1FontSize?: string;
    h2FontSize?: string;
    h3FontSize?: string;
    h4FontSize?: string;
    h5FontSize?: string;
    h6FontSize?: string;
    rtFontSize?: string;
}

interface ExcludeOptions {
    optimization?: number;
}

interface HasOptions {
    inherit?: boolean;
}

class NodeUI {
    hasOptimization(value: number): boolean;
    get afterLineBreak(): boolean;
    get wordSpacing(): number;
}
squared.base.lib
/* constant */

enum STAGE_OPTIMIZATION {
    EXCLUDE = 1,
    INHERIT = 2,
    ALIGNMENT = 4,
    POSITION = 8,
    DIMENSION = 16,
    MARGIN = 32,
    PADDING = 64,
    BASELINE = 128,
    WHITESPACE = 256,
    TRANSLATE = 512,
    TRANSFORM = 1024
}

/* dom */

function causesLineBreak(element: Element): boolean;
chrome.base
interface FileActionAttribute {
    saveAs?: {
        video?: SaveAsOptions;
        audio?: SaveAsOptions;
        raw?: SaveAsOptions;
    };
}

MODIFIED

squared
function toString(projectId?: string): string; // projectId
squared.base
interface HasOptions {
    type?: number; // CSS_UNIT.DECIMAL | CSS_UNIT.INTEGER
}

DEPRECATED

squared.base
interface ControllerSettingsStyleUI {
    formFontSize: string;
}

class ApplicationUI {
    get layouts(): FileAsset[]; // ApplicationUI.getProject().layouts
}