功能入口

SDK的主要功能入口,通过实例化并持有 Sketch,可完成对白板所有功能的访问。

SketchOptions
new Sketch(options)
SketchPlugin
SketchPluginLoadFunc

主要接口

SDK对外提供的所有功能都通过 IApi 统一定义,并通过不同的对象对功能做了分类,所有相关对象定义都在本目录下。 Sketch 内实现了 IApi 的所有接口,通过 Sketch 实例可以访问到 IApi 内定义的所有方法。

IApi
IEnum
IBoard
IRoom
IUser
IUI
IUtils
IViewport
IResource

回调事件

请通过 Sketch 实例的 addListenerremoveListener 方法管理订阅,并在回调中处理相关逻辑。

ApiEventMap

元素定义

元素定义,包括线条、矩形、圆形、文本、图片等。 元素的访问可通过 Sketch 实例的 board 方法获取 IBoard 接口进行。

INormalElement
ITextElement
INoteElement
IShapeElement
ILinkerElement
IImageElement
ICommentElement
IDocumentElement
IWebPageElement
IVideoElement
IHyperlinkElement
IFrameElement
IBrushElement
ICtrlPoint
ICaption
IPreview
IText
IFontStyle
IFontWeight
IBoxStyle
IBorderStyle
IBackgroundStyle
IElement
IComment
ISize
IAbsPosition
IRelPosition

枚举值

所有枚举值可通过 Sketch 实例的 enum 方法获取 IEnum 接口进行访问。

IGridMode
IToolType
IFeedbackType
IElementType
IBorderType
ILineType
IShapeType
IDocumentType
IFrameType
ILineArrowheadStyle
ITextAlign

其它类型定义

这里定义了一些接口调用过程中可能用到的数据类型,一般不需要特别关心。通过对应接口的文档说明即可跳转到相应的类型定义。

ElementToBeCreate
ElementToBeUpdate
RoomInfo
UserInfo
CurrentUserInfo
PluginStatus
PluginConfig
PluginExtensions
ButtonExtension
ToolBarButton
SvgIcon
DraggableItemPreview
DraggableSourceContainerOptions
ModelOptions
LibraryOptions
ResourceType
ResourceDocumentInfo
ResourceDirectoryInfo
ResourceList
Method
IRect
IBoundingBox
SelectInfo
OneOrMany
IWebpageInfo
IArrangeMode
IFrameInfo