xgplayer 2.32.5 → 2.32.6
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/browser/controls/airplay.js +1 -1
- package/browser/controls/cssFullscreen.js +1 -1
- package/browser/controls/danmu.js +3 -1
- package/browser/controls/definition.js +1 -1
- package/browser/controls/download.js +1 -1
- package/browser/controls/enter.js +1 -1
- package/browser/controls/error.js +1 -1
- package/browser/controls/errorRetry.js +1 -1
- package/browser/controls/flex.js +1 -1
- package/browser/controls/fullscreen.js +1 -1
- package/browser/controls/loading.js +1 -1
- package/browser/controls/memoryPlay.js +1 -1
- package/browser/controls/miniplayer.js +9 -7
- package/browser/controls/mobile.js +1 -1
- package/browser/controls/nativeTextTrack.js +1 -1
- package/browser/controls/pc.js +1 -1
- package/browser/controls/pip.js +1 -1
- package/browser/controls/play.js +1 -1
- package/browser/controls/playNext.js +1 -1
- package/browser/controls/playbackRate.js +1 -1
- package/browser/controls/poster.js +1 -1
- package/browser/controls/progress.js +1 -1
- package/browser/controls/reload.js +1 -1
- package/browser/controls/replay.js +1 -1
- package/browser/controls/rotate.js +1 -1
- package/browser/controls/screenShot.js +1 -1
- package/browser/controls/start.js +1 -1
- package/browser/controls/textTrack.js +1 -1
- package/browser/controls/time.js +1 -1
- package/browser/controls/volume.js +1 -1
- package/browser/core_player.js +1 -1
- package/browser/core_player.js.map +1 -1
- package/browser/index.js +11 -7
- package/browser/index.js.map +1 -1
- package/browser/simple_player.js +1 -1
- package/browser/simple_player.js.map +1 -1
- package/dist/controls/airplay.js +1 -1
- package/dist/controls/cssFullscreen.js +1 -1
- package/dist/controls/danmu.js +3 -1
- package/dist/controls/definition.js +1 -1
- package/dist/controls/download.js +1 -1
- package/dist/controls/enter.js +1 -1
- package/dist/controls/error.js +1 -1
- package/dist/controls/errorRetry.js +1 -1
- package/dist/controls/flex.js +1 -1
- package/dist/controls/fullscreen.js +1 -1
- package/dist/controls/loading.js +1 -1
- package/dist/controls/memoryPlay.js +1 -1
- package/dist/controls/miniplayer.js +9 -7
- package/dist/controls/mobile.js +1 -1
- package/dist/controls/nativeTextTrack.js +1 -1
- package/dist/controls/pc.js +1 -1
- package/dist/controls/pip.js +1 -1
- package/dist/controls/play.js +1 -1
- package/dist/controls/playNext.js +1 -1
- package/dist/controls/playbackRate.js +1 -1
- package/dist/controls/poster.js +1 -1
- package/dist/controls/progress.js +1 -1
- package/dist/controls/reload.js +1 -1
- package/dist/controls/replay.js +1 -1
- package/dist/controls/rotate.js +1 -1
- package/dist/controls/screenShot.js +1 -1
- package/dist/controls/start.js +1 -1
- package/dist/controls/textTrack.js +1 -1
- package/dist/controls/time.js +1 -1
- package/dist/controls/volume.js +1 -1
- package/dist/core_player.js +2960 -2889
- package/dist/core_player.js.map +1 -1
- package/dist/index.js +1938 -3321
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/dist/simple_player.js +274 -281
- package/dist/simple_player.js.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +216 -0
- package/es/constant.d.ts +4 -0
- package/es/constant.js +5 -0
- package/es/controls/airplay.js +1 -1
- package/es/controls/cssFullscreen.js +1 -1
- package/es/controls/danmu.js +3 -1
- package/es/controls/definition.js +1 -1
- package/es/controls/download.js +1 -1
- package/es/controls/enter.js +1 -1
- package/es/controls/error.js +1 -1
- package/es/controls/errorRetry.js +1 -1
- package/es/controls/flex.js +1 -1
- package/es/controls/fullscreen.js +1 -1
- package/es/controls/i18n.js +1 -1
- package/es/controls/keyboard.js +1 -1
- package/es/controls/loading.js +1 -1
- package/es/controls/localPreview.js +1 -1
- package/es/controls/memoryPlay.js +1 -1
- package/es/controls/miniplayer.js +9 -7
- package/es/controls/mobile.js +1 -1
- package/es/controls/nativeTextTrack.js +1 -1
- package/es/controls/pc.js +1 -1
- package/es/controls/pip.js +1 -1
- package/es/controls/play.js +1 -1
- package/es/controls/playNext.js +1 -1
- package/es/controls/playbackRate.js +1 -1
- package/es/controls/poster.js +1 -1
- package/es/controls/progress.js +1 -1
- package/es/controls/reload.js +1 -1
- package/es/controls/replay.js +1 -1
- package/es/controls/rotate.js +1 -1
- package/es/controls/screenShot.js +1 -1
- package/es/controls/start.js +1 -1
- package/es/controls/textTrack.js +1 -1
- package/es/controls/time.js +1 -1
- package/es/controls/volume.js +1 -1
- package/es/core_player.js +1 -1
- package/es/core_player.js.map +1 -1
- package/es/defaultConfig.d.ts +243 -0
- package/es/defaultConfig.js +85 -0
- package/es/error.d.ts +114 -0
- package/es/error.js +75 -0
- package/es/events.d.ts +61 -0
- package/es/events.js +62 -0
- package/es/icons.d.ts +2 -0
- package/es/index.css +499 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +11 -7
- package/es/index.js.map +1 -1
- package/es/index.scss +29 -0
- package/es/index.umd.d.ts +60 -0
- package/es/index.umd.js +30 -0
- package/es/lang/en.d.ts +91 -0
- package/es/lang/en.js +77 -0
- package/es/lang/i18n.d.ts +36 -0
- package/es/lang/i18n.js +122 -0
- package/es/lang/index.d.ts +2 -0
- package/es/lang/jp.d.ts +91 -0
- package/es/lang/jp.js +77 -0
- package/es/lang/zh-cn.d.ts +91 -0
- package/es/lang/zh-cn.js +77 -0
- package/es/lang/zh-hk.d.ts +91 -0
- package/es/lang/zh-hk.js +77 -0
- package/es/mediaProxy.d.ts +334 -0
- package/es/mediaProxy.js +623 -0
- package/es/player.d.ts +825 -0
- package/es/player.js +1945 -0
- package/es/plugin/basePlugin.d.ts +180 -0
- package/es/plugin/basePlugin.js +259 -0
- package/es/plugin/hooksDescriptor.d.ts +60 -0
- package/es/plugin/hooksDescriptor.js +149 -0
- package/es/plugin/index.d.ts +13 -0
- package/es/plugin/plugin.d.ts +207 -0
- package/es/plugin/plugin.js +542 -0
- package/es/plugin/pluginsManager.d.ts +162 -0
- package/es/plugin/pluginsManager.js +362 -0
- package/es/plugin/preset.d.ts +1 -0
- package/es/plugin/preset.js +28 -0
- package/es/plugin/resizeObserver.d.ts +3 -0
- package/es/plugin/resizeObserver.js +108 -0
- package/es/plugins/assets/back.js +4 -0
- package/es/plugins/assets/download.js +4 -0
- package/es/plugins/assets/exitCssFull.js +4 -0
- package/es/plugins/assets/exitFull.js +4 -0
- package/es/plugins/assets/loading.js +4 -0
- package/es/plugins/assets/panel.js +4 -0
- package/es/plugins/assets/pause.js +4 -0
- package/es/plugins/assets/pipIcon.js +4 -0
- package/es/plugins/assets/pipIconExit.js +4 -0
- package/es/plugins/assets/play.js +4 -0
- package/es/plugins/assets/playNext.js +4 -0
- package/es/plugins/assets/replay.js +4 -0
- package/es/plugins/assets/requestCssFull.js +7 -0
- package/es/plugins/assets/requestFull.js +4 -0
- package/es/plugins/assets/rotate.js +4 -0
- package/es/plugins/assets/seekicon.js +4 -0
- package/es/plugins/assets/volumeLarge.js +4 -0
- package/es/plugins/assets/volumeMuted.js +4 -0
- package/es/plugins/assets/volumeSmall.js +4 -0
- package/es/plugins/common/iconPlugin.d.ts +5 -0
- package/es/plugins/common/iconPlugin.js +42 -0
- package/es/plugins/common/iconTools.d.ts +1 -0
- package/es/plugins/common/iconTools.js +8 -0
- package/es/plugins/common/index.scss +2 -0
- package/es/plugins/common/optionList.d.ts +15 -0
- package/es/plugins/common/optionList.js +120 -0
- package/es/plugins/common/optionsIcon.d.ts +40 -0
- package/es/plugins/common/optionsIcon.js +304 -0
- package/es/plugins/common/optionsIcon.scss +154 -0
- package/es/plugins/common/thumbnail.d.ts +62 -0
- package/es/plugins/common/thumbnail.js +191 -0
- package/es/plugins/common/thumbnail.scss +27 -0
- package/es/plugins/controls/index.css +132 -0
- package/es/plugins/controls/index.d.ts +73 -0
- package/es/plugins/controls/index.js +189 -0
- package/es/plugins/controls/index.scss +204 -0
- package/es/plugins/cssFullScreen/index.css +12 -0
- package/es/plugins/cssFullScreen/index.d.ts +40 -0
- package/es/plugins/cssFullScreen/index.js +136 -0
- package/es/plugins/cssFullScreen/index.scss +19 -0
- package/es/plugins/danmu/danmuIcon.d.ts +24 -0
- package/es/plugins/danmu/danmuIcon.js +98 -0
- package/es/plugins/danmu/danmuPanel.d.ts +39 -0
- package/es/plugins/danmu/danmuPanel.js +81 -0
- package/es/plugins/danmu/index.css +603 -0
- package/es/plugins/danmu/index.d.ts +96 -0
- package/es/plugins/danmu/index.js +313 -0
- package/es/plugins/danmu/index.scss +356 -0
- package/es/plugins/definition/index.css +4 -0
- package/es/plugins/definition/index.d.ts +38 -0
- package/es/plugins/definition/index.js +164 -0
- package/es/plugins/definition/index.scss +4 -0
- package/es/plugins/download/index.css +13 -0
- package/es/plugins/download/index.d.ts +31 -0
- package/es/plugins/download/index.js +107 -0
- package/es/plugins/download/index.scss +22 -0
- package/es/plugins/dynamicBg/index.css +16 -0
- package/es/plugins/dynamicBg/index.d.ts +83 -0
- package/es/plugins/dynamicBg/index.js +316 -0
- package/es/plugins/dynamicBg/index.scss +19 -0
- package/es/plugins/enter/index.css +104 -0
- package/es/plugins/enter/index.d.ts +19 -0
- package/es/plugins/enter/index.js +46 -0
- package/es/plugins/enter/index.scss +78 -0
- package/es/plugins/error/index.css +29 -0
- package/es/plugins/error/index.d.ts +8 -0
- package/es/plugins/error/index.js +75 -0
- package/es/plugins/error/index.scss +34 -0
- package/es/plugins/fpsDetect/index.d.ts +34 -0
- package/es/plugins/fpsDetect/index.js +149 -0
- package/es/plugins/fullscreen/backicon.d.ts +17 -0
- package/es/plugins/fullscreen/backicon.js +72 -0
- package/es/plugins/fullscreen/index.css +23 -0
- package/es/plugins/fullscreen/index.d.ts +58 -0
- package/es/plugins/fullscreen/index.js +202 -0
- package/es/plugins/fullscreen/index.scss +35 -0
- package/es/plugins/gapJump/index.d.ts +21 -0
- package/es/plugins/gapJump/index.js +142 -0
- package/es/plugins/keyboard/index.d.ts +89 -0
- package/es/plugins/keyboard/index.js +421 -0
- package/es/plugins/loading/index.css +58 -0
- package/es/plugins/loading/index.d.ts +11 -0
- package/es/plugins/loading/index.js +43 -0
- package/es/plugins/loading/index.scss +70 -0
- package/es/plugins/logger/index.d.ts +54 -0
- package/es/plugins/logger/index.js +311 -0
- package/es/plugins/miniScreen/index.css +179 -0
- package/es/plugins/miniScreen/index.d.ts +68 -0
- package/es/plugins/miniScreen/index.js +212 -0
- package/es/plugins/miniScreen/index.scss +198 -0
- package/es/plugins/miniScreen/miniScreenIcon.d.ts +11 -0
- package/es/plugins/miniScreen/miniScreenIcon.js +56 -0
- package/es/plugins/mobile/index.css +181 -0
- package/es/plugins/mobile/index.d.ts +125 -0
- package/es/plugins/mobile/index.js +631 -0
- package/es/plugins/mobile/index.scss +180 -0
- package/es/plugins/mobile/touch.d.ts +43 -0
- package/es/plugins/mobile/touch.js +214 -0
- package/es/plugins/netAdaption/index.d.ts +5 -0
- package/es/plugins/pc/index.css +3 -0
- package/es/plugins/pc/index.d.ts +14 -0
- package/es/plugins/pc/index.js +199 -0
- package/es/plugins/pc/index.scss +5 -0
- package/es/plugins/pip/index.css +12 -0
- package/es/plugins/pip/index.d.ts +37 -0
- package/es/plugins/pip/index.js +222 -0
- package/es/plugins/pip/index.scss +21 -0
- package/es/plugins/play/index.css +12 -0
- package/es/plugins/play/index.d.ts +23 -0
- package/es/plugins/play/index.js +127 -0
- package/es/plugins/play/index.scss +18 -0
- package/es/plugins/playNext/index.css +22 -0
- package/es/plugins/playNext/index.d.ts +19 -0
- package/es/plugins/playNext/index.js +104 -0
- package/es/plugins/playNext/index.scss +35 -0
- package/es/plugins/playbackRate/index.css +4 -0
- package/es/plugins/playbackRate/index.d.ts +31 -0
- package/es/plugins/playbackRate/index.js +140 -0
- package/es/plugins/playbackRate/index.scss +6 -0
- package/es/plugins/poster/index.css +39 -0
- package/es/plugins/poster/index.d.ts +27 -0
- package/es/plugins/poster/index.js +109 -0
- package/es/plugins/poster/index.scss +56 -0
- package/es/plugins/progress/index.css +234 -0
- package/es/plugins/progress/index.d.ts +178 -0
- package/es/plugins/progress/index.js +687 -0
- package/es/plugins/progress/index.scss +288 -0
- package/es/plugins/progress/innerList.d.ts +49 -0
- package/es/plugins/progress/innerList.js +285 -0
- package/es/plugins/progress/miniProgress.d.ts +9 -0
- package/es/plugins/progress/miniProgress.js +55 -0
- package/es/plugins/progressPreview/dotsApi.d.ts +1 -0
- package/es/plugins/progressPreview/dotsApi.js +269 -0
- package/es/plugins/progressPreview/index.css +190 -0
- package/es/plugins/progressPreview/index.d.ts +87 -0
- package/es/plugins/progressPreview/index.js +475 -0
- package/es/plugins/progressPreview/index.scss +235 -0
- package/es/plugins/prompt/index.css +47 -0
- package/es/plugins/prompt/index.d.ts +24 -0
- package/es/plugins/prompt/index.js +110 -0
- package/es/plugins/prompt/index.scss +53 -0
- package/es/plugins/replay/index.css +33 -0
- package/es/plugins/replay/index.d.ts +16 -0
- package/es/plugins/replay/index.js +109 -0
- package/es/plugins/replay/index.scss +41 -0
- package/es/plugins/rotate/index.css +0 -0
- package/es/plugins/rotate/index.d.ts +22 -0
- package/es/plugins/rotate/index.js +148 -0
- package/es/plugins/rotate/index.scss +0 -0
- package/es/plugins/rotate/index2.js +2 -0
- package/es/plugins/screenShot/index.css +3 -0
- package/es/plugins/screenShot/index.d.ts +30 -0
- package/es/plugins/screenShot/index.js +178 -0
- package/es/plugins/screenShot/index.scss +5 -0
- package/es/plugins/start/index.css +91 -0
- package/es/plugins/start/index.d.ts +41 -0
- package/es/plugins/start/index.js +267 -0
- package/es/plugins/start/index.scss +115 -0
- package/es/plugins/stats/index.d.ts +38 -0
- package/es/plugins/stats/index.js +194 -0
- package/es/plugins/testspeed/index.d.ts +26 -0
- package/es/plugins/testspeed/index.js +207 -0
- package/es/plugins/time/index.css +46 -0
- package/es/plugins/time/index.d.ts +28 -0
- package/es/plugins/time/index.js +225 -0
- package/es/plugins/time/index.scss +57 -0
- package/es/plugins/time/timesegments.d.ts +24 -0
- package/es/plugins/time/timesegments.js +216 -0
- package/es/plugins/track/index.css +91 -0
- package/es/plugins/track/index.d.ts +132 -0
- package/es/plugins/track/index.js +463 -0
- package/es/plugins/track/index.scss +111 -0
- package/es/plugins/track/nativeSubTitle.d.ts +22 -0
- package/es/plugins/track/nativeSubTitle.js +94 -0
- package/es/plugins/volume/index.css +95 -0
- package/es/plugins/volume/index.d.ts +88 -0
- package/es/plugins/volume/index.js +319 -0
- package/es/plugins/volume/index.scss +124 -0
- package/es/plugins/waitingTimeoutJump/index.d.ts +15 -0
- package/es/plugins/waitingTimeoutJump/index.js +88 -0
- package/es/presets/default-en.d.ts +33 -0
- package/es/presets/default-en.js +63 -0
- package/es/presets/default.d.ts +34 -0
- package/es/presets/default.js +70 -0
- package/es/presets/index.d.ts +4 -0
- package/es/presets/live.d.ts +94 -0
- package/es/presets/live.js +39 -0
- package/es/presets/mobile.d.ts +103 -0
- package/es/presets/mobile.js +34 -0
- package/es/simple_player.js +1 -1
- package/es/simple_player.js.map +1 -1
- package/es/state.d.ts +11 -0
- package/es/state.js +12 -0
- package/es/stateClassMap.d.ts +32 -0
- package/es/stateClassMap.js +32 -0
- package/es/style/common/animation.scss +16 -0
- package/es/style/common/svg-url.scss +70 -0
- package/es/style/common.scss +457 -0
- package/es/style/index.scss +4 -0
- package/es/style/variable.scss +76 -0
- package/es/utils/database.d.ts +31 -0
- package/es/utils/database.js +107 -0
- package/es/utils/debug.d.ts +10 -0
- package/es/utils/debug.js +43 -0
- package/es/utils/draggabilly.d.ts +54 -0
- package/es/utils/draggabilly.js +410 -0
- package/es/utils/sniffer.d.ts +28 -0
- package/es/utils/sniffer.js +150 -0
- package/es/utils/url.d.ts +1 -0
- package/es/utils/util.d.ts +304 -0
- package/es/utils/util.js +827 -0
- package/es/utils/xgplayerTimeRange.d.ts +7 -0
- package/es/utils/xgplayerTimeRange.js +25 -0
- package/es/version.d.ts +2 -0
- package/es/version.js +2 -0
- package/package.json +2 -3
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export type Player = import('../player').default;
|
|
2
|
+
export type IPluginOptions = {
|
|
3
|
+
[propName: string]: any;
|
|
4
|
+
index?: number;
|
|
5
|
+
player: Player;
|
|
6
|
+
pluginName: string;
|
|
7
|
+
config: {
|
|
8
|
+
[propName: string]: any;
|
|
9
|
+
};
|
|
10
|
+
root?: HTMLElement;
|
|
11
|
+
position?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @typedef { import ('../player').default } Player
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {{
|
|
18
|
+
* index?: number,
|
|
19
|
+
* player: Player,
|
|
20
|
+
* pluginName: string,
|
|
21
|
+
* config: {
|
|
22
|
+
* [propName: string]: any
|
|
23
|
+
* },
|
|
24
|
+
* root?: HTMLElement,
|
|
25
|
+
* position?: string,
|
|
26
|
+
* [propName: string]: any
|
|
27
|
+
* }} IPluginOptions
|
|
28
|
+
*/
|
|
29
|
+
declare class Plugin extends BasePlugin {
|
|
30
|
+
/**
|
|
31
|
+
* 插入dom结构
|
|
32
|
+
* @param { String | HTMLElement } html html字符串或者dom
|
|
33
|
+
* @param { HTMLElement } parent
|
|
34
|
+
* @param { number } index
|
|
35
|
+
* @returns { HTMLElement }
|
|
36
|
+
*/
|
|
37
|
+
static insert(html: string | HTMLElement, parent: HTMLElement, index?: number): HTMLElement;
|
|
38
|
+
static get defaultConfig(): {};
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param { HTMLElement } root
|
|
42
|
+
* @param { String } querySelector
|
|
43
|
+
* @param { String | Array<String> } eventType
|
|
44
|
+
* @param { Function } callback
|
|
45
|
+
* @param { boolean } [capture=false]
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
static delegate(root: HTMLElement, querySelector: string, eventType: string | Array<string>, callback: Function, capture?: boolean): any[];
|
|
49
|
+
static get ROOT_TYPES(): {
|
|
50
|
+
CONTROLS: string;
|
|
51
|
+
ROOT: string;
|
|
52
|
+
};
|
|
53
|
+
static get POSITIONS(): {
|
|
54
|
+
ROOT: string;
|
|
55
|
+
ROOT_LEFT: string;
|
|
56
|
+
ROOT_RIGHT: string;
|
|
57
|
+
ROOT_TOP: string;
|
|
58
|
+
CONTROLS_LEFT: string;
|
|
59
|
+
CONTROLS_RIGTH: string;
|
|
60
|
+
CONTROLS_RIGHT: string;
|
|
61
|
+
CONTROLS_CENTER: string;
|
|
62
|
+
CONTROLS: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @param { IPluginOptions } args
|
|
66
|
+
*/
|
|
67
|
+
constructor(args?: IPluginOptions);
|
|
68
|
+
/**
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
private __delegates;
|
|
72
|
+
/**
|
|
73
|
+
* @private
|
|
74
|
+
*/
|
|
75
|
+
private __init;
|
|
76
|
+
/**
|
|
77
|
+
* @readonly
|
|
78
|
+
*/
|
|
79
|
+
readonly icons: {};
|
|
80
|
+
/**
|
|
81
|
+
* @readonly
|
|
82
|
+
* @type { HTMLElement }
|
|
83
|
+
*/
|
|
84
|
+
readonly root: HTMLElement;
|
|
85
|
+
/**
|
|
86
|
+
* @readonly
|
|
87
|
+
* @type { HTMLElement }
|
|
88
|
+
*/
|
|
89
|
+
readonly parent: HTMLElement;
|
|
90
|
+
/**
|
|
91
|
+
* @readonly
|
|
92
|
+
*/
|
|
93
|
+
readonly langText: {};
|
|
94
|
+
/**
|
|
95
|
+
* @private
|
|
96
|
+
*/
|
|
97
|
+
private __registerChildren;
|
|
98
|
+
/**
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
private _children;
|
|
102
|
+
updateLang(lang: any): void;
|
|
103
|
+
changeLangTextKey(dom: any, key?: string): void;
|
|
104
|
+
plugins(): any[];
|
|
105
|
+
children(): {};
|
|
106
|
+
registerPlugin(plugin: any, options?: {}, name?: string): any;
|
|
107
|
+
registerIcons(): {};
|
|
108
|
+
registerLanguageTexts(): {};
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @param { string } qs
|
|
112
|
+
* @returns { HTMLElement | null }
|
|
113
|
+
*/
|
|
114
|
+
find(qs: string): HTMLElement | null;
|
|
115
|
+
/**
|
|
116
|
+
* 绑定事件
|
|
117
|
+
* @param { string | Array<string> } querySelector
|
|
118
|
+
* @param { string | Array<string> | Function } eventType
|
|
119
|
+
* @param { Function } [callback]
|
|
120
|
+
*/
|
|
121
|
+
bind(querySelector: string | Array<string>, eventType: string | Array<string> | Function, callback?: Function, ...args: any[]): void;
|
|
122
|
+
/**
|
|
123
|
+
* 绑定事件
|
|
124
|
+
* @param { string | Array<string> } querySelector
|
|
125
|
+
* @param { string | Array<string> | Function } eventType
|
|
126
|
+
*/
|
|
127
|
+
unbind(querySelector: string | Array<string>, eventType: string | Array<string> | Function, ...args: any[]): void;
|
|
128
|
+
/**
|
|
129
|
+
* 给插件设置样式
|
|
130
|
+
* @param { string | {[propName: string]: any} } name
|
|
131
|
+
* @param { ? | any } value
|
|
132
|
+
* @returns
|
|
133
|
+
*/
|
|
134
|
+
setStyle(name: string | {
|
|
135
|
+
[propName: string]: any;
|
|
136
|
+
}, value: any): any;
|
|
137
|
+
/**
|
|
138
|
+
* 给插件根节点设置属性
|
|
139
|
+
* @param { string | {[propName: string]: any} } name
|
|
140
|
+
* @param { ? | any } value
|
|
141
|
+
* @returns
|
|
142
|
+
*/
|
|
143
|
+
setAttr(name: string | {
|
|
144
|
+
[propName: string]: any;
|
|
145
|
+
}, value: any): void;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @param { string } htmlStr
|
|
149
|
+
* @param { Function } [callback]
|
|
150
|
+
* @returns
|
|
151
|
+
*/
|
|
152
|
+
setHtml(htmlStr: string, callback?: Function): void;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @param { string } event
|
|
156
|
+
* @param { Function } eventHandle
|
|
157
|
+
* @param { boolean } [isBubble=false]
|
|
158
|
+
* @returns
|
|
159
|
+
*/
|
|
160
|
+
bindEL(event: string, eventHandle: Function, isBubble?: boolean): void;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @param { string } event
|
|
164
|
+
* @param { Function } eventHandle
|
|
165
|
+
* @param { boolean } [isBubble]
|
|
166
|
+
* @returns
|
|
167
|
+
*/
|
|
168
|
+
unbindEL(event: string, eventHandle: Function, isBubble?: boolean): void;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @param { string } [value]
|
|
172
|
+
* @returns
|
|
173
|
+
*/
|
|
174
|
+
show(value?: string): string;
|
|
175
|
+
hide(): void;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @param { string | HTMLElement } pdom
|
|
179
|
+
* @param { HTMLElement} child
|
|
180
|
+
* @returns { HTMLElement | null }
|
|
181
|
+
*/
|
|
182
|
+
appendChild(pdom: string | HTMLElement, child: HTMLElement, ...args: any[]): HTMLElement | null;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @returns { string | HTMLElement }
|
|
186
|
+
*/
|
|
187
|
+
render(): string | HTMLElement;
|
|
188
|
+
}
|
|
189
|
+
export namespace ROOT_TYPES {
|
|
190
|
+
const CONTROLS: string;
|
|
191
|
+
const ROOT: string;
|
|
192
|
+
}
|
|
193
|
+
export namespace POSITIONS {
|
|
194
|
+
const ROOT_1: string;
|
|
195
|
+
export { ROOT_1 as ROOT };
|
|
196
|
+
export const ROOT_LEFT: string;
|
|
197
|
+
export const ROOT_RIGHT: string;
|
|
198
|
+
export const ROOT_TOP: string;
|
|
199
|
+
export const CONTROLS_LEFT: string;
|
|
200
|
+
export const CONTROLS_RIGTH: string;
|
|
201
|
+
export const CONTROLS_RIGHT: string;
|
|
202
|
+
export const CONTROLS_CENTER: string;
|
|
203
|
+
const CONTROLS_1: string;
|
|
204
|
+
export { CONTROLS_1 as CONTROLS };
|
|
205
|
+
}
|
|
206
|
+
import BasePlugin from "./basePlugin";
|
|
207
|
+
export { Plugin as default };
|