@carto/api-client 0.5.1 → 0.5.2-alpha.1
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.
- package/build/api-client.cjs +194 -84
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +28 -1
- package/build/api-client.d.ts +28 -1
- package/build/api-client.js +186 -83
- package/build/api-client.js.map +1 -1
- package/build/worker.js +30 -19
- package/build/worker.js.map +1 -1
- package/package.json +5 -3
- package/src/api/carto-api-error.ts +1 -1
- package/src/api/endpoints.ts +1 -1
- package/src/api/index.ts +2 -2
- package/src/api/query.ts +1 -1
- package/src/api/request-with-parameters.ts +2 -2
- package/src/deck/get-data-filter-extension-props.ts +3 -3
- package/src/fetch-map/basemap-styles.ts +2 -2
- package/src/fetch-map/basemap.ts +2 -2
- package/src/fetch-map/fetch-map.ts +3 -3
- package/src/fetch-map/layer-map.ts +81 -5
- package/src/fetch-map/parse-map.ts +71 -7
- package/src/fetch-map/source.ts +10 -10
- package/src/fetch-map/types.ts +7 -3
- package/src/filters/Filter.ts +4 -4
- package/src/filters/FilterTypes.ts +1 -1
- package/src/filters/geosjonFeatures.ts +3 -3
- package/src/filters/tileFeatures.ts +8 -3
- package/src/filters/tileFeaturesGeometries.ts +5 -5
- package/src/filters/tileFeaturesRaster.ts +3 -3
- package/src/filters/tileFeaturesSpatialIndex.ts +4 -4
- package/src/filters.ts +38 -3
- package/src/geo.ts +1 -1
- package/src/index.ts +3 -3
- package/src/models/model.ts +6 -3
- package/src/operations/aggregation.ts +14 -4
- package/src/operations/applySorting.ts +2 -2
- package/src/operations/groupBy.ts +2 -2
- package/src/operations/groupByDate.ts +2 -2
- package/src/operations/histogram.ts +2 -2
- package/src/operations/scatterPlot.ts +2 -2
- package/src/sources/base-source.ts +2 -2
- package/src/sources/boundary-query-source.ts +1 -1
- package/src/sources/h3-query-source.ts +1 -1
- package/src/sources/h3-table-source.ts +1 -1
- package/src/sources/h3-tileset-source.ts +1 -1
- package/src/sources/quadbin-query-source.ts +1 -1
- package/src/sources/quadbin-table-source.ts +1 -1
- package/src/sources/quadbin-tileset-source.ts +1 -1
- package/src/sources/raster-source.ts +1 -1
- package/src/sources/types.ts +2 -2
- package/src/sources/vector-query-source.ts +1 -1
- package/src/sources/vector-table-source.ts +1 -1
- package/src/sources/vector-tileset-source.ts +1 -1
- package/src/utils/getTileFormat.ts +1 -1
- package/src/utils/makeIntervalComplete.ts +1 -1
- package/src/utils/transformTileCoordsToWGS84.ts +1 -1
- package/src/utils/transformToTileCoords.ts +1 -1
- package/src/utils.ts +1 -1
- package/src/widget-sources/types.ts +5 -2
- package/src/widget-sources/widget-query-source.ts +4 -4
- package/src/widget-sources/widget-raster-source.ts +2 -2
- package/src/widget-sources/widget-remote-source.ts +6 -5
- package/src/widget-sources/widget-source.ts +3 -3
- package/src/widget-sources/widget-table-source.ts +4 -4
- package/src/widget-sources/widget-tileset-source-impl.ts +8 -11
- package/src/widget-sources/widget-tileset-source.ts +7 -7
package/src/models/model.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {DEFAULT_GEO_COLUMN} from '../constants-internal.js';
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
Filter,
|
|
4
4
|
FilterLogicalOperator,
|
|
5
5
|
MapType,
|
|
@@ -7,9 +7,12 @@ import {
|
|
|
7
7
|
SpatialFilter,
|
|
8
8
|
} from '../types.js';
|
|
9
9
|
import {assert, isPureObject} from '../utils.js';
|
|
10
|
-
import {ModelRequestOptions, makeCall} from './common.js';
|
|
10
|
+
import {type ModelRequestOptions, makeCall} from './common.js';
|
|
11
11
|
import {ApiVersion} from '../constants.js';
|
|
12
|
-
import {
|
|
12
|
+
import type {
|
|
13
|
+
SpatialDataType,
|
|
14
|
+
SpatialFilterPolyfillMode,
|
|
15
|
+
} from '../sources/types.js';
|
|
13
16
|
|
|
14
17
|
/** @privateRemarks Source: @carto/react-api */
|
|
15
18
|
const AVAILABLE_MODELS = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {AggregationType} from '../types.js';
|
|
2
|
-
import {FeatureData} from '../types-internal.js';
|
|
1
|
+
import type {AggregationType} from '../types.js';
|
|
2
|
+
import type {FeatureData} from '../types-internal.js';
|
|
3
3
|
|
|
4
4
|
/** @privateRemarks Source: @carto/react-core */
|
|
5
5
|
export type AggregationFunction = (
|
|
@@ -122,7 +122,12 @@ function min(
|
|
|
122
122
|
Infinity
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
|
|
126
|
+
let min = Number.POSITIVE_INFINITY;
|
|
127
|
+
for (const value of values as number[]) {
|
|
128
|
+
min = Math.min(min, value);
|
|
129
|
+
}
|
|
130
|
+
return min;
|
|
126
131
|
}
|
|
127
132
|
|
|
128
133
|
function max(
|
|
@@ -138,7 +143,12 @@ function max(
|
|
|
138
143
|
-Infinity
|
|
139
144
|
);
|
|
140
145
|
}
|
|
141
|
-
|
|
146
|
+
|
|
147
|
+
let max = Number.NEGATIVE_INFINITY;
|
|
148
|
+
for (const value of values as number[]) {
|
|
149
|
+
max = Math.max(max, value);
|
|
150
|
+
}
|
|
151
|
+
return max;
|
|
142
152
|
}
|
|
143
153
|
|
|
144
154
|
// Aux
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {firstBy} from 'thenby';
|
|
2
|
-
import {SortDirection} from '../types.js';
|
|
3
|
-
import {FeatureData} from '../types-internal.js';
|
|
2
|
+
import type {SortDirection} from '../types.js';
|
|
3
|
+
import type {FeatureData} from '../types-internal.js';
|
|
4
4
|
|
|
5
5
|
// TODO(cleanup): Could this be simplified?
|
|
6
6
|
type SortColumns = string | string[] | object[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {aggregationFunctions, aggregate} from './aggregation.js';
|
|
2
|
-
import {AggregationType} from '../types.js';
|
|
3
|
-
import {FeatureData} from '../types-internal.js';
|
|
2
|
+
import type {AggregationType} from '../types.js';
|
|
3
|
+
import type {FeatureData} from '../types-internal.js';
|
|
4
4
|
|
|
5
5
|
/** @privateRemarks Source: @carto/react-core */
|
|
6
6
|
export type GroupByFeature = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {AggregationType, GroupDateType} from '../types.js';
|
|
1
|
+
import type {AggregationType, GroupDateType} from '../types.js';
|
|
2
2
|
import {getUTCMonday} from '../utils/dateUtils.js';
|
|
3
3
|
import {aggregate, aggregationFunctions} from './aggregation.js';
|
|
4
|
-
import {GroupByFeature} from './groupBy.js';
|
|
4
|
+
import type {GroupByFeature} from './groupBy.js';
|
|
5
5
|
|
|
6
6
|
const GROUP_KEY_FN_MAPPING: Record<GroupDateType, (date: Date) => number> = {
|
|
7
7
|
year: (date: Date) => Date.UTC(date.getUTCFullYear()),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {aggregate, aggregationFunctions} from './aggregation.js';
|
|
2
|
-
import {AggregationType} from '../types.js';
|
|
3
|
-
import {FeatureData} from '../types-internal.js';
|
|
2
|
+
import type {AggregationType} from '../types.js';
|
|
3
|
+
import type {FeatureData} from '../types-internal.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Histogram computation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {aggregate} from './aggregation.js';
|
|
2
|
-
import {FeatureData} from '../types-internal.js';
|
|
3
|
-
import {AggregationType} from '../types.js';
|
|
2
|
+
import type {FeatureData} from '../types-internal.js';
|
|
3
|
+
import type {AggregationType} from '../types.js';
|
|
4
4
|
|
|
5
5
|
export type ScatterPlotFeature = [number, number][];
|
|
6
6
|
|
|
@@ -12,8 +12,8 @@ import type {
|
|
|
12
12
|
TilejsonMapInstantiation,
|
|
13
13
|
TilejsonResult,
|
|
14
14
|
} from './types.js';
|
|
15
|
-
import {MapType} from '../types.js';
|
|
16
|
-
import {APIErrorContext} from '../api/index.js';
|
|
15
|
+
import type {MapType} from '../types.js';
|
|
16
|
+
import type {APIErrorContext} from '../api/index.js';
|
|
17
17
|
import {getClient} from '../client.js';
|
|
18
18
|
|
|
19
19
|
export const SOURCE_DEFAULTS: Omit<SourceOptionalOptions, 'clientId'> = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {QueryParameters} from '../types.js';
|
|
5
|
+
import type {QueryParameters} from '../types.js';
|
|
6
6
|
import {baseSource} from './base-source.js';
|
|
7
7
|
import type {FilterOptions, SourceOptions, TilejsonResult} from './types.js';
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {DEFAULT_AGGREGATION_RES_LEVEL_H3} from '../constants-internal.js';
|
|
6
6
|
import {
|
|
7
7
|
WidgetQuerySource,
|
|
8
|
-
WidgetQuerySourceResult,
|
|
8
|
+
type WidgetQuerySourceResult,
|
|
9
9
|
} from '../widget-sources/index.js';
|
|
10
10
|
import {baseSource} from './base-source.js';
|
|
11
11
|
import type {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {DEFAULT_AGGREGATION_RES_LEVEL_H3} from '../constants-internal.js';
|
|
6
6
|
import {
|
|
7
7
|
WidgetTableSource,
|
|
8
|
-
WidgetTableSourceResult,
|
|
8
|
+
type WidgetTableSourceResult,
|
|
9
9
|
} from '../widget-sources/index.js';
|
|
10
10
|
import {baseSource} from './base-source.js';
|
|
11
11
|
import type {
|
|
@@ -6,7 +6,7 @@ import {baseSource} from './base-source.js';
|
|
|
6
6
|
import {getTileFormat} from '../utils/getTileFormat.js';
|
|
7
7
|
import {
|
|
8
8
|
WidgetTilesetSource,
|
|
9
|
-
WidgetTilesetSourceResult,
|
|
9
|
+
type WidgetTilesetSourceResult,
|
|
10
10
|
} from '../widget-sources/index.js';
|
|
11
11
|
import type {
|
|
12
12
|
SourceOptions,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN} from '../constants-internal.js';
|
|
6
6
|
import {
|
|
7
7
|
WidgetQuerySource,
|
|
8
|
-
WidgetQuerySourceResult,
|
|
8
|
+
type WidgetQuerySourceResult,
|
|
9
9
|
} from '../widget-sources/index.js';
|
|
10
10
|
import {baseSource} from './base-source.js';
|
|
11
11
|
import type {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN} from '../constants-internal.js';
|
|
6
6
|
import {
|
|
7
7
|
WidgetTableSource,
|
|
8
|
-
WidgetTableSourceResult,
|
|
8
|
+
type WidgetTableSourceResult,
|
|
9
9
|
} from '../widget-sources/index.js';
|
|
10
10
|
import {baseSource} from './base-source.js';
|
|
11
11
|
import type {
|
|
@@ -6,7 +6,7 @@ import {baseSource} from './base-source.js';
|
|
|
6
6
|
import {getTileFormat} from '../utils/getTileFormat.js';
|
|
7
7
|
import {
|
|
8
8
|
WidgetTilesetSource,
|
|
9
|
-
WidgetTilesetSourceResult,
|
|
9
|
+
type WidgetTilesetSourceResult,
|
|
10
10
|
} from '../widget-sources/index.js';
|
|
11
11
|
import type {
|
|
12
12
|
SourceOptions,
|
package/src/sources/types.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type {SchemaField} from '../types-internal.js';
|
|
6
|
+
import type {Filters, QueryParameters} from '../types.js';
|
|
7
7
|
|
|
8
8
|
export type SourceRequiredOptions = {
|
|
9
9
|
/** Carto platform access token. */
|
|
@@ -7,7 +7,7 @@ import {DEFAULT_GEO_COLUMN} from '../constants-internal.js';
|
|
|
7
7
|
import {getTileFormat} from '../utils/getTileFormat.js';
|
|
8
8
|
import {
|
|
9
9
|
WidgetTilesetSource,
|
|
10
|
-
WidgetTilesetSourceResult,
|
|
10
|
+
type WidgetTilesetSourceResult,
|
|
11
11
|
} from '../widget-sources/index.js';
|
|
12
12
|
import type {
|
|
13
13
|
SourceOptions,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {TileFormat} from '../constants.js';
|
|
2
|
-
import {Tilejson} from '../sources/types.js';
|
|
2
|
+
import type {Tilejson} from '../sources/types.js';
|
|
3
3
|
|
|
4
4
|
export function getTileFormat(tilejson: Tilejson): TileFormat {
|
|
5
5
|
const tileParams = new URL(tilejson.tiles[0]).searchParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {lerp} from '@math.gl/core';
|
|
2
2
|
import {lngLatToWorld, worldToLngLat} from '@math.gl/web-mercator';
|
|
3
|
-
import {BBox, GeoJsonGeometryTypes, Geometry, Position} from 'geojson';
|
|
3
|
+
import type {BBox, GeoJsonGeometryTypes, Geometry, Position} from 'geojson';
|
|
4
4
|
|
|
5
5
|
type TransformFn = (coordinates: any[], bbox: Position[]) => any[];
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {lngLatToWorld} from '@math.gl/web-mercator';
|
|
2
|
-
import {BBox, GeoJsonGeometryTypes, Geometry, Position} from 'geojson';
|
|
2
|
+
import type {BBox, GeoJsonGeometryTypes, Geometry, Position} from 'geojson';
|
|
3
3
|
|
|
4
4
|
type TransformFn = (coordinates: any[], bbox: Position[]) => any[];
|
|
5
5
|
|
package/src/utils.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
H3QuerySourceOptions,
|
|
3
3
|
QuadbinQuerySourceOptions,
|
|
4
4
|
VectorQuerySourceOptions,
|
|
5
5
|
} from '../sources/index.js';
|
|
6
6
|
import {
|
|
7
7
|
WidgetRemoteSource,
|
|
8
|
-
WidgetRemoteSourceProps,
|
|
8
|
+
type WidgetRemoteSourceProps,
|
|
9
9
|
} from './widget-remote-source.js';
|
|
10
|
-
import {ModelSource} from '../models/model.js';
|
|
11
|
-
import {Filters} from '../types.js';
|
|
10
|
+
import type {ModelSource} from '../models/model.js';
|
|
11
|
+
import type {Filters} from '../types.js';
|
|
12
12
|
|
|
13
13
|
type LayerQuerySourceOptions =
|
|
14
14
|
| Omit<VectorQuerySourceOptions, 'filters'>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {RasterMetadata} from '../sources/index.js';
|
|
1
|
+
import type {RasterMetadata} from '../sources/index.js';
|
|
2
2
|
import {
|
|
3
3
|
WidgetTilesetSource,
|
|
4
|
-
WidgetTilesetSourceProps,
|
|
4
|
+
type WidgetTilesetSourceProps,
|
|
5
5
|
} from './widget-tileset-source.js';
|
|
6
6
|
|
|
7
7
|
export type WidgetRasterSourceProps = WidgetTilesetSourceProps & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {executeModel, ModelSource} from '../models/index.js';
|
|
2
|
-
import {
|
|
1
|
+
import {executeModel, type ModelSource} from '../models/index.js';
|
|
2
|
+
import type {
|
|
3
3
|
CategoryRequestOptions,
|
|
4
4
|
CategoryResponse,
|
|
5
5
|
FeaturesRequestOptions,
|
|
@@ -17,11 +17,12 @@ import {
|
|
|
17
17
|
TimeSeriesRequestOptions,
|
|
18
18
|
TimeSeriesResponse,
|
|
19
19
|
} from './types.js';
|
|
20
|
-
import {
|
|
20
|
+
import {normalizeObjectKeys} from '../utils.js';
|
|
21
21
|
import {DEFAULT_TILE_RESOLUTION} from '../constants-internal.js';
|
|
22
|
-
import {WidgetSource, WidgetSourceProps} from './widget-source.js';
|
|
23
|
-
import {Filters} from '../types.js';
|
|
22
|
+
import {WidgetSource, type WidgetSourceProps} from './widget-source.js';
|
|
23
|
+
import type {Filters} from '../types.js';
|
|
24
24
|
import {ApiVersion} from '../constants.js';
|
|
25
|
+
import {getApplicableFilters} from '../filters.js';
|
|
25
26
|
|
|
26
27
|
export type WidgetRemoteSourceProps = WidgetSourceProps;
|
|
27
28
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
CategoryRequestOptions,
|
|
3
3
|
CategoryResponse,
|
|
4
4
|
FeaturesRequestOptions,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
TimeSeriesRequestOptions,
|
|
17
17
|
TimeSeriesResponse,
|
|
18
18
|
} from './types.js';
|
|
19
|
-
import {FilterLogicalOperator, Filter} from '../types.js';
|
|
19
|
+
import type {FilterLogicalOperator, Filter} from '../types.js';
|
|
20
20
|
import {getClient} from '../client.js';
|
|
21
|
-
import {SourceOptions} from '../sources/index.js';
|
|
21
|
+
import type {SourceOptions} from '../sources/index.js';
|
|
22
22
|
import {ApiVersion, DEFAULT_API_BASE_URL} from '../constants.js';
|
|
23
23
|
|
|
24
24
|
export interface WidgetSourceProps extends Omit<SourceOptions, 'filters'> {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
H3TableSourceOptions,
|
|
3
3
|
QuadbinTableSourceOptions,
|
|
4
4
|
VectorTableSourceOptions,
|
|
5
5
|
} from '../sources/index.js';
|
|
6
6
|
import {
|
|
7
7
|
WidgetRemoteSource,
|
|
8
|
-
WidgetRemoteSourceProps,
|
|
8
|
+
type WidgetRemoteSourceProps,
|
|
9
9
|
} from './widget-remote-source.js';
|
|
10
|
-
import {ModelSource} from '../models/model.js';
|
|
11
|
-
import {Filters} from '../types.js';
|
|
10
|
+
import type {ModelSource} from '../models/model.js';
|
|
11
|
+
import type {Filters} from '../types.js';
|
|
12
12
|
|
|
13
13
|
type LayerTableSourceOptions =
|
|
14
14
|
| Omit<VectorTableSourceOptions, 'filters'>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/require-await */
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
CategoryRequestOptions,
|
|
4
4
|
CategoryResponse,
|
|
5
5
|
FeaturesResponse,
|
|
@@ -16,15 +16,11 @@ import {
|
|
|
16
16
|
TimeSeriesRequestOptions,
|
|
17
17
|
TimeSeriesResponse,
|
|
18
18
|
} from './types.js';
|
|
19
|
+
import {InvalidColumnError, assert, assignOptional} from '../utils.js';
|
|
20
|
+
import type {Filter, SpatialFilter, Tile} from '../types.js';
|
|
21
|
+
|
|
19
22
|
import {
|
|
20
|
-
|
|
21
|
-
assert,
|
|
22
|
-
assignOptional,
|
|
23
|
-
getApplicableFilters,
|
|
24
|
-
} from '../utils.js';
|
|
25
|
-
import {Filter, SpatialFilter, Tile} from '../types.js';
|
|
26
|
-
import {
|
|
27
|
-
TileFeatureExtractOptions,
|
|
23
|
+
type TileFeatureExtractOptions,
|
|
28
24
|
applyFilters,
|
|
29
25
|
geojsonFeatures,
|
|
30
26
|
tileFeatures,
|
|
@@ -37,11 +33,12 @@ import {
|
|
|
37
33
|
histogram,
|
|
38
34
|
scatterPlot,
|
|
39
35
|
} from '../operations/index.js';
|
|
40
|
-
import {FeatureData} from '../types-internal.js';
|
|
41
|
-
import {FeatureCollection} from 'geojson';
|
|
36
|
+
import type {FeatureData} from '../types-internal.js';
|
|
37
|
+
import type {FeatureCollection} from 'geojson';
|
|
42
38
|
import {WidgetSource} from './widget-source.js';
|
|
43
39
|
import {booleanEqual} from '@turf/boolean-equal';
|
|
44
40
|
import type {WidgetTilesetSourceProps} from './widget-tileset-source.js';
|
|
41
|
+
import {getApplicableFilters} from '../filters.js';
|
|
45
42
|
|
|
46
43
|
// TODO(cleanup): Parameter defaults in source functions and widget API calls are
|
|
47
44
|
// currently duplicated and possibly inconsistent. Consider consolidating and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
CategoryRequestOptions,
|
|
3
3
|
CategoryResponse,
|
|
4
4
|
FeaturesResponse,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
TimeSeriesRequestOptions,
|
|
16
16
|
TimeSeriesResponse,
|
|
17
17
|
} from './types.js';
|
|
18
|
-
import {SpatialFilter, Tile} from '../types.js';
|
|
19
|
-
import {TileFeatureExtractOptions} from '../filters/index.js';
|
|
20
|
-
import {FeatureCollection} from 'geojson';
|
|
21
|
-
import {WidgetSource, WidgetSourceProps} from './widget-source.js';
|
|
18
|
+
import type {SpatialFilter, Tile} from '../types.js';
|
|
19
|
+
import type {TileFeatureExtractOptions} from '../filters/index.js';
|
|
20
|
+
import type {FeatureCollection} from 'geojson';
|
|
21
|
+
import {WidgetSource, type WidgetSourceProps} from './widget-source.js';
|
|
22
22
|
import {Method} from '../workers/constants.js';
|
|
23
|
-
import {WorkerRequest, WorkerResponse} from '../workers/types.js';
|
|
24
|
-
import {SpatialDataType, TilesetSourceOptions} from '../sources/types.js';
|
|
23
|
+
import type {WorkerRequest, WorkerResponse} from '../workers/types.js';
|
|
24
|
+
import type {SpatialDataType, TilesetSourceOptions} from '../sources/types.js';
|
|
25
25
|
import {TileFormat} from '../constants.js';
|
|
26
26
|
import {WidgetTilesetSourceImpl} from './widget-tileset-source-impl.js';
|
|
27
27
|
|