@shijiu/jsview-vue 2.2.373 → 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 (308) hide show
  1. package/bin/jsview-vue.mjs +333 -487
  2. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
  3. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
  4. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
  5. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +12 -0
  6. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
  7. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
  8. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +0 -8
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +161 -0
  10. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +0 -4
  11. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
  12. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -4
  13. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
  14. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
  15. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
  16. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  17. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
  18. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
  19. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
  20. package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  21. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
  22. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
  23. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
  24. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
  25. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
  26. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
  27. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
  28. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
  29. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
  30. package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
  31. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
  32. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
  33. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
  34. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
  35. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
  36. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
  37. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
  38. package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
  39. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
  40. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
  41. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
  42. package/bin/types/{JsViewPlugin/JsvLatex → utils/JsViewPlugin/JsvAudio}/version.d.ts +0 -4
  43. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
  44. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -8
  45. package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
  46. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -28
  47. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
  48. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
  49. package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
  50. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
  51. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
  52. package/bin/types/{JsViewPlugin/JsvAudio → utils/JsViewPlugin/JsvLatex}/version.d.ts +0 -5
  53. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
  54. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +597 -0
  55. package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  56. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
  57. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
  58. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
  59. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
  60. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
  61. package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  62. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
  63. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
  64. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
  65. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
  66. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
  67. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
  68. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
  69. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
  70. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -4
  71. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
  72. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
  73. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
  74. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
  75. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
  76. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
  77. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
  78. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
  79. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +0 -8
  80. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
  81. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
  82. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
  83. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
  84. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
  85. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
  86. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
  87. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -4
  88. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
  89. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +0 -22
  90. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
  91. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
  92. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
  93. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
  94. package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
  95. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -5
  96. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
  97. package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
  98. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
  99. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
  100. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
  101. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
  102. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
  103. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
  104. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
  105. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
  106. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
  107. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
  108. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
  109. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
  110. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
  111. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
  112. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
  113. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
  114. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
  115. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
  116. package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
  117. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
  118. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
  119. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
  120. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
  121. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -4
  122. package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
  123. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
  124. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -22
  125. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
  126. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
  127. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +0 -4
  128. package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
  129. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
  130. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
  131. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
  132. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
  133. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -34
  134. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -25
  135. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
  136. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
  137. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
  138. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
  139. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -4
  140. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
  141. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
  142. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
  143. package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
  144. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +1 -5
  145. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
  146. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
  147. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
  148. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
  149. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
  150. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
  151. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
  152. package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
  153. package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
  154. package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
  155. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
  156. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
  157. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
  158. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
  159. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +9 -92
  160. package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
  161. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
  162. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
  163. package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
  164. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
  165. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -17
  166. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -18
  167. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
  168. package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
  169. package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
  170. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
  171. package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
  172. package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  173. package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
  174. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
  175. package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
  176. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
  177. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
  178. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
  179. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
  180. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
  181. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
  182. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
  183. package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
  184. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
  185. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
  186. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
  187. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
  188. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
  189. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
  190. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
  191. package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  192. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -40
  193. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
  194. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  195. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
  196. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
  197. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
  198. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
  199. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +2 -7
  200. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  201. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
  202. package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  203. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -31
  204. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -10
  205. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +2 -6
  206. package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
  207. package/index.d.ts +2 -2
  208. package/package.json +1 -1
  209. package/tools/jsview-vue-build.mjs +3 -2
  210. package/tsconfig.json +27 -0
  211. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +3 -22
  212. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +19 -33
  213. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
  214. package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
  215. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
  216. package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
  217. package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
  218. package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
  219. package/utils/JsViewVueTools/JsvRuntimeBridge.js +70 -70
  220. package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
  221. package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
  222. package/utils/JsViewVueTools/index.js +1 -1
  223. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +9 -14
  224. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
  225. package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
  226. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +47 -14
  227. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
  228. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
  229. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
  230. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -48
  231. package/utils/JsViewVueWidget/JsvPosterImage.vue +1 -2
  232. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
  233. package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
  234. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  235. package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
  236. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +17 -14
  237. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
  238. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +70 -75
  239. package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
  240. package/utils/JsViewVueWidget/index.js +2 -2
  241. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
  242. package/bin/browser/BrowserPreload.vue.mjs +0 -139
  243. package/bin/browser/BrowserQrcode.vue.mjs +0 -176
  244. package/bin/browser/BrowserSpray.vue.mjs +0 -56
  245. package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
  246. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +0 -25
  247. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
  248. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
  249. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
  250. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
  251. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
  252. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
  253. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
  254. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
  255. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
  256. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
  257. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
  258. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
  259. package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
  260. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
  261. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
  262. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
  263. package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
  264. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
  265. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
  266. package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
  267. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
  268. package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
  269. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
  270. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
  271. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
  272. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
  273. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
  274. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
  275. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
  276. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
  277. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
  278. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
  279. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
  280. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
  281. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
  282. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
  283. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
  284. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
  285. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
  286. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
  287. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
  288. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
  289. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
  290. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
  291. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
  292. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
  293. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
  294. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
  295. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
  296. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
  297. package/tools/config/tsconfig.json +0 -16
  298. package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
  299. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
  300. package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
  301. package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
  302. package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
  303. package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
  304. package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
  305. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
  306. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
  307. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
  308. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
