Class: EditStyles
core/editStyles.EditStyles
Implements
Record
<EditStyleName
,EditStyle
>
Constructors
constructor
• new EditStyles(graph
)
Parameters
Name | Type |
---|---|
graph | Graph |
Defined in
core/editStyles.ts:79
Properties
highlight0
• highlight0: EditStyle
Implementation of
Record.highlight0
Defined in
core/editStyles.ts:75
highlight1
• highlight1: EditStyle
Implementation of
Record.highlight1
Defined in
core/editStyles.ts:76
justAdded
• justAdded: EditStyle
Implementation of
Record.justAdded
Defined in
core/editStyles.ts:74
pendingDelete
• pendingDelete: EditStyle
Implementation of
Record.pendingDelete
Defined in
core/editStyles.ts:70
pendingModification0
• pendingModification0: EditStyle
Implementation of
Record.pendingModification0
Defined in
core/editStyles.ts:72
pendingModification1
• pendingModification1: EditStyle
Implementation of
Record.pendingModification1
Defined in
core/editStyles.ts:73
referenced
• referenced: EditStyle
Implementation of
Record.referenced
Defined in
core/editStyles.ts:71
testDecorations
• testDecorations: TestDecoration
[] = []
Defined in
core/editStyles.ts:77
Methods
clearDecorations
▸ clearDecorations(style
): void
Parameters
Name | Type |
---|---|
style | EditStyle |
Returns
void
Defined in
core/editStyles.ts:172
displayPendingEditDecorations
▸ displayPendingEditDecorations(targets
, style
, getRange?
): Promise
<void
>
Parameters
Name | Type | Default value |
---|---|---|
targets | Target [] | undefined |
style | EditStyle | undefined |
getRange | (target : Target ) => undefined | Range | getContentRange |
Returns
Promise
<void
>
Defined in
core/editStyles.ts:87
displayPendingEditDecorationsForRanges
▸ displayPendingEditDecorationsForRanges(ranges
, style
, isToken
): Promise
<void
>
Parameters
Name | Type |
---|---|
ranges | RangeWithEditor [] |
style | EditStyle |
isToken | boolean |
Returns
Promise
<void
>
Defined in
core/editStyles.ts:114
displayPendingEditDecorationsForTargets
▸ displayPendingEditDecorationsForTargets(targets
, style
, isToken
): Promise
<void
>
Parameters
Name | Type |
---|---|
targets | Target [] |
style | EditStyle |
isToken | boolean |
Returns
Promise
<void
>
Defined in
core/editStyles.ts:99
dispose
▸ dispose(): void
Returns
void
Defined in
core/editStyles.ts:201
setDecorations
▸ setDecorations(targets
, style
, getRange?
): Promise
<void
[]>
Parameters
Name | Type | Default value |
---|---|---|
targets | Target [] | undefined |
style | EditStyle | undefined |
getRange | (target : Target ) => undefined | Range | getContentRange |
Returns
Promise
<void
[]>
Defined in
core/editStyles.ts:145
setEditorDecorations
▸ Private
setEditorDecorations(editor
, style
, isToken
, ranges
): void
Parameters
Name | Type |
---|---|
editor | EditableTextEditor |
style | EditStyle |
isToken | boolean |
ranges | Range [] |
Returns
void
Defined in
core/editStyles.ts:179