Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 3.13 KB

scribing.nestedflowoperation.md

File metadata and controls

40 lines (30 loc) · 3.13 KB

Home > scribing > NestedFlowOperation

NestedFlowOperation class

A nested operation at a specific flow position

Signature:

export declare abstract class NestedFlowOperation extends FlowOperation 

Extends: FlowOperation

Properties

Property Modifiers Type Description
inner abstract FlowOperation The nested operation
position abstract number Position of the nested operation

Methods

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)

protected

abstract

Creates a replacement node
getInnerContent(outer) protected Gets the inner content
getInnerContentFromNode(node)

protected

abstract

Gets the inner content
getInnerThemeFromNode(node, outer)

protected

abstract

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.