@@ -71,8 +71,7 @@ export { buildPreloadInfo, buildDownloadInfo };
71
71
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
72
72
  import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
73
73
  import { reactive, onBeforeUnmount, watchEffect } from "vue";
74
-
75
- const CONST_FORMAT_TOKEN = "_JsvP_";
74
+ import { urlCheckSet } from "../../JsViewVueTools";
76
75
 
77
76
  const props = defineProps({
78
77
  preloadList: Object,
@@ -98,37 +97,29 @@ let preloadToken = 1;
98
97
  let downloadToken = 1;
99
98
 
100
99
  const _releasePreloadView = () => {
101
- if (window.JsView) {
102
- if (loadViewList.preloadViewList.length > 0) {
103
- for (const view_info of loadViewList.preloadViewList) {
104
- if (view_info) {
105
- // 当预加载url为null时view_info为null
106
- const id = view_info.viewId;
107
- view_info.textureRef?.DisableBackgroundLoad();
108
- view_info.textureRef?.UnregisterLoadImageCallback(
109
- view_info.callToken
110
- );
111
- Forge.sViewStore.remove(id);
112
- }
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);
113
108
  }
114
109
  }
115
- loadViewList.preloadViewList = [];
116
- preloadStateList = [];
117
110
  }
111
+ loadViewList.preloadViewList = [];
112
+ preloadStateList = [];
118
113
  };
119
114
  const _releaseDownloadView = () => {
120
- if (window.JsView) {
121
- if (loadViewList.downloadViewList.length > 0) {
122
- for (const view_info of loadViewList.downloadViewList) {
123
- if (view_info) {
124
- // 当预加载url为null时view_info为null
125
- const id = view_info.viewId;
126
- view_info.textureRef?.DisableBackgroundLoad();
127
- view_info.textureRef?.UnregisterLoadImageCallback(
128
- view_info.callToken
129
- );
130
- Forge.sViewStore.remove(id);
131
- }
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);
132
123
  }
133
124
  }
134
125
  }
@@ -176,14 +167,7 @@ const _getPreloadViewIdList = () => {
176
167
  "Error:format mismatch, data should comes from function buildPreloadInfo()"
177
168
  );
178
169
  }
179
- const base_url = item.url;
180
- let image_url = base_url;
181
- if (base_url && base_url.indexOf("http") < 0) {
182
- // 包含http和https两种请求
183
- if (window.JsView.Dom.UrlRef) {
184
- image_url = new window.JsView.Dom.UrlRef(base_url).href;
185
- }
186
- }
170
+ let image_url = urlCheckSet(item.url);
187
171
  let target_size = null;
188
172
  if (item.width !== 0 && item.height !== 0) {
189
173
  target_size = { width: item.width, height: item.height };
@@ -267,14 +251,7 @@ const _getDownloadViewIdList = () => {
267
251
  );
268
252
  }
269
253
  console.log(`OnDownload get${index} url=${item.url}`);
270
- const base_url = item.url;
271
- let image_url = base_url;
272
- if (base_url && base_url.indexOf("http") < 0) {
273
- // 包含http和https两种请求
274
- if (window.JsView.Dom.UrlRef) {
275
- image_url = new window.JsView.Dom.UrlRef(base_url).href;
276
- }
277
- }
254
+ let image_url = urlCheckSet(item.url);
278
255
  const texture = ForgeHandles.TextureManager.GetDownloadTexture(
279
256
  image_url,
280
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 };
@@ -22,6 +22,7 @@
22
22
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
23
23
  import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
24
24
  import { TextureInstantType } from "../../JsViewVueTools/JsvTextureDefines.ts";
