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 theme
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 ResponsiveBaseTheme.
ResponsiveTheme is not extended by any other symbol.
Properties
36 inherited items
heightLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostL(600 pixels).heightMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostM(400 pixels).heightSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostS(300 pixels).heightXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXL(800 pixels).heightXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXS(200 pixels).heightXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXXL(1000 pixels).heightXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXXS(100 pixels).isLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostL(600 pixels).isMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostM(400 pixels).isSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostS(300 pixels).isXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXL(800 pixels).isXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXS(200 pixels).isXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXXL(1000 pixels).isXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXXS(100 pixels).LStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 600 pixels.
MStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 400 pixels.
maybeLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostL(600 pixels).maybeMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostM(400 pixels).maybeSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostS(300 pixels).maybeXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXL(800 pixels).maybeXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXS(200 pixels).maybeXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXXL(1000 pixels).maybeXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXXS(100 pixels).responsiveRulesType
IResponsiveRule[]Default[]Inherited fromResponsiveBaseThemeRules added to the theme.
SStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 300 pixels.
widthLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostL(600 pixels).widthMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostM(400 pixels).widthSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostS(300 pixels).widthXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXL(800 pixels).widthXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXS(200 pixels).widthXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXXL(1000 pixels).widthXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXXS(100 pixels).XLStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 800 pixels.
XSStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 200 pixels.
XXLStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 1000 pixels.
XXSStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 100 pixels.
Methods
constructor(root:Root,
isReal:boolean)Returns
ResponsiveTheme
7 inherited items
addRule(rule:IResponsiveRule)Returns
IResponsiveRuleInherited fromResponsiveBaseThemeAdds a responsive rule and returns it. It applies at once if it is relevant.
More info: Responsive theme
dispose()Returns
voidInherited fromResponsiveBaseThemenew(root:Root)StaticReturns
InstanceTypeInherited fromThemeUse this method to create an instance of this class.
More info: Getting started: new element syntax
newEmpty(root:Root)StaticReturns
InstanceTypeInherited fromResponsiveBaseThemeCreates the theme without its built-in rules, for rules of your own.
removeRule(rule:IResponsiveRule)Returns
voidInherited fromResponsiveBaseThemeRemoves a responsive rule from the theme.
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.