-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
saved.d.ts
60 lines (56 loc) · 1.49 KB
/
saved.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/** Settings Interfaces */
import { ShapeProperties } from "src/draw/shape";
import { BlockParameters, SavedMarkerProperties, SavedOverlayData } from ".";
export type TooltipDisplay = "always" | "hover" | "never";
export interface Icon {
type: string;
iconName?: string;
isImage?: boolean;
imageUrl?: string;
color?: string;
alpha?: number;
layer?: boolean;
transform?: { size: number; x: number; y: number };
tags?: string[];
minZoom?: number;
maxZoom?: number;
}
export interface MapMarkerData {
path?: string;
files: string[];
lastAccessed: number;
id: string;
locked: boolean;
markers: SavedMarkerProperties[];
overlays: SavedOverlayData[];
shapes: ShapeProperties[];
}
export interface ObsidianAppData {
mapMarkers: MapMarkerData[];
markerIcons: Icon[];
defaultMarker: Icon;
color: string;
lat: number;
long: number;
notePreview: boolean;
layerMarkers: boolean;
previousVersion: string;
version: {
major: number;
minor: number;
patch: number;
};
warnedAboutMapMarker: boolean;
copyOnClick: boolean;
displayOverlayTooltips: boolean;
displayMarkerTooltips: TooltipDisplay;
configDirectory: string;
mapViewParameters: BlockParameters;
mapViewEnabled: boolean;
enableDraw: boolean;
defaultUnitType: "metric" | "imperial";
defaultTile: string;
defaultTileSubdomains: string;
defaultTileDark: string;
defaultAttribution: string;
}