Update Fix
This commit is contained in:
8
node_modules/@react-jvectormap/core/dist/components/MapContainer/MapContainer.d.ts
generated
vendored
Normal file
8
node_modules/@react-jvectormap/core/dist/components/MapContainer/MapContainer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { CSSProperties, FC, Ref } from "react";
|
||||
interface IMapContainerProps {
|
||||
style?: CSSProperties;
|
||||
className?: string;
|
||||
containerRef: Ref<HTMLDivElement>;
|
||||
}
|
||||
export declare const MapContainer: FC<IMapContainerProps>;
|
||||
export {};
|
||||
1
node_modules/@react-jvectormap/core/dist/components/MapContainer/index.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/components/MapContainer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { MapContainer } from "./MapContainer";
|
||||
3
node_modules/@react-jvectormap/core/dist/components/MultiMap/MultiMap.d.ts
generated
vendored
Normal file
3
node_modules/@react-jvectormap/core/dist/components/MultiMap/MultiMap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { FC } from "react";
|
||||
import { IMultiMapProps } from "../../types";
|
||||
export declare const MultiMap: FC<IMultiMapProps>;
|
||||
1
node_modules/@react-jvectormap/core/dist/components/MultiMap/index.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/components/MultiMap/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { MultiMap } from "./MultiMap";
|
||||
3
node_modules/@react-jvectormap/core/dist/components/VectorMap/VectorMap.d.ts
generated
vendored
Normal file
3
node_modules/@react-jvectormap/core/dist/components/VectorMap/VectorMap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { FC } from "react";
|
||||
import { IVectorMapProps } from "../../types";
|
||||
export declare const VectorMap: FC<IVectorMapProps>;
|
||||
1
node_modules/@react-jvectormap/core/dist/components/VectorMap/index.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/components/VectorMap/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { VectorMap } from "./VectorMap";
|
||||
2
node_modules/@react-jvectormap/core/dist/components/index.d.ts
generated
vendored
Normal file
2
node_modules/@react-jvectormap/core/dist/components/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./VectorMap";
|
||||
export * from "./MultiMap";
|
||||
2
node_modules/@react-jvectormap/core/dist/index.d.ts
generated
vendored
Normal file
2
node_modules/@react-jvectormap/core/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./components";
|
||||
export * from "./utils";
|
||||
534
node_modules/@react-jvectormap/core/dist/index.js
generated
vendored
Normal file
534
node_modules/@react-jvectormap/core/dist/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
374
node_modules/@react-jvectormap/core/dist/types.d.ts
generated
vendored
Normal file
374
node_modules/@react-jvectormap/core/dist/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,374 @@
|
||||
/// <reference types="jquery" />
|
||||
import { CSSProperties, MutableRefObject } from "react";
|
||||
export declare type Nullable<T> = null | T;
|
||||
interface ISetFocusParams {
|
||||
regions?: string[];
|
||||
region?: string;
|
||||
scale?: number;
|
||||
lat?: number;
|
||||
lng?: number;
|
||||
x?: number;
|
||||
y?: number;
|
||||
animate?: boolean;
|
||||
}
|
||||
export interface IMapObject {
|
||||
/**
|
||||
* Add one marker to the map.
|
||||
* @param key
|
||||
* @param marker
|
||||
* @param seriesData
|
||||
*/
|
||||
addMarker: (key: string, marker: Marker, seriesData: IAttributeSeries[]) => void;
|
||||
/**
|
||||
* Add set of marker to the map.
|
||||
* @param key
|
||||
*/
|
||||
addMarkers: (markers: Marker[], seriesData: IAttributeSeries[]) => void;
|
||||
/**
|
||||
* Remove the selected state from all the currently selected markers.
|
||||
*/
|
||||
clearSelectedMarkers: () => void;
|
||||
/**
|
||||
* Remove the selected state from all the currently selected regions.
|
||||
*/
|
||||
clearSelectedRegions: () => void;
|
||||
/**
|
||||
* Get the name of a region
|
||||
*/
|
||||
getRegionName: (code: string) => void;
|
||||
/**
|
||||
* Return the codes of currently selected markers.
|
||||
*/
|
||||
getSelectedMarkers: () => Marker[];
|
||||
/**
|
||||
* Return the codes of currently selected regions.
|
||||
*/
|
||||
getSelectedRegions: () => IRegion[];
|
||||
/**
|
||||
* Converts coordinates expressed as latitude and longitude to the coordinates in pixels on the map.
|
||||
*/
|
||||
latLngToPoint: (lat: number, lng: number) => number[];
|
||||
/**
|
||||
* Converts cartesian coordinates into coordinates expressed as latitude and longitude.
|
||||
*/
|
||||
pointToLatLng: (x: number, y: number) => number[];
|
||||
/**
|
||||
* Gracefully remove the map and and all its accessories, unbind event handlers.
|
||||
*/
|
||||
remove: () => void;
|
||||
/**
|
||||
* Remove all markers from the map.
|
||||
*/
|
||||
removeAllMarkers: () => void;
|
||||
/**
|
||||
* Remove some markers from the map.
|
||||
*/
|
||||
removeMarkers: () => void;
|
||||
/**
|
||||
* Reset all the series and show the map with the initial zoom.
|
||||
*/
|
||||
reset: () => void;
|
||||
/**
|
||||
* Set background color of the map.
|
||||
*/
|
||||
setBackgroundColor: (backgroundColor: string) => void;
|
||||
/**
|
||||
* Set the map's viewport to the specific point and set zoom of the map to the specific level. Point and zoom level could be defined in two ways: using the code of some region to focus on or a central point and zoom level as numbers.
|
||||
*/
|
||||
setFocus: (params: ISetFocusParams) => void;
|
||||
/**
|
||||
* Set or remove selected state for the markers.
|
||||
* @param keys
|
||||
*/
|
||||
setSelectedMarkers: (keys: string | string[] | {
|
||||
[key: string]: boolean;
|
||||
}) => void;
|
||||
/**
|
||||
* Set or remove selected state for the regions.
|
||||
* @param keys
|
||||
*/
|
||||
setSelectedRegions: (keys: string | string[] | {
|
||||
[key: string]: boolean;
|
||||
}) => void;
|
||||
/**
|
||||
* Synchronize the size of the map with the size of the container. Suitable in situations where the size of the container is changed programmatically or container is shown after it became visible.
|
||||
*/
|
||||
updateSize: () => void;
|
||||
}
|
||||
export declare type MapObject = IMapObject;
|
||||
interface IMapComponent {
|
||||
/**
|
||||
* Optional ref for accessing map methods
|
||||
*/
|
||||
mapRef?: MutableRefObject<MapObject | null>;
|
||||
/**
|
||||
* Container class Name
|
||||
*/
|
||||
className?: string;
|
||||
/**
|
||||
* Container inline CSS-in-JS style
|
||||
*/
|
||||
style?: CSSProperties;
|
||||
}
|
||||
export interface IVectorMapProps extends IMapComponent {
|
||||
/**
|
||||
* Map content definition
|
||||
*/
|
||||
map: IVectorMap;
|
||||
/**
|
||||
* Background color of the map in CSS format.
|
||||
*/
|
||||
backgroundColor?: string;
|
||||
/**
|
||||
* Indicates the minimum zoom ratio which could be reached zooming the map. Default value is 1.
|
||||
*/
|
||||
zoomMin?: number;
|
||||
/**
|
||||
* Indicates the maximum zoom ratio which could be reached zooming the map. Default value is 8.
|
||||
*/
|
||||
zoomMax?: number;
|
||||
/**
|
||||
* Indicates the multiplier used to zoom map with +/- buttons. Default value is 1.6.
|
||||
*/
|
||||
zoomStep?: number;
|
||||
/**
|
||||
* When set to true map could be zoomed using mouse scroll. Default value is true.
|
||||
*/
|
||||
zoomOnScroll?: boolean;
|
||||
/**
|
||||
* Indicates whether or not to animate changing of map zoom with zoom buttons.
|
||||
*/
|
||||
zoomAnimate?: boolean;
|
||||
/**
|
||||
* This parameter sets the initial position and scale of the map viewport.
|
||||
*/
|
||||
focusOn?: IFocus;
|
||||
/**
|
||||
* When set to true, the map pans when being dragged. Default value is true.
|
||||
*/
|
||||
panOnDrag?: boolean;
|
||||
/**
|
||||
* When set to true regions of the map could be selected. Default value is false.
|
||||
*/
|
||||
regionsSelectable?: boolean;
|
||||
/**
|
||||
* Allow only one region to be selected at the moment. Default value is false.
|
||||
*/
|
||||
regionsSelectableOne?: boolean;
|
||||
/**
|
||||
* Set of markers to add to the map during initialization. In case of array is provided, codes of markers will be set as string representations of array indexes. Each marker is represented by latLng (array of two numeric values), name (string which will be show on marker's tip) and any marker styles.
|
||||
*/
|
||||
markers?: Marker[];
|
||||
/**
|
||||
* When set to true markers on the map could be selected. Default value is false.
|
||||
*/
|
||||
markersSelectable?: boolean;
|
||||
/**
|
||||
* Allow only one marker to be selected at the moment. Default value is false.
|
||||
*/
|
||||
markersSelectableOne?: boolean;
|
||||
/**
|
||||
* Set the styles for the map's regions. Each region or marker has four states: initial (default state), hover (when the mouse cursor is over the region or marker), selected (when region or marker is selected), selectedHover (when the mouse cursor is over the region or marker and it's selected simultaneously). Styles could be set for each of this states.
|
||||
*/
|
||||
regionStyle?: ISVGElementStyleAttributes | ((code: string) => ISVGElementStyleAttributes);
|
||||
/**
|
||||
* Set the styles for the regions' labels. Each region or marker has four states: initial (default state), hover (when the mouse cursor is over the region or marker), selected (when region or marker is selected), selectedHover (when the mouse cursor is over the region or marker and it's selected simultaneously). Styles could be set for each of this states.
|
||||
*/
|
||||
regionLabelStyle?: ISVGElementStyleAttributes;
|
||||
/**
|
||||
* Set initially selected markers.
|
||||
*/
|
||||
selectedMarkers?: string[] | {
|
||||
[region: string]: boolean;
|
||||
} | string;
|
||||
/**
|
||||
* Set the styles for the map's markers. Any parameter suitable for regionStyle could be used as well as numeric parameter r to set the marker's radius.
|
||||
*/
|
||||
markerStyle?: ISVGElementStyleAttributes | IImageElementStyleAttributes;
|
||||
/**
|
||||
* Will be called on region click event.
|
||||
*/
|
||||
onRegionClick?: (event: JQuery.Event, code: string) => void;
|
||||
/**
|
||||
* Will be called when region is (de)selected. isSelected parameter of the callback indicates whether region is selected or not. selectedRegions contains codes of all currently selected regions.
|
||||
*/
|
||||
onRegionSelected?: (event: JQuery.Event, code: string, isSelected: boolean, selectedRegions: string[]) => void;
|
||||
/**
|
||||
* Will be called right before the region tip is going to be shown.
|
||||
*/
|
||||
onRegionTipShow?: OnRegionTipShow;
|
||||
/**
|
||||
* Will be called on region mouse over event.
|
||||
*/
|
||||
onRegionOver?: (event: JQuery.Event, code: string) => void;
|
||||
/**
|
||||
* Will be called on region mouse out event.
|
||||
*/
|
||||
onRegionOut?: (event: JQuery.Event, code: string) => void;
|
||||
/**
|
||||
* Will be called right before the marker tip is going to be shown.
|
||||
*/
|
||||
onMarkerTipShow?: (event: JQuery.Event, el: Element, code: string) => void;
|
||||
/**
|
||||
* Will be called on marker mouse over event.
|
||||
*/
|
||||
onMarkerOver?: (event: JQuery.Event, code: string) => void;
|
||||
/**
|
||||
* Will be called on marker mouse out event.
|
||||
*/
|
||||
onMarkerOut?: (event: JQuery.Event, code: string) => void;
|
||||
/**
|
||||
* Will be called on marker click event.
|
||||
*/
|
||||
onMarkerClick?: (event: JQuery.Event, code: string) => void;
|
||||
/**
|
||||
* Will be called when marker is (de)selected. isSelected parameter of the callback indicates whether marker is selected or not. selectedMarkers contains codes of all currently selected markers.
|
||||
*/
|
||||
onMarkerSelected?: (event: JQuery.Event, code: string, isSelected: boolean, selectedMarkers: string[]) => void;
|
||||
/**
|
||||
* Triggered when the map's viewport is changed (map was panned or zoomed).
|
||||
*/
|
||||
onViewportChange?: (event: JQuery.Event, scale: number) => void;
|
||||
/**
|
||||
* Set initially selected regions.
|
||||
* examples: ["US-CA"] | { "US-CA": true } | "US-CA"
|
||||
*/
|
||||
selectedRegions?: SelectedEntities;
|
||||
/**
|
||||
* Object with two keys: markers and regions. Each of which is an array of series configs to be applied to the respective map elements.
|
||||
*/
|
||||
series?: ISeries;
|
||||
/**
|
||||
* Object with two keys: markers and regions. Each of which is an array of labels configs to be applied to the respective map elements.
|
||||
*/
|
||||
labels?: ILabels;
|
||||
}
|
||||
export interface IMainMap {
|
||||
map: IVectorMap;
|
||||
}
|
||||
export interface IMultiMapProps extends IMapComponent {
|
||||
/**
|
||||
* Maximum number of levels user can go through
|
||||
*/
|
||||
maxLevel?: number;
|
||||
/**
|
||||
* Config of the main map.
|
||||
*/
|
||||
main: IMainMap;
|
||||
/**
|
||||
* Function to generate map name by region code. Default value is:
|
||||
*/
|
||||
mapNameByCode?: (code: string) => string;
|
||||
/**
|
||||
* Function to generate map url by region code. Default value is:
|
||||
*/
|
||||
mapUrlByCode?: (code: string) => string;
|
||||
/**
|
||||
* Function to manually retrieve map data
|
||||
* @param code
|
||||
*/
|
||||
getDrillDownMap?: (code: string) => Promise<IVectorMap> | IVectorMap;
|
||||
}
|
||||
interface IBBox {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
interface IInset {
|
||||
width: number;
|
||||
height: number;
|
||||
top: number;
|
||||
left: number;
|
||||
bbox: IBBox[];
|
||||
}
|
||||
interface IProjection {
|
||||
type: string;
|
||||
centralMeridian: number;
|
||||
}
|
||||
export interface IVectorMap {
|
||||
name: string;
|
||||
content: {
|
||||
insets: IInset[];
|
||||
paths: PathsDefinition;
|
||||
height: number;
|
||||
width: number;
|
||||
projection: IProjection;
|
||||
};
|
||||
}
|
||||
interface IFocus {
|
||||
scale: number;
|
||||
x: number;
|
||||
y: number;
|
||||
region?: string;
|
||||
lat?: number;
|
||||
lng?: number;
|
||||
animate?: boolean;
|
||||
}
|
||||
export interface ISVGElementStyleAttributes {
|
||||
initial?: CSSProperties;
|
||||
hover?: CSSProperties;
|
||||
selected?: CSSProperties;
|
||||
selectedHover?: CSSProperties;
|
||||
}
|
||||
interface IImageElementStyleAttributes {
|
||||
url: string;
|
||||
offset?: number[];
|
||||
}
|
||||
declare type PathsDefinition = {
|
||||
[key: string]: {
|
||||
path: string;
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
export interface ISeries {
|
||||
regions?: IAttributeSeries[];
|
||||
markers?: IAttributeSeries[];
|
||||
}
|
||||
declare type Scale = {
|
||||
[key: string]: string;
|
||||
} | number[] | string[];
|
||||
declare type Values = {
|
||||
[key: string]: string | number;
|
||||
};
|
||||
export declare type NormalizeFunctionType = "linear" | "polynomial";
|
||||
export interface IAttributeSeries {
|
||||
attribute: string;
|
||||
values?: number[] | {
|
||||
[key: string]: number;
|
||||
};
|
||||
scale?: Scale;
|
||||
normalizeFunction?: NormalizeFunctionType | ((value?: number) => string);
|
||||
}
|
||||
export interface IRegion {
|
||||
scale: Scale;
|
||||
values: Values;
|
||||
attribute: string;
|
||||
normalizeFunction?: NormalizeFunctionType | ((value?: number) => string);
|
||||
}
|
||||
interface IMarkerBase {
|
||||
name: string;
|
||||
style?: CSSProperties;
|
||||
}
|
||||
interface IMarkerWithCoords extends IMarkerBase {
|
||||
coords: number[];
|
||||
}
|
||||
interface IMarkerWithLatLng extends IMarkerBase {
|
||||
latLng: number[];
|
||||
}
|
||||
export declare type RenderLabel = (code: string) => void | string;
|
||||
export declare type GetOffsets = (code: string) => {
|
||||
[key: string | number]: number[];
|
||||
};
|
||||
export interface ILabelsProps {
|
||||
render: RenderLabel;
|
||||
offsets: GetOffsets;
|
||||
}
|
||||
export interface ILabels {
|
||||
regions?: ILabelsProps;
|
||||
markers?: ILabelsProps;
|
||||
}
|
||||
export declare type Marker = IMarkerWithCoords | IMarkerWithLatLng;
|
||||
export declare type OnRegionTipShow = (event: JQuery.Event, el: Element, code: string) => void;
|
||||
export declare type SelectedEntities = string[] | {
|
||||
[region: string]: boolean;
|
||||
} | string;
|
||||
export {};
|
||||
35
node_modules/@react-jvectormap/core/dist/utils/builders/AttributeSeriesBuilder.d.ts
generated
vendored
Normal file
35
node_modules/@react-jvectormap/core/dist/utils/builders/AttributeSeriesBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import { IAttributeSeries, NormalizeFunctionType } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class AttributeSeriesBuilder implements IBuilder<IAttributeSeries> {
|
||||
private attribute;
|
||||
private scale?;
|
||||
private values?;
|
||||
private normalizeFunction?;
|
||||
constructor(attribute: string);
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setAttribute(value: string): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setScale(value: number[]): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setValues(value: number[]): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setNormalizeFunction(value: NormalizeFunctionType): this;
|
||||
build(): {
|
||||
scale: number[] | undefined;
|
||||
values: number[] | undefined;
|
||||
attribute: string;
|
||||
normalizeFunction: NormalizeFunctionType | undefined;
|
||||
};
|
||||
}
|
||||
19
node_modules/@react-jvectormap/core/dist/utils/builders/LabelsBuilder.d.ts
generated
vendored
Normal file
19
node_modules/@react-jvectormap/core/dist/utils/builders/LabelsBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ILabels, ILabelsProps } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class LabelsBuilder implements IBuilder<ILabels> {
|
||||
private markers?;
|
||||
private regions?;
|
||||
/**
|
||||
*
|
||||
* @param values
|
||||
*/
|
||||
addMarkersLabelProps(...values: ILabelsProps[]): this;
|
||||
/**
|
||||
*
|
||||
* @param values
|
||||
*/
|
||||
addRegionsLabelProps(...values: ILabelsProps[]): this;
|
||||
build(): {
|
||||
[k: string]: unknown;
|
||||
};
|
||||
}
|
||||
24
node_modules/@react-jvectormap/core/dist/utils/builders/LabelsPropsBuilder.d.ts
generated
vendored
Normal file
24
node_modules/@react-jvectormap/core/dist/utils/builders/LabelsPropsBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { GetOffsets, ILabelsProps, RenderLabel } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class LabelsPropsBuilder implements IBuilder<ILabelsProps> {
|
||||
private render;
|
||||
private offsets;
|
||||
constructor(render: RenderLabel, offsets: GetOffsets);
|
||||
/**
|
||||
*
|
||||
* @param render
|
||||
*/
|
||||
setRender(render: RenderLabel): this;
|
||||
/**
|
||||
*
|
||||
* @param offsets
|
||||
*/
|
||||
setOffsets(offsets: GetOffsets): this;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
build(): {
|
||||
render: RenderLabel;
|
||||
offsets: GetOffsets;
|
||||
};
|
||||
}
|
||||
42
node_modules/@react-jvectormap/core/dist/utils/builders/MarkerBuilder.d.ts
generated
vendored
Normal file
42
node_modules/@react-jvectormap/core/dist/utils/builders/MarkerBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import { CSSProperties } from "react";
|
||||
import { Marker } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class MarkerBuilder implements IBuilder<Marker> {
|
||||
private name;
|
||||
private coords?;
|
||||
private latLng?;
|
||||
private style?;
|
||||
constructor(value: string);
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setName(value: string): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setCoords(value: number[]): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setLatLng(value: number[]): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setStyle(value: CSSProperties): this;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
build(): {
|
||||
coords: number[];
|
||||
name: string;
|
||||
style: CSSProperties | undefined;
|
||||
} | {
|
||||
latLng: number[];
|
||||
name: string;
|
||||
style: CSSProperties | undefined;
|
||||
};
|
||||
}
|
||||
39
node_modules/@react-jvectormap/core/dist/utils/builders/MultiMapBuilder.d.ts
generated
vendored
Normal file
39
node_modules/@react-jvectormap/core/dist/utils/builders/MultiMapBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { IMainMap, IMultiMapProps, IVectorMap } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class MultiMapBuilder implements IBuilder<IMultiMapProps> {
|
||||
private readonly main;
|
||||
private maxLevel?;
|
||||
private mapNameByCode?;
|
||||
private mapUrlByCode?;
|
||||
private getDrillDownMap?;
|
||||
constructor(mainMap: IVectorMap, maxLevel?: number);
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setMainMap(value: IVectorMap): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setMaxLevel(value: number): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setMapNameByCode(value: (code: string) => string): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setUrlByCode(value: (code: string) => string): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setGetDrillDownMap(value: (code: string) => Promise<IVectorMap> | IVectorMap): this;
|
||||
build(): {
|
||||
main: IMainMap;
|
||||
maxLevel: number | undefined;
|
||||
};
|
||||
}
|
||||
19
node_modules/@react-jvectormap/core/dist/utils/builders/SeriesBuilder.d.ts
generated
vendored
Normal file
19
node_modules/@react-jvectormap/core/dist/utils/builders/SeriesBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { IAttributeSeries, ISeries } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class SeriesBuilder implements IBuilder<ISeries> {
|
||||
private markers?;
|
||||
private regions?;
|
||||
/**
|
||||
*
|
||||
* @param values
|
||||
*/
|
||||
addMarkersSeries(...values: IAttributeSeries[]): this;
|
||||
/**
|
||||
*
|
||||
* @param values
|
||||
*/
|
||||
addRegionsSeries(...values: IAttributeSeries[]): this;
|
||||
build(): {
|
||||
[k: string]: unknown;
|
||||
};
|
||||
}
|
||||
32
node_modules/@react-jvectormap/core/dist/utils/builders/StyleBuilder.d.ts
generated
vendored
Normal file
32
node_modules/@react-jvectormap/core/dist/utils/builders/StyleBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { CSSProperties } from "react";
|
||||
import { ISVGElementStyleAttributes } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class StyleBuilder implements IBuilder<ISVGElementStyleAttributes> {
|
||||
private initial?;
|
||||
private selected?;
|
||||
private hover?;
|
||||
private selectedHover?;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setInitial(value: CSSProperties): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setSelected(value: CSSProperties): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setHover(value: CSSProperties): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setSelectedHover(value: CSSProperties): this;
|
||||
build(): {
|
||||
[k: string]: unknown;
|
||||
};
|
||||
}
|
||||
108
node_modules/@react-jvectormap/core/dist/utils/builders/VectorMapBuilder.d.ts
generated
vendored
Normal file
108
node_modules/@react-jvectormap/core/dist/utils/builders/VectorMapBuilder.d.ts
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
import { ILabels, ISeries, ISVGElementStyleAttributes, IVectorMap, IVectorMapProps, Marker, OnRegionTipShow, SelectedEntities } from "../../types";
|
||||
import { IBuilder } from "./types";
|
||||
export declare class VectorMapBuilder implements IBuilder<IVectorMapProps> {
|
||||
private map;
|
||||
private backgroundColor?;
|
||||
private zoomMin?;
|
||||
private zoomMax?;
|
||||
private markers?;
|
||||
private markerStyle?;
|
||||
private regionStyle?;
|
||||
private regionsSelectable?;
|
||||
private markersSelectable?;
|
||||
private onRegionTipShow?;
|
||||
private series?;
|
||||
private labels?;
|
||||
private selectedRegions?;
|
||||
constructor(map: IVectorMap);
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setMap(value: IVectorMap): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setBackgroundColor(value: string): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setZoomMin(value: number): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setZoomMax(value: number): this;
|
||||
/**
|
||||
*
|
||||
* @param marker
|
||||
*/
|
||||
addMarker(marker: Marker): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setMarkerStyle(value: ISVGElementStyleAttributes): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setRegionStyle(value: ISVGElementStyleAttributes | ((code: string) => ISVGElementStyleAttributes)): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
* @private
|
||||
*/
|
||||
setMarkersSelectable(value: boolean): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setMarkers(value: Marker[]): this;
|
||||
/**
|
||||
*
|
||||
* @private
|
||||
* @param value
|
||||
*/
|
||||
setRegionsSelectable(value: boolean): this;
|
||||
/**
|
||||
*
|
||||
* @private
|
||||
* @param value
|
||||
*/
|
||||
setOnRegionTipShow(value: OnRegionTipShow): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setSeries(value: ISeries): this;
|
||||
/**
|
||||
*
|
||||
* @param values
|
||||
*/
|
||||
setLabels(values: ILabels): this;
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
*/
|
||||
setSelectedRegions(value: SelectedEntities): this;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
build(): {
|
||||
map: IVectorMap;
|
||||
series: ISeries | undefined;
|
||||
backgroundColor: string | undefined;
|
||||
zoomMax: number | undefined;
|
||||
zoomMin: number | undefined;
|
||||
markerStyle: ISVGElementStyleAttributes | undefined;
|
||||
regionStyle: ISVGElementStyleAttributes | ((code: string) => ISVGElementStyleAttributes) | undefined;
|
||||
markersSelectable: boolean | undefined;
|
||||
regionsSelectable: boolean | undefined;
|
||||
markers: Marker[] | undefined;
|
||||
labels: ILabels | undefined;
|
||||
selectedRegions: SelectedEntities | undefined;
|
||||
};
|
||||
}
|
||||
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/AttributeSeriesBuilder.test.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/AttributeSeriesBuilder.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/MarkerBuilder.test.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/MarkerBuilder.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/MultiMapBuilder.test.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/MultiMapBuilder.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/SeriesBuilder.test.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/SeriesBuilder.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/StyleBuilder.test.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/StyleBuilder.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/VectorMapBuilder.test.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/VectorMapBuilder.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
27
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/mocks/MapMock1.d.ts
generated
vendored
Normal file
27
node_modules/@react-jvectormap/core/dist/utils/builders/__tests__/mocks/MapMock1.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
export declare const MapMock1: {
|
||||
name: string;
|
||||
content: {
|
||||
insets: {
|
||||
width: number;
|
||||
top: number;
|
||||
height: number;
|
||||
bbox: {
|
||||
y: number;
|
||||
x: number;
|
||||
}[];
|
||||
left: number;
|
||||
}[];
|
||||
paths: {
|
||||
V1: {
|
||||
path: string;
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
height: number;
|
||||
projection: {
|
||||
type: string;
|
||||
centralMeridian: number;
|
||||
};
|
||||
width: number;
|
||||
};
|
||||
};
|
||||
8
node_modules/@react-jvectormap/core/dist/utils/builders/index.d.ts
generated
vendored
Normal file
8
node_modules/@react-jvectormap/core/dist/utils/builders/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export { VectorMapBuilder } from "./VectorMapBuilder";
|
||||
export { MarkerBuilder } from "./MarkerBuilder";
|
||||
export { StyleBuilder } from "./StyleBuilder";
|
||||
export { AttributeSeriesBuilder } from "./AttributeSeriesBuilder";
|
||||
export { SeriesBuilder } from "./SeriesBuilder";
|
||||
export { LabelsBuilder } from "./LabelsBuilder";
|
||||
export { LabelsPropsBuilder } from "./LabelsPropsBuilder";
|
||||
export { MultiMapBuilder } from "./MultiMapBuilder";
|
||||
3
node_modules/@react-jvectormap/core/dist/utils/builders/types.d.ts
generated
vendored
Normal file
3
node_modules/@react-jvectormap/core/dist/utils/builders/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface IBuilder<T> {
|
||||
build: () => T;
|
||||
}
|
||||
9
node_modules/@react-jvectormap/core/dist/utils/builders/utils.d.ts
generated
vendored
Normal file
9
node_modules/@react-jvectormap/core/dist/utils/builders/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* remove undefined values from object
|
||||
* @param object
|
||||
*/
|
||||
export declare const stripUndefinedValues: (object: {
|
||||
[key: string]: unknown;
|
||||
}) => {
|
||||
[k: string]: unknown;
|
||||
};
|
||||
1
node_modules/@react-jvectormap/core/dist/utils/index.d.ts
generated
vendored
Normal file
1
node_modules/@react-jvectormap/core/dist/utils/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./builders";
|
||||
Reference in New Issue
Block a user