@shijiu/jsview-vue 2.2.373 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/bin/jsview-vue-common.mjs +1 -1
  2. package/bin/jsview-vue.mjs +7678 -7306
  3. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
  4. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
  5. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
  6. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -4
  7. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +8 -0
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +5 -0
  10. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
  11. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +24 -14
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +179 -0
  13. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +9 -6
  14. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
  15. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +3 -4
  16. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
  17. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
  18. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
  19. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  20. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
  21. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
  22. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
  23. package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  24. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
  25. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
  26. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
  27. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
  28. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
  29. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
  30. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
  31. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
  32. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
  33. package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
  34. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
  35. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
  36. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
  37. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
  38. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
  39. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
  40. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
  41. package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
  42. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
  43. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
  44. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
  45. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -4
  46. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
  47. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +5 -9
  48. package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
  49. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +5 -29
  50. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
  51. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
  52. package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
  53. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
  54. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
  55. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -4
  56. package/bin/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
  57. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
  58. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +596 -0
  59. package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  60. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
  61. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
  62. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
  63. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
  64. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
  65. package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  66. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
  67. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
  68. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
  69. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
  70. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
  71. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
  72. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
  73. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
  74. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
  75. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
  76. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
  77. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
  78. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
  79. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
  80. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
  81. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
  82. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +6 -8
  83. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
  84. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
  85. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
  86. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
  87. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
  88. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
  89. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
  90. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +20 -3
  91. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
  92. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +1 -23
  93. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
  94. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
  95. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
  96. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
  97. package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
  98. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -6
  99. package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +120 -0
  100. package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +144 -0
  101. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
  102. package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
  103. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
  104. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
  105. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
  106. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
  107. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +50 -0
  108. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
  109. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
  110. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +23 -0
  111. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
  112. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
  113. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
  114. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
  115. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
  116. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
  117. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
  118. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
  119. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
  120. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
  121. package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
  122. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
  123. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
  124. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
  125. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
  126. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -8
  127. package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
  128. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
  129. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +6 -25
  130. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
  131. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +78 -0
  132. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
  133. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +1 -4
  134. package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
  135. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
  136. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
  137. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
  138. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
  139. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +12 -37
  140. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +6 -28
  141. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
  142. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
  143. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
  144. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
  145. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +1 -4
  146. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
  147. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
  148. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
  149. package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
  150. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +2 -6
  151. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
  152. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
  153. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
  154. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
  155. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
  156. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
  157. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
  158. package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
  159. package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
  160. package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
  161. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
  162. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
  163. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
  164. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
  165. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +12 -95
  166. package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
  167. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
  168. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
  169. package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
  170. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
  171. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +3 -17
  172. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +3 -18
  173. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
  174. package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
  175. package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
  176. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
  177. package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
  178. package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  179. package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
  180. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
  181. package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
  182. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
  183. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
  184. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
  185. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
  186. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
  187. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
  188. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
  189. package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +11 -0
  190. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
  191. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
  192. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
  193. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
  194. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
  195. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
  196. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
  197. package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  198. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +0 -39
  199. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
  200. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  201. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
  202. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
  203. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
  204. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
  205. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -4
  206. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  207. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
  208. package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  209. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +9 -34
  210. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +9 -13
  211. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -6
  212. package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
  213. package/index.d.ts +2 -2
  214. package/package.json +1 -1
  215. package/tools/jsview-vue-build.mjs +3 -2
  216. package/tsconfig.json +27 -0
  217. package/utils/JsViewEngineWidget/CheckType.js +3 -3
  218. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +25 -6
  219. package/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue +22 -0
  220. package/utils/JsViewEngineWidget/MetroWidget/DebugTools.ts +37 -0
  221. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +42 -7
  222. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +62 -10
  223. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +177 -77
  224. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +30 -0
  225. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
  226. package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
  227. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
  228. package/utils/JsViewPlugin/JsvPlayer/AckEventDefine.ts +82 -0
  229. package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +49 -31
  230. package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
  231. package/utils/JsViewVueTools/JsvRuntimeBridge.js +82 -73
  232. package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
  233. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -2
  234. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +1 -1
  235. package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
  236. package/utils/JsViewVueTools/index.js +1 -2
  237. package/utils/JsViewVueWidget/Jsv3dDiv.vue +85 -0
  238. package/utils/JsViewVueWidget/Jsv3dStage.vue +50 -0
  239. package/utils/JsViewVueWidget/JsvApic/JsvApic/index.js +1 -8
  240. package/utils/JsViewVueWidget/JsvApic/JsvApic2/index.js +1 -8
  241. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +1 -1
  242. package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +151 -0
  243. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +11 -16
  244. package/utils/JsViewVueWidget/JsvFlexCell/index.js +1 -0
  245. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
  246. package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
  247. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +8 -0
  248. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +48 -15
  249. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
  250. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
  251. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
  252. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -57
  253. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +57 -71
  254. package/utils/JsViewVueWidget/JsvPosterDiv.vue +15 -8
  255. package/utils/JsViewVueWidget/JsvPosterImage.vue +12 -3
  256. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
  257. package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
  258. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +3 -2
  259. package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
  260. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +116 -75
  261. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
  262. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +27 -32
  263. package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
  264. package/utils/JsViewVueWidget/index.js +4 -2
  265. package/bin/browser/BrowserApic.vue.mjs +0 -114
  266. package/bin/browser/BrowserApic2.vue.mjs +0 -108
  267. package/bin/browser/BrowserApicLib.mjs +0 -431
  268. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
  269. package/bin/browser/BrowserPreload.vue.mjs +0 -139
  270. package/bin/browser/BrowserQrcode.vue.mjs +0 -176
  271. package/bin/browser/BrowserSpray.vue.mjs +0 -56
  272. package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
  273. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
  274. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
  275. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
  276. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
  277. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
  278. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
  279. package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +0 -6
  280. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
  281. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
  282. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
  283. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
  284. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
  285. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
  286. package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
  287. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
  288. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
  289. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
  290. package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
  291. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
  292. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
  293. package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
  294. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
  295. package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
  296. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
  297. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
  298. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
  299. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
  300. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
  301. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
  302. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
  303. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
  304. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
  305. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
  306. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
  307. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
  308. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
  309. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
  310. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
  311. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
  312. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
  313. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
  314. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
  315. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
  316. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
  317. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
  318. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
  319. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
  320. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
  321. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
  322. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
  323. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
  324. package/tools/config/tsconfig.json +0 -16
  325. package/utils/JsViewVueTools/JsvDemoTester.js +0 -81
  326. package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
  327. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
  328. package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
  329. package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
  330. package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
  331. package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
  332. package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
  333. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
  334. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
  335. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
  336. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
