Type aliases
ICustomPopUnitOption
ICustomPopUnitOption: { onMount: any; onUnmount?: any }
Type declaration
-
onMount: function
- onMount(div: HTMLDivElement): void
-
onUnmount: function
- onUnmount(div: HTMLDivElement): void
ICustomStateUnitOption
ICustomStateUnitOption: { backgroundImageByState?: {}; defaultState: string; clickCb: any }
Type declaration
-
Optional backgroundImageByState?: {}
-
defaultState: string
-
clickCb: function
- clickCb(state: string): string
-
Parameters
Returns string
IDocUploadOption
IDocUploadOption: { supportDocToPic?: boolean; supportPptToH5?: boolean; supportTransMedia?: boolean; supportUploadMedia?: boolean }
Type declaration
-
Optional supportDocToPic?: boolean
-
Optional supportPptToH5?: boolean
-
Optional supportTransMedia?: boolean
-
Optional supportUploadMedia?: boolean
IDynamicDocParam
IDynamicDocParam: { height: number; pageCount: number; url: string; width: number }
Type declaration
-
height: number
-
pageCount: number
-
url: string
-
width: number
IFont
IFont
: { displayName
: string; fontName
: string } | { displayName
: string; fontFace
: IFontFace }
IFontFace
IFontFace: { format?: string; url: string }[] | { format?: string; url: string }
IMacroCommonProp
IMacroCommonProp: { clkAdd: boolean; cursor?: string; dragAdd: boolean; origin?: { x: number; y: number }; size?: "absolute" | "relative"; type: "image" | "text" }
Type declaration
-
clkAdd: boolean
-
Optional cursor?: string
-
dragAdd: boolean
-
Optional origin?: { x: number; y: number }
-
Optional size?: "absolute" | "relative"
-
type: "image" | "text"
IMacroImageProp
IMacroImageProp: { height?: number; url: string; width?: number }
Type declaration
-
Optional height?: number
-
url: string
-
Optional width?: number
IMacroTextProp
IMacroTextProp: { fill?: string; fontFamily?: string; fontSize?: number; stroke?: string; text: string }
Type declaration
-
Optional fill?: string
-
Optional fontFamily?: string
-
Optional fontSize?: number
-
Optional stroke?: string
-
text: string
IMediaEntity
IMedia
Entity: { docId: string; fileType: string; name: string; params: IMediaParams; showDelete?: boolean }
Type declaration
-
docId: string
-
fileType: string
-
name: string
-
-
Optional showDelete?: boolean
IMediaParams
IMediaParams: { bucket: string; object: string; origin: string; trans: boolean; url: string; video: boolean }
Type declaration
-
bucket: string
-
object: string
-
origin: string
-
trans: boolean
-
url: string
-
video: boolean
IMultiInOneOption
IMulti
InOneOption: { itemPerRow?: number; subItems: IUnitOption[] }
Type declaration
-
Optional itemPerRow?: number
-
IPlatform
IPlatform: "web" | "ios" | "android" | "pc" | "mac" | "pad"
IPosition
IPosition: "leftBottom" | "left" | "leftTop" | "topLeft" | "top" | "topRight" | "rightTop" | "right" | "rightBottom" | "bottomRight" | "bottom" | "bottomLeft"
IPreviewUnitOption
IPreviewUnitOption: { previewSliderPosition: "left" | "right" }
Type declaration
-
previewSliderPosition: "left" | "right"
IResourceEntity
Type declaration
-
docId: string
-
fileType: string
-
name: string
-
-
payload: any
-
state: number
IResourceMetaData
IResourceMetaData: { height: number; loaded: boolean; type: "image"; url: string; width: number } | { duration: number; height: number; loaded: boolean; type: "video"; url: string; width: number } | { duration: number; loaded: boolean; type: "audio"; url: string }
ITool
ITool: "select" | "laser" | "pen" | "text" | "element-eraser" | "duplicate" | "clear" | "undo" | "redo" | "pan" | "image" | "zoomIn" | "zoomOut" | "reset" | "fitToContentDoc" | "zoomLevel" | "firstPage" | "lastPage" | "prevPage" | "nextPage" | "pageInfo" | "preview" | "docUpload" | "docSelect" | "pageBoardInfo" | "fitToContent" | "fitToDoc" | "shapeSelect"
IUnitOption
IUnit
Option: { backgroundImage?: string; hint?: string; id?: string; size?: number; tool: ITool | string } & IToolCustomProperty
IVisionArgs
IVisionArgs: { broadcaster: string; broadcasterName: string | undefined }
Type declaration
-
broadcaster: string
-
broadcasterName: string | undefined
自定义弹窗按钮属性。
点击自定义弹窗按钮后,用户通过onMount函数将元素挂载到div中。
点击其它区域时,会卸载弹窗按钮的div。用户可以选择在onUnmount函数中,添加卸载时的一些动作