Class: BringMoveSwap
actions/BringMoveSwap.internal.BringMoveSwap
Hierarchy
Implements
Constructors
constructor
• new BringMoveSwap(graph
, type
)
Parameters
Name | Type |
---|---|
graph | Graph |
type | ActionType |
Defined in
actions/BringMoveSwap.ts:36
Methods
broadcastSource
▸ Private
broadcastSource(sources
, destinations
): any
[]
Parameters
Name | Type |
---|---|
sources | Target [] |
destinations | Target [] |
Returns
any
[]
Defined in
actions/BringMoveSwap.ts:40
calculateMarks
▸ Private
calculateMarks(markEntries
): Object
Parameters
Name | Type |
---|---|
markEntries | MarkEntry [] |
Returns
Object
Name | Type |
---|---|
sourceMark | MarkEntry [] |
thatMark | MarkEntry [] |
Defined in
actions/BringMoveSwap.ts:238
decorateTargets
▸ Private
decorateTargets(sources
, destinations
): Promise
<void
>
Parameters
Name | Type |
---|---|
sources | Target [] |
destinations | Target [] |
Returns
Promise
<void
>
Defined in
actions/BringMoveSwap.ts:71
decorateThatMark
▸ Private
decorateThatMark(thatMark
): Promise
<[void
, void
]>
Parameters
Name | Type |
---|---|
thatMark | MarkEntry [] |
Returns
Promise
<[void
, void
]>
Defined in
actions/BringMoveSwap.ts:218
getDecorationContext
▸ Private
getDecorationContext(): Object
Returns
Object
Name | Type |
---|---|
destinationStyle | EditStyle |
getSourceRangeCallback | (target : Target ) => undefined | Range |
sourceStyle | EditStyle |
Defined in
actions/BringMoveSwap.ts:49
getEdits
▸ Private
getEdits(sources
, destinations
): ExtendedEdit
[]
Parameters
Name | Type |
---|---|
sources | Target [] |
destinations | Target [] |
Returns
Defined in
actions/BringMoveSwap.ts:86
performEditsAndComputeThatMark
▸ Private
performEditsAndComputeThatMark(edits
): Promise
<MarkEntry
[]>
Parameters
Name | Type |
---|---|
edits | ExtendedEdit [] |
Returns
Promise
<MarkEntry
[]>
Defined in
actions/BringMoveSwap.ts:156
run
▸ run(__namedParameters
): Promise
<ActionReturnValue
>
Parameters
Name | Type |
---|---|
__namedParameters | [Target [], Target []] |
Returns
Promise
<ActionReturnValue
>
Implementation of
Defined in
actions/BringMoveSwap.ts:254