@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
37 lines (36 loc) • 1.19 kB
TypeScript
import { Section, BlockLayoutSettings, SectionSettings, TabbedSectionSettings } from "../../../../models";
import { ITheming } from "../../../theming";
import { ITheme } from "../../..";
/**
* Shared renderers functions
* */
export declare const SharedRendererFunctions: {
block: {
calculateMargin(sectionSettings: SectionSettings): string;
safeGetValue(value: any): number;
calculatePadding(blockSettings: BlockLayoutSettings): string;
};
section: {
/**
* Gets the alignment settings for positioning the layout
* */
getAlignmentSettings(section: Section): string;
/**
* Gets the text color for the tab
* */
getTabTextColor(tabSettings: TabbedSectionSettings, active: boolean, theming: ITheming): string;
/**
* Checks if all columns are empty without any blocks
* */
allColumnsAreEmpty(section: Section): boolean;
};
column: {};
layerIndex: {
blade: number;
contentNavigation: number;
itemselector: number;
actionToolbar: number;
informationIcon: number;
};
editorTheme: () => ITheme;
};