eo-typewriterjs / TStyleEvent
Type Alias: TStyleEvent
ts
type TStyleEvent = TBaseEvent & object;Defined in: core/events/types/style-event.type.ts:13
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
time | number | - | core/events/types/style-event.type.ts:14 |
from | number | - | core/events/types/style-event.type.ts:15 |
to | number | - | core/events/types/style-event.type.ts:16 |
style | TStyleRef | - | core/events/types/style-event.type.ts:17 |
sourceCommandId | string | - | core/events/types/style-event.type.ts:18 |
cursorId? | string | Present 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.