UI.SketchViewer() class

Create a viewer for sketching over an image which can be either a jpg or a png.

Signature:

export default class SketchViewer(containerId: string, file: string, onReady: (viewer: DWGViewer)=>void , onError: (err: string)=>void);

Parameters

ParameterTypeDescription
containerIdstringThe id of a DIV DOM which will host the viewer.
filestringThe URL of the image file.
onReady(viewer: SketchViewer)=>voidCallback when the viewer is created.
onError(err: string)=>voidCallback when some errors happen.

Returns:

Modelo.UI.DWGViewer

Methods

MethodModifiersDescription
destroy()---Destroy the viewer.