@shijiu/jsview-vue 2.2.201 → 2.2.373

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/bin/browser/BrowserApic.vue.mjs +2 -13
  2. package/bin/browser/BrowserApic2.vue.mjs +2 -13
  3. package/bin/browser/BrowserApicLib.mjs +24 -24
  4. package/bin/browser/BrowserAudio.vue.mjs +2 -10
  5. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +21 -5
  6. package/bin/browser/BrowserJsvLatex.vue.mjs +39 -16
  7. package/bin/browser/BrowserPreload.vue.mjs +1 -5
  8. package/bin/browser/BrowserQrcode.vue.mjs +1 -5
  9. package/bin/browser/BrowserSpray.vue.mjs +2 -12
  10. package/bin/browser/BrowserTextureAnim.vue.mjs +2 -12
  11. package/bin/export-sfc.mjs +3 -3
  12. package/bin/jsview-vue-common.mjs +3 -3
  13. package/bin/jsview-vue.mjs +3216 -2086
  14. package/bin/types/JsViewEngineWidget/CheckType.d.ts +4 -0
  15. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +37 -33
  16. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +4 -0
  17. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +15 -2
  18. package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -0
  19. package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +4 -0
  20. package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +14 -3
  21. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +280 -3
  22. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +7 -1
  23. package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +4 -0
  24. package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +4 -0
  25. package/bin/types/JsViewEngineWidget/MetroWidget/Slide.d.ts +4 -0
  26. package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +4 -0
  27. package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +4 -0
  28. package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +4 -0
  29. package/bin/types/JsViewEngineWidget/RangeModel.d.ts +4 -0
  30. package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +4 -0
  31. package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +4 -0
  32. package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +4 -0
  33. package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +4 -0
  34. package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +4 -0
  35. package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
  36. package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +4 -0
  37. package/bin/types/JsViewEngineWidget/index.d.ts +5 -1
  38. package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +4 -0
  39. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +4 -0
  40. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +4 -0
  41. package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -0
  42. package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +4 -0
  43. package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +4 -0
  44. package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +4 -0
  45. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +4 -0
  46. package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +4 -0
  47. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +4 -0
  48. package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +4 -0
  49. package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +4 -0
  50. package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +5 -0
  51. package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +4 -0
  52. package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -0
  53. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +4 -0
  54. package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +24 -0
  55. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +4 -0
  56. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -0
  57. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +4 -0
  58. package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +5 -0
  59. package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +4 -0
  60. package/bin/types/JsViewPlugin/index.d.ts +4 -0
  61. package/bin/types/JsViewVueTools/ConstSymbol.d.ts +4 -0
  62. package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +4 -0
  63. package/bin/types/JsViewVueTools/DebugTool.d.ts +4 -0
  64. package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +4 -0
  65. package/bin/types/JsViewVueTools/FeatureActive.d.ts +14 -0
  66. package/bin/types/JsViewVueTools/ForgeConstDefine.d.ts +4 -0
  67. package/bin/types/JsViewVueTools/ForgeHandles.d.ts +7 -3
  68. package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +4 -0
  69. package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +20 -1
  70. package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -2
  71. package/bin/types/JsViewVueTools/JsvFederationTools.d.ts +4 -0
  72. package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +4 -0
  73. package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +8 -4
  74. package/bin/types/JsViewVueTools/JsvPerformance.d.ts +4 -0
  75. package/bin/types/JsViewVueTools/JsvPreDownloader.d.ts +24 -2
  76. package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +28 -3
  77. package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +50 -0
  78. package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +4 -0
  79. package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +21 -1
  80. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +85 -27
  81. package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +4 -0
  82. package/bin/types/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
  83. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +4 -0
  84. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +4 -0
  85. package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +4 -0
  86. package/bin/types/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +4 -0
  87. package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +30 -4
  88. package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +4 -0
  89. package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
  90. package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +5 -1
  91. package/bin/types/JsViewVueTools/TextureManagerTools.d.ts +11 -0
  92. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +4 -0
  93. package/bin/types/JsViewVueTools/index.d.ts +7 -0
  94. package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +4 -0
  95. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +38 -0
  96. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +4 -0
  97. package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
  98. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +4 -0
  99. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +27 -0
  100. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +4 -0
  101. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +4 -0
  102. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +28 -0
  103. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +4 -0
  104. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +4 -0
  105. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +4 -0
  106. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +4 -0
  107. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +4 -0
  108. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +4 -0
  109. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +4 -0
  110. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +4 -0
  111. package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +4 -0
  112. package/bin/types/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +4 -0
  113. package/bin/types/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +4 -0
  114. package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +4 -0
  115. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +4 -0
  116. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +21 -0
  117. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +4 -0
  118. package/bin/types/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
  119. package/bin/types/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -0
  120. package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +4 -0
  121. package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +4 -0
  122. package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +19 -0
  123. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +34 -0
  124. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +106 -0
  125. package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +6 -2
  126. package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +6 -0
  127. package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +48 -1
  128. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +4 -0
  129. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +4 -0
  130. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +4 -0
  131. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +4 -0
  132. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +25 -0
  133. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +22 -0
  134. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +4 -0
  135. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +4 -0
  136. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +4 -0
  137. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +4 -0
  138. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +4 -0
  139. package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +4 -0
  140. package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +73 -0
  141. package/bin/types/JsViewVueWidget/JsvHole.d.ts +17 -0
  142. package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +14 -34
  143. package/bin/types/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +48 -0
  144. package/bin/types/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +27 -0
  145. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +64 -209
  146. package/bin/types/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
  147. package/bin/types/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +14 -0
  148. package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
  149. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +20 -0
  150. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +4 -0
  151. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +4 -0
  152. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +21 -0
  153. package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +20 -0
  154. package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +4 -0
  155. package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +7 -1
  156. package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +4 -0
  157. package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +90 -0
  158. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +4 -0
  159. package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +4 -0
  160. package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +24 -0
  161. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +30 -0
  162. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +17 -0
  163. package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +17 -0
  164. package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +18 -0
  165. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +4 -0
  166. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +42 -0
  167. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +4 -0
  168. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +19 -0
  169. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +4 -0
  170. package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +25 -0
  171. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +4 -0
  172. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +24 -0
  173. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  174. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +45 -0
  175. package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +4 -0
  176. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +18 -0
  177. package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +4 -0
  178. package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +4 -0
  179. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
  180. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +4 -0
  181. package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +4 -0
  182. package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +18 -0
  183. package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +42 -0
  184. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +4 -0
  185. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +40 -0
  186. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +4 -0
  187. package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +4 -0
  188. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +52 -0
  189. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +16 -0
  190. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +4 -0
  191. package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +4 -0
  192. package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +4 -0
  193. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +4 -0
  194. package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +39 -0
  195. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +4 -0
  196. package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +24 -0
  197. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +4 -0
  198. package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +26 -0
  199. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +4 -0
  200. package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +4 -0
  201. package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +7 -2
  202. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  203. package/bin/types/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +100 -0
  204. package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +25 -0
  205. package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +4 -0
  206. package/bin/types/JsViewVueWidget/index.d.ts +6 -0
  207. package/bin/types/index.d.ts +4 -0
  208. package/index.d.ts +8 -0
  209. package/package.json +1 -1
  210. package/tools/config/toolkit.mjs +81 -0
  211. package/tools/config/tsconfig.json +1 -0
  212. package/tools/config/vite.config.ts +24 -14
  213. package/tools/jsview-vue-build.mjs +66 -21
  214. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +6 -2
  215. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +22 -3
  216. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +3 -1
  217. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +12 -5
  218. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +208 -84
  219. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +15 -9
  220. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -2
  221. package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
  222. package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
  223. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +13 -3
  224. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +27 -6
  225. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +34 -28
  226. package/utils/JsViewPlugin/JsvLatex/index.js +22 -0
  227. package/utils/JsViewVueTools/FeatureActive.ts +84 -0
  228. package/utils/JsViewVueTools/ForgeHandles.ts +7 -3
  229. package/utils/JsViewVueTools/JsvDynamicCssStyle.js +2 -0
  230. package/utils/JsViewVueTools/JsvDynamicKeyFrames.ts +2 -0
  231. package/utils/JsViewVueTools/JsvImpactTracer.js +2 -0
  232. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -1
  233. package/utils/JsViewVueTools/JsvRefTaker.js +1 -2
  234. package/utils/JsViewVueTools/JsvRuntimeBridge.js +67 -1
  235. package/utils/JsViewVueTools/JsvStyleClass.js +2 -0
  236. package/utils/JsViewVueTools/JsvStyleSheetsDeclarer.js +2 -0
  237. package/utils/JsViewVueTools/JsvTextTools.ts +223 -0
  238. package/utils/JsViewVueTools/JsvTextureLoadTool.ts +233 -0
  239. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +4 -1
  240. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +7 -3
  241. package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +1 -0
  242. package/utils/JsViewVueTools/TextureManagerTools.ts +17 -0
  243. package/utils/JsViewVueTools/index.js +3 -0
  244. package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -0
  245. package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +10 -2
  246. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +12 -1
  247. package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +4 -2
  248. package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +2 -0
  249. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +219 -0
  250. package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +11 -9
  251. package/utils/JsViewVueWidget/JsvFilterView.vue +2 -0
  252. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +5 -2
  253. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +145 -0
  254. package/utils/JsViewVueWidget/JsvFlexCell/index.js +2 -5
  255. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +39 -12
  256. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +210 -62
  257. package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +9 -0
  258. package/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue +2 -0
  259. package/utils/JsViewVueWidget/JsvGrid.vue +2 -0
  260. package/utils/JsViewVueWidget/JsvHole.js +2 -0
  261. package/utils/JsViewVueWidget/JsvInput/Cursor.vue +49 -45
  262. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +320 -0
  263. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +222 -0
  264. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +281 -681
  265. package/utils/JsViewVueWidget/JsvInput/SharedDefine.ts +17 -0
  266. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +47 -0
  267. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +2 -0
  268. package/utils/JsViewVueWidget/JsvMarquee.vue +2 -0
  269. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +2 -0
  270. package/utils/JsViewVueWidget/JsvMindMap/DataTree.ts +14 -1
  271. package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +277 -117
  272. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +91 -68
  273. package/utils/JsViewVueWidget/JsvNinePatch.vue +5 -0
  274. package/utils/JsViewVueWidget/JsvPieChart.vue +2 -0
  275. package/utils/JsViewVueWidget/JsvPosterDiv.vue +2 -0
  276. package/utils/JsViewVueWidget/JsvPosterImage.vue +2 -0
  277. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +2 -0
  278. package/utils/JsViewVueWidget/JsvProgressBar.vue +2 -0
  279. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +10 -11
  280. package/utils/JsViewVueWidget/JsvRadarChart.vue +2 -0
  281. package/utils/JsViewVueWidget/JsvRipple/Constant.js +2 -2
  282. package/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue +3 -1
  283. package/utils/JsViewVueWidget/JsvScaleTextBox.vue +2 -0
  284. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +9 -0
  285. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +9 -0
  286. package/utils/JsViewVueWidget/JsvSector.vue +2 -0
  287. package/utils/JsViewVueWidget/JsvSoundPool.js +2 -0
  288. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +30 -13
  289. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +2 -0
  290. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue +2 -0
  291. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +2 -0
  292. package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +2 -0
  293. package/utils/JsViewVueWidget/JsvTextBox.vue +2 -4
  294. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +44 -41
  295. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +101 -0
  296. package/utils/JsViewVueWidget/JsvVideo.vue +2 -2
  297. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +2 -0
  298. package/utils/JsViewVueWidget/index.js +2 -0
  299. package/utils/JsViewVueTools/JsvTextTools.js +0 -89
