Skip to main content

Function: generateMappingFromPattern()

generateMappingFromPattern(drawdown, pattern, type): number[]

Defined in: draft/draft.ts:961

generates a system or shuttle mapping from an input pattern based on the input draft

Parameters

drawdown

Drawdown

the drawdown for which we are creating this mapping

pattern

number[]

the repeating pattern to use when creating the mapping

type

string

specify if this is a 'row'/weft or 'col'/warp mapping

Returns

number[]

the mapping to use