Skip to main content

Type Alias: BarMoveRuleWrapper

BarMoveRuleWrapper = (next) => BarMoveRule

Defined in: model/bar-move-rule.ts:28

How a plugin claims the seam, composing onto the current occupant the way PlaceRuleWrapper does:

ctx.edits.setBarMoveRule((next) => (entry) => entry.id === 'phase-1' ? false : next(entry));

That reads: set the bar move rule. The bar of phase-1 does not move. For any other Entry, ask the next rule.

Parameters​

next​

BarMoveRule

Returns​

BarMoveRule