You must create a lasso selection before calling this API; otherwise the call fails.
APIResponse<Geometry[]>:resultis theGeometryarray.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get lasso-selected geometries.
static getLassoGeometries(): Promise<APIResponse<Geometry[]>>;
APIResponse<Geometry[]>:
result is the Geometry array.import { PluginCommAPI } from 'sn-plugin-lib';
/**
* Example: get lasso-selected geometries.
*/
export async function exampleGetLassoGeometries() {
const res = await PluginCommAPI.getLassoGeometries();
if (!res.success) {
throw new Error(res.error?.message ?? 'getLassoGeometries call failed');
}
return res.result;
}