@shijiu/jsview-vue 2.3.151-test.0 → 2.3.728-alpha.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 (432) hide show
  1. package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
  2. package/bin/jsview-vue.mjs +5964 -1833
  3. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
  4. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
  5. package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
  6. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
  7. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
  10. package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +25 -5
  11. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
  13. package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
  14. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
  15. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
  16. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
  17. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
  18. package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +3 -3
  19. package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
  20. package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
  21. package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
  22. package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +17 -7
  23. package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
  24. package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
  25. package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
  26. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
  27. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
  28. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
  29. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
  30. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
  31. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
  32. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
  33. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  34. package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
  35. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
  36. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
  37. package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
  38. package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
  39. package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
  40. package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +10 -3
  41. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
  42. package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
  43. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
  44. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
  45. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
  46. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
  47. package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
  48. package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
  49. package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
  50. package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
  51. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
  52. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
  53. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
  54. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
  55. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
  56. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
  57. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +1 -0
  58. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
  59. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
  60. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  61. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
  62. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
  63. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
  64. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
  65. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
  66. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
  67. package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
  68. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
  69. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
  70. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
  71. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
  72. package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
  73. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
  74. package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
  75. package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
  76. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
  77. package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
  78. package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
  79. package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
  80. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
  81. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
  82. package/bin/types/utils/JsViewVueWidget/index.d.ts +6 -3
  83. package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
  84. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
  85. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
  86. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
  87. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
  88. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
  89. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
  90. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
  91. package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
  92. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
  93. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
  94. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
  95. package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
  96. package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
  97. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
  98. package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
  99. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
  100. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  101. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
  102. package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
  103. package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
  104. package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
  105. package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  106. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
  107. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
  108. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
  109. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
  110. package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
  111. package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
  112. package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
  113. package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
  114. package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
  115. package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
  116. package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
  117. package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
  118. package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
  119. package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
  120. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
  121. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
  122. package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
  123. package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
  124. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
  125. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
  126. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
  127. package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
  128. package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
  129. package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
  130. package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
  131. package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
  132. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
  133. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
  134. package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
  135. package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
  136. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
  137. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
  138. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
  139. package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
  140. package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
  141. package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
  142. package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
  143. package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  144. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
  145. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
  146. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
  147. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
  148. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  149. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
  150. package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
  151. package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
  152. package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  153. package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
  154. package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
  155. package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
  156. package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
  157. package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
  158. package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
  159. package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
  160. package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
  161. package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
  162. package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
  163. package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
  164. package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
  165. package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
  166. package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
  167. package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
  168. package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
  169. package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
  170. package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
  171. package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
  172. package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
  173. package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
  174. package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
  175. package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
  176. package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
  177. package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
  178. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
  179. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
  180. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
  181. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
  182. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
  183. package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
  184. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
  185. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
  186. package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
  187. package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
  188. package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
  189. package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
  190. package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
  191. package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
  192. package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
  193. package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
  194. package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
  195. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
  196. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
  197. package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
  198. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
  199. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
  200. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
  201. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
  202. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
  203. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
  204. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
  205. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
  206. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
  207. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
  208. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
  209. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
  210. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
  211. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
  212. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
  213. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
  214. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
  215. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
  216. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
  217. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
  218. package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
  219. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
  220. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
  221. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
  222. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
  223. package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
  224. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
  225. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
  226. package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
  227. package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
  228. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
  229. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
  230. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
  231. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
  232. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
  233. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
  234. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
  235. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
  236. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
  237. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
  238. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  239. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
  240. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
  241. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
  242. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
  243. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
  244. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
  245. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
  246. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
  247. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
  248. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
  249. package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
  250. package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
  251. package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
  252. package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
  253. package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
  254. package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
  255. package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
  256. package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
  257. package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
  258. package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
  259. package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
  260. package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
  261. package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
  262. package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
  263. package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
  264. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
  265. package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
  266. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
  267. package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
  268. package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
  269. package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
  270. package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
  271. package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
  272. package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
  273. package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
  274. package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
  275. package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
  276. package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
  277. package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
  278. package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
  279. package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
  280. package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
  281. package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
  282. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
  283. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
  284. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
  285. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
  286. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
  287. package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
  288. package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
  289. package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
  290. package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
  291. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
  292. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
  293. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
  294. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
  295. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
  296. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
  297. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
  298. package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  299. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
  300. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
  301. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
  302. package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
  303. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  304. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
  305. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
  306. package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
  307. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
  308. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
  309. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
  310. package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
  311. package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  312. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
  313. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
  314. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
  315. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
  316. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
  317. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
  318. package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
  319. package/dist/types/utils/index.d.ts +8 -0
  320. package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
  321. package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
  322. package/dist/utils/export-sfc.mjs +12 -0
  323. package/dist/utils/index.mjs +29000 -0
  324. package/dist/utils/jsview-vue-common.mjs +39 -0
  325. package/package.json +1 -1
  326. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
  327. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +24 -2
  328. package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
  329. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
  330. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +325 -155
  331. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
  332. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1035 -370
  333. package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
  334. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
  335. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
  336. package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
  337. package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
  338. package/utils/JsViewEngineWidget/RectUtils.js +1 -1
  339. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
  340. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
  341. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
  342. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
  343. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +329 -230
  344. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
  345. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
  346. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
  347. package/utils/JsViewEngineWidget/WidgetCommon.ts +17 -7
  348. package/utils/JsViewEngineWidget/index.ts +7 -2
  349. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
  350. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
  351. package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
  352. package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
  353. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
  354. package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
  355. package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
  356. package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
  357. package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
  358. package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
  359. package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
  360. package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
  361. package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
  362. package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +60 -10
  363. package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
  364. package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
  365. package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
  366. package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
  367. package/utils/JsViewVueTools/BlobApi.ts +55 -0
  368. package/utils/JsViewVueTools/FeatureActive.ts +3 -0
  369. package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
  370. package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
  371. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
  372. package/utils/JsViewVueTools/JsvRuntimeBridge.js +40 -19
  373. package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
  374. package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
  375. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
  376. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
  377. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
  378. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
  379. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
  380. package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
  381. package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
  382. package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
  383. package/utils/JsViewVueTools/index.js +3 -1
  384. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
  385. package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
  386. package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
  387. package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
  388. package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
  389. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
  390. package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
  391. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
  392. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
  393. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
  394. package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
  395. package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
  396. package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
  397. package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
  398. package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
  399. package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
  400. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
  401. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
  402. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
  403. package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
  404. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
  405. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +29 -2
  406. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
  407. package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
  408. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
  409. package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
  410. package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
  411. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +32 -29
  412. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  413. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
  414. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
  415. package/utils/JsViewVueWidget/JsvSector.vue +66 -28
  416. package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
  417. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -305
  418. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
  419. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
  420. package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
  421. package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
  422. package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
  423. package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
  424. package/utils/JsViewVueWidget/index.js +7 -2
  425. package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
  426. package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
  427. package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
  428. package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
  429. package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
  430. /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
  431. /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
  432. /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
