@maptiler/client 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/maptiler-client.cjs +482 -309
  2. package/dist/maptiler-client.cjs.map +1 -1
  3. package/dist/maptiler-client.d.ts +177 -13
  4. package/dist/maptiler-client.min.mjs +1 -1
  5. package/dist/maptiler-client.mjs +471 -309
  6. package/dist/maptiler-client.mjs.map +1 -1
  7. package/dist/maptiler-client.umd.js +483 -310
  8. package/dist/maptiler-client.umd.js.map +1 -1
  9. package/dist/maptiler-client.umd.min.js +1 -1
  10. package/examples/test-node.js +9 -9
  11. package/package.json +25 -18
  12. package/readme.md +1 -1
  13. package/rollup.config.js +3 -3
  14. package/src/callFetch.ts +2 -2
  15. package/src/config.ts +4 -1
  16. package/src/demProfiler/getElevation.ts +46 -0
  17. package/src/demProfiler/index.ts +240 -0
  18. package/src/demProfiler/tileCover.ts +96 -0
  19. package/src/geometry/area.ts +96 -0
  20. package/src/geometry/distance.ts +45 -0
  21. package/src/geometry/index.ts +3 -0
  22. package/src/geometry/util.ts +34 -0
  23. package/src/index.ts +3 -0
  24. package/src/language.ts +1 -1
  25. package/src/mapstyle.ts +5 -5
  26. package/src/services/ServiceError.ts +5 -2
  27. package/src/services/coordinates.ts +14 -9
  28. package/src/services/data.ts +3 -3
  29. package/src/services/geocoding.ts +113 -32
  30. package/src/services/geolocation.ts +2 -2
  31. package/src/services/simplify.ts +3 -3
  32. package/src/services/staticMaps.ts +9 -9
  33. package/tsconfig.json +1 -1
  34. package/docs/.nojekyll +0 -1
  35. package/docs/assets/custom.css +0 -118
  36. package/docs/assets/highlight.css +0 -85
  37. package/docs/assets/main.js +0 -58
  38. package/docs/assets/search.js +0 -1
  39. package/docs/assets/style.css +0 -1280
  40. package/docs/classes/config.ClientConfig.html +0 -132
  41. package/docs/classes/services_ServiceError.ServiceError.html +0 -103
  42. package/docs/functions/language.getAutoLanguageGeocoding.html +0 -60
  43. package/docs/functions/services_simplify.default.html +0 -65
  44. package/docs/images/JS-logo.svg +0 -4
  45. package/docs/images/TS-logo.svg +0 -6
  46. package/docs/images/maptiler-client-logo.afdesign +0 -0
  47. package/docs/images/maptiler-client-logo.svg +0 -75
  48. package/docs/images/maptiler-logo-256.png +0 -0
  49. package/docs/images/maptiler-logo.svg +0 -23
  50. package/docs/images/screenshots/static-bounded-europe-1024.png +0 -0
  51. package/docs/images/screenshots/static-bounded-europe-2048.png +0 -0
  52. package/docs/images/screenshots/static-bounded-portugal-1024x2048.png +0 -0
  53. package/docs/images/screenshots/static-bounded-portugal-2048x2048.png +0 -0
  54. package/docs/images/screenshots/static-with-path.png +0 -0
  55. package/docs/index.html +0 -340
  56. package/docs/modules/config.html +0 -71
  57. package/docs/modules/language.html +0 -71
  58. package/docs/modules/services_ServiceError.html +0 -61
  59. package/docs/modules/services_coordinates.html +0 -84
  60. package/docs/modules/services_data.html +0 -66
  61. package/docs/modules/services_geocoding.html +0 -82
  62. package/docs/modules/services_geolocation.html +0 -68
  63. package/docs/modules/services_simplify.html +0 -61
  64. package/docs/modules/services_staticMaps.html +0 -74
  65. package/docs/modules.html +0 -59
  66. package/docs/types/config.FetchFunction.html +0 -71
  67. package/docs/types/language.LanguageGeocodingString.html +0 -58
  68. package/docs/types/services_coordinates.CoordinateExport.html +0 -71
  69. package/docs/types/services_coordinates.CoordinateGrid.html +0 -69
  70. package/docs/types/services_coordinates.CoordinateId.html +0 -71
  71. package/docs/types/services_coordinates.CoordinateSearch.html +0 -93
  72. package/docs/types/services_coordinates.CoordinateSearchResult.html +0 -75
  73. package/docs/types/services_coordinates.CoordinateTransformResult.html +0 -76
  74. package/docs/types/services_coordinates.CoordinateTransformation.html +0 -89
  75. package/docs/types/services_coordinates.CoordinatesSearchOptions.html +0 -83
  76. package/docs/types/services_coordinates.CoordinatesTransformOptions.html +0 -85
  77. package/docs/types/services_coordinates.XYZ.html +0 -73
  78. package/docs/types/services_data.GetDataOptions.html +0 -64
  79. package/docs/types/services_geocoding.ByIdGeocodingOptions.html +0 -63
  80. package/docs/types/services_geocoding.CommonForwardAndReverseGeocodingOptions.html +0 -63
  81. package/docs/types/services_geocoding.Coordinates.html +0 -63
  82. package/docs/types/services_geocoding.FeatureHierarchy.html +0 -74
  83. package/docs/types/services_geocoding.GeocodingFeature.html +0 -63
  84. package/docs/types/services_geocoding.GeocodingOptions.html +0 -63
  85. package/docs/types/services_geocoding.GeocodingSearchResult.html +0 -80
  86. package/docs/types/services_geocoding.LanguageGeocodingOptions.html +0 -70
  87. package/docs/types/services_geocoding.ReverseGeocodingOptions.html +0 -63
  88. package/docs/types/services_geolocation.GeolocationInfoOptions.html +0 -65
  89. package/docs/types/services_geolocation.GeolocationResult.html +0 -128
  90. package/docs/types/services_staticMaps.AutomaticStaticMapOptions.html +0 -61
  91. package/docs/types/services_staticMaps.BoundedStaticMapOptions.html +0 -61
  92. package/docs/types/services_staticMaps.CenteredStaticMapOptions.html +0 -61
  93. package/docs/types/services_staticMaps.StaticMapBaseOptions.html +0 -157
  94. package/docs/types/services_staticMaps.StaticMapMarker.html +0 -61
  95. package/docs/variables/config.config.html +0 -58
  96. package/docs/variables/language.LanguageGeocoding.html +0 -171
  97. package/docs/variables/services_coordinates.coordinates.html +0 -110
  98. package/docs/variables/services_data.data.html +0 -80
  99. package/docs/variables/services_geocoding.geocoding.html +0 -265
  100. package/docs/variables/services_geolocation.geolocation.html +0 -79
  101. package/docs/variables/services_staticMaps.staticMaps.html +0 -128
  102. package/docsmd/.nojekyll +0 -1
  103. package/docsmd/README.md +0 -880
  104. package/docsmd/assets/custom.css +0 -118
  105. package/docsmd/classes/ClientConfig.md +0 -90
  106. package/docsmd/classes/MapStyleVariant.md +0 -234
  107. package/docsmd/classes/ReferenceMapStyle.md +0 -169
  108. package/docsmd/classes/ServiceError.md +0 -52
  109. package/images/JS-logo.svg +0 -4
  110. package/images/TS-logo.svg +0 -6
  111. package/images/maptiler-client-logo.afdesign +0 -0
  112. package/images/maptiler-client-logo.svg +0 -75
  113. package/images/maptiler-logo-256.png +0 -0
  114. package/images/maptiler-logo.svg +0 -23
  115. package/images/screenshots/static-bounded-europe-1024.png +0 -0
  116. package/images/screenshots/static-bounded-europe-2048.png +0 -0
  117. package/images/screenshots/static-bounded-portugal-1024x2048.png +0 -0
  118. package/images/screenshots/static-bounded-portugal-2048x2048.png +0 -0
  119. package/images/screenshots/static-with-path.png +0 -0
