A utility encoder is used to quickly preview animations in the browser that inherits FrameEncoder. It doesn't produce file artifacts or capture the canvas.
Construction of the encoder class is not required. Refer to DeckAdapter.render for usage. The constructor accepts a FrameEncoderSettings
object.
import {DeckAdapter, PreviewEncoder} from '@hubble.gl/core'
const adapter = new DeckAdapter({});
adapter.render({Encoder: PreviewEncoder});