@shijiu/jsview-vue 2.3.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 (451) hide show
  1. package/bin/browser/BrowserAudio.vue.mjs +4 -1
  2. package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
  3. package/bin/jsview-vue.mjs +13913 -8048
  4. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +39 -3
  5. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
  6. package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
  7. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
  10. package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
  11. package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +28 -4
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
  13. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
  14. package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
  15. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
  16. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
  17. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
  18. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
  19. package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +5 -4
  20. package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
  21. package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
  22. package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
  23. package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +27 -14
  24. package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
  25. package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
  26. package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
  27. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
  28. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
  29. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
  30. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
  31. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
  32. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
  33. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
  34. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  35. package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
  36. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
  37. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
  38. package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
  39. package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
  40. package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +1 -0
  41. package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
  42. package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +44 -1
  43. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
  44. package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
  45. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
  46. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
  47. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
  48. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +5 -3
  49. package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +88 -25
  50. package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
  51. package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
  52. package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
  53. package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
  54. package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
  55. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
  56. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
  57. package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +11 -0
  58. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
  59. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
  60. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
  61. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
  62. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
  63. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
  64. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
  65. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  66. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
  67. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
  68. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
  69. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
  70. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
  71. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
  72. package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
  73. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
  74. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
  75. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
  76. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
  77. package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
  78. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
  79. package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
  80. package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +72 -0
  81. package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
  82. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
  83. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
  84. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
  85. package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
  86. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
  87. package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
  88. package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
  89. package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
  90. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
  91. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
  92. package/bin/types/utils/JsViewVueWidget/index.d.ts +8 -4
  93. package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
  94. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
  95. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
  96. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
  97. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
  98. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
  99. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
  100. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
  101. package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
  102. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
  103. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
  104. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
  105. package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
  106. package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
  107. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
  108. package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
  109. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
  110. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  111. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
  112. package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
  113. package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
  114. package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
  115. package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  116. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
  117. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
  118. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
  119. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
  120. package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
  121. package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
  122. package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
  123. package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
  124. package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
  125. package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
  126. package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
  127. package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
  128. package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
  129. package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
  130. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
  131. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
  132. package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
  133. package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
  134. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
  135. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
  136. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
  137. package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
  138. package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
  139. package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
  140. package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
  141. package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
  142. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
  143. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
  144. package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
  145. package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
  146. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
  147. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
  148. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
  149. package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
  150. package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
  151. package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
  152. package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
  153. package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  154. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
  155. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
  156. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
  157. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
  158. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  159. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
  160. package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
  161. package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
  162. package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  163. package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
  164. package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
  165. package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
  166. package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
  167. package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
  168. package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
  169. package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
  170. package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
  171. package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
  172. package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
  173. package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
  174. package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
  175. package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
  176. package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
  177. package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
  178. package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
  179. package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
  180. package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
  181. package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
  182. package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
  183. package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
  184. package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
  185. package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
  186. package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
  187. package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
  188. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
  189. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
  190. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
  191. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
  192. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
  193. package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
  194. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
  195. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
  196. package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
  197. package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
  198. package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
  199. package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
  200. package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
  201. package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
  202. package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
  203. package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
  204. package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
  205. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
  206. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
  207. package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
  208. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
  209. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
  210. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
  211. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
  212. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
  213. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
  214. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
  215. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
  216. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
  217. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
  218. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
  219. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
  220. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
  221. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
  222. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
  223. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
  224. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
  225. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
  226. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
  227. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
  228. package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
  229. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
  230. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
  231. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
  232. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
  233. package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
  234. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
  235. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
  236. package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
  237. package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
  238. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
  239. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
  240. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
  241. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
  242. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
  243. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
  244. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
  245. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
  246. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
  247. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
  248. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  249. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
  250. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
  251. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
  252. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
  253. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
  254. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
  255. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
  256. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
  257. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
  258. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
  259. package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
  260. package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
  261. package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
  262. package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
  263. package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
  264. package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
  265. package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
  266. package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
  267. package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
  268. package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
  269. package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
  270. package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
  271. package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
  272. package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
  273. package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
  274. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
  275. package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
  276. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
  277. package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
  278. package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
  279. package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
  280. package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
  281. package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
  282. package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
  283. package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
  284. package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
  285. package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
  286. package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
  287. package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
  288. package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
  289. package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
  290. package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
  291. package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
  292. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
  293. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
  294. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
  295. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
  296. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
  297. package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
  298. package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
  299. package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
  300. package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
  301. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
  302. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
  303. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
  304. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
  305. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
  306. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
  307. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
  308. package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  309. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
  310. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
  311. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
  312. package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
  313. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  314. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
  315. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
  316. package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
  317. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
  318. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
  319. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
  320. package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
  321. package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  322. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
  323. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
  324. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
  325. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
  326. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
  327. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
  328. package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
  329. package/dist/types/utils/index.d.ts +8 -0
  330. package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
  331. package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
  332. package/dist/utils/export-sfc.mjs +12 -0
  333. package/dist/utils/index.mjs +29000 -0
  334. package/dist/utils/jsview-vue-common.mjs +39 -0
  335. package/package.json +1 -1
  336. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
  337. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +51 -3
  338. package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
  339. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
  340. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +347 -145
  341. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
  342. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1603 -588
  343. package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
  344. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +146 -38
  345. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +39 -26
  346. package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
  347. package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
  348. package/utils/JsViewEngineWidget/RectUtils.js +1 -1
  349. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
  350. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
  351. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
  352. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
  353. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +434 -264
  354. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
  355. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
  356. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
  357. package/utils/JsViewEngineWidget/WidgetCommon.ts +29 -7
  358. package/utils/JsViewEngineWidget/index.ts +7 -2
  359. package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
  360. package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
  361. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
  362. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
  363. package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
  364. package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
  365. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
  366. package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
  367. package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
  368. package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
  369. package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
  370. package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
  371. package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
  372. package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
  373. package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
  374. package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +61 -11
  375. package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
  376. package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
  377. package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
  378. package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
  379. package/utils/JsViewVueTools/BlobApi.ts +55 -0
  380. package/utils/JsViewVueTools/FeatureActive.ts +5 -1
  381. package/utils/JsViewVueTools/ForgeHandles.ts +8 -2
  382. package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
  383. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
  384. package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -8
  385. package/utils/JsViewVueTools/JsvTextTools.ts +12 -2
  386. package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
  387. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
  388. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
  389. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
  390. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +30 -12
  391. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +157 -51
  392. package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
  393. package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
  394. package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
  395. package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
  396. package/utils/JsViewVueTools/index.js +3 -1
  397. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
  398. package/utils/JsViewVueWidget/JsvDashPath.vue +150 -0
  399. package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
  400. package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
  401. package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
  402. package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
  403. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
  404. package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
  405. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
  406. package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +3 -1
  407. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
  408. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +24 -8
  409. package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
  410. package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
  411. package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
  412. package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
  413. package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
  414. package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
  415. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
  416. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
  417. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
  418. package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
  419. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
  420. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
  421. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
  422. package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
  423. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
  424. package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
  425. package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
  426. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +34 -31
  427. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  428. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
  429. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
  430. package/utils/JsViewVueWidget/JsvSector.vue +66 -28
  431. package/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue +108 -0
  432. package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
  433. package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
  434. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
  435. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
  436. package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
  437. package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
  438. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -299
  439. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
  440. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
  441. package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
  442. package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
  443. package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
  444. package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
  445. package/utils/JsViewVueWidget/index.js +9 -3
  446. package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
  447. package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
  448. package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
  449. /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
  450. /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
  451. /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
