@shijiu/jsview-vue 2.2.201 → 2.2.373

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 (299) hide show
  1. package/bin/browser/BrowserApic.vue.mjs +2 -13
  2. package/bin/browser/BrowserApic2.vue.mjs +2 -13
  3. package/bin/browser/BrowserApicLib.mjs +24 -24
  4. package/bin/browser/BrowserAudio.vue.mjs +2 -10
  5. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +21 -5
  6. package/bin/browser/BrowserJsvLatex.vue.mjs +39 -16
  7. package/bin/browser/BrowserPreload.vue.mjs +1 -5
  8. package/bin/browser/BrowserQrcode.vue.mjs +1 -5
  9. package/bin/browser/BrowserSpray.vue.mjs +2 -12
  10. package/bin/browser/BrowserTextureAnim.vue.mjs +2 -12
  11. package/bin/export-sfc.mjs +3 -3
  12. package/bin/jsview-vue-common.mjs +3 -3
  13. package/bin/jsview-vue.mjs +3216 -2086
  14. package/bin/types/JsViewEngineWidget/CheckType.d.ts +4 -0
  15. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +37 -33
  16. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +4 -0
  17. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +15 -2
  18. package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -0
  19. package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +4 -0
  20. package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +14 -3
  21. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +280 -3
  22. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +7 -1
  23. package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +4 -0
  24. package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +4 -0
  25. package/bin/types/JsViewEngineWidget/MetroWidget/Slide.d.ts +4 -0
  26. package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +4 -0
  27. package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +4 -0
  28. package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +4 -0
  29. package/bin/types/JsViewEngineWidget/RangeModel.d.ts +4 -0
  30. package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +4 -0
  31. package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +4 -0
  32. package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +4 -0
  33. package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +4 -0
  34. package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +4 -0
  35. package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
  36. package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +4 -0
  37. package/bin/types/JsViewEngineWidget/index.d.ts +5 -1
  38. package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +4 -0
  39. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +4 -0
  40. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +4 -0
  41. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -0
  42. package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +4 -0
  43. package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +4 -0
  44. package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +4 -0
  45. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +4 -0
  46. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +4 -0
  47. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +4 -0
  48. package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +4 -0
  49. package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +4 -0
  50. package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +5 -0
  51. package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +4 -0
  52. package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -0
  53. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +4 -0
  54. package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +24 -0
  55. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +4 -0
  56. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -0
  57. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +4 -0
  58. package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +5 -0
  59. package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +4 -0
  60. package/bin/types/JsViewPlugin/index.d.ts +4 -0
  61. package/bin/types/JsViewVueTools/ConstSymbol.d.ts +4 -0
  62. package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +4 -0
  63. package/bin/types/JsViewVueTools/DebugTool.d.ts +4 -0
  64. package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +4 -0
  65. package/bin/types/JsViewVueTools/FeatureActive.d.ts +14 -0
  66. package/bin/types/JsViewVueTools/ForgeConstDefine.d.ts +4 -0
  67. package/bin/types/JsViewVueTools/ForgeHandles.d.ts +7 -3
  68. package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +4 -0
  69. package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +20 -1
  70. package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -2
  71. package/bin/types/JsViewVueTools/JsvFederationTools.d.ts +4 -0
  72. package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +4 -0
  73. package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +8 -4
  74. package/bin/types/JsViewVueTools/JsvPerformance.d.ts +4 -0
  75. package/bin/types/JsViewVueTools/JsvPreDownloader.d.ts +24 -2
  76. package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +28 -3
  77. package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +50 -0
  78. package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +4 -0
  79. package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +21 -1
  80. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +85 -27
  81. package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +4 -0
  82. package/bin/types/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
  83. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +4 -0
  84. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +4 -0
  85. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +4 -0
  86. package/bin/types/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +4 -0
  87. package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +30 -4
  88. package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +4 -0
  89. package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
  90. package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +5 -1
  91. package/bin/types/JsViewVueTools/TextureManagerTools.d.ts +11 -0
  92. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +4 -0
  93. package/bin/types/JsViewVueTools/index.d.ts +7 -0
  94. package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +4 -0
  95. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +38 -0
  96. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +4 -0
  97. package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
  98. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +4 -0
  99. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +27 -0
  100. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +4 -0
  101. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +4 -0
  102. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +28 -0
  103. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +4 -0
  104. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +4 -0
  105. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +4 -0
  106. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +4 -0
  107. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +4 -0
  108. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +4 -0
  109. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +4 -0
  110. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +4 -0
  111. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +4 -0
  112. package/bin/types/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +4 -0
  113. package/bin/types/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +4 -0
  114. package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +4 -0
  115. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +4 -0
  116. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +21 -0
  117. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +4 -0
  118. package/bin/types/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
  119. package/bin/types/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -0
  120. package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +4 -0
  121. package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +4 -0
  122. package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +19 -0
  123. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +34 -0
  124. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +106 -0
  125. package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +6 -2
  126. package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +6 -0
  127. package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +48 -1
  128. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +4 -0
  129. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +4 -0
  130. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +4 -0
  131. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +4 -0
  132. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +25 -0
  133. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +22 -0
  134. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +4 -0
  135. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +4 -0
  136. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +4 -0
  137. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +4 -0
  138. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +4 -0
  139. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +4 -0
  140. package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +73 -0
  141. package/bin/types/JsViewVueWidget/JsvHole.d.ts +17 -0
  142. package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +14 -34
  143. package/bin/types/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +48 -0
  144. package/bin/types/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +27 -0
  145. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +64 -209
  146. package/bin/types/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
  147. package/bin/types/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +14 -0
  148. package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
  149. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +20 -0
  150. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +4 -0
  151. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +4 -0
  152. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +21 -0
  153. package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +20 -0
  154. package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +4 -0
  155. package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +7 -1
  156. package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +4 -0
  157. package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +90 -0
  158. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +4 -0
  159. package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +4 -0
  160. package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +24 -0
  161. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +30 -0
  162. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +17 -0
  163. package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +17 -0
  164. package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +18 -0
  165. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +4 -0
  166. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +42 -0
  167. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +4 -0
  168. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +19 -0
  169. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +4 -0
  170. package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +25 -0
  171. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +4 -0
  172. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +24 -0
  173. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  174. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +45 -0
  175. package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +4 -0
  176. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +18 -0
  177. package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +4 -0
  178. package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +4 -0
  179. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
  180. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +4 -0
  181. package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +4 -0
  182. package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +18 -0
  183. package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +42 -0
  184. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +4 -0
  185. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +40 -0
  186. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +4 -0
  187. package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +4 -0
  188. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +52 -0
  189. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +16 -0
  190. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +4 -0
  191. package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +4 -0
  192. package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +4 -0
  193. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +4 -0
  194. package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +39 -0
  195. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +4 -0
  196. package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +24 -0
  197. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +4 -0
  198. package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +26 -0
  199. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +4 -0
  200. package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +4 -0
  201. package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +7 -2
  202. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  203. package/bin/types/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +100 -0
  204. package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +25 -0
  205. package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +4 -0
  206. package/bin/types/JsViewVueWidget/index.d.ts +6 -0
  207. package/bin/types/index.d.ts +4 -0
  208. package/index.d.ts +8 -0
  209. package/package.json +1 -1
  210. package/tools/config/toolkit.mjs +81 -0
  211. package/tools/config/tsconfig.json +1 -0
  212. package/tools/config/vite.config.ts +24 -14
  213. package/tools/jsview-vue-build.mjs +66 -21
  214. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +6 -2
  215. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +22 -3
  216. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +3 -1
  217. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +12 -5
  218. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +208 -84
  219. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +15 -9
  220. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -2
  221. package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
  222. package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
  223. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +13 -3
  224. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +27 -6
  225. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +34 -28
  226. package/utils/JsViewPlugin/JsvLatex/index.js +22 -0
  227. package/utils/JsViewVueTools/FeatureActive.ts +84 -0
  228. package/utils/JsViewVueTools/ForgeHandles.ts +7 -3
  229. package/utils/JsViewVueTools/JsvDynamicCssStyle.js +2 -0
  230. package/utils/JsViewVueTools/JsvDynamicKeyFrames.ts +2 -0
  231. package/utils/JsViewVueTools/JsvImpactTracer.js +2 -0
  232. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -1
  233. package/utils/JsViewVueTools/JsvRefTaker.js +1 -2
  234. package/utils/JsViewVueTools/JsvRuntimeBridge.js +67 -1
  235. package/utils/JsViewVueTools/JsvStyleClass.js +2 -0
  236. package/utils/JsViewVueTools/JsvStyleSheetsDeclarer.js +2 -0
  237. package/utils/JsViewVueTools/JsvTextTools.ts +223 -0
  238. package/utils/JsViewVueTools/JsvTextureLoadTool.ts +233 -0
  239. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +4 -1
  240. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +7 -3
  241. package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +1 -0
  242. package/utils/JsViewVueTools/TextureManagerTools.ts +17 -0
  243. package/utils/JsViewVueTools/index.js +3 -0
  244. package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -0
  245. package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +10 -2
  246. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +12 -1
  247. package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +4 -2
  248. package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +2 -0
  249. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +219 -0
  250. package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +11 -9
  251. package/utils/JsViewVueWidget/JsvFilterView.vue +2 -0
  252. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +5 -2
  253. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +145 -0
  254. package/utils/JsViewVueWidget/JsvFlexCell/index.js +2 -5
  255. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +39 -12
  256. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +210 -62
  257. package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +9 -0
  258. package/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue +2 -0
  259. package/utils/JsViewVueWidget/JsvGrid.vue +2 -0
  260. package/utils/JsViewVueWidget/JsvHole.js +2 -0
  261. package/utils/JsViewVueWidget/JsvInput/Cursor.vue +49 -45
  262. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +320 -0
  263. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +222 -0
  264. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +281 -681
  265. package/utils/JsViewVueWidget/JsvInput/SharedDefine.ts +17 -0
  266. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +47 -0
  267. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +2 -0
  268. package/utils/JsViewVueWidget/JsvMarquee.vue +2 -0
  269. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +2 -0
  270. package/utils/JsViewVueWidget/JsvMindMap/DataTree.ts +14 -1
  271. package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +277 -117
  272. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +91 -68
  273. package/utils/JsViewVueWidget/JsvNinePatch.vue +5 -0
  274. package/utils/JsViewVueWidget/JsvPieChart.vue +2 -0
  275. package/utils/JsViewVueWidget/JsvPosterDiv.vue +2 -0
  276. package/utils/JsViewVueWidget/JsvPosterImage.vue +2 -0
  277. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +2 -0
  278. package/utils/JsViewVueWidget/JsvProgressBar.vue +2 -0
  279. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +10 -11
  280. package/utils/JsViewVueWidget/JsvRadarChart.vue +2 -0
  281. package/utils/JsViewVueWidget/JsvRipple/Constant.js +2 -2
  282. package/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue +3 -1
  283. package/utils/JsViewVueWidget/JsvScaleTextBox.vue +2 -0
  284. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +9 -0
  285. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +9 -0
  286. package/utils/JsViewVueWidget/JsvSector.vue +2 -0
  287. package/utils/JsViewVueWidget/JsvSoundPool.js +2 -0
  288. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +30 -13
  289. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +2 -0
  290. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue +2 -0
  291. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +2 -0
  292. package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +2 -0
  293. package/utils/JsViewVueWidget/JsvTextBox.vue +2 -4
  294. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +44 -41
  295. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +101 -0
  296. package/utils/JsViewVueWidget/JsvVideo.vue +2 -2
  297. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +2 -0
  298. package/utils/JsViewVueWidget/index.js +2 -0
  299. package/utils/JsViewVueTools/JsvTextTools.js +0 -89
