Only note files (.note) have layer data. Other file types do not have layer data.
Field
Type
Description
layerId
number
Layer ID: - -1 background layer: cannot delete, cannot rename, cannot reorder, cannot set as current layer, can set visibility - 0 main layer: cannot delete, cannot rename, can reorder, can set as current layer, can set visibility - 1-3 custom layers: can delete, can rename, can reorder, can set as current layer, can set visibility
name
string
Layer name
isCurrentLayer
boolean
Whether this is the current layer
isVisible
boolean
Whether this layer is visible
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Supernote","colors":{"primary":"#368BC1","light":"#5AA3D1","dark":"#2A6E99"},"logo":{"light":"https://mintcdn.com/rattashanghai/ae3Z9gbDK5_mDDm9/logo/light.svg?fit=max\u0026auto=format\u0026n=ae3Z9gbDK5_mDDm9\u0026q=85\u0026s=f26a99d3aa54c94983e1a62bbb9b3cb8","dark":"https://mintcdn.com/rattashanghai/ae3Z9gbDK5_mDDm9/logo/dark.svg?fit=max\u0026auto=format\u0026n=ae3Z9gbDK5_mDDm9\u0026q=85\u0026s=cdc5ef0678e80e6d8d7e13bea87f3ef4"},"favicon":"https://mintcdn.com/rattashanghai/Xc-fTcb6M7VWTYp5/favicon.svg?fit=max\u0026auto=format\u0026n=Xc-fTcb6M7VWTYp5\u0026q=85\u0026s=565f3c5669675de08642935e861d8af4","background":{"color":{"light":"#EFEFEF","dark":"#1B1B1B"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en"},{"language":"zh","href":"zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rattashanghai","hasAudioNarration":false,"actualSubdomain":"rattashanghai","customDomains":["docs.supernote.com"],"gitSource":{"type":"github","owner":"supernote-ratta","repo":"docs-plugin","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6acc4b220861624c50959b89","collectionId":"753572b5-afd0-4b8e-be76-1ca378138c34","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6acc4b220861624c50959b89"},"entitlements":{},"buildId":"6acc4b220861624c50959b89","clientVersion":"0.0.3894","searchFilterCounts":[{"language":"en","tag":"API reference","count":140},{"language":"en","tag":"Supernote Plugin SDK","count":140},{"language":"zh","tag":"API reference","count":140},{"language":"zh","tag":"Supernote Plugin SDK","count":140},{"language":"en","tag":"PluginFileAPI","count":38},{"language":"zh","tag":"PluginFileAPI","count":38},{"language":"en","tag":"PluginCommAPI","count":37},{"language":"zh","tag":"PluginCommAPI","count":37},{"language":"en","tag":"Types","count":25},{"language":"zh","tag":"类型","count":25},{"language":"en","tag":"PluginManager","count":18},{"language":"zh","tag":"PluginManager","count":18},{"language":"en","tag":"PluginNoteAPI","count":14},{"language":"en","tag":"Guides","count":14},{"language":"zh","tag":"PluginNoteAPI","count":14},{"language":"zh","tag":"Guides","count":14},{"language":"en","tag":"Developer Guide","count":12},{"language":"zh","tag":"开发指南","count":12},{"language":"en","tag":"Basics","count":10},{"language":"zh","tag":"学习基础知识","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#footer,footer{display:none!important}"}],"page":{"pagePath":"en/api-reference/supernote-plugin/types/layer","slug":"/en/api-reference/supernote-plugin/types/layer","pageMetadata":{"title":"Layer","description":"Layer data type.","href":"/en/api-reference/supernote-plugin/types/layer"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Layer data type.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Note,Table}=_components;if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`Only note files (`,_jsx(_components.code,{children:`.note`}),`) have layer data. Other file types do not have layer data.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`layerId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`Layer ID:`,_jsx(`br`,{}),`- `,_jsx(_components.code,{children:`-1`}),` background layer: cannot delete, cannot rename, cannot reorder, cannot set as current layer, can set visibility`,_jsx(`br`,{}),`- `,_jsx(_components.code,{children:`0`}),` main layer: cannot delete, cannot rename, can reorder, can set as current layer, can set visibility`,_jsx(`br`,{}),`- `,_jsx(_components.code,{children:`1-3`}),` custom layers: can delete, can rename, can reorder, can set as current layer, can set visibility`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Layer name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`isCurrentLayer`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{children:`Whether this is the current layer`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`isVisible`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{children:`Whether this layer is visible`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Layer","description":"Layer data type.","href":"/en/api-reference/supernote-plugin/types/layer"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"rattashanghai","siteName":"Supernote","title":"Layer - Supernote","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/supernote-plugin/types/layer","matchLevel":0},"zh":{"href":"/zh/api-reference/supernote-plugin/types/layer","matchLevel":1}}},"lastModified":"2026-03-23T07:46:22.617Z","originalFileLocation":"en/api-reference/supernote-plugin/types/layer.mdx","locale":"en"},"headHtml":"\u003cmeta data-mint-head name=\"description\" content=\"Layer data type.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Supernote\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Layer - Supernote\">\u003cmeta data-mint-head property=\"og:description\" content=\"Layer data type.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Supernote\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Layer - Supernote\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Layer data type.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/rattashanghai/gKgsAmJcZIhsG6n2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Supernote\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#368BC1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/supernote-plugin/types/layer.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.supernote.com/zh/api-reference/supernote-plugin/types/layer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.supernote.com/#organization\",\"name\":\"Supernote\",\"url\":\"https://docs.supernote.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rattashanghai/ae3Z9gbDK5_mDDm9/logo/light.svg?fit=max\u0026auto=format\u0026n=ae3Z9gbDK5_mDDm9\u0026q=85\u0026s=f26a99d3aa54c94983e1a62bbb9b3cb8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.supernote.com#website\",\"name\":\"Supernote\",\"url\":\"https://docs.supernote.com\",\"publisher\":{\"@id\":\"https://docs.supernote.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer#webpage\",\"url\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer\",\"name\":\"Layer\",\"description\":\"Layer data type.\",\"dateModified\":\"2026-03-23T07:46:22.617Z\",\"isPartOf\":{\"@id\":\"https://docs.supernote.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Supernote Plugin SDK\",\"item\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/plugin-comm-api/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Types\",\"item\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/index\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Layer\",\"item\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer#article\",\"headline\":\"Layer\",\"name\":\"Layer\",\"description\":\"Layer data type.\",\"url\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer\",\"mainEntityOfPage\":{\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/layer#webpage\"},\"dateModified\":\"2026-03-23T07:46:22.617Z\",\"publisher\":{\"@id\":\"https://docs.supernote.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.supernote.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Supernote\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Supernote","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/en"}]},{"tab":"API reference","groups":[{"group":"Supernote Plugin SDK","pages":[{"group":"PluginCommAPI","expanded":false,"pages":[{"title":"PluginCommAPI","sidebarTitle":"Overview","href":"/en/api-reference/supernote-plugin/plugin-comm-api"},{"title":"createElement","href":"/en/api-reference/supernote-plugin/plugin-comm-api/create-trail"},{"title":"recycleElement","href":"/en/api-reference/supernote-plugin/plugin-comm-api/recycle-trail"},{"title":"clearElementCache","href":"/en/api-reference/supernote-plugin/plugin-comm-api/clear-trail-cache"},{"title":"getCacheElement","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-cache-element"},{"title":"saveStickerByLasso","href":"/en/api-reference/supernote-plugin/plugin-comm-api/save-sticker-by-lasso"},{"title":"getStickerSize","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-sticker-size"},{"title":"generateStickerThumbnail","href":"/en/api-reference/supernote-plugin/plugin-comm-api/generate-sticker-thumbnail"},{"title":"convertElement2Sticker","href":"/en/api-reference/supernote-plugin/plugin-comm-api/convert-trail2-sticker"},{"title":"insertSticker","href":"/en/api-reference/supernote-plugin/plugin-comm-api/insert-sticker"},{"title":"setLassoBoxState","href":"/en/api-reference/supernote-plugin/plugin-comm-api/set-lasso-box-state"},{"title":"getLassoRect","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-lasso-rect"},{"title":"lassoElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/lasso-elements"},{"title":"resizeLassoRect","href":"/en/api-reference/supernote-plugin/plugin-comm-api/resize-lasso-rect"},{"title":"flipLassoElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/flip-lasso-elements"},{"title":"getLassoElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-lasso-data"},{"title":"getLassoElementTypeCounts","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-lasso-data-type-counts"},{"title":"deleteLassoElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/delete-lasso-data"},{"title":"getCurrentPageNum","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-current-page-num"},{"title":"canHandwrite","href":"/en/api-reference/supernote-plugin/plugin-comm-api/can-handwrite"},{"title":"jumpToPage","href":"/en/api-reference/supernote-plugin/plugin-comm-api/jump-to-page"},{"title":"getPageDisplaySize","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-page-display-size"},{"title":"modifyPageElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/modify-page-elements"},{"title":"insertPageElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/insert-page-elements"},{"title":"deletePageElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/delete-page-elements"},{"title":"batchUpdatePageElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/batch-update-page-elements"},{"title":"getCurrentFilePath","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-current-file-path"},{"title":"getPenInfo","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-pen-info"},{"title":"recognizeElements","href":"/en/api-reference/supernote-plugin/plugin-comm-api/recognize-elements"},{"title":"cancelRecognize","href":"/en/api-reference/supernote-plugin/plugin-comm-api/cancel-recognize"},{"title":"reloadFile","href":"/en/api-reference/supernote-plugin/plugin-comm-api/reload-file"},{"title":"getLassoGeometries","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-lasso-geometries"},{"title":"insertGeometry","href":"/en/api-reference/supernote-plugin/plugin-comm-api/insert-geometry"},{"title":"modifyLassoGeometry","href":"/en/api-reference/supernote-plugin/plugin-comm-api/modify-lasso-geometry"},{"title":"getNoteSystemTemplates","href":"/en/api-reference/supernote-plugin/plugin-comm-api/get-note-system-templates"},{"title":"insertFiveStar","href":"/en/api-reference/supernote-plugin/plugin-comm-api/insert-five-star"},{"title":"generateLassoPreview","href":"/en/api-reference/supernote-plugin/plugin-comm-api/generate-lasso-preview"}]},{"group":"PluginNoteAPI","expanded":false,"pages":[{"title":"PluginNoteAPI","sidebarTitle":"Overview","href":"/en/api-reference/supernote-plugin/plugin-note-api/index"},{"title":"getLassoLinks","href":"/en/api-reference/supernote-plugin/plugin-note-api/get-lasso-link"},{"title":"setLassoStrokeLink","href":"/en/api-reference/supernote-plugin/plugin-note-api/set-lasso-stroke-link"},{"title":"insertTextLink","href":"/en/api-reference/supernote-plugin/plugin-note-api/insert-text-link"},{"title":"modifyLassoLink","href":"/en/api-reference/supernote-plugin/plugin-note-api/modify-lasso-link"},{"title":"saveCurrentNote","href":"/en/api-reference/supernote-plugin/plugin-note-api/save-current-note"},{"title":"setLassoTitle","href":"/en/api-reference/supernote-plugin/plugin-note-api/set-lasso-title"},{"title":"getLassoTitles","href":"/en/api-reference/supernote-plugin/plugin-note-api/get-lasso-title"},{"title":"modifyLassoTitle","href":"/en/api-reference/supernote-plugin/plugin-note-api/modify-lasso-title"},{"title":"getLassoText","href":"/en/api-reference/supernote-plugin/plugin-note-api/get-lasso-text"},{"title":"insertText","href":"/en/api-reference/supernote-plugin/plugin-note-api/insert-text"},{"title":"modifyLassoText","href":"/en/api-reference/supernote-plugin/plugin-note-api/modify-lasso-text"},{"title":"insertImage","href":"/en/api-reference/supernote-plugin/plugin-note-api/insert-image"},{"title":"generateLayerPreviewImage","href":"/en/api-reference/supernote-plugin/plugin-note-api/generate-layer-preview-image"}]},{"group":"PluginDocAPI","expanded":false,"pages":[{"title":"PluginDocAPI","sidebarTitle":"Overview","href":"/en/api-reference/supernote-plugin/plugin-doc-api/index"},{"title":"getLastSelectedText","href":"/en/api-reference/supernote-plugin/plugin-doc-api/get-last-selected-text"},{"title":"getCurrentDocText","href":"/en/api-reference/supernote-plugin/plugin-doc-api/get-current-doc-text"},{"title":"getCurrentTotalPages","href":"/en/api-reference/supernote-plugin/plugin-doc-api/get-current-total-pages"},{"title":"generateCurrentDocImage","href":"/en/api-reference/supernote-plugin/plugin-doc-api/generate-current-doc-image"}]},{"group":"PluginFileAPI","expanded":false,"pages":[{"title":"PluginFileAPI","sidebarTitle":"Overview","href":"/en/api-reference/supernote-plugin/plugin-file-api/index"},{"title":"getElements","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-page-trails"},{"title":"replaceElements","href":"/en/api-reference/supernote-plugin/plugin-file-api/replace-trails"},{"title":"insertElements","href":"/en/api-reference/supernote-plugin/plugin-file-api/insert-trails"},{"title":"modifyElements","href":"/en/api-reference/supernote-plugin/plugin-file-api/modify-trails"},{"title":"deleteElements","href":"/en/api-reference/supernote-plugin/plugin-file-api/delete-elements"},{"title":"getTitles","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-titles"},{"title":"getKeyWords","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-key-words"},{"title":"insertKeyWord","href":"/en/api-reference/supernote-plugin/plugin-file-api/insert-key-word"},{"title":"deleteKeyWord","href":"/en/api-reference/supernote-plugin/plugin-file-api/delete-key-word"},{"title":"getNoteTotalPageNum","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-note-total-page-num"},{"title":"getPageSize","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-page-size"},{"title":"generateNotePng","href":"/en/api-reference/supernote-plugin/plugin-file-api/generate-note-png"},{"title":"searchFiveStars","href":"/en/api-reference/supernote-plugin/plugin-file-api/search-five-stars"},{"title":"createNote","href":"/en/api-reference/supernote-plugin/plugin-file-api/create-note"},{"title":"removeNotePage","href":"/en/api-reference/supernote-plugin/plugin-file-api/remove-note-page"},{"title":"insertNotePage","href":"/en/api-reference/supernote-plugin/plugin-file-api/insert-note-page"},{"title":"clearLayerElements","href":"/en/api-reference/supernote-plugin/plugin-file-api/clear-page-layer-data"},{"title":"getLayers","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-layers"},{"title":"modifyLayers","href":"/en/api-reference/supernote-plugin/plugin-file-api/modify-layers"},{"title":"insertLayer","href":"/en/api-reference/supernote-plugin/plugin-file-api/insert-layer"},{"title":"deleteLayers","href":"/en/api-reference/supernote-plugin/plugin-file-api/delete-layers"},{"title":"sortLayers","href":"/en/api-reference/supernote-plugin/plugin-file-api/sort-layers"},{"title":"getMarkPages","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-mark-pages"},{"title":"generateMarkThumbnails","href":"/en/api-reference/supernote-plugin/plugin-file-api/generate-mark-thumbnails"},{"title":"clearMarkElements","href":"/en/api-reference/supernote-plugin/plugin-file-api/clear-mark-trails"},{"title":"getNotePageTemplate","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-note-page-template"},{"title":"generateNoteTemplatePng","href":"/en/api-reference/supernote-plugin/plugin-file-api/generate-note-template-png"},{"title":"getNoteType","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-note-type"},{"title":"getFileMachineType","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-file-machine-type"},{"title":"getElementCounts","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-element-counts"},{"title":"getElementNumList","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-element-num-list"},{"title":"getElement","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-element"},{"title":"getLastElement","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-last-element"},{"title":"openFile","href":"/en/api-reference/supernote-plugin/plugin-file-api/open-file"},{"title":"getPathEncryptionStatus","href":"/en/api-reference/supernote-plugin/plugin-file-api/get-path-encryption-status"},{"title":"unlockPathWithPassword","href":"/en/api-reference/supernote-plugin/plugin-file-api/unlock-path-with-password"},{"title":"lockPathAccess","href":"/en/api-reference/supernote-plugin/plugin-file-api/lock-path-access"}]},{"group":"PluginManager","expanded":false,"pages":[{"title":"Overview","href":"/en/api-reference/supernote-plugin/plugin-manager/index"},{"title":"init","href":"/en/api-reference/supernote-plugin/plugin-manager/init"},{"title":"registerPluginLifeListener","href":"/en/api-reference/supernote-plugin/plugin-manager/register-plugin-life-listener"},{"title":"registerLangListener","href":"/en/api-reference/supernote-plugin/plugin-manager/register-lang-listener"},{"title":"registerEventListener","href":"/en/api-reference/supernote-plugin/plugin-manager/register-event-listener"},{"title":"registerMotionListener","href":"/en/api-reference/supernote-plugin/plugin-manager/register-motion-listener"},{"title":"Plugin Button Registration and Listener","href":"/en/api-reference/supernote-plugin/plugin-manager/register-button"},{"title":"unregisterButton","href":"/en/api-reference/supernote-plugin/plugin-manager/unregister-button"},{"title":"getButtonState","href":"/en/api-reference/supernote-plugin/plugin-manager/get-button-state"},{"title":"setButtonState","href":"/en/api-reference/supernote-plugin/plugin-manager/set-button-state"},{"title":"Config Button Registration and Listener","href":"/en/api-reference/supernote-plugin/plugin-manager/register-config-button"},{"title":"getPluginDirPath","href":"/en/api-reference/supernote-plugin/plugin-manager/get-plugin-dir-path"},{"title":"getPluginName","href":"/en/api-reference/supernote-plugin/plugin-manager/get-plugin-name"},{"title":"getDeviceType","href":"/en/api-reference/supernote-plugin/plugin-manager/get-device-type"},{"title":"closePluginView","href":"/en/api-reference/supernote-plugin/plugin-manager/close-plugin-view"},{"title":"hasPermission","href":"/en/api-reference/supernote-plugin/plugin-manager/has-permission"},{"title":"requestPermission","href":"/en/api-reference/supernote-plugin/plugin-manager/request-permission"},{"title":"showPluginView","href":"/en/api-reference/supernote-plugin/plugin-manager/show-plugin-view"}]},{"group":"Utils","expanded":false,"pages":[{"title":"PointUtils","href":"/en/api-reference/supernote-plugin/utils/point-utils/index"},{"title":"androidPoint2Emr","href":"/en/api-reference/supernote-plugin/utils/point-utils/android-point2-emr"},{"title":"emrPoint2Android","href":"/en/api-reference/supernote-plugin/utils/point-utils/emr-point2-android"}]},{"group":"Types","expanded":false,"pages":[{"title":"Overview","href":"/en/api-reference/supernote-plugin/types/index"},{"title":"APIResponse","href":"/en/api-reference/supernote-plugin/types/api-response"},{"title":"Point","href":"/en/api-reference/supernote-plugin/types/point"},{"title":"Rect","href":"/en/api-reference/supernote-plugin/types/rect"},{"title":"Size","href":"/en/api-reference/supernote-plugin/types/size"},{"title":"ElementDataAccessor","href":"/en/api-reference/supernote-plugin/types/trail-data-accessor"},{"title":"Stroke","href":"/en/api-reference/supernote-plugin/types/stroke"},{"title":"PenInfo","href":"/en/api-reference/supernote-plugin/types/pen-info"},{"title":"RecognData","href":"/en/api-reference/supernote-plugin/types/recogn-data"},{"title":"RecogResultData","href":"/en/api-reference/supernote-plugin/types/recog-result-data"},{"title":"Geometry","href":"/en/api-reference/supernote-plugin/types/geometry"},{"title":"Picture","href":"/en/api-reference/supernote-plugin/types/picture"},{"title":"Template","href":"/en/api-reference/supernote-plugin/types/template"},{"title":"KeyWord","description":"Keyword data type.","href":"/en/api-reference/supernote-plugin/types/key-word"},{"title":"Layer","href":"/en/api-reference/supernote-plugin/types/layer"},{"title":"Element","description":"Unified data structure for visible elements in notes/documents.","href":"/en/api-reference/supernote-plugin/types/trail"},{"title":"TextLink","href":"/en/api-reference/supernote-plugin/types/text-link"},{"title":"Link","href":"/en/api-reference/supernote-plugin/types/link"},{"title":"LassoLink","href":"/en/api-reference/supernote-plugin/types/lasso-link"},{"title":"Title","href":"/en/api-reference/supernote-plugin/types/title"},{"title":"TextBox","href":"/en/api-reference/supernote-plugin/types/text-box"},{"title":"PluginButton","href":"/en/api-reference/supernote-plugin/types/plugin-button"},{"title":"ButtonListener","href":"/en/api-reference/supernote-plugin/types/button-listener"},{"title":"ButtonSubscription","href":"/en/api-reference/supernote-plugin/types/button-subscription"},{"title":"MotionEvent","href":"/en/api-reference/supernote-plugin/types/motion-event"}]}]}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/supernote-plugin/types/layer"}]}]},"title":"Layer - Supernote","buildId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","deploymentId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","dynamics":[],"chunks":[]}