@@ -1,64 +1,78 @@
1
1
 
2
2
  import { StateCmdBuilder, CmdPackBuilder } from "./ForgeTypeDefine"
3
- import { NexusNode } from "./NexusNode";
3
+ import { NexusNode, GLOBAL_CUSTOM_NEXUS_DETAIL_TYPE } from "./NexusNode";
4
4
  import ActorControl from "./ActorControl";
5
+ import type { CommandPackType } from "./CmdTypes";
5
6
 
7
+ /**
8
+ * state().XXXXX 可用的API说明
9
+ * 标注"内部API"的API, 应用开发时一定!!不要使用, 因为后续版本可能调整导致失效
10
+ */
6
11
  class StatePackBuilder {
7
12
  constructor() {
8
13
 
9
14
  }
10
15
 
11
- /*
16
+ /**
12
17
  * clearConditions
13
- * 清理所有预制的condition
18
+ * 清理所有已经设置的condition,
19
+ * condition如果不清理则伴随着FreeMoveActor的生命周期一直存在
14
20
  */
15
- clearAllConditions(): Object {
21
+ clearAllConditions(): CommandPackType {
16
22
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.RemoveAllCondtions());
17
23
  }
18
24
 
19
- /*
25
+ /**
20
26
  * removeConditionByGroup
21
- * 清理指定组的condition
27
+ * 清理指定组的condition,
28
+ * group 和 @file://./ActorControl.ts 中condition()函数声明的group对应
29
+ * condition如果不清理则伴随着FreeMoveActor的生命周期一直存在
22
30
  */
23
- removeConditionByGroup(group: number): Object {
31
+ removeConditionByGroup(group: number): CommandPackType {
24
32
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.RemoveByGroup(group));
25
33
  }
26
34
 
27
- /*
35
+ /**
28
36
  * removeConditionByGroup
29
37
  * 清理指定名字的condition
38
+ * specName 和 @file://./ActorControl.ts 中condition()函数声明的specName对应
39
+ * condition如果不清理则伴随着FreeMoveActor的生命周期一直存在
30
40
  */
31
- removeConditionByName(specName: String) {
41
+ removeConditionByName(specName: String): CommandPackType {
32
42
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.RemoveByName(specName));
33
43
  }
34
44
 
35
45
  /**
36
46
  * activeCondition
37
- * 重新激活对应gid或者specName的condition
47
+ * 重新激活对应group或者specName的condition
48
+ * group和specName和 @file://./ActorControl.ts 中condition()函数声明的group或specName对应
49
+ *
38
50
  * 一个condition处于非激活有两种可能,
39
51
  * 1. 允许触发一次的condition已经完成触发
40
- * 2. 被DeactiveCondition关闭过的condition
52
+ * @file://./ActorControl.ts condition()函数声明的multiTimes == 1的设置即为一次触发
53
+ * 2. 被 deactiveCondition()关闭过的condition
41
54
  *
42
55
  * @param {int} groupType (可选)对应condition的groupType, 与specName二选一
43
56
  * @param {String} specName (可选)对应condition的specName, 与groupId二选一, 当groupId为 undefined 或 -1 时生效
44
57
  */
45
- activeCondition(groupType: number | undefined, specName: String | undefined): Object {
58
+ activeCondition(groupType: number | undefined, specName: String | undefined): CommandPackType {
46
59
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.ActiveCondition(groupType, specName));
47
60
  }
48
61
 
49
62
  /**
50
63
  * deactiveCondition
51
- * 停止对应gid或者specName的condition
64
+ * 停止对应group或者specName的condition
52
65
  *
53
66
  * @param {int} groupType (可选)对应condition的groupType, 与specName二选一
54
67
  * @param {String} specName (可选)对应condition的specName, 与groupId二选一, 当groupId为 undefined 或 -1 时生效
55
68
  */
56
- deactiveCondition(groupType: number | undefined, specName: String | undefined): Object {
69
+ deactiveCondition(groupType: number | undefined, specName: String | undefined): CommandPackType {
57
70
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.DeactiveCondition(groupType, specName));
58
71
  }
59
72
 
60
- /*
73
+ /**
61
74
  * setStartPos 立刻将actor运动起始点设置到目标位置, 作为下一个Action执行时的位置起点
75
+ * 若没有新的Action执行, 则这个位置改变不会有任何效果
62
76
  * 注意1: 只影响当speed/accel不为0时的下一帧的运动起始位置,
63
77
  * 当speed/accel为0状态下要移动物体请用 Action.teleportTo
64
78
  * 注意2: 此为state设置,下一帧直接以此state开始,所以不会触发任何positionCondition的cross条件
@@ -67,12 +81,14 @@ class StatePackBuilder {
67
81
  * targetX (int) 带符号整数,目标位置,如果设置为undefined,标识不以此轴为终点
68
82
  * targetY (int) 带符号整数,目标位置,如果设置为undefined,标识不以此轴为终点
69
83
  */
70
- setStartPos(targetX: number | undefined, targetY: number | undefined) {
71
- return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.SetPos(targetX, targetY));
84
+ setStartPos(targetX: number | undefined, targetY: number | undefined): CommandPackType {
85
+ return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.SetAbsPos(targetX, targetY));
72
86
  }
