API > @blocksuite/virgo > VirgoEventService
Class: VirgoEventService<TextAttributes>
​
Constructors ​
constructor ​
new VirgoEventService<
TextAttributes
>(editor
):VirgoEventService
<TextAttributes
>
Type parameters ​
Parameter |
---|
TextAttributes extends {bold : null | true ; code : null | true ; italic : null | true ; link : null | string ; strike : null | true ; underline : null | true ;} |
Parameters ​
Parameter | Type |
---|---|
editor | VEditor < TextAttributes > |
Returns ​
VirgoEventService
< TextAttributes
>
Defined In ​
packages/virgo/src/services/event.ts:21
Properties ​
_isComposing ​
private
_isComposing:boolean
=false
Defined In ​
packages/virgo/src/services/event.ts:16
_previousAnchor ​
private
_previousAnchor:null
|NativePoint
=null
Defined In ​
packages/virgo/src/services/event.ts:18
_previousFocus ​
private
_previousFocus:null
|NativePoint
=null
Defined In ​
packages/virgo/src/services/event.ts:19
editor ​
readonly
editor:VEditor
<TextAttributes
>
Defined In ​
packages/virgo/src/services/event.ts:21
Accessors ​
vRangeProvider ​
get
vRangeProvider():null
|VRangeProvider
Defined In ​
packages/virgo/src/services/event.ts:23
Methods ​
_isRangeCompletelyInRoot ​
private
_isRangeCompletelyInRoot():boolean
Returns ​
boolean
Defined In ​
packages/virgo/src/services/event.ts:61
_onBeforeInput ​
private
_onBeforeInput(event
):void
Parameters ​
Parameter | Type |
---|---|
event | InputEvent |
Returns ​
void
Defined In ​
packages/virgo/src/services/event.ts:258
_onClick ​
private
_onClick(event
):void
Parameters ​
Parameter | Type |
---|---|
event | MouseEvent |
Returns ​
void
Defined In ​
packages/virgo/src/services/event.ts:364
_onCompositionEnd ​
private
_onCompositionEnd(event
):Promise
<void
>
Parameters ​
Parameter | Type |
---|---|
event | CompositionEvent |
Returns ​
Promise
< void
>
Defined In ​
packages/virgo/src/services/event.ts:174
_onCompositionStart ​
private
_onCompositionStart():void
Returns ​
void
Defined In ​
packages/virgo/src/services/event.ts:163
_onKeyDown ​
private
_onKeyDown(event
):void
Parameters ​
Parameter | Type |
---|---|
event | KeyboardEvent |
Returns ​
void
Defined In ​
packages/virgo/src/services/event.ts:309
_onSelectionChange ​
private
_onSelectionChange():void
Returns ​
void
Defined In ​
packages/virgo/src/services/event.ts:87
mount ​
mount():
void
Returns ​
void
Defined In ​
packages/virgo/src/services/event.ts:27