ResponsiveBaseTheme
Type class
What the responsive themes share: the breakpoints, the functions that test them, and the rules that apply while the chart's size meets a condition.
More info: Responsive theme
Sources
This information about ResponsiveBaseTheme is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
ResponsiveBaseTheme extends Theme.
ResponsiveBaseTheme is extended by ResponsiveMaxTheme, ResponsiveTheme.
Properties
heightLStaticType (width:
number, height:number) =>booleantruewhen the height is at mostL(600 pixels).heightMStaticType (width:
number, height:number) =>booleantruewhen the height is at mostM(400 pixels).heightSStaticType (width:
number, height:number) =>booleantruewhen the height is at mostS(300 pixels).heightXLStaticType (width:
number, height:number) =>booleantruewhen the height is at mostXL(800 pixels).heightXSStaticType (width:
number, height:number) =>booleantruewhen the height is at mostXS(200 pixels).heightXXLStaticType (width:
number, height:number) =>booleantruewhen the height is at mostXXL(1000 pixels).heightXXSStaticType (width:
number, height:number) =>booleantruewhen the height is at mostXXS(100 pixels).isLStaticType (width:
number, height:number) =>booleantruewhen both the width and the height are at mostL(600 pixels).isMStaticType (width:
number, height:number) =>booleantruewhen both the width and the height are at mostM(400 pixels).isSStaticType (width:
number, height:number) =>booleantruewhen both the width and the height are at mostS(300 pixels).isXLStaticType (width:
number, height:number) =>booleantruewhen both the width and the height are at mostXL(800 pixels).isXSStaticType (width:
number, height:number) =>booleantruewhen both the width and the height are at mostXS(200 pixels).isXXLStaticType (width:
number, height:number) =>booleantruewhen both the width and the height are at mostXXL(1000 pixels).isXXSStaticType (width:
number, height:number) =>booleantruewhen both the width and the height are at mostXXS(100 pixels).LStaticType
numberBreakpoint of 600 pixels.
MStaticType
numberBreakpoint of 400 pixels.
maybeLStaticType (width:
number, height:number) =>booleantruewhen the width or the height is at mostL(600 pixels).maybeMStaticType (width:
number, height:number) =>booleantruewhen the width or the height is at mostM(400 pixels).maybeSStaticType (width:
number, height:number) =>booleantruewhen the width or the height is at mostS(300 pixels).maybeXLStaticType (width:
number, height:number) =>booleantruewhen the width or the height is at mostXL(800 pixels).maybeXSStaticType (width:
number, height:number) =>booleantruewhen the width or the height is at mostXS(200 pixels).maybeXXLStaticType (width:
number, height:number) =>booleantruewhen the width or the height is at mostXXL(1000 pixels).maybeXXSStaticType (width:
number, height:number) =>booleantruewhen the width or the height is at mostXXS(100 pixels).responsiveRulesType
IResponsiveRule[]Default[]Rules added to the theme.
SStaticType
numberBreakpoint of 300 pixels.
widthLStaticType (width:
number, height:number) =>booleantruewhen the width is at mostL(600 pixels).widthMStaticType (width:
number, height:number) =>booleantruewhen the width is at mostM(400 pixels).widthSStaticType (width:
number, height:number) =>booleantruewhen the width is at mostS(300 pixels).widthXLStaticType (width:
number, height:number) =>booleantruewhen the width is at mostXL(800 pixels).widthXSStaticType (width:
number, height:number) =>booleantruewhen the width is at mostXS(200 pixels).widthXXLStaticType (width:
number, height:number) =>booleantruewhen the width is at mostXXL(1000 pixels).widthXXSStaticType (width:
number, height:number) =>booleantruewhen the width is at mostXXS(100 pixels).XLStaticType
numberBreakpoint of 800 pixels.
XSStaticType
numberBreakpoint of 200 pixels.
XXLStaticType
numberBreakpoint of 1000 pixels.
XXSStaticType
numberBreakpoint 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 theme
constructor(root:Root,
isReal:boolean)Returns
ResponsiveBaseThemedispose()Returns
voidnewEmpty(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.
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
ResponsiveBaseTheme does not have any events.