73
87
 
74
- /*
88
+ /**
75
89
  * setStartOffsetPos 立刻将actor移动以当前位置相对位移的位置, 作为下一个Action执行时的位置起点
90
+ * 用offset的方式可以解决触发condition时, drawX或drawY并不是完全和condition的坐标重合, 偏差的坐标可由offset继承
91
+ *
76
92
  * 注意1: 只影响当speed/accel不为0时的下一帧的运动起始位置,
77
93
  * 当speed/accel为0状态下要移动物体请用 Action.teleportOffset
78
94
  * 注意2: 此为state设置,下一帧直接以此state开始,所以不会触发任何positionCondition的cross条件
@@ -81,35 +97,81 @@ class StatePackBuilder {
81
97
  * targetX (int) 带符号整数,目标位置,如果设置为undefined,标识不以此轴为终点
82
98
  * targetY (int) 带符号整数,目标位置,如果设置为undefined,标识不以此轴为终点
83
99
  */
84
- setStartOffsetPos(offsetX: number | undefined, offsetY: number | undefined) {
100
+ setStartOffsetPos(offsetX: number | undefined, offsetY: number | undefined): CommandPackType {
85
101
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.SetOffsetPos(offsetX, offsetY));
86
102
  }
87
103
 
88
- /*
104
+ /**
105
+ * alignPosition
106
+ * 在condition().then()中使用,
107
+ * 并且只在position相关的condition中才会响应
108
+ * 用condition的位置来校准下次Action的StartPostion
109
+ */
110
+ alignPosition(): CommandPackType {
111
+ return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.AlignPosition());
112
+ }
113
+
114
+ /**
115
+ * updateBaseOffset
116
+ * 更新本div的基准坐标, 同时立刻调整drawX, drawY, 使其相对于父dom节点的屏幕坐标保持不变
117
+ *
118
+ * @param {number} offsetX 基准坐标x偏移量, div的newStyle.left - div的originStyle.left
119
+ * @param {number} offsetY 基准坐标y偏移量, div的newStyle.top - div的originStyle.top
120
+ */
121
+ updateBaseOffset(offsetX: number, offsetY: number): CommandPackType {
122
+ return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.UpdateBaseOffset(offsetX, offsetY));
123
+ }
124
+
125
+ /**
126
+ * 内部API
127
+ *
89
128
  * 在BlockerCondition发生时,进行位置回滚处理
90
129
  */
