跳转到内容

pivotick v3.0.0


拓展 / 注意

类: Note ​

定义于:Note.ts:38

构造函数 ​

构造函数 ​

new Note(options, domID): Note

定义于:Note.ts:62

参数 ​

options ​

NoteOptions = {}

domID ​

string = ...

返回值 ​

Note

方法 ​

clearAttachmentDirty() ​

clearAttachmentDirty(): void

定义于:Note.ts:172

返回值 ​

void


clearDirty() ​

clearDirty(): void

定义于:Note.ts:160

返回值 ​

void


getAttachedElement() ​

getAttachedElement(): AttachedElement | undefined

定义于:Note.ts:127

返回值 ​

AttachedElement | undefined


getGraphElement() ​

getGraphElement(): SVGGElement | null

定义于:Note.ts:111

返回值 ​

SVGGElement | null


isAttachmentDirty() ​

isAttachmentDirty(): boolean

定义于:Note.ts:176

返回值 ​

boolean


isDirty() ​

isDirty(): boolean

定义于:Note.ts:164

返回值 ​

boolean


isEditing() ​

isEditing(): boolean

定义于:Note.ts:119

返回值 ​

boolean


markAttachmentDirty() ​

markAttachmentDirty(): void

定义于:Note.ts:168

返回值 ​

void


markDirty() ​

markDirty(): void

定义于:Note.ts:156

返回值 ​

void


setAttachedElement() ​

setAttachedElement(attachedElement): void

定义于:Note.ts:131

参数 ​

attachedElement ​

AttachedElement | undefined

返回值 ​

void


setColor() ​

setColor(color): void

定义于:Note.ts:97

参数 ​

color ​

string

返回值 ​

void


setContent() ​

setContent(content): void

定义于:Note.ts:92

参数 ​

content ​

string

返回值 ​

void


setEditing() ​

setEditing(editing): void

定义于:Note.ts:123

参数 ​

editing ​

boolean

返回值 ​

void


setGraphElement() ​

setGraphElement(el): void

定义于:Note.ts:107

参数 ​

el ​

SVGGElement

返回值 ​

void


setPosition() ​

setPosition(x, y): void

定义于:Note.ts:82

参数 ​

x ​

number

y ​

number

返回值 ​

void


setSize() ​

setSize(width, height): void

定义于:Note.ts:87

参数 ​

width ​

number

height ​

number

返回值 ​

void


setSurface() ​

setSurface(surface): void

定义于:Note.ts:102

参数 ​

surface ​

NoteSurface

返回值 ​

void


toJSON() ​

toJSON(): NoteOptions

定义于:Note.ts:141

重建此注释的简单选项:在另一个图表上使用new Note(note.toJSON())或graph.addNote(note.toJSON())。可见性被忽略,因为隐藏注释是一种视图状态而不是注释的一部分。

返回值 ​

NoteOptions

属性 ​

color ​

color: string

定义于:Note.ts:49


content ​

content: string

定义于:Note.ts:48


domID ​

readonly domID: string

定义于:Note.ts:60


height ​

height: number

定义于:Note.ts:46


id ​

id: string

定义于:Note.ts:40


surface ​

surface: NoteSurface

定义于:Note.ts:50


visible ​

visible: boolean

定义于:Note.ts:51


width ​

width: number

定义于:Note.ts:45


x ​

x: number

定义于:Note.ts:42


y ​

y: number

定义于:Note.ts:43