Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 16, 2024
1 parent 8b44f1d commit 8fcb5f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/content/runtime/rendering/canvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ nx.js does not implement a full DOM for rendering content to the screen.
Instead, it offers the more low-level Canvas API which allows your application
to draw to the screen.

The global `screen` object is used to create a `CanvasRenderingContext2D`
instance, at which point the app is in __canvas rendering__ mode.
The global [`screen`](/runtime/api/variables/screen) object may be used to create
a `CanvasRenderingContext2D` instance, at which point the app is considered to
be in __canvas rendering__ mode.

> [!IMPORTANT]
> You should avoid using any `console` printing functions when in __canvas rendering__ mode.
Expand Down

0 comments on commit 8fcb5f9

Please sign in to comment.