import { PluginCommAPI } from 'sn-plugin-lib';
/**
* 原地翻转当前套索中的元素。
*/
export async function exampleFlipLassoElements(flipType: 1 | 2) {
console.log('flipLassoElements flipType:', flipType);
const res = await PluginCommAPI.flipLassoElements(flipType);
if (!res.success) {
throw new Error(res.error?.message ?? 'flipLassoElements 调用失败');
}
console.log('flipLassoElements result:', res.result);
return res.result;
}