UNPKG

@itwin/presentation-components

Version:

React components based on iTwin.js Presentation library

24 lines 889 B
/** @packageDocumentation * @module Core */ import { Node } from "@itwin/presentation-common"; /** @internal */ export interface ColorMap { [name: string]: number; } /** @internal */ export declare class StyleHelper { static get availableColors(): ColorMap; private static getColor; /** Get color number from a named color. @see `colors` map for available names. */ private static getColorFromColorName; /** Get color number from an RGB format: `rgb(r,g,b)` */ private static getColorFromRGB; /** Get color number from HEX format: `#ff3300` */ private static getColorFromHex; static isBold(node: Partial<Node>): boolean; static isItalic(node: Partial<Node>): boolean; static getForeColor(node: Partial<Node>): number | undefined; static getBackColor(node: Partial<Node>): number | undefined; } //# sourceMappingURL=StyleHelper.d.ts.map