Skip to content

eo-typewriterjs


eo-typewriterjs / TUnstyleEvent

Type Alias: TUnstyleEvent

ts
type TUnstyleEvent = TBaseEvent & object;

Defined in: core/events/types/unstyle-event.type.ts:12

Type Declaration

NameTypeDescriptionDefined in
timenumber-core/events/types/unstyle-event.type.ts:13
fromnumber-core/events/types/unstyle-event.type.ts:14
tonumber-core/events/types/unstyle-event.type.ts:15
sourceCommandIdstring-core/events/types/unstyle-event.type.ts:16
cursorId?stringPresent 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.

Released under the MIT License.