91
- revertWithHitBlock() {
130
+ revertWithHitBlock(): CommandPackType {
92
131
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.RevertWithHitBlock());
93
132
  }
94
133
 
95
- setHitWallOverflow() {
134
+ /**
135
+ * 内部API
136
+ *
137
+ * setHitWallOverflow
138
+ */
139
+ setHitWallOverflow(): CommandPackType {
96
140
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.SetHitWallOverflow());
97
141
  }
98
142
 
99
- touchLockSwitch(isLock: boolean, direction: number, unlockThreshold: number = -1) {
143
+ /**
144
+ * 内部API
145
+ *
146
+ * touchLockSwitch
147
+ */
148
+ touchLockSwitch(isLock: boolean, direction: number, unlockThreshold: number = -1): CommandPackType {
100
149
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.TouchLockSwitch(isLock, direction, unlockThreshold));
101
150
  }
102
151
 
103
- /*
152
+
153
+ /**
154
+ * fireCustomNexus 发出自定义Nexus event
155
+ * @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 为通讯匹配的句柄, 类似电话号
156
+ */
157
+ fireCustomNexus(nexusRecv: NexusNode): CommandPackType {
158
+ return this.fireNexusEvent(nexusRecv, GLOBAL_CUSTOM_NEXUS_DETAIL_TYPE);
159
+ }
160
+
161
+ /**
162
+ * 内部API
163
+ *
104
164
  * fireNexusEvent 发出Nexus event
105
165
  * @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,在onNexusEvent监听
106
166
  * @param {number} detailEventType 监听的事件类型, 类比与分机号,和onNexusEvent约定, 自定义内容要求1000以上
107
167
  */
108
- fireNexusEvent(nexusRecv: NexusNode, detailEventType: number) {
168
+ fireNexusEvent(nexusRecv: NexusNode, detailEventType: number): CommandPackType {
109
169
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.FireNexusEvent(detailEventType, nexusRecv.token));
110
170
  }
111
171
 
112
172
  /**
173
+ * 内部API
174
+ *
113
175
  * setTouchAttractChild
114
176
  *
115
177
  * 绑定一个子view中的FreeMoveDiv
@@ -117,7 +179,7 @@ class StatePackBuilder {
117
179
  *
118
180
  * @param {ActorControl} otherFreeMoveControl 其他FreeMoveDiv的control对象
119
181
  */
