ViewerDrawingProcessOptions

Interface ViewerDrawingProcessOptions

Contains options for the ViewerDrawingAPI.leaveDrawingMode method. The options are used to configure the result of the processing.

interface ViewerDrawingProcessOptions {
    brushPrimitiveType?: "triangleStrip";
    penPrimitiveType?: "triangleStrip" | "lineStrip";
    shapePrimitiveType?: "triangleStrip" | "lineStrip";
    subDivisions?: number;
    thumbnail?: boolean;
    thumbnailHeight?: number;
    thumbnailWidth?: number;
}

Properties

brushPrimitiveType?: "triangleStrip"

Specifies the output primitive type of the brush-drawings.

"triangleStrip"
penPrimitiveType?: "triangleStrip" | "lineStrip"

Specifies the output primitive type of the pen-drawings.

"triangleStrip"
shapePrimitiveType?: "triangleStrip" | "lineStrip"

Specifies the output primitive type of the shape-drawings.

"triangleStrip"
subDivisions?: number

Specifies the number of points to render shapes with when using the "lineStrip" primitive type.

50
thumbnail?: boolean

Specifies if the result contains a thumbnail of the drawing.

true
thumbnailHeight?: number

Specifies the height of the thumbnail. If the thumbnail height or width is not set, the current viewer size is used.

undefined
thumbnailWidth?: number

Specifies the width of the thumbnail. If the thumbnail height or width is not set, the current viewer size is used.

undefined