@shijiu/jsview-vue 2.2.426-test.0 → 2.3.0
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/jsview-vue-common.mjs +1 -1
- package/bin/jsview-vue.mjs +7506 -6980
- package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +11 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +8 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +5 -0
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +24 -6
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +24 -6
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +9 -2
- package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +3 -0
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.ts +1 -0
- package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +1 -1
- package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +1 -1
- package/bin/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
- package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +1 -2
- package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +2 -2
- package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +6 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +21 -0
- package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +1 -1
- package/bin/types/utils/JsViewVueTools/index.d.ts +0 -1
- package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +120 -0
- package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +144 -0
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +50 -2
- package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +23 -2
- package/bin/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -4
- package/bin/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +78 -0
- package/bin/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +1 -0
- package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +4 -4
- package/bin/types/utils/JsViewVueWidget/JsvPosterDiv.vue.d.ts +3 -0
- package/bin/types/utils/JsViewVueWidget/JsvPosterImage.vue.d.ts +3 -0
- package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +10 -37
- package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +1 -1
- package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +3 -2
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +3 -3
- package/bin/types/utils/JsViewVueWidget/index.d.ts +2 -0
- package/package.json +1 -1
- package/utils/JsViewEngineWidget/CheckType.js +3 -3
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +25 -6
- package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +22 -3
- package/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue +22 -0
- package/utils/JsViewEngineWidget/MetroWidget/DebugTools.ts +37 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +42 -7
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +62 -10
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +205 -91
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +30 -0
- package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
- package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
- package/utils/JsViewPlugin/JsvPlayer/AckEventDefine.ts +82 -0
- package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +49 -31
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +12 -3
- package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -2
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +1 -1
- package/utils/JsViewVueTools/index.js +0 -1
- package/utils/JsViewVueWidget/Jsv3dDiv.vue +85 -0
- package/utils/JsViewVueWidget/Jsv3dStage.vue +50 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/index.js +1 -8
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/index.js +1 -8
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +1 -1
- package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +151 -0
- package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +2 -2
- package/utils/JsViewVueWidget/JsvFlexCell/index.js +1 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +8 -0
- package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +1 -1
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +0 -9
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +57 -71
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +15 -8
- package/utils/JsViewVueWidget/JsvPosterImage.vue +11 -1
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +1 -1
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +99 -61
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +48 -48
- package/utils/JsViewVueWidget/index.js +2 -0
- package/bin/browser/BrowserApic.vue.mjs +0 -114
- package/bin/browser/BrowserApic2.vue.mjs +0 -108
- package/bin/browser/BrowserApicLib.mjs +0 -431
- package/bin/types/utils/JsViewVueTools/JsvDemoTester.d.ts +0 -2
- package/utils/JsViewVueTools/JsvDemoTester.js +0 -81
|
@@ -2,11 +2,20 @@ declare const useFocusHub: (withNameSpace: any) => unknown;
|
|
|
2
2
|
export declare class JsvFocusManager {
|
|
3
3
|
private $_appMount;
|
|
4
4
|
private $_topFDiv;
|
|
5
|
-
|
|
5
|
+
private $_autoSearchFocus;
|
|
6
|
+
constructor(config: any);
|
|
6
7
|
install(app: any, ...options: any): void;
|
|
7
8
|
getCurrentFocusStack(): any;
|
|
8
9
|
$_hookMount(app: any, rootNodeId: any): (rootContainer: any) => any;
|
|
9
10
|
$_doAppMount(rootContainer: any): any;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* 创建 JsView 焦点管理器
|
|
14
|
+
*
|
|
15
|
+
* @param {Object} config: 对象设置,子参数有{
|
|
16
|
+
* autoSearchFocus{boolean}: 是否开启自动寻焦,默认为false(兼容旧代码)
|
|
17
|
+
* }
|
|
18
|
+
* @return JsvFocusManager
|
|
19
|
+
*/
|
|
20
|
+
declare function jsvCreateFocusManager(config?: Object | null): JsvFocusManager;
|
|
12
21
|
export { jsvCreateFocusManager, useFocusHub };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
$props: {
|
|
3
|
+
readonly width?: number | undefined;
|
|
4
|
+
readonly height?: number | undefined;
|
|
5
|
+
readonly sourceId?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
8
|
+
export default _default;
|
|
@@ -21,7 +21,7 @@ declare const _default: {
|
|
|
21
21
|
unlockSlide: () => void;
|
|
22
22
|
lock: (type: any) => () => void;
|
|
23
23
|
unlock: (type: any) => void;
|
|
24
|
-
refreshData: (forceUpdate:
|
|
24
|
+
refreshData: (forceUpdate: boolean, slideToFocus?: string) => void;
|
|
25
25
|
moveFocus: (direction: any) => void;
|
|
26
26
|
slideTo: (position: any, doAnim: any) => void;
|
|
27
27
|
slideToItem: (index: any, doAnim: any) => void;
|
|
@@ -44,10 +44,16 @@ declare const _default: {
|
|
|
44
44
|
top: any;
|
|
45
45
|
width: any;
|
|
46
46
|
height: any;
|
|
47
|
-
};
|
|
47
|
+
} | null;
|
|
48
48
|
setSlideSetting: (setting: any) => void;
|
|
49
49
|
cancelDelayLoad: () => void;
|
|
50
50
|
setSensorSensitivity: (sensitivity?: number) => void;
|
|
51
|
+
getItemLayoutInfo: (index: any) => {
|
|
52
|
+
left: any;
|
|
53
|
+
top: any;
|
|
54
|
+
width: any;
|
|
55
|
+
height: any;
|
|
56
|
+
} | null;
|
|
51
57
|
$props: {
|
|
52
58
|
[x: string]: any;
|
|
53
59
|
};
|
|
@@ -76,7 +82,7 @@ declare const _default: {
|
|
|
76
82
|
unlockSlide: () => void;
|
|
77
83
|
lock: (type: any) => () => void;
|
|
78
84
|
unlock: (type: any) => void;
|
|
79
|
-
refreshData: (forceUpdate:
|
|
85
|
+
refreshData: (forceUpdate: boolean, slideToFocus?: string) => void;
|
|
80
86
|
moveFocus: (direction: any) => void;
|
|
81
87
|
slideTo: (position: any, doAnim: any) => void;
|
|
82
88
|
slideToItem: (index: any, doAnim: any) => void;
|
|
@@ -99,10 +105,16 @@ declare const _default: {
|
|
|
99
105
|
top: any;
|
|
100
106
|
width: any;
|
|
101
107
|
height: any;
|
|
102
|
-
};
|
|
108
|
+
} | null;
|
|
103
109
|
setSlideSetting: (setting: any) => void;
|
|
104
110
|
cancelDelayLoad: () => void;
|
|
105
111
|
setSensorSensitivity: (sensitivity?: number) => void;
|
|
112
|
+
getItemLayoutInfo: (index: any) => {
|
|
113
|
+
left: any;
|
|
114
|
+
top: any;
|
|
115
|
+
width: any;
|
|
116
|
+
height: any;
|
|
117
|
+
} | null;
|
|
106
118
|
$props: {
|
|
107
119
|
[x: string]: any;
|
|
108
120
|
};
|
|
@@ -115,7 +127,7 @@ declare const _default: {
|
|
|
115
127
|
unlockSlide: () => void;
|
|
116
128
|
lock: (type: any) => () => void;
|
|
117
129
|
unlock: (type: any) => void;
|
|
118
|
-
refreshData: (forceUpdate:
|
|
130
|
+
refreshData: (forceUpdate: boolean, slideToFocus?: string) => void;
|
|
119
131
|
moveFocus: (direction: any) => void;
|
|
120
132
|
slideTo: (position: any, doAnim: any) => void;
|
|
121
133
|
slideToItem: (index: any, doAnim: any) => void;
|
|
@@ -138,10 +150,16 @@ declare const _default: {
|
|
|
138
150
|
top: any;
|
|
139
151
|
width: any;
|
|
140
152
|
height: any;
|
|
141
|
-
};
|
|
153
|
+
} | null;
|
|
142
154
|
setSlideSetting: (setting: any) => void;
|
|
143
155
|
cancelDelayLoad: () => void;
|
|
144
156
|
setSensorSensitivity: (sensitivity?: number) => void;
|
|
157
|
+
getItemLayoutInfo: (index: any) => {
|
|
158
|
+
left: any;
|
|
159
|
+
top: any;
|
|
160
|
+
width: any;
|
|
161
|
+
height: any;
|
|
162
|
+
} | null;
|
|
145
163
|
$props: {
|
|
146
164
|
[x: string]: any;
|
|
147
165
|
};
|
|
@@ -21,7 +21,7 @@ declare const _default: {
|
|
|
21
21
|
unlockSlide: () => void;
|
|
22
22
|
lock: (type: any) => () => void;
|
|
23
23
|
unlock: (type: any) => void;
|
|
24
|
-
refreshData: (forceUpdate:
|
|
24
|
+
refreshData: (forceUpdate: boolean, slideToFocus?: string) => void;
|
|
25
25
|
moveFocus: (direction: any) => void;
|
|
26
26
|
slideTo: (position: any, doAnim: any) => void;
|
|
27
27
|
slideToItem: (index: any, doAnim: any) => void;
|
|
@@ -44,10 +44,16 @@ declare const _default: {
|
|
|
44
44
|
top: any;
|
|
45
45
|
width: any;
|
|
46
46
|
height: any;
|
|
47
|
-
};
|
|
47
|
+
} | null;
|
|
48
48
|
setSlideSetting: (setting: any) => void;
|
|
49
49
|
cancelDelayLoad: () => void;
|
|
50
50
|
setSensorSensitivity: (sensitivity?: number) => void;
|
|
51
|
+
getItemLayoutInfo: (index: any) => {
|
|
52
|
+
left: any;
|
|
53
|
+
top: any;
|
|
54
|
+
width: any;
|
|
55
|
+
height: any;
|
|
56
|
+
} | null;
|
|
51
57
|
$props: {
|
|
52
58
|
[x: string]: any;
|
|
53
59
|
};
|
|
@@ -76,7 +82,7 @@ declare const _default: {
|
|
|
76
82
|
unlockSlide: () => void;
|
|
77
83
|
lock: (type: any) => () => void;
|
|
78
84
|
unlock: (type: any) => void;
|
|
79
|
-
refreshData: (forceUpdate:
|
|
85
|
+
refreshData: (forceUpdate: boolean, slideToFocus?: string) => void;
|
|
80
86
|
moveFocus: (direction: any) => void;
|
|
81
87
|
slideTo: (position: any, doAnim: any) => void;
|
|
82
88
|
slideToItem: (index: any, doAnim: any) => void;
|
|
@@ -99,10 +105,16 @@ declare const _default: {
|
|
|
99
105
|
top: any;
|
|
100
106
|
width: any;
|
|
101
107
|
height: any;
|
|
102
|
-
};
|
|
108
|
+
} | null;
|
|
103
109
|
setSlideSetting: (setting: any) => void;
|
|
104
110
|
cancelDelayLoad: () => void;
|
|
105
111
|
setSensorSensitivity: (sensitivity?: number) => void;
|
|
112
|
+
getItemLayoutInfo: (index: any) => {
|
|
113
|
+
left: any;
|
|
114
|
+
top: any;
|
|
115
|
+
width: any;
|
|
116
|
+
height: any;
|
|
117
|
+
} | null;
|
|
106
118
|
$props: {
|
|
107
119
|
[x: string]: any;
|
|
108
120
|
};
|
|
@@ -115,7 +127,7 @@ declare const _default: {
|
|
|
115
127
|
unlockSlide: () => void;
|
|
116
128
|
lock: (type: any) => () => void;
|
|
117
129
|
unlock: (type: any) => void;
|
|
118
|
-
refreshData: (forceUpdate:
|
|
130
|
+
refreshData: (forceUpdate: boolean, slideToFocus?: string) => void;
|
|
119
131
|
moveFocus: (direction: any) => void;
|
|
120
132
|
slideTo: (position: any, doAnim: any) => void;
|
|
121
133
|
slideToItem: (index: any, doAnim: any) => void;
|
|
@@ -138,10 +150,16 @@ declare const _default: {
|
|
|
138
150
|
top: any;
|
|
139
151
|
width: any;
|
|
140
152
|
height: any;
|
|
141
|
-
};
|
|
153
|
+
} | null;
|
|
142
154
|
setSlideSetting: (setting: any) => void;
|
|
143
155
|
cancelDelayLoad: () => void;
|
|
144
156
|
setSensorSensitivity: (sensitivity?: number) => void;
|
|
157
|
+
getItemLayoutInfo: (index: any) => {
|
|
158
|
+
left: any;
|
|
159
|
+
top: any;
|
|
160
|
+
width: any;
|
|
161
|
+
height: any;
|
|
162
|
+
} | null;
|
|
145
163
|
$props: {
|
|
146
164
|
[x: string]: any;
|
|
147
165
|
};
|
|
@@ -3,6 +3,7 @@ export function setup(props: any, itemRender: any, locateDiv: any, renderData: a
|
|
|
3
3
|
focusBlockOnFocus: (params: any) => void;
|
|
4
4
|
focusBlockOnBlur: () => void;
|
|
5
5
|
focusBlockOnKeyDown: (ev: any) => boolean;
|
|
6
|
+
focusBlockOnKeyUp: (ev: any) => boolean;
|
|
6
7
|
focusBlockOnCustomEvent: (ev: any) => boolean | undefined;
|
|
7
8
|
_onFocusableItemEdge: (edge_info: any) => void;
|
|
8
9
|
exportObject: {
|
|
@@ -10,7 +11,7 @@ export function setup(props: any, itemRender: any, locateDiv: any, renderData: a
|
|
|
10
11
|
unlockSlide: () => void;
|
|
11
12
|
lock: (type: any) => () => void;
|
|
12
13
|
unlock: (type: any) => void;
|
|
13
|
-
refreshData: (forceUpdate:
|
|
14
|
+
refreshData: (forceUpdate: boolean, slideToFocus?: string) => void;
|
|
14
15
|
moveFocus: (direction: any) => void;
|
|
15
16
|
slideTo: (position: any, doAnim: any) => void;
|
|
16
17
|
slideToItem: (index: any, doAnim: any) => void;
|
|
@@ -33,10 +34,16 @@ export function setup(props: any, itemRender: any, locateDiv: any, renderData: a
|
|
|
33
34
|
top: any;
|
|
34
35
|
width: any;
|
|
35
36
|
height: any;
|
|
36
|
-
};
|
|
37
|
+
} | null;
|
|
37
38
|
setSlideSetting: (setting: any) => void;
|
|
38
39
|
cancelDelayLoad: () => void;
|
|
39
40
|
setSensorSensitivity: (sensitivity?: number) => void;
|
|
41
|
+
getItemLayoutInfo: (index: any) => {
|
|
42
|
+
left: any;
|
|
43
|
+
top: any;
|
|
44
|
+
width: any;
|
|
45
|
+
height: any;
|
|
46
|
+
} | null;
|
|
40
47
|
};
|
|
41
48
|
setZIndex: (index: any, normalZIndex: any, focusZIndex: any) => void;
|
|
42
49
|
onTouchDown: (data: any, customData: any, nexusCustomData: any) => void;
|
|
@@ -39,8 +39,11 @@ export declare class RenderItem {
|
|
|
39
39
|
unregister(name: string): void;
|
|
40
40
|
onFocus(rect: object): boolean;
|
|
41
41
|
onBlur(): boolean;
|
|
42
|
+
onGaze(rect: object): boolean;
|
|
43
|
+
onIgnore(): boolean;
|
|
42
44
|
readonly onTap: import("vue").ComputedRef<(() => boolean) | null>;
|
|
43
45
|
onClick(): boolean;
|
|
46
|
+
onLongPress(): boolean;
|
|
44
47
|
onWidgetEdge(rect: object): boolean;
|
|
45
48
|
addDivMountedListener(cbk: (div: HTMLDivElement) => void): () => void;
|
|
46
49
|
private onDivMounted;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$props: {
|
|
3
|
-
readonly left?: number | undefined;
|
|
4
3
|
readonly top?: number | undefined;
|
|
4
|
+
readonly left?: number | undefined;
|
|
5
5
|
readonly width?: number | undefined;
|
|
6
6
|
readonly height?: number | undefined;
|
|
7
7
|
readonly latexStr?: string | undefined;
|
|
@@ -4,8 +4,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4
4
|
height: number;
|
|
5
5
|
};
|
|
6
6
|
$props: {
|
|
7
|
-
readonly left?: number | undefined;
|
|
8
7
|
readonly top?: number | undefined;
|
|
8
|
+
readonly left?: number | undefined;
|
|
9
9
|
readonly width?: number | undefined;
|
|
10
10
|
readonly height?: number | undefined;
|
|
11
11
|
readonly latexStr?: string | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class AckEventDefine {
|
|
2
|
+
static CATEGORY_JSC: number;
|
|
3
|
+
static CATEGORY_VIEW: number;
|
|
4
|
+
static CATEGORY_EXCEPTION: number;
|
|
5
|
+
static TYPE_JS_CONTEXT_LIFECYCLE: number;
|
|
6
|
+
static TYPE_JS_CONTEXT_PERMISSION: number;
|
|
7
|
+
static TYPE_SHARED_VIEW_LAYOUT: number;
|
|
8
|
+
static TYPE_APP_ASPECT_RATIO_CHANGE: number;
|
|
9
|
+
static TYPE_EXCEPTION_UNHANDLED_EXIT_ACTION: number;
|
|
10
|
+
}
|
|
@@ -274,8 +274,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
274
274
|
}, {
|
|
275
275
|
video: null;
|
|
276
276
|
holeId: string;
|
|
277
|
-
|
|
278
|
-
innerViewId: import("vue").ShallowRef<number>;
|
|
277
|
+
positionAckFunc: null;
|
|
279
278
|
}, {
|
|
280
279
|
holeStyle: {};
|
|
281
280
|
}, {}, {
|
|
@@ -234,11 +234,11 @@ declare class JsvBaseMedia {
|
|
|
234
234
|
* 属性,float类型,设置或者读取倍速播放,通常的值是0.5、0.75、1.0、1.25、1.5、2.0、3.0。
|
|
235
235
|
*/
|
|
236
236
|
get playbackRate(): any;
|
|
237
|
-
set preload(arg: "
|
|
237
|
+
set preload(arg: "none" | "auto");
|
|
238
238
|
/**
|
|
239
239
|
* 已废弃。
|
|
240
240
|
*/
|
|
241
|
-
get preload(): "
|
|
241
|
+
get preload(): "none" | "auto";
|
|
242
242
|
/**
|
|
243
243
|
* 属性,string类型,播放地址,不支持读取。
|
|
244
244
|
*/
|
|
@@ -43,6 +43,7 @@ declare namespace bridge {
|
|
|
43
43
|
export { providerInsert };
|
|
44
44
|
export { providerDelete };
|
|
45
45
|
export { providerUpdate };
|
|
46
|
+
export { getBootTime };
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* 获取设备mac地址,优先获取有线mac,无则获取wifi mac
|
|
@@ -319,3 +320,8 @@ declare function providerDelete(uri: string, selection: string, selectionArgs: s
|
|
|
319
320
|
* @returns
|
|
320
321
|
*/
|
|
321
322
|
declare function providerUpdate(uri: string, contentValue: object, selection: string, selectionArgs: string[]): any;
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @returns 设备开机时长
|
|
326
|
+
*/
|
|
327
|
+
declare function getBootTime(): any;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PathStrokeSetting
|
|
3
|
+
* 描边样式设定
|
|
4
|
+
* lineWidth: 描边线宽
|
|
5
|
+
* color: 描边颜色
|
|
6
|
+
* dash: 描边虚线样式,例如[10, 5]表示10px实线,5px虚线,交替出现
|
|
7
|
+
* phase: 描边虚线样式起始位置,例如0表示从虚线开始位置开始绘制
|
|
8
|
+
*/
|
|
9
|
+
interface PathStrokeSetting {
|
|
10
|
+
lineWidth: Number;
|
|
11
|
+
color: String;
|
|
12
|
+
dash?: Array<Number>;
|
|
13
|
+
phase?: Number;
|
|
14
|
+
}
|
|
1
15
|
declare class DrawingPath {
|
|
2
16
|
protected drawCommandsRefs: Array<Object>;
|
|
3
17
|
protected finishedDraw: boolean;
|
|
@@ -10,6 +24,13 @@ declare class DrawingPath {
|
|
|
10
24
|
* @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
|
|
11
25
|
*/
|
|
12
26
|
stroke(lineWidth: Number, color: String): void;
|
|
27
|
+
/**
|
|
28
|
+
* strokeWithSetting
|
|
29
|
+
* 绘制边框,并设置描边样式
|
|
30
|
+
*
|
|
31
|
+
* @param {PathStrokeSetting} setting 描边样式设定
|
|
32
|
+
*/
|
|
33
|
+
strokeWithSetting(setting: PathStrokeSetting): void;
|
|
13
34
|
/**
|
|
14
35
|
* fill
|
|
15
36
|
* 绘制填充
|
|
@@ -34,7 +34,7 @@ declare let sTextureStoreApi: {
|
|
|
34
34
|
* @param {String|null} baseName 可选, 访问名的前缀信息
|
|
35
35
|
* @return {CanvasTexture}
|
|
36
36
|
*/
|
|
37
|
-
canvasTexture: (width: Number, height: Number, baseName
|
|
37
|
+
canvasTexture: (width: Number, height: Number, baseName?: String | null) => CanvasTexture;
|
|
38
38
|
/**
|
|
39
39
|
* capture2Texture
|
|
40
40
|
* 对给定div做截图并生成一个Texture, 在回调函数中返回此Texture的访问名,
|
|
@@ -11,7 +11,6 @@ export * from "./DebugTool";
|
|
|
11
11
|
export * from "./JsvImpactTracer";
|
|
12
12
|
export * from "./JsvTextTools";
|
|
13
13
|
export * from "./JsvPreDownloader";
|
|
14
|
-
export * from "./JsvDemoTester";
|
|
15
14
|
export * from "./JsvPerformance";
|
|
16
15
|
export * from "./JsvTextureStore/JsvTextureStore";
|
|
17
16
|
export * from "./JsvTextureDefines";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* 【模块 export 内容】
|
|
5
|
+
* JsvPosterDiv:Vue高阶组件,海报描画
|
|
6
|
+
* props说明:
|
|
7
|
+
* @prop {{x:number, y:number, z:number}} position 坐标信息,优先级高于style中的left, top
|
|
8
|
+
* @prop {Object} style {Object} 包含
|
|
9
|
+
* left/top/width/height
|
|
10
|
+
* border-radius
|
|
11
|
+
* backgroundImage/backgroundColor
|
|
12
|
+
* 的style设置
|
|
13
|
+
* @prop {boolean} enableAA 默认开启的。anti-alias(局部)算法,此算法会引起边缘2~3像素虚化
|
|
14
|
+
*/
|
|
15
|
+
declare const _default: {
|
|
16
|
+
new (...args: any[]): {
|
|
17
|
+
$: import("vue").ComponentInternalInstance;
|
|
18
|
+
$data: {};
|
|
19
|
+
$props: Partial<{
|
|
20
|
+
style: Object | null;
|
|
21
|
+
position: any;
|
|
22
|
+
enableAA: boolean;
|
|
23
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
style: Object | null;
|
|
25
|
+
position: any;
|
|
26
|
+
enableAA: boolean;
|
|
27
|
+
}>, {
|
|
28
|
+
style: null;
|
|
29
|
+
position: null;
|
|
30
|
+
enableAA: boolean;
|
|
31
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "position" | "enableAA">;
|
|
32
|
+
$attrs: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
$refs: {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
$slots: Readonly<{
|
|
39
|
+
[name: string]: import("vue").Slot | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
42
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
43
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
44
|
+
$el: any;
|
|
45
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
46
|
+
style: Object | null;
|
|
47
|
+
position: any;
|
|
48
|
+
enableAA: boolean;
|
|
49
|
+
}>, {
|
|
50
|
+
style: null;
|
|
51
|
+
position: null;
|
|
52
|
+
enableAA: boolean;
|
|
53
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
54
|
+
style: Object | null;
|
|
55
|
+
position: any;
|
|
56
|
+
enableAA: boolean;
|
|
57
|
+
}, {}, string> & {
|
|
58
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
71
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
72
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
73
|
+
};
|
|
74
|
+
$forceUpdate: () => void;
|
|
75
|
+
$nextTick: typeof import("vue").nextTick;
|
|
76
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
77
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
78
|
+
style: Object | null;
|
|
79
|
+
position: any;
|
|
80
|
+
enableAA: boolean;
|
|
81
|
+
}>, {
|
|
82
|
+
style: null;
|
|
83
|
+
position: null;
|
|
84
|
+
enableAA: boolean;
|
|
85
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
86
|
+
__isFragment?: undefined;
|
|
87
|
+
__isTeleport?: undefined;
|
|
88
|
+
__isSuspense?: undefined;
|
|
89
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
90
|
+
style: Object | null;
|
|
91
|
+
position: any;
|
|
92
|
+
enableAA: boolean;
|
|
93
|
+
}>, {
|
|
94
|
+
style: null;
|
|
95
|
+
position: null;
|
|
96
|
+
enableAA: boolean;
|
|
97
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
98
|
+
style: Object | null;
|
|
99
|
+
position: any;
|
|
100
|
+
enableAA: boolean;
|
|
101
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
102
|
+
$slots: {
|
|
103
|
+
default: (_: {}) => any;
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
export default _default;
|
|
107
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
108
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
109
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
110
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
111
|
+
} : {
|
|
112
|
+
type: import('vue').PropType<T[K]>;
|
|
113
|
+
required: true;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
type __VLS_WithDefaults<P, D> = {
|
|
117
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
118
|
+
default: D[K];
|
|
119
|
+
} : P[K];
|
|
120
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* 【模块 export 内容】
|
|
5
|
+
* JsvPosterDiv:Vue高阶组件,海报描画
|
|
6
|
+
* props说明:
|
|
7
|
+
* @prop {Object} style 包含
|
|
8
|
+
left/top/width/height
|
|
9
|
+
的style设置
|
|
10
|
+
* @prop {number} perspective 透视精神,默认1000,要求透视效果前后差距越大,此值约小,
|
|
11
|
+
推荐档位
|
|
12
|
+
透视效果非常明显的场景: 300
|
|
13
|
+
透视效果适中的场景: 1000~2000
|
|
14
|
+
*/
|
|
15
|
+
declare const _default: {
|
|
16
|
+
new (...args: any[]): {
|
|
17
|
+
$: import("vue").ComponentInternalInstance;
|
|
18
|
+
$data: {};
|
|
19
|
+
$props: Partial<{
|
|
20
|
+
style: {
|
|
21
|
+
top: number;
|
|
22
|
+
left: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
perspective: number;
|
|
27
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
28
|
+
style: {
|
|
29
|
+
top: number;
|
|
30
|
+
left: number;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
34
|
+
perspective: number;
|
|
35
|
+
}>, {
|
|
36
|
+
style: any;
|
|
37
|
+
perspective: number;
|
|
38
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "style" | "perspective">;
|
|
39
|
+
$attrs: {
|
|
40
|
+
[x: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
$refs: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
$slots: Readonly<{
|
|
46
|
+
[name: string]: import("vue").Slot | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
49
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
50
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
51
|
+
$el: any;
|
|
52
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
53
|
+
style: {
|
|
54
|
+
top: number;
|
|
55
|
+
left: number;
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
};
|
|
59
|
+
perspective: number;
|
|
60
|
+
}>, {
|
|
61
|
+
style: any;
|
|
62
|
+
perspective: number;
|
|
63
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
64
|
+
style: {
|
|
65
|
+
top: number;
|
|
66
|
+
left: number;
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
};
|
|
70
|
+
perspective: number;
|
|
71
|
+
}, {}, string> & {
|
|
72
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
85
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
86
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
87
|
+
};
|
|
88
|
+
$forceUpdate: () => void;
|
|
89
|
+
$nextTick: typeof import("vue").nextTick;
|
|
90
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
91
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
92
|
+
style: {
|
|
93
|
+
top: number;
|
|
94
|
+
left: number;
|
|
95
|
+
width: number;
|
|
96
|
+
height: number;
|
|
97
|
+
};
|
|
98
|
+
perspective: number;
|
|
99
|
+
}>, {
|
|
100
|
+
style: any;
|
|
101
|
+
perspective: number;
|
|
102
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
103
|
+
__isFragment?: undefined;
|
|
104
|
+
__isTeleport?: undefined;
|
|
105
|
+
__isSuspense?: undefined;
|
|
106
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
107
|
+
style: {
|
|
108
|
+
top: number;
|
|
109
|
+
left: number;
|
|
110
|
+
width: number;
|
|
111
|
+
height: number;
|
|
112
|
+
};
|
|
113
|
+
perspective: number;
|
|
114
|
+
}>, {
|
|
115
|
+
style: any;
|
|
116
|
+
perspective: number;
|
|
117
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
118
|
+
style: {
|
|
119
|
+
top: number;
|
|
120
|
+
left: number;
|
|
121
|
+
width: number;
|
|
122
|
+
height: number;
|
|
123
|
+
};
|
|
124
|
+
perspective: number;
|
|
125
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
126
|
+
$slots: {
|
|
127
|
+
default: (_: {}) => any;
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
export default _default;
|
|
131
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
132
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
133
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
134
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
135
|
+
} : {
|
|
136
|
+
type: import('vue').PropType<T[K]>;
|
|
137
|
+
required: true;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
type __VLS_WithDefaults<P, D> = {
|
|
141
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
142
|
+
default: D[K];
|
|
143
|
+
} : P[K];
|
|
144
|
+
};
|