@@ -291,12 +291,12 @@ abstract class MetroTemplate {
291
291
  if (this.direction == VERTICAL) {
292
292
  return {
293
293
  width: this.lineMax,
294
- height: lastItem.height + lastItem.top - 1,
294
+ height: lastItem.height + lastItem.top - 1 + 1,
295
295
  }
296
296
  } else {
297
297
  return {
298
298
  height: this.lineMax,
299
- width: lastItem.width + lastItem.left - 1,
299
+ width: lastItem.width + lastItem.left - 1 + 1,
300
300
  }
301
301
  }
302
302
  } else {
@@ -16,7 +16,7 @@ let PluginInfo = {
16
16
  listener: "top.JsvAudioPluginLoadResult", //插件加载结果回调
17
17
  listener2: "top.JsvAudioPluginStatus",
18
18
  // debug:true,
19
- // md5:"baafc8ea737adcad5443f44cc0112498"
19
+ md5: "5ab9bfbec33034a6a26df7c1187b3c8f"
20
20
  };
21
21
 
22
22
  // 不要用export default,update-env脚本不能解析
@@ -16,7 +16,7 @@ let PluginInfo = {
16
16
  listener: "top.JsvAudioPluginLoadResult", //插件加载结果回调
17
17
  listener2: "top.JsvAudioPluginStatus",
18
18
  // debug:true,
19
- // md5:"baafc8ea737adcad5443f44cc0112498"
19
+ md5: "5ab9bfbec33034a6a26df7c1187b3c8f" // 插件的md5, 此信息是内网场景回使用,一定要对齐md5
20
20
  };
21
21
 
22
22
  // 不要用export default,update-env脚本不能解析
@@ -2,10 +2,18 @@ export const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) =>
2
2
  return (
3
3
  `<html>
4
4
  <head>
5
+ <style>
6
+ mjx-container[display="true"] {
7
+ margin: 0 0 !important;
8
+ }
9
+ body {
10
+ margin: 0 !important;
11
+ }
12
+ </style>
5
13
  <script type="text/javascript">
6
14
  MathJax = {
7
15
  tex: {
8
- inlineMath: [['$', '$'], ['\\(', '\\)']]
16
+ inlineMath: [['$', '$'], ['\\\\(', '\\\\)']]
9
17
  },
10
18
  svg: {
11
19
  fontCache: 'global'
@@ -16,13 +24,15 @@ export const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) =>
16
24
  divElement.style.display = "inline-block";
17
25
  divElement.style.fontSize = "${fontSize}px";
18
26
  divElement.style.color = "${color}";
19
- divElement.innerHTML = String.raw\`$$${latexStr}$$\`;
27
+ divElement.innerHTML = String.raw\`${latexStr}\`;
28
+ //divElement.style.width = ${width} + "px";
20
29
  document.body.appendChild(divElement);
21
30
 
22
31
  MathJax.typesetPromise().then(() => {
23
32
  // modify the DOM here
24
33
  let formulaMetrics = MathJax.getMetricsFor(divElement, true);
25
- let scale = ${width} / divElement.clientWidth;
34
+ let w = Math.min(${width}, divElement.clientWidth);
35
+ let scale = w / divElement.clientWidth;
26
36
  divElement.style.fontSize = Math.floor(scale * ${fontSize}) + "px";
27
37
  MathJax.typeset();
28
38
  }).catch((err) => console.error(err.message));
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  // import "./mathjax-tex-svg.js";
3
3
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
4
- import { shallowRef, onBeforeUnmount } from "vue";
4
+ import { ref, shallowRef, onBeforeUnmount } from "vue";
5
5
  import { getHtmlStr } from "./BrowserDomBuilder.js";
6
6
 
7
7
  const props = defineProps({
@@ -39,20 +39,39 @@ const props = defineProps({
39
39
  },
40
40
  });
41
41
 
42
+ function precessString(original) {
43
+ return (
44
+ "\\[\\begin{array}{l}" +
45
+ original.replaceAll(/\\[\(\)\[\]]/g, "") +
46
+ "\\end{array}\\]"
47
+ );
48
+ }
42
49
  let innerViewId = shallowRef(-1);
50
+ const clientWidth = ref(props.width);
51
+ const clientHeight = ref(props.height);
43
52
 
44
53
  let layoutView = new Forge.IFrameView();
45
54
  layoutView.SetIframeSize(props.width, props.height);
46
55
  layoutView.SetInnerHtml(
47
56
  getHtmlStr(
48
57
  "https://qcast-image.oss-cn-qingdao.aliyuncs.com/JsViewTestResource/DocResource/mathjax-tex-svg.txt",
49
- props.latexStr,
58
+ precessString(props.latexStr),
50
59
  props.fontSize,
51
60
  props.width,
52
61
  props.height,
53
62
  props.color
54
63
  )
55
64
  );
65
+ const resizeObserver = new ResizeObserver(entries => {
66
+ if (entries.length > 0) {
67
+ const e = entries[0];
68
+ if (clientHeight.value == 0) {
69
+ clientHeight.value = e.contentRect.height
70
+ }
71
+ }
72
+ });
73
+ resizeObserver.observe(layoutView.GetIFrame());
74
+
56
75
  innerViewId.value = Forge.sViewStore.add(new Forge.ViewInfo(layoutView));
57
76
 
58
77
  onBeforeUnmount(() => {
@@ -61,16 +80,18 @@ onBeforeUnmount(() => {
61
80
  innerViewId.value = -1;
62
81
  console.log("success remove innerview");
63
82
  }
83
+ resizeObserver.unobserve(layoutView.GetIFrame())
64
84
  });
65
85
  </script>
66
86
  <template>
67
87
  <div
68
- :data-jsv-vw-innerview="innerViewId"
69
88
  :style="{
70
89
  left: left,
71
90
  top: top,
72
- width: width,
73
- height: height,
91
+ width: clientWidth,
92
+ height: clientHeight,
74
93
  }"
75
- ></div>
94
+ >
95
+ <div :data-jsv-vw-innerview="innerViewId"></div>
96
+ </div>
76
97
  </template>
@@ -5,21 +5,24 @@
5
5
  -->
6
6
 
7
7
  <!--
8
- [界面概述]
9
- 思维导图控件
10
-
11
- [控件介绍]
12
- JsvLatex:
13
- props:
14
- latexStr: {string} latex公式
15
- fontSize: {function} 字号
16
- left: {number} left
17
- top: {number} top
18
- width: {number} width
19
- height: {number} height
20
- lineSpace: {number} 行距
21
- color: {string} 文字颜色
22
- -->
8
+ * @file
9
+ *
10
+ * [界面概述]
11
+ * 思维导图控件
12
+ * [控件介绍]
13
+ * JsvLatex:
14
+ * props:
15
+ * latexStr: {string} latex公式
16
+ * fontSize: {function} 字号
17
+ * left: {number} left
18
+ * top: {number} top
19
+ * width: {number} width
20
+ * height: {number} height
21
+ * lineSpace: {number} 行距
22
+ * color: {string} 文字颜色
23
+ * [注意事项]
24
+ * 1. 盒子端的字符串是直接作为数学公式解析的, 所以需要将\n替换为\\, 需要前端自己处理, 这里提供了一个辅助方法processLatexStr来处理简单的情况
25
+ -->
23
26
  <script setup>
24
27
  import { onBeforeUnmount, ref } from "vue";
25
28
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
@@ -67,13 +70,13 @@ const props = defineProps({
67
70
 
68
71
  const show = ref(false);
69
72
  let innerViewId = -1;
70
- let clientWidth = props.width;
71
- let clientHeight = props.height;
73
+ let clientWidth = ref(props.width);
74
+ let clientHeight = ref(props.height);
72
75
 
73
76
  const getClientSize = () => {
74
77
  return {
75
- width: clientWidth,
76
- height: clientHeight,
78
+ width: clientWidth.value,
79
+ height: clientHeight.value,
77
80
  };
78
81
  };
79
82
  const showView = () => {
@@ -104,15 +107,18 @@ const showView = () => {
104
107
  );
105
108
 
106
109
  pluginTexture.RegisterLoadImageCallback(null, (data) => {
110
+ console.log("testtest texture load callback", data);
107
111
  tryUpdateClientSize(data.width, data.height);
108
112
  });
109
113
 
110
114
  const tryUpdateClientSize = (textureW, textureH) => {
111
- if (props.width != 0 && props.height == 0) {
112
- clientHeight = Math.round(props.width * (textureH / textureW));
113
- } else if (props.height != 0 && props.width == 0) {
114
- clientWidth = Math.round(props.height * (textureW / textureH));
115
+ console.log("testtet latex texture size", textureW, textureH);
116
+ if (textureW <= 0 || textureH <= 0) {
117
+ console.warn("JsvLatex get empth texture", textureW, textureH);
118
+ return;
115
119
  }
120
+ clientWidth.value = Math.min(textureW, props.width);
121
+ clientHeight.value = Math.round(clientWidth.value * (textureH / textureW));
116
122
  };
117
123
 
118
124
  let layoutView = new Forge.LayoutView(
@@ -149,13 +155,13 @@ defineExpose({
149
155
 
150
156
  <template>
151
157
  <div
152
- v-if="show"
153
- :data-jsv-vw-innerview="innerViewId"
154
158
  :style="{
155
159
  left: left,
156
160
  top: top,
157
- width: width,
158
- height: height,
161
+ width: clientWidth,
162
+ height: clientHeight,
159
163
  }"
160
- ></div>
164
+ >
165
+ <div v-if="show" :data-jsv-vw-innerview="innerViewId"></div>
166
+ </div>
161
167
  </template>
@@ -17,7 +17,29 @@ const globalLoadJsvLatexPlugin = (listener) => {
17
17
  }
18
18
  }
19
19
 
20
+ function processLatexStr(origin) {
21
+ //只将数学环境外的换行替换为\\
22
+ if (typeof origin !== "string") {
23
+ return null;
24
+ }
25
+ const index1 = origin.indexOf("\\begin");
26
+ const index2 = origin.indexOf("}", origin.lastIndexOf("\\end"));
27
+ if (index1 >= 0) {
28
+ const head = origin.substring(0, index1);
29
+ const middle = origin.substring(index1, index2 + 1);
30
+ const tail = origin.substring(index2 + 1);
31
+ return (
32
+ head.replaceAll(/(?<!\\\\)[\n]+/g, "\\\\") +
33
+ middle +
34
+ tail.replaceAll(/(?<!\\\\)[\n]+/g, "\\\\")
35
+ );
36
+ } else {
37
+ return origin.replaceAll(/(?<!\\\\)[\n]+/g, "\\\\");
38
+ }
39
+ }
40
+
20
41
  export {
21
42
  JsvLatex,
43
+ processLatexStr,
22
44
  globalLoadJsvLatexPlugin,
23
45
  }
@@ -0,0 +1,84 @@
1
+ import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
2
+
3
+ // 记录已激活内容,减少激活的重复调用,提高执行性能
4
+ let sActivedMap = new Map();
5
+ let sDisabledMap = new Map();
6
+
7
+ // Component名称列表, 注意大小写
8
+ namespace FeatureNames {
9
+ // 'TouchReceiver': 触屏支持
10
+ export const TouchReceiver: String = "TouchReceiver";
11
+
12
+ // 'FreeMoveDiv': 游戏类平滑动画组件
13
+ export const FreeMoveDiv: String = "FreeMoveDiv";
14
+
15
+ // 'CustomFragShader': 内容3D化效果组件
16
+ export const CustomFragShader: String = "CustomFragShader";
17
+
18
+ // 'Capture2Texture': div拷屏
19
+ export const Capture2Texture: String = "Capture2Texture";
20
+ }
21
+
22
+ // 激活内核中的模块
23
+ // 特别注意:
24
+ // 此接口调用时,请联系我们确认所在渠道此功能被搭载并已经获取了授权后再调用
25
+ //
26
+ // 场景1: 强制激活未授权的组件
27
+ // 如果激活未授权的组件,屏幕会有未授权的组件列表水印出现
28
+ // 并且如果所在渠道的内核不带此功能的话,会引起崩溃一系列问题
29
+ //
30
+ // 场景2: 未激活组件,而实际使用
31
+ // 组件使用时会自动调用 JsvUseFeature 来确认是否激活
32
+ // 若未激活则,会有console.error提示,并且内核中此功能也不会工作(此处也规避了内核可能未搭载组件而崩溃的问题)
33
+ function JsvActiveFeature(comp_name: String) {
34
+ if (sActivedMap.has(comp_name)) {
35
+ // 已经激活过
36
+ return;
37
+ }
38
+
39
+ if (sDisabledMap.has(comp_name)) {
40
+ console.error(`Error: feature ${comp_name} is disabled`);
41
+ return;
42
+ }
43
+
44
+ sActivedMap.set(comp_name, comp_name); // 记录已激活内容
45
+
46
+ console.log(`feature ${comp_name} enable`);
47
+ Forge.sRenderBridge.ActiveComponent(comp_name);
48
+ }
49
+
50
+ // 模块内部调用,确保要使用功能时,功能已经授权并激活
51
+ function JsvUseFeature(from: String, comp_name: String) {
52
+ if (sActivedMap.has(comp_name)) {
53
+ return;
54
+ }
55
+
56
+ console.error(`Error: ${comp_name}(from ${from}) is not activated, need JsvActiveFeature(JsvFeatureNames.${comp_name}) in boot`);
57
+ }
58
+
59
+ // 备用接口: 防止未授权组件被错误激活引起的崩溃和水印显示
60
+ function JsvShutdownFeatures(comp_name_list: Array<String>) {
61
+ if (sActivedMap.size > 0) {
62
+ console.log(`Error: JsvShutdownFeatures should call before any JsvActiveFeature()`);
63
+ return;
64
+ }
65
+
66
+ let merged_comps: Array<String> = [];
67
+ for (let i = 0; i < comp_name_list.length; i++) {
68
+ let comp_name: String = comp_name_list[i];
69
+
70
+ // 记录变更信息,一旦记入disable列表,则不可被active,且原active会失效
71
+ sDisabledMap.set(comp_name, comp_name);
72
+ merged_comps.push(comp_name_list[i]);
73
+ console.log(`feature ${comp_name} disable`);
74
+ }
75
+ Forge.sRenderBridge.ShutdownComponents(JSON.stringify(merged_comps));
76
+ }
77
+
78
+ export {
79
+ FeatureNames,
80
+ FeatureNames as JsvFeatureNames,
81
+ JsvActiveFeature,
82
+ JsvUseFeature,
83
+ JsvShutdownFeatures
84
+ }
@@ -1,14 +1,18 @@
1
- let handles = {
1
+ let handles: {
2
+ TextureManager: any,
3
+ RootView: any,
4
+ RootActivity: any
5
+ } = {
2
6
  TextureManager: null,
3
7
  RootView: null,
4
8
  RootActivity: null
5
9
  }
6
10
 
7
11
  const jsvCode = (window as any).JsvCode;
8
- jsvCode.ForgeHandles.listenToReady(()=>{
12
+ jsvCode.ForgeHandles.listenToReady(() => {
9
13
  handles.TextureManager = jsvCode.ForgeHandles.TextureManager;
10
14
  handles.RootView = jsvCode.ForgeHandles.RootView;
11
- handles.RootActivity = jsvCode.ForgeHandles.RootActivity;
15
+ handles.RootActivity = jsvCode.ForgeHandles.RootActivity;
12
16
  })
13
17
 
14
18
  export default handles;
@@ -3,6 +3,8 @@
3
3
  */
4
4
 
5
5
  /*!
6
+ * @file
7
+ *
6
8
  * 【模块 export 内容】
7
9
  * CssStyleSheet:面向对象类,CSS rule的操作器,用于添加和删除CssStyle,服务于JsvStyleClass
8
10
  * 接口:
@@ -3,6 +3,8 @@
3
3
  */
4
4
 
5
5
  /*!
6
+ * @file
7
+ *
6
8
  * 【模块 export 内容】
7
9
  * getKeyFramesGroup: 函数,获取KeyFrame操作类 KeyFrameStyleSheet
8
10
  * KeyFrameStyleSheet:面向对象类,KeyFrames CSS rule的操作类,用于添加和删除KeyFrame
@@ -10,6 +10,8 @@
10
10
  */
11
11
 
12
12
  /*!
13
+ * @file
14
+ *
13
15
  * 【模块 export 内容】
14
16
  * createImpactTracer: 函数,创建碰撞跟踪对象
15
17
  * createImpactCallback: 函数,创建碰撞发生后的回调函数
@@ -1,5 +1,6 @@
1
1
  /*!
2
- * JsvPreDownloader 通用下载器,可以在不同的环境中进行资源下载操作。
2
+ * @file JsvPreDownloader 通用下载器,可以在不同的环境中进行资源下载操作。
3
+ *
3
4
  * JsvPreDownloader.download:实例方法,根据传入参数来下载资源。支持单个url或者url列表,返回Promise对象。
4
5
  * 参数:
5
6
  * url {string | Array}: (必填)图片url
@@ -1,7 +1,6 @@
1
1
 
2
2
  /*!
3
- *******************
4
- * JsvRefTaker模块
3
+ * @file JsvRefTaker模块
5
4
  *
6
5
  * 用于解决 script setup 写法,不容易通过 this.$ref.xxxx 拿到子模块的句柄,
7
6
  * 但使用ref(null)的方式构筑的深度reactive对象又会严重影响element的内部处理性能的问题
@@ -1,3 +1,7 @@
1
+ /*!
2
+ @file JsvRuntimeBridge.js
3
+ */
4
+
1
5
  let feature_supports = null;
2
6
 
3
7
  let direct_call_map = {};
@@ -540,6 +544,62 @@ function unRegisterNetStateListener(callback){
540
544
  return direct_call("unRegisterNetStateListener", callback);
541
545
  }
542
546
 
547
+ function getSnId(){
548
+ return direct_call("getSnId");
549
+ }
550
+
551
+ function getEmmcCid(){
552
+ return direct_call("getEmmcCid");
553
+ }
554
+
555
+ /**
556
+ * android ContentProvider 查询接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.query 接口
557
+ * @param {string} uri
558
+ * @param {string} projection
559
+ * @param {string} selection
560
+ * @param {string[]} selectionArgs
561
+ * @param {string} sortOrder
562
+ * @returns
563
+ */
564
+ function providerQuery(uri,projection,selection,selectionArgs,sortOrder){
565
+ let jsonProjection = projection?JSON.stringify(projection):null
566
+ let jsonSelectionArgs = selectionArgs?JSON.stringify(selectionArgs):null
567
+ return direct_call("providerQuery",uri,jsonProjection,selection,jsonSelectionArgs,sortOrder);
568
+ }
569
+
570
+ /**
571
+ * android ContentProvider 插入接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.insert 接口
572
+ * @param {string} uri
573
+ * @param {object} contentValue
574
+ * @returns
575
+ */
576
+ function providerInsert(uri,contentValue){
577
+ return direct_call("providerInsert",uri,contentValue?JSON.stringify(contentValue):null)
578
+ }
579
+
580
+ /**
581
+ * android ContentProvider 删除接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.delete 接口
582
+ * @param {string} uri
583
+ * @param {string} selection
584
+ * @param {string[]} selectionArgs
585
+ * @returns
586
+ */
587
+ function providerDelete(uri,selection,selectionArgs){
588
+ return direct_call("providerDelete",uri,selection,selectionArgs?JSON.stringify(selectionArgs):null)
589
+ }
590
+
591
+ /**
592
+ * android ContentProvider 更新接口,参数与返回值与官方接口相同。详情查看官方的 android.content.ContentProvider.update 接口
593
+ * @param {string} uri
594
+ * @param {object} contentValue
595
+ * @param {string} selection
596
+ * @param {string[]} selectionArgs
597
+ * @returns
598
+ */
599
+ function providerUpdate(uri,contentValue,selection,selectionArgs){
600
+ return direct_call("providerUpdate",uri,contentValue?JSON.stringify(contentValue):null,selection,selectionArgs?JSON.stringify(selectionArgs):null)
601
+ }
602
+
543
603
 
544
604
  // 显示声明,可以提高执行速度和利用上编辑器的成员名提示功能
545
605
  const bridge = {
@@ -579,7 +639,13 @@ const bridge = {
579
639
  preDownloadSdk,
580
640
  getNetworkTypeStatusImmediate,
581
641
  registerNetStateListener,
582
- unRegisterNetStateListener
642
+ unRegisterNetStateListener,
643
+ getSnId,
644
+ getEmmcCid,
645
+ providerQuery,
646
+ providerInsert,
647
+ providerDelete,
648
+ providerUpdate
583
649
  };
584
650
 
585
651
  export {
@@ -3,6 +3,8 @@
3
3
  */
4
4
 
5
5
  /*!
6
+ * @file
7
+ *
6
8
  * 【模块 export 内容】
7
9
  * JsvStyleClass:面向对象类,定义一组可以复用的Style,模拟css中的.class的概念
8
10
  * 功能函数:(参数说明见函数本体)
@@ -1,5 +1,7 @@
1
1
 
2
2
  /*!
3
+ * @file
4
+ *
3
5
  * 【模块 export 内容】
4
6
  * JsvStyleSheetsDeclarer: 动态和删除全局的 CssStyle
5
7
  * 接口: