MCPcopy
hub / github.com/PaulLeCam/react-leaflet / createElementObject

Function createElementObject

packages/core/src/element.ts:11–17  ·  view source on GitHub ↗
(
  instance: T,
  context: LeafletContextInterface,
  container?: C | null,
)

Source from the content-addressed store, hash-verified

9}>
10
11export function createElementObject<T, C = unknown>(
12 instance: T,
13 context: LeafletContextInterface,
14 container?: C | null,
15): LeafletElement<T, C> {
16 return Object.freeze({ instance, context, container })
17}
18
19export type ElementHook<E, P> = (
20 props: P,

Callers 15

LayerGroup.tsxFile · 0.90
Popup.tsxFile · 0.90
Tooltip.tsxFile · 0.90
FeatureGroup.tsxFile · 0.90
ImageOverlay.tsxFile · 0.90
VideoOverlay.tsxFile · 0.90
Polyline.tsxFile · 0.90
Rectangle.tsxFile · 0.90
TileLayer.tsxFile · 0.90
WMSTileLayer.tsxFile · 0.90
GeoJSON.tsxFile · 0.90
Circle.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…