Class: KonvaWhiteboardConverter

Constructor

new KonvaWhiteboardConverter()

KonvaWhiteboardConverter provides functionality for converting Konva.Shape into SDK.Shape, which is
specially prepared object with all the necessary data.

Methods

convertEllipse(konvaShape) → {AvayaClientServices.Services.Collaboration.Circle}

Converts Konva ellipse shape into SDK shape object.

Parameters:
Name Type Description
konvaShape Konva.Ellipse

Konva shape which is going to be converted to the SDK shape.

Returns:
{ AvayaClientServices.Services.Collaboration.Circle }

convertLine(konvaShape) → {AvayaClientServices.Services.Collaboration.Shape}

Converts Konva line shape into SDK shape object.

Parameters:
Name Type Description
konvaShape Konva.Line

Konva shape which is going to be converted to the SDK shape.

Returns:
{ AvayaClientServices.Services.Collaboration.Shape }

convertPolygon(konvaShape) → {AvayaClientServices.Services.Collaboration.Shape}

Converts Konva polygon mark into SDK shape object.

Parameters:
Name Type Description
konvaShape Konva.Shape

Konva shape which is going to be converted to the SDK shape.

Returns:
{ AvayaClientServices.Services.Collaboration.Shape }

convertRectangle(konvaShape) → {AvayaClientServices.Services.Collaboration.Shape}

Converts Konva rectangle shape into SDK shape object.

Parameters:
Name Type Description
konvaShape Konva.Rect

Konva shape which is going to be converted to the SDK shape.

Returns:
{ AvayaClientServices.Services.Collaboration.Shape }

convertText(konvaShape) → {AvayaClientServices.Services.Collaboration.WhiteboardText}

Converts Konva text into SDK shape object.

Parameters:
Name Type Description
konvaShape Konva.Text

Konva shape which is going to be converted to the SDK shape.

Returns:
{ AvayaClientServices.Services.Collaboration.WhiteboardText }
©2016 Avaya Inc. All Rights Reserved.