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.
Sort layers (the first layer is on top).
static sortLayers(NOTEPath: string, page: number, layerIds: number[]): Promise<APIResponse<boolean>>;
NOTEPath
string
page
number
0
layerIds
number[]
0..3
APIResponse<boolean>
result === true
import { PluginFileAPI } from 'sn-plugin-lib'; /** * Example: sort layers (pass the desired layer order). */ export async function exampleSortLayers() { const NOTEPath = '/storage/emulated/0/Note/demo.note'; const page = 1; const res = await PluginFileAPI.sortLayers(NOTEPath, page, [2, 1, 0]); if (!res.success) { throw new Error(res.error?.message ?? 'sortLayers call failed'); } return res.result; }