Titles are a NOTE-only capability; DOC does not support them. Titles can only be created and modified on the main layer (
layer=0) of a note file.Create a Title
CallPluginNoteAPI.setLassoTitle to set the lasso-selected strokes or geometries as a title. Example:
style).
Before calling this API, you must create a lasso selection on the page; otherwise the API call fails.
Get Lasso Title Data
CallPluginNoteAPI.getLassoTitles to get title data from the current lasso selection. Example:
PluginNoteAPI.getLassoTitles
can only be called when a lasso context exists. It returns an APIResponse<Title[]>.
result is an array of Title.
The data structure of Title:
Modify a Title
After lasso-selecting a title, callPluginNoteAPI.modifyLassoTitle to modify the title data. Example: