테마 유형
테마 식별자, 외형 패치 및 카탈로그 유형.
import type { ChartTheme } from "@sixtyfold/themes";위에 표시된 공개 진입점을 사용하세요. 타입 전용 가져오기는 애플리케이션 JavaScript에서 제거됩니다.
ChartThemeId
공개 차트 외형 프리셋 하나에 대한 안정된 식별자.
type ChartThemeId = (typeof PUBLIC_THEME_IDS)[number]ChartThemePreset
내용에 중립적이고 깊이 불변하는 선 및 종목 외형 프리셋입니다.
type ChartThemePreset = DeepReadonly<{
/** Stable catalog identifier. */
id: ChartThemeId;
/** Human-readable English display name. */
label: string;
/** Recommended surrounding-page color scheme. */
colorScheme: "dark" | "light";
/** Line-chart appearance and repeating per-series visual patches. */
line: {
/** Content-neutral patch for `LineChart.updateAppearance`. */
appearance: DeepPartial<LineAppearanceOptions>;
/** Repeating visual patches for `LineChart.updateSeriesAppearance`. */
series: DeepPartial<SeriesAppearanceOptions>[];
};
/** Stock-chart appearance patch. */
stock: {
/** Content-neutral patch for `StockChart.updateAppearance`. */
appearance: DeepPartial<StockAppearanceOptions>;
};
}>LineThemePreset
재귀적으로 동결된 공개 테마 프리셋의 선 전용 뷰.
type LineThemePreset = DeepReadonly<{
id: ChartThemeId;
label: string;
colorScheme: "dark" | "light";
line: {
appearance: DeepPartial<LineAppearanceOptions>;
series: DeepPartial<SeriesAppearanceOptions>[];
};
}>StockThemePreset
재고 전용 뷰로, 하나의 재귀적으로 동결된 공개 테마 프리셋입니다.
type StockThemePreset = DeepReadonly<{
id: ChartThemeId;
label: string;
colorScheme: "dark" | "light";
stock: {
appearance: DeepPartial<StockAppearanceOptions>;
};
}>