120
- setTouchAttractChild(otherFreeMoveControl: ActorControl) {
182
+ setTouchAttractChild(otherFreeMoveControl: ActorControl): CommandPackType {
121
183
  if (otherFreeMoveControl) {
122
184
  let animRef = otherFreeMoveControl.getBindedAnim();
123
185
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.SetTouchAttractChild(animRef));
@@ -127,6 +189,8 @@ class StatePackBuilder {
127
189
  }
128
190
 
129
191
  /**
192
+ * 内部API
193
+ *
130
194
  * startMovementSync
131
195
  *
132
196
  * 发出进度同步信号(可以一个FreeMove绑定多个信号发生器,但目前场景估计只需要一个发生器即可)
@@ -147,7 +211,7 @@ class StatePackBuilder {
147
211
  startMovementSync(nexusRef: NexusNode,
148
212
  horizontalStart: number, horizontalEnd: number,
149
213
  verticalStart: number, verticalEnd: number,
150
- xyEnable: number) {
214
+ xyEnable: number): CommandPackType {
151
215
 
152
216
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.StartMovementSync(
153
217
  nexusRef?.token ? nexusRef.token : 0,
@@ -158,13 +222,15 @@ class StatePackBuilder {
158
222
  xyEnable));
159
223
  }
160
224
 
161
- /*
225
+ /**
226
+ * 内部API
227
+ *
162
228
  * stopMovementSync
163
229
  *
164
230
  * 停止由startMovementSync发起的的同步信号
165
231
  * 目前阶段,为关闭所有的信号发起器
166
232
  */
167
- stopMovementSync() {
233
+ stopMovementSync(): CommandPackType {
168
234
  return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.StopMovementSync());
169
235
  }
170
236
  }
@@ -1,9 +1,9 @@
1
- import JsvFreeMoveActor from "./FreeMoveActor.vue";
1
+ import JsvFreeMoveActor from "./JsvFreeMoveActor.vue";
2
2
  import { ActEventDefine } from "./ForgeTypeDefine.ts"
3
3
  import { default as KeepFlags } from "./KeepFlags.ts"
4
4
  import JsvEnvBlocker from "./JsvEnvBlocker.vue"
5
- import { newNexus } from "./NexusNode"
6
- import { default as ActControlDebug } from "./ActorControl.ts"
5
+ import { newNexus, fireGlobalNexus } from "./NexusNode"
6
+ import { default as ActControl } from "./ActorControl.ts"
7
7
  import { GetSyncLinkManager, SyncLinkSource } from "./SyncLinkManager.ts"
8
8
 
9
9
 
@@ -13,16 +13,38 @@ let FreeMoveDef = {
13
13
  }
14
14
 
15
15
  let FreeMoveFunc = {
16
+ // NexusNode是用于anim之间信息通知的, 全局唯一, 以全局id区分
16
17
  newNexus,
17
- ActControlDebug,
18
+ ActControl,
19
+ ActControlDebug: ActControl,
18
20
  GetSyncLinkManager,
19
21
  SyncLinkSource
20
22
  }
21
23
 
24
+ let FreeMoveApis = {
25
+ /**
26
+ * newNexus 创建nexusRecv句柄
27
+ * @returns {NexusNode}
28
+ */
29
+ newNexus,
30
+
31
+ /**
32
+ * fireCustomNexus 全局激活自定义Nexus event
33
+ * @param {NexusNode} nexusRecv
34
+ */
35
+ fireCustomNexus: fireGlobalNexus,
36
+ }
37
+
38
+ // 注意, 标注“内部API”的, 在应用开发时一定!!不要使用, 因为后续版本可能调整导致失效
22
39
  export {
23
40
  JsvFreeMoveActor,
24
41
  JsvFreeMoveActor as JsvFreeMoveDiv,
25
- JsvEnvBlocker,
26
42
  FreeMoveDef,
43
+ FreeMoveApis,
44
+
45
+ // JsvEnvBlocker是内部API
46
+ JsvEnvBlocker,
47
+
48
+ // FreeMoveFunc是内部API
27
49
  FreeMoveFunc
28
50
  }
@@ -19,6 +19,7 @@ declare interface CursorOperater {
19
19
  declare type TextChangedFunc = (final_text: string, dsp_text: string) => void;
20
20
  declare type CursorMovedFunc = (new_text_start_index: number, new_cursor_left: number) => void;
21
21
  declare type TextOverflowFunc = (origin_text: string, new_text: string) => void;
22
+ declare type ImeActionFunc = (action: number) => void;
22
23
 
23
24
  export class EditViewOperator {
24
25
  private _EditViewHandle: any = null;
@@ -47,15 +48,18 @@ export class EditViewOperator {
47
48
  private _OnTextChangedCallback: TextChangedFunc;
48
49
  private _OnCursorMoved: CursorMovedFunc;
49
50
  private _TextOverflowFunc: TextOverflowFunc | undefined;
51
+ private _OnImeActionFunc: ImeActionFunc | undefined;
50
52
 
51
53
  constructor(
52
54
  text_changed_callback: TextChangedFunc,
53
55
  cursor_moved: CursorMovedFunc,
54
- text_overflow: TextOverflowFunc | undefined = undefined
56
+ text_overflow: TextOverflowFunc | undefined = undefined,
57
+ on_ime_action: ImeActionFunc | undefined = undefined
55
58
  ) {
56
59
  this._OnTextChangedCallback = text_changed_callback;
57
60
  this._OnCursorMoved = cursor_moved;
58
61
  this._TextOverflowFunc = text_overflow;
62
+ this._OnImeActionFunc = on_ime_action;
59
63
  }
60
64
 
61
65
  // 当前是否为焦点
@@ -143,7 +147,7 @@ export class EditViewOperator {
143
147
  this._EditViewHandle.addImeEventListener({
144
148
  OnTextChanged: this._OnTextChanged.bind(this),
145
149
  OnStatusChanged: this._OnStatusChanged.bind(this),
146
- OnEditAction: null
150
+ OnEditAction: this._OnEditAction.bind(this),
147
151
  });
148
152
 
149
153
  this._EditViewId = Forge.sViewStore.add(
@@ -202,6 +206,7 @@ export class EditViewOperator {
202
206
  }
203
207
 
204
208
  onUnmounted() {
209
+ this._EditViewHandle?.hideIme(); // 当home键之类对节点进行unmount时,要隐藏输入法
205
210
  this._EditViewHandle?.releaseResource();
206
211
  this._EditVisibleArea!.releaseResource();
207
212
  if (this._EditViewId != -1) {
@@ -309,6 +314,10 @@ export class EditViewOperator {
309
314
  private _OnStatusChanged(visible: boolean) {
310
315
  }
311
316
 
317
+ private _OnEditAction(action: number) {
318
+ this._OnImeActionFunc?.(action);
319
+ }
320
+
312
321
  public addText(text: string) {
313
322
  if (this._InputType === InputType.NUMBER && !ifDigital(text)) {
314
323
  // console.log(`The input data:${string} is not number`);
@@ -34,6 +34,17 @@
34
34
  * 返回true时可以规避ime显示后有时会吐出返回键导致整体退出的问题
35
35
  * @params isUp {boolean} 是down(false)还是up(true)
36
36
  * @return {boolean}
37
+ * onImeAction {function} 软键盘触发 editor action 的回调
38
+ * @params action {number} Android `BaseInputConnection#performEditorAction()` 吐回的值
39
+ * 0: IME_ACTION_UNSPECIFIED
40
+ * 1: IME_ACTION_NONE
41
+ * 2: IME_ACTION_GO
42
+ * 3: IME_ACTION_SEARCH
43
+ * 4: IME_ACTION_SEND
44
+ * 5: IME_ACTION_NEXT
45
+ * 6: IME_ACTION_DONE
46
+ * 7: IME_ACTION_PREVIOUS
47
+ * enableTap {boolean} 是否启用点击事件
37
48
  *
38
49
  * InputDispatcher dispatch支持事件:
39
50
  * add
@@ -138,8 +149,14 @@ const rProps = defineProps({
138
149
  type: Function,
139
150
  },
140
151
  onBackKey: {
141
- Type: Function,
152
+ type: Function,
153
+ },
154
+ onImeAction: {
155
+ type: Function,
142
156
  },
157
+ enableTap: {
158
+ type: Boolean,
159
+ }
143
160
  });
144
161
 
145
162
  let rCursorRef = shallowRef(null);
@@ -157,6 +174,7 @@ function _OnTextChanged(input_final_text, dsp_text) {
157
174
  );
158
175
  rInputFinalText.value = dsp_text;
159
176
  rInputFinalTextLenth.value = dsp_text.length;
177
+ rProps.onTextChange?.(dsp_text);
160
178
  }
161
179
 
162
180
  function _OnCursorPositionChanged(text_left, cursor_left) {
@@ -168,10 +186,19 @@ function _OnCursorPositionChanged(text_left, cursor_left) {
168
186
  let cEditViewOperator = new EditViewOperator(
169
187
  _OnTextChanged,
170
188
  _OnCursorPositionChanged,
171
- rProps.onTextOverflow
189
+ rProps.onTextOverflow,
190
+ (action) => {
191
+ rProps.onImeAction?.(action);
192
+ }
172
193
  );
173
194
  let vEditViewInnerId = cEditViewOperator.generateView(); // 建立Forge.EditView
174
195
 
196
+ let onTap = computed(() => {
197
+ return rProps.enableTap ? () => {
198
+ cEditViewOperator.showSoftIme();
199
+ } : null;
200
+ });
201
+
175
202
  cEditViewOperator.updateInputConfig(
176
203
  rProps.width,
177
204
  rProps.height,
@@ -323,6 +350,7 @@ defineExpose({
323
350
  height: rProps.height,
324
351
  overflow: 'hidden',
325
352
  }"
353
+ @click="onTap"
326
354
  >
327
355
  <div
328
356
  :style="{
@@ -35,7 +35,7 @@
35
35
  </template>
36
36
 
37
37
  <script setup>
38
- import { shallowRef, onBeforeUnmount } from "vue";
38
+ import { shallowRef, onBeforeUnmount, watch } from "vue";
39
39
  import { createTexture } from "./LineManager";
40
40
  let isShow = shallowRef(true);
41
41
  const props = defineProps({
@@ -52,13 +52,30 @@ const getDistance = (point1, point2) => {
52
52
  const h = Math.abs(point1.y - point2.y);
53
53
  return Math.sqrt(w * w + h * h);
54
54
  };
55
- const width = getDistance(props.startPos, props.endPos);
56
55
 
57
- let angle =
58
- (180 / Math.PI) * Math.asin((props.endPos.y - props.startPos.y) / width);
59
- if (props.endPos.x < props.startPos.x) {
60
- angle = 180 - angle;
61
- }
56
+ const width = shallowRef(getDistance(props.startPos, props.endPos));
57
+ const angle = shallowRef(0);
58
+
59
+ const updateWidthAndAngle = () => {
60
+ const w = getDistance(props.startPos, props.endPos);
61
+ width.value = w;
62
+ if (w === 0) {
63
+ angle.value = 0;
64
+ } else {
65
+ let tmpAngle = (180 / Math.PI) * Math.asin((props.endPos.y - props.startPos.y) / w);
66
+ if (props.endPos.x < props.startPos.x) {
67
+ tmpAngle = 180 - tmpAngle;
68
+ }
69
+ angle.value = tmpAngle;
70
+ }
71
+ };
72
+
73
+ // watch for startPos & endPos changes
74
+ watch(
75
+ () => [props.startPos.x, props.startPos.y, props.endPos.x, props.endPos.y],
76
+ updateWidthAndAngle,
77
+ { immediate: true }
78
+ );
62
79
 
63
80
  const AnimEnd = () => {
64
81
  if (props.appear == "fadeOut") {
@@ -318,7 +318,7 @@ const stopSlide = () => {
318
318
  //公共不满足条件部分
319
319
  const commonFailState = () => {
320
320
  if (props.forceSlide) {
321
- console.error("请注意文字长度和间隙加起来必须大于组件宽度");
321
+ // console.error("请注意文字长度和间隙加起来必须大于组件宽度");
322
322
  text1.value = props.text;
323
323
  } else {
324
324
  text1.value = props.text;
@@ -17,7 +17,7 @@
17
17
  <script setup>
18
18
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
19
19
  import { JsvTextureStoreApi } from "../JsViewVueTools/JsvTextureStore/JsvTextureStore";
20
- import { onUnmounted, shallowRef } from "vue";
20
+ import { onUnmounted, watchEffect } from "vue";
21
21
  import JsvNinePatch from "./JsvNinePatch.vue";
22
22
 
23
23
  const rProps = defineProps({
@@ -96,19 +96,21 @@ if (!rProps.frontLayer) {
96
96
  // 通过内置函数构造定制的NativeSharedView
97
97
  vJsvMainView = new Forge.NativeSharedView();
98
98
  vInnerViewId = Forge.sViewStore.add(new Forge.ViewInfo(vJsvMainView));
99
- if (rProps.oversize != 0) {
100
- vJsvMainView.SetOverSize(rProps.oversize);
101
- }
99
+ let vOverSizeCache = 0;
102
100
 
103
- // 更新宽高
104
- if (typeof vJsvMainView != "undefined" && vJsvMainView) {
105
- if (rProps.setId) {
106
- // 使用设置进来的track id,而非自动生成
107
- vJsvMainView.SetTrackId(rProps.setId);
101
+ watchEffect(() => {
102
+ if (rProps.oversize != vOverSizeCache) {
103
+ vOverSizeCache = rProps.oversize;
104
+ vJsvMainView.SetOverSize(vOverSizeCache);
108
105
  }
106
+ });
109
107
 
110
- rProps.getId?.(vJsvMainView.GetTrackId());
108
+ // TrackId
109
+ if (rProps.setId && rProps.setId.length > 0) {
110
+ // 使用设置进来的track id,而非自动生成
111
+ vJsvMainView.SetTrackId(rProps.setId);
111
112
  }
113
+ rProps.getId?.(vJsvMainView.GetTrackId());
112
114
 
113
115
  onUnmounted(() => {
114
116
  // 清理View管理缓存
@@ -8,19 +8,24 @@
8
8
  * props说明:
9
9
  * style {Object} 同div的Style,通过width/height来控制.9图片延展后的显示尺寸,另外通过top/left控制坐标
10
10
  * imageUrl {String} (必填)显示图片的加载地址
11
- * imageWidth {int} (必填)原图信息: 原图的宽度(由于正方形,宽高相同)
12
- * contentWidth {int} (废弃)此值为了兼容,会赋值给centerWidth
13
- * centerWidth {int} (必填)原图信息: .9图的中心区域宽度(repeat区域)
14
- * imageDspWidth {int} 原图缩放后的显示宽度,计算方法:
11
+ * imageWidth {int} (必填)相对原图尺寸信息: 原图的宽度(由于正方形,宽高相同)
12
+ * centerWidth {int} (必填)相对原图尺寸信息: .9图的中心区域宽度(repeat区域), 对于用圆圈做成圆角矩形场景, 用TextureBuilder的api的返回值即可
13
+ * imageDspWidth {int} 原图缩放后的显示宽度,对于用圆圈做成圆角矩形场景, 用TextureBuilder的api的返回值即可
14
+ * 对于用其他圆角半径的图来临时顶替指定圆角半径的场景时,用如下计算方法求imageDspWidth:
15
15
  * 四角为90度圆弧时: imageDspWidth = 显示图形的圆弧半径 / 原图中圆弧的半径 * 原图宽度
16
16
  * 原图中圆弧半径 = (原图宽度 - borderOutset * 2) / 2
17
17
  * 四角为其他形状时,原图.9图的四角区域,缩放到要和显示图形重合后的宽度。
18
- * borderOutset {int} (必填)原图信息: 图片边缘到中心内容区域边缘的距离, 快速计算: (原图宽度 - 原图中放内容宽度) / 2
19
- * animTime {int} (必填)缩放动画的时长(单位秒)
20
- * waitForInit {boolean} (选填)尺寸为0时是否进行描画(例如: 首次显示不展示动画的场合,设置为true),默认值为true
18
+ * borderOutset {int} (必填)原图信息: 图片边缘到中心内容区域边缘的距离, 快速计算: (原图宽度 - 原图中要包裹区域宽度) / 2
19
+ * imageBlendType {String} (选填) alpha合并模式,默认为普通合成,可设置"alphaOverride", 用于Video挖洞操作
20
+ * (已废弃)contentWidth {int} (已废弃)此值为了兼容,会赋值给centerWidth
21
+ *
22
+ * 从此以下的参数为要做焦点框尺寸变化过渡动画时, 需要传入的属性, 若为静态的焦点框, 则不需要传入:
23
+ * animation {string} (选填)css动画, 格式同css的style.animation, 填写后, animTime启用的漂移动画将失效
24
+ * animTime {int} (选填)缩放动画的时长(单位秒), 填写后, 当style的top/left/width/height发生变化时, 会自动触发过渡动画
25
+ * waitForInit {boolean} (选填)和animTime一起使用, 用于禁用首次设置top/left/width/height产生的动画
21
26
  * onTransitionEnd { Function } (选填)transition动画结束的回调
22
27
  * onAnimationEnd { Function } (选填)animation动画结束的回调
23
- * imageBlendType {String} (选填) alpha合并模式,默认为普通合成,可设置"alphaOverride", 用于Video挖洞操作
28
+ *
24
29
  -->
25
30
 
26
31
  <script setup>
@@ -79,7 +84,7 @@ const imageDspWidthInner = computed(() =>
79
84
  );
80
85
  // slice_width 获取
81
86
  const sliceWidth = ref(
82
- Math.ceil(Math.max(0, (props.imageWidth - centerWidth) / 2))
87
+ Math.ceil(Math.max(1, (props.imageWidth - centerWidth) / 2)) // slice 最小为1px, 否则出现native除0错误
83
88
  );
84
89
  const borderDspWidth = ref(
85
90
  Math.ceil((sliceWidth.value * imageDspWidthInner.value) / props.imageWidth)
@@ -89,15 +94,20 @@ const convertedBorderOutset = ref(
89
94
  );
90
95
 
91
96
  watchEffect(() => {
97
+ let testWidth = imageDspWidthInner.value - props.borderOutset * 2;
92
98
  if (
93
- (props.style?.width && props.style.width <= imageDspWidthInner.value) ||
94
- (props.style?.height && props.style.height <= imageDspWidthInner.value)
99
+ (props.style?.width && props.style.width <= testWidth) ||
100
+ (props.style?.height && props.style.height <= testWidth)
95
101
  ) {
96
102
  console.warn(
97
103
  "JsvNinePatch: style size must be larger than imageDspWidth. style is",
98
104
  props.style,
99
105
  "imageDspWidth is",
100
- imageDspWidthInner.value
106
+ imageDspWidthInner.value,
107
+ "borderOutset is",
108
+ props.borderOutset,
109
+ "testWidth is",
110
+ testWidth
101
111
  );
102
112
  }
103
113
  });