Optional
aspectAnything with a wider aspect ratio than the given value is "square", up to the value of "wide".
Anything with a wider aspect ratio than the given value is "tall", up to the value of "square".
This should be left as 0 as it's the catch-all for anything with a narrower aspect ratio than "tall".
Anything with a wider aspect ratio than the given value is "very-wide".
Anything with a wider aspect ratio than the given value is "wide", up to the value of "very-wide".
Optional
deviceUse custom device breakpoints. Only known device names (Device) are supported. If any are missing from the given dictionary, the value from settings.deviceBreakpoints is used.
Anything wider than the given value is "desktop".
This should be left as 0 as it's the catch-all for anything narrower than "mobile-wide".
Anything wider than the given value is "mobile-wide", up to the value of "tablet".
Anything wider than the given value is "tablet", up to the value of "desktop".
Optional
rootThe root element whose layout to watch. If not given or null
, then the
viewport layout is watched.
Use custom aspect ratio breakpoints. Only known aspect ratio names (AspectRatio) are supported. If any are missing from the given dictionary, the value from settings.aspectRatioBreakpoints is used.