Skip to content

Commit

Permalink
Fix type documentation for canvas in Deck (#5870)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikGM authored Jun 16, 2021
1 parent f506eea commit 38149ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api-reference/core/deck.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ See the [Properties](#properties) section.

The following properties are used to initialize a `Deck` instance. Any custom value should always be provided to the `Deck` constructor. Changing them with `setProps` afterwards will have no effect.

##### `canvas` (HTMLCanvasElement)
##### `canvas` (HTMLCanvasElement | String, optional)

The canvas to render into. Will be auto-created if not supplied.
The canvas to render into. Can be either a HTMLCanvasElement or the element id. Will be auto-created if not supplied.

##### `gl` (WebGLContext)

Expand Down

0 comments on commit 38149ae

Please sign in to comment.