decorations
ai-research-agent / editor/modules/decorations
Functions
applyDecorations()
function applyDecorations(
vnode,
attributes,
defaultClasses?): VNode
Parameters
Parameter | Type |
---|---|
| |
|
|
|
|
Returns
decorations()
function decorations(editor): DecorationsModule
Parameters
Parameter | Type |
---|---|
|
Returns
Classes
DecorateEvent
Extends
Event
Constructors
new DecorateEvent()
new DecorateEvent(type, init): DecorateEvent
Parameters
Parameter | Type |
---|---|
|
|
|
Returns
Overrides
Event.constructor
Properties
change?
optional change: default;
changedLines?
optional changedLines: default[];
doc
doc: default;
old
old: default;
Decorator
Constructors
new Decorator()
new Decorator(
name,
doc,
decoration,
apply,
remove): Decorator
Parameters
Parameter | Type |
---|---|
|
|
| |
|
|
| ( |
| ( |
Returns
Methods
apply()
apply(): void
Returns
void
clear()
clear(range?): Decorator
Parameters
Parameter | Type |
---|---|
|
Returns
clearLine()
clearLine(value): Decorator
Parameters
Parameter | Type |
---|---|
|
|
Returns
clearLines()
clearLines(lines): Decorator
Parameters
Parameter | Type |
---|---|
|
|
Returns
decorateLine()
decorateLine(range, decoration): Decorator
Parameters
Parameter | Type |
---|---|
|
|
|
Returns
decorateText()
decorateText(range, decoration): Decorator
Parameters
Parameter | Type |
---|---|
| |
|
Returns
getDecoration()
getDecoration(): default
Returns
hasDecorations()
hasDecorations(): boolean
Returns
boolean
insertDecoration()
insertDecoration(at, decoration): Decorator
Parameters
Parameter | Type |
---|---|
|
|
|
Returns
invert()
invert(range?): default
Parameters
Parameter | Type |
---|---|
|
Returns
remove()
remove(): void
Returns
void
Properties
change
change: default;
Interfaces
DecorateEventInit
Extends
EventInit
Properties
change?
optional change: default;
changedLines?
optional changedLines: default[];
doc
doc: default;
old
old: default;
Decorations
Indexable
[attributeName
: string
]: any
Properties
class?
optional class: string;
style?
optional style: string;
DecorationsModule
Methods
destroy()
destroy(): void
Returns
void
init()
init(): void
Returns
void
Properties
clearDecorations()
clearDecorations: () => void;
Returns
void
doc
readonly doc: default;
gatherDecorations()
gatherDecorations: (change?, changedLines?) => void;
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
void
getDecorator()
getDecorator: (name) => Decorator;
Parameters
Parameter | Type |
---|---|
|
|
Returns
old
readonly old: default;
removeDecorations()
removeDecorations: (name) => boolean;
Parameters
Parameter | Type |
---|---|
|
|
Returns
boolean