@mappable-world/mappable-types 1.0.18280890 → 1.0.18399252
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/common/types/data-source-description.d.ts +5 -1
- package/package.json +3 -3
- package/packages/cartesian-projection/index.d.ts +1 -0
- package/packages/clusterer/MMapClusterer/MMapClusterer.d.ts +1 -1
- package/packages/controls/MMapGeolocationControl/index.d.ts +1 -0
- package/packages/controls/MMapZoomControl/index.d.ts +1 -1
- package/packages/hint/MMapHint/index.d.ts +1 -0
- package/packages/markers/MMapDefaultMarker/index.d.ts +1 -0
- package/packages/spherical-mercator-projection/index.d.ts +1 -1
|
@@ -110,6 +110,10 @@ type VectorTileSize = 'X1' | 'X4' | 'X16';
|
|
|
110
110
|
type VectorDataSourcePriority = 'low' | 'medium' | 'high';
|
|
111
111
|
type VectorObjectsCollisionPriority = 'low' | 'medium' | 'high' | 'ultra';
|
|
112
112
|
type VectorMapType = 'map' | 'driving' | 'transit' | 'admin' | 'future-map';
|
|
113
|
+
type VectorTileZoomRanges = ReadonlyArray<{
|
|
114
|
+
readonly zMin: number;
|
|
115
|
+
readonly zMax: number;
|
|
116
|
+
}>;
|
|
113
117
|
interface VectorTileDataSourceDescription {
|
|
114
118
|
/** Default is `'vmap2'` */
|
|
115
119
|
tileFormat?: 'vmap2' | 'vmap3';
|
|
@@ -169,4 +173,4 @@ type VectorCustomizationElements = CustomizationElements;
|
|
|
169
173
|
type VectorCustomizationItem = CustomizationItem;
|
|
170
174
|
/** @deprecated Use Customization instead */
|
|
171
175
|
type VectorCustomization = CustomizationConfig;
|
|
172
|
-
export { VectorCustomizationTypes, VectorCustomizationElements, VectorCustomizationItem, VectorCustomization, CustomizationTypes, CustomizationElements, CustomizationItem, Customization, CustomizationConfig, CustomizationOptions, RasterTileDataSourceDescription, FetchHotspotsFunction, VectorTileDataSourceDescription, VectorTileSize, VectorObjectsCollisionPriority, VectorDataSourcePriority, VectorMapType, HotspotsOptions, FetchTileFunction, ComposeTileUrlFunction, Hotspot, WorldHotspot, RenderedHotspot, FetchedRasterTile, FetchedTile, FetchedCommonTile, MapTheme };
|
|
176
|
+
export { VectorCustomizationTypes, VectorCustomizationElements, VectorCustomizationItem, VectorCustomization, CustomizationTypes, CustomizationElements, CustomizationItem, Customization, CustomizationConfig, CustomizationOptions, RasterTileDataSourceDescription, FetchHotspotsFunction, VectorTileDataSourceDescription, VectorTileSize, VectorObjectsCollisionPriority, VectorDataSourcePriority, VectorMapType, VectorTileZoomRanges, HotspotsOptions, FetchTileFunction, ComposeTileUrlFunction, Hotspot, WorldHotspot, RenderedHotspot, FetchedRasterTile, FetchedTile, FetchedCommonTile, MapTheme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mappable-world/mappable-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18399252",
|
|
4
4
|
"description": "Types for mappable maps library",
|
|
5
5
|
"main": "",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"homepage": "https://mappable.world",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@types/react": "16
|
|
22
|
-
"@types/react-dom": "16
|
|
21
|
+
"@types/react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
22
|
+
"@types/react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
23
23
|
"@vue/runtime-core": "3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependenciesMeta": {
|
|
@@ -6,6 +6,7 @@ import type { Projection, LngLat, WorldCoordinates } from "../../common/types";
|
|
|
6
6
|
* @name Cartesian
|
|
7
7
|
* @class Cartesian projection of a rectangular area.
|
|
8
8
|
* @augments Projection
|
|
9
|
+
* @deprecated Package @mappable-world/cartesian-projection@0.0.1 is deprecated. Please use https://www.npmjs.com/package/@mappable-world/mappable-cartesian-projection instead.
|
|
9
10
|
* @param {[[Number, Number], [Number, Number]]} bounds An array of two points -
|
|
10
11
|
* coordinates of the lower left and upper right corners of the rectangular coordinate area.
|
|
11
12
|
* @param {Boolean[]} [cycled=[false, false]] An array of signs of map looping by x and y.
|
|
@@ -29,7 +29,7 @@ declare const defaultProps: Readonly<{
|
|
|
29
29
|
}>;
|
|
30
30
|
/**
|
|
31
31
|
* Display clustered features on a map.
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Package @mappable-world/clusterer@0.0.1 is deprecated. Please use https://www.npmjs.com/package/@mappable-world/mappable-clusterer instead.
|
|
33
33
|
* @example
|
|
34
34
|
* ```javascript
|
|
35
35
|
* const clusterer = new MMapClusterer({
|
|
@@ -30,6 +30,7 @@ declare const defaultProps: Readonly<{
|
|
|
30
30
|
type DefaultProps = typeof defaultProps;
|
|
31
31
|
/**
|
|
32
32
|
* Display geolocation control on a map.
|
|
33
|
+
* @deprecated Package @mappable-world/controls@0.0.1 is deprecated. Please use https://www.npmjs.com/package/@mappable-world/mappable-default-ui-theme instead.
|
|
33
34
|
*
|
|
34
35
|
* @example
|
|
35
36
|
* ```javascript
|
|
@@ -15,7 +15,7 @@ declare const defaultProps: Readonly<{
|
|
|
15
15
|
type DefaultProps = typeof defaultProps;
|
|
16
16
|
/**
|
|
17
17
|
* Display zoom control on a map.
|
|
18
|
-
*
|
|
18
|
+
* @deprecated Package @mappable-world/controls@0.0.1 is deprecated. Please use https://www.npmjs.com/package/@mappable-world/mappable-default-ui-theme instead.
|
|
19
19
|
* @example
|
|
20
20
|
* ```javascript
|
|
21
21
|
* const controls = new MMapControls({position: 'right'});
|
|
@@ -9,6 +9,7 @@ type MMapHintProps = {
|
|
|
9
9
|
declare const MMapHintContext: import("../../../imperative/MMapEnities").MMapContext<unknown>;
|
|
10
10
|
/**
|
|
11
11
|
* Display hint on map elements.
|
|
12
|
+
* @deprecated Package @mappable-world/hint@0.0.1 is deprecated. Please use https://www.npmjs.com/package/@mappable-world/mappable-hint instead.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* ```javascript
|
|
@@ -28,6 +28,7 @@ declare const defaultProps: Readonly<{
|
|
|
28
28
|
type DefaultProps = typeof defaultProps;
|
|
29
29
|
/**
|
|
30
30
|
* Default marker.
|
|
31
|
+
* @deprecated Package @mappable-world/markers@0.0.1 is deprecated. Please use https://www.npmjs.com/package/@mappable-world/mappable-default-ui-theme instead.
|
|
31
32
|
*
|
|
32
33
|
* @example
|
|
33
34
|
* ```javascript
|
|
@@ -5,7 +5,7 @@ import type { Projection } from "../../common/types";
|
|
|
5
5
|
* @name projection.sphericalMercator
|
|
6
6
|
* @augments Projection
|
|
7
7
|
* @static
|
|
8
|
-
* @deprecated
|
|
8
|
+
* @deprecated Package @mappable-world/spherical-mercator-projection@0.0.1 is deprecated. Please use https://www.npmjs.com/package/@mappable-world/mappable-web-mercator-projection instead.
|
|
9
9
|
* @example
|
|
10
10
|
* ```js
|
|
11
11
|
* const {SphericalMercator} = await mappable.import('@mappable-world/mappable-spherical-mercator-projection@0.0.1');
|