跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.supernote.com/llms.txt

Use this file to discover all available pages before exploring further.

常量(type 取值):
常量说明
Geometry.TYPE_STRAIGHT_LINEstraightLine直线
Geometry.TYPE_CIRCLEGEO_circle
Geometry.TYPE_ELLIPSEGEO_ellipse椭圆
Geometry.TYPE_POLYGONGEO_polygon多边形
字段:
字段类型说明
showLassoAfterInsertboolean仅在 insertGeometry 中生效,用于控制插入后是否自动显示套索状态;其他接口会忽略该字段
penColornumber笔颜色,0x00:黑色,0x9D:深灰,0xC9:浅灰,0xFE:白色
penTypenumber笔类型,10:针管笔,1:压力笔,11:马克笔,14:书法笔
penWidthnumber笔宽度(最小值 100
typestring几何图形类型,详见上表的类型说明
pointsPoint[]多边形点坐标(像素坐标)
ellipseCenterPointPoint | null椭圆中心点(像素坐标)
ellipseMajorAxisRadiusnumber椭圆长轴半径(像素)
ellipseMinorAxisRadiusnumber椭圆短轴半径(像素)
ellipseAnglenumber椭圆旋转弧度