FigureLinesSettings型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the lines are.
インポート
import type { FigureLinesSettings } from "@johnmorrisdotca/hoshi-stars/sky-labels";
定義
interface FigureLinesSettings {
strength?: number;
reach?: number;
dotRadius?: number;
maxLength?: number;
lang?: NameLanguage;
culture?: Culture | undefined;
style?: Partial<LabelStyle>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
strength (省略可) | number | undefined | How strong the lines are when not under the pointer, 0 to 1. 0 draws nothing at all, and |
reach (省略可) | number | undefined | How near a line the pointer must be to pick its figure, in pixels. 14 by default; a finger may want more. |
dotRadius (省略可) | number | undefined | The radius in pixels of a star's dot, which a figure's name must not cover: 3 by default. |
maxLength (省略可) | number | undefined | A line longer than this many pixels is left out: a page that draws the whole sky flat uses it to drop the lines that cross the seam. Left out, no line is dropped for its length. |
lang (省略可) | NameLanguage | undefined | The language of the figure's name when it is picked: |
culture (省略可) | Culture | undefined | The sky culture whose figures are drawn ( |
style (省略可) | Partial<LabelStyle> | undefined | The look of the picked figure's name ( |
例
import type { FigureLinesSettings } from "@johnmorrisdotca/hoshi-stars/sky-labels";
const settings: FigureLinesSettings = { strength: 0.2, lang: "ja", reach: 16 };
console.log(settings.strength);0.2出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。