Skip to content

eo-typewriterjs


eo-typewriterjs / TStyleEvent

Type Alias: TStyleEvent

ts
type TStyleEvent = TBaseEvent & object;

Defined in: core/events/types/style-event.type.ts:13

Type Declaration

NameTypeDescriptionDefined in
timenumber-core/events/types/style-event.type.ts:14
fromnumber-core/events/types/style-event.type.ts:15
tonumber-core/events/types/style-event.type.ts:16
styleTStyleRef-core/events/types/style-event.type.ts:17
sourceCommandIdstring-core/events/types/style-event.type.ts:18
cursorId?stringPresent only for selection-based style events (from === -1 && to === -1)core/events/types/style-event.type.ts:20

Description

A low-level scheduled event that applies a style to a document range. When from and to are both -1, the event is selection-based and cursorId must be present - the reducer resolves the actual range from the cursor's selection.

Released under the MIT License.