@manta-eu/react/region-map
Reference for @manta-eu/react/region-map as it is on main.
Type Aliases
Box
Box =
object
Properties
bottom
bottom:
number
left
left:
number
right
right:
number
top
top:
number
FitRegionMapArgs
FitRegionMapArgs =
object
Properties
focus
focus: readonly
RegionMapShape[]
height?
optionalheight?:number
points?
optionalpoints?: readonlyFocusPoint[]
projection?
optionalprojection?:RegionMapProjection
width
width:
number
FocusPoint
FocusPoint =
object
Properties
coordinates
coordinates: [
number,number]
GeographyReading
GeographyReading = {
error:null;shapes:RegionMapShape[]; } | {error:string;shapes: []; }
LabelCandidate
LabelCandidate =
object
Properties
id
id:
string
radius?
optionalradius?:number
text
text:
string
x
x:
number
y
y:
number
PlacedLabel
PlacedLabel =
object
Properties
anchor
anchor:
"start"|"middle"|"end"
box
box:
Box
id
id:
string
text
text:
string
x
x:
number
y
y:
number
PlaceLabelsArgs
PlaceLabelsArgs =
object
Properties
candidates
candidates: readonly
LabelCandidate[]
fontSize?
optionalfontSize?:number
height
height:
number
obstacles?
optionalobstacles?: readonlyBox[]
width
width:
number
ReadGeographyOptions
ReadGeographyOptions =
object
Properties
idProperty?
optionalidProperty?:string
RegionMapFrame
RegionMapFrame =
object
Properties
height
height:
number
margin
margin:
number
projection
projection:
GeoProjection
width
width:
number
RegionMapGeography
RegionMapGeography = {
geojson:unknown; } | {object:string;topojson:unknown; }
RegionMapMeasure
RegionMapMeasure =
object
Properties
format?
optionalformat?: (value) =>string
Parameters
value
number
Returns
string
label
label:
string
RegionMapMultiPolygon
RegionMapMultiPolygon =
object
Properties
coordinates
coordinates:
number[][][][]
type
type:
"MultiPolygon"
RegionMapPlace
RegionMapPlace =
object
Properties
coordinates
coordinates: [
number,number]
id
id:
string
name
name:
string
named?
optionalnamed?:boolean
value?
optionalvalue?:number|null
RegionMapPolygon
RegionMapPolygon =
object
Properties
coordinates
coordinates:
number[][][]
type
type:
"Polygon"
RegionMapProjection
RegionMapProjection =
"conic"|"mercator"|"equal-earth"
RegionMapProps
RegionMapProps =
object
Properties
activeId?
optionalactiveId?:string|null
className?
optionalclassName?:string
credit?
optionalcredit?:ReactNode
geography
geography:
RegionMapGeography
The land: GeoJSON features, or a TopoJSON topology and its object’s name, in degrees. The SDK bundles none.
height?
optionalheight?:number
idProperty?
optionalidProperty?:string
label
label:
string
measure
measure:
RegionMapMeasure
onActiveChange?
optionalonActiveChange?: (id) =>void
Parameters
id
string | null
Returns
void
onSelect?
optionalonSelect?: (id) =>void
Parameters
id
string
Returns
void
places?
optionalplaces?:RegionMapPlace[]
projection?
optionalprojection?:RegionMapProjection
regions?
optionalregions?:RegionMapRegion[]
steps?
optionalsteps?:number
RegionMapRegion
RegionMapRegion =
object
Properties
id
id:
string
name
name:
string
named?
optionalnamed?:boolean
value?
optionalvalue?:number|null
Missing or null when there is no figure: the region is hatched, never drawn as a zero.
RegionMapScale
RegionMapScale =
object
Properties
bounds
bounds:
number[]
stepOf
stepOf: (
value) =>number
Parameters
value
number
Returns
number
steps
steps:
number
RegionMapShape
RegionMapShape =
object
Properties
geometry
geometry:
RegionMapPolygon|RegionMapMultiPolygon
id
id:
string|null
properties
properties:
Record<string,unknown>
RegionRankItem
RegionRankItem =
object
Properties
id
id:
string
name
name:
string
value?
optionalvalue?:number|null
RegionRankListProps
RegionRankListProps =
object
Properties
activeId?
optionalactiveId?:string|null
className?
optionalclassName?:string
items
items:
RegionRankItem[]
label
label:
string
measure
measure:
RegionMapMeasure
onActiveChange?
optionalonActiveChange?: (id) =>void
Parameters
id
string | null
Returns
void
onSelect?
optionalonSelect?: (id) =>void
Parameters
id
string
Returns
void
steps?
optionalsteps?:number
Variables
regionMapMaxSteps
constregionMapMaxSteps:5=5
Functions
fitRegionMap()
fitRegionMap(
args):RegionMapFrame
Parameters
args
Returns
placeLabels()
placeLabels(
args):PlacedLabel[]
Parameters
args
Returns
readGeography()
readGeography(
geography,options?):GeographyReading
Parameters
geography
options?
ReadGeographyOptions = {}
Returns
RegionMap()
RegionMap(
props):Element
Parameters
props
Returns
Element
regionMapScale()
regionMapScale(
values,steps?):RegionMapScale|null
Parameters
values
readonly number[]
steps?
number = regionMapMaxSteps
Returns
RegionMapScale | null
RegionRankList()
RegionRankList(
props):Element
Parameters
props
Returns
Element