Web SDKv1.0.0

ToolsApi

The running tools a viewer exposes to code, reached as viewer.tools. Constructed by the SDK. Today it holds one handle, editText.
namespaceviewer.tools

Tools

editTextgettersince 1.0.0
get editText(): EditTextToolApi
Control surface for the Edit Text tool: list, open, retype and commit text blocks from code. Every method of it needs the tool to be active (viewer.activateTool('editText'), which needs the license's edit-text feature); see EditTextToolApi.
Returns EditTextToolApi
TypeScript
await viewer.activateTool('editText');
const blocks = await viewer.tools.editText.listBlocks(0);