@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
@@ -1,13 +1,18 @@
1
- <!--
1
+ <script>
2
+ /**
3
+ * @file
4
+ *
2
5
  * 【控件介绍】
3
6
  * JsvNativeSharedDiv:创建一个Native端可以跟进显示位置的div,用于Native端外挂插件的开发
4
- * style {Object} 布局样式(必须),必须包含的信息为{left, top, width, height}
5
- * getId {function} 回调函数,用于接收ID信息,ID信息用于Native端对该view进行跟踪的标识
6
- * setId {String} 给定命名ID,避免同进程不同context重名要和Context相关,
7
- * 例如`${window.JsView?.getJsContextId()}_${you_name}`
8
- * corner {Number} 圆角的尺寸,默认为0
9
- *
10
- -->
7
+ * @param {Object} style 布局样式(必须),必须包含的信息为{left, top, width, height}
8
+ * @param {function} getId 回调函数,用于接收ID信息,ID信息用于Native端对该view进行跟踪的标识
9
+ * @param {String} setId 给定命名ID,避免同进程不同context重名要和Context相关,
10
+ * 例如`${window.JsView?.getJsContextId()}_${you_name}`
11
+ * @param {number} corner 圆角的尺寸,默认为0
12
+ * @param {number} oversize 为了去除黑边的调整选项,让native video的尺寸信息比扣洞大多少, 默认为0
13
+ * @param {boolean} frontLayer 视图是在JsView界面前方,不是需要扣洞的后方,默认为false
14
+ */
15
+ </script>
11
16
 
12
17
  <script setup>
13
18
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
@@ -16,7 +21,7 @@ import { JsvTextureStoreApi } from "../JsViewVueTools/JsvTextureStore/JsvTexture
16
21
  import { onUnmounted, shallowRef } from "vue";
17
22
  import JsvNinePatch from "./JsvNinePatch.vue";
18
23
 
