@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
@@ -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说明:
@@ -50,7 +52,6 @@ const isPosterImage = computed(() => {
50
52
 
51
53
  let common_style = reactive({});
52
54
  let image_style = reactive({});
53
- let show_background_holder = !!window.JsView; // PC浏览器模拟时, 不显示占位图,避免误导
54
55
 
55
56
  watchEffect(() => {
56
57
  if (props.style) {
@@ -78,7 +79,7 @@ watchEffect(() => {
78
79
 
79
80
  <template>
80
81
  <div :style="common_style">
81
- <slot v-if="show_background_holder"></slot>
82
+ <slot />
82
83
  <img
83
84
  v-if="!!props.src"
84
85
  :data-jsv-vw-enable-fade="props.fadeIn"
@@ -1,4 +1,6 @@
1
1
  <!--
2
+ * @file
3
+ *
2
4
  * 【模块 export 内容】
3
5
  * JsvPreload:Vue高阶组件,图片预加载的控件
4
6
  * preloadList {ObjectArray}: 预加载的信息列表,单个内容通过buildPreloadInfo构建
@@ -69,8 +71,7 @@ export { buildPreloadInfo, buildDownloadInfo };
69
71
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
70
72
  import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
71
73
  import { reactive, onBeforeUnmount, watchEffect } from "vue";
72
-
73
- const CONST_FORMAT_TOKEN = "_JsvP_";
74
+ import { urlCheckSet } from "../../JsViewVueTools";
74
75
 
75
76
  const props = defineProps({
76
77
  preloadList: Object,
@@ -96,37 +97,29 @@ let preloadToken = 1;
96
97
  let downloadToken = 1;
97
98
 
98
99
  const _releasePreloadView = () => {
99
- if (window.JsView) {
100
- if (loadViewList.preloadViewList.length > 0) {
101
- for (const view_info of loadViewList.preloadViewList) {
102
- if (view_info) {
103
- // 当预加载url为null时view_info为null
104
- const id = view_info.viewId;
105
- view_info.textureRef?.DisableBackgroundLoad();
106
- view_info.textureRef?.UnregisterLoadImageCallback(
107
- view_info.callToken
108
- );
109
- Forge.sViewStore.remove(id);
110
- }
100
+ if (loadViewList.preloadViewList.length > 0) {
101
+ for (const view_info of loadViewList.preloadViewList) {
102
+ if (view_info) {
103
+ // 当预加载url为null时view_info为null
104
+ const id = view_info.viewId;
105
+ view_info.textureRef?.DisableBackgroundLoad();
106
+ view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
107
+ Forge.sViewStore.remove(id);
111
108
  }
112
109
  }
113
- loadViewList.preloadViewList = [];
114
- preloadStateList = [];
115
110
  }
111
+ loadViewList.preloadViewList = [];
112
+ preloadStateList = [];
116
113
  };
117
114
  const _releaseDownloadView = () => {
118
- if (window.JsView) {
119
- if (loadViewList.downloadViewList.length > 0) {
120
- for (const view_info of loadViewList.downloadViewList) {
121
- if (view_info) {
122
- // 当预加载url为null时view_info为null
123
- const id = view_info.viewId;
124
- view_info.textureRef?.DisableBackgroundLoad();
125
- view_info.textureRef?.UnregisterLoadImageCallback(
126
- view_info.callToken
127
- );
128
- Forge.sViewStore.remove(id);
129
- }
115
+ if (loadViewList.downloadViewList.length > 0) {
116
+ for (const view_info of loadViewList.downloadViewList) {
117
+ if (view_info) {
118
+ // 当预加载url为null时view_info为null
119
+ const id = view_info.viewId;
120
+ view_info.textureRef?.DisableBackgroundLoad();
121
+ view_info.textureRef?.UnregisterLoadImageCallback(view_info.callToken);
122
+ Forge.sViewStore.remove(id);
130
123
  }
131
124
  }
132
125
  }
@@ -174,14 +167,7 @@ const _getPreloadViewIdList = () => {
174
167
  "Error:format mismatch, data should comes from function buildPreloadInfo()"
175
168
  );
176
169
  }
177
- const base_url = item.url;
178
- let image_url = base_url;
179
- if (base_url && base_url.indexOf("http") < 0) {
180
- // 包含http和https两种请求
181
- if (window.JsView.Dom.UrlRef) {
182
- image_url = new window.JsView.Dom.UrlRef(base_url).href;
183
- }
184
- }
170
+ let image_url = urlCheckSet(item.url);
185
171
  let target_size = null;
186
172
  if (item.width !== 0 && item.height !== 0) {
187
173
  target_size = { width: item.width, height: item.height };
@@ -265,14 +251,7 @@ const _getDownloadViewIdList = () => {
265
251
  );
266
252
  }
267
253
  console.log(`OnDownload get${index} url=${item.url}`);
268
- const base_url = item.url;
269
- let image_url = base_url;
270
- if (base_url && base_url.indexOf("http") < 0) {
271
- // 包含http和https两种请求
272
- if (window.JsView.Dom.UrlRef) {
273
- image_url = new window.JsView.Dom.UrlRef(base_url).href;
274
- }
275
- }
254
+ let image_url = urlCheckSet(item.url);
276
255
  const texture = ForgeHandles.TextureManager.GetDownloadTexture(
277
256
  image_url,
278
257
  null,
@@ -6,17 +6,6 @@
6
6
  * @Description: file content
7
7
  */
8
8
  //! 考虑到.vue文件除了export default的component外,还有可能export其他对象,因此使用import * as
9
- import * as JsvPreload from "./JsvPreload.vue";
9
+ export * from "./JsvPreload.vue";
10
+ export { default } from "./JsvPreload.vue";
10
11
 
11
- let _JsvPreload;
12
- if (window.JsView) {
13
- _JsvPreload = JsvPreload.default;
14
- } else {
15
- const BrowserPreload = await import("./BrowserPreload.vue");
16
- _JsvPreload = BrowserPreload.default;
17
- }
18
-
19
- let buildPreloadInfo = JsvPreload.buildPreloadInfo;
20
- let buildDownloadInfo = JsvPreload.buildDownloadInfo;
21
- export default _JsvPreload;
22
- export { buildPreloadInfo, buildDownloadInfo };
@@ -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说明:
@@ -20,6 +22,7 @@
20
22
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
21
23
  import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
22
24
  import { TextureInstantType } from "../../JsViewVueTools/JsvTextureDefines.ts";
25
+ import { urlCheckSet } from "../../JsViewVueTools/TypeCheckAndSet.ts";
23
26
 
24
27
  export default {
25
28
  props: {
@@ -94,30 +97,27 @@ export default {
94
97
  if (this.imageSettings && calculatedImageSettings) {
95
98
  let url = this.imageSettings.src;
96
99
  if (typeof url === "string") {
97
- url = new window.JsView.Dom.UrlRef(this.imageSettings.src).href;
100
+ url = urlCheckSet(this.imageSettings.src);
98
101
  }
99
102
  const img_texture = texture_manager.GetImage(url);
100
103
  const img_view = new Forge.LayoutView(
101
104
  new Forge.TextureSetting(img_texture)
102
105
  );
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
- );
106
+ view.AddView(img_view, {
107
+ x: calculatedImageSettings.x,
108
+ y: calculatedImageSettings.y,
109
+ width: calculatedImageSettings.w,
110
+ height: calculatedImageSettings.h,
111
+ });
112
112
  console.log("view = " + view);
113
113
  }
114
114
  // 二维码都位置与大小
115
- lp_params = new Forge.LayoutParams({
115
+ lp_params = {
116
116
  x: 0,
117
117
  y: 0,
118
118
  width: this.size,
119
119
  height: this.size,
120
- });
120
+ };
121
121
 
122
122
  // Add new QRCode
123
123
  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
  * 功能函数: (参数说明见函数本体)
@@ -38,6 +40,8 @@
38
40
  * 功能: 设置播放优先级
39
41
  */
40
42
 
43
+ import { urlCheckSet } from "../JsViewVueTools";
44
+
41
45
  const supportSoundPool = !!window.SoundPool;
42
46
  class AudioController {
43
47
  constructor(soundPool, soundId, url) {
@@ -163,13 +167,7 @@ class JsvSoundPool {
163
167
  return;
164
168
  }
165
169
 
166
- let realUrl;
167
- if (window.JsView) {
168
- // jsview上
169
- realUrl = new window.JsView.Dom.UrlRef(url).href;
170
- } else {
171
- realUrl = url;
172
- }
170
+ let realUrl = urlCheckSet(url);
173
171
  if (this._SoundIdMap[realUrl]) {
174
172
  this._SoundIdMap[realUrl].referCount++;
175
173
  const controller = new AudioController(this._SoundPool, this._SoundIdMap[realUrl].soundId);