@shijiu/jsview-vue 2.1.476-test.0 → 2.2.35
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/bin/browser/BrowserTextureAnim.vue.mjs +8 -1
- package/bin/jsview-vue.mjs +340 -127
- package/bin/types/JsViewEngineWidget/CheckType.d.ts +3 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +102 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +88 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +10 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +14 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +21 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +48 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +17 -0
- package/bin/types/JsViewEngineWidget/RangeModel.d.ts +162 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +37 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +58 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +15 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +97 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +22 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +137 -0
- package/bin/types/JsViewEngineWidget/index.d.ts +6 -0
- package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +42 -0
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +208 -0
- package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +8 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +17 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/index.d.ts +3 -0
- package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +6 -0
- package/bin/types/JsViewVueTools/DebugTool.d.ts +8 -0
- package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +10 -0
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +2 -0
- package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +14 -0
- package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -0
- package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +16 -0
- package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +40 -0
- package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +27 -0
- package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +223 -0
- package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +31 -0
- package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +37 -0
- package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +95 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +75 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +24 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +10 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +15 -0
- package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +21 -0
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +2 -0
- package/bin/types/JsViewVueTools/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +31 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +33 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +50 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/bin/types/{jsview-vue-common.d.mts → JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts} +12 -13
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +51 -0
- package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +168 -0
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +36 -0
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +210 -0
- package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +83 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +68 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +145 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +40 -0
- package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +31 -0
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +209 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +97 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +151 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +107 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +84 -0
- package/bin/types/JsViewVueWidget/index.d.ts +37 -0
- package/bin/types/index.d.ts +4 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/tools/config/tsconfig.json +6 -6
- package/tools/jsview-vue-build.mjs +13 -4
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +8 -4
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +19 -5
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +317 -151
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +3 -3
- package/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +21 -21
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +4 -4
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +10 -10
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +6 -6
- package/utils/JsViewEngineWidget/WidgetCommon.ts +18 -2
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +2 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +7 -3
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +4 -2
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +26 -0
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +1 -1
- package/utils/JsViewVueWidget/JsvMindMap/rtree.js +1 -1
- package/utils/JsViewVueWidget/JsvTextBox.vue +14 -2
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +18 -3
- package/bin/types/browser/BrowserApic.vue.d.mts +0 -33
- package/bin/types/browser/BrowserApic2.vue.d.mts +0 -16
- package/bin/types/browser/BrowserApicLib.d.mts +0 -56
- package/bin/types/browser/BrowserAudio.vue.d.mts +0 -2
- package/bin/types/browser/BrowserJsvLatex.vue.d.mts +0 -55
- package/bin/types/browser/BrowserPreload.vue.d.mts +0 -14
- package/bin/types/browser/BrowserQrcode.vue.d.mts +0 -29
- package/bin/types/browser/BrowserSpray.vue.d.mts +0 -2
- package/bin/types/browser/BrowserTextureAnim.vue.d.mts +0 -2
- package/bin/types/export-sfc.d.mts +0 -2
- package/bin/types/jsview-vue.d.mts +0 -2511
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default JsvAccount;
|
|
2
|
+
declare class JsvAccount {
|
|
3
|
+
/**
|
|
4
|
+
* 构造函数
|
|
5
|
+
* @param {function} callback,插件初始化结果,如果返回的结果为"success",表示成功,否则表示失败。
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
constructor(callback: Function);
|
|
9
|
+
/**
|
|
10
|
+
* 注册登陆状态变化通知函数
|
|
11
|
+
* @param {function} callback,通知函数
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
registerLoginLogoutCallback(callback: Function): void;
|
|
15
|
+
/**
|
|
16
|
+
* 注销登陆状态变化通知函数
|
|
17
|
+
* @param {function} callback,通知函数
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
unRegisterLoginLogoutCallback(callback: Function): void;
|
|
21
|
+
/**
|
|
22
|
+
* 获取账号信息
|
|
23
|
+
* @returns {string} json数据结构,账号信息
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
getAccountInfo(): string;
|
|
27
|
+
/**
|
|
28
|
+
* 打开登陆界面
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
startLoginPage(): void;
|
|
32
|
+
/**
|
|
33
|
+
* 打开用户信息界面,不可用
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
startUserDetailsPage(): void;
|
|
37
|
+
/**
|
|
38
|
+
* 打开用户中心界面,不可用
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
startUserCenterPage(): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
onRef: {
|
|
3
|
+
type: FunctionConstructor;
|
|
4
|
+
default: () => void;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
audioRef: null;
|
|
8
|
+
}, any, {}, {
|
|
9
|
+
onRefProxy(audio_ref: any): void;
|
|
10
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
onRef: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
default: () => void;
|
|
14
|
+
};
|
|
15
|
+
}>>, {
|
|
16
|
+
onRef: Function;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* 回调函数,播放器对象通知接口
|
|
4
|
+
* @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
|
|
5
|
+
*/
|
|
6
|
+
onRef: {
|
|
7
|
+
type: FunctionConstructor;
|
|
8
|
+
default: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 属性,Boolean类型,true表示自动播放,默认false。
|
|
12
|
+
*/
|
|
13
|
+
autoplay: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 属性,Boolean类型,true表示静音,默认false。
|
|
19
|
+
*/
|
|
20
|
+
muted: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 属性,Boolean类型,true表示循环播放,默认false。
|
|
26
|
+
*/
|
|
27
|
+
loop: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 属性,String类型,播放地址。
|
|
33
|
+
*/
|
|
34
|
+
src: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 回调函数,播放结束时通过此回调接口通知。
|
|
40
|
+
*/
|
|
41
|
+
onEnded: {
|
|
42
|
+
type: FunctionConstructor;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 回调函数,播放错误时通过此接口通知。
|
|
47
|
+
* @param {int} 错误类型,当前定义了四种错误。1是异常中断;2是网络错误;3是解码错误;4是格式不支持。
|
|
48
|
+
*/
|
|
49
|
+
onError: {
|
|
50
|
+
type: FunctionConstructor;
|
|
51
|
+
default: () => {};
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 回调函数,开始加载,设置完播放地址后,上报此事件。
|
|
55
|
+
*/
|
|
56
|
+
onLoadStart: {
|
|
57
|
+
type: FunctionConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 回调函数,视频准备好后触发。
|
|
62
|
+
*/
|
|
63
|
+
onLoadedMetaData: {
|
|
64
|
+
type: FunctionConstructor;
|
|
65
|
+
default: () => {};
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* 回调函数,视频准备好后触发,这个时候可以正常seek。
|
|
69
|
+
*/
|
|
70
|
+
onLoad: {
|
|
71
|
+
type: FunctionConstructor;
|
|
72
|
+
default: () => {};
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* 回调函数,音频失去焦点后触发此事件,可能会导致pause(点播)或者离开频道(直播)。
|
|
76
|
+
*/
|
|
77
|
+
onAudioFocusLoss: {
|
|
78
|
+
type: FunctionConstructor;
|
|
79
|
+
default: () => {};
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* 回调函数,音频获取焦点后触发此事件,可能会触发resume(点播)或者加入频道(直播)。
|
|
83
|
+
*/
|
|
84
|
+
onAudioFocusGain: {
|
|
85
|
+
type: FunctionConstructor;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
preDownload: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
}, {
|
|
93
|
+
audio: null;
|
|
94
|
+
}, any, {}, {
|
|
95
|
+
registerEvent(): void;
|
|
96
|
+
onVisibilityChange(status: any): void;
|
|
97
|
+
registerOnVisibilityChange(): void;
|
|
98
|
+
unregisterOnVisibilityChange(): void;
|
|
99
|
+
onJsViewHide(): void;
|
|
100
|
+
onJsViewShow(): void;
|
|
101
|
+
Jsvinit(): void;
|
|
102
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
+
/**
|
|
104
|
+
* 回调函数,播放器对象通知接口
|
|
105
|
+
* @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
|
|
106
|
+
*/
|
|
107
|
+
onRef: {
|
|
108
|
+
type: FunctionConstructor;
|
|
109
|
+
default: () => void;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* 属性,Boolean类型,true表示自动播放,默认false。
|
|
113
|
+
*/
|
|
114
|
+
autoplay: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* 属性,Boolean类型,true表示静音,默认false。
|
|
120
|
+
*/
|
|
121
|
+
muted: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* 属性,Boolean类型,true表示循环播放,默认false。
|
|
127
|
+
*/
|
|
128
|
+
loop: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* 属性,String类型,播放地址。
|
|
134
|
+
*/
|
|
135
|
+
src: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* 回调函数,播放结束时通过此回调接口通知。
|
|
141
|
+
*/
|
|
142
|
+
onEnded: {
|
|
143
|
+
type: FunctionConstructor;
|
|
144
|
+
default: () => {};
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* 回调函数,播放错误时通过此接口通知。
|
|
148
|
+
* @param {int} 错误类型,当前定义了四种错误。1是异常中断;2是网络错误;3是解码错误;4是格式不支持。
|
|
149
|
+
*/
|
|
150
|
+
onError: {
|
|
151
|
+
type: FunctionConstructor;
|
|
152
|
+
default: () => {};
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* 回调函数,开始加载,设置完播放地址后,上报此事件。
|
|
156
|
+
*/
|
|
157
|
+
onLoadStart: {
|
|
158
|
+
type: FunctionConstructor;
|
|
159
|
+
default: () => {};
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* 回调函数,视频准备好后触发。
|
|
163
|
+
*/
|
|
164
|
+
onLoadedMetaData: {
|
|
165
|
+
type: FunctionConstructor;
|
|
166
|
+
default: () => {};
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* 回调函数,视频准备好后触发,这个时候可以正常seek。
|
|
170
|
+
*/
|
|
171
|
+
onLoad: {
|
|
172
|
+
type: FunctionConstructor;
|
|
173
|
+
default: () => {};
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* 回调函数,音频失去焦点后触发此事件,可能会导致pause(点播)或者离开频道(直播)。
|
|
177
|
+
*/
|
|
178
|
+
onAudioFocusLoss: {
|
|
179
|
+
type: FunctionConstructor;
|
|
180
|
+
default: () => {};
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* 回调函数,音频获取焦点后触发此事件,可能会触发resume(点播)或者加入频道(直播)。
|
|
184
|
+
*/
|
|
185
|
+
onAudioFocusGain: {
|
|
186
|
+
type: FunctionConstructor;
|
|
187
|
+
default: () => {};
|
|
188
|
+
};
|
|
189
|
+
preDownload: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
}>>, {
|
|
194
|
+
onError: Function;
|
|
195
|
+
onLoad: Function;
|
|
196
|
+
onEnded: Function;
|
|
197
|
+
src: string;
|
|
198
|
+
autoplay: boolean;
|
|
199
|
+
loop: boolean;
|
|
200
|
+
muted: boolean;
|
|
201
|
+
onLoadStart: Function;
|
|
202
|
+
onAudioFocusGain: Function;
|
|
203
|
+
onAudioFocusLoss: Function;
|
|
204
|
+
onRef: Function;
|
|
205
|
+
onLoadedMetaData: Function;
|
|
206
|
+
preDownload: boolean;
|
|
207
|
+
}>;
|
|
208
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const EVENT_EXT: string;
|
|
3
|
+
const EVENT_LOAD_START: string;
|
|
4
|
+
const EVENT_LOAD: string;
|
|
5
|
+
const EVENT_ERROR: string;
|
|
6
|
+
const EVENT_PROGRESS: string;
|
|
7
|
+
const EVENT_END: string;
|
|
8
|
+
const EVENT_PAUSE: string;
|
|
9
|
+
const EVENT_PLAY: string;
|
|
10
|
+
const EVENT_AUDIO_FOCUS_GAIN: string;
|
|
11
|
+
const EVENT_AUDIO_FOCUS_LOSS: string;
|
|
12
|
+
}
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
$props: {
|
|
3
|
+
readonly onError?: Function | undefined;
|
|
4
|
+
readonly onLoad?: Function | undefined;
|
|
5
|
+
readonly onEnded?: Function | undefined;
|
|
6
|
+
readonly src?: string | undefined;
|
|
7
|
+
readonly autoplay?: boolean | undefined;
|
|
8
|
+
readonly loop?: boolean | undefined;
|
|
9
|
+
readonly muted?: boolean | undefined;
|
|
10
|
+
readonly onLoadStart?: Function | undefined;
|
|
11
|
+
readonly onAudioFocusGain?: Function | undefined;
|
|
12
|
+
readonly onAudioFocusLoss?: Function | undefined;
|
|
13
|
+
readonly onRef?: Function | undefined;
|
|
14
|
+
readonly playerKey?: string | undefined;
|
|
15
|
+
readonly onLoadedMetaData?: Function | undefined;
|
|
16
|
+
};
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default class _default {
|
|
2
|
+
static isReady(): boolean;
|
|
3
|
+
static CreateAudio(key: any): any;
|
|
4
|
+
static ReleasePlayer(key: any): any;
|
|
5
|
+
static GetProperty(key: any, name: any): any;
|
|
6
|
+
static SetProperty(key: any, params: any): any;
|
|
7
|
+
static ScreenWakeLock(lock: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function GetPluginLoader(): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const packageName: string;
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const version: string;
|
|
4
|
+
export const versionCodeMin: number;
|
|
5
|
+
export const versionCodeMax: number;
|
|
6
|
+
export const bridgeName: string;
|
|
7
|
+
export const className: string;
|
|
8
|
+
export const initMethod: string;
|
|
9
|
+
export const listener: string;
|
|
10
|
+
export const listener2: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getHtmlStr(libPath: any, latexStr: any, fontSize: any, width: any, height: any, color: any): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
$props: {
|
|
3
|
+
readonly height?: number | undefined;
|
|
4
|
+
readonly width?: number | undefined;
|
|
5
|
+
readonly left?: number | undefined;
|
|
6
|
+
readonly top?: number | undefined;
|
|
7
|
+
readonly color?: string | undefined;
|
|
8
|
+
readonly fontSize?: number | undefined;
|
|
9
|
+
readonly latexStr?: string | undefined;
|
|
10
|
+
readonly lineSpace?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cssColor2Android: (cssColor: string) => number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
getClientSize: () => {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
};
|
|
6
|
+
$props: {
|
|
7
|
+
readonly height?: number | undefined;
|
|
8
|
+
readonly width?: number | undefined;
|
|
9
|
+
readonly left?: number | undefined;
|
|
10
|
+
readonly top?: number | undefined;
|
|
11
|
+
readonly color?: string | undefined;
|
|
12
|
+
readonly fontSize?: number | undefined;
|
|
13
|
+
readonly latexStr?: string | undefined;
|
|
14
|
+
readonly lineSpace?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function GetPluginLoader(): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const packageName: string;
|
|
2
|
+
export const name: string;
|
|
3
|
+
export const version: string;
|
|
4
|
+
export const versionCodeMin: number;
|
|
5
|
+
export const versionCodeMax: number;
|
|
6
|
+
export const bridgeName: string;
|
|
7
|
+
export const className: string;
|
|
8
|
+
export const initMethod: string;
|
|
9
|
+
export const listener: string;
|
|
10
|
+
export const listener2: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by donglin.lu@qcast.cn on 11/13/2020.
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
* 【模块 export 内容】
|
|
6
|
+
* CssStyleSheet:面向对象类,CSS rule的操作器,用于添加和删除CssStyle,服务于JsvStyleClass
|
|
7
|
+
* 接口:
|
|
8
|
+
* insertRule {String} 将传入的Css rule对象插入到CSS列表中,
|
|
9
|
+
* 请保证不要和其他css rule重名,重名场合以最后一个为准
|
|
10
|
+
* removeRule {String} 从CSS列表中删除指定名字的css rule
|
|
11
|
+
* removeMultiRules {String[]} 从CSS列表中删除复数个css rule
|
|
12
|
+
* getCssStyleSheet: 函数,获取 _StyleSheet 实例的函数,可接受一个参数anchor_tag,用来定位CSS rule的群组
|
|
13
|
+
*/
|
|
14
|
+
export function getCssStyleGroup(): null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by donglin.lu@qcast.cn on 11/13/2020.
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
* 【模块 export 内容】
|
|
6
|
+
* getKeyFramesGroup: 函数,获取KeyFrame操作类 KeyFrameStyleSheet
|
|
7
|
+
* KeyFrameStyleSheet:面向对象类,KeyFrames CSS rule的操作类,用于添加和删除KeyFrame
|
|
8
|
+
* 功能函数:(参数说明见函数本体)
|
|
9
|
+
* insertRule(key_frame_string) 动态添加keyFrame
|
|
10
|
+
* removeRule(name) 动态删除keyFrame
|
|
11
|
+
* removeMultiRules(names_array) 批量动态删除keyFrame
|
|
12
|
+
* hasRule(name) 查询KeyFrame是否存在
|
|
13
|
+
*/
|
|
14
|
+
/*
|
|
15
|
+
* getKeyFramesGroup 参数说明:
|
|
16
|
+
* anchor_tag (String) keyFrame的名称,可以不设置或者为undefined
|
|
17
|
+
* 返回值:
|
|
18
|
+
* KeyFrameStyleSheet 以anchor_tag为锚点,找到对应的cssRule,以此cssRule创建出的KeyFrame管理句柄
|
|
19
|
+
*/
|
|
20
|
+
declare function getKeyFramesGroup(anchor_tag: string | null): any;
|
|
21
|
+
export { getKeyFramesGroup, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function jsvCreateHashHistory(base: any): JsvHashHistory;
|
|
2
|
+
declare class JsvHashHistory {
|
|
3
|
+
constructor(base: any);
|
|
4
|
+
get location(): string;
|
|
5
|
+
get state(): import("vue-router").HistoryState;
|
|
6
|
+
get base(): string;
|
|
7
|
+
createHref(location: any): string;
|
|
8
|
+
listen(callback: any): () => void;
|
|
9
|
+
replace(to: any, data: any): void;
|
|
10
|
+
push(to: any, data: any): void;
|
|
11
|
+
go(delta: any, triggerListeners: any): void;
|
|
12
|
+
destroy(): void;
|
|
13
|
+
baseURL: string | undefined;
|
|
14
|
+
#private;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* createImpactCallback 参数说明:
|
|
3
|
+
* on_contact (function[]) 接受碰撞事件的回调
|
|
4
|
+
* on_dis_contact (function[]) 接受物体分离事件的回调
|
|
5
|
+
* 返回值:
|
|
6
|
+
* Object 句柄,用于传输给 createImpactTracer
|
|
7
|
+
*/
|
|
8
|
+
export function createImpactCallback(on_contact: any, on_dis_contact: any): any;
|
|
9
|
+
/*
|
|
10
|
+
* createImpactTracer 参数说明:
|
|
11
|
+
* ele1 (Element) html element句柄,1号碰撞体
|
|
12
|
+
* ele2 (Element) html element句柄,2号碰撞体
|
|
13
|
+
* callback (Object) 由 createImpactCallback 创建的回调构造体句柄
|
|
14
|
+
* auto_froze (Object) 由 createImpactAutoFroze 创建的碰撞即停构造体句柄
|
|
15
|
+
* 返回值:
|
|
16
|
+
* Object 句柄,提供 Recycle() 函数用于停止碰撞检测,需要再componentWillUnmount进行调用(清理)
|
|
17
|
+
*/
|
|
18
|
+
export function createImpactTracer(ele1: any, ele2: any, callback: any, auto_froze: any): any;
|
|
19
|
+
/*
|
|
20
|
+
* createImpactAutoFroze 参数说明:
|
|
21
|
+
* element_auto_froze_pre_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞前一帧停止运动
|
|
22
|
+
* element_auto_froze_on_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞当前帧停止运动
|
|
23
|
+
* 返回值:
|
|
24
|
+
* Object 句柄,用于传输给 createImpactTracer,也用于 updateImpactAutoFroze 调整关联元素
|
|
25
|
+
*
|
|
26
|
+
* 【注意点】
|
|
27
|
+
* 多个碰撞对可以共享同一个碰撞管理对象,并且建议共享同一个对象以提升效率
|
|
28
|
+
* 该管理对象中的view的列表可以通过 updateImpactAutoFrozeHandler进行更新,
|
|
29
|
+
* 更新后立刻在对所有的共享此管理对象的碰撞对中生效
|
|
30
|
+
*/
|
|
31
|
+
export function createImpactAutoFroze(element_auto_froze_pre_impact: any, element_auto_froze_on_impact: any): any;
|
|
32
|
+
/*
|
|
33
|
+
* updateImpactAutoFroze 参数说明:
|
|
34
|
+
* handler (Object) 由 createImpactAutoFroze 创建的句柄
|
|
35
|
+
* element_auto_froze_pre_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞前一帧停止运动
|
|
36
|
+
* element_auto_froze_on_impact (Array<Element>) 关联运动元素的列表,这些元素碰撞当前帧停止运动
|
|
37
|
+
* 返回值:
|
|
38
|
+
* 无
|
|
39
|
+
*/
|
|
40
|
+
export function updateImpactAutoFroze(handler: any, element_auto_froze_pre_impact: any, element_auto_froze_on_impact: any): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default buildTaker;
|
|
2
|
+
/*
|
|
3
|
+
*******************
|
|
4
|
+
* JsvRefTaker模块
|
|
5
|
+
*
|
|
6
|
+
* 用于解决 script setup 写法,不容易通过 this.$ref.xxxx 拿到子模块的句柄,
|
|
7
|
+
* 但使用ref(null)的方式构筑的深度reactive对象又会严重影响element的内部处理性能的问题
|
|
8
|
+
*
|
|
9
|
+
* 使用方法:
|
|
10
|
+
* <script setup>
|
|
11
|
+
* const element_ref = buildTaker();
|
|
12
|
+
*
|
|
13
|
+
* onMounted(()=>{
|
|
14
|
+
* // onMounted以后,可以用 .current 访问到引用
|
|
15
|
+
* console.log(element.current)
|
|
16
|
+
* })
|
|
17
|
+
* </script>
|
|
18
|
+
*
|
|
19
|
+
* <template>
|
|
20
|
+
* <div :ref="element_ref.fnc" />
|
|
21
|
+
* </template>
|
|
22
|
+
*
|
|
23
|
+
********************/
|
|
24
|
+
declare function buildTaker(): {
|
|
25
|
+
fnc: null;
|
|
26
|
+
current: null;
|
|
27
|
+
};
|