ResponsiveTheme
Type class
A theme that changes chart settings as the chart's size changes, so charts fit small spaces. new() comes with built-in rules for the common chart types; newEmpty() starts with none, for rules of your own.
More info: Responsive
Sources
This information about ResponsiveTheme is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
ResponsiveTheme extends Theme.
ResponsiveTheme is not extended by any other symbol.
Properties
LStaticType
numberDefault600Breakpoint of 600 pixels.
MStaticType
numberDefault400Breakpoint of 400 pixels.
responsiveRulesType
IResponsiveRule[]Default[]Rules added to the theme.
SStaticType
numberDefault300Breakpoint of 300 pixels.
XLStaticType
numberDefault800Breakpoint of 800 pixels.
XSStaticType
numberDefault200Breakpoint of 200 pixels.
XXLStaticType
numberDefault1000Breakpoint of 1000 pixels.
XXSStaticType
numberDefault100Breakpoint of 100 pixels.
Methods
addRule(rule:IResponsiveRule)Returns
IResponsiveRuleAdds a responsive rule and returns it. It applies at once if it is relevant.
More info: Responsive
constructor(root:Root,
isReal:boolean)Returns
ResponsiveThemedispose()Returns
voidheightL(_width:number,
height:number)StaticReturns
booleantruewhen the height is at mostL(600 pixels).heightM(_width:number,
height:number)StaticReturns
booleantruewhen the height is at mostM(400 pixels).heightS(_width:number,
height:number)StaticReturns
booleantruewhen the height is at mostS(300 pixels).heightXL(_width:number,
height:number)StaticReturns
booleantruewhen the height is at mostXL(800 pixels).heightXS(_width:number,
height:number)StaticReturns
booleantruewhen the height is at mostXS(200 pixels).heightXXL(_width:number,
height:number)StaticReturns
booleantruewhen the height is at mostXXL(1000 pixels).heightXXS(_width:number,
height:number)StaticReturns
booleantruewhen the height is at mostXXS(100 pixels).isL(width:number,
height:number)StaticReturns
booleantruewhen both the width and the height are at mostL(600 pixels).isM(width:number,
height:number)StaticReturns
booleantruewhen both the width and the height are at mostM(400 pixels).isS(width:number,
height:number)StaticReturns
booleantruewhen both the width and the height are at mostS(300 pixels).isXL(width:number,
height:number)StaticReturns
booleantruewhen both the width and the height are at mostXL(800 pixels).isXS(width:number,
height:number)StaticReturns
booleantruewhen both the width and the height are at mostXS(200 pixels).isXXL(width:number,
height:number)StaticReturns
booleantruewhen both the width and the height are at mostXXL(1000 pixels).isXXS(width:number,
height:number)StaticReturns
booleantruewhen both the width and the height are at mostXXS(100 pixels).maybeL(width:number,
height:number)StaticReturns
booleantruewhen the width or the height is at mostL(600 pixels).maybeM(width:number,
height:number)StaticReturns
booleantruewhen the width or the height is at mostM(400 pixels).maybeS(width:number,
height:number)StaticReturns
booleantruewhen the width or the height is at mostS(300 pixels).maybeXL(width:number,
height:number)StaticReturns
booleantruewhen the width or the height is at mostXL(800 pixels).maybeXS(width:number,
height:number)StaticReturns
booleantruewhen the width or the height is at mostXS(200 pixels).maybeXXL(width:number,
height:number)StaticReturns
booleantruewhen the width or the height is at mostXXL(1000 pixels).maybeXXS(width:number,
height:number)StaticReturns
booleantruewhen the width or the height is at mostXXS(100 pixels).newEmpty(root:Root)StaticReturns
InstanceTypeCreates the theme without its built-in rules, for rules of your own.
removeRule(rule:IResponsiveRule)Returns
voidRemoves a responsive rule from the theme.
widthL(width:number,
_height:number)StaticReturns
booleantruewhen the width is at mostL(600 pixels).widthM(width:number,
_height:number)StaticReturns
booleantruewhen the width is at mostM(400 pixels).widthS(width:number,
_height:number)StaticReturns
booleantruewhen the width is at mostS(300 pixels).widthXL(width:number,
_height:number)StaticReturns
booleantruewhen the width is at mostXL(800 pixels).widthXS(width:number,
_height:number)StaticReturns
booleantruewhen the width is at mostXS(200 pixels).widthXXL(width:number,
_height:number)StaticReturns
booleantruewhen the width is at mostXXL(1000 pixels).widthXXS(width:number,
_height:number)StaticReturns
booleantruewhen the width is at mostXXS(100 pixels).
3 inherited items
new(root:Root)StaticReturns
InstanceTypeInherited fromThemeUse this method to create an instance of this class.
More info: Getting started: new element syntax
rule(themeClass:K,
themeTags:Array)Returns
TemplateInherited fromThemeReturns the rule for a class and theme tags, as a
Template. Settings set on it go to every element of that class (or a class extending it) that has all of these tags. The same class and tags return the same rule.More info: Themes
ruleRaw(themeClass:string,
themeTags:Array)Returns
TemplateInherited fromThemeSame as
rule(), but takes any class name, without type checks.More info: Themes
Events
ResponsiveTheme does not have any events.