19
- const props = defineProps({
24
+ const rProps = defineProps({
20
25
  style: {
21
26
  type: Object,
22
27
  default: () => {
@@ -29,83 +34,101 @@ const props = defineProps({
29
34
  type: Number,
30
35
  default: 0,
31
36
  },
37
+ oversize: {
38
+ type: Number,
39
+ default: 0,
40
+ },
41
+ frontLayer: {
42
+ type: Boolean,
43
+ default: false,
44
+ },
32
45
  });
33
46
 
34
- let isBrowserDebug = window.jsvIsBrowserDebug;
35
- let jsvMainView = undefined;
36
- let innerViewId = -1;
37
- let ninePatchSet = null;
47
+ let vJsvMainView = undefined;
48
+ let vInnerViewId = -1;
49
+ let vNinePatchSet = null;
50
+ let vBackgroudnColorValue = null;
51
+
52
+ let isBrowserDebug = !window.JsView;
38
53
 
39
- if (!isBrowserDebug) {
54
+ if (window.JsView) {
40
55
  // 创建JsView图层穿透的texture,抠洞处理
41
56
 
42
- // 有圆角
43
- if (props.corner > 0) {
44
- let presetGap = 1; // 外延距离,以保证圆角光滑
45
- ninePatchSet = {
46
- imageSize: (props.corner + presetGap) * 2, // 半径 + 中心点1像素
47
- textureName: null,
48
- };
49
-
50
- // 用 JsvTextureStoreApi 绘制半径对等的圆形
51
- let sampleImageWidth = ninePatchSet.imageSize;
52
- let innerRadius2 = sampleImageWidth; // 内直径
53
- let circleLineWidth = 1.5 * props.corner + presetGap - props.corner; // 线粗要把四角盖上
54
- let canvasRef;
55
-
56
- // 创建画布
57
- canvasRef = JsvTextureStoreApi.canvasTexture(
58
- sampleImageWidth,
59
- sampleImageWidth
60
- );
61
-
62
- let circleRadius =
63
- Math.floor(innerRadius2 / 2) +
64
- Math.floor(circleLineWidth / 2) -
65
- presetGap; // 圆环绘制路径是粗线的中心线,所以要减去一半的线宽
66
- let customPath = canvasRef.circlePath(
67
- Math.floor(sampleImageWidth / 2),
68
- Math.floor(sampleImageWidth / 2),
69
- circleRadius
70
- ); // 创建圆环绘制路径,圆形在画布的中心点位置
71
- canvasRef.drawColor("rgba(0,0,0,0)"); // 画布绘制透明底色
72
- customPath.stroke(circleLineWidth, "#FF0000FF"); // 绘制alpha=1的边缘留色
73
-
74
- // 获取填入url的内容
75
- // 进行.9拉伸以适配目标尺寸
76
- // 通过 alphaOverride 进行alpah叠加
77
- ninePatchSet.textureName = canvasRef.commit();
57
+ if (!rProps.frontLayer) {
58
+ // 有圆角
59
+ if (rProps.corner > 0) {
60
+ let presetGap = 1; // 外延距离,以保证圆角光滑
61
+ vNinePatchSet = {
62
+ imageSize: (rProps.corner + presetGap) * 2, // 半径 + 中心点1像素
63
+ textureName: null,
64
+ };
65
+
66
+ // JsvTextureStoreApi 绘制半径对等的圆形
67
+ let sampleImageWidth = vNinePatchSet.imageSize;
68
+ let innerRadius2 = sampleImageWidth; // 内直径
69
+ let circleLineWidth = 1.5 * rProps.corner + presetGap - rProps.corner; // 线粗要把四角盖上
70
+ let canvasRef;
71
+
72
+ // 创建画布
73
+ canvasRef = JsvTextureStoreApi.canvasTexture(
74
+ sampleImageWidth,
75
+ sampleImageWidth
76
+ );
77
+
78
+ let circleRadius =
79
+ Math.floor(innerRadius2 / 2) +
80
+ Math.floor(circleLineWidth / 2) -
81
+ presetGap; // 圆环绘制路径是粗线的中心线,所以要减去一半的线宽
82
+ let customPath = canvasRef.circlePath(
83
+ Math.floor(sampleImageWidth / 2),
84
+ Math.floor(sampleImageWidth / 2),
85
+ circleRadius
86
+ ); // 创建圆环绘制路径,圆形在画布的中心点位置
87
+ canvasRef.drawColor("rgba(0,0,0,0)"); // 画布绘制透明底色
88
+ customPath.stroke(circleLineWidth, "#FF0000FF"); // 绘制alpha=1的边缘留色
89
+
90
+ // 获取填入url的内容
91
+ // 进行.9拉伸以适配目标尺寸
92
+ // 通过 alphaOverride 进行alpah叠加
93
+ vNinePatchSet.textureName = canvasRef.commit();
94
+ } else {
95
+ // 用背景色
96
+ vBackgroudnColorValue = "rgba(0,0,0,0)";
97
+ }
78
98
  }
79
99
 
80
100
  // 通过内置函数构造定制的NativeSharedView
81
- jsvMainView = new Forge.NativeSharedView();
82
- innerViewId = Forge.sViewStore.add(new Forge.ViewInfo(jsvMainView));
101
+ vJsvMainView = new Forge.NativeSharedView();
102
+ vInnerViewId = Forge.sViewStore.add(new Forge.ViewInfo(vJsvMainView));
103
+ if (rProps.oversize != 0) {
104
+ vJsvMainView.SetOverSize(rProps.oversize);
105
+ }
83
106
 
84
107
  // 更新宽高
85
- if (typeof jsvMainView != "undefined" && jsvMainView) {
86
- if (props.setId) {
108
+ if (typeof vJsvMainView != "undefined" && vJsvMainView) {
109
+ if (rProps.setId) {
87
110
  // 使用设置进来的track id,而非自动生成
88
- jsvMainView.SetTrackId(props.setId);
111
+ vJsvMainView.SetTrackId(rProps.setId);
89
112
  }
90
113
 
91
- props.getId?.(jsvMainView.GetTrackId());
114
+ rProps.getId?.(vJsvMainView.GetTrackId());
92
115
  }
93
116
  }
94
117
 
95
118
  onUnmounted(() => {
96
- if (isBrowserDebug) {
119
+ if (!window.JsView) {
97
120
  return;
98
121
  }
99
122
 
100
123
  // 清理View管理缓存
101
- if (innerViewId !== -1) {
102
- Forge.sViewStore.remove(innerViewId);
103
- innerViewId = -1;
104
- jsvMainView = null;
124
+ if (vInnerViewId !== -1) {
125
+ Forge.sViewStore.remove(vInnerViewId);
126
+ vInnerViewId = -1;
127
+ vJsvMainView = null;
105
128
  }
106
129
 
107
- if (ninePatchSet != null) {
108
- JsvTextureStoreApi.deleteTexture(ninePatchSet.textureName); // 释放texture资源
130
+ if (vNinePatchSet != null) {
131
+ JsvTextureStoreApi.deleteTexture(vNinePatchSet.textureName); // 释放texture资源
109
132
  }
110
133
  });
111
134
  </script>
@@ -119,13 +142,13 @@ onUnmounted(() => {
119
142
  }"
120
143
  >
121
144
  <jsv-nine-patch
122
- v-if="ninePatchSet != null"
145
+ v-if="vNinePatchSet != null"
123
146
  :style="{
124
147
  width: style.width,
125
148
  height: style.height,
126
149
  }"
127
- :imageUrl="`jsvtexturestore://${ninePatchSet.textureName}`"
128
- :imageWidth="ninePatchSet.imageSize"
150
+ :imageUrl="`jsvtexturestore://${vNinePatchSet.textureName}`"
151
+ :imageWidth="vNinePatchSet.imageSize"
129
152
  :centerWidth="1"
130
153
  :borderOutset="0"
131
154
  :waitForInit="false"
@@ -136,7 +159,7 @@ onUnmounted(() => {
136
159
  :style="{
137
160
  width: style.width,
138
161
  height: style.height,
139
- backgroundColor: 'rgba(0,0,0,0)',
162
+ backgroundColor: vBackgroudnColorValue,
140
163
  JsvImageBlendType: 'alphaOverride',
141
164
  }"
142
165
  />
@@ -145,7 +168,7 @@ onUnmounted(() => {
145
168
  width: style.width,
146
169
  height: style.height,
147
170
  }"
148
- :data-jsv-vw-innerview="innerViewId"
171
+ :data-jsv-vw-innerview="vInnerViewId"
149
172
  >
150
173
  <slot />
151
174
  </div>
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvNinePatch:Vue高阶组件,.9图展示控件,该控件的原图要求为正方形,延展后可为长方形
4
6
  * centerWidth和borderOutset传值比较抽象,若 imageDspWidth 和图片素材的原图尺寸一直,
@@ -17,6 +19,7 @@
17
19
  * animTime {int} (必填)缩放动画的时长(单位秒)
18
20
  * waitForInit {boolean} (选填)尺寸为0时是否进行描画(例如: 首次显示不展示动画的场合,设置为true),默认值为true
19
21
  * onTransitionEnd { Function } (选填)transition动画结束的回调
22
+ * onAnimationEnd { Function } (选填)animation动画结束的回调
20
23
  * imageBlendType {String} (选填) alpha合并模式,默认为普通合成,可设置"alphaOverride", 用于Video挖洞操作
21
24
  -->
22
25
 
@@ -42,6 +45,7 @@ const props = defineProps({
42
45
  borderOutset: { type: Number, required: true },
43
46
  animTime: { type: Number, default: 0 },
44
47
  onTransitionEnd: { type: Function },
48
+ onAnimationEnd: { type: Function },
45
49
  animation: { type: String },
46
50
  imageBlendType: { type: String, default: null },
47
51
 
@@ -119,5 +123,6 @@ function innerOnDivRef(ref) {
119
123
  JsvImageBlendType: props.imageBlendType,
120
124
  }"
121
125
  @transitionend="props.onTransitionEnd"
126
+ @animationend="props.onAnimationEnd"
122
127
  />
123
128
  </template>
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvPieChart:Vue高阶组件,饼图。
4
6
  * props说明:
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvPosterDiv:Vue高阶组件,海报描画
4
6
  * props说明:
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvPosterImage:Vue高阶组件,海报描画,可设置color space 和 texture size
4
6
  * props说明:
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvPreload:Vue高阶组件,图片预加载的控件
4
6
  * preloadList {ObjectArray}: 预加载的信息列表,单个内容通过buildPreloadInfo构建
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvProgressBar:Vue高阶组件,进度条组件。
4
6
  * props说明:
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * QRCode:Vue高阶组件,描绘二维码,
4
6
  * props说明:
@@ -100,24 +102,21 @@ export default {
100
102
  const img_view = new Forge.LayoutView(
101
103
  new Forge.TextureSetting(img_texture)
102
104
  );
103
- view.AddView(
104
- img_view,
105
- new Forge.LayoutParams({
106
- x: calculatedImageSettings.x,
107
- y: calculatedImageSettings.y,
108
- width: calculatedImageSettings.w,
109
- height: calculatedImageSettings.h,
110
- })
111
- );
105
+ view.AddView(img_view, {
106
+ x: calculatedImageSettings.x,
107
+ y: calculatedImageSettings.y,
108
+ width: calculatedImageSettings.w,
109
+ height: calculatedImageSettings.h,
110
+ });
112
111
  console.log("view = " + view);
113
112
  }
114
113
  // 二维码都位置与大小
115
- lp_params = new Forge.LayoutParams({
114
+ lp_params = {
116
115
  x: 0,
117
116
  y: 0,
118
117
  width: this.size,
119
118
  height: this.size,
120
- });
119
+ };
121
120
 
122
121
  // Add new QRCode
123
122
  this.qrCodeView = view;
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvRadarChart:Vue高阶组件,多维属性图展示控件,又称雷达图,该控件的原图要求为正方形,按对角线划分,一边为透明,一边为带边框的正三角形,
4
6
  * 带上等分线。
@@ -1,4 +1,4 @@
1
1
  export const JsvRippleShape = {
2
- CIRCLE: Forge.FilterView.WAVE.CIRCLE_WAVE,
3
- RECTANGLE: Forge.FilterView.WAVE.RECTANGLE_WAVE,
2
+ CIRCLE: Forge.FilterViewType.Wave.CIRCLE_WAVE,
3
+ RECTANGLE: Forge.FilterViewType.Wave.RECTANGLE_WAVE,
4
4
  }
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvRipple: 波纹组件
4
6
  * 组件说明:
@@ -63,7 +65,7 @@ const props = defineProps({
63
65
  });
64
66
  const TAG = "JsvRipple";
65
67
 
66
- let filterView = new Forge.FilterView(null, Forge.FilterView.Type.WAVE);
68
+ let filterView = new Forge.FilterView(null, Forge.FilterViewType.Type.WAVE);
67
69
  let viewId = Forge.sViewStore.add(new Forge.ViewInfo(filterView, null));
68
70
 
69
71
  // 监控filter改变
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【控件介绍】
3
5
  * JsvScaleTextBox:
4
6
  * 创建一个div,可以控制其内部的文字图层的清晰度,
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvScrollBox:Vue高阶组件,支持触控拖动的滚动型组件。
4
6
  * props说明:
@@ -91,6 +93,10 @@ import {
91
93
  SyncLinkSource,
92
94
  } from "../../JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager";
93
95
  import { newNexus, NexusNode } from "../JsvFreeMoveActor/NexusNode";
96
+ import {
97
+ FeatureNames,
98
+ JsvUseFeature,
99
+ } from "../../JsViewVueTools/FeatureActive";
94
100
 
95
101
  let rProps = defineProps({
96
102
  // 底座的尺寸
@@ -146,6 +152,9 @@ let rProps = defineProps({
146
152
  },
147
153
  });
148
154
 
155
+ // 激活引擎中的功能支持
156
+ JsvUseFeature("JsvScrollBox", FeatureNames.TouchReceiver);
157
+
149
158
  /** 本地常量 **/
150
159
  const cDirection = rProps.direction;
151
160
  const cMode = rProps.mode;
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvScrollFollow:Vue高阶组件,响应并同步JsvScrollBox的移动的div/ninePatch特殊类型的进度展示组件
4
6
  * props说明:
@@ -64,6 +66,10 @@ import { GetSyncLinkManager } from "../JsvFreeMoveActor/SyncLinkManager";
64
66
  import { NexusNode } from "../JsvFreeMoveActor/NexusNode";
65
67
  import { ScrollInnerStyle } from "./ScrollInnerSymbol";
66
68
  import JsvNinePatch from "../JsvNinePatch.vue";
69
+ import {
70
+ FeatureNames,
71
+ JsvUseFeature,
72
+ } from "../../JsViewVueTools/FeatureActive";
67
73
 
68
74
  const rProps = withDefaults(
69
75
  defineProps<{
@@ -103,6 +109,9 @@ const rProps = withDefaults(
103
109
  }
104
110
  );
105
111
 
112
+ // 激活引擎中的功能支持
113
+ JsvUseFeature("JsvScrollFollow", FeatureNames.TouchReceiver);
114
+
106
115
  /** 本地类型定义 **/
107
116
  interface PosSizeType {
108
117
  start: number;
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvSector:Vue高阶组件,扇形图。
4
6
  * props说明:
@@ -3,6 +3,8 @@
3
3
  */
4
4
 
5
5
  /*!
6
+ * @file
7
+ *
6
8
  * 【模块 export 内容】
7
9
  * JsvSoundPool: 面向对象的类,用于播放效果音,创建JsvSoundPool对象后通过request的回调获得AudioController句柄后进行控制
8
10
  * 功能函数: (参数说明见函数本体)
@@ -5,6 +5,8 @@
5
5
  -->
6
6
 
7
7
  <!--
8
+ * @file
9
+ *
8
10
  * 【模块 export 内容】
9
11
  * JsvSpray:Vue高阶组件,粒子效果控件
10
12
  * prop说明:
@@ -15,9 +17,9 @@
15
17
  * prop中的sprayStyle说明:
16
18
  * type {int} (必需)喷射类型 0: 一次喷射 1: 持续喷射
17
19
  * particleNum {int} (必需)粒子个数
18
- * deltaAngle {int} (必需)粒子喷射角度范围。如设30则粒子喷射范围为div上边法向正负30度
19
- * deltaWidth {int} (必需)粒子喷射位置宽度范围
20
- * deltaHeight {int} (必需)粒子喷射位置高度范围
20
+ * deltaAngle {int} (必需)粒子喷射角度范围(角度)。如设30则粒子喷射范围为div上边法向正负30度
21
+ * deltaWidth {int} (必需)粒子喷射位置宽度范围, 会在左右两侧各deltaWidth的范围内随机出现粒子
22
+ * deltaHeight {int} (必需)粒子喷射位置高度范围, 会在上下两侧各deltaHeight的范围内随机出现粒子
21
23
  * pointSizeMin {int} (必需)粒子尺寸下限(像素)
22
24
  * pointSizeMax {int} (必需)粒子尺寸上限(像素)
23
25
  * speedMin {float} (必需)粒子速度下限
@@ -26,13 +28,16 @@
26
28
  * lifeMax {int} (必需)粒子生命周期上限(ms)
27
29
  * accelerateX {float} (必需)水平方向加速度
28
30
  * accelerateY {float} (必需)垂直方向加速度
29
- * addNumSpeed {float} 持续喷射时,起始粒子添加速度(个/ms), 默认为0.001
31
+ * addNumSpeed {float} (废弃)持续喷射时,起始粒子添加速度(个/ms), 默认为0.001
32
+ * particleAddSpeed {float} 持续喷射时,起始粒子添加速度(个/ms), 默认为0.001
30
33
  * enableFade {boolean} 粒子淡出开关, 默认为false
31
34
  * enableShrink {boolean} 粒子缩小开关, 默认为false
32
- * angularVelocityMin {float} 角速度最小值, 默认为0
33
- * angularVelocityMax {float} 角速度最大值, 默认为0
35
+ * angularVelocityMin {float} 角速度最小值(角度/秒), 默认为0
36
+ * angularVelocityMax {float} 角速度最大值(角度/秒), 默认为0
34
37
  * alphaMin {float} 透明度最小值, 默认为1
35
38
  * alphaMax {float} 透明度最大值, 默认为1
39
+ * angleMin {float} 角度最小值(角度)
40
+ * angleMax {float} 角度最大值(角度)
36
41
  -->
37
42
  <script>
38
43
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
@@ -61,9 +66,10 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
61
66
  );
62
67
  }
63
68
  const spray_view = new Forge.SprayView(texture_setting);
64
- const add_num_per_frame = sprayStyle.addNumSpeed
65
- ? sprayStyle.addNumSpeed
66
- : 0.001;
69
+ let add_speed = .1;
70
+ if (typeof sprayStyle.particleAddSpeed == "number") {
71
+ add_speed = sprayStyle.particleAddSpeed;
72
+ }
67
73
  const accelerate_x =
68
74
  typeof sprayStyle.accelerateX !== "undefined" ? sprayStyle.accelerateX : 0;
69
75
  const accelerate_y =
@@ -76,8 +82,8 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
76
82
  typeof sprayStyle.angularVelocityMin === "number" &&
77
83
  typeof sprayStyle.angularVelocityMax === "number"
78
84
  ) {
79
- angularVelocityMin = sprayStyle.angularVelocityMin;
80
- angularVelocityMax = sprayStyle.angularVelocityMax;
85
+ angularVelocityMin = (sprayStyle.angularVelocityMin / 180) * 3.1415;
86
+ angularVelocityMax = (sprayStyle.angularVelocityMax / 180) * 3.1415;
81
87
  }
82
88
  let alphaMin = 1,
83
89
  alphaMax = 1;
@@ -95,10 +101,19 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
95
101
  lifeMin = sprayStyle.lifeMin > 50000 ? 50000 : sprayStyle.lifeMin;
96
102
  lifeMax = sprayStyle.lifeMax > 50000 ? 50000 : sprayStyle.lifeMax;
97
103
  }
104
+
105
+ let angleMin = 0, angleMax = 0;
106
+ if (typeof sprayStyle.angleMin == "number" && typeof sprayStyle.angleMax == "number") {
107
+ if (sprayStyle.angleMin <= sprayStyle.angleMax) {
108
+ angleMin = (sprayStyle.angleMin / 180) * 3.1415;
109
+ angleMax = (sprayStyle.angleMax / 180) * 3.1415;
110
+ }
111
+ }
112
+
98
113
  spray_view.SetSprayInfo(
99
114
  sprayStyle.type,
100
115
  sprayStyle.particleNum,
101
- add_num_per_frame,
116
+ add_speed,
102
117
  (sprayStyle.deltaAngle / 180) * 3.1415,
103
118
  sprayStyle.deltaWidth,
104
119
  sprayStyle.deltaHeight,
@@ -116,7 +131,9 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
116
131
  angularVelocityMin,
117
132
  angularVelocityMax,
118
133
  alphaMin,
119
- alphaMax
134
+ alphaMax,
135
+ angleMin,
136
+ angleMax,
120
137
  );
121
138
  const view_width =
122
139
  sprayStyle.deltaWidth === 0 ? 1 : 2 * sprayStyle.deltaWidth;
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvSpriteAnim: 描画动态的精灵图(雪碧图)
4
6
  * 注意: PC模拟环境中,动画执行完成如果在onAnimEnd立刻进行不显示的话,可能闪一帧残留图像,在盒子不会有这个问题
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvSpriteLoader: 雪碧图资源加载器
4
6
  * prop说明:
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvSwiper:Vue高阶组件,图片轮播组件
4
6
  * props说明:
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvSwiper3D:Vue高阶组件,图片轮播3D组件
4
6
  * props说明:
@@ -1,8 +1,6 @@
1
1
  <!--
2
- * Created by chunfeng.luo@qcast.cn on 10/13/20.
3
- */
4
-
5
- /*
2
+ * @file
3
+ *
6
4
  * JsvTextBox:Vue高阶组件,用于文字绘制要精细调整的场景,
7
5
  * 注意: 其中Jsv打头的属性为内部属性,不要在组件外直接使用,规避后续调整时进行变名等调整导致使用不了。
8
6
  * props说明: