Skip to main content

MoveRangeDiff Interface

An object that describes the movement of a range of nodes from one array node to another array node.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/ai-collab/alpha.

For more information about our API support guarantees, see here.

Signature

export interface MoveRangeDiff extends DiffBase

Extends: DiffBase

Properties

PropertyAlertsModifiersTypeDescription
destinationNodePathAlphareadonlyNodePathThe path from the root of the tree to the destination array node.
moveTypeAlphareadonly"move-range"The type of movement being performed.
nodeContentsAlphareadonlyunknown[]The content of each of the nodes being moved from the source array node to the destination array node.
sourceNodePathsAlphareadonlyNodePath[]The paths to each node being moved from the source array node.
typeAlphareadonly"move"

Property Details

destinationNodePath

The path from the root of the tree to the destination array node.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly destinationNodePath: NodePath;

Type: NodePath

moveType

The type of movement being performed.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly moveType: "move-range";

Type: "move-range"

nodeContents

The content of each of the nodes being moved from the source array node to the destination array node.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly nodeContents: unknown[];

Type: unknown[]

sourceNodePaths

The paths to each node being moved from the source array node.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly sourceNodePaths: NodePath[];

Type: NodePath[]

type

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly type: "move";

Type: "move"