IResponsiveRule

Type interface

A responsive rule: settings for matching elements that apply while the chart's size meets a condition.

Click here for more info

Inheritance

IResponsiveRule does not extend any other symbol.

IResponsiveRule is not extended by any other symbol.

Properties

applied
#

Type undefined | false | true

Whether the rule currently applies.

@readonly

applying
#

Type undefined | () => void

Called when the rule starts to apply.

name
#

Type undefined | string

Class name of the elements the rule applies to, such as "AxisLabel".

relevant
#

Type ( width: number, height: number) => boolean

Returns true while the rule should apply. Gets the root's width and height in pixels; the breakpoint functions of ResponsiveTheme, such as ResponsiveTheme.widthM, fit here.

removing
#

Type undefined | () => void

Called when the rule stops applying.

settings
#

Type any

Settings for the elements while the rule applies. Needs name.

tags
#

Type string | string[]

Theme tags the elements must also have.

template
#

Type Template

The theme rule's Template that settings are set on.

@readonly