@@ -1,4 +1,4 @@
1
- import { BBox, Feature, Position } from "geojson";
1
+ import { BBox, Feature, Geometry, Position } from "geojson";
2
2
  import { callFetch } from "../callFetch";
3
3
  import { config } from "../config";
4
4
  import { defaults } from "../defaults";
@@ -51,6 +51,7 @@ export type CommonForwardAndReverseGeocodingOptions =
51
51
  | "place"
52
52
  | "postal_code"
53
53
  | "address"
54
+ | "poi"
54
55
  )[];
55
56
  };
56
57
 
@@ -84,37 +85,55 @@ export type GeocodingOptions = CommonForwardAndReverseGeocodingOptions & {
84
85
 
85
86
  export type ReverseGeocodingOptions = CommonForwardAndReverseGeocodingOptions;
86
87
 
87
- export type ByIdGeocodingOptions = LanguageGeocodingOptions;
88
+ export type ByIdGeocodingOptions = LanguageGeocodingOptions & {
89
+ apiKey?: string;
90
+ };
88
91
 
89
92
  export type Coordinates = Position;
90
93
 
91
- export type FeatureHierarchy = {
94
+ type FeatureProperties = {
92
95
  /**
93
- * Unique feature ID
96
+ * External reference of the feature used for debugging purposes
94
97
  */
95
- id: string;
98
+ ref: string;
96
99
 
97
100
  /**
98
- * Localized feature name
101
+ * ISO 3166-1 alpha-2 country code of the feature
99
102
  */
100
- text: string;
101
- };
103
+ country_code: string;
104
+
105
+ /**
106
+ * (experimental) Kind of the feature
107
+ */
108
+ kind?:
109
+ | "road"
110
+ | "road_relation"
111
+ | "admin_area"
112
+ | "place"
113
+ | "street"
114
+ | "virtual_street";
115
+
116
+ /**
117
+ * (experimental) Value of place=* tag from OpenStreetMap feature if kind=place
118
+ */
119
+ "osm:place_type"?: string;
102
120
 
103
- export type GeocodingFeature = Feature & {
104
121
  /**
105
- * Bounding box of the original feature as [w, s, e, n] array
122
+ * (experimental) Feature tags from OpenStreetMap. Only available for `poi` type.
106
123
  */
107
- bbox: BBox;
124
+ "osm:tags"?: Record<string, string>;
108
125
 
109
126
  /**
110
- * A [lon, lat] array of the original feature centeroid
127
+ * Array of POI categories. Only available for `poi` type.
111
128
  */
112
- center: Coordinates;
129
+ categories?: string[];
130
+ };
113
131
 
132
+ type FeatureBase = {
114
133
  /**
115
- * Formatted (including the hierarchy) and localized feature full name
134
+ * Unique feature ID
116
135
  */
117
- place_name: string;
136
+ id: string;
118
137
 
119
138
  /**
120
139
  * Localized feature name
@@ -122,16 +141,77 @@ export type GeocodingFeature = Feature & {
122
141
  text: string;
123
142
 
124
143
  /**
125
- * Feature hierarchy
144
+ * Query's primary ISO 639-1 language code
145
+ */
146
+ language?: string;
147
+
148
+ /**
149
+ * A string analogous to the `text` field that matches the query in the requested language.
150
+ * This field is only returned when multiple languages are requested using the `language` parameter, and will be present for each requested language.
126
151
  */
127
- context?: Array<FeatureHierarchy>;
152
+ [text: `text_${string}`]: string;
128
153
 
129
154
  /**
130
- * Address number, if applicable
155
+ * A ISO 639-1 query's fallback language code.
156
+ * This field is only returned when multiple languages are requested using the `language` parameter, and will be present for each requested language.
131
157
  */
132
- address?: string;
158
+ [language: `language_${string}`]: string;
133
159
  };
134
160
 
161
+ export type FeatureHierarchy = FeatureProperties & FeatureBase;
162
+
163
+ export type GeocodingFeature = Feature<Geometry, FeatureProperties> &
164
+ FeatureBase & {
165
+ /**
166
+ * Bounding box of the original feature as [w, s, e, n] array
167
+ */
168
+ bbox: BBox;
169
+
170
+ /**
171
+ * A [lon, lat] array of the original feature centeroid
172
+ */
173
+ center: Coordinates;
174
+
175
+ /**
176
+ * Formatted (including the hierarchy) and localized feature full name
177
+ */
178
+ place_name: string;
179
+
180
+ /**
181
+ * A string analogous to the `place_name` field that matches the query in the requested language.
182
+ * This field is only returned when multiple languages are requested using the `language` parameter, and will be present for each requested language.
183
+ */
184
+ [key: `place_name_${string}`]: string;
185
+
186
+ /**
187
+ * An array of feature types describing the feature.
188
+ * Currently each feature has only single type but this may change in the future.
189
+ */
190
+ place_type: string[];
191
+
192
+ /**
193
+ * Localized type of the place name, matches `place_type` property
194
+ */
195
+ place_type_name: string[];
196
+
197
+ /**
198
+ * Feature hierarchy
199
+ */
200
+ context?: Array<FeatureHierarchy>;
201
+
202
+ /**
203
+ * Address number, if applicable
204
+ */
205
+ address?: string;
206
+
207
+ /**
208
+ * Indicates how well the returned feature matches the user's query on a scale from 0 to 1.
209
+ * 0 means the result does not match the query text at all, while 1 means the result fully matches the query text.
210
+ * You can use the relevance property to remove results that don't fully match the query.
211
+ */
212
+ relevance: number;
213
+ };
214
+
135
215
  export type GeocodingSearchResult = {
136
216
  type: "FeatureCollection";
137
217
 
@@ -153,7 +233,7 @@ export type GeocodingSearchResult = {
153
233
 
154
234
  function addLanguageGeocodingOptions(
155
235
  searchParams: URLSearchParams,
156
- options: LanguageGeocodingOptions
236
+ options: LanguageGeocodingOptions,
157
237
  ) {
158
238
  if (options.language == undefined) {
159
239
  return;
@@ -165,9 +245,9 @@ function addLanguageGeocodingOptions(
165
245
  ? options.language
166
246
  : [options.language]
167
247
  ).map((lang) =>
168
- lang === LanguageGeocoding.AUTO ? getAutoLanguageGeocoding() : lang
169
- )
170
- )
248
+ lang === LanguageGeocoding.AUTO ? getAutoLanguageGeocoding() : lang,
249
+ ),
250
+ ),
171
251
  ).join(",");
172
252
 
173
253
  searchParams.set("language", languages);
@@ -175,7 +255,7 @@ function addLanguageGeocodingOptions(
175
255
 
176
256
  function addCommonForwardAndReverseGeocodingOptions(
177
257
  searchParams: URLSearchParams,
178
- options: CommonForwardAndReverseGeocodingOptions
258
+ options: CommonForwardAndReverseGeocodingOptions,
179
259
  ) {
180
260
  searchParams.set("key", options.apiKey ?? config.apiKey);
181
261
 
@@ -192,7 +272,7 @@ function addCommonForwardAndReverseGeocodingOptions(
192
272
 
193
273
  function addForwardGeocodingOptions(
194
274
  searchParams: URLSearchParams,
195
- options: GeocodingOptions
275
+ options: GeocodingOptions,
196
276
  ) {
197
277
  addCommonForwardAndReverseGeocodingOptions(searchParams, options);
198
278
 
@@ -228,7 +308,7 @@ function addForwardGeocodingOptions(
228
308
  */
229
309
  async function forward(
230
310
  query: string,
231
- options: GeocodingOptions = {}
311
+ options: GeocodingOptions = {},
232
312
  ): Promise<GeocodingSearchResult> {
233
313
  if (typeof query !== "string" || query.trim().length === 0) {
234
314
  throw new Error("The query must be a non-empty string");
@@ -236,7 +316,7 @@ async function forward(
236
316
 
237
317
  const endpoint = new URL(
238
318
  `geocoding/${encodeURIComponent(query)}.json`,
239
- defaults.maptilerApiURL
319
+ defaults.maptilerApiURL,
240
320
  );
241
321
 
242
322
  const { searchParams } = endpoint;
@@ -266,7 +346,7 @@ async function forward(
266
346
  */
267
347
  async function reverse(
268
348
  position: Position,
269
- options: ReverseGeocodingOptions = {}
349
+ options: ReverseGeocodingOptions = {},
270
350
  ): Promise<GeocodingSearchResult> {
271
351
  if (!Array.isArray(position) || position.length < 2) {
272
352
  throw new Error("The position must be an array of form [lng, lat].");
@@ -274,7 +354,7 @@ async function reverse(
274
354
 
275
355
  const endpoint = new URL(
276
356
  `geocoding/${position[0]},${position[1]}.json`,
277
- defaults.maptilerApiURL
357
+ defaults.maptilerApiURL,
278
358
  );
279
359
 
280
360
  addCommonForwardAndReverseGeocodingOptions(endpoint.searchParams, options);
@@ -303,9 +383,10 @@ async function reverse(
303
383
  */
304
384
  async function byId(
305
385
  id: string,
306
- options: ByIdGeocodingOptions = {}
386
+ options: ByIdGeocodingOptions = {},
307
387
  ): Promise<GeocodingSearchResult> {
308
388
  const endpoint = new URL(`geocoding/${id}.json`, defaults.maptilerApiURL);
389
+ endpoint.searchParams.set("key", options.apiKey ?? config.apiKey);
309
390
 
310
391
  addLanguageGeocodingOptions(endpoint.searchParams, options);
311
392
 
@@ -332,7 +413,7 @@ async function byId(
332
413
  */
333
414
  async function batch(
334
415
  queries: string[],
335
- options: GeocodingOptions = {}
416
+ options: GeocodingOptions = {},
336
417
  ): Promise<GeocodingSearchResult[]> {
337
418
  if (!queries.length) {
338
419
  return [];
@@ -344,7 +425,7 @@ async function batch(
344
425
 
345
426
  const endpoint = new URL(
346
427
  `geocoding/${joinedQuery}.json`,
347
- defaults.maptilerApiURL
428
+ defaults.maptilerApiURL,
348
429
  );
349
430
 
350
431
  const { searchParams } = endpoint;
@@ -109,7 +109,7 @@ export type GeolocationResult = {
109
109
  * @returns
110
110
  */
111
111
  async function info(
112
- options: GeolocationInfoOptions = {}
112
+ options: GeolocationInfoOptions = {},
113
113
  ): Promise<GeolocationResult> {
114
114
  const endpoint = new URL(`geolocation/ip.json`, defaults.maptilerApiURL);
115
115
  endpoint.searchParams.set("key", options.apiKey ?? config.apiKey);
@@ -120,7 +120,7 @@ async function info(
120
120
  if (!res.ok) {
121
121
  throw new ServiceError(
122
122
  res,
123
- res.status in customMessages ? customMessages[res.status] : ""
123
+ res.status in customMessages ? customMessages[res.status] : "",
124
124
  );
125
125
  }
126
126
 
@@ -34,7 +34,7 @@ function simplifyDPStep(
34
34
  first: number,
35
35
  last: number,
36
36
  sqTolerance: number,
37
- simplified: Array<Position>
37
+ simplified: Array<Position>,
38
38
  ) {
39
39
  let maxSqDist = sqTolerance,
40
40
  index;
@@ -63,7 +63,7 @@ function simplifyDPStep(
63
63
  // simplification using Ramer-Douglas-Peucker algorithm
64
64
  function simplifyDouglasPeucker(
65
65
  points: Array<Position>,
66
- sqTolerance: number
66
+ sqTolerance: number,
67
67
  ): Array<Position> {
68
68
  const last = points.length - 1;
69
69
  const simplified = [points[0]];
@@ -75,7 +75,7 @@ function simplifyDouglasPeucker(
75
75
  // both algorithms combined for awesome performance
76
76
  export default function simplify(
77
77
  points: Array<Position>,
78
- tolerance: number
78
+ tolerance: number,
79
79
  ): Array<Position> {
80
80
  if (points.length <= 2) {
81
81
  return points;
@@ -155,12 +155,12 @@ export type StaticMapMarker = [
155
155
  /**
156
156
  * Color of the marker with CSS syntax. Applies only if a custom `markerIcon` is not provided.
157
157
  */
158
- string
158
+ string,
159
159
  ];
160
160
 
161
161
  function staticMapMarkerToString(
162
162
  marker: StaticMapMarker,
163
- includeColor = true
163
+ includeColor = true,
164
164
  ): string {
165
165
  let str = `${marker[0]},${marker[1]}`;
166
166
 
@@ -199,7 +199,7 @@ function simplifyAndStringify(path: Array<Position>, maxNbChar = 3000): string {
199
199
  function centered(
200
200
  center: Position,
201
201
  zoom: number,
202
- options: CenteredStaticMapOptions = {}
202
+ options: CenteredStaticMapOptions = {},
203
203
  ): string {
204
204
  const style = styleToStyle(options.style);
205
205
  const scale = options.hiDPI ? "@2x" : "";
@@ -216,7 +216,7 @@ function centered(
216
216
  `maps/${encodeURIComponent(style)}/static/${center[0]},${
217
217
  center[1]
218
218
  },${zoom}/${width}x${height}${scale}.${format}`,
219
- defaults.maptilerApiURL
219
+ defaults.maptilerApiURL,
220
220
  );
221
221
 
222
222
  if ("attribution" in options) {
@@ -283,7 +283,7 @@ function centered(
283
283
  */
284
284
  function bounded(
285
285
  boundingBox: BBox,
286
- options: BoundedStaticMapOptions = {}
286
+ options: BoundedStaticMapOptions = {},
287
287
  ): string {
288
288
  const style = styleToStyle(options.style);
289
289
  const scale = options.hiDPI ? "@2x" : "";
@@ -300,7 +300,7 @@ function bounded(
300
300
  `maps/${encodeURIComponent(style)}/static/${boundingBox[0]},${
301
301
  boundingBox[1]
302
302
  },${boundingBox[2]},${boundingBox[3]}/${width}x${height}${scale}.${format}`,
303
- defaults.maptilerApiURL
303
+ defaults.maptilerApiURL,
304
304
  );
305
305
 
306
306
  if ("attribution" in options) {
@@ -371,7 +371,7 @@ function bounded(
371
371
  function automatic(options: AutomaticStaticMapOptions = {}): string {
372
372
  if (!("markers" in options) && !("path" in options)) {
373
373
  throw new Error(
374
- "Automatic static maps require markers and/or path to be created."
374
+ "Automatic static maps require markers and/or path to be created.",
375
375
  );
376
376
  }
377
377
 
@@ -388,9 +388,9 @@ function automatic(options: AutomaticStaticMapOptions = {}): string {
388
388
 
389
389
  const endpoint = new URL(
390
390
  `maps/${encodeURIComponent(
391
- style
391
+ style,
392
392
  )}/static/auto/${width}x${height}${scale}.${format}`,
393
- defaults.maptilerApiURL
393
+ defaults.maptilerApiURL,
394
394
  );
395
395
 
396
396
  if ("attribution" in options) {
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "moduleResolution": "Node",
3
+ "moduleResolution": "Bundler",
4
4
  "target": "es6",
5
5
  "declaration": true,
6
6
  "allowSyntheticDefaultImports": true,
package/docs/.nojekyll DELETED
@@ -1 +0,0 @@
1
- TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -1,118 +0,0 @@
1
- /* Overiding the default dark mode with color scheme from the light mode */
2
- @media (prefers-color-scheme: dark) {
3
- :root {
4
- --color-background: var(--light-color-background);
5
- --color-background-secondary: var(--light-color-background-secondary);
6
- --color-background-warning: var(--light-color-background-warning);
7
- --color-warning-text: var(--light-color-warning-text);
8
- --color-icon-background: var(--light-color-icon-background);
9
- --color-accent: var(--light-color-accent);
10
- --color-text: var(--light-color-text);
11
- --color-text-aside: var(--light-color-text-aside);
12
- --color-link: var(--light-color-link);
13
- --color-ts: var(--light-color-ts);
14
- --color-ts-interface: var(--light-color-ts-interface);
15
- --color-ts-enum: var(--light-color-ts-enum);
16
- --color-ts-class: var(--light-color-ts-class);
17
- --color-ts-function: var(--light-color-ts-function);
18
- --color-ts-namespace: var(--light-color-ts-namespace);
19
- --color-ts-private: var(--light-color-ts-private);
20
- --color-ts-variable: var(--light-color-ts-variable);
21
- --external-icon: var(--light-external-icon);
22
- --color-scheme: var(--light-color-scheme);
23
- }
24
- }
25
-
26
- body {
27
- background: #fff;
28
- font-family: "Open Sans", sans-serif;
29
- color: #6B7C92;
30
- }
31
-
32
- h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
33
- font-family: "Ubuntu","Open Sans",sans-serif;
34
- color: #525a65;
35
- }
36
-
37
- .tsd-page-toolbar {
38
- background: #fff;
39
- }
40
-
41
- #tsd-search > .title {
42
- background-image: url("data:image/svg+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%0A%3Csvg%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%20161%2041%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3Aserif%3D%22http%3A%2F%2Fwww.serif.com%2F%22%20style%3D%22fill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bstroke-linejoin%3Around%3Bstroke-miterlimit%3A2%3B%22%3E%0A%20%20%20%20%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C-1.20801%2C-0.711928)%22%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11.965%2C33.743C14.023%2C35.769%2019.5%2C41.264%2019.497%2C41.269C19.477%2C41.305%2024.938%2C35.908%2027.113%2C33.768L19.526%2C26.3L11.965%2C33.743Z%22%20style%3D%22fill%3Argb(58%2C24%2C136)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M19.526%2C26.3L27.113%2C33.768C27.124%2C33.756%2027.138%2C33.741%2027.15%2C33.731L34.73%2C26.27L27.143%2C18.802L19.526%2C26.3Z%22%20style%3D%22fill%3Argb(3%2C161%2C196)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M34.73%2C26.27L34.749%2C26.25C38.942%2C22.123%2038.945%2C15.435%2034.762%2C11.302L27.144%2C18.802L34.73%2C26.27Z%22%20style%3D%22fill%3Argb(5%2C208%2C223)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11.908%2C18.802L4.349%2C26.243C4.351%2C26.245%204.352%2C26.248%204.355%2C26.25L11.953%2C33.73C11.957%2C33.734%2011.961%2C33.738%2011.966%2C33.743L19.526%2C26.3L11.908%2C18.802Z%22%20style%3D%22fill%3Argb(118%2C31%2C232)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M19.526%2C11.303L27.143%2C18.802L34.762%2C11.303C34.755%2C11.298%2034.753%2C11.295%2034.749%2C11.29L27.15%2C3.81C27.149%2C3.808%2027.146%2C3.806%2027.144%2C3.804L19.526%2C11.303Z%22%20style%3D%22fill%3Argb(255%2C170%2C1)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4.317%2C11.328C0.161%2C15.46%200.172%2C22.124%204.349%2C26.243L11.908%2C18.802L4.317%2C11.328Z%22%20style%3D%22fill%3Argb(241%2C23%2C93)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M19.526%2C11.303L11.934%2C3.829L4.355%2C11.29C4.341%2C11.303%204.33%2C11.317%204.316%2C11.329L11.908%2C18.802L19.526%2C11.303Z%22%20style%3D%22fill%3Argb(251%2C58%2C27)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M27.144%2C3.804C22.946%2C-0.321%2016.148%2C-0.319%2011.953%2C3.81L11.934%2C3.829L19.526%2C11.303L27.144%2C3.804Z%22%20style%3D%22fill%3Argb(251%2C201%2C53)%3Bfill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M58.567%2C28.139L58.567%2C20.497C58.567%2C18.616%2057.566%2C16.908%2055.595%2C16.908C53.654%2C16.908%2052.508%2C18.616%2052.508%2C20.497L52.508%2C28.139L48.922%2C28.139L48.922%2C13.84L52.244%2C13.84L52.508%2C15.578C53.273%2C14.129%2054.949%2C13.609%2056.33%2C13.609C58.066%2C13.609%2059.8%2C14.304%2060.624%2C16.271C61.918%2C14.245%2063.595%2C13.667%2065.476%2C13.667C69.593%2C13.667%2071.622%2C16.155%2071.622%2C20.44L71.622%2C28.139L68.034%2C28.139L68.034%2C20.44C68.034%2C18.559%2067.24%2C16.966%2065.301%2C16.966C63.359%2C16.966%2062.153%2C18.616%2062.153%2C20.497L62.153%2C28.139L58.567%2C28.139Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M86.765%2C13.87L90.206%2C13.87L90.206%2C28.139L86.824%2C28.139L86.647%2C26.056C85.825%2C27.734%2083.561%2C28.543%2081.943%2C28.573C77.651%2C28.603%2074.474%2C25.997%2074.474%2C20.989C74.474%2C16.069%2077.798%2C13.493%2082.033%2C13.522C83.973%2C13.522%2085.824%2C14.419%2086.647%2C15.838L86.765%2C13.87ZM78.062%2C20.989C78.062%2C23.71%2079.973%2C25.331%2082.355%2C25.331C88%2C25.331%2088%2C16.677%2082.355%2C16.677C79.973%2C16.677%2078.062%2C18.269%2078.062%2C20.989Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M93.236%2C34.105L93.236%2C13.87L96.589%2C13.87L96.822%2C15.838C97.94%2C14.245%2099.882%2C13.551%20101.528%2C13.551C105.996%2C13.551%20108.968%2C16.822%20108.968%2C21.019C108.968%2C25.187%20106.291%2C28.487%20101.645%2C28.487C100.118%2C28.487%2097.852%2C28.023%2096.822%2C26.461L96.822%2C34.104L93.236%2C34.104L93.236%2C34.105ZM105.381%2C21.019C105.381%2C18.791%20103.851%2C16.966%20101.264%2C16.966C98.676%2C16.966%2097.146%2C18.791%2097.146%2C21.019C97.146%2C23.247%2098.823%2C25.073%20101.264%2C25.073C103.705%2C25.073%20105.381%2C23.247%20105.381%2C21.019Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M115.378%2C9.528L115.378%2C13.84L120.319%2C13.84L120.319%2C15.026L115.378%2C15.026L115.378%2C23.739C115.378%2C25.679%20115.791%2C27.04%20118.055%2C27.04C118.76%2C27.04%20119.554%2C26.808%20120.289%2C26.461L120.789%2C27.617C119.877%2C28.054%20118.965%2C28.342%20118.055%2C28.342C114.968%2C28.342%20113.967%2C26.547%20113.967%2C23.74L113.967%2C15.027L110.879%2C15.027L110.879%2C13.84L113.967%2C13.84L113.967%2C9.672L115.378%2C9.528Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M125.554%2C9.18C125.554%2C10.685%20123.23%2C10.685%20123.23%2C9.18C123.23%2C7.675%20125.554%2C7.675%20125.554%2C9.18ZM123.643%2C13.782L123.643%2C28.14L125.082%2C28.14L125.082%2C13.782L123.643%2C13.782Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Crect%20x%3D%22129.199%22%20y%3D%227.878%22%20width%3D%221.441%22%20height%3D%2220.261%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M153.488%2C13.84L153.547%2C16.389C154.459%2C14.448%20156.518%2C13.696%20158.37%2C13.696C159.459%2C13.667%20160.515%2C13.956%20161.486%2C14.536L160.839%2C15.693C160.076%2C15.23%20159.221%2C15.027%20158.37%2C15.027C155.663%2C15.057%20153.576%2C17.198%20153.576%2C19.804L153.576%2C28.14L152.135%2C28.14L152.135%2C13.84L153.488%2C13.84Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M135.54%2C23.414C135.541%2C23.415%20135.543%2C23.417%20135.543%2C23.418L147.303%2C20.354C147.302%2C20.349%20147.302%2C20.345%20147.302%2C20.341L135.54%2C23.414Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M141.214%2C27.28C138.654%2C27.28%20136.461%2C25.701%20135.543%2C23.458L135.535%2C23.458L135.542%2C23.457C135.542%2C23.456%20135.541%2C23.455%20135.54%2C23.454L147.301%2C20.38C147.301%2C20.385%20147.302%2C20.389%20147.302%2C20.394L148.555%2C20.068C148.049%2C16.446%20144.956%2C13.658%20141.214%2C13.658C137.12%2C13.658%20133.802%2C16.996%20133.802%2C21.113C133.802%2C25.23%20137.12%2C28.569%20141.214%2C28.569C144.276%2C28.569%20146.905%2C26.7%20148.035%2C24.037L146.855%2C23.532C145.921%2C25.734%20143.747%2C27.28%20141.214%2C27.28ZM135.083%2C21.113C135.083%2C17.708%20137.828%2C14.946%20141.214%2C14.946C143.862%2C14.946%20146.117%2C16.634%20146.976%2C18.999L135.16%2C22.085C135.11%2C21.768%20135.083%2C21.444%20135.083%2C21.113Z%22%20style%3D%22fill-rule%3Anonzero%3B%22%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A");
43
- background-repeat: no-repeat;
44
- color: #0000;
45
- font-size: 1.5em;
46
- }
47
-
48
- .tsd-page-title h2 {
49
- display: none;
50
- }
51
-
52
- .tsd-page-toolbar--hide {
53
- transform: none;
54
- }
55
-
56
- .col-menu--hide {
57
- top: 4em;
58
- }
59
-
60
-
61
- .tsd-page-toolbar {
62
- border-color: #d3dbec;
63
- }
64
-
65
- .col-menu {
66
- border-left: none;
67
- background-color: #F3F6FF;
68
- }
69
-
70
- .menu-sticky-wrap {
71
- top: 2.5rem;
72
- margin-top: 2.5rem;
73
- /* height: 100vh; */
74
- height: calc(100vh - 2.5rem);
75
- }
76
-
77
- .tsd-generator {
78
- display: none;
79
- }
80
-
81
- .settings {
82
- display: none;
83
- }
84
-
85
- .tsd-navigation a {
86
- color: #252525;
87
- }
88
-
89
- .tsd-navigation.primary ul li a:hover {
90
- border-color: #b3deff;
91
- }
92
-
93
- .tsd-navigation.primary li.selected > a,
94
- .tsd-navigation.primary li.current > a {
95
- border-color: #8bc9f9;
96
- }
97
-
98
- .tsd-index-panel > .tsd-index-heading {
99
- display: none;
100
- }
101
-
102
- #tsd-search.has-focus {
103
- background-color: #fff;
104
- }
105
-
106
- .tsd-navigation.secondary {
107
- border-top: solid 1px #d3dbec;
108
- padding-top: 1rem;
109
- }
110
-
111
- pre {
112
- border-color: #d3dbec;
113
- }
114
-
115
- code, pre {
116
- border-radius: 3px;
117
- background-color: #fafbff;
118
- }
@@ -1,85 +0,0 @@
1
- :root {
2
- --light-hl-0: #000000;
3
- --dark-hl-0: #D4D4D4;
4
- --light-hl-1: #A31515;
5
- --dark-hl-1: #CE9178;
6
- --light-hl-2: #008000;
7
- --dark-hl-2: #6A9955;
8
- --light-hl-3: #AF00DB;
9
- --dark-hl-3: #C586C0;
10
- --light-hl-4: #0000FF;
11
- --dark-hl-4: #569CD6;
12
- --light-hl-5: #001080;
13
- --dark-hl-5: #9CDCFE;
14
- --light-hl-6: #0070C1;
15
- --dark-hl-6: #4FC1FF;
16
- --light-hl-7: #795E26;
17
- --dark-hl-7: #DCDCAA;
18
- --light-hl-8: #098658;
19
- --dark-hl-8: #B5CEA8;
20
- --light-code-background: #FFFFFF;
21
- --dark-code-background: #1E1E1E;
22
- }
23
-
24
- @media (prefers-color-scheme: light) { :root {
25
- --hl-0: var(--light-hl-0);
26
- --hl-1: var(--light-hl-1);
27
- --hl-2: var(--light-hl-2);
28
- --hl-3: var(--light-hl-3);
29
- --hl-4: var(--light-hl-4);
30
- --hl-5: var(--light-hl-5);
31
- --hl-6: var(--light-hl-6);
32
- --hl-7: var(--light-hl-7);
33
- --hl-8: var(--light-hl-8);
34
- --code-background: var(--light-code-background);
35
- } }
36
-
37
- @media (prefers-color-scheme: dark) { :root {
38
- --hl-0: var(--dark-hl-0);
39
- --hl-1: var(--dark-hl-1);
40
- --hl-2: var(--dark-hl-2);
41
- --hl-3: var(--dark-hl-3);
42
- --hl-4: var(--dark-hl-4);
43
- --hl-5: var(--dark-hl-5);
44
- --hl-6: var(--dark-hl-6);
45
- --hl-7: var(--dark-hl-7);
46
- --hl-8: var(--dark-hl-8);
47
- --code-background: var(--dark-code-background);
48
- } }
49
-
50
- :root[data-theme='light'] {
51
- --hl-0: var(--light-hl-0);
52
- --hl-1: var(--light-hl-1);
53
- --hl-2: var(--light-hl-2);
54
- --hl-3: var(--light-hl-3);
55
- --hl-4: var(--light-hl-4);
56
- --hl-5: var(--light-hl-5);
57
- --hl-6: var(--light-hl-6);
58
- --hl-7: var(--light-hl-7);
59
- --hl-8: var(--light-hl-8);
60
- --code-background: var(--light-code-background);
61
- }
62
-
63
- :root[data-theme='dark'] {
64
- --hl-0: var(--dark-hl-0);
65
- --hl-1: var(--dark-hl-1);
66
- --hl-2: var(--dark-hl-2);
67
- --hl-3: var(--dark-hl-3);
68
- --hl-4: var(--dark-hl-4);
69
- --hl-5: var(--dark-hl-5);
70
- --hl-6: var(--dark-hl-6);
71
- --hl-7: var(--dark-hl-7);
72
- --hl-8: var(--dark-hl-8);
73
- --code-background: var(--dark-code-background);
74
- }
75
-
76
- .hl-0 { color: var(--hl-0); }
77
- .hl-1 { color: var(--hl-1); }
78
- .hl-2 { color: var(--hl-2); }
79
- .hl-3 { color: var(--hl-3); }
80
- .hl-4 { color: var(--hl-4); }
81
- .hl-5 { color: var(--hl-5); }
82
- .hl-6 { color: var(--hl-6); }
83
- .hl-7 { color: var(--hl-7); }
84
- .hl-8 { color: var(--hl-8); }
85
- pre, code { background: var(--code-background); }