LyricLineMouseEvent
歌词行鼠标相关事件,可以获取到歌词行的索引和歌词行元素
Extends
MouseEvent
Constructors
new LyricLineMouseEvent()
new LyricLineMouseEvent(
lineIndex
,line
,event
):LyricLineMouseEvent
Parameters
• lineIndex: number
歌词行索引
• line: LyricLineBase
歌词行元素
• event: MouseEvent
Returns
Overrides
MouseEvent.constructor
Defined in
packages/core/src/lyric-player/dom/index.ts:18
Properties
altKey
readonly
altKey:boolean
Inherited from
MouseEvent.altKey
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15343
AT_TARGET
readonly
AT_TARGET:2
Inherited from
MouseEvent.AT_TARGET
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8192
bubbles
readonly
bubbles:boolean
Returns true or false depending on how event was initialized. True if event goes through its target’s ancestors in reverse tree order, and false otherwise.
Inherited from
MouseEvent.bubbles
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8087
BUBBLING_PHASE
readonly
BUBBLING_PHASE:3
Inherited from
MouseEvent.BUBBLING_PHASE
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8193
button
readonly
button:number
Inherited from
MouseEvent.button
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15345
buttons
readonly
buttons:number
Inherited from
MouseEvent.buttons
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15347
cancelable
readonly
cancelable:boolean
Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
Inherited from
MouseEvent.cancelable
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8099
cancelBubble
cancelBubble:
boolean
Inherited from
MouseEvent.cancelBubble
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8093
CAPTURING_PHASE
readonly
CAPTURING_PHASE:1
Inherited from
MouseEvent.CAPTURING_PHASE
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8191
clientX
readonly
clientX:number
Inherited from
MouseEvent.clientX
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15349
clientY
readonly
clientY:number
Inherited from
MouseEvent.clientY
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15351
composed
readonly
composed:boolean
Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
Inherited from
MouseEvent.composed
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8105
ctrlKey
readonly
ctrlKey:boolean
Inherited from
MouseEvent.ctrlKey
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15353
currentTarget
readonly
currentTarget:null
|EventTarget
Returns the object whose event listener’s callback is currently being invoked.
Inherited from
MouseEvent.currentTarget
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8111
defaultPrevented
readonly
defaultPrevented:boolean
Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
Inherited from
MouseEvent.defaultPrevented
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8117
detail
readonly
detail:number
Inherited from
MouseEvent.detail
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22316
eventPhase
readonly
eventPhase:number
Returns the event’s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
Inherited from
MouseEvent.eventPhase
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8123
isTrusted
readonly
isTrusted:boolean
Returns true if event was dispatched by the user agent, and false otherwise.
Inherited from
MouseEvent.isTrusted
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8129
layerX
readonly
layerX:number
Inherited from
MouseEvent.layerX
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15355
layerY
readonly
layerY:number
Inherited from
MouseEvent.layerY
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15357
line
readonly
line:LyricLineBase
歌词行元素
Defined in
packages/core/src/lyric-player/dom/index.ts:26
lineIndex
readonly
lineIndex:number
歌词行索引
Defined in
packages/core/src/lyric-player/dom/index.ts:22
metaKey
readonly
metaKey:boolean
Inherited from
MouseEvent.metaKey
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15359
movementX
readonly
movementX:number
Inherited from
MouseEvent.movementX
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15361
movementY
readonly
movementY:number
Inherited from
MouseEvent.movementY
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15363
NONE
readonly
NONE:0
Inherited from
MouseEvent.NONE
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8190
offsetX
readonly
offsetX:number
Inherited from
MouseEvent.offsetX
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15365
offsetY
readonly
offsetY:number
Inherited from
MouseEvent.offsetY
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15367
pageX
readonly
pageX:number
Inherited from
MouseEvent.pageX
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15369
pageY
readonly
pageY:number
Inherited from
MouseEvent.pageY
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15371
relatedTarget
readonly
relatedTarget:null
|EventTarget
Inherited from
MouseEvent.relatedTarget
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15373
returnValue
returnValue:
boolean
Inherited from
MouseEvent.returnValue
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8135
screenX
readonly
screenX:number
Inherited from
MouseEvent.screenX
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15375
screenY
readonly
screenY:number
Inherited from
MouseEvent.screenY
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15377
shiftKey
readonly
shiftKey:boolean
Inherited from
MouseEvent.shiftKey
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15379
srcElement
readonly
srcElement:null
|EventTarget
Inherited from
MouseEvent.srcElement
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8141
target
readonly
target:null
|EventTarget
Returns the object to which event is dispatched (its target).
Inherited from
MouseEvent.target
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8147
timeStamp
readonly
timeStamp:number
Returns the event’s timestamp as the number of milliseconds measured relative to the time origin.
Inherited from
MouseEvent.timeStamp
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8153
type
readonly
type:string
Returns the type of event, e.g. “click”, “hashchange”, or “submit”.
Inherited from
MouseEvent.type
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8159
view
readonly
view:null
|Window
Inherited from
MouseEvent.view
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22318
which
readonly
which:number
Inherited from
MouseEvent.which
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22324
x
readonly
x:number
Inherited from
MouseEvent.x
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15381
y
readonly
y:number
Inherited from
MouseEvent.y
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15383
Methods
composedPath()
composedPath():
EventTarget
[]
Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.
Returns
EventTarget
[]
Inherited from
MouseEvent.composedPath
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8165
getModifierState()
getModifierState(
keyArg
):boolean
Parameters
• keyArg: string
Returns
boolean
Inherited from
MouseEvent.getModifierState
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15385
initEvent()
initEvent(
type
,bubbles
?,cancelable
?):void
Parameters
• type: string
• bubbles?: boolean
• cancelable?: boolean
Returns
void
Inherited from
MouseEvent.initEvent
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8171
initMouseEvent()
initMouseEvent(
typeArg
,canBubbleArg
,cancelableArg
,viewArg
,detailArg
,screenXArg
,screenYArg
,clientXArg
,clientYArg
,ctrlKeyArg
,altKeyArg
,shiftKeyArg
,metaKeyArg
,buttonArg
,relatedTargetArg
):void
Parameters
• typeArg: string
• canBubbleArg: boolean
• cancelableArg: boolean
• viewArg: Window
• detailArg: number
• screenXArg: number
• screenYArg: number
• clientXArg: number
• clientYArg: number
• ctrlKeyArg: boolean
• altKeyArg: boolean
• shiftKeyArg: boolean
• metaKeyArg: boolean
• buttonArg: number
• relatedTargetArg: null
| EventTarget
Returns
void
Inherited from
MouseEvent.initMouseEvent
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:15391
initUIEvent()
initUIEvent(
typeArg
,bubblesArg
?,cancelableArg
?,viewArg
?,detailArg
?):void
Parameters
• typeArg: string
• bubblesArg?: boolean
• cancelableArg?: boolean
• viewArg?: null
| Window
• detailArg?: number
Returns
void
Inherited from
MouseEvent.initUIEvent
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22330
preventDefault()
preventDefault():
void
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
Returns
void
Inherited from
MouseEvent.preventDefault
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8177
stopImmediatePropagation()
stopImmediatePropagation():
void
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
Returns
void
Inherited from
MouseEvent.stopImmediatePropagation
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8183
stopPropagation()
stopPropagation():
void
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Returns
void
Inherited from
MouseEvent.stopPropagation
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8189