import { PluginCommAPI, type Rect } from 'sn-plugin-lib';
/**
* 获取套索框矩形的示例。
*/
export async function exampleGetLassoRect(): Promise<Rect> {
const res = await PluginCommAPI.getLassoRect();
if (!res.success) {
throw new Error(res.error?.message ?? 'getLassoRect 调用失败');
}
return res.result;
}