@shijiu/jsview-vue 2.2.373 → 2.2.426-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/bin/jsview-vue.mjs +333 -487
  2. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
  3. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
  4. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
  5. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +12 -0
  6. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
  7. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
  8. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +0 -8
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +161 -0
  10. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +0 -4
  11. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
  12. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -4
  13. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
  14. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
  15. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
  16. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  17. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
  18. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
  19. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
  20. package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  21. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
  22. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
  23. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
  24. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
  25. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
  26. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
  27. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
  28. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
  29. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
  30. package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
  31. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
  32. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
  33. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
  34. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
  35. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
  36. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
  37. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
  38. package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
  39. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
  40. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
  41. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
  42. package/bin/types/{JsViewPlugin/JsvLatex → utils/JsViewPlugin/JsvAudio}/version.d.ts +0 -4
  43. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
  44. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -8
  45. package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
  46. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -28
  47. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
  48. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
  49. package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
  50. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
  51. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
  52. package/bin/types/{JsViewPlugin/JsvAudio → utils/JsViewPlugin/JsvLatex}/version.d.ts +0 -5
  53. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
  54. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +597 -0
  55. package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  56. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
  57. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
  58. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
  59. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
  60. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
  61. package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  62. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
  63. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
  64. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
  65. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
  66. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
  67. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
  68. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
  69. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
  70. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -4
  71. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
  72. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
  73. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
  74. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
  75. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
  76. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
  77. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
  78. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
  79. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +0 -8
  80. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
  81. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
  82. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
  83. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
  84. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
  85. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
  86. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
  87. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -4
  88. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
  89. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +0 -22
  90. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
  91. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
  92. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
  93. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
  94. package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
  95. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -5
  96. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
  97. package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
  98. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
  99. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
  100. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
  101. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
  102. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
  103. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
  104. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
  105. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
  106. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
  107. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
  108. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
  109. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
  110. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
  111. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
  112. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
  113. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
  114. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
  115. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
  116. package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
  117. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
  118. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
  119. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
  120. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
  121. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -4
  122. package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
  123. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
  124. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -22
  125. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
  126. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
  127. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +0 -4
  128. package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
  129. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
  130. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
  131. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
  132. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
  133. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -34
  134. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -25
  135. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
  136. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
  137. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
  138. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
  139. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -4
  140. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
  141. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
  142. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
  143. package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
  144. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +1 -5
  145. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
  146. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
  147. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
  148. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
  149. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
  150. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
  151. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
  152. package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
  153. package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
  154. package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
  155. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
  156. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
  157. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
  158. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
  159. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +9 -92
  160. package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
  161. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
  162. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
  163. package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
  164. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
  165. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -17
  166. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -18
  167. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
  168. package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
  169. package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
  170. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
  171. package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
  172. package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  173. package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
  174. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
  175. package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
  176. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
  177. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
  178. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
  179. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
  180. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
  181. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
  182. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
  183. package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
  184. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
  185. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
  186. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
  187. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
  188. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
  189. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
  190. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
  191. package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  192. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -40
  193. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
  194. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  195. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
  196. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
  197. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
  198. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
  199. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +2 -7
  200. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  201. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
  202. package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  203. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -31
  204. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -10
  205. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +2 -6
  206. package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
  207. package/index.d.ts +2 -2
  208. package/package.json +1 -1
  209. package/tools/jsview-vue-build.mjs +3 -2
  210. package/tsconfig.json +27 -0
  211. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +3 -22
  212. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +19 -33
  213. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
  214. package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
  215. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
  216. package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
  217. package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
  218. package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
  219. package/utils/JsViewVueTools/JsvRuntimeBridge.js +70 -70
  220. package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
  221. package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
  222. package/utils/JsViewVueTools/index.js +1 -1
  223. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +9 -14
  224. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
  225. package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
  226. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +47 -14
  227. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
  228. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
  229. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
  230. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -48
  231. package/utils/JsViewVueWidget/JsvPosterImage.vue +1 -2
  232. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
  233. package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
  234. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  235. package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
  236. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +17 -14
  237. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
  238. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +70 -75
  239. package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
  240. package/utils/JsViewVueWidget/index.js +2 -2
  241. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
  242. package/bin/browser/BrowserPreload.vue.mjs +0 -139
  243. package/bin/browser/BrowserQrcode.vue.mjs +0 -176
  244. package/bin/browser/BrowserSpray.vue.mjs +0 -56
  245. package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
  246. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +0 -25
  247. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
  248. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
  249. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
  250. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
  251. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
  252. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
  253. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
  254. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
  255. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
  256. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
  257. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
  258. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
  259. package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
  260. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
  261. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
  262. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
  263. package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
  264. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
  265. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
  266. package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
  267. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
  268. package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
  269. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
  270. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
  271. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
  272. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
  273. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
  274. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
  275. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
  276. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
  277. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
  278. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
  279. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
  280. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
  281. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
  282. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
  283. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
  284. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
  285. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
  286. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
  287. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
  288. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
  289. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
  290. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
  291. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
  292. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
  293. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
  294. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
  295. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
  296. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
  297. package/tools/config/tsconfig.json +0 -16
  298. package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
  299. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
  300. package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
  301. package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
  302. package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
  303. package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
  304. package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
  305. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
  306. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
  307. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
  308. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
