> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# GraphicsContextApi

> Public surface of Graphics2DLibrary, exposed on Context.graphics.

Defined in: [modules/graphics-2d/src/graphics-context.type.ts:4](https://github.com/NanoForge-dev/Engine/blob/ed8c7e0b33d17f8343c32659cf63ba4166a4fa53/modules/graphics-2d/src/graphics-context.type.ts#L4)

Public surface of `Graphics2DLibrary`, exposed on `Context.graphics`.

## Properties

### baseLayer

> `readonly` **baseLayer**: `Layer`

Defined in: [modules/graphics-2d/src/graphics-context.type.ts:11](https://github.com/NanoForge-dev/Engine/blob/ed8c7e0b33d17f8343c32659cf63ba4166a4fa53/modules/graphics-2d/src/graphics-context.type.ts#L11)

The default Konva `Layer` added to the stage — add shapes here to render them.

***

### stage

> `readonly` **stage**: `Stage`

Defined in: [modules/graphics-2d/src/graphics-context.type.ts:9](https://github.com/NanoForge-dev/Engine/blob/ed8c7e0b33d17f8343c32659cf63ba4166a4fa53/modules/graphics-2d/src/graphics-context.type.ts#L9)

The Konva `Stage`, scaled so its coordinates are in the viewport's design
resolution and resized on every viewport change.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.