labelStylefunction
A complete look from a partial one: every part left out or not usable takes its default, and every number is held to its range, so a bad setting never breaks a label.
Import it
import { labelStyle } from "@johnmorrisdotca/hoshi-stars/sky-labels";
Definition
function labelStyle(part?: Partial<LabelStyle>): LabelStyle
Parameters
| Name | Type | Description |
|---|---|---|
part (optional) | Partial<LabelStyle> | Any of the parts of the look. |
Returns
LabelStyle
A new, complete look.
Examples
import { labelStyle } from "@johnmorrisdotca/hoshi-stars/sky-labels";
console.log(labelStyle({ size: 400, case: "upper" }).size, labelStyle({ size: 400 }).case);48 small-capsWhat it prints (run when this page was built)