Home > scribing > InsertContent
Represents an operation that insert flow content.
Signature:
/** @sealed */
export declare class InsertContent extends InsertContentBase implements InsertContentProps
Extends: InsertContentBase
Implements: InsertContentProps
Property | Modifiers | Type | Description |
---|---|---|---|
classType |
|
import("paratype").Type<InsertContent> | The run-time type that represents this class |
Method | Modifiers | Description |
---|---|---|
afterInsertFlow(other) | Transforms the current operation so that its intent is preserved after the specified range was inserted. | |
afterRemoveFlow(other) | 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. | |
fromData(data) | static |
Gets an instance of the current class from the specified data |
invert() | Returns an operation that negates the effect of the current operation. | |
mergeNext(next) | Returns an operation that keeps the intention of the current operation and the specified subsequent operation as they were performed as an atomic operation. | |
toData() | Converts the current operation to data | |
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. |