@@ -21,7 +21,7 @@ function direct_call(name, ...args) {
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,8 @@ 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
601
  }
602
602
 
603
603
 
@@ -1,5 +1,6 @@
1
1
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define.mjs";
2
2
 
3
+ // 按照Css的style设置名称对应
3
4
  declare interface FontStyleDefine {
4
5
  fontFamily: string,
5
6
  fontSize: number,
@@ -23,14 +24,8 @@ declare interface FontStyleDefine {
23
24
  * @return {int} 文字宽度
24
25
  **/
25
26
  const getTextWidth = (text: string, style: FontStyleDefine) => {
26
- const textParams = {
27
- str: text ? text : "",
28
- font: style.fontFamily ? style.fontFamily : Forge.TextUtils.sDefaultFont,
29
- size: style.fontSize ? style.fontSize : Forge.TextUtils.sDefaultFontSize,
30
- italic: style.fontStyle === "italic" ? "italic" : "",
31
- bold: style.fontWeight === "bold" ? "bold" : "",
32
- };
33
- return (window as any).PlatformUtils.GetTextWidth(textParams);
27
+ let forgeRef = Forge;
28
+ return Forge.TextUtils.GetTextWidth(text, style);
34
29
  };
35
30
 
36
31
  /*!
@@ -57,27 +52,8 @@ const getOneLineTextDrawWidth = (text: string, style: FontStyleDefine) => {
57
52
  if (text && typeof text != "string") {
58
53
  text = "" + text; // 规避text为非字符串导致接口调用错误的问题
59
54
  }
60
- const info: Array<any> = (window as any).PlatformUtils.GetOneLineTextDrawWidth(
61
- text ?? "",
62
- style.fontFamily ?? Forge.TextUtils.sDefaultFont,
63
- style.fontSize ?? Forge.TextUtils.sDefaultFontSize,
64
- style.fontStyle === "italic" ? "italic" : "",
65
- style.fontWeight === "bold" ? "bold" : "");
66
- const result: {
67
- totalWidth: number,
68
- sliceInfo: Array<any>
69
- } = {
70
- totalWidth: info[0],
71
- sliceInfo: [],
72
- }
73
- for (let i = 1; i < info.length; i += 3) {
74
- result.sliceInfo.push({
75
- start: info[i],
76
- end: info[i + 1],
77
- width: info[2 + 2],
78
- })
79
- }
80
- return result;
55
+
56
+ return Forge.TextUtils.GetOneLineTextDrawWidth(text, style);
81
57
  }
82
58
 
83
59
  const isRtl = (str: string) => {
@@ -95,16 +71,28 @@ const isRtl = (str: string) => {
95
71
  return false;
96
72
  }
97
73
 
74
+ declare interface CssFontStyle {
75
+ fontFamily: string,
76
+ fontSize: number,
77
+ fontStyle: string,
78
+ fontWeight: string
79
+ }
98
80
 
99
-
100
- declare interface RectSize {
101
- width: number,
102
- height: number,
81
+ declare interface CssTextLayoutStyle {
82
+ width?: number,
83
+ height?: number,
84
+ textAlign?: String,
85
+ lineHeight?: number,
86
+ whiteSpace?: String, // normal, nowrap (换行规则)
87
+ wordWrap?: String, // break-word, normal, (仅对英文有效, 只在whiteSpace规定为非换行时生效)
88
+ textOverflow?: String,
103
89
  }
104
90
 
105
- declare interface PostionDefine {
91
+ declare interface CursorResult {
92
+ parseSuccess: boolean,
106
93
  x: number,
107
- y: number
94
+ y: number,
95
+ cachedId: number, // 解析缓存的id,当设置不变的时候使用cache, 0为无效cache
108
96
  }
109
97
 
110
98
  /**
@@ -112,112 +100,57 @@ declare interface PostionDefine {
112
100
  *
113
101
  * @public
114
102
  * @func GetCursorPosition
115
- * @memberof Forge.TextUtils
116
- * @params {string} str 文字字符串
117
- * @params {Forge.RectArea} max_rect
118
- * @param {PackedFontParams} font_params 文本描述符(来源自 PackFontParams 函数)
119
- * @param {PackedTextAttrs} text_attr (来源自 PackTextAttrs 函数)
120
- * @param {int} line_height
121
- * @param {int} pos_x 光标的偏移
122
- * @return {Object} 光标的所在位置{x:0,y:0}
103
+ * @return {CursorResult} 光标的所在位置{x:0,y:0}
123
104
  **/
124
- function GetCursorPosition(
125
- str: string,
126
- max_rect: RectSize,
127
- font_params: PackedFontParams,
128
- text_attr: PackedTextAttrs,
129
- line_height: number,
130
- cursor_offset: number
131
- ): PostionDefine {
132
- let api = (window as any).PlatformUtils?.GetCursorPosition.bind((window as any).PlatformUtils);
133
-
134
- if (api) {
135
- return api(str, max_rect, font_params, text_attr, line_height, cursor_offset);
136
- } else {
137
- return { x: 0, y: 0 }
138
- }
139
- }
140
-
141
- class PackedFontParams {
142
- public font?: string; // font family name
143
- public size?: number; // font size
144
- public bold?: string; // ""/"bold"
145
- public italic?: string; // ""/"italic"
146
- public alignment?: string; // left / right /center
147
- public textColour?: string;
148
- }
149
-
150
- /**k
151
- * 创建文本描述符
152
- *
153
- * @public
154
- * @func PackFontParam
155
- * @param {string} font_family CSS字体名字,如“黑体 欧文”(支持多字体设置)
156
- * @param {int} font_size
157
- * @param {boolean} italic 是否为斜体
158
- * @param {boolean} bold 是否加粗
159
- * @param {string} alignment 水平对齐方式,支持("left", "middle", "right", "justify")
160
- * @param {string} text_color 文字颜色(format "#FFFFFF")
161
- **/
162
- function PackFontParams(
163
- font_family: string | null,
164
- font_size: number,
165
- bold: boolean,
166
- italic: boolean,
167
- alignment: string,
168
- text_color: string | null): PackedFontParams {
169
-
170
- let packed = new PackedFontParams();
171
-
172
- if (!font_size) font_size = Forge.TextUtils.sDefaultFontSize;
173
- if (!font_family) font_family = Forge.TextUtils.sDefaultFont;
174
-
175
- packed.size = font_size;
176
- packed.font = font_family!;
177
- packed.italic = italic ? "italic" : "";
178
- packed.bold = bold ? "bold" : "";
179
-
180
- packed.alignment = (alignment && alignment.length > 0) ? alignment : "left";
181
- packed.textColour = text_color ? text_color : Forge.TextUtils.sDefaultFontColor;
182
-
183
- return packed;
105
+ function getCursorPosition(
106
+ cursorOffset: number,
107
+ text: String,
108
+ fontStyle: CssFontStyle,
109
+ textLayoutStyle: CssTextLayoutStyle,
110
+ buildCache: boolean
111
+ ): CursorResult {
112
+ let result: CursorResult = Forge.TextUtils.GetCursorPosition(
113
+ 0,
114
+ cursorOffset, text,
115
+ fontStyle, textLayoutStyle,
116
+ buildCache);
117
+ return result;
184
118
  }
185
119
 
186
- declare interface PackedTextAttrs {
187
- text_overflow: string;
188
- word_wrap: string;
120
+ /**
121
+ * 获取光标的位置
122
+ *
123
+ * @public
124
+ * @func GetCursorPositionCached
125
+ * @return {CursorResult} 光标的所在位置{x:0,y:0}
126
+ **/
127
+ function getCursorPositionCached(
128
+ cachedId: number,
129
+ cursorOffset: number
130
+ ): CursorResult {
131
+ let result: CursorResult = Forge.TextUtils.GetCursorPosition(
132
+ cachedId,
133
+ cursorOffset,
134
+ null,
135
+ null,
136
+ null,
137
+ true);
138
+ return result;
189
139
  }
190
140
 
191
- /**
192
- * 创建文本区域描述符
193
- *
194
- * @public
195
- * @func PackTextAttrs
196
- * @param {String} text_overflow 超过描画边界时的处理方式:<br>
197
- * "none" 按照文字宽度描画<br>
198
- * "clip" 超出本分不显示(默认)<br>
199
- * "ellipsis" 如果超出,则末尾显示“...”
200
- * 其余字符 当文字超出时,用此字符替换“...”的位置
201
- * @param {String} word_wrap 设置自然换行规则<br>
202
- * "none":“不折行”<br>
203
- * "normal":折行时,尽量不切断单词(仅支持英文单词)<br>
204
- * "break_word":不去识别单词,到达边缘就折行(执行效率高)
205
- * @return {PackedTextAttrs} 文本区域描述符
206
- **/
207
- function PackTextAttrs(text_overflow: string, word_wrap: string): PackedTextAttrs {
208
- if (!text_overflow) text_overflow = "none";
209
- if (!word_wrap) word_wrap = "none";
210
-
211
- return { text_overflow: text_overflow, word_wrap: word_wrap };
141
+ function recycleCursorPositionCache(
142
+ cached_id: number
143
+ ) {
144
+ Forge.TextUtils.RemoveCursorTextCache(cached_id);
212
145
  }
213
146
 
214
147
  const TextTools = {
215
148
  getOneLineTextDrawWidth,
216
149
  getTextWidth,
217
150
  isRtl,
218
- PackFontParams,
219
- PackTextAttrs,
220
- GetCursorPosition
151
+ getCursorPosition,
152
+ getCursorPositionCached,
153
+ recycleCursorPositionCache
221
154
  }
222
155
 
223
156
  export { getTextWidth, TextTools };