Reference · The realistic Earth's pure parts
airForfunction
How much the air costs for a page: what its air attribute says (full or light), else light on a small or slow device (4 cores or fewer, 4 GB of memory or less, or a touch screen with no mouse) and full on the rest.
Import it
import { airFor } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
function airFor(given: string | null): "full" | "light"
Parameters
| Name | Type | Description |
|---|---|---|
given | string | null | The page's |
Returns
"full" | "light"
full or light.
Examples
import { airFor } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(airFor("light"));lightWhat it prints (run when this page was built)