@shijiu/jsview-vue 2.1.482-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.
Files changed (192) hide show
  1. package/bin/browser/BrowserTextureAnim.vue.mjs +8 -1
  2. package/bin/jsview-vue.mjs +274 -119
  3. package/bin/types/JsViewEngineWidget/CheckType.d.ts +3 -0
  4. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +102 -0
  5. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +88 -0
  6. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +10 -0
  7. package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +16 -0
  8. package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +14 -0
  9. package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +158 -0
  10. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +158 -0
  11. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +46 -0
  12. package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +21 -0
  13. package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +46 -0
  14. package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +48 -0
  15. package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +16 -0
  16. package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +17 -0
  17. package/bin/types/JsViewEngineWidget/RangeModel.d.ts +162 -0
  18. package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +37 -0
  19. package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +58 -0
  20. package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +15 -0
  21. package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +97 -0
  22. package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +22 -0
  23. package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
  24. package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +137 -0
  25. package/bin/types/JsViewEngineWidget/index.d.ts +6 -0
  26. package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +42 -0
  27. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
  28. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +18 -0
  29. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +208 -0
  30. package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +2 -0
  31. package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +13 -0
  32. package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +18 -0
  33. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +8 -0
  34. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -0
  35. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
  36. package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +5 -0
  37. package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +3 -0
  38. package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +10 -0
  39. package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +1 -0
  40. package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +13 -0
  41. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
  42. package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +17 -0
  43. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
  44. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +2 -0
  45. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
  46. package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +3 -0
  47. package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +10 -0
  48. package/bin/types/JsViewPlugin/index.d.ts +3 -0
  49. package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +6 -0
  50. package/bin/types/JsViewVueTools/DebugTool.d.ts +8 -0
  51. package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +10 -0
  52. package/bin/types/JsViewVueTools/ForgeHandles.d.ts +6 -0
  53. package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +2 -0
  54. package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +14 -0
  55. package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -0
  56. package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +16 -0
  57. package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +40 -0
  58. package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +27 -0
  59. package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +223 -0
  60. package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +31 -0
  61. package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +15 -0
  62. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +37 -0
  63. package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +6 -0
  64. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +95 -0
  65. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +15 -0
  66. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +75 -0
  67. package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +24 -0
  68. package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +10 -0
  69. package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +15 -0
  70. package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +21 -0
  71. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +2 -0
  72. package/bin/types/JsViewVueTools/index.d.ts +14 -0
  73. package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +31 -0
  74. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
  75. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +33 -0
  76. package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
  77. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
  78. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +50 -0
  79. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
  80. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
  81. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
  82. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
  83. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
  84. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
  85. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
  86. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
  87. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
  88. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
  89. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +19 -0
  90. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
  91. package/bin/types/{jsview-vue-common.d.mts → JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts} +12 -13
  92. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
  93. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
  94. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
  95. package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +51 -0
  96. package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +72 -0
  97. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
  98. package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
  99. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +72 -0
  100. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +84 -0
  101. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +6 -0
  102. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +11 -0
  103. package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +168 -0
  104. package/bin/types/JsViewVueWidget/JsvHole.d.ts +2 -0
  105. package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +36 -0
  106. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +210 -0
  107. package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
  108. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
  109. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
  110. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +2 -0
  111. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
  112. package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +83 -0
  113. package/bin/types/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
  114. package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +9 -0
  115. package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +69 -0
  116. package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +68 -0
  117. package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +145 -0
  118. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
  119. package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +40 -0
  120. package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +31 -0
  121. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +18 -0
  122. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
  123. package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +60 -0
  124. package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +75 -0
  125. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +10 -0
  126. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
  127. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +17 -0
  128. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
  129. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +11 -0
  130. package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +60 -0
  131. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +2 -0
  132. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
  133. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  134. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
  135. package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +3 -0
  136. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
  137. package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +10 -0
  138. package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +84 -0
  139. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +25 -0
  140. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
  141. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +2 -0
  142. package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +14 -0
  143. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
  144. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +69 -0
  145. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +11 -0
  146. package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +17 -0
  147. package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +5 -0
  148. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
  149. package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +209 -0
  150. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
  151. package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +97 -0
  152. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
  153. package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +75 -0
  154. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +151 -0
  155. package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +2 -0
  156. package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +107 -0
  157. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +14 -0
  158. package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +84 -0
  159. package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +84 -0
  160. package/bin/types/JsViewVueWidget/index.d.ts +37 -0
  161. package/bin/types/index.d.ts +4 -0
  162. package/index.d.ts +1 -1
  163. package/package.json +1 -1
  164. package/tools/config/tsconfig.json +6 -6
  165. package/tools/jsview-vue-build.mjs +13 -4
  166. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +7 -4
  167. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +18 -5
  168. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +255 -145
  169. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +2 -2
  170. package/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts +1 -1
  171. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +21 -21
  172. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +4 -4
  173. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +10 -10
  174. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +6 -6
  175. package/utils/JsViewEngineWidget/WidgetCommon.ts +18 -2
  176. package/utils/JsViewVueTools/JsvRuntimeBridge.js +2 -6
  177. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +8 -0
  178. package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +1 -1
  179. package/utils/JsViewVueWidget/JsvMindMap/rtree.js +1 -1
  180. package/utils/JsViewVueWidget/JsvTextBox.vue +14 -2
  181. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +18 -3
  182. package/bin/types/browser/BrowserApic.vue.d.mts +0 -33
  183. package/bin/types/browser/BrowserApic2.vue.d.mts +0 -16
  184. package/bin/types/browser/BrowserApicLib.d.mts +0 -56
  185. package/bin/types/browser/BrowserAudio.vue.d.mts +0 -2
  186. package/bin/types/browser/BrowserJsvLatex.vue.d.mts +0 -55
  187. package/bin/types/browser/BrowserPreload.vue.d.mts +0 -14
  188. package/bin/types/browser/BrowserQrcode.vue.d.mts +0 -29
  189. package/bin/types/browser/BrowserSpray.vue.d.mts +0 -2
  190. package/bin/types/browser/BrowserTextureAnim.vue.d.mts +0 -2
  191. package/bin/types/export-sfc.d.mts +0 -2
  192. package/bin/types/jsview-vue.d.mts +0 -2511
