Unified data structure for visible elements in notes/documents.
Element describes the common metadata of all visible elements in a note file (and in document annotation scenarios), such as strokes, titles, links, TextBox, geometries, and pictures.
An Element uses type to distinguish its category and provides more specific structures under the corresponding fields (e.g. stroke, title, link, textBox, geometry, picture).
If you only care about the element category, read type. If you need to operate on the content, read typed fields such as stroke/title/link/textBox/geometry based on type.
Type Constants
ElementType defines the value range of Element.type.
ElementType
In the table below, the ElementType. prefix is omitted in the Constant column. In code, use the full name: ElementType.XXX.
Type
Constant
Value
Description
Detail Field
Stroke
TYPE_STROKE
0
Handwritten stroke; can be inserted and edited on both main and custom layers
stroke
Title
TYPE_TITLE
100
Title element; can be inserted and edited only on the main layer
title
Picture
TYPE_PICTURE
200
Picture element; can be inserted and edited on both main and custom layers
picture
TextBox
TYPE_TEXT
500
Regular TextBox; can be inserted and edited on both main and custom layers
textBox
Digest quote TextBox
TYPE_TEXT_DIGEST_QUOTE
501
Quoted digest TextBox; can be inserted and edited only on the main layer
textBox
Digest created TextBox
TYPE_TEXT_DIGEST_CREATE
502
Created digest TextBox; can be inserted and edited only on the main layer
textBox
Link
TYPE_LINK
600
Text / stroke link; can be inserted and edited only on the main layer
link
Geometry
TYPE_GEO
700
Geometry element; can be inserted and edited on both main and custom layers
geometry
Five-star
TYPE_FIVE_STAR
800
Five-star element; can be inserted and edited only on the main layer
Max X value in the EMR coordinate system, which, in sn-plugin-lib later than 0.1.65, is not on the same scale as the returned sample points. Avoid using it; it is kept only for older versions. See the warning below and Coordinate System
maxY
number
Max Y value in the EMR coordinate system, which, in sn-plugin-lib later than 0.1.65, is not on the same scale as the returned sample points. Avoid using it; it is kept only for older versions. See the warning below and Coordinate System
Picture data (only when type === 200; picturePath only supports png, jpg, and jpeg formats)
angles and contoursSrc are accessor objects, not full arrays. Fetch data asynchronously via size()/get()/getRange() to avoid JS memory issues caused by transferring large point sets at once.
maxX and maxY are still EMR-scale values. In sn-plugin-lib later than 0.1.65, they are not on the same scale as the returned Android sample points, so do not use them in coordinate calculations. Avoid using them; they are kept for 0.1.65 and earlier. Coordinates are based on the actual page size from getPageSize.
FiveStar (Five-star)
When type === 800, the fiveStar field provides the point set of the five-star element.
Five-star point coordinates (Android pixel coordinates, based on the actual page size from getPageSize)
Methods
Method
Returns
Description
recycle()
Promise<void>
Recycle native cached data for this element and clear accessor caches
element.recycle() is equivalent to PluginCommAPI.recycleElement(element.uuid) — it’s just called directly on the Element instance instead. Either form works; see recycleElement and Element Caching and Release for details.
{"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":""},"entitlements":{},"buildId":"6acc4b220861624c50959b89","clientVersion":"0.0.4167","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},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#footer,footer{display:none!important}"}],"page":{"pagePath":"en/api-reference/supernote-plugin/types/trail","slug":"/en/api-reference/supernote-plugin/types/trail","pageMetadata":{"title":"Element","description":"Unified data structure for visible elements in notes/documents.","href":"/en/api-reference/supernote-plugin/types/trail"},"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: \"Unified data structure for visible elements in notes/documents.\"\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={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Note,Table,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Element`}),` describes the common metadata of all visible elements in a note file (and in document annotation scenarios), such as strokes, titles, links, TextBox, geometries, and pictures.\nAn `,_jsx(_components.code,{children:`Element`}),` uses `,_jsx(_components.code,{children:`type`}),` to distinguish its category and provides more specific structures under the corresponding fields (e.g. `,_jsx(_components.code,{children:`stroke`}),`, `,_jsx(_components.code,{children:`title`}),`, `,_jsx(_components.code,{children:`link`}),`, `,_jsx(_components.code,{children:`textBox`}),`, `,_jsx(_components.code,{children:`geometry`}),`, `,_jsx(_components.code,{children:`picture`}),`).`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you only care about the element category, read `,_jsx(_components.code,{children:`type`}),`. If you need to operate on the content, read typed fields such as `,_jsx(_components.code,{children:`stroke/title/link/textBox/geometry`}),` based on `,_jsx(_components.code,{children:`type`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`type-constants`,children:`Type Constants`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ElementType`}),` defines the value range of `,_jsx(_components.code,{children:`Element.type`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`elementtype`,children:`ElementType`}),`\n`,_jsxs(_components.p,{children:[`In the table below, the `,_jsx(_components.code,{children:`ElementType.`}),` prefix is omitted in the Constant column. In code, use the full name: `,_jsx(_components.code,{children:`ElementType.XXX`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Constant`}),_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Detail Field`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Stroke`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_STROKE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0`})}),_jsx(_components.td,{children:`Handwritten stroke; can be inserted and edited on both main and custom layers`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`stroke`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Title`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_TITLE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`100`})}),_jsx(_components.td,{children:`Title element; can be inserted and edited only on the main layer`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Picture`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_PICTURE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`200`})}),_jsx(_components.td,{children:`Picture element; can be inserted and edited on both main and custom layers`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`picture`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`TextBox`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_TEXT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Regular TextBox; can be inserted and edited on both main and custom layers`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`textBox`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Digest quote TextBox`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_TEXT_DIGEST_QUOTE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`501`})}),_jsx(_components.td,{children:`Quoted digest TextBox; can be inserted and edited only on the main layer`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`textBox`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Digest created TextBox`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_TEXT_DIGEST_CREATE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`502`})}),_jsx(_components.td,{children:`Created digest TextBox; can be inserted and edited only on the main layer`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`textBox`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Link`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_LINK`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`600`})}),_jsx(_components.td,{children:`Text / stroke link; can be inserted and edited only on the main layer`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`link`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Geometry`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_GEO`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`700`})}),_jsx(_components.td,{children:`Geometry element; can be inserted and edited on both main and custom layers`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`geometry`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Five-star`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TYPE_FIVE_STAR`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`800`})}),_jsx(_components.td,{children:`Five-star element; can be inserted and edited only on the main layer`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`fiveStar`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`fields`,children:`Fields`}),`\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:`uuid`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Unique identifier for the element`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`Element type. See `,_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/trail#elementtype`,children:_jsx(_components.code,{children:`ElementType`})})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageNum`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Page number`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`layerNum`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`Layer number (common range in notes: `,_jsx(_components.code,{children:`0..3`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`thickness`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Stroke thickness (may be meaningless for some element types)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recognizeResult`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/recog-result-data`,children:_jsx(_components.code,{children:`RecogResultData`})})}),_jsx(_components.td,{children:`Recognition result data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`maxX`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`Max X value in the EMR coordinate system, which, in `,_jsx(_components.code,{children:`sn-plugin-lib`}),` later than `,_jsx(_components.code,{children:`0.1.65`}),`, is not on the same scale as the returned sample points. Avoid using it; it is kept only for older versions. See the warning below and `,_jsx(_components.a,{href:`/en/plugin-base/coordinate-system`,children:`Coordinate System`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`maxY`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`Max Y value in the EMR coordinate system, which, in `,_jsx(_components.code,{children:`sn-plugin-lib`}),` later than `,_jsx(_components.code,{children:`0.1.65`}),`, is not on the same scale as the returned sample points. Avoid using it; it is kept only for older versions. See the warning below and `,_jsx(_components.a,{href:`/en/plugin-base/coordinate-system`,children:`Coordinate System`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`userData`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Custom user data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`angles`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/trail-data-accessor`,children:_jsx(_components.code,{children:`ElementDataAccessor\u003cPoint>`})})}),_jsx(_components.td,{children:`Angle points. The dataset can be large, so RN holds an accessor/index; raw data is on the Android side`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Element status`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`numInPage`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsxs(_components.td,{children:[`Index within the page (starts from `,_jsx(_components.code,{children:`1`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contoursSrc`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/trail-data-accessor`,children:_jsx(_components.code,{children:`ElementDataAccessor\u003cPoint[]>`})})}),_jsx(_components.td,{children:`Contour points (Android pixel coordinates). RN holds an accessor/index; raw data is on the Android side`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stroke`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/stroke`,children:_jsx(_components.code,{children:`Stroke | null`})})}),_jsxs(_components.td,{children:[`Stroke data (only when `,_jsx(_components.code,{children:`type === 0`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/title`,children:_jsx(_components.code,{children:`Title | null`})})}),_jsxs(_components.td,{children:[`Title data (only when `,_jsx(_components.code,{children:`type === 100`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`textBox`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/text-box`,children:_jsx(_components.code,{children:`TextBox | null`})})}),_jsx(_components.td,{children:`TextBox data (only for TextBox-related types)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`geometry`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/geometry`,children:_jsx(_components.code,{children:`Geometry | null`})})}),_jsxs(_components.td,{children:[`Geometry data (only when `,_jsx(_components.code,{children:`type === 700`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`link`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/link`,children:_jsx(_components.code,{children:`Link | null`})})}),_jsxs(_components.td,{children:[`Link data (only when `,_jsx(_components.code,{children:`type === 600`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fiveStar`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FiveStar | null`})}),_jsxs(_components.td,{children:[`Five-star data (only when `,_jsx(_components.code,{children:`type === 800`}),`; see “FiveStar” below)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`picture`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/picture`,children:_jsx(_components.code,{children:`Picture | null`})})}),_jsxs(_components.td,{children:[`Picture data (only when `,_jsx(_components.code,{children:`type === 200`}),`; `,_jsx(_components.code,{children:`picturePath`}),` only supports `,_jsx(_components.code,{children:`png`}),`, `,_jsx(_components.code,{children:`jpg`}),`, and `,_jsx(_components.code,{children:`jpeg`}),` formats)`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`angles`}),` and `,_jsx(_components.code,{children:`contoursSrc`}),` are accessor objects, not full arrays. Fetch data asynchronously via `,_jsx(_components.code,{children:`size()/get()/getRange()`}),` to avoid JS memory issues caused by transferring large point sets at once.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`maxX`}),` and `,_jsx(_components.code,{children:`maxY`}),` are still EMR-scale values. In `,_jsx(_components.code,{children:`sn-plugin-lib`}),` later than `,_jsx(_components.code,{children:`0.1.65`}),`, they are not on the same scale as the returned Android sample points, so do not use them in coordinate calculations. Avoid using them; they are kept for `,_jsx(_components.code,{children:`0.1.65`}),` and earlier. Coordinates are based on the actual page size from `,_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/plugin-file-api/get-page-size`,children:_jsx(_components.code,{children:`getPageSize`})}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`fivestar-five-star`,children:`FiveStar (Five-star)`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`type === 800`}),`, the `,_jsx(_components.code,{children:`fiveStar`}),` field provides the point set of the five-star element.`]}),`\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`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`points`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/types/point`,children:_jsx(_components.code,{children:`Point[]`})})}),_jsxs(_components.td,{children:[`Five-star point coordinates (Android pixel coordinates, based on the actual page size from `,_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/plugin-file-api/get-page-size`,children:_jsx(_components.code,{children:`getPageSize`})}),`)`]})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`methods`,children:`Methods`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Returns`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recycle()`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Promise\u003cvoid>`})}),_jsx(_components.td,{children:`Recycle native cached data for this element and clear accessor caches`})]})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`element.recycle()`}),` is equivalent to `,_jsx(_components.code,{children:`PluginCommAPI.recycleElement(element.uuid)`}),` — it’s just called directly on the `,_jsx(_components.code,{children:`Element`}),` instance instead. Either form works; see `,_jsx(_components.a,{href:`/en/api-reference/supernote-plugin/plugin-comm-api/recycle-trail`,children:_jsx(_components.code,{children:`recycleElement`})}),` and `,_jsx(_components.a,{href:`/en/plugin-base/file-op/element-op#4-element-caching-and-release`,children:`Element Caching and Release`}),` for details.`]})})]})}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":"Element","description":"Unified data structure for visible elements in notes/documents.","href":"/en/api-reference/supernote-plugin/types/trail"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Type Constants","slug":"type-constants","depth":2,"children":[]},{"title":"ElementType","slug":"elementtype","depth":2,"children":[]},{"title":"Fields","slug":"fields","depth":2,"children":[]},{"title":"FiveStar (Five-star)","slug":"fivestar-five-star","depth":2,"children":[]},{"title":"Methods","slug":"methods","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rattashanghai","siteName":"Supernote","title":"Element - Supernote","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/supernote-plugin/types/trail","matchLevel":0},"zh":{"href":"/zh/api-reference/supernote-plugin/types/trail","matchLevel":1}}},"lastModified":"2026-10-12T02:51:22.914Z","originalFileLocation":"en/api-reference/supernote-plugin/types/trail.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Unified data structure for visible elements in notes/documents.\">\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=\"Element - Supernote\">\u003cmeta data-mint-head property=\"og:description\" content=\"Unified data structure for visible elements in notes/documents.\">\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/trail\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rattashanghai.mintlify.site/_mintlify/api/og/v2?division=Types\u0026amp;title=Element\u0026amp;description=Unified+data+structure+for+visible+elements+in+notes%2Fdocuments.\u0026amp;theme=882e7c131147973e3b540895\u0026amp;signature=912a1632082923a8675ad5943e1f89b4449d4d53cad8746c021b89453ae98c87\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Element - Supernote\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Unified data structure for visible elements in notes/documents.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rattashanghai.mintlify.site/_mintlify/api/og/v2?division=Types\u0026amp;title=Element\u0026amp;description=Unified+data+structure+for+visible+elements+in+notes%2Fdocuments.\u0026amp;theme=882e7c131147973e3b540895\u0026amp;signature=912a1632082923a8675ad5943e1f89b4449d4d53cad8746c021b89453ae98c87\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\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/trail\">\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/trail.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.supernote.com/zh/api-reference/supernote-plugin/types/trail\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail\">\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/trail#webpage\",\"url\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail\",\"name\":\"Element\",\"description\":\"Unified data structure for visible elements in notes/documents.\",\"dateModified\":\"2026-10-12T02:51:22.914Z\",\"isPartOf\":{\"@id\":\"https://docs.supernote.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Supernote Plugin SDK\",\"item\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/plugin-comm-api\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Types\",\"item\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Element\",\"item\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail#article\",\"headline\":\"Element\",\"name\":\"Element\",\"description\":\"Unified data structure for visible elements in notes/documents.\",\"url\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail\",\"mainEntityOfPage\":{\"@id\":\"https://docs.supernote.com/en/api-reference/supernote-plugin/types/trail#webpage\"},\"dateModified\":\"2026-10-12T02:51:22.914Z\",\"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\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Supernote\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/supernote-plugin/types/trail.md","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","href":"/en/api-reference/supernote-plugin/types/key-word"},{"title":"Layer","description":"Layer data type.","href":"/en/api-reference/supernote-plugin/types/layer"},{"title":"Element","href":"/en/api-reference/supernote-plugin/types/trail"},{"title":"TextLink","description":"TextLink data structure (used for insertTextLink).","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/trail"}]}]},"basePath":"","title":"Element - Supernote","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":[],"chunks":[]}