@@ -1,7 +1,9 @@
1
1
  <script>
2
2
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
3
+ import { AckEventDefine } from "./AckEventDefine.ts";
3
4
  import playerExMethods from "./JsvMediaBrowserInterface.js";
4
5
  import { shallowRef } from "vue";
6
+ import { JsvNativeSharedDiv } from "jsview";
5
7
 
6
8
  let logDebug = console.log;
7
9
 
@@ -276,14 +278,16 @@ export default {
276
278
  */
277
279
  corner: { type: Number, default: 0 },
278
280
  },
279
- components: {},
281
+ components: {
282
+ JsvNativeSharedDiv,
283
+ },
280
284
  watch: {
281
285
  active(newValue) {
282
- console.log("LudlDebug active newValue: " + newValue);
286
+ console.log("active newValue: " + newValue);
283
287
  if (this.video) {
284
288
  if (newValue) {
285
289
  this.registerEvent();
286
- this.video.setHoleID(this.holeId);
290
+ // this.video.setHoleID?.(this.holeId);
287
291
  this.holeStyle = {
288
292
  left: 0,
289
293
  top: 0,
@@ -332,8 +336,7 @@ export default {
332
336
  return {
333
337
  video: null,
334
338
  holeId: "",
335
- jsvMainView: shallowRef(null),
336
- innerViewId: shallowRef(-1),
339
+ positionAckFunc: null,
337
340
  };
338
341
  },
339
342
 
@@ -370,8 +373,35 @@ export default {
370
373
  if (!this.video) {
371
374
  // 创建PC版本的video标签
372
375
  this.video = window.originDocument.createElement("video");
376
+ this.video.style.position = "absolute";
377
+ this.video.style.zIndex = -100;
373
378
  this._extendsApi(this.video);
374
- this.video.style.borderRadius = this.corner + "px";
379
+
380
+ const appElement = window.originDocument.getElementById("app");
381
+ document.body.insertBefore(this.video, appElement);
382
+
383
+ // 跟踪视频显示位置
384
+ let _this = this;
385
+ this.positionAckFunc = (event_json) => {
386
+ // 跟踪JsvNativeShared的位置变化
387
+ let new_pos = JSON.parse(event_json);
388
+ this.video.style.left =
389
+ window.JsvCoreApi.WasmExt.measurePosition(new_pos.x) + "px";
390
+ this.video.style.top =
391
+ window.JsvCoreApi.WasmExt.measurePosition(new_pos.y) + "px";
392
+
393
+ this.video.style.width =
394
+ window.JsvCoreApi.WasmExt.measurePosition(new_pos.width) + "px";
395
+ this.video.style.height =
396
+ window.JsvCoreApi.WasmExt.measurePosition(new_pos.height) + "px";
397
+ };
398
+
399
+ window.JsvCoreApi.WasmExt.listenerToAckEvent(
400
+ AckEventDefine.CATEGORY_VIEW,
401
+ AckEventDefine.TYPE_SHARED_VIEW_LAYOUT,
402
+ this.holeId,
403
+ this.positionAckFunc
404
+ );
375
405
  } else {
376
406
  this.video.setRef();
377
407
  first_create = false;
@@ -421,24 +451,20 @@ export default {
421
451
  }
422
452
  }
423
453
 
424
- // 创建挂载的VideoView
425
- this.jsvMainView = new Forge.VideoView(this.video, null);
426
- this.innerViewId = Forge.sViewStore.add(
427
- new Forge.ViewInfo(this.jsvMainView)
428
- );
429
-
430
454
  this.onRef?.(this.video);
431
455
  }
432
456
  },
433
457
 
434
458
  unmounted() {
435
459
  if (this.video != null) {
436
- // 清理View管理缓存
437
- if (this.innerViewId !== -1) {
438
- Forge.sViewStore.remove(this.innerViewId);
439
- this.innerViewId = -1;
440
- this.jsvMainView = null;
460
+ // 清理video标签
461
+ document.body.removeChild(this.video);
462
+
463
+ // 解除NativeSharedDiv对应的位置监听
464
+ if (this.positionAckFunc != null) {
465
+ window.JsvCoreApi.WasmExt.recycleAckListener(this.positionAckFunc);
441
466
  }
467
+
442
468
  this.onRef?.(null);
443
469
  }
444
470
  },
@@ -495,23 +521,15 @@ export default {
495
521
  </script>
496
522
 
497
523
  <template>
498
- <div
524
+ <jsv-native-shared-div
499
525
  :style="{
500
526
  ...holeStyle,
501
- backgroundColor: 'rgba(0,0,0,1)',
502
- borderRadius: corner,
527
+ left: this.style.left,
528
+ top: this.style.top,
503
529
  }"
504
- >
505
- <div
506
- :style="{
507
- left: holeStyle.left,
508
- top: holeStyle.top,
509
- width: holeStyle.width,
510
- height: holeStyle.height,
511
- }"
512
- :data-jsv-vw-innerview="innerViewId"
513
- />
514
- </div>
530
+ :getId="getHoleId"
531
+ :corner="corner"
532
+ />
515
533
  </template>
516
534
 
517
535
  <style scoped></style>
@@ -1,12 +1,9 @@
1
- import { createMemoryHistory, createWebHashHistory } from "vue-router";
1
+ import { createMemoryHistory, /*createWebHashHistory*/ } from "vue-router";
2
+ // import { urlCheckSet } from "./TypeCheckAndSet.ts";
2
3
 
3
4
  class JsvHashHistory {
4
5
  constructor(base) {
5
- if(window.jsvIsBrowserDebug) {
6
- this.#history = createWebHashHistory(base)
7
- } else {
8
- this.#history = this.#createMockHashHistory(base);
9
- }
6
+ this.#history = this.#createMockHashHistory(base);
10
7
  }
11
8
 
12
9
  get location() {
@@ -32,7 +29,7 @@ class JsvHashHistory {
32
29
  replace(to, data) {
33
30
  this.#history.replace(to, data);
34
31
  this.#updateLocation(this.#history.location);
35
- }
32
+ }
36
33
 
37
34
  push(to, data) {
38
35
  this.#history.push(to, data);
@@ -53,16 +50,16 @@ class JsvHashHistory {
53
50
  // base = location.host ? base || location.pathname + location.search : '';
54
51
  base = (location.host || location.protocol === 'file:') ? base || location.pathname + location.search : '';
55
52
  if (!base.includes('#'))
56
- base += '#';
53
+ base += '#';
57
54
  if (!base.endsWith('#/') && !base.endsWith('#')) {
58
- console.warn(`A hash base must end with a "#":\n"${base}" should be "${base.replace(/#.*$/, '#')}".`);
55
+ console.warn(`A hash base must end with a "#":\n"${base}" should be "${base.replace(/#.*$/, '#')}".`);
59
56
  }
60
57
 
61
58
  this.baseURL = window.location.origin + base;
62
59
 
63
60
  const history = createMemoryHistory(base)
64
61
  const initHash = this.#getInitHash();
65
- if(initHash) {
62
+ if (initHash) {
66
63
  // 已设置hash,替换到hash页面
67
64
  const replaceTo = {
68
65
  path: initHash.substring(1), // 去除#
@@ -70,9 +67,9 @@ class JsvHashHistory {
70
67
  }
71
68
 
72
69
  const queryIdx = initHash.indexOf('?');
73
- if(queryIdx >= 0) {
70
+ if (queryIdx >= 0) {
74
71
  replaceTo.path = replaceTo.path.substring(0, queryIdx - 1),
75
- replaceTo.query = this.#convertUrlParams(initHash.substring(queryIdx));
72
+ replaceTo.query = this.#convertUrlParams(initHash.substring(queryIdx));
76
73
  }
77
74
  history.replace(replaceTo);
78
75
  } else {
@@ -87,35 +84,35 @@ class JsvHashHistory {
87
84
  let initHash;
88
85
 
89
86
  // 抓取history hash在启动过程中的变更, 用于warmUp/warmLoad不一致的情况。
90
- if (window.JsView.takeNativeHashChange) {
91
- initHash = window.JsView.takeNativeHashChange({
92
- //this.push(new_hash.substring(1)); // 去除#
93
- });
94
- if (initHash != null) {
95
- // 将新hash融入window.location中
96
- console.log("History: found init hash change to:" + initHash);
97
- } else {
98
- initHash = window.location.hash;
99
- }
87
+ initHash = window.JsvCoreApi.takeNativeHashChange((new_hash) => {
88
+ // TODO:暂不实现
89
+ //this.push(new_hash.substring(1)); // 去除#
90
+ });
91
+ if (initHash != null) {
92
+ // 将新hash融入window.location中
93
+ console.log("History: found init hash change to:" + initHash);
94
+ } else {
95
+ initHash = window.location.hash;
100
96
  }
101
97
 
102
98
  return initHash;
103
99
  }
104
100
 
105
101
  #updateLocation(location) {
106
- if(!window.jsvIsBrowserDebug) {
107
- const url = new window.JsView.Dom.UrlRef(
108
- location ? this.baseURL + location : this.baseURL,
109
- true
110
- )
102
+ const url = new URL(location ? this.baseURL + location : this.baseURL);
103
+ if (window.location.applyUrlInfo) {
104
+ // 对于window.location为独立定义的场景
111
105
  window.location.applyUrlInfo(url);
106
+ } else {
107
+ // 更新系统的location显示和history状态
108
+ window.history.pushState(null, '', url.href);
112
109
  }
113
110
  }
114
111
 
115
112
  #convertUrlParams(value) {
116
113
  // 去除问号
117
114
  const questionMarkIdx = value.indexOf('?');
118
- if(questionMarkIdx >= 0) {
115
+ if (questionMarkIdx >= 0) {
119
116
  value = value.substr(questionMarkIdx + 1);
120
117
  }
121
118
 
@@ -124,7 +121,7 @@ class JsvHashHistory {
124
121
  var result = {};
125
122
 
126
123
  // 遍历参数并解析键值对
127
- for(const param of paramArray) {
124
+ for (const param of paramArray) {
128
125
  const [key, value] = param.split('=');
129
126
 
130
127
  // 如果键已存在,则将值转换为数组
@@ -14,14 +14,14 @@ function direct_call(name, ...args) {
14
14
  } else {
15
15
  let func = null;
16
16
  if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge[name] === "function") {
17
- func = window.jJsvRuntimeBridge[name];
17
+ func = window.jJsvRuntimeBridge[name].bind(window.jJsvRuntimeBridge);
18
18
  } else if (window.jContentShellJBridge && typeof window.jContentShellJBridge[name] === "function") {
19
- func = window.jContentShellJBridge[name];
19
+ func = window.jContentShellJBridge[name].bind(window.jContentShellJBridge);
20
20
  }
21
21
  direct_call_map[name] = func;
22
22
  if (func) {
23
23
  return func(...args);
24
- }
24
+ }
25
25
  }
26
26
 
27
27
  return null;
@@ -47,7 +47,7 @@ function getExtFeatureSupports() {
47
47
  * @returns {string} mac address
48
48
  *
49
49
  */
50
- function getMac(){
50
+ function getMac() {
51
51
  return direct_call("getMac");
52
52
  }
53
53
 
@@ -56,7 +56,7 @@ function getMac(){
56
56
  * @returns {string} mac address
57
57
  *
58
58
  */
59
- function getWireMac(){
59
+ function getWireMac() {
60
60
  return direct_call("getWireMac");
61
61
  }
62
62
 
@@ -65,7 +65,7 @@ function getWireMac(){
65
65
  * @returns {string} mac address
66
66
  *
67
67
  */
68
- function getWifiMac(){
68
+ function getWifiMac() {
69
69
  return direct_call("getWifiMac");
70
70
  }
71
71
 
@@ -74,7 +74,7 @@ function getWifiMac(){
74
74
  * @returns {string} UUID
75
75
  *
76
76
  */
77
- function getDeviceUUID(){
77
+ function getDeviceUUID() {
78
78
  return direct_call("getDeviceUUID");
79
79
  }
80
80
 
@@ -83,7 +83,7 @@ function getDeviceUUID(){
83
83
  * @returns {string} Android ID
84
84
  *
85
85
  */
86
- function getAndroidId(){
86
+ function getAndroidId() {
87
87
  return direct_call("getAndroidId");
88
88
  }
89
89
 
@@ -96,12 +96,12 @@ function getAndroidId(){
96
96
  * @param {int} add_history 是否添加历史,0不添加,1添加
97
97
  * @returns {Promise} 可用于监听新的小程序返回的结果
98
98
  */
99
- function openWindow(url, startup_image, startup_video, startup_duration, add_history){
99
+ function openWindow(url, startup_image, startup_video, startup_duration, add_history) {
100
100
  let setting = {};
101
- if(startup_image !== null && startup_image !== "")
101
+ if (startup_image !== null && startup_image !== "")
102
102
  setting.startupImage = startup_image;
103
103
 
104
- if(startup_video !== null && startup_video !== ""){
104
+ if (startup_video !== null && startup_video !== "") {
105
105
  setting.startupVideo = startup_video;
106
106
  }
107
107
 
@@ -121,12 +121,12 @@ function openWindow(url, startup_image, startup_video, startup_duration, add_his
121
121
  * @param {int} add_history 是否添加历史,0不添加,1添加
122
122
  * @returns {Promise} 可用于监听新的小程序返回的结果
123
123
  */
124
- function startUrlInNewTab(url, startup_image, startup_video, startup_duration, add_history){
124
+ function startUrlInNewTab(url, startup_image, startup_video, startup_duration, add_history) {
125
125
  let setting = {};
126
- if(startup_image !== null && startup_image !== "")
126
+ if (startup_image !== null && startup_image !== "")
127
127
  setting.startupImage = startup_image;
128
128
 
129
- if(startup_video !== null && startup_video !== ""){
129
+ if (startup_video !== null && startup_video !== "") {
130
130
  setting.startupVideo = startup_video;
131
131
  }
132
132
 
@@ -140,8 +140,8 @@ function startUrlInNewTab(url, startup_image, startup_video, startup_duration, a
140
140
  * 用于给上一个小程序返回结果,通常与startUrlInNewTab和openWindow配合使用
141
141
  * @param {string} data 返回给上一个小程序的结果
142
142
  */
143
- function onWindowResult(data){
144
- direct_call("onWindowResult",data)
143
+ function onWindowResult(data) {
144
+ direct_call("onWindowResult", data)
145
145
  }
146
146
 
147
147
  /**
@@ -152,12 +152,12 @@ function onWindowResult(data){
152
152
  * @param {int} startup_duration 启动图时长,默认0
153
153
  * @param {int} add_history 是否添加历史,0不添加,1添加
154
154
  */
155
- function reloadWindow(url, startup_image, startup_video, startup_duration, add_history){
155
+ function reloadWindow(url, startup_image, startup_video, startup_duration, add_history) {
156
156
  let setting = {};
157
- if(startup_image !== null && startup_image !== "")
157
+ if (startup_image !== null && startup_image !== "")
158
158
  setting.startupImage = startup_image;
159
159
 
160
- if(startup_video !== null && startup_video !== ""){
160
+ if (startup_video !== null && startup_video !== "") {
161
161
  setting.startupVideo = startup_video;
162
162
  }
163
163
 
@@ -171,7 +171,7 @@ function reloadWindow(url, startup_image, startup_video, startup_duration, add_h
171
171
  * 关闭当前小程序
172
172
  *
173
173
  */
174
- function closePage(){
174
+ function closePage() {
175
175
  direct_call("closePage");
176
176
  }
177
177
 
@@ -181,7 +181,7 @@ function closePage(){
181
181
  * @returns {string} 属性值
182
182
  *
183
183
  */
184
- function getSystemProperty(key){
184
+ function getSystemProperty(key) {
185
185
  return direct_call("getSystemProperty", key);
186
186
  }
187
187
 
@@ -190,7 +190,7 @@ function getSystemProperty(key){
190
190
  * @returns {string} 应用列表,JSON结构的数组
191
191
  *
192
192
  */
193
- function getInstalledApps(){
193
+ function getInstalledApps() {
194
194
  return direct_call("getInstalledApps");
195
195
  }
196
196
 
@@ -204,24 +204,24 @@ function getInstalledApps(){
204
204
  * @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
205
205
  *
206
206
  */
207
- function startNativeApp(package_name, activity, action, uri, flags, param){
207
+ function startNativeApp(package_name, activity, action, uri, flags, param) {
208
208
  var obj = {};
209
- if(package_name !== null && package_name !== "")
209
+ if (package_name !== null && package_name !== "")
210
210
  obj.packageName = package_name;
211
211
 
212
- if(activity !== null && activity !== "")
212
+ if (activity !== null && activity !== "")
213
213
  obj.activity = activity;
214
214
 
215
- if(action !== null && action !== "")
215
+ if (action !== null && action !== "")
216
216
  obj.action = action;
217
217
 
218
- if(uri !== null && uri !== "")
218
+ if (uri !== null && uri !== "")
219
219
  obj.uri = uri;
220
220
 
221
- if(flags !== null && flags.length > 0)
221
+ if (flags !== null && flags.length > 0)
222
222
  obj.flags = flags;
223
223
 
224
- if(param !== null && param.length > 0)
224
+ if (param !== null && param.length > 0)
225
225
  obj.param = param;
226
226
 
227
227
  direct_call("startNativeApp", JSON.stringify(obj));
@@ -237,25 +237,25 @@ function startNativeApp(package_name, activity, action, uri, flags, param){
237
237
  * @param {Array} param JSON格式数组,数组元素是 object ,object中的内容用于intent.putExtra
238
238
  *
239
239
  */
240
- function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param){
240
+ function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param) {
241
241
 
242
242
  var obj = {};
243
- if(typeof package_name != undefined && package_name !== null && package_name !== "")
243
+ if (typeof package_name != undefined && package_name !== null && package_name !== "")
244
244
  obj.packageName = package_name;
245
245
 
246
- if(typeof broadcast != undefined && broadcast !== null && broadcast !== "")
246
+ if (typeof broadcast != undefined && broadcast !== null && broadcast !== "")
247
247
  obj.broadcast = broadcast;
248
248
 
249
- if(typeof action != undefined && action !== null && action !== "")
249
+ if (typeof action != undefined && action !== null && action !== "")
250
250
  obj.action = action;
251
251
 
252
- if(typeof uri != undefined && uri !== null && uri !== "")
252
+ if (typeof uri != undefined && uri !== null && uri !== "")
253
253
  obj.uri = uri;
254
254
 
255
- if(typeof flags != undefined && flags !== null && flags.length > 0)
255
+ if (typeof flags != undefined && flags !== null && flags.length > 0)
256
256
  obj.flags = flags;
257
257
 
258
- if(typeof param != undefined && param !== null && param.length > 0)
258
+ if (typeof param != undefined && param !== null && param.length > 0)
259
259
  obj.param = param;
260
260
  direct_call("sendNativeBroadcast", JSON.stringify(obj));
261
261
  }
@@ -271,27 +271,27 @@ function sendNativeBroadcast(package_name, broadcast, action, uri, flags, param)
271
271
  * @param {boolean} is_foreground 是否使用startForegroundService
272
272
  *
273
273
  */
274
- function startService(package_name, services, action, uri, flags, param,is_foreground){
274
+ function startService(package_name, services, action, uri, flags, param, is_foreground) {
275
275
 
276
276
  var obj = {};
277
- if(typeof package_name != undefined && package_name !== null && package_name !== "")
277
+ if (typeof package_name != undefined && package_name !== null && package_name !== "")
278
278
  obj.packageName = package_name;
279
279
 
280
- if(typeof services != undefined && services !== null && services !== "")
280
+ if (typeof services != undefined && services !== null && services !== "")
281
281
  obj.services = services;
282
282
 
283
- if(typeof action != undefined && action !== null && action !== "")
283
+ if (typeof action != undefined && action !== null && action !== "")
284
284
  obj.action = action;
285
285
 
286
- if(typeof uri != undefined && uri !== null && uri !== "")
286
+ if (typeof uri != undefined && uri !== null && uri !== "")
287
287
  obj.uri = uri;
288
288
 
289
- if(typeof flags != undefined && flags !== null && flags.length > 0)
289
+ if (typeof flags != undefined && flags !== null && flags.length > 0)
290
290
  obj.flags = flags;
291
291
 
292
- if(typeof param != undefined && param !== null && param.length > 0)
292
+ if (typeof param != undefined && param !== null && param.length > 0)
293
293
  obj.param = param;
294
- direct_call("startServices", JSON.stringify(obj),is_foreground);
294
+ direct_call("startServices", JSON.stringify(obj), is_foreground);
295
295
  }
296
296
 
297
297
  /**
@@ -307,7 +307,7 @@ function getDeviceInfo() {
307
307
  * 获取自己的app信息
308
308
  * @returns
309
309
  */
310
- function getAppInfo(){
310
+ function getAppInfo() {
311
311
  return direct_call("getAppInfo");
312
312
  }
313
313
 
@@ -321,7 +321,7 @@ function notifyPageLoadDone() {
321
321
 
322
322
  function notifyPageLoaded() {
323
323
  // 激活JsView的按键优化处理逻辑
324
- window.JsView?.enableReceivingUserInput?.();
324
+ window.JsvCoreApi.enableReceivingUserInput?.();
325
325
 
326
326
  direct_call("notifyPageLoaded");
327
327
  }
@@ -331,7 +331,7 @@ function notifyPageLoaded() {
331
331
  * @returns {boolean} true支持,false不支持
332
332
  *
333
333
  */
334
- function hasFavouriteFunction(){
334
+ function hasFavouriteFunction() {
335
335
  let features = getExtFeatureSupports();
336
336
  if (features && features.indexOf("favourite") >= 0) {
337
337
  return true;
@@ -363,11 +363,11 @@ function getStartParams() {
363
363
  function addFavourite(url, callback) {
364
364
  if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.addFavourite === "function") {
365
365
  let async_message = window.jJsvRuntimeBridge.addFavourite(url);
366
- async_message.then((result)=>{
366
+ async_message.then((result) => {
367
367
  if (callback) {
368
368
  callback(result);
369
369
  }
370
- }).catch((result)=>{
370
+ }).catch((result) => {
371
371
  if (callback) {
372
372
  callback(result);
373
373
  }
@@ -384,11 +384,11 @@ function addFavourite(url, callback) {
384
384
  function updateFavourite(url, callback) {
385
385
  if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.updateFavourite === "function") {
386
386
  let async_message = window.jJsvRuntimeBridge.updateFavourite(url);
387
- async_message.then((result)=>{
387
+ async_message.then((result) => {
388
388
  if (callback) {
389
389
  callback(result)
390
390
  }
391
- }).catch((result)=>{
391
+ }).catch((result) => {
392
392
  if (callback) {
393
393
  callback(result);
394
394
  }
@@ -405,11 +405,11 @@ function updateFavourite(url, callback) {
405
405
  function removeFavourite(app_name, callback) {
406
406
  if (window.jJsvRuntimeBridge && typeof window.jJsvRuntimeBridge.removeFavourite === "function") {
407
407
  let async_message = window.jJsvRuntimeBridge.removeFavourite(app_name);
408
- async_message.then((result)=>{
408
+ async_message.then((result) => {
409
409
  if (callback) {
410
410
  callback(result)
411
411
  }
412
- }).catch((result)=>{
412
+ }).catch((result) => {
413
413
  if (callback) {
414
414
  callback(result);
415
415
  }
@@ -468,7 +468,7 @@ function popupGainFocus() {
468
468
  direct_call("popupGainFocus");
469
469
  }
470
470
 
471
- function popupDiscardFocus(){
471
+ function popupDiscardFocus() {
472
472
  direct_call("popupGainFocus");
473
473
  }
474
474
 
@@ -488,12 +488,12 @@ function popupDiscardFocus(){
488
488
  * int: 为view_refer_id值,预热后的View的ID,用于后续的warmLoadView和closeWarmView使用
489
489
  */
490
490
  function warmUpView(mode, app_url) {
491
- if(mode !== 1 && mode !== 2) {
491
+ if (mode !== 1 && mode !== 2) {
492
492
  console.error(`not support mode(${mode})`);
493
493
  return -1;
494
494
  }
495
495
 
496
- if(mode === 1 && (app_url === null || app_url.length === 0)) {
496
+ if (mode === 1 && (app_url === null || app_url.length === 0)) {
497
497
  console.error(`not support params(${mode} ${app_url})`);
498
498
  return -1;
499
499
  }
@@ -528,27 +528,27 @@ function closeWarmedView(view_refer_id) {
528
528
  * 例如: 1021265_release_build_xxx
529
529
  * @returns promise 对象,用于监听下载完成与下载失败
530
530
  */
531
- function preDownloadSdk(core_version){
531
+ function preDownloadSdk(core_version) {
532
532
  return direct_call("preDownloadSdk", core_version);
533
533
  }
534
534
 
535
- function getNetworkTypeStatusImmediate(){
535
+ function getNetworkTypeStatusImmediate() {
536
536
  return direct_call("getNetworkTypeStatusImmediate");
537
537
  }
538
538
 
539
- function registerNetStateListener(callback){
539
+ function registerNetStateListener(callback) {
540
540
  return direct_call("registerNetStateListener", callback);
541
541
  }
542
542
 
543
- function unRegisterNetStateListener(callback){
543
+ function unRegisterNetStateListener(callback) {
544
544
  return direct_call("unRegisterNetStateListener", callback);
545
545
  }
546
546
 
547
- function getSnId(){
547
+ function getSnId() {
548
548
  return direct_call("getSnId");
549
549
  }
550
550
 
551
- function getEmmcCid(){
551
+ function getEmmcCid() {
552
552
  return direct_call("getEmmcCid");
553
553
  }
554
554
 
@@ -561,10 +561,10 @@ function getEmmcCid(){
561
561
  * @param {string} sortOrder
562
562
  * @returns
563
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);
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
568
  }
569
569
 
570
570
  /**
@@ -573,8 +573,8 @@ function providerQuery(uri,projection,selection,selectionArgs,sortOrder){
573
573
  * @param {object} contentValue
574
574
  * @returns
575
575
  */
576
- function providerInsert(uri,contentValue){
577
- return direct_call("providerInsert",uri,contentValue?JSON.stringify(contentValue):null)
576
+ function providerInsert(uri, contentValue) {
577
+ return direct_call("providerInsert", uri, contentValue ? JSON.stringify(contentValue) : null)
578
578
  }
579
579
 
580
580
  /**
@@ -584,8 +584,8 @@ function providerInsert(uri,contentValue){
584
584
  * @param {string[]} selectionArgs
585
585
  * @returns
586
586
  */
587
- function providerDelete(uri,selection,selectionArgs){
588
- return direct_call("providerDelete",uri,selection,selectionArgs?JSON.stringify(selectionArgs):null)
587
+ function providerDelete(uri, selection, selectionArgs) {
588
+ return direct_call("providerDelete", uri, selection, selectionArgs ? JSON.stringify(selectionArgs) : null)
589
589
  }
590
590
 
591
591
  /**
@@ -596,8 +596,16 @@ function providerDelete(uri,selection,selectionArgs){
596
596
  * @param {string[]} selectionArgs
597
597
  * @returns
598
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)
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
+
603
+ /**
604
+ *
605
+ * @returns 设备开机时长
606
+ */
607
+ function getBootTime(){
608
+ return direct_call("getBootTime")
601
609
  }
602
610
 
603
611
 
@@ -645,7 +653,8 @@ const bridge = {
645
653
  providerQuery,
646
654
  providerInsert,
647
655
  providerDelete,
648
- providerUpdate
656
+ providerUpdate,
657
+ getBootTime
649
658
  };
650
659
 
651
660
  export {