Skip to content 

ICreateStrokeOperation Interface

Packages > @fluidframework/ink > ICreateStrokeOperation

Create stroke operations notify clients that a new stroke has been created, along with basic information about the stroke.

Signature:

export interface ICreateStrokeOperation 

Properties

List of properties of this interface
Property Type Description
id string Unique ID that will be used to reference this stroke.
pen IPen Description of the pen used to create the stroke.
time number Time, in milliseconds, that the operation occurred on the originating device.
type "createStroke" String identifier for the operation type.

Events

id

Unique ID that will be used to reference this stroke.

Signature:

id: string;

pen

Description of the pen used to create the stroke.

Signature:

pen: IPen;

time

Time, in milliseconds, that the operation occurred on the originating device.

Signature:

time: number;

type

String identifier for the operation type.

Signature:

type: "createStroke";