ranui 0.1.8 → 0.1.10-alpha-24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.zh-CN.md +192 -0
- package/dist/assets/image/failImage.d.ts +2 -0
- package/dist/button.js +7 -0
- package/dist/checkbox.js +7 -0
- package/dist/colorpicker.js +11 -0
- package/dist/components/button/index.d.ts +37 -1
- package/dist/components/checkbox/index.d.ts +30 -0
- package/dist/components/colorpicker/index.d.ts +120 -0
- package/dist/components/dropdown/index.d.ts +34 -0
- package/dist/components/input/index.d.ts +209 -1
- package/dist/components/loading/index.d.ts +76 -0
- package/dist/components/math/index.d.ts +16 -0
- package/dist/components/message/index.d.ts +10 -7
- package/dist/components/player/index.d.ts +218 -492
- package/dist/components/popover/content/index.d.ts +16 -0
- package/dist/components/popover/index.d.ts +91 -0
- package/dist/components/preview/constant.d.ts +5 -0
- package/dist/components/preview/index.d.ts +1 -4
- package/dist/components/preview/pdf.d.ts +51 -1
- package/dist/components/preview/types.d.ts +11 -0
- package/dist/components/progress/index.d.ts +12 -7
- package/dist/components/radar/index.d.ts +1 -1
- package/dist/components/scratch/index.d.ts +21 -0
- package/dist/components/select/dropdown-item/index.d.ts +23 -0
- package/dist/components/select/index.d.ts +25 -12
- package/dist/components/select/option/index.d.ts +2 -0
- package/dist/components/tab/index.d.ts +80 -59
- package/dist/components/tabpane/index.d.ts +73 -52
- package/dist/icon.js +6 -0
- package/dist/iconShadowless.js +6 -0
- package/dist/image.js +4 -0
- package/dist/{index-aea75a9f.js → index-BEm1a2pr.js} +3 -6
- package/dist/{index-b2be6bef.js → index-BSyn-jmY.js} +5492 -3716
- package/dist/index-BVD0qcjJ.js +656 -0
- package/dist/{index-b90299ca.js → index-Bb55l8nf.js} +2 -11
- package/dist/{index-48653b79.js → index-BbW0dxzy.js} +12 -16
- package/dist/index-BgUpm4LA.js +103 -0
- package/dist/{index-a1a53af6.js → index-C841uRgZ.js} +16 -51
- package/dist/{index-a43b144f.js → index-CUZna268.js} +41 -69
- package/dist/index-CiA5qRK3.js +381 -0
- package/dist/index-CoJMn8Jm.js +511 -0
- package/dist/{index-5975bbc0.js → index-DAxs7Dd2.js} +6 -13
- package/dist/index-D_cD4u43.js +70 -0
- package/dist/index-DgVgxN1s.js +309 -0
- package/dist/index-DghvN1MU.js +710 -0
- package/dist/index-DvSe_Ms7.js +494 -0
- package/dist/{index-7f513a14.js → index-W52VzrXL.js} +20 -49
- package/dist/index-gBy2cXLV.js +140 -0
- package/dist/index-hdtEL8P_.js +101 -0
- package/dist/index-jVKJoKXA.js +490 -0
- package/dist/index-ltt3w4zP.js +187 -0
- package/dist/index-n4X6wdwJ.js +156 -0
- package/dist/{index-0e7229ea.js → index-s0ioL3L2.js} +23 -43
- package/dist/index.d.ts +276 -14
- package/dist/index.js +24 -24
- package/dist/input.js +7 -0
- package/dist/inputShadowless.js +6 -0
- package/dist/katex-es-CGqSCDjs.js +14634 -0
- package/dist/loading-scene-BMc2wqKm.js +4 -0
- package/dist/loading.js +8 -0
- package/dist/math.js +7 -0
- package/dist/message.js +6 -0
- package/dist/modal.js +4 -0
- package/dist/more-2vsTDpcc.js +31 -0
- package/dist/pdf-Bis_tkvj.js +134 -0
- package/dist/player.js +8 -0
- package/dist/plus-DgJxWGlo.js +56799 -0
- package/dist/popover.js +9 -0
- package/dist/preview.js +7 -0
- package/dist/progress.js +7 -0
- package/dist/radar.js +6 -0
- package/dist/ranui.css +1 -0
- package/dist/search-BWdfjyP8.js +4 -0
- package/dist/select.js +10 -0
- package/dist/{index-f6d6982d.js → selectShadowless.js} +203 -159
- package/dist/{umd/components/form → shadowless/icon}/index.d.ts +1 -0
- package/dist/shadowless/input/index.d.ts +210 -0
- package/dist/{umd/components → shadowless}/select/index.d.ts +22 -15
- package/dist/shadowless/select/option/index.d.ts +2 -0
- package/dist/shadowless.d.ts +3 -0
- package/dist/shadowless.js +8 -0
- package/dist/skeleton.js +4 -0
- package/dist/sort-DWqiUONr.js +4 -0
- package/dist/sprite-CH2zLtZy.js +141 -0
- package/dist/tab.js +6 -0
- package/dist/tabpane.js +4 -0
- package/dist/tsconfig.json +31 -0
- package/dist/typings.d.ts +257 -0
- package/dist/umd/index.css +1 -0
- package/dist/umd/index.umd.cjs +1 -71
- package/dist/umd/shadowless/shadowless.css +1 -0
- package/dist/umd/shadowless/shadowless.umd.cjs +1 -0
- package/dist/utils/color.d.ts +52 -0
- package/dist/utils/image.d.ts +8 -1
- package/dist/utils/index.d.ts +20 -5
- package/dist/utils/math.d.ts +3 -3
- package/dist/vite.config.d.ts +1 -0
- package/dist/without-content-CdJw7vHM.js +4 -0
- package/package.json +115 -67
- package/readme.md +41 -57
- package/typings.d.ts +257 -0
- package/dist/colz-746223ab.js +0 -241
- package/dist/components/button/index.js +0 -7
- package/dist/components/icon/index.js +0 -6
- package/dist/components/image/index.js +0 -4
- package/dist/components/input/index.js +0 -5
- package/dist/components/message/index.js +0 -4
- package/dist/components/modal/index.js +0 -4
- package/dist/components/option/index.d.ts +0 -2
- package/dist/components/option/index.js +0 -95
- package/dist/components/player/index.js +0 -11
- package/dist/components/preview/colz.d.ts +0 -72
- package/dist/components/preview/docx.d.ts +0 -8
- package/dist/components/preview/excel/excel.d.ts +0 -2
- package/dist/components/preview/excel/index.d.ts +0 -1
- package/dist/components/preview/excel/media.d.ts +0 -37
- package/dist/components/preview/index.js +0 -8
- package/dist/components/preview/pptx/index.d.ts +0 -16
- package/dist/components/preview/pptx/process_pptx.d.ts +0 -23
- package/dist/components/preview/pptx/t_xml.d.ts +0 -1
- package/dist/components/preview/pptx/worker.d.ts +0 -1
- package/dist/components/progress/index.js +0 -8
- package/dist/components/radar/index.js +0 -7
- package/dist/components/select/index.js +0 -11
- package/dist/components/skeleton/index.js +0 -4
- package/dist/components/tab/index.js +0 -7
- package/dist/components/tabpane/index.js +0 -4
- package/dist/docx-c5d02d8c.js +0 -21
- package/dist/index-183517e7.js +0 -265
- package/dist/index-4d873a42.js +0 -195
- package/dist/index-57492b9b.js +0 -48
- package/dist/index-7b8840f9.js +0 -18690
- package/dist/index-a216f328.js +0 -662
- package/dist/index-d2d69b06.js +0 -225
- package/dist/index-ecaed5cc.js +0 -439
- package/dist/pdf-bdb7818a.js +0 -113
- package/dist/style.css +0 -1
- package/dist/umd/build/config.d.ts +0 -3
- package/dist/umd/build/config.umd.d.ts +0 -2
- package/dist/umd/components/button/index.d.ts +0 -2
- package/dist/umd/components/icon/index.d.ts +0 -2
- package/dist/umd/components/image/index.d.ts +0 -2
- package/dist/umd/components/input/index.d.ts +0 -2
- package/dist/umd/components/message/index.d.ts +0 -14
- package/dist/umd/components/modal/index.d.ts +0 -2
- package/dist/umd/components/option/index.d.ts +0 -2
- package/dist/umd/components/player/index.d.ts +0 -524
- package/dist/umd/components/preview/colz.d.ts +0 -72
- package/dist/umd/components/preview/docx.d.ts +0 -8
- package/dist/umd/components/preview/excel/excel.d.ts +0 -2
- package/dist/umd/components/preview/excel/index.d.ts +0 -1
- package/dist/umd/components/preview/excel/media.d.ts +0 -37
- package/dist/umd/components/preview/index.d.ts +0 -6
- package/dist/umd/components/preview/pdf.d.ts +0 -1
- package/dist/umd/components/preview/pptx/index.d.ts +0 -16
- package/dist/umd/components/preview/pptx/process_pptx.d.ts +0 -23
- package/dist/umd/components/preview/pptx/t_xml.d.ts +0 -1
- package/dist/umd/components/preview/pptx/worker.d.ts +0 -1
- package/dist/umd/components/progress/index.d.ts +0 -36
- package/dist/umd/components/radar/index.d.ts +0 -2
- package/dist/umd/components/skeleton/index.d.ts +0 -2
- package/dist/umd/components/tab/index.d.ts +0 -403
- package/dist/umd/components/tabpane/index.d.ts +0 -347
- package/dist/umd/index.d.ts +0 -14
- package/dist/umd/playwright.config.d.ts +0 -9
- package/dist/umd/plugins/auto-import-file.d.ts +0 -0
- package/dist/umd/plugins/load-style.d.ts +0 -6
- package/dist/umd/plugins/load-svg.d.ts +0 -9
- package/dist/umd/style.css +0 -1
- package/dist/umd/tests/button.spec.d.ts +0 -1
- package/dist/umd/utils/image.d.ts +0 -32
- package/dist/umd/utils/index.d.ts +0 -64
- package/dist/umd/utils/math.d.ts +0 -26
- package/dist/umd/utils/tween.d.ts +0 -21
- package/dist/umd/vite.config.d.ts +0 -6
- package/dist/vendor-f71e6f68.js +0 -92126
- /package/dist/{add-user-b2bed3e7.js → add-user-BN1JlY7e.js} +0 -0
- /package/dist/{book-b11a68eb.js → book-nTEFXU2x.js} +0 -0
- /package/dist/{umd/build/config.es.d.ts → build/config.sha.d.ts} +0 -0
- /package/dist/{check-circle-fill-dc284144.js → check-circle-fill-B_pd8ZSs.js} +0 -0
- /package/dist/{check-circle-74bd09c3.js → check-circle-szyAJiap.js} +0 -0
- /package/dist/{close-20925345.js → close-CFnkhudp.js} +0 -0
- /package/dist/{close-circle-720c18be.js → close-circle-CwmuN2C6.js} +0 -0
- /package/dist/{close-circle-fill-238a66b1.js → close-circle-fill-jSqPPw9i.js} +0 -0
- /package/dist/{eye-5e742329.js → eye-D_mEt17f.js} +0 -0
- /package/dist/{eye-close-3874f1ae.js → eye-close-BVr3NJtg.js} +0 -0
- /package/dist/{home-c4a05e8b.js → home-BUQ4USMk.js} +0 -0
- /package/dist/{index-8e1e2573.js → index-CQTJoWhb.js} +0 -0
- /package/dist/{info-circle-5826decc.js → info-circle-COnL5bTJ.js} +0 -0
- /package/dist/{info-circle-fill-90ec9aa9.js → info-circle-fill-DjI8gXS3.js} +0 -0
- /package/dist/{loading-09ca52df.js → loading-Dcc5RApI.js} +0 -0
- /package/dist/{lock-1d2487c9.js → lock-Cr7BnmWN.js} +0 -0
- /package/dist/{message-b2bfdea7.js → message-D36_Zo2l.js} +0 -0
- /package/dist/{power-off-6ade5a91.js → power-off-lQRbiBak.js} +0 -0
- /package/dist/{preview-b291aea8.js → preview-CJbz9GjO.js} +0 -0
- /package/dist/{setting-1e5ccb6d.js → setting-DemlgzVC.js} +0 -0
- /package/dist/{team-ca6a12e1.js → team-tl4NJXPC.js} +0 -0
- /package/dist/{unlock-f56086fd.js → unlock-CeU74z9n.js} +0 -0
- /package/dist/{user-5c01e665.js → user-B-eVXwuk.js} +0 -0
- /package/dist/{warning-circle-035e025c.js → warning-circle-DDUgEDIv.js} +0 -0
- /package/dist/{warning-circle-fill-d17c37c9.js → warning-circle-fill-lODUKz0i.js} +0 -0
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import { SyncHook } from 'ranuts';
|
|
2
|
-
import
|
|
1
|
+
import { SyncHook } from 'ranuts/utils';
|
|
2
|
+
import '@/assets/js/hls.js';
|
|
3
|
+
import type { Progress } from '@/components/progress';
|
|
4
|
+
import '@/components/select';
|
|
5
|
+
import './index.less';
|
|
6
|
+
type Callback = (...args: unknown[]) => unknown;
|
|
7
|
+
type EventName = string | symbol;
|
|
8
|
+
type EventItem = {
|
|
9
|
+
name?: string | symbol;
|
|
10
|
+
callback: Callback;
|
|
11
|
+
initialCallback?: Callback;
|
|
12
|
+
};
|
|
13
|
+
export declare class SHook {
|
|
14
|
+
private _events;
|
|
15
|
+
constructor();
|
|
16
|
+
tap: (eventName: EventName, eventItem: EventItem | Callback) => void;
|
|
17
|
+
call: (eventName: EventName, ...args: Array<unknown>) => void;
|
|
18
|
+
callSync: (eventName: EventName, ...args: Array<unknown>) => Promise<void>;
|
|
19
|
+
once: (eventName: EventName, eventItem: EventItem | Callback) => void;
|
|
20
|
+
off: (eventName: EventName, eventItem: EventItem | Callback) => void;
|
|
21
|
+
}
|
|
3
22
|
export interface HlsPlayer {
|
|
4
23
|
startLoad(): () => void;
|
|
5
24
|
off: (s: string, f: Function) => void;
|
|
@@ -30,495 +49,202 @@ export interface Context {
|
|
|
30
49
|
levelMap: Map<string, string>;
|
|
31
50
|
clarity: string;
|
|
32
51
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_container: HTMLDivElement;
|
|
38
|
-
_slot: HTMLSlotElement;
|
|
39
|
-
_playerController: HTMLDivElement;
|
|
40
|
-
_playerBtn: HTMLDivElement;
|
|
41
|
-
_progress: HTMLDivElement;
|
|
42
|
-
_progressDot: HTMLDivElement;
|
|
43
|
-
_progressWrap: HTMLDivElement;
|
|
44
|
-
_progressWrapValue: HTMLDivElement;
|
|
45
|
-
requestAnimationFrameId?: number | undefined;
|
|
46
|
-
moveProgress: {
|
|
47
|
-
percentage: number;
|
|
48
|
-
mouseDown: boolean;
|
|
49
|
-
};
|
|
50
|
-
_playerControllerBottom: HTMLDivElement;
|
|
51
|
-
_playerControllerBottomRight: HTMLDivElement;
|
|
52
|
-
_playerControllerBottomLeft: HTMLDivElement;
|
|
53
|
-
_playerControllerBottomPlayBtn: HTMLDivElement;
|
|
54
|
-
_playerControllerBottomTimeCurrent: HTMLDivElement;
|
|
55
|
-
_playerControllerBottomTimeDuration: HTMLDivElement;
|
|
56
|
-
_playerControllerBottomTimeDivide: HTMLDivElement;
|
|
57
|
-
_playControllerBottomClarity: HTMLElement;
|
|
58
|
-
_playControllerBottomSpeed: HTMLDivElement;
|
|
59
|
-
_playControllerBottomSpeedIcon: HTMLDivElement;
|
|
60
|
-
_playControllerBottomVolumeProgress: Progress;
|
|
61
|
-
_playControllerBottomRightFullScreen: HTMLDivElement;
|
|
62
|
-
_playControllerBottomVolume: HTMLDivElement;
|
|
63
|
-
_playControllerBottomSpeedPopover: HTMLElement;
|
|
64
|
-
controllerBarTimeId?: NodeJS.Timeout | undefined;
|
|
65
|
-
_playerTip: HTMLDivElement;
|
|
66
|
-
_playerTipTime: HTMLDivElement;
|
|
67
|
-
_playerTipText: HTMLDivElement;
|
|
68
|
-
_volume?: number | undefined;
|
|
69
|
-
_video?: HTMLVideoElement | undefined;
|
|
70
|
-
_hls?: HlsPlayer | undefined;
|
|
71
|
-
src: string;
|
|
72
|
-
volume: string;
|
|
73
|
-
currentTime: string;
|
|
74
|
-
playbackRate: string;
|
|
75
|
-
changeClarityToSetVideo: () => void;
|
|
76
|
-
changeClarity: (e: Event) => void;
|
|
77
|
-
createClaritySelect: () => void;
|
|
78
|
-
manifestLoaded: (type: string, data: {
|
|
79
|
-
levels: Level[];
|
|
80
|
-
url: string;
|
|
81
|
-
}) => void;
|
|
82
|
-
/**
|
|
83
|
-
* @description: 初始化 video 和更新 video 方法
|
|
84
|
-
* @return {*}
|
|
85
|
-
*/
|
|
86
|
-
updatePlayer: () => void;
|
|
87
|
-
change: (name: string, value: unknown) => void;
|
|
88
|
-
onCanplay: (e: Event) => void;
|
|
89
|
-
onCanplaythrough: (e: Event) => void;
|
|
90
|
-
onComplete: (e: Event) => void;
|
|
91
|
-
onDurationchange: (e: Event) => void;
|
|
92
|
-
onEmptied: (e: Event) => void;
|
|
93
|
-
onEnded: (e: Event) => void;
|
|
94
|
-
onError: (e: Event) => void;
|
|
95
|
-
onLoadedmetadata: (e: Event) => void;
|
|
96
|
-
onLoadstart: (e: Event) => void;
|
|
97
|
-
onProgress: (e: Event) => void;
|
|
98
|
-
onRatechange: (e: Event) => void;
|
|
99
|
-
onSeeked: (e: Event) => void;
|
|
100
|
-
onSeeking: (e: Event) => void;
|
|
101
|
-
onStalled: (e: Event) => void;
|
|
102
|
-
onSuspend: (e: Event) => void;
|
|
103
|
-
onLoadeddata: (e: Event) => void;
|
|
104
|
-
onTimeupdate: (e: Event) => void;
|
|
105
|
-
onVolumechange: (e: Event) => void;
|
|
106
|
-
onWaiting: (e: Event) => void;
|
|
107
|
-
onPlay: (e: Event) => void;
|
|
108
|
-
onPlaying: (e: Event) => void;
|
|
109
|
-
onPause: (e: Event) => void;
|
|
110
|
-
clearListenerEvent: () => void;
|
|
111
|
-
/**
|
|
112
|
-
* @description: 用户行为和 video 之间的交互
|
|
113
|
-
* @return {*}
|
|
114
|
-
*/
|
|
115
|
-
listenEvent: () => void;
|
|
116
|
-
showControllerBar: (e?: MouseEvent | undefined) => void;
|
|
117
|
-
/**
|
|
118
|
-
* @description: 进度条点击事件
|
|
119
|
-
* @param {MouseEvent} e
|
|
120
|
-
* @return {*}
|
|
121
|
-
*/
|
|
122
|
-
progressClick: (e: MouseEvent) => void;
|
|
123
|
-
/**
|
|
124
|
-
* @description: 进度条鼠标按下事件
|
|
125
|
-
* @param {MouseEvent} e
|
|
126
|
-
* @return {*}
|
|
127
|
-
*/
|
|
128
|
-
progressDotMouseDown: (e: MouseEvent) => void;
|
|
129
|
-
/**
|
|
130
|
-
* @description: 进度条鼠标移动事件
|
|
131
|
-
* @param {MouseEvent} e
|
|
132
|
-
* @return {*}
|
|
133
|
-
*/
|
|
134
|
-
progressDotMouseMove: (e: MouseEvent) => void;
|
|
135
|
-
/**
|
|
136
|
-
* @description: 进度条鼠标松开事件
|
|
137
|
-
* @param {MouseEvent} e
|
|
138
|
-
* @return {*}
|
|
139
|
-
*/
|
|
140
|
-
progressDotMouseUp: () => void;
|
|
141
|
-
/**
|
|
142
|
-
* @description: 更新页面样式
|
|
143
|
-
* @param {Function} fn
|
|
144
|
-
* @return {*}
|
|
145
|
-
*/
|
|
146
|
-
requestAnimationFrame: (fn: Function) => void;
|
|
147
|
-
/**
|
|
148
|
-
* @description: 取消页面动画
|
|
149
|
-
* @param {Function} fn
|
|
150
|
-
* @return {*}
|
|
151
|
-
*/
|
|
152
|
-
cancelAnimationFrame: () => void;
|
|
153
|
-
/**
|
|
154
|
-
* @description: 更新进度条
|
|
155
|
-
* @param {*} void
|
|
156
|
-
* @return {*}
|
|
157
|
-
*/
|
|
158
|
-
updateCurrentProgress: () => void;
|
|
159
|
-
changeAttribute: (k: string, o: string, n: string, attribute: string, callback: Function) => void;
|
|
160
|
-
/**
|
|
161
|
-
* @description: 点击整个视频时,触发的事件
|
|
162
|
-
* @param {*} void
|
|
163
|
-
* @return {*}
|
|
164
|
-
*/
|
|
165
|
-
dispatchClickPlayerContainerAction: (e: Event) => void;
|
|
166
|
-
/**
|
|
167
|
-
* @description: 空格事件
|
|
168
|
-
* @param {KeyboardEvent} e
|
|
169
|
-
* @return {*}
|
|
170
|
-
*/
|
|
171
|
-
SpaceKeyDown: (e: KeyboardEvent) => void;
|
|
172
|
-
/**
|
|
173
|
-
* @description: 点击player-btn,触发的事件
|
|
174
|
-
* @param {*} void
|
|
175
|
-
* @return {*}
|
|
176
|
-
*/
|
|
177
|
-
dispatchClickPlayerBtnAction: (e: Event) => void;
|
|
178
|
-
changeVolumeProgress: (e: Event) => void;
|
|
179
|
-
openFullScreen: () => void;
|
|
180
|
-
changeSpeed: (e: Event) => void;
|
|
181
|
-
progressMouseEnter: (e: MouseEvent) => void;
|
|
182
|
-
progressMouseLeave: (e: MouseEvent) => void;
|
|
183
|
-
progressMouseMove: (e: MouseEvent) => void;
|
|
184
|
-
changePlayerVolume: () => void;
|
|
185
|
-
resize: () => void;
|
|
186
|
-
fullScreenChange: () => void;
|
|
187
|
-
getPlaybackRate: () => number;
|
|
188
|
-
setPlaybackRate: (n: number) => number;
|
|
189
|
-
setVolume: (n: number) => number;
|
|
190
|
-
getVolume: () => number;
|
|
191
|
-
setCurrentTime: (n: number) => number;
|
|
192
|
-
getCurrentTime: () => number;
|
|
193
|
-
getTotalTime: () => number;
|
|
194
|
-
play: (n?: number | undefined) => void;
|
|
195
|
-
pause: () => void;
|
|
196
|
-
connectedCallback(): void;
|
|
197
|
-
disconnectCallback(): void;
|
|
198
|
-
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
199
|
-
accessKey: string;
|
|
200
|
-
readonly accessKeyLabel: string;
|
|
201
|
-
autocapitalize: string;
|
|
202
|
-
dir: string;
|
|
203
|
-
draggable: boolean;
|
|
204
|
-
hidden: boolean;
|
|
205
|
-
inert: boolean;
|
|
206
|
-
innerText: string;
|
|
207
|
-
lang: string;
|
|
208
|
-
readonly offsetHeight: number;
|
|
209
|
-
readonly offsetLeft: number;
|
|
210
|
-
readonly offsetParent: Element | null;
|
|
211
|
-
readonly offsetTop: number;
|
|
212
|
-
readonly offsetWidth: number;
|
|
213
|
-
outerText: string;
|
|
214
|
-
popover: string | null;
|
|
215
|
-
spellcheck: boolean;
|
|
216
|
-
title: string;
|
|
217
|
-
translate: boolean;
|
|
218
|
-
attachInternals(): ElementInternals;
|
|
219
|
-
click(): void;
|
|
220
|
-
hidePopover(): void;
|
|
221
|
-
showPopover(): void;
|
|
222
|
-
togglePopover(force?: boolean | undefined): void;
|
|
223
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
224
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
225
|
-
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
226
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
227
|
-
readonly attributes: NamedNodeMap;
|
|
228
|
-
readonly classList: DOMTokenList;
|
|
229
|
-
className: string;
|
|
230
|
-
readonly clientHeight: number;
|
|
231
|
-
readonly clientLeft: number;
|
|
232
|
-
readonly clientTop: number;
|
|
233
|
-
readonly clientWidth: number;
|
|
234
|
-
id: string;
|
|
235
|
-
readonly localName: string;
|
|
236
|
-
readonly namespaceURI: string | null;
|
|
237
|
-
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
238
|
-
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
239
|
-
outerHTML: string;
|
|
240
|
-
readonly ownerDocument: Document;
|
|
241
|
-
readonly part: DOMTokenList;
|
|
242
|
-
readonly prefix: string | null;
|
|
243
|
-
readonly scrollHeight: number;
|
|
244
|
-
scrollLeft: number;
|
|
245
|
-
scrollTop: number;
|
|
246
|
-
readonly scrollWidth: number;
|
|
247
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
248
|
-
slot: string;
|
|
249
|
-
readonly tagName: string;
|
|
250
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
251
|
-
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
252
|
-
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
253
|
-
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
254
|
-
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
255
|
-
closest<E extends Element = Element>(selectors: string): E | null;
|
|
256
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
|
257
|
-
getAttribute(qualifiedName: string): string | null;
|
|
258
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
259
|
-
getAttributeNames(): string[];
|
|
260
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
261
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
262
|
-
getBoundingClientRect(): DOMRect;
|
|
263
|
-
getClientRects(): DOMRectList;
|
|
264
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
265
|
-
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
266
|
-
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
267
|
-
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
268
|
-
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
269
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
270
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
271
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
272
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
273
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
274
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
275
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
276
|
-
hasAttributes(): boolean;
|
|
277
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
278
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
279
|
-
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
280
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
281
|
-
matches(selectors: string): boolean;
|
|
282
|
-
releasePointerCapture(pointerId: number): void;
|
|
283
|
-
removeAttribute(qualifiedName: string): void;
|
|
284
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
285
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
286
|
-
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
287
|
-
requestPointerLock(): void;
|
|
288
|
-
scroll(options?: ScrollToOptions | undefined): void;
|
|
289
|
-
scroll(x: number, y: number): void;
|
|
290
|
-
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
291
|
-
scrollBy(x: number, y: number): void;
|
|
292
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
293
|
-
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
294
|
-
scrollTo(x: number, y: number): void;
|
|
295
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
296
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
297
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
298
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
299
|
-
setPointerCapture(pointerId: number): void;
|
|
300
|
-
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
301
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
302
|
-
readonly baseURI: string;
|
|
303
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
304
|
-
readonly firstChild: ChildNode | null;
|
|
305
|
-
readonly isConnected: boolean;
|
|
306
|
-
readonly lastChild: ChildNode | null;
|
|
307
|
-
readonly nextSibling: ChildNode | null;
|
|
308
|
-
readonly nodeName: string;
|
|
309
|
-
readonly nodeType: number;
|
|
310
|
-
nodeValue: string | null;
|
|
311
|
-
readonly parentElement: HTMLElement | null;
|
|
312
|
-
readonly parentNode: ParentNode | null;
|
|
313
|
-
readonly previousSibling: ChildNode | null;
|
|
314
|
-
textContent: string | null;
|
|
315
|
-
appendChild<T extends Node>(node: T): T;
|
|
316
|
-
cloneNode(deep?: boolean | undefined): Node;
|
|
317
|
-
compareDocumentPosition(other: Node): number;
|
|
318
|
-
contains(other: Node | null): boolean;
|
|
319
|
-
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
320
|
-
hasChildNodes(): boolean;
|
|
321
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
322
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
323
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
324
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
325
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
326
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
327
|
-
normalize(): void;
|
|
328
|
-
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
329
|
-
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
330
|
-
readonly ELEMENT_NODE: 1;
|
|
331
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
332
|
-
readonly TEXT_NODE: 3;
|
|
333
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
334
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
335
|
-
readonly ENTITY_NODE: 6;
|
|
336
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
337
|
-
readonly COMMENT_NODE: 8;
|
|
338
|
-
readonly DOCUMENT_NODE: 9;
|
|
339
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
340
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
341
|
-
readonly NOTATION_NODE: 12;
|
|
342
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
343
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
344
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
345
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
346
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
347
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
348
|
-
dispatchEvent(event: Event): boolean;
|
|
349
|
-
ariaAtomic: string | null;
|
|
350
|
-
ariaAutoComplete: string | null;
|
|
351
|
-
ariaBusy: string | null;
|
|
352
|
-
ariaChecked: string | null;
|
|
353
|
-
ariaColCount: string | null;
|
|
354
|
-
ariaColIndex: string | null;
|
|
355
|
-
ariaColSpan: string | null;
|
|
356
|
-
ariaCurrent: string | null;
|
|
357
|
-
ariaDisabled: string | null;
|
|
358
|
-
ariaExpanded: string | null;
|
|
359
|
-
ariaHasPopup: string | null;
|
|
360
|
-
ariaHidden: string | null;
|
|
361
|
-
ariaInvalid: string | null;
|
|
362
|
-
ariaKeyShortcuts: string | null;
|
|
363
|
-
ariaLabel: string | null;
|
|
364
|
-
ariaLevel: string | null;
|
|
365
|
-
ariaLive: string | null;
|
|
366
|
-
ariaModal: string | null;
|
|
367
|
-
ariaMultiLine: string | null;
|
|
368
|
-
ariaMultiSelectable: string | null;
|
|
369
|
-
ariaOrientation: string | null;
|
|
370
|
-
ariaPlaceholder: string | null;
|
|
371
|
-
ariaPosInSet: string | null;
|
|
372
|
-
ariaPressed: string | null;
|
|
373
|
-
ariaReadOnly: string | null;
|
|
374
|
-
ariaRequired: string | null;
|
|
375
|
-
ariaRoleDescription: string | null;
|
|
376
|
-
ariaRowCount: string | null;
|
|
377
|
-
ariaRowIndex: string | null;
|
|
378
|
-
ariaRowSpan: string | null;
|
|
379
|
-
ariaSelected: string | null;
|
|
380
|
-
ariaSetSize: string | null;
|
|
381
|
-
ariaSort: string | null;
|
|
382
|
-
ariaValueMax: string | null;
|
|
383
|
-
ariaValueMin: string | null;
|
|
384
|
-
ariaValueNow: string | null;
|
|
385
|
-
ariaValueText: string | null;
|
|
386
|
-
role: string | null;
|
|
387
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
388
|
-
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
389
|
-
after(...nodes: (string | Node)[]): void;
|
|
390
|
-
before(...nodes: (string | Node)[]): void;
|
|
391
|
-
remove(): void;
|
|
392
|
-
replaceWith(...nodes: (string | Node)[]): void;
|
|
393
|
-
innerHTML: string;
|
|
394
|
-
readonly nextElementSibling: Element | null;
|
|
395
|
-
readonly previousElementSibling: Element | null;
|
|
396
|
-
readonly childElementCount: number;
|
|
397
|
-
readonly children: HTMLCollection;
|
|
398
|
-
readonly firstElementChild: Element | null;
|
|
399
|
-
readonly lastElementChild: Element | null;
|
|
400
|
-
append(...nodes: (string | Node)[]): void;
|
|
401
|
-
prepend(...nodes: (string | Node)[]): void;
|
|
402
|
-
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
403
|
-
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
404
|
-
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
405
|
-
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
406
|
-
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
407
|
-
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
408
|
-
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
409
|
-
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
410
|
-
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
411
|
-
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
412
|
-
replaceChildren(...nodes: (string | Node)[]): void;
|
|
413
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
414
|
-
readonly attributeStyleMap: StylePropertyMap;
|
|
415
|
-
readonly style: CSSStyleDeclaration;
|
|
416
|
-
contentEditable: string;
|
|
417
|
-
enterKeyHint: string;
|
|
418
|
-
inputMode: string;
|
|
419
|
-
readonly isContentEditable: boolean;
|
|
420
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
421
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
422
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
423
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
424
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
425
|
-
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
426
|
-
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
427
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
428
|
-
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
429
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
430
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
431
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
432
|
-
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
433
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
434
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
435
|
-
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
436
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
437
|
-
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
438
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
439
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
440
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
441
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
442
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
443
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
444
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
445
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
446
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
447
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
448
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
449
|
-
onerror: OnErrorEventHandler;
|
|
450
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
451
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
452
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
453
|
-
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
454
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
455
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
456
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
457
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
458
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
459
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
460
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
461
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
462
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
463
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
464
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
465
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
466
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
467
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
468
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
469
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
470
|
-
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
471
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
472
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
473
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
474
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
475
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
476
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
477
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
478
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
479
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
480
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
481
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
482
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
483
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
484
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
485
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
486
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
487
|
-
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
488
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
489
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
490
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
491
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
492
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
493
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
494
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
495
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
496
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
497
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
498
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
499
|
-
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
500
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
501
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
502
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
503
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
504
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
505
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
506
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
507
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
508
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
509
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
510
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
511
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
512
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
513
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
514
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
515
|
-
autofocus: boolean;
|
|
516
|
-
readonly dataset: DOMStringMap;
|
|
517
|
-
nonce?: string | undefined;
|
|
518
|
-
tabIndex: number;
|
|
519
|
-
blur(): void;
|
|
520
|
-
focus(options?: FocusOptions | undefined): void;
|
|
52
|
+
interface Hls {
|
|
53
|
+
Events: {
|
|
54
|
+
MANIFEST_LOADED: 'hlsManifestLoaded';
|
|
55
|
+
ERROR: 'error';
|
|
521
56
|
};
|
|
522
|
-
|
|
523
|
-
}
|
|
57
|
+
isSupported: () => boolean;
|
|
58
|
+
}
|
|
59
|
+
type HLS = Hls & (new () => HlsPlayer);
|
|
60
|
+
declare global {
|
|
61
|
+
interface Window {
|
|
62
|
+
Hls: HLS;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
declare const RanPlayer_base: {
|
|
66
|
+
new (): HTMLElement;
|
|
67
|
+
prototype: HTMLElement;
|
|
68
|
+
};
|
|
69
|
+
export declare class RanPlayer extends RanPlayer_base {
|
|
70
|
+
ctx: Context;
|
|
71
|
+
_player: HTMLDivElement;
|
|
72
|
+
_container: HTMLDivElement;
|
|
73
|
+
_slot: HTMLSlotElement;
|
|
74
|
+
_playerController: HTMLDivElement;
|
|
75
|
+
_playerBtn: HTMLDivElement;
|
|
76
|
+
_progress: HTMLDivElement;
|
|
77
|
+
_progressDot: HTMLDivElement;
|
|
78
|
+
_progressWrap: HTMLDivElement;
|
|
79
|
+
_progressWrapValue: HTMLDivElement;
|
|
80
|
+
requestAnimationFrameId?: number;
|
|
81
|
+
moveProgress: {
|
|
82
|
+
percentage: number;
|
|
83
|
+
mouseDown: boolean;
|
|
84
|
+
};
|
|
85
|
+
_playerControllerBottom: HTMLDivElement;
|
|
86
|
+
_playerControllerBottomRight: HTMLDivElement;
|
|
87
|
+
_playerControllerBottomLeft: HTMLDivElement;
|
|
88
|
+
_playerControllerBottomPlayBtn: HTMLDivElement;
|
|
89
|
+
_playerControllerBottomTimeCurrent: HTMLDivElement;
|
|
90
|
+
_playerControllerBottomTimeDuration: HTMLDivElement;
|
|
91
|
+
_playerControllerBottomTimeDivide: HTMLDivElement;
|
|
92
|
+
_playControllerBottomClarity: HTMLElement;
|
|
93
|
+
_playControllerBottomSpeed: HTMLDivElement;
|
|
94
|
+
_playControllerBottomSpeedIcon: HTMLDivElement;
|
|
95
|
+
_playControllerBottomVolumeProgress: Progress;
|
|
96
|
+
_playControllerBottomRightFullScreen: HTMLDivElement;
|
|
97
|
+
_playControllerBottomVolume: HTMLDivElement;
|
|
98
|
+
_playControllerBottomSpeedPopover: HTMLElement;
|
|
99
|
+
controllerBarTimeId?: NodeJS.Timeout;
|
|
100
|
+
_playerTip: HTMLDivElement;
|
|
101
|
+
_playerTipTime: HTMLDivElement;
|
|
102
|
+
_playerTipText: HTMLDivElement;
|
|
103
|
+
_volume?: number;
|
|
104
|
+
_video?: HTMLVideoElement;
|
|
105
|
+
_hls?: HlsPlayer;
|
|
106
|
+
static get observedAttributes(): string[];
|
|
107
|
+
/**
|
|
108
|
+
* @description: 初始化 view 和 video 的全局上下文
|
|
109
|
+
* @return {*}
|
|
110
|
+
*/
|
|
111
|
+
constructor();
|
|
112
|
+
get src(): string;
|
|
113
|
+
set src(value: string);
|
|
114
|
+
get debug(): string;
|
|
115
|
+
set debug(value: string);
|
|
116
|
+
get volume(): string;
|
|
117
|
+
set volume(value: string);
|
|
118
|
+
get currentTime(): string;
|
|
119
|
+
set currentTime(value: string);
|
|
120
|
+
get playbackRate(): string;
|
|
121
|
+
set playbackRate(value: string);
|
|
122
|
+
changeClarityToSetVideo: () => void;
|
|
123
|
+
changeClarity: (e: Event) => void;
|
|
124
|
+
createClaritySelect: () => void;
|
|
125
|
+
manifestLoaded: (type: string, data: {
|
|
126
|
+
levels: Level[];
|
|
127
|
+
url: string;
|
|
128
|
+
}) => void;
|
|
129
|
+
/**
|
|
130
|
+
* @description: 初始化 video 和更新 video 方法
|
|
131
|
+
* @return {*}
|
|
132
|
+
*/
|
|
133
|
+
updatePlayer: () => void;
|
|
134
|
+
hlsError: (event: unknown, data: unknown) => void;
|
|
135
|
+
change: (name: string, value: unknown) => void;
|
|
136
|
+
onCanplay: (e: Event) => void;
|
|
137
|
+
onCanplaythrough: (e: Event) => void;
|
|
138
|
+
onComplete: (e: Event) => void;
|
|
139
|
+
onDurationchange: (e: Event) => void;
|
|
140
|
+
onEmptied: (e: Event) => void;
|
|
141
|
+
onEnded: (e: Event) => void;
|
|
142
|
+
onError: (e: Event) => void;
|
|
143
|
+
onLoadedmetadata: (e: Event) => void;
|
|
144
|
+
onLoadstart: (e: Event) => void;
|
|
145
|
+
onProgress: (e: Event) => void;
|
|
146
|
+
onRatechange: (e: Event) => void;
|
|
147
|
+
onSeeked: (e: Event) => void;
|
|
148
|
+
onSeeking: (e: Event) => void;
|
|
149
|
+
onStalled: (e: Event) => void;
|
|
150
|
+
onSuspend: (e: Event) => void;
|
|
151
|
+
onLoadeddata: (e: Event) => void;
|
|
152
|
+
onTimeupdate: (e: Event) => void;
|
|
153
|
+
onVolumechange: (e: Event) => void;
|
|
154
|
+
onWaiting: (e: Event) => void;
|
|
155
|
+
onPlay: (e: Event) => void;
|
|
156
|
+
onPlaying: (e: Event) => void;
|
|
157
|
+
onPause: (e: Event) => void;
|
|
158
|
+
clearListenerEvent: () => void;
|
|
159
|
+
/**
|
|
160
|
+
* @description: 用户行为和 video 之间的交互
|
|
161
|
+
* @return {*}
|
|
162
|
+
*/
|
|
163
|
+
listenEvent: () => void;
|
|
164
|
+
showControllerBar: (e?: MouseEvent) => void;
|
|
165
|
+
/**
|
|
166
|
+
* @description: 进度条点击事件
|
|
167
|
+
* @param {MouseEvent} e
|
|
168
|
+
* @return {*}
|
|
169
|
+
*/
|
|
170
|
+
progressClick: (e: MouseEvent) => void;
|
|
171
|
+
/**
|
|
172
|
+
* @description: 进度条鼠标按下事件
|
|
173
|
+
* @param {MouseEvent} e
|
|
174
|
+
* @return {*}
|
|
175
|
+
*/
|
|
176
|
+
progressDotMouseDown: () => void;
|
|
177
|
+
/**
|
|
178
|
+
* @description: 进度条鼠标移动事件
|
|
179
|
+
* @param {MouseEvent} e
|
|
180
|
+
* @return {*}
|
|
181
|
+
*/
|
|
182
|
+
progressDotMouseMove: (e: MouseEvent) => void;
|
|
183
|
+
/**
|
|
184
|
+
* @description: 进度条鼠标松开事件
|
|
185
|
+
* @param {MouseEvent} e
|
|
186
|
+
* @return {*}
|
|
187
|
+
*/
|
|
188
|
+
progressDotMouseUp: () => void;
|
|
189
|
+
/**
|
|
190
|
+
* @description: 更新页面样式
|
|
191
|
+
* @param {Function} fn
|
|
192
|
+
* @return {*}
|
|
193
|
+
*/
|
|
194
|
+
requestAnimationFrame: (fn: Function) => void;
|
|
195
|
+
/**
|
|
196
|
+
* @description: 取消页面动画
|
|
197
|
+
* @param {Function} fn
|
|
198
|
+
* @return {*}
|
|
199
|
+
*/
|
|
200
|
+
cancelAnimationFrame: () => void;
|
|
201
|
+
/**
|
|
202
|
+
* @description: 更新进度条
|
|
203
|
+
* @param {*} void
|
|
204
|
+
* @return {*}
|
|
205
|
+
*/
|
|
206
|
+
updateCurrentProgress: () => void;
|
|
207
|
+
changeAttribute: (k: string, o: string, n: string, attribute: string, callback: Function) => void;
|
|
208
|
+
/**
|
|
209
|
+
* @description: 点击整个视频时,触发的事件
|
|
210
|
+
* @param {*} void
|
|
211
|
+
* @return {*}
|
|
212
|
+
*/
|
|
213
|
+
dispatchClickPlayerContainerAction: (e: Event) => void;
|
|
214
|
+
/**
|
|
215
|
+
* @description: 空格事件
|
|
216
|
+
* @param {KeyboardEvent} e
|
|
217
|
+
* @return {*}
|
|
218
|
+
*/
|
|
219
|
+
SpaceKeyDown: (e: KeyboardEvent) => void;
|
|
220
|
+
/**
|
|
221
|
+
* @description: 点击 player-btn,触发的事件
|
|
222
|
+
* @param {*} void
|
|
223
|
+
* @return {*}
|
|
224
|
+
*/
|
|
225
|
+
dispatchClickPlayerBtnAction: (e: Event) => void;
|
|
226
|
+
changeVolumeProgress: (e: Event) => void;
|
|
227
|
+
customRequestFullscreen: () => Promise<void>;
|
|
228
|
+
customExitFullscreen: () => Promise<void>;
|
|
229
|
+
openFullScreen: () => void;
|
|
230
|
+
changeSpeed: (e: Event) => void;
|
|
231
|
+
progressMouseEnter: (e: MouseEvent) => void;
|
|
232
|
+
progressMouseLeave: (e: MouseEvent) => void;
|
|
233
|
+
progressMouseMove: (e: MouseEvent) => void;
|
|
234
|
+
changePlayerVolume: () => void;
|
|
235
|
+
resize: () => void;
|
|
236
|
+
fullScreenChange: () => void;
|
|
237
|
+
getPlaybackRate: () => number;
|
|
238
|
+
setPlaybackRate: (n: number) => number;
|
|
239
|
+
setVolume: (n: number) => number;
|
|
240
|
+
getVolume: () => number;
|
|
241
|
+
setCurrentTime: (n: number) => number;
|
|
242
|
+
getCurrentTime: () => number;
|
|
243
|
+
getTotalTime: () => number;
|
|
244
|
+
play: (n?: number) => void;
|
|
245
|
+
pause: () => void;
|
|
246
|
+
connectedCallback(): void;
|
|
247
|
+
disconnectCallback(): void;
|
|
248
|
+
}
|
|
249
|
+
declare const _default: typeof RanPlayer | undefined;
|
|
524
250
|
export default _default;
|