/
githubmirror
/
obsidian-maps
Обзор
Документация
Войти
/
githubmirror
/
obsidian-maps
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/map/types.ts
32 строки
950 B
Steph Ango
Allow a map center of 0, 0
01 авг 2026, 05:47
01 авг 2026, 05:47
dd4fe68
Код
Авторство
О чём код?
import { BasesEntry, BasesPropertyId } from 'obsidian'; /** Resolved view configuration driving how the map and its markers render. */ export interface MapConfig { coordinatesProp: BasesPropertyId | null; markerIconProp: BasesPropertyId | null; markerColorProp: BasesPropertyId | null; mapHeight: number; defaultZoom: number; /** null when no center is configured, which is distinct from a center of [0, 0]. */ center: [number, number] | null; maxZoom: number; minZoom: number; mapTiles: string[]; mapTilesDark: string[]; currentTileSetId: string | null; } export interface MapMarker { entry: BasesEntry; coordinates: [number, number]; /** Lucide icon name, or null for a plain dot. */ icon: string | null; color: string; /** Key of the composite image combining icon and color. */ imageKey: string; } export interface MapMarkerProperties { entryIndex: number; icon: string; // Composite image key combining icon and color }