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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) 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/BrowserJsvLatex.vue.mjs +39 -16
  6. package/bin/export-sfc.mjs +3 -3
  7. package/bin/jsview-vue-common.mjs +3 -3
  8. package/bin/jsview-vue.mjs +3288 -2312
  9. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +72 -0
  10. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +6 -3
  11. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidget.vue.d.ts +6 -3
  12. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +3 -1
  13. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
  14. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  15. package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  16. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -2
  17. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -3
  18. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +1 -1
  19. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
  20. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +1 -0
  21. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
  22. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
  23. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +597 -0
  24. package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  25. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
  26. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
  27. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
  28. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
  29. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
  30. package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  31. package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +10 -0
  32. package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +6 -0
  33. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +3 -1
  34. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +4 -2
  35. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +4 -4
  36. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +3 -2
  37. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +2 -3
  38. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +42 -0
  39. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +3 -1
  40. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
  41. package/bin/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +63 -0
  42. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +8 -4
  43. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +1 -1
  44. package/bin/types/utils/JsViewVueTools/TextureManagerTools.d.ts +7 -0
  45. package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
  46. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +3 -1
  47. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +7 -0
  48. package/bin/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +84 -0
  49. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
  50. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
  51. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
  52. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
  53. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
  54. package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +12 -0
  55. package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +45 -0
  56. package/bin/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +26 -0
  57. package/bin/types/{JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts → utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts} +7 -5
  58. package/bin/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +13 -0
  59. package/bin/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +16 -0
  60. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -2
  61. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +3 -1
  62. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -2
  63. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +16 -9
  64. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +6 -0
  65. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNinePatch.vue.d.ts +2 -1
  66. package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
  67. package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  68. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  69. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  70. package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +75 -0
  71. package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  72. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -2
  73. package/index.d.ts +9 -1
  74. package/package.json +1 -1
  75. package/tools/config/toolkit.mjs +81 -0
  76. package/tools/config/vite.config.ts +24 -14
  77. package/tools/jsview-vue-build.mjs +67 -21
  78. package/tsconfig.json +27 -0
  79. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +6 -2
  80. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +3 -1
  81. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +12 -5
  82. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +175 -65
  83. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
  84. package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
  85. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +15 -9
  86. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +4 -6
  87. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +13 -3
  88. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +27 -6
  89. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +34 -28
  90. package/utils/JsViewPlugin/JsvLatex/index.js +22 -0
  91. package/utils/JsViewVueTools/FeatureActive.ts +84 -0
  92. package/utils/JsViewVueTools/ForgeHandles.ts +7 -3
  93. package/utils/JsViewVueTools/JsvDynamicCssStyle.js +2 -0
  94. package/utils/JsViewVueTools/JsvDynamicKeyFrames.ts +2 -0
  95. package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
  96. package/utils/JsViewVueTools/JsvImpactTracer.js +2 -0
  97. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -1
  98. package/utils/JsViewVueTools/JsvRefTaker.js +1 -2
  99. package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -59
  100. package/utils/JsViewVueTools/JsvStyleClass.js +2 -0
  101. package/utils/JsViewVueTools/JsvStyleSheetsDeclarer.js +2 -0
  102. package/utils/JsViewVueTools/JsvTextTools.ts +156 -0
  103. package/utils/JsViewVueTools/JsvTextureLoadTool.ts +233 -0
  104. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +4 -1
  105. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +7 -3
  106. package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +1 -0
  107. package/utils/JsViewVueTools/TextureManagerTools.ts +17 -0
  108. package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
  109. package/utils/JsViewVueTools/index.js +4 -1
  110. package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -0
  111. package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +10 -2
  112. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +12 -1
  113. package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +4 -2
  114. package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +2 -0
  115. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +219 -0
  116. package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +11 -9
  117. package/utils/JsViewVueWidget/JsvFilterView.vue +2 -0
  118. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +5 -2
  119. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +140 -0
  120. package/utils/JsViewVueWidget/JsvFlexCell/index.js +2 -5
  121. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +214 -63
  122. package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
  123. package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +9 -0
  124. package/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue +2 -0
  125. package/utils/JsViewVueWidget/JsvGrid.vue +2 -0
  126. package/utils/JsViewVueWidget/JsvHole.js +2 -0
  127. package/utils/JsViewVueWidget/JsvInput/Cursor.vue +49 -45
  128. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +353 -0
  129. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +255 -0
  130. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +294 -681
  131. package/utils/JsViewVueWidget/JsvInput/SharedDefine.ts +17 -0
  132. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +61 -0
  133. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +2 -0
  134. package/utils/JsViewVueWidget/JsvMarquee.vue +2 -0
  135. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +5 -48
  136. package/utils/JsViewVueWidget/JsvMindMap/DataTree.ts +14 -1
  137. package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +277 -117
  138. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +91 -68
  139. package/utils/JsViewVueWidget/JsvNinePatch.vue +5 -0
  140. package/utils/JsViewVueWidget/JsvPieChart.vue +2 -0
  141. package/utils/JsViewVueWidget/JsvPosterDiv.vue +2 -0
  142. package/utils/JsViewVueWidget/JsvPosterImage.vue +3 -2
  143. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +23 -44
  144. package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
  145. package/utils/JsViewVueWidget/JsvProgressBar.vue +2 -0
  146. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +12 -12
  147. package/utils/JsViewVueWidget/JsvRadarChart.vue +2 -0
  148. package/utils/JsViewVueWidget/JsvRipple/Constant.js +2 -2
  149. package/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue +3 -1
  150. package/utils/JsViewVueWidget/JsvScaleTextBox.vue +2 -0
  151. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +9 -0
  152. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +9 -0
  153. package/utils/JsViewVueWidget/JsvSector.vue +2 -0
  154. package/utils/JsViewVueWidget/JsvSoundPool.js +5 -7
  155. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +43 -23
  156. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +2 -5
  157. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue +2 -0
  158. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +2 -0
  159. package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +2 -0
  160. package/utils/JsViewVueWidget/JsvTextBox.vue +2 -4
  161. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +48 -50
  162. package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
  163. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +101 -0
  164. package/utils/JsViewVueWidget/JsvVideo.vue +2 -2
  165. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +2 -0
  166. package/utils/JsViewVueWidget/index.js +4 -2
  167. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -63
  168. package/bin/browser/BrowserPreload.vue.mjs +0 -143
  169. package/bin/browser/BrowserQrcode.vue.mjs +0 -180
  170. package/bin/browser/BrowserSpray.vue.mjs +0 -66
  171. package/bin/browser/BrowserTextureAnim.vue.mjs +0 -332
  172. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +0 -102
  173. package/bin/types/JsViewVueTools/ForgeHandles.d.ts +0 -6
  174. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -37
  175. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -2
  176. package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +0 -2
  177. package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +0 -13
  178. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -2
  179. package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +0 -36
  180. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -210
  181. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -17
  182. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -11
  183. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -2
  184. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -25
  185. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -2
  186. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -151
  187. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -14
  188. package/tools/config/tsconfig.json +0 -15
  189. package/utils/JsViewVueTools/JsvTextTools.js +0 -89
  190. package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
  191. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -48
  192. package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
  193. package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
  194. package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
  195. package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
  196. package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
  197. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
  198. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -0
  199. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -0
  200. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -0
  201. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -0
  202. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -0
  203. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -0
  204. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -0
  205. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -0
  206. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -0
  207. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -0
  208. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -0
  209. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -0
  210. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -0
  211. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -0
  212. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -0
  213. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -0
  214. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -0
  215. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -0
  216. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/AudioProxy.d.ts +0 -0
  217. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -0
  218. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -4
  219. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -0
  220. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -0
  221. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -4
  222. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -0
  223. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -0
  224. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/PluginLoader.d.ts +0 -0
  225. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -0
  226. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -0
  227. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -0
  228. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -0
  229. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -4
  230. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/Color.d.ts +0 -0
  231. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -4
  232. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -0
  233. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -0
  234. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/PluginLoader.d.ts +0 -0
  235. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -0
  236. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -0
  237. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -0
  238. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -0
  239. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -0
  240. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -0
  241. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -0
  242. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -0
  243. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -0
  244. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -0
  245. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -0
  246. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -0
  247. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -0
  248. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -0
  249. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -0
  250. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -0
  251. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -0
  252. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -0
  253. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -0
  254. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -0
  255. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMove.vue.d.ts +0 -0
  256. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -0
  257. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -0
  258. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -1
  259. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/index.d.ts +0 -0
  260. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -1
  261. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -0
  262. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/index.d.ts +0 -0
  263. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -0
  264. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -0
  265. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -0
  266. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -0
  267. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -0
  268. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -0
  269. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -0
  270. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -0
  271. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -0
  272. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -0
  273. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/index.d.ts +0 -0
  274. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/ArcLineManager.d.ts +0 -0
  275. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/JsvConnectLine.vue.d.ts +2 -2
  276. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvConnectLine/index.d.ts +0 -0
  277. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -0
  278. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/index.d.ts +0 -0
  279. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -0
  280. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -3
  281. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -0
  282. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
  283. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -0
  284. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
  285. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -0
  286. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -0
  287. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -9
  288. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -3
  289. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -0
  290. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -0
  291. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -0
  292. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -0
  293. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -0
  294. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -0
  295. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -0
  296. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvHole.d.ts +0 -0
  297. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -0
  298. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/JsvLine.vue.d.ts +3 -3
  299. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/LineManager.d.ts +0 -0
  300. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvLine/index.d.ts +0 -0
  301. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMarquee.vue.d.ts +0 -0
  302. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
  303. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -0
  304. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/index.d.ts +0 -0
  305. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -0
  306. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPieChart.vue.d.ts +0 -0
  307. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -0
  308. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -0
  309. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPreload/JsvPreload.vue.d.ts +0 -0
  310. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvProgressBar.vue.d.ts +1 -1
  311. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
  312. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRadarChart.vue.d.ts +1 -1
  313. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/Constant.d.ts +0 -0
  314. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/JsvRipple.vue.d.ts +3 -3
  315. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -0
  316. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScaleTextBox.vue.d.ts +0 -0
  317. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -0
  318. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -0
  319. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -0
  320. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -0
  321. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -0
  322. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -0
  323. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -0
  324. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpray/JsvSpray.vue.d.ts +0 -0
  325. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -0
  326. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -0
  327. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -0
  328. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -0
  329. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -0
  330. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -0
  331. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/sAnimationToken.d.ts +0 -0
  332. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -1
  333. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/index.d.ts +0 -0
  334. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -3
  335. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/index.d.ts +0 -0
  336. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -0
  337. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -0
  338. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -0
  339. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -6
  340. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -6
  341. /package/bin/types/{index.d.ts → utils/index.d.ts} +0 -0