25
+ import { urlCheckSet } from "../../JsViewVueTools/TypeCheckAndSet.ts";
25
26
 
26
27
  export default {
27
28
  props: {
@@ -96,7 +97,7 @@ export default {
96
97
  if (this.imageSettings && calculatedImageSettings) {
97
98
  let url = this.imageSettings.src;
98
99
  if (typeof url === "string") {
99
- url = new window.JsView.Dom.UrlRef(this.imageSettings.src).href;
100
+ url = urlCheckSet(this.imageSettings.src);
100
101
  }
101
102
  const img_texture = texture_manager.GetImage(url);
102
103
  const img_view = new Forge.LayoutView(
@@ -40,6 +40,8 @@
40
40
  * 功能: 设置播放优先级
41
41
  */
42
42
 
43
+ import { urlCheckSet } from "../JsViewVueTools";
44
+
43
45
  const supportSoundPool = !!window.SoundPool;
44
46
  class AudioController {
45
47
  constructor(soundPool, soundId, url) {
@@ -165,13 +167,7 @@ class JsvSoundPool {
165
167
  return;
166
168
  }
167
169
 
168
- let realUrl;
169
- if (window.JsView) {
170
- // jsview上
171
- realUrl = new window.JsView.Dom.UrlRef(url).href;
172
- } else {
173
- realUrl = url;
174
- }
170
+ let realUrl = urlCheckSet(url);
175
171
  if (this._SoundIdMap[realUrl]) {
176
172
  this._SoundIdMap[realUrl].referCount++;
177
173
  const controller = new AudioController(this._SoundPool, this._SoundIdMap[realUrl].soundId);
@@ -42,6 +42,7 @@
42
42
  <script>
43
43
  import { Forge } from "@shijiu/jsview/dom/jsv-forge-define";
44
44
  import ForgeHandles from "../../JsViewVueTools/ForgeHandles";
45
+ import { urlCheckSet } from "../../JsViewVueTools";
45
46
 
46
47
  let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
47
48
  if (!pointRes) {
@@ -54,19 +55,13 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
54
55
  texture_manager.GetColorTexture(pointRes)
55
56
  );
56
57
  } else {
57
- const base_url = pointRes;
58
- let image_url = base_url;
59
- if (base_url && base_url.indexOf("http") === 0) {
60
- image_url = base_url;
61
- } else if (window.JsView.Dom.UrlRef) {
62
- image_url = new window.JsView.Dom.UrlRef(pointRes).href;
63
- }
58
+ let image_url = urlCheckSet(pointRes);
64
59
  texture_setting = new Forge.ExternalTextureSetting(
65
60
  texture_manager.GetImage2(image_url, false, null, "RGB_8888", null)
66
61
  );
67
62
  }
68
63
  const spray_view = new Forge.SprayView(texture_setting);
69
- let add_speed = .1;
64
+ let add_speed = 0.1;
70
65
  if (typeof sprayStyle.particleAddSpeed == "number") {
71
66
  add_speed = sprayStyle.particleAddSpeed;
72
67
  }
@@ -94,16 +89,24 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
94
89
  alphaMin = sprayStyle.alphaMin;
95
90
  alphaMax = sprayStyle.alphaMax;
96
91
  }
97
- let lifeMin = sprayStyle.lifeMin, lifeMax = sprayStyle.lifeMax;
92
+ let lifeMin = sprayStyle.lifeMin,
93
+ lifeMax = sprayStyle.lifeMax;
98
94
  if (sprayStyle.lifeMax > 50 * 1000) {
99
- 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
+ );
100
99
  /**某些设备上float值过大会导致精度问题, 因此粒子生命需要限制范围*/
101
100
  lifeMin = sprayStyle.lifeMin > 50000 ? 50000 : sprayStyle.lifeMin;
102
101
  lifeMax = sprayStyle.lifeMax > 50000 ? 50000 : sprayStyle.lifeMax;
103
102
  }
104
103
 
105
- let angleMin = 0, angleMax = 0;
106
- if (typeof sprayStyle.angleMin == "number" && typeof sprayStyle.angleMax == "number") {
104
+ let angleMin = 0,
105
+ angleMax = 0;
106
+ if (
107
+ typeof sprayStyle.angleMin == "number" &&
108
+ typeof sprayStyle.angleMax == "number"
109
+ ) {
107
110
  if (sprayStyle.angleMin <= sprayStyle.angleMax) {
108
111
  angleMin = (sprayStyle.angleMin / 180) * 3.1415;
109
112
  angleMax = (sprayStyle.angleMax / 180) * 3.1415;
@@ -133,7 +136,7 @@ let buildForgeView = (pointRes, sprayStyle, sizeRef, ignoreClip) => {
133
136
  alphaMin,
134
137
  alphaMax,
135
138
  angleMin,
136
- angleMax,
139
+ angleMax
137
140
  );
138
141
  const view_width =
139
142
  sprayStyle.deltaWidth === 0 ? 1 : 2 * sprayStyle.deltaWidth;
@@ -204,4 +207,4 @@ export default {
204
207
  :style="{ width: size.width, height: size.height }"
205
208
  :data-jsv-vw-innerview="viewId"
206
209
  ></div>
207
- </template>
210
+ </template>
@@ -353,11 +353,6 @@ onUnmounted(() => {
353
353
  const onAnimEndDelegate = () => {
354
354
  // 在onAnimEnd之前进行Stop,以防onAnimEnd内部继续发生别的操作
355
355
  if (props.onAnimEnd) {
356
- if (!window.JsView) {
357
- console.log(
358
- "JsvSpriteAnim 结束回调时进行隐藏在PC环境会有一帧残留,盒子环境是正常,可忽略这个问题"
359
- );
360
- }
361
356
  props.onAnimEnd();
362
357
  }
363
358
 
@@ -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,
@@ -84,11 +84,6 @@ const TexAlignAnchor = {
84
84
  };
85
85
  export { TexAlignAnchor };
86
86
 
87
- const STATE_IDLE = 0;
88
- const STATE_RUNNING = 1;
89
- const STATE_PAUSED = 2;
90
- const STATE_END = 3;
91
-
92
87
  export default {
93
88
  props: {
94
89
  src: String,
@@ -133,7 +128,7 @@ export default {
133
128
  },
134
129
  setup() {
135
130
  return {
136
- runningState: STATE_IDLE, // 0:未开始, 1:运行中, 2:暂停, 3:正常结束
131
+ forgeAnimation: null,
137
132
  innerViewId: -1,
138
133
  };
139
134
  },
@@ -249,10 +244,7 @@ export default {
249
244
  return new Forge.LayoutView(texture_set);
250
245
  },
251
246
 
252
- _onAnimationEnd(normal_end) {
253
- if (normal_end) {
254
- this.runningState = STATE_END;
255
- }
247
+ _onAnimationEnd() {
256
248
  this.onAnimationEnd?.();
257
249
  },
258
250
 
@@ -281,34 +273,9 @@ export default {
281
273
  }
282
274
  },
283
275
 
284
- _buildAnimation() {
285
- if (this.animation) {
286
- let anim = new Forge.CssKeyframeAnimation(
287
- "@keyframes texAnimDef" + this.animation,
288
- this.duration,
289
- null,
290
- 1,
291
- 1
292
- );
293
- anim.EnableDelay(this.delay).SetRepeat(this.repeat);
294
- anim.Enable(Forge.AnimationEnable.ReleaseAfterEndCallback);
295
- anim.SetAnimationListener(
296
- new Forge.AnimationListener(null, this._onAnimationEnd, null)
297
- );
298
-
299
- return anim;
300
- } else {
301
- return null;
302
- }
303
- },
304
-
305
276
  start() {
306
- if (this.innerView) {
307
- let anim = this._buildAnimation();
308
- if (anim) {
309
- this.runningState = STATE_RUNNING;
310
- this.innerView.StartTextureAnimation(anim);
311
- }
277
+ if (this.forgeAnimation && this.innerView) {
278
+ this.innerView.StartTextureAnimation(this.forgeAnimation);
312
279
  }
313
280
  },
314
281
 
@@ -331,41 +298,55 @@ export default {
331
298
  },
332
299
 
333
300
  created() {
334
- if (window.JsView) {
335
- const textureManager = ForgeHandles.TextureManager;
301
+ const textureManager = ForgeHandles.TextureManager;
336
302
 
337
- // 1.获得主view的展示内容图片 texture
338
- let image_url = urlCheckSet(this.src);
339
- let view_texture = textureManager.GetImage2(
340
- image_url,
341
- false,
342
- null,
343
- "RGB_8888",
344
- null
345
- );
346
- // 1.1 兼容border转为decorate
347
- let decorate = this.$props.decorate;
348
- if (this.$props.borderRadius) {
349
- decorate = this._readRadius(this.$props.borderRadius);
350
- }
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
+ // }
351
317
 
352
- // 2.创建view
353
- this.innerView = this._createForgeView(view_texture, decorate);
354
- // 3.设置texture基本形变
355
- if (this.transform) {
356
- this.innerView.ResetTextureCssTransform(
357
- this.transform,
358
- this.transformOrigin
359
- );
360
- }
361
- this._updateTexCoord();
362
-
363
- // 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();
364
328
 
365
- this.innerViewId = Forge.sViewStore.add(
366
- 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)
367
342
  );
343
+ } else {
344
+ this.forgeAnimation = null;
368
345
  }
346
+
347
+ // 5. inner view标准处理
348
+
349
+ this.innerViewId = Forge.sViewStore.add(new Forge.ViewInfo(this.innerView));
369
350
  },
370
351
  beforeUnmount() {
371
352
  if (this.innerViewId !== -1) {
@@ -379,19 +360,33 @@ export default {
379
360
  }
380
361
  },
381
362
  activated() {
382
- if (this.innerView && this.runningState == STATE_PAUSED) {
383
- // 动画未正常结束,重新开始动画
384
- let anim = this._buildAnimation();
385
- this.innerView.StartTextureAnimation(anim); // pause状态,一定有值
363
+ if (this.innerView) {
364
+ if (this.animation && this.forgeAnimation == null) {
365
+ this.forgeAnimation = new Forge.CssKeyframeAnimation(
366
+ "@keyframes texAnimDef" + this.animation,
367
+ this.duration,
368
+ null,
369
+ 1,
370
+ 1
371
+ );
372
+ this.forgeAnimation.EnableDelay(this.delay).SetRepeat(this.repeat);
373
+ this.forgeAnimation.Enable(
374
+ Forge.AnimationEnable.ReleaseAfterEndCallback
375
+ );
376
+ this.forgeAnimation.SetAnimationListener(
377
+ new Forge.AnimationListener(null, this._onAnimationEnd, null)
378
+ );
379
+ this.innerView.StartTextureAnimation(this.forgeAnimation);
380
+ } else {
381
+ this.forgeAnimation = null;
382
+ }
386
383
  }
387
384
  },
388
385
  deactivated() {
389
386
  if (this.innerView) {
390
387
  this.innerView.StopTextureAnimation();
391
- if (this.runningState == STATE_RUNNING) {
392
- this.runningState = STATE_PAUSED;
393
- }
394
388
  }
389
+ this.forgeAnimation = null;
395
390
  },
396
391
  };
397
392
  </script>
@@ -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 };
@@ -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";
@@ -1,79 +0,0 @@
1
- import { onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle } from 'vue';
2
-
3
- /*
4
- + @file {@link file://./../../../../utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue}
5
- */
6
- const _sfc_main = {
7
- __name: "BrowserJsvFragShaderView",
8
- props: {
9
- style: {
10
- type: Object,
11
- required: true
12
- },
13
- duration: {
14
- type: Number,
15
- default: -1
16
- },
17
- autoplay: {
18
- type: Boolean,
19
- default: false
20
- },
21
- shaderStr: {
22
- type: String,
23
- required: true
24
- },
25
- // [{ name: string, value: number }]
26
- uniforms: {
27
- type: Array
28
- },
29
- // [{ name: string, type: number, resource: object/string }]
30
- textures: {
31
- type: Array
32
- },
33
- onEnd: {
34
- type: Function
35
- },
36
- onStart: {
37
- type: Function
38
- }
39
- },
40
- setup(__props, { expose }) {
41
- const props = __props;
42
- let vMounted = false;
43
- onMounted(() => {
44
- vMounted = true;
45
- });
46
- onUnmounted(() => {
47
- vMounted = false;
48
- });
49
- expose({
50
- startAnim: () => {
51
- props.onStart?.();
52
- setTimeout(() => {
53
- if (vMounted) {
54
- props.onEnd?.();
55
- }
56
- }, 0);
57
- },
58
- stopAnim: () => {
59
- }
60
- });
61
- return (_ctx, _cache) => {
62
- return openBlock(), createElementBlock("div", {
63
- style: normalizeStyle({
64
- left: __props.style.left,
65
- top: __props.style.top,
66
- width: __props.style.width,
67
- height: __props.style.height,
68
- backgroundColor: "#00000077",
69
- fontSize: 50,
70
- color: "#ffffff",
71
- textAlign: "center",
72
- lineHeight: __props.style.height
73
- })
74
- }, " 浏览器端未支持JsvFragShaderView ", 4);
75
- };
76
- }
77
- };
78
-
79
- export { _sfc_main as default };