ViewerDrawingAPI¶
Interface ViewerDrawingAPI
interface ViewerDrawingAPI {
cancelDrawingMode(): void;
enterDrawingMode(): void;
leaveDrawingMode(
options?: ViewerDrawingProcessOptions,
): Promise<ViewerDrawingResult>;
}
cancelDrawingMode(): void;
enterDrawingMode(): void;
leaveDrawingMode(
options?: ViewerDrawingProcessOptions,
): Promise<ViewerDrawingResult>;
}
Hierarchy (View Summary)
- ViewerDrawingAPI
Index
Methods
cancel Drawing Mode
Leaves the 2D drawing mode and discards all uncomitted drawings.
Returns void
enter Drawing Mode
Enters the 2D drawing mode where you can draw on top of your 3D model.
Returns void
leave Drawing Mode
Leaves the 2D drawing mode and returns the processed 2D drawing data which can be used to create a drawing with the help of the DrawingAPI.
Parameters
Optionaloptions: ViewerDrawingProcessOptionsOptions to configure the result of the processing.
Returns Promise<ViewerDrawingResult>
The processed 2D drawing data.
The ViewerDrawingAPI provides basic functionalities to control the 2D drawing mode and the processed output.
See the ViewerDrawingProcessOptions for the various configuration options for creating a drawing.