Skip to content

CreateMaelstromConfig

Defined in: packages/react/src/lib/create-maelstrom.ts:36

Configuration used to create one typed React Maelstrom instance.

T extends readonly AnyVesselEntry[]

optional cellSizePx?: number

Defined in: packages/react/src/lib/create-maelstrom.ts:43

Grid cell size in pixels. Defaults to 80, must be positive, and may be overridden by the Provider.


optional debug?: boolean

Defined in: packages/react/src/lib/create-maelstrom.ts:50

Enables client diagnostic logging. Defaults to false.


optional intentQueue?: IntentQueueOptions

Defined in: packages/react/src/lib/create-maelstrom.ts:62

Mount-time shared FIFO policy. Defaults: 8 pending, 30s queue wait, 10s disconnected grace, 60s active result deadline. The deadline does not cancel work. Provider overrides replace this object; remount to change it. Invalid limits fail Provider construction, as in the client SDK.


optional motion?: ChartMotionConfig

Defined in: packages/react/src/lib/create-maelstrom.ts:55

Chart motion/choreography settings. A motion prop on the Provider overrides this as a whole object (no per-field merge).


optional tilingPaddingPx?: number

Defined in: packages/react/src/lib/create-maelstrom.ts:48

Pixel gap inset around computed tiling regions. Defaults to 8, must be non-negative, and may be overridden by the Provider.


vessels: AssertNarrowIds<T> & T

Defined in: packages/react/src/lib/create-maelstrom.ts:38

Vessel entries available to the Provider and generated hooks.