@@ -2,19 +2,8 @@ import { shallowRef, onMounted, openBlock, createElementBlock, normalizeStyle }
2
2
  import { W as WebpData, G as GifData, V as Viewer } from './BrowserApicLib.mjs';
3
3
  import { L as LoopType } from '../jsview-vue-common.mjs';
4
4
 
5
- //
6
- // utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue;
7
- //
8
- /* <!--
9
- * @Author: ChenChanghua
10
- * @Date: 2021-10-13 13:14:49
11
- * @LastEditors: ChenChanghua
12
- * @LastEditTime: 2021-10-13 17:13:24
13
- * @Description: file content
14
- -->
15
-
16
-
17
-
5
+ /*
6
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue}
18
7
  */
19
8
  const _sfc_main = {
20
9
  __name: "BrowserApic",
@@ -2,19 +2,8 @@ import { shallowRef, onMounted, openBlock, createElementBlock, normalizeStyle }
2
2
  import { W as WebpData, G as GifData, V as Viewer } from './BrowserApicLib.mjs';
3
3
  import { L as LoopType } from '../jsview-vue-common.mjs';
4
4
 
5
- //
6
- // utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue;
7
- //
8
- /* <!--
9
- * @Author: ChenChanghua
10
- * @Date: 2021-10-13 13:14:49
11
- * @LastEditors: ChenChanghua
12
- * @LastEditTime: 2021-10-13 17:13:24
13
- * @Description: file content
14
- -->
15
-
16
-
17
-
5
+ /*
6
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue}
18
7
  */
19
8
  const _sfc_main = {
20
9
  __name: "BrowserApic2",
@@ -1,8 +1,8 @@
1
1
  import { a as LoopToolBase, L as LoopType, A as ApicEndState } from '../jsview-vue-common.mjs';
2
2
 
3
- //
4
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.js;
5
- //
3
+ /*
4
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.js}
5
+ */
6
6
  class PartLoopTool extends LoopToolBase {
7
7
  constructor(info_list) {
8
8
  super();
@@ -73,9 +73,9 @@ class PartLoopTool extends LoopToolBase {
73
73
  }
74
74
  }
75
75
 
76
- //
77
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.js;
78
- //
76
+ /*
77
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.js}
78
+ */
79
79
  class NormalLoopTool extends LoopToolBase {
80
80
  constructor(loop_type, loop_num) {
81
81
  super();
@@ -120,9 +120,9 @@ class NormalLoopTool extends LoopToolBase {
120
120
  }
121
121
  }
122
122
 
123
- //
124
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.js;
125
- //
123
+ /*
124
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.js}
125
+ */
126
126
  class SingleLoopTool extends LoopToolBase {
127
127
  constructor(index) {
128
128
  super();
@@ -137,9 +137,9 @@ class SingleLoopTool extends LoopToolBase {
137
137
  }
138
138
  }
139
139
 
140
- //
141
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.js;
142
- //
140
+ /*
141
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.js}
142
+ */
143
143
  class Viewer {
144
144
  constructor(apic_data, canvas, listener) {
145
145
  this._ApicData = apic_data;
@@ -228,9 +228,9 @@ class Viewer {
228
228
  }
229
229
  }
230
230
 
231
- //
232
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.js;
233
- //
231
+ /*
232
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.js}
233
+ */
234
234
  const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
235
235
  class ApicDataBase {
236
236
  constructor(arrayBuffer) {
@@ -251,9 +251,9 @@ class ApicDataBase {
251
251
  }
252
252
  }
253
253
 
254
- //
255
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.js;
256
- //
254
+ /*
255
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.js}
256
+ */
257
257
  class WebpData extends ApicDataBase {
258
258
  decode(array_buffer) {
259
259
  let webp_data = new Uint8Array(array_buffer);
@@ -367,9 +367,9 @@ class WebpData extends ApicDataBase {
367
367
  }
368
368
  }
369
369
 
370
- //
371
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.js;
372
- //
370
+ /*
371
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.js}
372
+ */
373
373
  class GifData extends ApicDataBase {
374
374
  decode(array_buffer) {
375
375
  const gif = window.ApicTools.parseGIF(array_buffer);
@@ -424,8 +424,8 @@ class GifData extends ApicDataBase {
424
424
  }
425
425
  }
426
426
 
427
- //
428
- // utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.js;
429
- //
427
+ /*
428
+ + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.js}
429
+ */
430
430
 
431
431
  export { GifData as G, Viewer as V, WebpData as W };
@@ -1,12 +1,8 @@
1
1
  import { openBlock, createElementBlock, resolveComponent, createBlock, mergeProps } from 'vue';
2
2
  import { _ as _export_sfc } from '../export-sfc.mjs';
3
3
 
4
- //
5
- // utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue;
6
- //
7
4
  /*
8
-
9
-
5
+ + @file {@link file://./../../../../../utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue}
10
6
  */
11
7
  const _sfc_main$1 = {
12
8
  props: {
@@ -209,12 +205,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
209
205
  }
210
206
  const JsvSystemAudio = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
211
207
 
212
- //
213
- // utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue;
214
- //
215
208
  /*
216
-
217
-
209
+ + @file {@link file://./../../../../../utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue}
218
210
  */
219
211
  const _sfc_main = {
220
212
  components: {
@@ -1,10 +1,7 @@
1
- import { openBlock, createElementBlock, normalizeStyle } from 'vue';
1
+ import { onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle } from 'vue';
2
2
 
3
- //
4
- // utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue;
5
- //
6
3
  /*
7
-
4
+ + @file {@link file://./../../../../utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue}
8
5
  */
9
6
  const _sfc_main = {
10
7
  __name: "BrowserJsvFragShaderView",
@@ -32,12 +29,31 @@ const _sfc_main = {
32
29
  // [{ name: string, type: number, resource: object/string }]
33
30
  textures: {
34
31
  type: Array
32
+ },
33
+ onEnd: {
34
+ type: Function
35
+ },
36
+ onStart: {
37
+ type: Function
35
38
  }
36
39
  },
37
40
  setup(__props, { expose }) {
38
41
  const props = __props;
42
+ let vMounted = false;
43
+ onMounted(() => {
44
+ vMounted = true;
45
+ });
46
+ onUnmounted(() => {
47
+ vMounted = false;
48
+ });
39
49
  expose({
40
50
  startAnim: () => {
51
+ props.onStart?.();
52
+ setTimeout(() => {
53
+ if (vMounted) {
54
+ props.onEnd?.();
55
+ }
56
+ }, 0);
41
57
  },
42
58
  stopAnim: () => {
43
59
  }
@@ -1,16 +1,24 @@
1
- import { shallowRef, onBeforeUnmount, openBlock, createElementBlock, unref, normalizeStyle } from 'vue';
1
+ import { shallowRef, ref, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, createElementVNode, unref } from 'vue';
2
2
  import { Forge } from '@shijiu/jsview/dom/jsv-forge-define';
3
3
 
4
- //
5
- // utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js;
6
- //
4
+ /*
5
+ + @file {@link file://./../../../../utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js}
6
+ */
7
7
  const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) => {
8
8
  return `<html>
9
9
  <head>
10
+ <style>
11
+ mjx-container[display="true"] {
12
+ margin: 0 0 !important;
13
+ }
14
+ body {
15
+ margin: 0 !important;
16
+ }
17
+ </style>
10
18
  <script type="text/javascript">
11
19
  MathJax = {
12
20
  tex: {
13
- inlineMath: [['$', '$'], ['\\(', '\\)']]
21
+ inlineMath: [['$', '$'], ['\\\\(', '\\\\)']]
14
22
  },
15
23
  svg: {
16
24
  fontCache: 'global'
@@ -21,13 +29,15 @@ const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) => {
21
29
  divElement.style.display = "inline-block";
22
30
  divElement.style.fontSize = "${fontSize}px";
23
31
  divElement.style.color = "${color}";
24
- divElement.innerHTML = String.raw\`$$${latexStr}$$\`;
32
+ divElement.innerHTML = String.raw\`${latexStr}\`;
33
+ //divElement.style.width = ${width} + "px";
25
34
  document.body.appendChild(divElement);
26
35
 
27
36
  MathJax.typesetPromise().then(() => {
28
37
  // modify the DOM here
29
38
  let formulaMetrics = MathJax.getMetricsFor(divElement, true);
30
- let scale = ${width} / divElement.clientWidth;
39
+ let w = Math.min(${width}, divElement.clientWidth);
40
+ let scale = w / divElement.clientWidth;
31
41
  divElement.style.fontSize = Math.floor(scale * ${fontSize}) + "px";
32
42
  MathJax.typeset();
33
43
  }).catch((err) => console.error(err.message));
@@ -40,11 +50,8 @@ const getHtmlStr = (libPath, latexStr, fontSize, width, height, color) => {
40
50
  </html>`;
41
51
  };
42
52
 
43
- //
44
- // utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue;
45
- //
46
53
  /*
47
-
54
+ + @file {@link file://./../../../../utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue}
48
55
  */
49
56
  const _sfc_main = {
50
57
  __name: "BrowserJsvLatex",
@@ -84,19 +91,33 @@ const _sfc_main = {
84
91
  },
85
92
  setup(__props) {
86
93
  const props = __props;
94
+ function precessString(original) {
95
+ return "\\[\\begin{array}{l}" + original.replaceAll(/\\[\(\)\[\]]/g, "") + "\\end{array}\\]";
96
+ }
87
97
  let innerViewId = shallowRef(-1);
98
+ const clientWidth = ref(props.width);
99
+ const clientHeight = ref(props.height);
88
100
  let layoutView = new Forge.IFrameView();
89
101
  layoutView.SetIframeSize(props.width, props.height);
90
102
  layoutView.SetInnerHtml(
91
103
  getHtmlStr(
92
104
  "https://qcast-image.oss-cn-qingdao.aliyuncs.com/JsViewTestResource/DocResource/mathjax-tex-svg.txt",
93
- props.latexStr,
105
+ precessString(props.latexStr),
94
106
  props.fontSize,
95
107
  props.width,
96
108
  props.height,
97
109
  props.color
98
110
  )
99
111
  );
112
+ const resizeObserver = new ResizeObserver((entries) => {
113
+ if (entries.length > 0) {
114
+ const e = entries[0];
115
+ if (clientHeight.value == 0) {
116
+ clientHeight.value = e.contentRect.height;
117
+ }
118
+ }
119
+ });
120
+ resizeObserver.observe(layoutView.GetIFrame());
100
121
  innerViewId.value = Forge.sViewStore.add(new Forge.ViewInfo(layoutView));
101
122
  onBeforeUnmount(() => {
102
123
  if (innerViewId.value != -1) {
@@ -104,17 +125,19 @@ const _sfc_main = {
104
125
  innerViewId.value = -1;
105
126
  console.log("success remove innerview");
106
127
  }
128
+ resizeObserver.unobserve(layoutView.GetIFrame());
107
129
  });
108
130
  return (_ctx, _cache) => {
109
131
  return openBlock(), createElementBlock("div", {
110
- "data-jsv-vw-innerview": unref(innerViewId),
111
132
  style: normalizeStyle({
112
133
  left: __props.left,
113
134
  top: __props.top,
114
- width: __props.width,
115
- height: __props.height
135
+ width: clientWidth.value,
136
+ height: clientHeight.value
116
137
  })
117
- }, null, 12, ["data-jsv-vw-innerview"]);
138
+ }, [
139
+ createElementVNode("div", { "data-jsv-vw-innerview": unref(innerViewId) }, null, 8, ["data-jsv-vw-innerview"])
140
+ ], 4);
118
141
  };
119
142
  }
120
143
  };
@@ -1,11 +1,7 @@
1
1
  import { reactive, watchEffect, onBeforeUnmount, openBlock, createElementBlock, createCommentVNode } from 'vue';
2
2
 
3
- //
4
- // utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue;
5
- //
6
3
  /*
7
-
8
-
4
+ + @file {@link file://./../../../../utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue}
9
5
  */
10
6
  const _sfc_main = {
11
7
  __name: "BrowserPreload",
@@ -1,12 +1,8 @@
1
1
  import { ref, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, unref } from 'vue';
2
2
  import QRCode from 'qr.js';
3
3
 
4
- //
5
- // utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue;
6
- //
7
4
  /*
8
-
9
-
5
+ + @file {@link file://./../../../../utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue}
10
6
  */
11
7
  const _sfc_main = {
12
8
  __name: "BrowserQrcode",
@@ -2,18 +2,8 @@ import { Forge } from '@shijiu/jsview/dom/jsv-forge-define';
2
2
  import { openBlock, createElementBlock, normalizeStyle } from 'vue';
3
3
  import { _ as _export_sfc } from '../export-sfc.mjs';
4
4
 
5
- //
6
- // utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue;
7
- //
8
- /* <!--
9
- * @Author: ChenChanghua
10
- * @Date: 2021-10-13 11:02:42
11
- * @LastEditors: ChenChanghua
12
- * @LastEditTime: 2021-10-13 15:10:01
13
- * @Description: file content
14
- -->
15
-
16
-
5
+ /*
6
+ + @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue}
17
7
  */
18
8
  const _sfc_main = {
19
9
  props: {
@@ -1,18 +1,8 @@
1
1
  import { openBlock, createElementBlock } from 'vue';
2
2
  import { _ as _export_sfc } from '../export-sfc.mjs';
3
3
 
4
- //
5
- // utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue;
6
- //
7
- /* <!--
8
- * @Author: ChenChanghua
9
- * @Date: 2022-02-08 09:29:17
10
- * @LastEditTime: 2023-02-21 10:51:22
11
- * @Description: file content
12
- -->
13
-
14
-
15
-
4
+ /*
5
+ + @file {@link file://./../../../../utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue}
16
6
  */
17
7
  const forgeTextureManager = window.JsvCode.ForgeHandles.TextureManager;
18
8
  const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
@@ -1,6 +1,6 @@
1
- //
2
- // plugin-vue:export-helper;
3
- //
1
+ /*
2
+ + @file {@link file://./../plugin-vue:export-helper}
3
+ */
4
4
  const _export_sfc = (sfc, props) => {
5
5
  const target = sfc.__vccOpts || sfc;
6
6
  for (const [key, val] of props) {
@@ -1,6 +1,6 @@
1
- //
2
- // utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.js;
3
- //
1
+ /*
2
+ + @file {@link file://./../../../../utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.js}
3
+ */
4
4
  class LoopToolBase {
5
5
  constructor() {
6
6
  this.mFrameIndex = -1;