@@ -0,0 +1,223 @@
1
+ export namespace jJsvRuntimeBridge {
2
+ export { getMac };
3
+ export { getWireMac };
4
+ export { getWifiMac };
5
+ export { getDeviceUUID };
6
+ export { getAndroidId };
7
+ export { openWindow };
8
+ export { closePage };
9
+ export { getStartParams };
10
+ export { getSystemProperty };
11
+ export { getInstalledApps };
12
+ export { startNativeApp };
13
+ export { sendNativeBroadcast };
14
+ export { getDeviceInfo };
15
+ export { getAppInfo };
16
+ export { notifyPageLoadDone };
17
+ export { notifyPageLoaded };
18
+ export { hasFavouriteFunction };
19
+ export { addFavourite };
20
+ export { updateFavourite };
21
+ export { removeFavourite };
22
+ export { getFavourite };
23
+ export { getFavouriteAll };
24
+ export { setPopupInitSize };
25
+ export { popupResizePosition };
26
+ export { popupGainFocus };
27
+ export { popupDiscardFocus };
28
+ export { warmUpView };
29
+ export { warmLoadView };
30
+ export { closeWarmedView };
31
+ export { preDownloadSdk };
32
+ }
33
+ /*
34
+ * 获取设备mac地址,优先获取有线mac,无则获取wifi mac
35
+ * @returns {string} mac address
36
+ *
37
+ */
38
+ declare function getMac(): any;
39
+ /*
40
+ * 获取设备有线mac地址
41
+ * @returns {string} mac address
42
+ *
43
+ */
44
+ declare function getWireMac(): any;
45
+ /*
46
+ * 获取设备wifi mac地址
47
+ * @returns {string} mac address
48
+ *
49
+ */
50
+ declare function getWifiMac(): any;
51
+ /*
52
+ * 获取设备UUID
53
+ * @returns {string} UUID
54
+ *
55
+ */
56
+ declare function getDeviceUUID(): any;
57
+ /*
58
+ * 获取设备Android ID
59
+ * @returns {string} Android ID
60
+ *
61
+ */
62
+ declare function getAndroidId(): any;
63
+ /*
64
+ * 打开另外一个小程序
65
+ * @param {string} url 小程序url
66
+ * @param {string} startup_image 启动图url
67
+ * @param {string} startup_video 启动视频url
68
+ * @param {int} startup_duration 启动图时长,默认0
69
+ * @param {int} add_history 是否添加历史,0不添加,1添加
70
+ *
71
+ */
72
+ declare function openWindow(url: any, startup_image: any, startup_video: any, startup_duration: any, add_history: any): void;
73
+ /*
74
+ * 关闭当前小程序
75
+ *
76
+ */
77
+ declare function closePage(): void;
78
+ /*
79
+ * 获取启动内核版本和引擎
80
+ * @returns {Object} 包含
81
+ * COREVERSIONRANGE: 启动时设定的内核版本范围
82
+ * ENGINE: 启动时设定的Js引擎的URL
83
+ */
84
+ declare function getStartParams(): any;
85
+ /*
86
+ * 获取设备UUID
87
+ * @param {string} key 属性名称
88
+ * @returns {string} 属性值
89
+ *
90
+ */
91
+ declare function getSystemProperty(key: any): any;
92
+ /*
93
+ * 获取已安装应用列表
94
+ * @returns {string} 应用列表,JSON结构的数组
95
+ *
96
+ */
97
+ declare function getInstalledApps(): any;
98
+ /*
99
+ * 启动安卓APP
100
+ * @param {string} package_name 包名
101
+ * @param {string} activity Activity方式启动
102
+ * @param {string} action Action方式启动
103
+ * @param {string} uri Uri方式启动
104
+ * @param {Array} flags 数组,用于intent.addFlags
105
+ * @param {Array} param JSON格式数组,用于intent.putExtra
106
+ *
107
+ */
108
+ declare function startNativeApp(package_name: any, activity: any, action: any, uri: any, flags: any, param: any): void;
109
+ declare function sendNativeBroadcast(package_name: any, broadcast: any, action: any, uri: any, flags: any, param: any): void;
110
+ /*
111
+ * 获取设备信息
112
+ * @returns {string} 终端设备信息,JSON数据结构
113
+ *
114
+ */
115
+ declare function getDeviceInfo(): any;
116
+ /*
117
+ * 获取自己的app信息
118
+ * @returns
119
+ */
120
+ declare function getAppInfo(): any;
121
+ /*
122
+ * 页面加载成功后调用去除启动图
123
+ *
124
+ */
125
+ declare function notifyPageLoadDone(): void;
126
+ declare function notifyPageLoaded(): void;
127
+ /*
128
+ * 是否支持收藏功能
129
+ * @returns {boolean} true支持,false不支持
130
+ *
131
+ */
132
+ declare function hasFavouriteFunction(): boolean;
133
+ /*
134
+ * 添加收藏
135
+ * @param {string} url 收藏的url
136
+ * @param {function} callback 执行接口回调, 处理可能被用户否决
137
+ *
138
+ */
139
+ declare function addFavourite(url: any, callback: any): void;
140
+ /*
141
+ * 更新收藏
142
+ * @param {string} url 收藏的url
143
+ * @param {function} callback 执行接口回调, 处理可能被用户否决
144
+ *
145
+ */
146
+ declare function updateFavourite(url: any, callback: any): void;
147
+ /*
148
+ * 删除指定收藏
149
+ * @param {string} app_name app name 唯一标识
150
+ * @param {function} callback 执行接口回调, 处理可能被用户否决
151
+ *
152
+ */
153
+ declare function removeFavourite(app_name: any, callback: any): void;
154
+ /*
155
+ * 获取指定收藏
156
+ * @param {string} app_name app name 唯一标识
157
+ */
158
+ declare function getFavourite(app_name: any): any;
159
+ /*
160
+ * 获取所有收藏
161
+ *
162
+ */
163
+ declare function getFavouriteAll(): any;
164
+ /*
165
+ * 浮窗控制接口,设置从本浮窗界面进行预热的二级浮窗的启动默认尺寸(若不设置则为全屏)
166
+ * @param {string} mode 全屏模式还是需要Resize的模式。取值范围: "full" 或者 "mini"
167
+ * 设置成 "mini" 模式后,启动后的界面内需要调用popupResizePosition来调整尺寸才能可见
168
+ */
169
+ declare function setPopupInitSize(mode: any): void;
170
+ /*
171
+ * 浮窗控制接口,设置浮窗显示区域,以相对定位的方式调整弹出框的位置(弹出框弹出后先以尺寸1x1的方式展现)
172
+ * @param {string} align 横纵对齐方式,有left, right, bottom, top, center可选择
173
+ * 例如: 右下角"right bottom", 居中"center center"
174
+ * @param {number} max_width 显示区域最大宽度(占屏幕百分比)
175
+ * @param {number} max_height 显示区域最大高度(占屏幕百分比)
176
+ * @param {number} aspect 横纵比设定
177
+ * 显示区域根据 max_width, max_height, aspect 来计算出同时满足3个条件的最大区域
178
+ */
179
+ declare function popupResizePosition(align: any, max_width: any, max_height: any, aspect: any): void;
180
+ /*
181
+ * 浮窗系统认为自己准备好后,调用此接口,获取设备的焦点。若不调用的话,默认浮窗系统捕获的焦点
182
+ */
183
+ declare function popupGainFocus(): void;
184
+ declare function popupDiscardFocus(): void;
185
+ /*
186
+ * 页面预热接口,预热页面将会将以一个新的FrameLayout(内含JsView)的方式加载一个新的应用
187
+ * 但这个应用在warmLoadView之前,不会创建texture/surface的实际描画资源,也不会加载图片
188
+ * 仅加载所有JS代码,并正常走完所有启动逻辑(包括描画逻辑),但不会走setTimeout对应的延时逻辑,也不会显示
189
+ * 预热的界面可以极大加速界面切换的时间,例如应用跳转到购物类界面
190
+ * mode为1表示全预热,app_url不能为空,mode为2表示只预热engine url,如果app_url不为空,engine url来自于app_ur
191
+ * 否则来自于当前使用的engine url,app_url表示小程序的链接。
192
+ * 【特别注意】warmUp起来的view,在warmLoadView调用之前,若启动者JsView关闭的话,此View应该在
193
+ * View管理模块被清理掉,以防泄露,但在warmLoadView完成后,就不需要进行关联清理,请管理模块务必保证此机制。
194
+ * [参数]
195
+ * int mode 预热模式,1:全预热,2:半预热
196
+ * String app_url 要预热的app_url,当半预热时,可以为null
197
+ * [返回值]
198
+ * int: 为view_refer_id值,预热后的View的ID,用于后续的warmLoadView和closeWarmView使用
199
+ */
200
+ declare function warmUpView(mode: any, app_url: any): any;
201
+ /*
202
+ * 将warmUpView后的View展示出来
203
+ * 若warmUpView中app_url不为null,进行了全预热,则本调用的app_url可以为null
204
+ * 当warmUpView中设置了app_url时,仍可以新的app_url调整history hash(#)部分进行子页面切换
205
+ *
206
+ * @param {number} view_refer_id warmUpView调用后返回来的View ID
207
+ * @param {string} app_url 界面的应用地址,支持?(search)和#(hash)字段
208
+ * @param {boolean} add_history 启动的界面是否进访问历史列表
209
+ */
210
+ declare function warmLoadView(view_refer_id: any, app_url: any, add_history: any): void;
211
+ /*
212
+ * 关闭warmUp后未进行warmLoad的View,释放资源
213
+ * @param {number} view_refer_id warmUpView调用后返回来的View ID
214
+ */
215
+ declare function closeWarmedView(view_refer_id: any): void;
216
+ /*
217
+ * 触发预下载内核
218
+ * @param {string} core_version 带branch(主分支版本不带此信息)和版本信息的内核版本,
219
+ * 例如: 1021265_release_build_xxx
220
+ * @returns promise 对象,用于监听下载完成与下载失败
221
+ */
222
+ declare function preDownloadSdk(core_version: any): any;
223
+ export {};
@@ -0,0 +1,31 @@
1
+ export class JsvStyleClass {
2
+ constructor(styles_define: any);
3
+ _Name: string | null;
4
+ _Styles: any;
5
+ _StyleGroup: any;
6
+ _JsvInnerAttach: any;
7
+ reset(styles_define: any): void;
8
+ getName(): string | null;
9
+ recycle(): void;
10
+ _UpdateInner(styles_define: any): void;
11
+ _RecycleInner(): void;
12
+ classType(): null;
13
+ getStyles(): any;
14
+ getAttach(): any;
15
+ updateAttach(new_attach: any): void;
16
+ }
17
+ export class JsvTextStyleClass extends JsvStyleClass {
18
+ jsvTextAttributes: {
19
+ jsv_text_line_align: string;
20
+ jsv_text_vertical_align: string;
21
+ };
22
+ setVerticalAlign(new_align: any): void;
23
+ setLineAlign(new_align: any): void;
24
+ getVerticalAlign(): string;
25
+ getLineAlign(): string;
26
+ classType(): string;
27
+ }
28
+ export function combinedStyles(style_array: any, extract_all: any): {
29
+ combinedClass: string;
30
+ combinedStyle: {};
31
+ };
@@ -0,0 +1,15 @@
1
+ /*
2
+ * 【模块 export 内容】
3
+ * JsvStyleSheetsDeclarer: 动态和删除全局的 CssStyle
4
+ * 接口:
5
+ * DeclareClass(className:string, styleProperties:object) 新加全局Class
6
+ * className: 定义的class的名称, 为了规避全局重名,建议用'-'进行区域区分,例如主界面叫 main-xxxx, 详情页用 detail-xxxx
7
+ * styleProperties: 具体的style定义的对象,内部的名字采用驼峰规范
8
+ *
9
+ * UndeclareClass(className:string) 删除全局Class
10
+ * className: 通过 DeclareClass 声明的出来的动态className
11
+ */
12
+ export class JsvStyleSheetsDeclarer {
13
+ static DeclareClass(className: any, styleProperties: any): void;
14
+ static UndeclareClass(className: any): void;
15
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * 获取文字宽度, 一般用于测量文字宽度
3
+ *
4
+ * @param {string} text 文字
5
+ * @param {object} style 文字的css style
6
+ * @return {int} 文字宽度
7
+ **/
8
+ export function getTextWidth(text: any, style: any): any;
9
+ export namespace TextTools {
10
+ export { getOneLineTextDrawWidth };
11
+ export { getTextWidth };
12
+ export { isRtl };
13
+ }
14
+ /*
15
+ * @typedef {object} SliceInfo
16
+ * @property {int} start - 文字起始index
17
+ * @property {int} end - 文字结束index
18
+ * @property {int} width - 文字宽度
19
+ */
20
+ /*
21
+ * @typedef {object} TextInfo
22
+ * @property {int} totalWidth - 文字整体宽度
23
+ * @property {Array<SliceInfo>} sliceInfo - 每段文字的信息
24
+ */
25
+ /*
26
+ * 单行超长文字会切成多个div拼接, 由于jsview坐标的取整机制, 拼接出的width和文字width会产生误差, 此接口会返回拼接后的width
27
+ *
28
+ * @param {string} text 文字
29
+ * @param {object} style 文字的css style
30
+ * @return {TextInfo} 文字信息
31
+ **/
32
+ declare function getOneLineTextDrawWidth(text: any, style: any): {
33
+ totalWidth: any;
34
+ sliceInfo: never[];
35
+ };
36
+ declare function isRtl(str: any): boolean;
37
+ export {};
@@ -0,0 +1,6 @@
1
+ declare class TextureInstantType {
2
+ static Auto: number;
3
+ static Sync: number;
4
+ static Async: number;
5
+ }
6
+ export { TextureInstantType, };
@@ -0,0 +1,95 @@
1
+ import { TextureBase } from "../Texture";
2
+ import { RectPath, CirclePath, CustomPath } from "./Path";
3
+ declare class CanvasTexture extends TextureBase {
4
+ private drawCommands;
5
+ private commited;
6
+ private instantLoad;
7
+ /**
8
+ * canvasTexture
9
+ *
10
+ * @param {int} width 此Canvas画布的宽度
11
+ * @param {int} height 此Canvas画布的高度
12
+ * @param {String|null} baseName 可选, 访问名的前缀信息
13
+ */
14
+ constructor(width: Number, height: Number, baseName: String | null);
15
+ /**
16
+ * clearCanvas
17
+ * 清空canvas
18
+ */
19
+ clearCanvas(): void;
20
+ /**
21
+ * drawColor
22
+ * 将整个Canvas绘制成指定颜色
23
+ *
24
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
25
+ */
26
+ drawColor(color: String): void;
27
+ /**
28
+ * customPath
29
+ * 获得Path操作对象,
30
+ * 在自定义绘制指令后,通过 stroke 或者 fill 来完成绘制
31
+ *
32
+ * @return {CustomPath}
33
+ */
34
+ customPath(): CustomPath | null;
35
+ /**
36
+ * rectPath
37
+ * 获得RectPath操作对象,通过 stroke 或者 fill 来完成绘制
38
+ *
39
+ * @param {Number} left 矩形左上角left
40
+ * @param {Number} top 矩形左上角top
41
+ * @param {Number} right 矩形右下角right
42
+ * @param {Number} bottom 矩形右下角bottom
43
+ * @return {RectPath}
44
+ */
45
+ rectPath(left: Number, top: Number, right: Number, bottom: Number): RectPath | null;
46
+ /**
47
+ * circlePath
48
+ * 获得CirclePath操作对象,通过 stroke 或者 fill 来完成绘制
49
+ *
50
+ * @param {Number} centerX 圆心x
51
+ * @param {Number} centerY 圆心y
52
+ * @param {Number} radius 圆半径
53
+ * @return {CirclePath}
54
+ */
55
+ circlePath(centerX: Number, centerY: Number, radius: Number): CirclePath | null;
56
+ /**
57
+ * drawLine
58
+ * 绘制一条带有抗锯齿信息的直线
59
+ *
60
+ * @param {Number} fromX 绘制起点X
61
+ * @param {Number} fromY 绘制起点Y
62
+ * @param {Number} toX 绘制终点X
63
+ * @param {Number} toY 绘制终点Y
64
+ * @param {Number} lineWidth 线宽
65
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
66
+ */
67
+ drawLine(fromX: Number, fromY: Number, toX: Number, toY: Number, lineWidth: Number, color: String): void;
68
+ /**
69
+ * drawLinearGradientRect
70
+ * 用渐变色填充一个整个Canvas区域
71
+ * TODO: 后续如果有需求填充Canvas中子区域内容时,再加一个参数来指定填充区域
72
+ *
73
+ * @param {int} fromX 绘制起点X
74
+ * @param {int} fromY 绘制起点Y
75
+ * @param {int} toX 绘制终点X
76
+ * @param {int} toY 绘制终点Y
77
+ * @param {Array<String>} colorArray 颜色设定的数组
78
+ * @param {Array<double>} stopsArray 与color数组个数相同,颜色基准点位置
79
+ */
80
+ drawLinearGradientRect(fromX: Number, fromY: Number, toX: Number, toY: Number, colorArray: Array<String>, stopsArray: Array<Number>): void;
81
+ /**
82
+ * setAsyncLoad
83
+ * texture异步加载,让界面不会卡顿
84
+ *
85
+ * @param {int} fromX 绘制起点X
86
+ * @param {int} fromY 绘制起点Y
87
+ * @param {int} toX 绘制终点X
88
+ * @param {int} toY 绘制终点Y
89
+ * @param {Array<String>} colorArray 颜色设定的数组
90
+ * @param {Array<double>} stopsArray 与color数组个数相同,颜色基准点位置
91
+ */
92
+ setAsyncLoad(): void;
93
+ commit(): String;
94
+ }
95
+ export default CanvasTexture;
@@ -0,0 +1,15 @@
1
+ export declare const CMD_INVALID = 0;
2
+ export declare const CMD_ALLOC_CANVAS = 1;
3
+ export declare const CMD_PREPARE_PAINT = 2;
4
+ export declare const CMD_PREPARE_PATH = 3;
5
+ export declare const CMD_CLEAR_CANVAS = 10;
6
+ export declare const CMD_DRAW_COLOR = 11;
7
+ export declare const CMD_DRAW_CIRCLE_WITH_PAINT = 12;
8
+ export declare const CMD_DRAW_RECT_WITH_PAINT = 13;
9
+ export declare const CMD_DRAW_PATH_WITH_PAINT = 14;
10
+ export declare const CMD_DRAW_LINE = 15;
11
+ export declare const CMD_DRAW_LINEAR_GRADIENT_RECT = 16;
12
+ export declare const PATH_CMD_MOVE_TO = 30;
13
+ export declare const PATH_CMD_LINE_TO = 31;
14
+ export declare const PATH_CMD_ARC_TO = 32;
15
+ export declare const PATH_CMD_CLOSE = 33;
@@ -0,0 +1,75 @@
1
+ declare class DrawingPath {
2
+ protected drawCommandsRefs: Array<Object>;
3
+ protected finishedDraw: boolean;
4
+ constructor(drawCmds: Array<Object>);
5
+ /**
6
+ * stroke
7
+ * 绘制边框
8
+ *
9
+ * @param {Number} lineWidth 描边的线宽
10
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
11
+ */
12
+ stroke(lineWidth: Number, color: String): void;
13
+ /**
14
+ * fill
15
+ * 绘制填充
16
+ *
17
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
18
+ */
19
+ fill(color: String): void;
20
+ protected onFinishDraw(): void;
21
+ }
22
+ export declare class RectPath extends DrawingPath {
23
+ private rectLeft;
24
+ private rectTop;
25
+ private rectRight;
26
+ private rectBottom;
27
+ constructor(drawCmds: Array<Object>, left: Number, top: Number, right: Number, bottom: Number);
28
+ onFinishDraw(): void;
29
+ }
30
+ export declare class CirclePath extends DrawingPath {
31
+ private circleCenterX;
32
+ private circleCenterY;
33
+ private circleRadius;
34
+ constructor(drawCmds: Array<Object>, centerX: Number, centerY: Number, radius: Number);
35
+ onFinishDraw(): void;
36
+ }
37
+ export declare class CustomPath extends DrawingPath {
38
+ protected pathCommands: Array<Object> | null;
39
+ constructor(drawCmds: Array<Object>);
40
+ /**
41
+ * moveTo
42
+ * 将画笔移动到目标位置
43
+ *
44
+ * @param {Number} targetX 目标位置x
45
+ * @param {Number} targetY 目标位置y
46
+ */
47
+ moveTo(targetX: Number, targetY: Number): void;
48
+ /**
49
+ * lineTo
50
+ * 将画笔从当前位置到目标位置之间绘制一条直线
51
+ *
52
+ * @param {Number} targetX 目标位置x
53
+ * @param {Number} targetY 目标位置y
54
+ */
55
+ lineTo(targetX: Number, targetY: Number): void;
56
+ /**
57
+ * arcTo
58
+ * 绘制以(left, top, right, bottom)围城的矩形为横轴比的椭圆圆弧
59
+ *
60
+ * @param {Number} left 定义椭圆区域的left
61
+ * @param {Number} top 定义椭圆区域的top
62
+ * @param {Number} right 定义椭圆区域的right
63
+ * @param {Number} bottom 定义椭圆区域的bottom
64
+ * @param {Number} startAngle 起始角度(例如30 = 30度)
65
+ * @param {Number} sweepAngle 扫过的角度(例如要绘制半圆,则设置180)
66
+ */
67
+ arcTo(left: Number, top: Number, right: Number, bottom: Number, startAngle: Number, sweepAngle: Number): void;
68
+ /**
69
+ * close
70
+ * 到此为止的路径进行闭环
71
+ */
72
+ close(): void;
73
+ onFinishDraw(): void;
74
+ }
75
+ export {};
@@ -0,0 +1,24 @@
1
+ /*
2
+ * JsvTextureStoreApi
3
+ * canvasTexture:
4
+ * 创建texture(图片纹理)句柄, 通过 CanvasTexture 的API进行绘制, 使用注意以下几点
5
+ * a. commit() 接口调用之前可以任意绘制, commit之后就无法更改, commit之后才能使用, commit后绘制内容会被全局保存
6
+ * b. commit()的返回是其使用名称, 在div.backgroundImage和img.src中可使用, 格式: jsvtexturestore://commit返回名
7
+ * c.【非常重要】CanvasTexture是全局管理, commit()之后 不会自动释放, 需要手动调用 deleteTexture, 其参数是commit的返回值
8
+ * deleteTexture:
9
+ * 删除全局保存的texture(图片纹理)
10
+ *
11
+ * CanvasTexture的接口(见 ./CanvasTexture/CanvasTexture.ts 的函数头):
12
+ * Path类型: 例如 rectPath, circlePath (见 ./CanvasTexture/Path.ts 的函数头)
13
+ * 通过 canvasTexture.xxxPath() 获得一个path操作对象,然后通过其接口进行游标运动形成绘制路径
14
+ * Path.fill() 或者 Path.stroke 调用前可以移动游标进行路径规划, 一旦fill或者stroke后就不能更改了。
15
+ * 非Path接口: 完成单一绘制动作,例如drawLine, drawColor
16
+ */
17
+ declare let sJsvTextureConst: {
18
+ LEFT: number;
19
+ TOP: number;
20
+ RIGHT: number;
21
+ BOTTOM: number;
22
+ };
23
+ declare let sTextureStoreApi: Object;
24
+ export { sTextureStoreApi as JsvTextureStoreApi, sJsvTextureConst as JsvTextureConst, };
@@ -0,0 +1,10 @@
1
+ import { TextureBase } from "./Texture";
2
+ declare class JsvTextureStore {
3
+ private textureMap;
4
+ constructor();
5
+ addToStore(storeName: String, textureRef: TextureBase): void;
6
+ getFromStore(storeName: String): TextureBase | undefined;
7
+ removeFromStore(storeName: String): TextureBase | undefined;
8
+ }
9
+ declare let sStore: JsvTextureStore;
10
+ export default sStore;
@@ -0,0 +1,15 @@
1
+ export declare class TextureBase {
2
+ private baseName;
3
+ protected textureRef: any;
4
+ storeName: String;
5
+ constructor(baseName: String | null);
6
+ protected addToStore(): void;
7
+ /**
8
+ * commit
9
+ * 完成绘制设置,出发制作目标texture
10
+ *
11
+ * @return {String} BaseName-textureId 格式的名字,用于 jsvtexturestore:// 的访问链接
12
+ */
13
+ commit(): String;
14
+ recycle(): void;
15
+ }
@@ -0,0 +1,21 @@
1
+ export function toHtmlBorderSet(): void;
2
+ /*
3
+ * imageWidth { int } // (必填)原图信息: 原图的宽度(由于正方形,宽高相同)
4
+ * centerWidth { int } // (必填)原图信息: .9图的中心区域宽度(repeat区域)
5
+ * imageDspWidth { int } // (选填)原图缩放后的显示宽度,计算方法:
6
+ * 四角为90度圆弧时: imageDspWidth = 显示图形的圆弧半径 / 原图中圆弧的半径 * 原图宽度
7
+ * 原图中圆弧半径 = (原图宽度 - borderOutset * 2) / 2
8
+ * 四角为其他形状时,原图.9图的四角区域,缩放到要和显示图形重合后的宽度。
9
+ * borderOutset { int } // (必填)原图信息: 图片边缘到中心内容区域边缘的距离, 快速计算: (原图宽度 - 原图中放内容宽度) / 2
10
+ */
11
+ export function toNinePatchForgeViewSet(imageWidth: any, centerWidth: any, imageDspWidth: any, borderOutset: any): {
12
+ padding: {
13
+ start: number;
14
+ width: number;
15
+ };
16
+ repeat: {
17
+ start: number;
18
+ width: number;
19
+ }[];
20
+ imageDspSize: any;
21
+ };
@@ -0,0 +1,2 @@
1
+ export function numberCheckSet(number: any): number;
2
+ export function urlCheckSet(origin_url: any): any;
@@ -0,0 +1,14 @@
1
+ export * from "./JsvHashHistory";
2
+ export * from "./JsvDynamicCssStyle.js";
3
+ export * from "./JsvRuntimeBridge.js";
4
+ export * from "./NinePatchHelper";
5
+ export * from "./TypeCheckAndSet";
6
+ export * from "./JsvRefTaker.js";
7
+ export * from "./JsvStyleClass.js";
8
+ export * from "./JsvStyleSheetsDeclarer.js";
9
+ export * from "./DebugContentShellJBridge.js";
10
+ export * from "./DebugTool.js";
11
+ export * from "./JsvImpactTracer.js";
12
+ export * from "./JsvTextTools.js";
13
+ export * from "./JsvDemoTester.js";
14
+ export { default as DefaultKeyCodeMap } from "./DefaultKeyMap.js";
@@ -0,0 +1,31 @@
1
+ export default ActorControlBase;
2
+ declare class ActorControlBase {
3
+ constructor(params_count: any);
4
+ _Current: any[];
5
+ _Target: any[];
6
+ _ParameterCount: any;
7
+ _StateIndex: number;
8
+ _StateLocked: boolean;
9
+ _StartSwitcher: boolean;
10
+ _StartingParams: any;
11
+ _PausedCallback: any;
12
+ _EndCallback: any;
13
+ _NextEndCallback: any;
14
+ _Token: number;
15
+ _SpriteView: any;
16
+ start(start_params: any, end_callback: any): void;
17
+ pause(paused_callback: any): void;
18
+ startFpsTesting(): void;
19
+ stopFpsTesting(): void;
20
+ altStraightSpeedInner(newSpeedPerSecond: any, time: any): void;
21
+ _WrapBuildAnimation(repeat_start_array: any, current_array: any, tos_array: any, start_params: any): void;
22
+ _WrapAddExtraListener(listener: any, start_params: any): void;
23
+ _WrapCallback(currents: any, callback: any, start_params: any): void;
24
+ _WrapReCalculateCurrent(froms: any, tos: any, progress: any, start_params: any): void;
25
+ _CallbackWithCatch(currents: any, callback: any, start_params: any): void;
26
+ _StateMachineNext(): void;
27
+ _StartAnimation(): true | undefined;
28
+ _StopAnimation(): void;
29
+ _OnPaused(froms: any, tos: any, progress: any, start_params: any): void;
30
+ _SetView(jsv_view: any): void;
31
+ }