@shijiu/jsview-vue 2.3.0 → 2.3.151-test.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.
Files changed (56) hide show
  1. package/bin/browser/BrowserAudio.vue.mjs +4 -1
  2. package/bin/jsview-vue.mjs +2200 -466
  3. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +21 -1
  4. package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +5 -1
  5. package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +2 -1
  6. package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +10 -7
  7. package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +1 -0
  8. package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +37 -1
  9. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +3 -3
  10. package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +7 -0
  11. package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +14 -1
  12. package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
  13. package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
  14. package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +11 -0
  15. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +2 -1
  16. package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +72 -0
  17. package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
  18. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
  19. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
  20. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
  21. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +2 -2
  22. package/bin/types/utils/JsViewVueWidget/index.d.ts +2 -1
  23. package/package.json +1 -1
  24. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +27 -1
  25. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +35 -3
  26. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +736 -386
  27. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +13 -2
  28. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +38 -26
  29. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +144 -73
  30. package/utils/JsViewEngineWidget/WidgetCommon.ts +12 -0
  31. package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
  32. package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
  33. package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +1 -1
  34. package/utils/JsViewVueTools/FeatureActive.ts +2 -1
  35. package/utils/JsViewVueTools/ForgeHandles.ts +5 -2
  36. package/utils/JsViewVueTools/JsvRuntimeBridge.js +97 -1
  37. package/utils/JsViewVueTools/JsvTextTools.ts +3 -1
  38. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +15 -12
  39. package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +36 -0
  40. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +23 -2
  41. package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
  42. package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
  43. package/utils/JsViewVueWidget/JsvDashPath.vue +150 -0
  44. package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +3 -1
  45. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +26 -22
  46. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +1 -1
  47. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +1 -0
  48. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +2 -2
  49. package/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue +108 -0
  50. package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
  51. package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
  52. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
  53. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
  54. package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
  55. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +14 -8
  56. package/utils/JsViewVueWidget/index.js +2 -1
