ICreateStrokeOperation Interface
Create stroke operations notify clients that a new stroke has been created, along with basic information about the stroke.
Signature
export interface ICreateStrokeOperation
Properties
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. |
Property Details
id
Unique ID that will be used to reference this stroke.
Signature
id: string;
Type: string
pen
Description of the pen used to create the stroke.
Signature
pen: IPen;
Type: IPen
time
Time, in milliseconds, that the operation occurred on the originating device.
Signature
time: number;
Type: number
type
String identifier for the operation type.
Signature
type: "createStroke";
Type: "createStroke"