@@ -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,17 +28,21 @@
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";
39
44
  import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
45
+ import { urlCheckSet } from "../../JsViewVueTools";
40
46
 
41
47
  let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
42
48
  if (!pointRes) {
@@ -49,21 +55,16 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
49
55
  texture_manager.GetColorTexture(pointRes)
50
56
  );
51
57
  } else {
52
- const base_url = pointRes;
53
- let image_url = base_url;
54
- if (base_url && base_url.indexOf("http") === 0) {
55
- image_url = base_url;
56
- } else if (window.JsView.Dom.UrlRef) {
57
- image_url = new window.JsView.Dom.UrlRef(pointRes).href;
58
- }
58
+ let image_url = urlCheckSet(pointRes);
59
59
  texture_setting = new Forge.ExternalTextureSetting(
60
60
  texture_manager.GetImage2(image_url, false, null, "RGB_8888", null)
61
61
  );
62
62
  }
63
63
  const spray_view = new Forge.SprayView(texture_setting);
64
- const add_num_per_frame = sprayStyle.addNumSpeed
65
- ? sprayStyle.addNumSpeed
66
- : 0.001;
64
+ let add_speed = 0.1;
65
+ if (typeof sprayStyle.particleAddSpeed == "number") {
66
+ add_speed = sprayStyle.particleAddSpeed;
67
+ }
67
68
  const accelerate_x =
