Interface: GarminChartDisplayProps
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:54
Component props for GarminChartDisplay.
Extends
Properties
chartStatus?
optionalchartStatus:MutableSubscribable<any,GarminChartDisplayChartStatus>
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:91
A mutable subscribable to which to write the current status of the chart selected for display.
children?
optionalchildren:DisplayChildren[]
Defined in: src/sdk/components/FSComponent.ts:122
The children of the display component.
Inherited from
class?
optionalclass:string|ToggleableClassNameRecord|SubscribableSet<string>
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:94
CSS class(es) to apply to the display's root element.
createChartImageSupplier()?
optionalcreateChartImageSupplier: () =>ChartImageSupplier
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:60
A function that creates a new chart image supplier for the display to use. If not defined, then the display will create an instance of ChartView by default.
Returns
A new chart image supplier for the display to use.
disableChartCompositingLayer?
optionaldisableChartCompositingLayer:boolean
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:88
Whether to disable the creation of a Coherent compositing layer for the image element that renders the chart.
Defaults to false.
displayMode
displayMode:
Subscribable<string>
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:69
The display mode to use. The display mode affects the URL used to the display the selected chart.
maxZoomLevel?
optionalmaxZoomLevel:number|Subscribable<number>
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:76
The maximum zoom level allowed by the display. A zoom level of zero scales the displayed chart such that the displayed width of the chart equals the width of the display. Every unit increase in zoom level increases the scaling applied to the displayed chart by a factor of 2. Defaults to 3.
panOverscroll?
optionalpanOverscroll:Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">> |Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:82
The amount by which a chart is allowed to be temporarily panned past the normal panning boundaries, as
[left, top, right, bottom] in pixels. Defaults to [0, 0, 0, 0].
ref?
optionalref:NodeReference<any>
Defined in: src/sdk/components/FSComponent.ts:125
A reference to the display component.
Inherited from
selectedChart
selectedChart:
Subscribable<null|Readonly<GarminChartDisplaySelection>>
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:66
The selected chart to display, or null to not display any chart.
size
size:
Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/garminsdk/components/charts/GarminChartDisplay.tsx:63
The size of the display, as [width, height] in pixels.