@@ -8,8 +8,8 @@
8
8
  import { MetroTemplate } from "../TemplateParser/MetroTemplate";
9
9
 
10
10
  export interface PermanentItemInfo {
11
- index: number,
12
- alreadyShow: boolean,
11
+ index: number;
12
+ alreadyShow: boolean;
13
13
  }
14
14
 
15
15
  export class PageUpdater {
@@ -17,13 +17,20 @@ export class PageUpdater {
17
17
  private rangeSet: Set<number>;
18
18
  private updateFunc: (renderSet: Set<number>) => void;
19
19
  private count: number = 1;
20
+ private applyedRange: { start: number; end: number } = { start: 0, end: 0 };
20
21
 
21
22
  constructor(updateFunc: (renderSet: Set<number>) => void) {
22
23
  this.tmpRangeSet = new Set<number>();
23
- this.rangeSet = new Set<number>();;
24
+ this.rangeSet = new Set<number>();
24
25
  this.updateFunc = updateFunc;
25
26
  }
26
27
 
28
+ cleanCache() {
29
+ this.tmpRangeSet.clear();
30
+ this.rangeSet.clear();
31
+ this.applyedRange = { start: 0, end: 0 };
32
+ }
33
+
27
34
  update(
28
35
  template: MetroTemplate,
29
36
  start: number,
@@ -31,14 +38,17 @@ export class PageUpdater {
31
38
  anchorId: number,
32
39
  mergeTmp: boolean,
33
40
  permanentList: Array<PermanentItemInfo> | null,
34
- extensionRange: number = 0
35
- ): { apply: Function, applyTmp: Function, recover: Function } {
41
+ fullDisplayMode: boolean = false
42
+ ): { apply: Function; applyTmp: Function; recover: Function } {
36
43
  this.count++;
37
- const [visibleStart, visibleEnd] = template.getVisibleItemList(
38
- start - extensionRange,
39
- end + extensionRange,
40
- anchorId
41
- );
44
+
45
+ const [visibleStart, visibleEnd] = fullDisplayMode
46
+ ? [0, template.templateList.length - 1]
47
+ : template.getVisibleItemList(
48
+ start,
49
+ end,
50
+ anchorId
51
+ );
42
52
  const preTmpRangeSet = this.tmpRangeSet;
43
53
  const preRangeSet = this.rangeSet;
44
54
 
@@ -51,23 +61,25 @@ export class PageUpdater {
51
61
  }
52
62
 
53
63
  if (permanentList) {
54
- const permanentShowList = permanentList.filter((item: PermanentItemInfo) => {
55
- let result = false;
56
- if (item.alreadyShow || item.index <= visibleEnd) {
57
- item.alreadyShow = true;
58
- result = true;
64
+ const permanentShowList = permanentList.filter(
65
+ (item: PermanentItemInfo) => {
66
+ let result = false;
67
+ if (item.alreadyShow || item.index <= visibleEnd) {
68
+ item.alreadyShow = true;
69
+ result = true;
70
+ }
71
+ return result;
59
72
  }
60
- return result;
61
- });
73
+ );
62
74
  for (let pItem of permanentShowList) {
63
75
  this.rangeSet.add(pItem.index);
64
76
  }
65
77
  }
66
-
78
+
67
79
  if (preRangeSet.size > 0) {
68
80
  this.tmpRangeSet = new Set([...this.rangeSet, ...preRangeSet]);
69
81
  }
70
-
82
+
71
83
  if (mergeTmp) {
72
84
  this.tmpRangeSet = new Set([...this.tmpRangeSet, ...preTmpRangeSet]);
73
85
  }
@@ -75,6 +87,7 @@ export class PageUpdater {
75
87
  return {
76
88
  apply: () => {
77
89
  if (c == this.count) {
90
+ this.applyedRange = { start: start, end: end };
78
91
  this.apply();
79
92
  } else {
80
93
  // console.log("apply expired data")
@@ -82,7 +95,8 @@ export class PageUpdater {
82
95
  },
83
96
  applyTmp: () => {
84
97
  if (c == this.count) {
85
- this.applyTmp()
98
+ this.applyedRange = { start: start, end: end };
99
+ this.applyTmp();
86
100
  } else {
87
101
  // console.log("apply tmp expired data")
88
102
  }
@@ -90,8 +104,12 @@ export class PageUpdater {
90
104
  recover: () => {
91
105
  this.rangeSet = preRangeSet;
92
106
  this.tmpRangeSet = preTmpRangeSet;
93
- }
94
- }
107
+ },
108
+ };
109
+ }
110
+
111
+ public getApplyedRange(): { start: number; end: number } {
112
+ return this.applyedRange;
95
113
  }
96
114
 
97
115
  private apply(): void {
@@ -111,4 +129,4 @@ export class PageUpdater {
111
129
  public getTmpRange(): Set<number> {
112
130
  return this.tmpRangeSet;
113
131
  }
114
- }
132
+ }
@@ -1,34 +1,42 @@
1
- import { ref, computed } from "vue";
1
+ import { ref, computed, toRaw, reactive } from "vue";
2
2
  import type { Ref } from "vue";
3
- import { TemplateItem } from "../TemplateParser/MetroTemplate"
3
+ import { TemplateItem } from "../TemplateParser/MetroTemplate";
4
4
  import { ForgeConst } from "../../JsViewVueTools/ForgeConstDefine";
5
+ import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
6
+ import { SpatialNavigationNode } from "../SpatialNavigator/SpatialNavigationNode";
5
7
 
6
8
  interface RenderItemStyle {
7
- zIndex: number,
8
- left: number,
9
- top: number,
10
- width: number,
11
- height: number,
12
- };
9
+ zIndex: number;
10
+ left: number;
11
+ top: number;
12
+ width: number;
13
+ height: number;
14
+ }
13
15
 
14
16
  interface ItemConfig {
15
- focusZIndex: number,
16
- normalZIndex: number,
17
- itemSlide: number,
18
- permanent: boolean,
19
- showSkeleton: boolean,
20
- enableLongPress: boolean,
17
+ focusZIndex: number;
18
+ normalZIndex: number;
19
+ itemSlide: number;
20
+ permanent: boolean;
21
+ showSkeleton: boolean;
22
+ enableLongPress: boolean;
23
+ bindSpatialNav: boolean;
21
24
  }
22
25
 
23
26
  interface CustomerCallbackMap {
24
- onFocus?: (rect: object) => void,
25
- onBlur?: () => void,
26
- onClick?: () => void,
27
- onLongPress?: () => void,
28
- onTap?: () => void,
29
- onWidgetEdge?: (rect: object) => void,
30
- onGaze?: (rect: object) => void,
31
- onIgnore?: () => void,
27
+ onFocus?: (rect: object) => void;
28
+ onBlur?: () => void;
29
+ onClick?: () => void;
30
+ onLongPress?: () => void;
31
+ onTap?: () => void;
32
+ onWidgetEdge?: (rect: object) => void;
33
+ onGaze?: (rect: object) => void;
34
+ onIgnore?: () => void;
35
+ //获取item内组件item的可视状态
36
+ onGetItemVisibleState?: (
37
+ leftTop: { x: number; y: number },
38
+ rightBottom: { x: number; y: number }
39
+ ) => any;
32
40
  }
33
41
 
34
42
  export class RenderItem {
@@ -39,18 +47,25 @@ export class RenderItem {
39
47
  public renderStyle: RenderItemStyle;
40
48
  public itemConfig: ItemConfig;
41
49
 
42
- public mounted: Ref<boolean> = ref(false);
50
+ //NOTE 使用reactive而不是ref是为了可以通过toRaw再访问以避免被watchEffect监听
51
+ public mounted = reactive({ value: false });
43
52
  public touchInit: boolean = false;
44
- public rootDiv: HTMLDivElement | null = null;
53
+ public rootDiv: HTMLDivElement | undefined = undefined;
45
54
  public enableTap: boolean = false;
46
55
  public renderKey: Ref<number> = ref(0);
47
56
  public placeHolderLayout = null;
57
+ public rootNativeViewId: number = -1;
58
+ private nativeLayoutView: any = null;
48
59
 
49
60
  private customerCallbackMap: CustomerCallbackMap = {};
50
61
  private onRef: (() => void) | null;
51
- private metroWidgetCbk: any;
62
+ private metroWidgetInfos: any;
63
+ private isFocus: boolean = false;
52
64
  public readonly registerObj: object;
53
65
  public readonly query: object;
66
+ public enableFboAccelrate: boolean = false;
67
+ public renderBreak: boolean;
68
+ private spatialNavNode: SpatialNavigationNode | undefined = undefined;
54
69
 
55
70
  constructor(
56
71
  templateInfo: TemplateItem,
@@ -59,7 +74,9 @@ export class RenderItem {
59
74
  itemConfig: ItemConfig,
60
75
  onRef: () => void,
61
76
  query: object,
62
- metroWidgetCallback: Object,
77
+ metroWidgetInfos: any,
78
+ enableFboAccelrate: boolean,
79
+ widgetRenderBreak: boolean
63
80
  ) {
64
81
  this.templateInfo = templateInfo;
65
82
  this.customerData = customerData;
@@ -70,7 +87,9 @@ export class RenderItem {
70
87
  const unregister = this.unregister.bind(this);
71
88
  this.registerObj = { register, unregister };
72
89
  this.query = query;
73
- this.metroWidgetCbk = metroWidgetCallback;
90
+ this.metroWidgetInfos = metroWidgetInfos;
91
+ this.enableFboAccelrate = enableFboAccelrate;
92
+ this.renderBreak = widgetRenderBreak;
74
93
  }
75
94
 
76
95
  get id() {
@@ -81,6 +100,43 @@ export class RenderItem {
81
100
  return this.templateInfo.index;
82
101
  }
83
102
 
103
+ public getSpatialNavNode() {
104
+ if (!this.itemConfig.bindSpatialNav) {
105
+ return undefined;
106
+ }
107
+ if (!this.spatialNavNode) {
108
+ this.spatialNavNode = new SpatialNavigationNode(
109
+ (token: number,target: unknown) => {
110
+ if (!this.rootDiv) {
111
+ return undefined;
112
+ }
113
+ const rect = this.metroWidgetInfos.getItemPositionWithCache(token, target, this.templateInfo.index);
114
+ return {
115
+ left: rect.left,
116
+ top: rect.top,
117
+ right: rect.left + rect.width,
118
+ bottom: rect.top + rect.height,
119
+ centerX: rect.left + rect.width / 2,
120
+ centerY: rect.top + rect.height / 2,
121
+ };
122
+ },
123
+ () => {
124
+ return {
125
+ mwChain: this.metroWidgetInfos.getMwChain(),
126
+ itemIndex: this.templateInfo.index,
127
+ };
128
+ },
129
+ () => {
130
+
131
+ },
132
+ () => {
133
+
134
+ }
135
+ );
136
+ }
137
+ return this.spatialNavNode;
138
+ }
139
+
84
140
  public updateCustomData(newCustomData: object, newItemConfig: ItemConfig) {
85
141
  this.customerData = newCustomData;
86
142
  this.itemConfig = newItemConfig;
@@ -90,14 +146,14 @@ export class RenderItem {
90
146
  }
91
147
 
92
148
  //TODO item的div ref 会调用多次, 待调查
93
- public divRef = (ele: HTMLDivElement | null) => {
149
+ public divRef = (ele: HTMLDivElement | undefined) => {
94
150
  this.rootDiv = ele;
95
151
  if (ele) {
96
152
  this.onDivMounted();
97
153
  } else {
98
154
  this.onDivUnmounted();
99
155
  }
100
- }
156
+ };
101
157
 
102
158
  public slotRef = (ele: object | null) => {
103
159
  if (!this.mounted.value && ele) {
@@ -106,7 +162,7 @@ export class RenderItem {
106
162
  } else if (!ele && this.mounted.value) {
107
163
  this.mounted.value = false;
108
164
  }
109
- }
165
+ };
110
166
 
111
167
  public register(name: string, callback: Function) {
112
168
  (this.customerCallbackMap as any)[name] = callback;
@@ -116,9 +172,24 @@ export class RenderItem {
116
172
  delete (this.customerCallbackMap as any)[name];
117
173
  }
118
174
 
175
+ public onGetItemVisibleState(
176
+ leftTop: { x: number; y: number },
177
+ rightBottom: { x: number; y: number }
178
+ ): any {
179
+ return this.customerCallbackMap.onGetItemVisibleState?.(
180
+ leftTop,
181
+ rightBottom
182
+ );
183
+ }
184
+
119
185
  public onFocus(rect: object): boolean {
120
- if (this.mounted.value) {
186
+ //NOTE 为了避免访问响应式对象被watchEffect捕获引起不必要的触发,访问时统一用toRaw
187
+ if (toRaw(this.mounted).value) {
188
+ if (this.rootNativeViewId != -1) {
189
+ this.nativeLayoutView.SetIsFocus(true);
190
+ }
121
191
  this.customerCallbackMap.onFocus?.(rect);
192
+ this.isFocus = true;
122
193
  return true;
123
194
  } else {
124
195
  return false;
@@ -126,8 +197,12 @@ export class RenderItem {
126
197
  }
127
198
 
128
199
  public onBlur(): boolean {
129
- if (this.mounted.value) {
200
+ if (toRaw(this.mounted).value && this.isFocus) {
201
+ if (this.rootNativeViewId != -1) {
202
+ this.nativeLayoutView.SetIsFocus(false);
203
+ }
130
204
  this.customerCallbackMap.onBlur?.();
205
+ this.isFocus = false;
131
206
  return true;
132
207
  } else {
133
208
  return false;
@@ -135,7 +210,7 @@ export class RenderItem {
135
210
  }
136
211
 
137
212
  public onGaze(rect: object): boolean {
138
- if (this.mounted.value) {
213
+ if (toRaw(this.mounted).value) {
139
214
  this.customerCallbackMap.onGaze?.(rect);
140
215
  return true;
141
216
  } else {
@@ -144,7 +219,7 @@ export class RenderItem {
144
219
  }
145
220
 
146
221
  public onIgnore(): boolean {
147
- if (this.mounted.value) {
222
+ if (toRaw(this.mounted).value) {
148
223
  this.customerCallbackMap.onIgnore?.();
149
224
  return true;
150
225
  } else {
@@ -154,15 +229,15 @@ export class RenderItem {
154
229
 
155
230
  public readonly onTap = computed(() => {
156
231
  return this.enableTap ? this.innerOnTap.bind(this) : null;
157
- })
232
+ });
158
233
 
159
234
  private innerOnTap(): boolean {
160
- this.metroWidgetCbk?.onTap?.(this);
235
+ this.metroWidgetInfos?.onTap?.(this);
161
236
  return this.onClick();
162
237
  }
163
238
 
164
239
  public onClick(): boolean {
165
- if (this.mounted.value) {
240
+ if (toRaw(this.mounted).value) {
166
241
  this.customerCallbackMap.onClick?.();
167
242
  return true;
168
243
  } else {
@@ -171,7 +246,7 @@ export class RenderItem {
171
246
  }
172
247
 
173
248
  public onLongPress(): boolean {
174
- if (this.mounted.value) {
249
+ if (toRaw(this.mounted).value) {
175
250
  this.customerCallbackMap.onLongPress?.();
176
251
  return true;
177
252
  } else {
@@ -180,7 +255,7 @@ export class RenderItem {
180
255
  }
181
256
 
182
257
  public onWidgetEdge(rect: object): boolean {
183
- if (this.mounted.value) {
258
+ if (toRaw(this.mounted).value) {
184
259
  this.customerCallbackMap.onWidgetEdge?.(rect);
185
260
  return true;
186
261
  } else {
@@ -192,6 +267,23 @@ export class RenderItem {
192
267
  this.divMountedCallback.add(cbk);
193
268
  return () => {
194
269
  this.divMountedCallback.delete(cbk);
270
+ };
271
+ }
272
+
273
+ public onInRenderRange() {
274
+ if (this.enableFboAccelrate && this.rootNativeViewId == -1) {
275
+ this.nativeLayoutView = new Forge.MetroWidgetItemRootView();
276
+ this.rootNativeViewId = Forge.sViewStore.add(
277
+ new Forge.ViewInfo(this.nativeLayoutView, null)
278
+ );
279
+ }
280
+ }
281
+
282
+ public onOutOfRenderRange() {
283
+ if (this.rootNativeViewId != -1) {
284
+ Forge.sViewStore.remove(this.rootNativeViewId);
285
+ this.rootNativeViewId = -1;
286
+ this.nativeLayoutView = null;
195
287
  }
196
288
  }
197
289
 
@@ -201,7 +293,7 @@ export class RenderItem {
201
293
  if (this.rootDiv) {
202
294
  cbk(this.rootDiv);
203
295
  }
204
- })
296
+ });
205
297
  }
206
298
  this.divMountedCallback.clear();
207
299
  if (this.enableTap && this.rootDiv) {
@@ -214,5 +306,10 @@ export class RenderItem {
214
306
  this.touchInit = false;
215
307
  this.divMountedCallback.clear();
216
308
  this.customerCallbackMap = {};
309
+ if (this.rootNativeViewId != -1) {
310
+ Forge.sViewStore.remove(this.rootNativeViewId);
311
+ this.rootNativeViewId = -1;
312
+ this.nativeLayoutView = null;
313
+ }
217
314
  }
218
- }
315
+ }
@@ -148,6 +148,7 @@ export enum SlideTaskType {
148
148
  SLIDE_BY_ITEM,
149
149
  SLIDE_BY_DIV,
150
150
  SLIDE_BY_RECT,
151
+ SLIDE_BY_POS_NORMALIZE,
151
152
  }
152
153
 
153
154
  type SubType = SlideTaskType | null;
@@ -0,0 +1,6 @@
1
+ let id = 0;
2
+ export function getId() {
3
+ return ++id;
4
+ }
5
+
6
+ export const MW_CONTEXT_NAME = "__jsv_metro_widget_context";
@@ -15,7 +15,7 @@ export class WidgetRectInfo {
15
15
  bottom: 0
16
16
  };
17
17
 
18
- constructor(w: number, h: number, padding: any) {
18
+ constructor(w: number, h: number, padding: any, errorLogger: Function) {
19
19
  this.mWidth = w;
20
20
  this.mHeight = h;
21
21
  this.mPadding.left = padding?.left ?? 0;
@@ -23,6 +23,7 @@ export class WidgetRectInfo {
23
23
  this.mPadding.right = padding?.right ?? 0;
24
24
  this.mPadding.bottom = padding?.bottom ?? 0;
25
25
  if (this.contentWidth <= 0 || this.contentHeight <= 0) {
26
+ errorLogger("padding size is large than widget size.");
26
27
  throw new Error("padding size is large than widget size.");
27
28
  }
28
29
  }
@@ -78,7 +78,7 @@ class RectUtils {
78
78
  formatted_target_size = size_object;
79
79
  } else if (typeof size_object === "object" && size_object !== null) {
80
80
  if (isNaN(size_object.width) || isNaN(size_object.height)) {
81
- throw Error(
81
+ throw new Error(
82
82
  "ERROR: target_size format should be {width:XXXX, height:XXXX}"
83
83
  );
84
84
  }
@@ -0,0 +1,62 @@
1
+ <template>
2
+ <div ref="rootDiv">
3
+ <slot />
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ /**
9
+ * 【界面概述】
10
+ * 用来寻找最近MetroWidget Item的控件
11
+ * 使用时, 内部嵌套mw的配置上的注意事项:
12
+ 1. 通过 measure 中 bindSpatialNav, 然后选择以下一种onEdge处理
13
+ a. onEdge="ONEDGE_TYPE.SPATIAL_NAV" 替换原复杂的onEdge寻焦逻辑处理
14
+ b. onEdge函数为自定义函数, 可以做一些内部状态记录, 然后寻焦动作使用spatialNavProvider.moveTo(direction) 来简化
15
+ 2. 所有mw要把 sendFocusRectEvent 设置为 true,
16
+ 否则会遇到在子节点进行焦点移动时, 无法让最外层的mw整体布局以此焦点为准进行滚动
17
+ 导致焦点框移动到屏幕外
18
+ 3. 每个嵌套的mw, 非最子mw时, 要设置 keepTraceRange 为大于1(建议1.2),
19
+ 否则容易遇到SpatialNav感知不到未创建的节点, 导致onEdge时寻焦失败。
20
+ 比如一个布局为纵向的楼层mw, 每个楼层为横向的mw, 在这个嵌套中进行上下移动时,
21
+ 若纵向mw的keepTraceRange为1, 因为纵向的可视区域外的节点没创建, 导致SpatialNav感知不到,
22
+ 从而导致纵向滚动时寻焦失败。
23
+ *
24
+ * 【控件介绍】
25
+ * props:
26
+ * onEdge {({direction: EdgeDirection, rect: {x: number, y: number, width: number, height: number}}) => void}
27
+ * xDefaultMoveType {String} x方向默认移动方式:normal(默认)、layerFirst
28
+ * yDefaultMoveType {String} y方向默认移动方式:normal(默认)、layerFirst
29
+ * provider:
30
+ * SpatialNavigator
31
+ * moveTo
32
+ * @description 移动到最近的item
33
+ * @params {Symbol} direction 移动方向
34
+ */
35
+ import { provide, shallowRef } from "vue";
36
+ import { SpatialNavigator } from "./SpatialNavigator";
37
+ import { SPATIAL_NAV_PROVIDER_NAME } from "./SpatialNavigator";
38
+ import { useFocusHub } from "../JsvFocus/JsvFocusManager";
39
+
40
+ const props = defineProps({
41
+ onEdge: {
42
+ type: Function,
43
+ },
44
+ xDefaultMoveType: {
45
+ type: String,
46
+ default: "normal",
47
+ },
48
+ yDefaultMoveType: {
49
+ type: String,
50
+ default: "normal",
51
+ },
52
+ });
53
+
54
+ const focusHub = useFocusHub(false);
55
+ const rootDiv = shallowRef(null);
56
+ const spatialNavigator = new SpatialNavigator(rootDiv, focusHub, props.onEdge);
57
+ spatialNavigator.setDefaultMoveType(props.xDefaultMoveType, props.yDefaultMoveType);
58
+ provide(SPATIAL_NAV_PROVIDER_NAME, spatialNavigator);
59
+ defineExpose({
60
+ getSpatialNavigator: () => spatialNavigator,
61
+ });
62
+ </script>