This API supports undo/redo in NOTE.Only elements on the main lasso layer are supported (strokes, geometries, TextBox elements). Other layers are not supported.Recommended to call this API from the plugin UI entered via a lasso toolbar button.
| Parameter | Type | Description |
|---|---|---|
params.destPath | string | Destination path / URL: when linkType === 4, set this to the URL; otherwise set it to the destination file path |
params.destPage | number | Destination page (only valid when linkType === 0 or linkType === 2)For linkType === 0: must be a non-negative integer, meaning the target note pageFor linkType === 2: a negative value jumps to the document current page; a non-negative integer jumps to the specified document page |
params.style | number | Link style: 0 solid underline, 1 solid border, 2 dashed border |
params.linkType | number | Link type: 0 note page, 1 note file, 2 document, 3 image, 4 URL |
setLassoStrokeLink is a write API. Current plugin APIs do not support setting links to digest links (linkType=6). However, when reading lasso link data, you may encounter links with linkType=6 (digest links).APIResponse<number>:resultis a status code (convention:0success,-1failure,-2target file requires upgrade)