FpsWidget
Displays the measured frames per second (FPS) as reported by the attached
Deck
instance.
import {FpsWidget} from '@deck.gl/widgets';
Usage
new Deck({
widgets: [new FpsWidget({placement: 'top-right'})]
});
Types
FpsWidgetProps
The FpsWidget
accepts the generic WidgetProps
:
id
(default'fps'
) - Unique id for this widgetplacement
(default'top-left'
) - Widget position within the view relative to the map containerviewId
(defaultnull
) - TheviewId
prop controls how a widget interacts with views.style
(default{}
) - Additional inline styles on the top HTML element.className
(default''
) - Additional classnames on the top HTML element.