Skip to main content
Version: 1.1.0

IImpactFeasibilityMatrixRenderItemContext

@spartanfx/react v1.1.0


@spartanfx/react / index / IImpactFeasibilityMatrixRenderItemContext

Interface: IImpactFeasibilityMatrixRenderItemContext<TItem>

Context passed to a custom IImpactFeasibilityMatrixProps.renderItem. x / y here are the CURRENT on-screen coordinates (maximized-aware), which differ from the normalized item's full-matrix x / y while a quadrant is maximized.

Type Parameters

TItem

TItem

Properties

PropertyTypeDescription
indexnumberIndex of the item within the normalized list.
isMaximizedbooleanWhether the item is currently rendered inside a maximized quadrant.
itemIImpactFeasabilityMatrixItem<TItem>The normalized item.
originalItemTItemThe untouched original consumer item.
quadrantKeyTQuadrantKeyThe quadrant this item belongs to.
xnumberCurrent horizontal position, percent 0..100.
ynumberCurrent vertical position, percent 0..100.