IResponsiveRule
Type interface
A responsive rule: settings for matching elements that apply while the chart's size meets a condition.
More info: Responsive
Sources
IResponsiveRule is an interface: it describes a shape of data and is not imported on its own.
Properties
appliedType
undefined|false|trueWhether the rule currently applies.
applyingType
undefined| () =>voidCalled when the rule starts to apply.
nameType
undefined|stringClass name of the elements the rule applies to, such as
"AxisLabel".relevantType (width:
number, height:number) =>booleanReturns
truewhile the rule should apply. Gets the root's width and height in pixels; the breakpoint functions ofResponsiveTheme, such asResponsiveTheme.widthM, fit here.removingType
undefined| () =>voidCalled when the rule stops applying.
settingsType
anySettings for the elements while the rule applies. Needs
name.Type
string|string[]Theme tags the elements must also have.
templateType
TemplateThe theme rule's
Templatethatsettingsare set on.