@kismet.ts/core / Exports / SequencePositionManager

Class: SequencePositionManager

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SequencePositionManager(options)

Parameters

NameType
optionsSequencePositionManagerOptions<SchemaItemNames>

Defined in

managers/PositionManager.ts:27open in new window

Properties

options

options: Required<layoutOptions>

Defined in

managers/PositionManager.ts:24open in new window


projectId

Optional Readonly projectId: ProcessId

Defined in

managers/PositionManager.ts:22open in new window


schema

Optional schema: SequenceSchemaOptions<SchemaItemNames>[]

Defined in

managers/PositionManager.ts:25open in new window


style

Readonly style: PositionStyleOption

Defined in

managers/PositionManager.ts:21open in new window

Methods

_validateOptions

Private _validateOptions(sequence): null | Sequence

Parameters

NameType
sequenceSequence

Returns

null | Sequence

Defined in

managers/PositionManager.ts:36open in new window


applySchema

Protected applySchema(sequence, schema?): KismetItemPosition[]

Parameters

NameType
sequenceSequence
schema?SequenceSchemaOptions<SchemaItemNames>

Returns

KismetItemPosition[]

Defined in

managers/PositionManager.ts:115open in new window


applyStyle

Protected applyStyle(inputItems, layout): KismetItemPosition[]

Parameters

NameType
inputItems(SequenceItemType | Sequence)[]
layoutObject
layout.optionsRequired<layoutOptions>
layout.styleOmit<PositionStyleOption, "schema" | "none">
layout.type?SchemaItemNames
layout.variables?SequenceSchemaVariableOptions[]

Returns

KismetItemPosition[]

Defined in

managers/PositionManager.ts:137open in new window


fillPositions

fillPositions(sequence): Sequence

Parameters

NameType
sequenceSequence

Returns

Sequence

Defined in

managers/PositionManager.ts:190open in new window


variablePositions

Private variablePositions(item, items, positions, options): KismetItemPosition[]

Parameters

NameType
itemSequenceItemType
items(SequenceItemType | Sequence)[]
positionsKismetItemPosition[]
optionsSequenceSchemaVariableOptions

Returns

KismetItemPosition[]

Defined in

managers/PositionManager.ts:59open in new window