Skip to main content

getTypeObjectStyles

@fovea/annotation-tool


@fovea/annotation-tool / utils/typeObjectStyles / getTypeObjectStyles

Function: getTypeObjectStyles()

getTypeObjectStyles(isType): object

Defined in: src/utils/typeObjectStyles.ts:11

Helper function to get consistent styling for types vs objects

Parameters

isType

boolean

Whether the item is a type (true) or object (false)

Returns

object

Object containing style properties for types vs objects

bgcolor

bgcolor: string

borderColor

borderColor: string

borderStyle

borderStyle: "dashed" | "solid"

fontStyle

fontStyle: string

icon

icon: object

icon.color

color: string

icon.component

component: OverridableComponent<SvgIconTypeMap<{ }, "svg">> & object

text

text: object

text.primary

primary: string

text.secondary

secondary: string