68
69
  typeof sprayStyle.accelerateX !== "undefined" ? sprayStyle.accelerateX : 0;
69
70
  const accelerate_y =
@@ -76,8 +77,8 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
76
77
  typeof sprayStyle.angularVelocityMin === "number" &&
77
78
  typeof sprayStyle.angularVelocityMax === "number"
78
79
  ) {
79
- angularVelocityMin = sprayStyle.angularVelocityMin;
80
- angularVelocityMax = sprayStyle.angularVelocityMax;
80
+ angularVelocityMin = (sprayStyle.angularVelocityMin / 180) * 3.1415;
81
+ angularVelocityMax = (sprayStyle.angularVelocityMax / 180) * 3.1415;
81
82
  }
82
83
  let alphaMin = 1,
83
84
  alphaMax = 1;
@@ -88,17 +89,34 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
88
89
  alphaMin = sprayStyle.alphaMin;
89
90
  alphaMax = sprayStyle.alphaMax;
90
91
  }
91
- let lifeMin = sprayStyle.lifeMin, lifeMax = sprayStyle.lifeMax;
92
+ let lifeMin = sprayStyle.lifeMin,
93
+ lifeMax = sprayStyle.lifeMax;
92
94
  if (sprayStyle.lifeMax > 50 * 1000) {
93
- console.warn("JsvSpray: particle maximum lifetime is 50000ms, current value is", sprayStyle.lifeMax);
95
+ console.warn(
96
+ "JsvSpray: particle maximum lifetime is 50000ms, current value is",
97
+ sprayStyle.lifeMax
98
+ );
94
99
  /**某些设备上float值过大会导致精度问题, 因此粒子生命需要限制范围*/
95
100
  lifeMin = sprayStyle.lifeMin > 50000 ? 50000 : sprayStyle.lifeMin;
96
101
  lifeMax = sprayStyle.lifeMax > 50000 ? 50000 : sprayStyle.lifeMax;
97
102
  }
