@mappable-world/mappable-types 0.0.13 → 0.0.15

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.
@@ -130,6 +130,7 @@ interface VectorTileDataSourceDescription {
130
130
  allObjectsInteractive?: boolean;
131
131
  /** Forces tiles to wait for the icons, disables hiding icons by zoom diff */
132
132
  iconsOnlyTiles?: boolean;
133
+ richModelDecoderWorkerUrl?: string;
133
134
  customization?: VectorCustomization;
134
135
  theme?: MapTheme;
135
136
  /** Defines how hotspots of type should be treated: enabled/disabled or use custom hotspots instead. */
@@ -1,6 +1,11 @@
1
1
  import type { LngLat } from "./lng-lat";
2
2
  import type { WorldCoordinates } from "./coordinates";
3
3
  interface GenericProjection<TSource> {
4
+ /** Projection identity type. It may be:
5
+ * - EPSG-code (e.g. [EPSG:3857](https://epsg.io/3857))
6
+ * - any other string to identify (e.g. 'cartesian')
7
+ **/
8
+ readonly type?: string;
4
9
  toWorldCoordinates(point: TSource): WorldCoordinates;
5
10
  fromWorldCoordinates(coordinates: WorldCoordinates): TSource;
6
11
  }
@@ -35,9 +35,9 @@ export type MMapLocation = MMapCenterZoomLocation & Partial<MMapBoundsLocation>;
35
35
  * Observer camera position
36
36
  */
37
37
  export type MMapCamera = {
38
- /** Map tilt in radians. Can take values from 0 to 45 degrees (degrees * (Math.PI / 180)) */
38
+ /** Map tilt in radians. Can take values from 0 to 50 degrees (degrees * (Math.PI / 180)) */
39
39
  tilt?: number;
40
- /** Map rotation in degrees. Can take values from -180 to 180 degrees */
40
+ /** Map rotation in radians. Can take values from -Math.PI to Math.PI */
41
41
  azimuth?: number;
42
42
  };
43
43
  /**
@@ -85,6 +85,8 @@ export type MMapProps = {
85
85
  hotspotsStrategy?: "forViewport" | "forPointerPosition";
86
86
  /** Position of copyright on the page. Default is 'bottom right' */
87
87
  copyrightsPosition?: MMapCopyrightsPosition;
88
+ /** Show the map scale next to copyright */
89
+ showScaleInCopyrights?: boolean;
88
90
  /**
89
91
  * Projection used in map
90
92
  */
@@ -111,6 +113,7 @@ declare const defaultProps: Readonly<{
111
113
  margin: Margin | undefined;
112
114
  copyrights: true;
113
115
  copyrightsPosition: "bottom right";
116
+ showScaleInCopyrights: false;
114
117
  worldOptions: {
115
118
  cycledX: boolean;
116
119
  cycledY: boolean;
@@ -157,6 +160,7 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
157
160
  margin: Margin | undefined;
158
161
  copyrights: true;
159
162
  copyrightsPosition: "bottom right";
163
+ showScaleInCopyrights: false;
160
164
  worldOptions: {
161
165
  cycledX: boolean;
162
166
  cycledY: boolean;
@@ -181,6 +185,7 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
181
185
  hotspotsStrategy?: "forViewport" | "forPointerPosition" | undefined;
182
186
  copyrights?: boolean | undefined;
183
187
  copyrightsPosition?: MMapCopyrightsPosition | undefined;
188
+ showScaleInCopyrights?: boolean | undefined;
184
189
  projection?: Projection | undefined;
185
190
  worldOptions?: WorldOptions | undefined;
186
191
  theme?: MMapTheme | undefined;
@@ -257,6 +262,11 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
257
262
  * @param location
258
263
  */
259
264
  setLocation(location: MMapLocationRequest): void;
265
+ /**
266
+ * setter for {@link MMapProps}.camera prop
267
+ * @param camera
268
+ */
269
+ setCamera(camera: MMapCameraRequest): void;
260
270
  private __setLocation;
261
271
  /**
262
272
  * setter for {@link MMapProps}.mode prop
@@ -1,2 +1,2 @@
1
- import { sphericalMercator } from "../utils/projections/spherical-mercator";
2
- export { sphericalMercator as projection };
1
+ import { WebMercator } from "../utils/projections/web-mercator";
2
+ export declare const projection: WebMercator;
@@ -3,7 +3,14 @@ import { MMapGroupEntity } from "../MMapEnities";
3
3
  /**
4
4
  * MMapControl props
5
5
  */
6
- export type MMapControlProps = {};
6
+ export type MMapControlProps = {
7
+ /** Makes the control transparent by removing background color and shadows */
8
+ transparent?: boolean;
9
+ };
10
+ declare const defaultProps: Readonly<{
11
+ transparent: false;
12
+ }>;
13
+ type DefaultProps = typeof defaultProps;
7
14
  /**
8
15
  * DOM wrapper for creating custom controls. Connects the styles required by the control.
9
16
  *
@@ -30,20 +37,27 @@ export type MMapControlProps = {};
30
37
  *
31
38
  * @module MMapControl
32
39
  */
33
- export declare class MMapControl<T extends MMapControlProps = MMapControlProps> extends MMapGroupEntity<T> {
34
- static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<MMapControl<MMapControlProps>, import("react").ForwardRefExoticComponent<{
40
+ export declare class MMapControl extends MMapGroupEntity<MMapControlProps, DefaultProps> {
41
+ static defaultProps: Readonly<{
42
+ transparent: false;
43
+ }>;
44
+ static [overrideKeyReactify]: import("../../reactify/reactify").CustomReactify<MMapControl, import("react").ForwardRefExoticComponent<{
45
+ transparent?: boolean | undefined;
35
46
  children?: import("react").ReactNode;
36
- ref?: import("react").Ref<import("../Entities").GenericEntity<{
47
+ ref?: import("react").Ref<import("../Entities").GenericEntity<MMapControlProps & {
37
48
  controlElement: HTMLElement;
38
49
  }, {}, import("../Entities").GenericRootEntity<unknown, {}>>> | undefined;
39
50
  key?: import("react").Key | null | undefined;
40
51
  }>>;
41
- private _detachDom?;
42
52
  private _element?;
53
+ private _detachDom?;
43
54
  private _unwatchThemeContext?;
44
- constructor();
55
+ constructor(props?: MMapControlProps);
45
56
  protected _createDom(): HTMLElement;
46
57
  protected _onAttach(): void;
58
+ protected _onUpdate(props: Partial<MMapControlProps>): void;
59
+ private __watchThemeContext;
47
60
  protected _onDetach(): void;
48
61
  private _updateTheme;
49
62
  }
63
+ export {};
@@ -3,9 +3,12 @@ type MMapCopyrightsPosition = "top left" | "top right" | "bottom left" | "bottom
3
3
  type MMapCopyrightsProps = {
4
4
  /** Position of copyright on the map */
5
5
  position?: MMapCopyrightsPosition;
6
+ /** Show the map scale next to the map */
7
+ showScale?: boolean;
6
8
  };
7
9
  declare const defaultProps: Readonly<{
8
10
  position: MMapCopyrightsPosition;
11
+ showScale: false;
9
12
  }>;
10
13
  type DefaultProps = typeof defaultProps;
11
14
  /**
@@ -15,12 +18,15 @@ type DefaultProps = typeof defaultProps;
15
18
  declare class MMapCopyrights extends MMapGroupEntity<MMapCopyrightsProps, DefaultProps> {
16
19
  static defaultProps: Readonly<{
17
20
  position: MMapCopyrightsPosition;
21
+ showScale: false;
18
22
  }>;
19
23
  private _boxElement;
20
24
  private _copyrightsTextElement;
21
25
  private _linkElement;
22
26
  private _logoElement;
23
27
  private _copyrightsContainer;
28
+ private _scaleElement;
29
+ private _scaleControl;
24
30
  private _mapWidth;
25
31
  private _copyrights;
26
32
  private _fixedCopyrights;
@@ -30,8 +36,8 @@ declare class MMapCopyrights extends MMapGroupEntity<MMapCopyrightsProps, Defaul
30
36
  private _unwatchThemeContext?;
31
37
  private _detachDom?;
32
38
  constructor(props?: MMapCopyrightsProps);
33
- protected _updateDom(): void;
34
39
  protected _onAttach(): void;
40
+ protected _onUpdate(props: Partial<MMapCopyrightsProps>): void;
35
41
  protected _onDetach(): void;
36
42
  private _createDom;
37
43
  private _syncDom;
@@ -43,5 +49,6 @@ declare class MMapCopyrights extends MMapGroupEntity<MMapCopyrightsProps, Defaul
43
49
  private _setFixedCopyrights;
44
50
  private _copyrightsChangeHandler;
45
51
  private _adjustText;
52
+ private _toggleScaleControl;
46
53
  }
47
54
  export { MMapCopyrights, MMapCopyrightsPosition, MMapCopyrightsProps };
@@ -2,7 +2,7 @@ import { MMapComplexEntity } from "../MMapEnities";
2
2
  interface MMapCoverageProps {
3
3
  onError?: (e: Error) => void;
4
4
  }
5
- export declare const COVERAGE_LAYERS_TO_SOURCES: Record<string, string>;
5
+ export declare const COVERAGE_LAYERS_TO_SOURCES: Map<string, string>;
6
6
  /**
7
7
  * The component of loading data on copyrights on the map and the zoom range for
8
8
  * the area where the center of the map is located
@@ -7,6 +7,8 @@ type MMapDefaultFeaturesLayerProps = {
7
7
  visible?: boolean;
8
8
  /** Layer z-index */
9
9
  zIndex?: number;
10
+ /** Name for source */
11
+ source?: string;
10
12
  };
11
13
  declare const defaultProps: Readonly<{
12
14
  visible: true;
@@ -1,10 +1,15 @@
1
1
  import type { VectorCustomization } from "../../common/types";
2
+ import { MMapLayerProps } from "../MMapLayer";
2
3
  import { MMapComplexEntity } from "../MMapEnities";
4
+ type MMapDefaultSchemeLayerType = "ground" | "buildings" | "icons" | "labels";
3
5
  /**
4
6
  * MMapDefaultSchemeLayer props
5
7
  */
6
8
  type MMapDefaultSchemeLayerProps = {
7
- /** Should show layer */
9
+ /**
10
+ * Should show layers
11
+ * @deprecated use {@link MMapDefaultSchemeLayerProps}.layers instead
12
+ */
8
13
  visible?: boolean;
9
14
  /** Vector tiles customization. */
10
15
  customization?: VectorCustomization;
@@ -13,28 +18,33 @@ type MMapDefaultSchemeLayerProps = {
13
18
  * @deprecated use {@link MMapProps}.theme prop in {@link MMap} instead
14
19
  * */
15
20
  theme?: "dark" | "light";
21
+ /** Name for source */
22
+ source?: string;
23
+ /** Layers parameters */
24
+ layers?: Partial<Record<MMapDefaultSchemeLayerType, Partial<MMapLayerProps>>>;
16
25
  };
17
26
  declare const defaultProps: {
18
27
  visible: boolean;
19
28
  source: string;
20
- layersInfo: {
29
+ layers: {
21
30
  ground: {
22
- type: string;
23
31
  zIndex: number;
24
32
  };
25
33
  buildings: {
26
- type: string;
27
34
  zIndex: number;
28
35
  };
29
36
  icons: {
30
- type: string;
31
37
  zIndex: number;
32
38
  };
33
39
  labels: {
34
- type: string;
35
40
  zIndex: number;
36
41
  };
37
42
  };
43
+ /** @deprecated use {@link DefaultProps}.layers instead */
44
+ readonly layersInfo: Record<MMapDefaultSchemeLayerType, {
45
+ type: string;
46
+ zIndex: number;
47
+ }>;
38
48
  };
39
49
  type DefaultProps = typeof defaultProps;
40
50
  /**
@@ -53,24 +63,25 @@ declare class MMapDefaultSchemeLayer extends MMapComplexEntity<MMapDefaultScheme
53
63
  static defaultProps: {
54
64
  visible: boolean;
55
65
  source: string;
56
- layersInfo: {
66
+ layers: {
57
67
  ground: {
58
- type: string;
59
68
  zIndex: number;
60
69
  };
61
70
  buildings: {
62
- type: string;
63
71
  zIndex: number;
64
72
  };
65
73
  icons: {
66
- type: string;
67
74
  zIndex: number;
68
75
  };
69
76
  labels: {
70
- type: string;
71
77
  zIndex: number;
72
78
  };
73
79
  };
80
+ /** @deprecated use {@link DefaultProps}.layers instead */
81
+ readonly layersInfo: Record<MMapDefaultSchemeLayerType, {
82
+ type: string;
83
+ zIndex: number;
84
+ }>;
74
85
  };
75
86
  private _dataSource?;
76
87
  private _layers;
@@ -79,8 +90,6 @@ declare class MMapDefaultSchemeLayer extends MMapComplexEntity<MMapDefaultScheme
79
90
  protected _onAttach(): void;
80
91
  protected _onDetach(): void;
81
92
  protected _onUpdate(propsDiff: Partial<MMapDefaultSchemeLayerProps>): void;
82
- private _createTileUrl;
83
- private _getProjectionQuery;
84
93
  private _getDataSourceDescription;
85
94
  private _updateTheme;
86
95
  }
@@ -64,6 +64,7 @@ declare class MMapFeature extends MMapEntity<MMapFeatureProps, DefaultProps> {
64
64
  private __onClick;
65
65
  private __onDoubleClick;
66
66
  private __onFastClick;
67
- private __isMy;
67
+ private __isMySomeObject;
68
+ private __isMyDraggableObject;
68
69
  }
69
70
  export { MMapFeature, MMapFeatureProps };
@@ -0,0 +1,14 @@
1
+ import type { UnitType } from ".";
2
+ /**
3
+ * Converts the distance in one set of units to another set of units
4
+ * @param distance - non-rounded distance in meters
5
+ * @param unit - unit of measurement to be converted to
6
+ * @returns converted distance value
7
+ */
8
+ export declare function convertDistanceToUnit(distance: number, unit: UnitType): number;
9
+ /**
10
+ * Rounds off the integer distance to the nearest round number
11
+ * @param rawDistance - unrounded distance
12
+ * @returns Rounded distance
13
+ */
14
+ export declare function floorToNearestTenths(rawDistance: number): number;
@@ -0,0 +1,34 @@
1
+ import { MMapComplexEntity } from "../MMapEnities";
2
+ export type UnitType = "imperial" | "metric" | "nautical";
3
+ type MMapScaleControlProps = {
4
+ /** Maximum width of scale line in pixels */
5
+ maxWidth?: number;
6
+ /** Units of measurement for the scale line */
7
+ unit?: UnitType;
8
+ };
9
+ declare const defaultProps: Readonly<{
10
+ maxWidth: 74;
11
+ unit: "metric";
12
+ }>;
13
+ type DefaultProps = typeof defaultProps;
14
+ declare class MMapScaleControl extends MMapComplexEntity<MMapScaleControlProps, DefaultProps> {
15
+ static defaultProps: Readonly<{
16
+ maxWidth: 74;
17
+ unit: "metric";
18
+ }>;
19
+ private _unwatchThemeContext?;
20
+ private _detachDom?;
21
+ private _element?;
22
+ private _labelElement?;
23
+ private _listener?;
24
+ constructor(props: MMapScaleControlProps);
25
+ protected _onAttach(): void;
26
+ protected _onDetach(): void;
27
+ private _createDom;
28
+ private _updateDom;
29
+ private _updateTheme;
30
+ private _onMapUpdate;
31
+ private _updateDistance;
32
+ private _formatDistance;
33
+ }
34
+ export { MMapScaleControl, MMapScaleControlProps };
@@ -50,9 +50,12 @@ type MMapTileDataSourceProps = {
50
50
  */
51
51
  declare class MMapTileDataSource extends MMapEntity<MMapTileDataSourceProps> {
52
52
  private _id;
53
+ private _unwatchVectorContext?;
53
54
  protected _onAttach(): void;
54
55
  protected _onDetach(): void;
55
56
  protected _onUpdate(props: Partial<MMapTileDataSourceProps>): void;
56
- private _validateVectorSource;
57
+ private _getDataSourceDescription;
58
+ private _onVectorContextUpdate;
59
+ private _prepareVectorSource;
57
60
  }
58
61
  export { MMapTileDataSource, MMapTileDataSourceProps };
@@ -1,3 +1,4 @@
1
+ import * as projections_ from "./utils/projections";
1
2
  export { MMap, MMapProps, MMapCenterLocation, MMapZoomLocation, MMapBoundsLocation, MMapCenterZoomLocation, MMapLocationRequest, MMapCameraRequest } from "./MMap";
2
3
  export { MMapThemeContext, ThemeContext, MMapTheme } from "./ThemeContext";
3
4
  export { MMapCopyrightsPosition } from "./MMapCopyrights";
@@ -16,6 +17,7 @@ export { MMapControls, MMapControlsProps } from "./MMapControls";
16
17
  export { MMapControl, MMapControlProps, MMapControlButton, MMapControlButtonProps, MMapControlCommonButton } from "./MMapControl";
17
18
  export { MMapCollection } from "./MMapCollection";
18
19
  export { MMapContainer, MMapContainerProps, MMapContainerPropsImpl, ComputedMMapContainerProps } from "./MMapContainer";
20
+ export { MMapScaleControl, MMapScaleControlProps } from "./MMapScaleControl";
19
21
  export * from "./mappable-worldMaps";
20
22
  export * from "./search";
21
23
  export * from "./suggest";
@@ -24,7 +26,11 @@ export { geolocation } from "./geolocation";
24
26
  export { useDomContext, DomDetach } from "./DomContext";
25
27
  export { Config, getDefaultConfig } from "./config";
26
28
  export { fetchConfig, FetchConfigOptions } from "./fetchConfig";
27
- export * as projections from "./utils/projections";
29
+ /** @deprecated Use mappable packages instead */
30
+ export declare const projections: {
31
+ /** @deprecated Use [Web Mercator package](https://www.npmjs.com/package/@mappable-world/mappable-web-mercator-projection) instead. */
32
+ sphericalMercator: projections_.WebMercator;
33
+ };
28
34
  /** Toggle this to enable/disable strict mode. */
29
35
  export declare let strictMode: boolean;
30
36
  export type { LngLat, ReadonlyLngLat, LngLatBounds, BehaviorType, MapMode, Margin, ZoomRange, ZoomStrategy, ZoomRounding, VectorCustomizationTypes, VectorCustomizationElements, VectorCustomizationItem, VectorCustomization, RasterTileDataSourceDescription, VectorTileDataSourceDescription, RasterLayerOptions, EasingFunctionDescription, EasingPresetName, EasingBezierPreset, EasingFunction, DrawingStyle, DrawingStyleIcon, VectorTileSize, VectorObjectsCollisionPriority, VectorDataSourcePriority } from "../common/types";
@@ -1,4 +1,4 @@
1
1
  import { Config } from "../config";
2
- import type { BaseRouteResponse, RouteOptions } from "./interface";
2
+ import type { BaseRouteResponse, RouteOptions, RouteFeature } from "./interface";
3
3
  export declare function route(options: RouteOptions, config?: Config | undefined): Promise<BaseRouteResponse[]>;
4
- export { RouteOptions, BaseRouteResponse };
4
+ export { RouteOptions, BaseRouteResponse, RouteFeature };
@@ -0,0 +1 @@
1
+ import type { LayerImplementationClasses } from "../../common/types/layer-implementation";
@@ -1 +1 @@
1
- export * from "./spherical-mercator";
1
+ export * from "./web-mercator";
@@ -2,18 +2,18 @@ import type { Projection, LngLat, WorldCoordinates } from "../../../common/types
2
2
  /**
3
3
  * @class Mercator projection onto a sphere.
4
4
  * Used by many mapping services, in particular OpenStreetMap.
5
- * @name projection.sphericalMercator
5
+ * @name projection.webMercator
6
6
  * @augments Projection
7
7
  * @static
8
8
  * @example
9
9
  * ```js
10
- * // Create a map in the spherical Mercator projection
10
+ * // Create a map in the web Mercator projection
11
11
  * const map = new mappable.MMap(document.getElementById('MMapsID'), {
12
12
  * location: {
13
13
  * center: [37, 55],
14
14
  * zoom: 6
15
15
  * },
16
- * projection: new mappable.SphericalMercator()
16
+ * projection: new WebMercator()
17
17
  * });
18
18
  * const dataSourceProps = {
19
19
  * raster: {
@@ -34,8 +34,9 @@ import type { Projection, LngLat, WorldCoordinates } from "../../../common/types
34
34
  * });
35
35
  * ```
36
36
  */
37
- declare class SphericalMercator implements Projection {
37
+ export declare class WebMercator implements Projection {
38
38
  private _maxLatitudeRad;
39
+ type: string;
39
40
  toWorldCoordinates(coords: LngLat): WorldCoordinates;
40
41
  fromWorldCoordinates(world: WorldCoordinates): LngLat;
41
42
  private _worldXToLongitude;
@@ -43,5 +44,5 @@ declare class SphericalMercator implements Projection {
43
44
  private _latitudeToWorldY;
44
45
  private _worldYToLatitude;
45
46
  }
46
- declare const sphericalMercator: SphericalMercator;
47
- export { sphericalMercator };
47
+ /** @deprecated Use WebMercator instead */
48
+ export declare const SphericalMercator: typeof WebMercator;
package/import.d.ts CHANGED
@@ -4,9 +4,16 @@ export type Module = Function | null | {
4
4
  [key: string]: Function | object;
5
5
  };
6
6
  export type Loader = (pkg: string) => Promise<Module> | Module;
7
+ type Packages = Record<string, {
8
+ version: string;
9
+ path?: string;
10
+ export?: string;
11
+ }>;
7
12
  export interface Import {
8
13
  loaders: Loader[];
9
14
  default: Loader;
15
+ cdn: (templatePath: string, packages: Packages | string[] | string) => Loader;
16
+ registerCdn: (templatePath: string, packages: Packages | string[] | string) => void;
10
17
  script: (url: string) => Promise<unknown>;
11
18
  cssText: (cssText: string, name: string) => Promise<unknown>;
12
19
  style: (url: string) => Promise<unknown>;
package/package.json CHANGED
@@ -1,25 +1,23 @@
1
1
  {
2
2
  "name": "@mappable-world/mappable-types",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Types for mappable maps library",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
7
- "keywords": [
8
- "mappable-world",
9
- "api",
10
- "map",
11
- "mappable",
12
- "types",
13
- "js api"
14
- ],
7
+ "keywords": ["mappable-world", "api", "map", "mappable", "types", "js api"],
15
8
  "publishConfig": {
16
9
  "registry": "https://registry.npmjs.org"
17
10
  },
18
11
  "homepage": "https://mappable.world",
19
12
  "license": "Apache-2.0",
20
- "dependencies": {
21
- "@types/react": "*",
22
- "@types/react-dom": "*",
23
- "@vue/runtime-core": "*"
13
+ "peerDependencies": {
14
+ "@types/react": "16-18",
15
+ "@types/react-dom": "16-18",
16
+ "@vue/runtime-core": "3"
17
+ },
18
+ "peerDependenciesMeta": {
19
+ "@types/react": {"optional": true},
20
+ "@types/react-dom": {"optional": true},
21
+ "@vue/runtime-core": {"optional": true}
24
22
  }
25
23
  }
@@ -37,6 +37,7 @@ export declare class Cartesian implements Projection {
37
37
  private _cycled;
38
38
  private _xRange;
39
39
  private _yRange;
40
+ readonly type = "cartesian";
40
41
  constructor(bounds: [
41
42
  LngLat,
42
43
  LngLat
@@ -5,9 +5,10 @@ import type { Projection } from "../../common/types";
5
5
  * @name projection.sphericalMercator
6
6
  * @augments Projection
7
7
  * @static
8
+ * @deprecated Use [Web Mercator package](https://www.npmjs.com/package/@mappable-world/mappable-web-mercator-projection) instead.
8
9
  * @example
9
10
  * ```js
10
- * const { SphericalMercator } = await mappable.import('@mappable-world/mappable-spherical-mercator-projection@0.0.1');
11
+ * const {SphericalMercator} = await mappable.import('@mappable-world/mappable-spherical-mercator-projection@0.0.1');
11
12
  * // Create a map in the spherical Mercator projection
12
13
  * const map = new mappable.MMap(document.getElementById('MMapsID'), {
13
14
  * location: {
@@ -38,7 +38,7 @@ export interface ReactifyModule {
38
38
  }
39
39
  export type GetReactContext<TContext extends Context<unknown>> = (context?: TContext | undefined) => React.Context<unknown>;
40
40
  export type ReactifiedModule<TModule extends BaseModule> = {
41
- [Property in keyof TModule]: TModule[Property] extends EntityConstructor<GenericEntity<unknown>> ? ReturnType<InternalReactifyEntity<TModule[Property]>> : TModule[Property] extends typeof Context ? ReturnType<GetReactContext<TModule[Property]>> : TModule[Property];
41
+ [Property in keyof TModule]: TModule[Property] extends EntityConstructor<GenericEntity<unknown>> ? ReturnType<InternalReactifyEntity<TModule[Property]>> : TModule[Property] extends Context<any> ? ReturnType<GetReactContext<TModule[Property]>> : TModule[Property];
42
42
  };
43
43
  export type BaseModule = Record<string | symbol, unknown>;
44
44
  export type Prettify<T> = {