@@ -28,7 +28,8 @@ declare class JsvFocusHubApi {
28
28
  * getCurrentFocus
29
29
  *
30
30
  * 获取当前焦点的的 focusName 信息,用于后续的进行的 setFocus 操作
31
- * (注意, 不带NameSpace)
31
+ * (注意1: 获取的NameSpace不带NameSpace)
32
+ * (注意2: 如果当前状态所设焦点还没Mounted时,也会返回null)
32
33
  *
33
34
  * @return {string} 当前焦点的focusName
34
35
  */
@@ -82,6 +83,25 @@ declare class JsvFocusHubApi {
82
83
  * @return {Array} 当前焦点的链条队列
83
84
  */
84
85
  getCurrentFocusStack(): Array<Object>;
86
+ /**
87
+ * addFocusChangeListener
88
+ *
89
+ * 添加焦点变化监听器, 主要用来追踪焦点name的变化,例如路由切换的场景
90
+ *
91
+ * @param {Function} listener 焦点变化监听器, 参数为 {focusName: string}
92
+ * @param {boolean} onRequest 监听时机,true: 在focus请求时即回调,无论节点是否存在;
93
+ * false: 在节点真实存在后,确认进行focus时才回调(在正准备Focus()调用前)
94
+ */
95
+ addFocusChangeListener(listener: Function, onRequest?: boolean): void;
96
+ /**
97
+ * removeFocusChangeListener
98
+ *
99
+ * 删除焦点变化监听器
100
+ *
101
+ * @param {Function} listener 由addFocusChangeListener添加的变化监听器
102
+ * @param {boolean} onRequest 和addFocusChangeListener时设置的参数要完全对应
103
+ */
104
+ removeFocusChangeListener(listener: Function, onRequest?: boolean): void;
85
105
  }
86
106
  declare const ROOT_HUB_PROVIDE_NAME = "__jsvFocusRootHub__";
87
107
  declare const HUB_NS_PROVIDE_NAME = "__jsvFocusNameSpace__";
@@ -13,6 +13,7 @@ interface ItemConfig {
13
13
  itemSlide: number;
14
14
  permanent: boolean;
15
15
  showSkeleton: boolean;
16
+ enableLongPress: boolean;
16
17
  }
17
18
  export declare class RenderItem {
18
19
  private divMountedCallback;
@@ -25,11 +26,13 @@ export declare class RenderItem {
25
26
  rootDiv: HTMLDivElement | null;
26
27
  enableTap: boolean;
27
28
  renderKey: Ref<number>;
29
+ placeHolderLayout: null;
28
30
  private customerCallbackMap;
29
31
  private onRef;
32
+ private metroWidgetCbk;
30
33
  readonly registerObj: object;
31
34
  readonly query: object;
32
- constructor(templateInfo: TemplateItem, customerData: object, renderStyle: RenderItemStyle, itemConfig: ItemConfig, onRef: () => void, query: object);
35
+ constructor(templateInfo: TemplateItem, customerData: object, renderStyle: RenderItemStyle, itemConfig: ItemConfig, onRef: () => void, query: object, metroWidgetCallback: Object);
33
36
  get id(): number;
34
37
  get index(): number;
35
38
  updateCustomData(newCustomData: object, newItemConfig: ItemConfig): void;
@@ -42,6 +45,7 @@ export declare class RenderItem {
42
45
  onGaze(rect: object): boolean;
43
46
  onIgnore(): boolean;
44
47
  readonly onTap: import("vue").ComputedRef<(() => boolean) | null>;
48
+ private innerOnTap;
45
49
  onClick(): boolean;
46
50
  onLongPress(): boolean;
47
51
  onWidgetEdge(rect: object): boolean;
@@ -12,12 +12,13 @@ declare class CommonMetroTemplate extends MetroTemplate {
12
12
  addItemInner(itemObj: MeasureInfo): TemplateItem;
13
13
  /** get next item functions */
14
14
  getNextItem(baseId: number, vOffset: number, hOffset: number, moveType: number): TemplateItem | null;
15
+ private _GetDirectionNearItem;
15
16
  private getNextItemInner;
16
17
  private _GetItemDistance;
17
18
  private _GetTotalNeighbor;
18
19
  private _GetNearestItem;
20
+ private _FindNearestByDirection;
19
21
  private _GetNextLoopItem;
20
- private _GetNearLineItem;
21
22
  updateItemSize(index: number, newSize: {
22
23
  width: number;
23
24
  height: number;
@@ -119,18 +119,21 @@ export declare class SeamlessSlide extends SlideSetting {
119
119
  * easing: 滚动动画的easing
120
120
  * boundaryProtect: 确定滚动位置能否小于0或者大于最大长度
121
121
  * fixFirstPage: 首页不滚动
122
+ * align: 对齐方式 start, center, end
122
123
  * }
123
124
  **/
124
125
  export declare class FixPositionSlide extends SlideSetting {
125
126
  readonly FixPercent: number;
126
127
  readonly FixFirstPage: boolean;
127
- constructor({ fixPercent, speed, duration, easing, fixFirstPage, boundaryProtect, }?: {
128
- fixPercent?: number | undefined;
129
- speed?: number | undefined;
130
- duration?: null | undefined;
131
- easing?: string | undefined;
132
- fixFirstPage?: boolean | undefined;
133
- boundaryProtect?: number | undefined;
128
+ readonly Align: "start" | "center" | "end";
129
+ constructor({ fixPercent, speed, duration, easing, fixFirstPage, align, boundaryProtect, }?: {
130
+ fixPercent?: number;
131
+ speed?: number;
132
+ duration?: number | null;
133
+ easing?: string;
134
+ fixFirstPage?: boolean;
135
+ align?: "start" | "center" | "end";
136
+ boundaryProtect?: number;
134
137
  });
135
138
  }
136
139
  export declare const FocusMoveType: {
@@ -2,5 +2,6 @@ declare let handles: {
2
2
  TextureManager: any;
3
3
  RootView: any;
4
4
  RootActivity: any;
5
+ sRenderBridge: any;
5
6
  };
6
7
  export default handles;
@@ -6,7 +6,9 @@ declare namespace bridge {
6
6
  export { getDeviceUUID };
7
7
  export { getAndroidId };
8
8
  export { openWindow };
9
+ export { openApp };
9
10
  export { startUrlInNewTab };
11
+ export { openAppInNewTab };
10
12
  export { onWindowResult };
11
13
  export { reloadWindow };
12
14
  export { closePage };
@@ -14,6 +16,7 @@ declare namespace bridge {
14
16
  export { getSystemProperty };
15
17
  export { getInstalledApps };
16
18
  export { startNativeApp };
19
+ export { openNativeApp };
17
20
  export { sendNativeBroadcast };
18
21
  export { startService };
19
22
  export { getDeviceInfo };
@@ -85,6 +88,16 @@ declare function getAndroidId(): string;
85
88
  * @returns {Promise} 可用于监听新的小程序返回的结果
86
89
  */
87
90
  declare function openWindow(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
91
+ /**
92
+ * 打开另外一个小程序
93
+ * @param {string} url 小程序url
94
+ * @param {string} startup_image 启动图url
95
+ * @param {string} startup_video 启动视频url
96
+ * @param {int} startup_duration 启动图时长,默认0
97
+ * @param {int} add_history 是否添加历史,0不添加,1添加
98
+ * @returns {Promise}
99
+ */
100
+ declare function openApp(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
88
101
  /**
89
102
  * 用新的进程打开另外一个小程序
90
103
  * @param {string} url 小程序url
@@ -95,6 +108,16 @@ declare function openWindow(url: string, startup_image: string, startup_video: s
95
108
  * @returns {Promise} 可用于监听新的小程序返回的结果
96
109
  */
97
110
  declare function startUrlInNewTab(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
111
+ /**
112
+ * 用新的进程打开另外一个小程序
113
+ * @param {string} url 小程序url
114
+ * @param {string} startup_image 启动图url
115
+ * @param {string} startup_video 启动视频url
116
+ * @param {int} startup_duration 启动图时长,默认0
117
+ * @param {int} add_history 是否添加历史,0不添加,1添加
118
+ * @returns {Promise}
119
+ */
120
+ declare function openAppInNewTab(url: string, startup_image: string, startup_video: string, startup_duration: int, add_history: int): Promise<any>;
98
121
  /**
99
122
  * 用于给上一个小程序返回结果,通常与startUrlInNewTab和openWindow配合使用
100
123
  * @param {string} data 返回给上一个小程序的结果
@@ -142,9 +165,22 @@ declare function getInstalledApps(): string;
142
165
  * @param {string} uri Uri方式启动
143
166
  * @param {Array} flags 数组,用于intent.addFlags
144
167
  * @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
168
+ * @param {Array} category string数组,用于intent.addCategory
169
+ *
170
+ */
171
+ declare function startNativeApp(package_name: string, activity: string, action: string, uri: string, flags: any[], param: any[], category: any[]): void;
172
+ /**
173
+ * 启动安卓APP
174
+ * @param {string} package_name 包名
175
+ * @param {string} activity Activity方式启动
176
+ * @param {string} action Action方式启动
177
+ * @param {string} uri Uri方式启动
178
+ * @param {Array} flags 数组,用于intent.addFlags
179
+ * @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
180
+ * @param {Array} category string数组,用于intent.addCategory
145
181
  *
146
182
  */
147
- declare function startNativeApp(package_name: string, activity: string, action: string, uri: string, flags: any[], param: any[]): void;
183
+ declare function openNativeApp(package_name: string, activity: string, action: string, uri: string, flags: any[], param: any[], category: any[]): any;
148
184
  /**
149
185
  * 发送安卓广播
150
186
  * @param {string} package_name 包名
@@ -1,11 +1,11 @@
1
1
  import { TextureBase } from "../Texture";
2
- export type CapturedCallback = (textureAccessName: string, autoRecycleSet: boolean, width: number, height: number) => void;
2
+ export type CapturedCallback = (textureAccessName: string, autoRecycleSet: boolean, width: number, height: number, isCannceled: boolean) => void;
3
3
  export declare class CapturedTexture extends TextureBase {
4
- private _AutoRecycle;
5
4
  private _Callback;
6
5
  private _CaptureDiv;
7
6
  private _Canceled;
8
- constructor(captureDiv: any, callback: CapturedCallback, autoRecycle: boolean);
7
+ private _PostProcessParams;
8
+ constructor(captureDiv: any, callback: CapturedCallback, autoRecycle: boolean, postProcessParams?: any);
9
9
  cancel(): void;
10
10
  commit(): String;
11
11
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 使用ForgeTexture获取图片的dominant color, 注意, 此方法会hold住texture资源, 需要保证组件unmount时调用释放处理
3
+ * @param src 图片的src
4
+ * @param cbk 回调函数, 参数: info
5
+ * @returns 用于cancel的句柄,当cancel时,会清理对div和Callback的引用
6
+ */
7
+ export declare function getDominantColorByForgeTexture(src: string, cbk: (i: any) => void): () => void;
@@ -58,9 +58,10 @@ declare let sTextureStoreApi: {
58
58
  不需要主动调用deleteTexture释放.
59
59
  false: 此场景在callback收到资源名后, 需要使用完毕后调用 deleteTexture 手动释放
60
60
  在手动释放之前,可以赋给其他div/img来复用
61
+ * @param {any} postProcessParams 可选, 截图处理的参数
61
62
  * @return {CapturedTexture} 用于cancel的句柄,当cancel时,会清理对div和Callback的引用
62
63
  */
63
- capture2Texture: (captureDiv: any, callback: CapturedCallback, autoRecycle?: boolean) => CapturedTexture;
64
+ capture2Texture: (captureDiv: any, callback: CapturedCallback, autoRecycle?: boolean, postProcessParams?: any) => CapturedTexture;
64
65
  /**
65
66
  * deleteTexture
66
67
  * 删除访问名对应的texture资源
@@ -68,5 +69,17 @@ declare let sTextureStoreApi: {
68
69
  * @param {String} accessName 此Texture的访问名,访问名来自: CanvasTexture.commit 或 capture2Texture 的回调
69
70
  */
70
71
  deleteTexture: (accessName: String) => void;
72
+ /**
73
+ * getDominantColor
74
+ * 获取图片的 dominant color
75
+ *
76
+ * @param src 图片的src
77
+ * @param callback 回调函数, 参数: info
78
+ * @return 用于cancel的句柄,当cancel时,会清理对div和Callback的引用
79
+ */
80
+ getDominantColor: (src: string, callback: (info: any) => void) => () => void;
71
81
  };
82
+ export declare enum CaptureProcessType {
83
+ Blur = 1
84
+ }
72
85
  export { sTextureStoreApi as JsvTextureStoreApi, sJsvTextureConst as JsvTextureConst, };
@@ -1,10 +1,12 @@
1
1
  import { TextureBase } from "./Texture";
2
2
  declare class JsvTextureStore {
3
3
  private textureMap;
4
+ private hasAutoRecycle;
4
5
  constructor();
5
6
  addToStore(storeName: String, textureRef: TextureBase): void;
6
7
  getFromStore(storeName: String): TextureBase | undefined;
7
8
  removeFromStore(storeName: String): TextureBase | undefined;
9
+ private onWillSwap;
8
10
  }
9
11
  declare let sStore: JsvTextureStore;
10
12
  export default sStore;
@@ -2,7 +2,11 @@ export declare class TextureBase {
2
2
  private baseName;
3
3
  protected textureRef: any;
4
4
  storeName: String;
5
+ protected autoRecycle: boolean;
6
+ private autoRecycleDelay;
5
7
  constructor(baseName: String | null);
8
+ tryRecycle(): void;
9
+ isAutoRecycle(): boolean;
6
10
  protected addToStore(): void;
7
11
  protected getStoreName(): string;
8
12
  /**
@@ -0,0 +1,11 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ $props: {
3
+ readonly color?: string | undefined;
4
+ readonly lineWidth?: number | undefined;
5
+ readonly dash?: unknown[] | undefined;
6
+ readonly phase?: number | undefined;
7
+ readonly layout?: Record<string, any> | undefined;
8
+ readonly points?: unknown[] | undefined;
9
+ };
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
11
+ export default _default;
@@ -1,10 +1,11 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- startAnim: (alt_duration: any, on_timeout_func: any) => number;
2
+ startAnim: (alt_duration: any, on_timeout_func: any, reverse?: boolean) => number;
3
3
  stopAnim: () => void;
4
4
  $props: {
5
5
  readonly style?: Record<string, any> | undefined;
6
6
  readonly duration?: number | undefined;
7
7
  readonly autoplay?: boolean | undefined;
8
+ readonly reverseAnimate?: boolean | undefined;
8
9
  readonly shaderStr?: string | undefined;
9
10
  readonly onEnd?: Function | undefined;
10
11
  readonly onStart?: Function | undefined;
@@ -0,0 +1,72 @@
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
6
+ $attrs: {
7
+ [x: string]: unknown;
8
+ };
9
+ $refs: {
10
+ [x: string]: unknown;
11
+ };
12
+ $slots: Readonly<{
13
+ [name: string]: import("vue").Slot | undefined;
14
+ }>;
15
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
16
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
17
+ $emit: (event: string, ...args: any[]) => void;
18
+ $el: any;
19
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
20
+ moveTo: (speed: any, x: any, y: any, onReach: any, prex: any, prey: any, onPreReach: any) => void;
21
+ brakeTo: (x: any, y: any) => void;
22
+ stop: () => void;
23
+ setSpeed: (speedX: any, speedY: any) => void;
24
+ $props: {
25
+ readonly initPosition?: unknown[] | undefined;
26
+ };
27
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
28
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
29
+ created?: ((() => void) | (() => void)[]) | undefined;
30
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
31
+ mounted?: ((() => void) | (() => void)[]) | undefined;
32
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
33
+ updated?: ((() => void) | (() => void)[]) | undefined;
34
+ activated?: ((() => void) | (() => void)[]) | undefined;
35
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
36
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
37
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
38
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
39
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
40
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
41
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
42
+ 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;
43
+ };
44
+ $forceUpdate: () => void;
45
+ $nextTick: typeof import("vue").nextTick;
46
+ $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;
47
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
48
+ moveTo: (speed: any, x: any, y: any, onReach: any, prex: any, prey: any, onPreReach: any) => void;
49
+ brakeTo: (x: any, y: any) => void;
50
+ stop: () => void;
51
+ setSpeed: (speedX: any, speedY: any) => void;
52
+ $props: {
53
+ readonly initPosition?: unknown[] | undefined;
54
+ };
55
+ }> & {} & import("vue").ComponentCustomProperties & {};
56
+ __isFragment?: undefined;
57
+ __isTeleport?: undefined;
58
+ __isSuspense?: undefined;
59
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
60
+ moveTo: (speed: any, x: any, y: any, onReach: any, prex: any, prey: any, onPreReach: any) => void;
61
+ brakeTo: (x: any, y: any) => void;
62
+ stop: () => void;
63
+ setSpeed: (speedX: any, speedY: any) => void;
64
+ $props: {
65
+ readonly initPosition?: unknown[] | undefined;
66
+ };
67
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
68
+ $slots: {
69
+ default: (_: {}) => any;
70
+ };
71
+ });
72
+ export default _default;
@@ -14,6 +14,24 @@ export class JsvSoundPool {
14
14
  * @param {function} callback 资源加载完成回调 function(int state, AudioController controller) {}
15
15
  */
16
16
  request(url: string, netSetting: string, priority: int, callback: Function): void;
17
+ /**
18
+ * @description: 准备音频资源
19
+ * @param {string} url 音频url
20
+ * @param {int} fastRepeatGap 最小间隔时间, 如果不为0则启用快速重复播放, 用两路音轨解决快速播放的漏音问题
21
+ * @param {string} netSetting http请求配置
22
+ * @param {int} priority 优先级
23
+ * @param {function} callback 资源加载完成回调 function(int state, AudioController controller) {}
24
+ */
25
+ requestInRepeatMode(url: string, fastRepeatGap: int, netSetting: string, priority: int, callback: Function): void;
26
+ /**
27
+ * @description: 准备音频资源
28
+ * @param {string} url 音频url
29
+ * @param {int} repeatFastMiniGap 最小间隔时间, 如果不为0则启用快速重复播放, 用两路音轨解决快速播放的漏音问题
30
+ * @param {string} netSetting http请求配置
31
+ * @param {int} priority 优先级
32
+ * @param {function} callback 资源加载完成回调 function(int state, AudioController controller) {}
33
+ */
34
+ _request(url: string, repeatFastMiniGap: int, netSetting: string, priority: int, callback: Function): void;
17
35
  /**
18
36
  * @description: 释放音频资源
19
37
  * @param {AudioController} controller 控制句柄
@@ -38,15 +56,23 @@ declare class AudioController {
38
56
  _SoundId: any;
39
57
  _Url: any;
40
58
  _StreamId: number;
59
+ _StreamStartTime: number;
60
+ _SubStreamId: number;
61
+ _SubStreamStartTime: number;
62
+ _LatestStreamStartTime: number;
41
63
  _Rate: number;
42
64
  _Loop: number;
43
65
  _LeftVolume: number;
44
66
  _RightVolume: number;
45
67
  _Priority: number;
68
+ _FastRepeatGap: number;
69
+ enableFastRepeat(mini_gap: any): void;
46
70
  /**
47
71
  * @description: 播放音频
48
72
  */
49
73
  play(): void;
74
+ _playMainStream(now: any): void;
75
+ _playSubStream(now: any): void;
50
76
  /**
51
77
  * @description: 暂停音频(Android4.0不支持)
52
78
  */
@@ -0,0 +1,112 @@
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
6
+ $attrs: {
7
+ [x: string]: unknown;
8
+ };
9
+ $refs: {
10
+ [x: string]: unknown;
11
+ };
12
+ $slots: Readonly<{
13
+ [name: string]: import("vue").Slot | undefined;
14
+ }>;
15
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
16
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
17
+ $emit: (event: string, ...args: any[]) => void;
18
+ $el: any;
19
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
20
+ $props: {
21
+ readonly animation?: Record<string, any> | undefined;
22
+ readonly vertical?: boolean | undefined;
23
+ readonly totalFrame?: number | undefined;
24
+ readonly firstFrame?: number | undefined;
25
+ readonly layoutInfo?: Record<string, any> | undefined;
26
+ readonly autoplayInterval?: number | undefined;
27
+ readonly reverseSwipe?: boolean | undefined;
28
+ readonly itemGap?: number | undefined;
29
+ readonly enableAutoplay?: boolean | undefined;
30
+ readonly name?: string | undefined;
31
+ readonly onFocus?: Function | undefined;
32
+ readonly onBlur?: Function | undefined;
33
+ readonly onChange?: Function | undefined;
34
+ readonly onClick?: Function | undefined;
35
+ readonly padding?: Record<string, any> | undefined;
36
+ readonly onEdge?: Function | undefined;
37
+ readonly itemSize?: Record<string, any> | undefined;
38
+ };
39
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
40
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
41
+ created?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
43
+ mounted?: ((() => void) | (() => void)[]) | undefined;
44
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
45
+ updated?: ((() => void) | (() => void)[]) | undefined;
46
+ activated?: ((() => void) | (() => void)[]) | undefined;
47
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
48
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
49
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
50
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
51
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
52
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
53
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
54
+ 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;
55
+ };
56
+ $forceUpdate: () => void;
57
+ $nextTick: typeof import("vue").nextTick;
58
+ $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;
59
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
60
+ $props: {
61
+ readonly animation?: Record<string, any> | undefined;
62
+ readonly vertical?: boolean | undefined;
63
+ readonly totalFrame?: number | undefined;
64
+ readonly firstFrame?: number | undefined;
65
+ readonly layoutInfo?: Record<string, any> | undefined;
66
+ readonly autoplayInterval?: number | undefined;
67
+ readonly reverseSwipe?: boolean | undefined;
68
+ readonly itemGap?: number | undefined;
69
+ readonly enableAutoplay?: boolean | undefined;
70
+ readonly name?: string | undefined;
71
+ readonly onFocus?: Function | undefined;
72
+ readonly onBlur?: Function | undefined;
73
+ readonly onChange?: Function | undefined;
74
+ readonly onClick?: Function | undefined;
75
+ readonly padding?: Record<string, any> | undefined;
76
+ readonly onEdge?: Function | undefined;
77
+ readonly itemSize?: Record<string, any> | undefined;
78
+ };
79
+ }> & {} & import("vue").ComponentCustomProperties & {};
80
+ __isFragment?: undefined;
81
+ __isTeleport?: undefined;
82
+ __isSuspense?: undefined;
83
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
84
+ $props: {
85
+ readonly animation?: Record<string, any> | undefined;
86
+ readonly vertical?: boolean | undefined;
87
+ readonly totalFrame?: number | undefined;
88
+ readonly firstFrame?: number | undefined;
89
+ readonly layoutInfo?: Record<string, any> | undefined;
90
+ readonly autoplayInterval?: number | undefined;
91
+ readonly reverseSwipe?: boolean | undefined;
92
+ readonly itemGap?: number | undefined;
93
+ readonly enableAutoplay?: boolean | undefined;
94
+ readonly name?: string | undefined;
95
+ readonly onFocus?: Function | undefined;
96
+ readonly onBlur?: Function | undefined;
97
+ readonly onChange?: Function | undefined;
98
+ readonly onClick?: Function | undefined;
99
+ readonly padding?: Record<string, any> | undefined;
100
+ readonly onEdge?: Function | undefined;
101
+ readonly itemSize?: Record<string, any> | undefined;
102
+ };
103
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
104
+ $slots: {
105
+ itemView: (_: {
106
+ currentIndex: number;
107
+ dataIndex: any;
108
+ focused: boolean;
109
+ }) => any;
110
+ };
111
+ });
112
+ export default _default;