Skip to content

FlatlandConfig

Defined in: packages/three-flatland/src/config/FlatlandConfig.ts:57

Library-wide configuration above rendering and texture-specific defaults.

The system defaults to 'pixel-art', coordinating integer camera scaling, projected-pivot snapping, and pixel-art texture loading. More-specific subsystem, class, and instance options can override either branch.

FlatlandConfig.options = 'smooth'
// Or customize one branch while retaining the pixel-art system defaults.
FlatlandConfig.options = { texture: 'smooth' }

new FlatlandConfig(): FlatlandConfig

FlatlandConfig

get static options(): FlatlandSetting

Defined in: packages/three-flatland/src/config/FlatlandConfig.ts:60

FlatlandSetting

set static options(value): void

Defined in: packages/three-flatland/src/config/FlatlandConfig.ts:64

FlatlandSetting

void


get static resolved(): Readonly<Required<FlatlandConfigOptions>>

Defined in: packages/three-flatland/src/config/FlatlandConfig.ts:69

Fully resolved library-wide options.

Readonly<Required<FlatlandConfigOptions>>

static reset(): void

Defined in: packages/three-flatland/src/config/FlatlandConfig.ts:74

Reset the library-wide setting to the coordinated 'pixel-art' preset.

void