@mappable-world/mappable-types 0.0.15098584 → 0.0.15118796

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.
@@ -259,6 +259,7 @@ declare class MMap extends GenericRootEntity<MMapProps, DefaultProps> {
259
259
  projection?: Projection | undefined;
260
260
  worldOptions?: WorldOptions | undefined;
261
261
  theme?: MMapTheme | undefined;
262
+ tiltRange?: TiltRange | undefined;
262
263
  children?: import("react").ReactNode;
263
264
  ref?: import("react").Ref<MMap> | undefined;
264
265
  key?: import("react").Key | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappable-world/mappable-types",
3
- "version": "0.0.15098584",
3
+ "version": "0.0.15118796",
4
4
  "description": "Types for mappable maps library",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
@@ -1,9 +0,0 @@
1
- import { MMapComplexEntity } from "../../../imperative/MMapEnities";
2
- type MMapCustomDomLayerProps = {
3
- id: string;
4
- zIndex: number;
5
- };
6
- declare class MMapCustomDomLayer extends MMapComplexEntity<MMapCustomDomLayerProps> {
7
- constructor(props: MMapCustomDomLayerProps);
8
- }
9
- export { MMapCustomDomLayer, MMapCustomDomLayerProps };
@@ -1,56 +0,0 @@
1
- import { MMapComplexEntity } from "../../../imperative/MMapEnities";
2
- import type { CustomVuefyOptions } from "../../vuefy";
3
- import { MMapFeatureEditorDefaultPoint } from "./MMapFeatureEditorDefaultPoint";
4
- import { MMapFeatureEditorDefaultPreviewPoint } from "./MMapFeatureEditorDefaultPreviewPoint";
5
- import type { MMapFeatureEditorProps } from "./interface";
6
- declare const defaultProps: Readonly<{
7
- isActive: true;
8
- featureStyle: {};
9
- prefix: "EDITOR";
10
- zIndex: 2600;
11
- pointZIndex: 1900;
12
- previewPointZIndex: 1800;
13
- previewPointElement: MMapFeatureEditorDefaultPreviewPoint;
14
- renderPoint: () => MMapFeatureEditorDefaultPoint;
15
- }>;
16
- type DefaultProps = typeof defaultProps;
17
- declare class MMapFeatureEditor extends MMapComplexEntity<MMapFeatureEditorProps, DefaultProps> {
18
- static defaultProps: Readonly<{
19
- isActive: true;
20
- featureStyle: {};
21
- prefix: "EDITOR";
22
- zIndex: 2600;
23
- pointZIndex: 1900;
24
- previewPointZIndex: 1800;
25
- previewPointElement: MMapFeatureEditorDefaultPreviewPoint;
26
- renderPoint: () => MMapFeatureEditorDefaultPoint;
27
- }>;
28
- static [mappable.optionsKeyVuefy]: CustomVuefyOptions<MMapFeatureEditor>;
29
- private _previewPoint;
30
- private _draggingPoint;
31
- private _getName;
32
- private _getZIndex;
33
- private shape;
34
- private line;
35
- constructor(props: MMapFeatureEditorProps);
36
- private _updatePreviewPoint;
37
- private _updateDraggingPoint;
38
- protected _onUpdate({ points, geometry, featureStyle, isActive, prefix, zIndex }: Partial<MMapFeatureEditorProps>): void;
39
- private _markers;
40
- private _upsertMarker;
41
- private _previewMarker;
42
- private _upsertPreviewPoint;
43
- private handleLayerClick;
44
- private handlePointClick;
45
- private handlePointDblClick;
46
- private _handleDragStart;
47
- private handlePreviewDragStart;
48
- private handleDragMove;
49
- private handlePreviewDragMove;
50
- private handleMouseMove;
51
- private handlePreviewPointClick;
52
- private _handleDragEnd;
53
- }
54
- export declare function getCorrectName(prefix: string, postfix: string): string;
55
- export declare function getCorrectZIndex(zIndex: number, offset: number): number;
56
- export { MMapFeatureEditor, MMapFeatureEditorProps };
@@ -1,8 +0,0 @@
1
- import { MMapGroupEntity } from "../../../imperative";
2
- declare class MMapFeatureEditorDefaultPoint extends MMapGroupEntity<{}> {
3
- private _detachDom?;
4
- private _element?;
5
- protected _onAttach(): void;
6
- protected _onDetach(): void;
7
- }
8
- export { MMapFeatureEditorDefaultPoint };
@@ -1,8 +0,0 @@
1
- import { MMapGroupEntity } from "../../../imperative";
2
- declare class MMapFeatureEditorDefaultPreviewPoint extends MMapGroupEntity<{}> {
3
- private _detachDom?;
4
- private _element?;
5
- protected _onAttach(): void;
6
- protected _onDetach(): void;
7
- }
8
- export { MMapFeatureEditorDefaultPreviewPoint };
@@ -1,17 +0,0 @@
1
- export declare const DEFAULT_PREFIX = "EDITOR";
2
- export declare const DEFAULT_Z_INDEX = 2600;
3
- export declare const DEFAULT_POINT_Z_INDEX = 1900;
4
- export declare const DEFAULT_PREVIEW_POINT_Z_INDEX = 1800;
5
- export declare const EVENT_BLOCKER_LAYER_POSTFIX = "EVENT_BLOCKER_LAYER";
6
- export declare const EVENT_BLOCKER_LAYER_Z_INDEX_OFFSET = 0;
7
- export declare const FEATURE_POLYGON_SOURCE_POSTFIX = "FEATURE_POLYGON_SOURCE";
8
- export declare const FEATURE_POLYGON_LAYER_POSTFIX = "FEATURE_POLYGON_LAYER";
9
- export declare const FEATURE_POLYGON_LAYER_Z_INDEX_OFFSET = 100;
10
- export declare const FEATURE_LINE_SOURCE_POSTFIX = "FEATURE_LINE_SOURCE";
11
- export declare const FEATURE_LINE_LAYER_POSTFIX = "FEATURE_LINE_LAYER";
12
- export declare const FEATURE_LINE_LAYER_Z_INDEX_OFFSET = 200;
13
- export declare const MARKER_SOURCE_POSTFIX = "MARKER_SOURCE";
14
- export declare const MARKER_LAYER_POSTFIX = "MARKER_LAYER";
15
- export declare const MARKER_LAYER_Z_INDEX_OFFSET = 300;
16
- export declare const LINE_POSTFIX = "LINE";
17
- export declare const POLYGON_POSTFIX = "POLYGON";
@@ -1,2 +0,0 @@
1
- export * from "./defaults";
2
- export * from "./MMapFeatureEditor";
@@ -1,32 +0,0 @@
1
- import type { LngLat, DrawingStyle, GenericLineStringGeometry, GenericPolygonGeometry } from "../../../common/types";
2
- import type { MMapEntity } from "../../../imperative";
3
- export type Geometry = GenericPolygonGeometry<LngLat> | GenericLineStringGeometry<LngLat>;
4
- export interface DraggingPoint {
5
- point: LngLat;
6
- index: number;
7
- }
8
- export interface PreviewPoint {
9
- point: LngLat;
10
- segmentIndex: number;
11
- }
12
- export type MMapFeatureEditorProps = {
13
- isActive?: boolean;
14
- points: LngLat[];
15
- geometry: Geometry;
16
- featureStyle?: DrawingStyle;
17
- renderPoint?: (index: number) => HTMLElement | MMapEntity<unknown>;
18
- previewPointElement?: false | HTMLElement | MMapEntity<unknown>;
19
- onLayerClick?: (coordinates: LngLat, index: number) => void;
20
- onPointClick?: (index: number) => void;
21
- onPointDblClick?: (index: number) => void;
22
- onPointDrag?: (coordinates: LngLat, index: number) => void;
23
- onPreviewPointClick?: (coordinates: LngLat, index: number) => void;
24
- onPreviewPointDragStart?: (coordinates: LngLat, index: number) => void;
25
- onPreviewPointDrag?: (coordinates: LngLat, index: number) => void;
26
- onDrag?: (newGeometry: Geometry) => void;
27
- prefix?: string;
28
- zIndex?: number;
29
- /** z index of marker point/preview point, defaults to {@link DEFAULT_Z_INDEX} */
30
- pointZIndex?: number;
31
- previewPointZIndex?: number;
32
- };
@@ -1,6 +0,0 @@
1
- import type { LngLat, Projection } from "../../../common/types";
2
- import type { PreviewPoint } from "./interface";
3
- declare function getPointWorld(point: LngLat): number;
4
- declare function findPointProjectionOnLine(projection: Projection, lineCoordinates: LngLat[], point: LngLat, lineWidth: number, zoom: number): PreviewPoint | undefined;
5
- declare function findIndexForNewPoint(coordinates: LngLat[], points: LngLat[], pointIndex: number): number;
6
- export { getPointWorld, findIndexForNewPoint, findPointProjectionOnLine, PreviewPoint };
@@ -1 +0,0 @@
1
- export * from "./MMapFeatureEditor";
@@ -1,50 +0,0 @@
1
- import { optionsKeyVuefy, MMapComplexEntity, MMapLayerProps } from "../../imperative";
2
- import type { CustomVuefyOptions } from "../vuefy";
3
- type MMapCarparksLayerType = "ground" | "icons";
4
- type MMapCarparksLayerProps = {
5
- /** Should show layer. Default is true */
6
- visible?: boolean;
7
- /** Name for source */
8
- source?: string;
9
- /** Layers parameters */
10
- layers?: Partial<Record<MMapCarparksLayerType, Partial<MMapLayerProps>>>;
11
- };
12
- declare const defaultProps: {
13
- visible: boolean;
14
- source: string;
15
- updateTime: number;
16
- layers: {
17
- ground: {
18
- zIndex: number;
19
- };
20
- icons: {
21
- zIndex: number;
22
- };
23
- };
24
- };
25
- type DefaultProps = typeof defaultProps;
26
- declare class MMapCarparksLayer extends MMapComplexEntity<MMapCarparksLayerProps, DefaultProps> {
27
- static defaultProps: {
28
- visible: boolean;
29
- source: string;
30
- updateTime: number;
31
- layers: {
32
- ground: {
33
- zIndex: number;
34
- };
35
- icons: {
36
- zIndex: number;
37
- };
38
- };
39
- };
40
- static [optionsKeyVuefy]: CustomVuefyOptions<MMapCarparksLayer>;
41
- private _coverageSubscription?;
42
- private _unwatchThemeContext?;
43
- private _dataSource?;
44
- private _layers;
45
- protected _onAttach(): void;
46
- private _getTileDataSourceProps;
47
- protected _onUpdate(): void;
48
- protected _onDetach(): void;
49
- }
50
- export { MMapCarparksLayer, MMapCarparksLayerProps };
@@ -1,52 +0,0 @@
1
- import type { CustomVuefyOptions } from "../vuefy";
2
- import { optionsKeyVuefy } from "../../imperative/wrappers";
3
- import { MMapComplexEntity } from "../../imperative/MMapEnities";
4
- import { MMapLayerProps } from "../../imperative/MMapLayer";
5
- type MMapPanoramaLayerType = "ground" | "icons";
6
- type MMapPanoramaLayerProps = {
7
- /** Should show layer. Default is true */
8
- visible?: boolean;
9
- /** Name for source */
10
- source?: string;
11
- /** Layers parameters */
12
- layers?: Partial<Record<MMapPanoramaLayerType, Partial<MMapLayerProps>>>;
13
- };
14
- declare const defaultProps: {
15
- visible: boolean;
16
- source: string;
17
- layers: {
18
- ground: {
19
- zIndex: number;
20
- };
21
- icons: {
22
- zIndex: number;
23
- };
24
- };
25
- updateTime: number;
26
- };
27
- type DefaultProps = typeof defaultProps;
28
- declare class MMapPanoramaLayer extends MMapComplexEntity<MMapPanoramaLayerProps, DefaultProps> {
29
- static defaultProps: {
30
- visible: boolean;
31
- source: string;
32
- layers: {
33
- ground: {
34
- zIndex: number;
35
- };
36
- icons: {
37
- zIndex: number;
38
- };
39
- };
40
- updateTime: number;
41
- };
42
- private _dataSource?;
43
- private _layers;
44
- private _coverageSubscription?;
45
- private _unwatchThemeContext?;
46
- static [optionsKeyVuefy]: CustomVuefyOptions<MMapPanoramaLayer>;
47
- protected _onAttach(): void;
48
- private _getTileDataSourceProps;
49
- protected _onDetach(): void;
50
- protected _onUpdate(): void;
51
- }
52
- export { MMapPanoramaLayer, MMapPanoramaLayerProps };
@@ -1,58 +0,0 @@
1
- import { MMapComplexEntity } from "../../imperative/MMapEnities";
2
- import { MMapLayerProps } from "../../imperative/MMapLayer";
3
- import type { CustomVuefyOptions } from "../vuefy";
4
- import { optionsKeyVuefy } from "../../imperative/wrappers";
5
- type MMapTrafficEventsLayerType = "ground" | "icons" | "labels";
6
- type MMapTrafficEventsLayerProps = {
7
- /** Should show layer. Default is true */
8
- visible?: boolean;
9
- /** Name for source */
10
- source?: string;
11
- /** Layers parameters */
12
- layers?: Partial<Record<MMapTrafficEventsLayerType, Partial<MMapLayerProps>>>;
13
- };
14
- declare const defaultProps: {
15
- visible: boolean;
16
- source: string;
17
- updateTime: number;
18
- layers: {
19
- ground: {
20
- zIndex: number;
21
- };
22
- icons: {
23
- zIndex: number;
24
- };
25
- labels: {
26
- zIndex: number;
27
- };
28
- };
29
- };
30
- type DefaultProps = typeof defaultProps;
31
- declare class MMapTrafficEventsLayer extends MMapComplexEntity<MMapTrafficEventsLayerProps, DefaultProps> {
32
- static defaultProps: {
33
- visible: boolean;
34
- source: string;
35
- updateTime: number;
36
- layers: {
37
- ground: {
38
- zIndex: number;
39
- };
40
- icons: {
41
- zIndex: number;
42
- };
43
- labels: {
44
- zIndex: number;
45
- };
46
- };
47
- };
48
- private _dataSource?;
49
- private _layers;
50
- private _coverageSubscription?;
51
- private _unwatchThemeContext?;
52
- static [optionsKeyVuefy]: CustomVuefyOptions<MMapTrafficEventsLayer>;
53
- protected _onAttach(): void;
54
- private _getTileDataSourceProps;
55
- protected _onUpdate(): void;
56
- protected _onDetach(): void;
57
- }
58
- export { MMapTrafficEventsLayer, MMapTrafficEventsLayerProps };
@@ -1,36 +0,0 @@
1
- import { MMapComplexEntity } from "../../imperative/MMapEnities";
2
- import type { CustomVuefyOptions } from "../vuefy";
3
- import { optionsKeyVuefy } from "../../imperative/wrappers";
4
- type MMapTrafficLayerProps = {
5
- /** Should show layer. Default is true */
6
- visible?: boolean;
7
- /** Layer z-index */
8
- zIndex?: number;
9
- /** Name for source */
10
- source?: string;
11
- };
12
- declare const defaultProps: Readonly<{
13
- visible: true;
14
- source: "mappable-traffic-layer";
15
- zIndex: 1000;
16
- updateTime: number;
17
- }>;
18
- type DefaultProps = typeof defaultProps;
19
- declare class MMapTrafficLayer extends MMapComplexEntity<MMapTrafficLayerProps, DefaultProps> {
20
- static defaultProps: Readonly<{
21
- visible: true;
22
- source: "mappable-traffic-layer";
23
- zIndex: 1000;
24
- updateTime: number;
25
- }>;
26
- private _dataSource?;
27
- private _layer?;
28
- private _coverageSubscription?;
29
- private _unwatchThemeContext?;
30
- static [optionsKeyVuefy]: CustomVuefyOptions<MMapTrafficLayer>;
31
- protected _onAttach(): void;
32
- private _getTileDataSourceProps;
33
- protected _onUpdate(props: Partial<MMapTrafficLayerProps>): void;
34
- protected _onDetach(): void;
35
- }
36
- export { MMapTrafficLayer, MMapTrafficLayerProps };
@@ -1,4 +0,0 @@
1
- export * from "./MMapTrafficLayer";
2
- export * from "./MMapTrafficEventsLayer";
3
- export * from "./MMapCarparksLayer";
4
- export * from "./MMapPanoramaLayer";
@@ -1 +0,0 @@
1
- export declare function transformUrlTemplate(urlTemplate: string, locale: string, version?: string): string;