103
+
104
+ let angleMin = 0,
105
+ angleMax = 0;
106
+ if (
107
+ typeof sprayStyle.angleMin == "number" &&
108
+ typeof sprayStyle.angleMax == "number"
109
+ ) {
110
+ if (sprayStyle.angleMin <= sprayStyle.angleMax) {
111
+ angleMin = (sprayStyle.angleMin / 180) * 3.1415;
112
+ angleMax = (sprayStyle.angleMax / 180) * 3.1415;
113
+ }
114
+ }
115
+
98
116
  spray_view.SetSprayInfo(
99
117
  sprayStyle.type,
100
118
  sprayStyle.particleNum,
101
- add_num_per_frame,
119
+ add_speed,
102
120
  (sprayStyle.deltaAngle / 180) * 3.1415,
103
121
  sprayStyle.deltaWidth,
104
122
  sprayStyle.deltaHeight,
@@ -116,7 +134,9 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
116
134
  angularVelocityMin,
117
135
  angularVelocityMax,
118
136
  alphaMin,
119
- alphaMax
137
+ alphaMax,
138
+ angleMin,
139
+ angleMax
120
140
  );
121
141
  const view_width =
122
142
  sprayStyle.deltaWidth === 0 ? 1 : 2 * sprayStyle.deltaWidth;
