Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
设置套索元素为链接。
static setLassoStrokeLink(params: { destPath: string; destPage: number; style: number; linkType: number; }): Promise<APIResponse<number>>;
params.destPath
string
linkType === 4
params.destPage
number
linkType === 0
linkType === 2
params.style
0
1
2
params.linkType
3
4
setLassoStrokeLink
linkType=6
APIResponse<number>
result
-1
-2
import { PluginNoteAPI } from 'sn-plugin-lib'; /** * 将套索笔划设置为“跳转到笔记页链接”的示例。 */ export async function exampleSetLassoStrokeLink() { const res = await PluginNoteAPI.setLassoStrokeLink({ destPath: '/storage/emulated/0/Note/demo.note', destPage: 1, style: 0, linkType: 0, }); if (!res.success) { throw new Error(res.error?.message ?? 'setLassoStrokeLink 调用失败'); } return res.result; }