Skip to content

Commit

Permalink
More docs in screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Deseteral committed Oct 12, 2023
1 parent 4cc6550 commit 1acaf6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gfx/screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,16 @@ export class Screen {
*/
public activeFont: (Font | null) = null;

/**
* Actual rendering context for this screens DOM canvas.
* Not part of public stable API, but can be used as escape hatch in cases where public API is not enough.
*/
public readonly _ctx: CanvasRenderingContext2D;

/**
* Actual DOM canvas for this screen.
* Not part of public stable API, but can be used as escape hatch in cases where public API is not enough.
*/
public get _domElement(): HTMLCanvasElement { return this._ctx.canvas; }

/**
Expand Down

0 comments on commit 1acaf6a

Please sign in to comment.