@@ -187,4 +207,4 @@ export default {
187
207
  :style="{ width: size.width, height: size.height }"
188
208
  :data-jsv-vw-innerview="viewId"
189
209
  ></div>
190
- </template>
210
+ </template>
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvSpriteAnim: 描画动态的精灵图(雪碧图)
4
6
  * 注意: PC模拟环境中,动画执行完成如果在onAnimEnd立刻进行不显示的话,可能闪一帧残留图像,在盒子不会有这个问题
@@ -351,11 +353,6 @@ onUnmounted(() => {
351
353
  const onAnimEndDelegate = () => {
352
354
  // 在onAnimEnd之前进行Stop,以防onAnimEnd内部继续发生别的操作
353
355
  if (props.onAnimEnd) {
354
- if (!window.JsView) {
355
- console.log(
356
- "JsvSpriteAnim 结束回调时进行隐藏在PC环境会有一帧残留,盒子环境是正常,可忽略这个问题"
357
- );
358
- }
359
356
  props.onAnimEnd();
360
357
  }
361
358
 
@@ -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说明:
@@ -11,7 +11,7 @@ import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
11
11
  import {
12
12
  numberCheckSet,
13
13
  urlCheckSet,
14
- } from "../../JsViewVueTools/TypeCheckAndSet";
14
+ } from "../../JsViewVueTools/TypeCheckAndSet.ts";
15
15
  import { toNinePatchForgeViewSet } from "../../JsViewVueTools/NinePatchHelper";
16
16
  import {
17
17
  DECORATE_BORDER_RADIUS,
@@ -298,59 +298,55 @@ export default {
298
298
  },
299
299
 
300
300
  created() {
301
- if (window.JsView) {
302
- const textureManager = ForgeHandles.TextureManager;
303
-
304
- // 1.获得主view的展示内容图片 texture
305
- let image_url = urlCheckSet(this.src);
306
- let view_texture = textureManager.GetImage2(
307
- image_url,
308
- false,
309
- null,
310
- "RGB_8888",
311
- null
312
- );
313
- // 1.1 兼容border转为decorate
314
- let decorate = this.$props.decorate;
315
- if (this.$props.borderRadius) {
316
- decorate = this._readRadius(this.$props.borderRadius);
317
- }
301
+ const textureManager = ForgeHandles.TextureManager;
318
302
 
319
- // 2.创建view
320
- this.innerView = this._createForgeView(view_texture, decorate);
321
- // 3.设置texture基本形变
322
- if (this.transform) {
323
- this.innerView.ResetTextureCssTransform(
324
- this.transform,
325
- this.transformOrigin
326
- );
327
- }
328
- this._updateTexCoord();
303
+ // 1.获得主view的展示内容图片 texture
304
+ let image_url = urlCheckSet(this.src);
305
+ let view_texture = textureManager.GetImage2(
306
+ image_url,
307
+ false,
308
+ null,
309
+ "RGB_8888",
310
+ null
311
+ );
312
+ // 1.1 兼容border转为decorate
313
+ let decorate = this.$props.decorate;
314
+ // if (this.$props.borderRadius) {
315
+ // decorate = this._readRadius(this.$props.borderRadius);
316
+ // }
329
317
 
330
- // 4.设置texture的动画形变
331
- if (this.animation) {
332
- this.forgeAnimation = new Forge.CssKeyframeAnimation(
333
- "@keyframes texAnimDef" + this.animation,
334
- this.duration,
335
- null,
336
- 1,
337
- 1
338
- );
339
- this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
340
- this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
341
- this.forgeAnimation.SetAnimationListener(
342
- new Forge.AnimationListener(null, this._onAnimationEnd, null)
343
- );
344
- } else {
345
- this.forgeAnimation = null;
346
- }
347
-
348
- // 5. inner view标准处理
318
+ // 2.创建view
319
+ this.innerView = this._createForgeView(view_texture, decorate);
320
+ // 3.设置texture基本形变
321
+ if (this.transform) {
322
+ this.innerView.ResetTextureCssTransform(
323
+ this.transform,
324
+ this.transformOrigin
325
+ );
326
+ }
327
+ this._updateTexCoord();
349
328
 
350
- this.innerViewId = Forge.sViewStore.add(
351
- new Forge.ViewInfo(this.innerView)
329
+ // 4.设置texture的动画形变
330
+ if (this.animation) {
331
+ this.forgeAnimation = new Forge.CssKeyframeAnimation(
332
+ "@keyframes texAnimDef" + this.animation,
333
+ this.duration,
334
+ null,
335
+ 1,
336
+ 1
337
+ );
338
+ this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
339
+ this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
340
+ this.forgeAnimation.SetAnimationListener(
341
+ new Forge.AnimationListener(null, this._onAnimationEnd, null)
352
342
  );
343
+ } else {
344
+ this.forgeAnimation = null;
353
345
  }
346
+
347
+ // 5. inner view标准处理
348
+
349
+ this.innerViewId = Forge.sViewStore.add(new Forge.ViewInfo(this.innerView));
354
350
  },
355
351
  beforeUnmount() {
356
352
  if (this.innerViewId !== -1) {
@@ -374,7 +370,9 @@ export default {
374
370
  1
375
371
  );
376
372
  this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
377
- this.forgeAnimation.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
373
+ this.forgeAnimation.Enable(
374
+ Forge.AnimationEnable.ReleaseAfterEndCallback
375
+ );
378
376
  this.forgeAnimation.SetAnimationListener(
379
377
  new Forge.AnimationListener(null, this._onAnimationEnd, null)
380
378
  );
@@ -3,17 +3,10 @@
3
3
  * @Date: 2021-10-13 15:14:29
4
4
  * @Description: file content
5
5
  */
6
- import * as JsvTextureAnim from "./JsvTextureAnim.vue";
7
6
 
8
- let _JsvTextureAnim;
9
- if (window.JsView) {
10
- _JsvTextureAnim = JsvTextureAnim.default;
11
- } else {
12
- const BrowserTextureAnim = await import("./BrowserTextureAnim.vue");
13
- _JsvTextureAnim = BrowserTextureAnim.default;
14
- }
7
+ import JsvTextureAnim from "./JsvTextureAnim.vue"
15
8
 
16
9
  export * from "./CommonType";
17
- export default _JsvTextureAnim;
10
+ export default JsvTextureAnim;
18
11
  const TexAlignAnchor = JsvTextureAnim.TexAlignAnchor;
19
12
  export { TexAlignAnchor };
@@ -0,0 +1,101 @@
1
+ <!--
2
+ * @file
3
+ *
4
+ * 【模块 export 内容】
5
+ * JsvTouchModeSwitcher:Vue高阶组件,监听交互模式的变更
6
+ * props说明:
7
+ * width {number} 宽
8
+ * height {number} 高
9
+ * initMode {number} 初始模式, 1:按键, 2:触控, 默认为1
10
+ * methods:
11
+ * registerCallback: (callback: (mode: number) => void) => void
12
+ 注册回调
13
+ * unregisterCallback: (callback: (mode: number) => void) => void
14
+ 注销回调
15
+ * getInteractiveMode: () => number
16
+ 获取当前的交互模式. 1:按键, 2:触控
17
+ * 注意:
18
+ * 在MetroWidget的item中,如需监听交互模式变动, 为了避免过多回调, 一般在onFocus中注册, 在onBlur中注销
19
+ *
20
+ -->
21
+ <script setup>
22
+ import { shallowRef, onMounted } from "vue";
23
+ const props = defineProps({
24
+ width: {
25
+ type: Number,
26
+ },
27
+ height: {
28
+ type: Number,
29
+ },
30
+ initMode: {
31
+ type: Number,
32
+ default: 1,
33
+ },
34
+ });
35
+
36
+ const KEY_MODE = 1;
37
+ const TOUCH_MODE = 2;
38
+ let mode = props.initMode;
39
+ let callbacks = [];
40
+ const divRef = shallowRef();
41
+ const registerCallback = (callback) => {
42
+ callbacks.push(callback);
43
+ };
44
+
45
+ const unregisterCallback = (callback) => {
46
+ callbacks = callbacks.filter((i) => i !== callback);
47
+ };
48
+ const getInteractiveMode = () => {
49
+ return mode;
50
+ };
51
+
52
+ const updateMode = (m) => {
53
+ let preMode = mode;
54
+ mode = m;
55
+ if (preMode !== mode) {
56
+ for (let c of callbacks) {
57
+ c(mode);
58
+ }
59
+ }
60
+ };
61
+
62
+ const onDispatchKeyDown = (ev) => {
63
+ if (ev.keyCode == 37 || ev.keyCode == 38 || ev.keyCode == 39 || ev.keyCode == 40) {
64
+ updateMode(KEY_MODE);
65
+ }
66
+ return false;
67
+ };
68
+
69
+ const onTouchStart = () => {
70
+ updateMode(TOUCH_MODE);
71
+ };
72
+
73
+ onMounted(() => {
74
+ divRef.value.jsvSetTapListener({
75
+ onTouchStart,
76
+ });
77
+ });
78
+
79
+ defineExpose({
80
+ registerCallback,
81
+ unregisterCallback,
82
+ getInteractiveMode,
83
+ });
84
+ </script>
85
+ <template>
86
+ <jsv-focus-block
87
+ :onAction="{
88
+ onDispatchKeyDown,
89
+ }"
90
+ >
91
+ <div
92
+ ref="divRef"
93
+ :style="{
94
+ width: width,
95
+ height: height,
96
+ }"
97
+ >
98
+ <slot></slot>
99
+ </div>
100
+ </jsv-focus-block>
101
+ </template>
@@ -1,12 +1,12 @@
1
1
  <!--
2
- /*
2
+ * @file
3
+ *
3
4
  * JsvVideo:Vue高阶组件,包装<video>标签,添加离屏模式这种可以支持圆角和旋转效果,但绘制性能略有焦点的特效
4
5
  * props说明:
5
6
  * usetexture {bool} 是否使用texture即离屏模式,true:使用离屏模式,false:使用普通video
6
7
  * videoref {object} (必须) video 句柄,对video进行播控
7
8
  * 特别说明:
8
9
  * 其他属性同video标签
9
- */
10
10
  -->
11
11
 
12
12
  <script>
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvVisibleSensor: 可视区域监控器
4
6
  * props说明:
@@ -17,8 +17,8 @@ export {
17
17
  buildPreloadInfo,
18
18
  buildDownloadInfo,
19
19
  } from "./JsvPreload";
20
- export { default as JsvQrcode } from "./JsvQrcode";
21
- export { default as JsvSpray } from "./JsvSpray";
20
+ export { default as JsvQrcode } from "./JsvQrcode/JsvQrcode.vue";
21
+ export { default as JsvSpray } from "./JsvSpray/JsvSpray.vue"
22
22
  export * from "./JsvSpriteAnim";
23
23
  export { default as JsvSwiper } from "./JsvSwiper";
24
24
  export { default as JsvSwiper3D } from "./JsvSwiper3D";
@@ -61,3 +61,5 @@ export * from "./JsvScrollBox"
61
61
  export { default as JsvFragShaderView } from "./JsvFragShaderView"
62
62
  export * from "./JsvClipDiv"
63
63
  export * from "./JsvDriftScope"
64
+ export { default as JsvTouchModeSwitcher } from "./JsvTouchModeSwitcher.vue"
65
+ export { default as JsvDragBox } from "./JsvDragBox/JsvDragBox.vue"
@@ -1,63 +0,0 @@
1
- import { openBlock, createElementBlock, normalizeStyle } from 'vue';
2
-
3
- //
4
- // utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue;
5
- //
6
- /*
7
-
8
- */
9
- const _sfc_main = {
10
- __name: "BrowserJsvFragShaderView",
11
- props: {
12
- style: {
13
- type: Object,
14
- required: true
15
- },
16
- duration: {
17
- type: Number,
18
- default: -1
19
- },
20
- autoplay: {
21
- type: Boolean,
22
- default: false
23
- },
24
- shaderStr: {
25
- type: String,
26
- required: true
27
- },
28
- // [{ name: string, value: number }]
29
- uniforms: {
30
- type: Array
31
- },
32
- // [{ name: string, type: number, resource: object/string }]
33
- textures: {
34
- type: Array
35
- }
36
- },
37
- setup(__props, { expose }) {
38
- const props = __props;
39
- expose({
40
- startAnim: () => {
41
- },
42
- stopAnim: () => {
43
- }
44
- });
45
- return (_ctx, _cache) => {
46
- return openBlock(), createElementBlock("div", {
47
- style: normalizeStyle({
48
- left: __props.style.left,
49
- top: __props.style.top,
50
- width: __props.style.width,
51
- height: __props.style.height,
52
- backgroundColor: "#00000077",
53
- fontSize: 50,
54
- color: "#ffffff",
55
- textAlign: "center",
56
- lineHeight: __props.style.height
57
- })
58
- }, " 浏览器端未支持JsvFragShaderView ", 4);
59
- };
60
- }
61
- };
62
-
63
- export { _sfc_main as default };
@@ -1,143 +0,0 @@
1
- import { reactive, watchEffect, onBeforeUnmount, openBlock, createElementBlock, createCommentVNode } from 'vue';
2
-
3
- //
4
- // utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue;
5
- //
6
- /*
7
-
8
-
9
- */
10
- const _sfc_main = {
11
- __name: "BrowserPreload",
12
- props: {
13
- preloadList: Array,
14
- downloadList: Array,
15
- onPreloadDone: Function,
16
- // 预加载完成回调
17
- onDownloadDone: Function,
18
- // 预下载完成回调
19
- onPreloading: Function
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const loadViewList = reactive({
24
- preloadViewList: [],
25
- downloadViewList: []
26
- });
27
- let preloadIsNullNum = 0;
28
- let downloadIsNullNum = 0;
29
- let preloadResultMap = {};
30
- let downloadResultMap = {};
31
- let downloadUrlList = [];
32
- let unmountStatus = { unmount: false };
33
- let preloadStateList = null;
34
- let downloadStateList = null;
35
- const getPreloadList = () => {
36
- preloadStateList = new Array(props.preloadList.length).fill(false);
37
- let preloadListData = props.preloadList;
38
- for (let i = 0; i < preloadListData.length; i++) {
39
- if (!preloadListData[i] || !preloadListData[i].url) {
40
- preloadListData.splice(i, 1);
41
- preloadIsNullNum++;
42
- i--;
43
- }
44
- }
45
- loadViewList.preloadViewList = preloadListData.map((item, index) => {
46
- if (!item || !item.url) {
47
- preloadStateList[index] = true;
48
- return null;
49
- }
50
- const image = new Image();
51
- const unmount_track = unmountStatus;
52
- image.onload = () => {
53
- if (unmount_track.unmount) {
54
- return;
55
- }
56
- preloadResultMap[item.url] = {
57
- width: image.width,
58
- height: image.height
59
- };
60
- preloadStateList[index] = true;
61
- let loadedNum = 0;
62
- preloadStateList.map((item2) => {
63
- loadedNum += item2 ? 1 : 0;
64
- });
65
- props.onPreloading?.(loadedNum / preloadStateList.length);
66
- if (props.onPreloadDone && loadedNum + preloadIsNullNum == preloadStateList.length) {
67
- props.onPreloadDone?.(preloadResultMap);
68
- }
69
- };
70
- image.src = item.url;
71
- });
72
- };
73
- const getDownloadList = () => {
74
- downloadStateList = new Array(props.downloadList.length).fill(false);
75
- downloadUrlList = new Array(downloadStateList.length);
76
- let downloadListData = props.downloadList;
77
- for (let i = 0; i < downloadListData.length; i++) {
78
- if (!downloadListData[i] || !downloadListData[i].url) {
79
- downloadListData.splice(i, 1);
80
- downloadUrlList[i] = "invalid";
81
- downloadIsNullNum++;
82
- i--;
83
- }
84
- }
85
- loadViewList.downloadViewList = downloadListData.map((item, index) => {
86
- if (!item || !item.url) {
87
- downloadStateList[index] = true;
88
- downloadUrlList[index] = "invalid";
89
- return null;
90
- }
91
- const image = new Image();
92
- const unmount_track = unmountStatus;
93
- image.onload = () => {
94
- if (unmount_track.unmount) {
95
- return;
96
- }
97
- downloadStateList[index] = true;
98
- downloadUrlList[index] = item.url;
99
- downloadResultMap[item.url] = {
100
- width: image.width,
101
- height: image.height
102
- };
103
- console.log(`pre download succeed ${item.url}`);
104
- if (props.onDownloadDone) {
105
- let downloadNum = 0;
106
- downloadStateList.map((item2) => {
107
- downloadNum += item2 ? 1 : 0;
108
- });
109
- if (downloadNum + downloadIsNullNum == downloadStateList.length) {
110
- props.onDownloadDone?.(downloadUrlList, downloadResultMap);
111
- }
112
- }
113
- };
114
- image.src = item.url;
115
- });
116
- };
117
- watchEffect(() => {
118
- if (props.preloadList) {
119
- console.log("JsvPreload: update preloadList");
120
- preloadIsNullNum = 0;
121
- preloadResultMap = {};
122
- getPreloadList();
123
- }
124
- });
125
- watchEffect(() => {
126
- if (props.downloadList) {
127
- console.log("JsvPreload: update downloadList");
128
- downloadIsNullNum = 0;
129
- downloadResultMap = {};
130
- downloadUrlList = [];
131
- getDownloadList();
132
- }
133
- });
134
- onBeforeUnmount(() => {
135
- unmountStatus.unmount = true;
136
- });
137
- return (_ctx, _cache) => {
138
- return !__props.preloadList ? (openBlock(), createElementBlock("div", { key: 0 })) : createCommentVNode("", true);
139
- };
140
- }
141
- };
142
-
143
- export { _sfc_main as default };