eo-typewriterjs / TUnstyleEvent
Type Alias: TUnstyleEvent
ts
type TUnstyleEvent = TBaseEvent & object;Defined in: core/events/types/unstyle-event.type.ts:12
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
time | number | - | core/events/types/unstyle-event.type.ts:13 |
from | number | - | core/events/types/unstyle-event.type.ts:14 |
to | number | - | core/events/types/unstyle-event.type.ts:15 |
sourceCommandId | string | - | core/events/types/unstyle-event.type.ts:16 |
cursorId? | string | Present only for selection-based unstyle events (from === -1 && to === -1) | core/events/types/unstyle-event.type.ts:18 |
Description
A low-level scheduled event that removes styles overlapping 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. Styles that partially overlap the range are clipped rather than fully removed.