landSharesfunction
How much of the Earth is land, by the package's outlines, in percent, and the share of all the land each continent has.
Import it
import { landShares } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
function landShares(): { landPercent: number; continents: Record<ContinentId, number>; }
Returns
{ landPercent: number; continents: Record<ContinentId, number>; }
The land's percent of the whole sphere, and each continent's percent of the land.
Examples
import { landShares } from "@johnmorrisdotca/chikyu-earth/sheets";
const shares = landShares();
console.log(Math.round(shares.landPercent), shares.continents.asia > shares.continents.africa);29 trueWhat it prints (run when this page was built)