This API creates or updates the current lasso selection using a rectangle (pixel coordinates). After calling it successfully, you can call other lasso-related APIs (for example
getLassoRect() / getLassoElements()).
The input rect must stay within the page size: left and top can be 0, and right and bottom can be equal to the maximum page size, but they must not exceed the page bounds. Get the page size through PluginFileAPI.getPageSize.
Returns
APIResponse<boolean>:result === trueindicates the lasso selection was created successfully