Home > scribing > NestedFlowOperation
A nested operation at a specific flow position
Signature:
export declare abstract class NestedFlowOperation extends FlowOperation
Extends: FlowOperation
Property | Modifiers | Type | Description |
---|---|---|---|
inner | abstract |
FlowOperation | The nested operation |
position | abstract |
number | Position of the nested operation |
Method | Modifiers | Description |
---|---|---|
afterInsertFlow(range) | Transforms the current operation so that its intent is preserved after the specified range was inserted. | |
afterRemoveFlow(range) | Transforms the current operation so that its intent is preserved after the specified range was removed. | |
applyToContent(content, theme) | Applies the current operation on the specified content and returns the updated result. | |
applyToSelection(selection, mine) | Applies the current operation on the specified selection and returns the updated result. | |
createReplacementNode(content, before) |
|
Creates a replacement node |
getInnerContent(outer) | protected |
Gets the inner content |
getInnerContentFromNode(node) |
|
Gets the inner content |
getInnerThemeFromNode(node, outer) |
|
Gets the inner theme |
getTargetNode(outer) | protected |
Gets the target node |
invert(content) | Returns an operation that negates the effect of the current operation. | |
set(key, value) | abstract |
Returns a copy of the current object with the specified property merged in |
set(key, value) | abstract |
Returns a copy of the current object with the specified property merged in |
transform(other) | Transforms the specified operation to with respect to change implied by the current operation so that the intent of the operation is retained when it is applied after the current operation. |