@shijiu/jsview-vue 2.3.151-test.0 → 2.3.728-alpha.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 (432) hide show
  1. package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
  2. package/bin/jsview-vue.mjs +5964 -1833
  3. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
  4. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
  5. package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
  6. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
  7. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
  10. package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +25 -5
  11. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
  13. package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
  14. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
  15. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
  16. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
  17. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
  18. package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +3 -3
  19. package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
  20. package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
  21. package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
  22. package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +17 -7
  23. package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
  24. package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
  25. package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
  26. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
  27. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
  28. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
  29. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
  30. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
  31. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
  32. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
  33. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  34. package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
  35. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
  36. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
  37. package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
  38. package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
  39. package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
  40. package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +10 -3
  41. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
  42. package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
  43. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
  44. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
  45. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
  46. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
  47. package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
  48. package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
  49. package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
  50. package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
  51. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
  52. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
  53. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
  54. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
  55. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
  56. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
  57. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +1 -0
  58. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
  59. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
  60. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  61. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
  62. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
  63. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
  64. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
  65. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
  66. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
  67. package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
  68. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
  69. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
  70. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
  71. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
  72. package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
  73. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
  74. package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
  75. package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
  76. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
  77. package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
  78. package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
  79. package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
  80. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
  81. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
  82. package/bin/types/utils/JsViewVueWidget/index.d.ts +6 -3
  83. package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
  84. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
  85. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
  86. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
  87. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
  88. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
  89. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
  90. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
  91. package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
  92. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
  93. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
  94. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
  95. package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
  96. package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
  97. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
  98. package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
  99. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
  100. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  101. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
  102. package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
  103. package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
  104. package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
  105. package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  106. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
  107. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
  108. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
  109. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
  110. package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
  111. package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
  112. package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
  113. package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
  114. package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
  115. package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
  116. package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
  117. package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
  118. package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
  119. package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
  120. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
  121. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
  122. package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
  123. package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
  124. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
  125. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
  126. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
  127. package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
  128. package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
  129. package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
  130. package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
  131. package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
  132. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
  133. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
  134. package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
  135. package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
  136. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
  137. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
  138. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
  139. package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
  140. package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
  141. package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
  142. package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
  143. package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  144. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
  145. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
  146. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
  147. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
  148. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  149. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
  150. package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
  151. package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
  152. package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  153. package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
  154. package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
  155. package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
  156. package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
  157. package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
  158. package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
  159. package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
  160. package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
  161. package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
  162. package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
  163. package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
  164. package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
  165. package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
  166. package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
  167. package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
  168. package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
  169. package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
  170. package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
  171. package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
  172. package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
  173. package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
  174. package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
  175. package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
  176. package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
  177. package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
  178. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
  179. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
  180. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
  181. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
  182. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
  183. package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
  184. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
  185. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
  186. package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
  187. package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
  188. package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
  189. package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
  190. package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
  191. package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
  192. package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
  193. package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
  194. package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
  195. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
  196. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
  197. package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
  198. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
  199. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
  200. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
  201. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
  202. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
  203. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
  204. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
  205. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
  206. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
  207. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
  208. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
  209. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
  210. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
  211. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
  212. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
  213. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
  214. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
  215. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
  216. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
  217. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
  218. package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
  219. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
  220. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
  221. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
  222. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
  223. package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
  224. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
  225. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
  226. package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
  227. package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
  228. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
  229. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
  230. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
  231. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
  232. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
  233. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
  234. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
  235. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
  236. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
  237. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
  238. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  239. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
  240. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
  241. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
  242. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
  243. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
  244. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
  245. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
  246. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
  247. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
  248. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
  249. package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
  250. package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
  251. package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
  252. package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
  253. package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
  254. package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
  255. package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
  256. package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
  257. package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
  258. package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
  259. package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
  260. package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
  261. package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
  262. package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
  263. package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
  264. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
  265. package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
  266. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
  267. package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
  268. package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
  269. package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
  270. package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
  271. package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
  272. package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
  273. package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
  274. package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
  275. package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
  276. package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
  277. package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
  278. package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
  279. package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
  280. package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
  281. package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
  282. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
  283. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
  284. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
  285. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
  286. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
  287. package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
  288. package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
  289. package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
  290. package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
  291. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
  292. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
  293. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
  294. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
  295. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
  296. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
  297. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
  298. package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  299. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
  300. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
  301. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
  302. package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
  303. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  304. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
  305. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
  306. package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
  307. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
  308. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
  309. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
  310. package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
  311. package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  312. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
  313. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
  314. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
  315. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
  316. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
  317. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
  318. package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
  319. package/dist/types/utils/index.d.ts +8 -0
  320. package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
  321. package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
  322. package/dist/utils/export-sfc.mjs +12 -0
  323. package/dist/utils/index.mjs +29000 -0
  324. package/dist/utils/jsview-vue-common.mjs +39 -0
  325. package/package.json +1 -1
  326. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
  327. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +24 -2
  328. package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
  329. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
  330. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +325 -155
  331. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
  332. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1035 -370
  333. package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
  334. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
  335. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
  336. package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
  337. package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
  338. package/utils/JsViewEngineWidget/RectUtils.js +1 -1
  339. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
  340. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
  341. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
  342. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
  343. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +329 -230
  344. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
  345. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
  346. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
  347. package/utils/JsViewEngineWidget/WidgetCommon.ts +17 -7
  348. package/utils/JsViewEngineWidget/index.ts +7 -2
  349. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
  350. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
  351. package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
  352. package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
  353. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
  354. package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
  355. package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
  356. package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
  357. package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
  358. package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
  359. package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
  360. package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
  361. package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
  362. package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +60 -10
  363. package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
  364. package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
  365. package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
  366. package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
  367. package/utils/JsViewVueTools/BlobApi.ts +55 -0
  368. package/utils/JsViewVueTools/FeatureActive.ts +3 -0
  369. package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
  370. package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
  371. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
  372. package/utils/JsViewVueTools/JsvRuntimeBridge.js +40 -19
  373. package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
  374. package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
  375. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
  376. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
  377. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
  378. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
  379. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
  380. package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
  381. package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
  382. package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
  383. package/utils/JsViewVueTools/index.js +3 -1
  384. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
  385. package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
  386. package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
  387. package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
  388. package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
  389. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
  390. package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
  391. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
  392. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
  393. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
  394. package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
  395. package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
  396. package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
  397. package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
  398. package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
  399. package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
  400. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
  401. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
  402. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
  403. package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
  404. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
  405. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +29 -2
  406. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
  407. package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
  408. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
  409. package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
  410. package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
  411. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +32 -29
  412. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  413. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
  414. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
  415. package/utils/JsViewVueWidget/JsvSector.vue +66 -28
  416. package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
  417. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -305
  418. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
  419. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
  420. package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
  421. package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
  422. package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
  423. package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
  424. package/utils/JsViewVueWidget/index.js +7 -2
  425. package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
  426. package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
  427. package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
  428. package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
  429. package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
  430. /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
  431. /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
  432. /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
@@ -1,501 +1,396 @@
1
1
  <script>
2
- import {
3
- JsvMediaVideo,
4
- JsvMediaAudio,
5
- findMediaObjectByKey,
6
- logDebug,
7
- } from "./JsvMedia";
8
- import { JsvNativeSharedDiv } from "../../JsViewVueWidget";
2
+ import {JsvMediaVideo, JsvMediaAudio, findMediaObjectByKey, logDebug} from './JsvMedia.js'
3
+ import {JsvNativeSharedDiv} from 'jsview'
4
+ export * from "./JsvMedia.js"
9
5
 
10
6
  export default {
11
- props: {
12
- /**
13
- * 回调函数,播放器对象通知接口
14
- * @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
15
- */
16
- onRef: { type: Function, default: () => {} },
17
- /**
18
- * 属性,Boolean类型,true表示自动播放,默认false。
19
- */
20
- autoplay: { type: Boolean, default: false },
21
- /**
22
- * 属性,String类型,播放器实例索引,同样的key使用同一个播放器实例。
23
- */
24
- playerKey: { type: String, default: null },
25
- /**
26
- * 属性,String类型,播放器窗口模式,默认resizable模式。
27
- * full:观影模式,全屏方式,不建议修改w/h/l/t,视频清晰度/流畅度最佳;
28
- * resizable:可变窗口模式,可以随意修改w/h/l/t,支持动画效果,视频清晰度/流畅度表现可能不如full模式;
29
- * pip:画中画模式,只在支持多路硬解的情况下使用,用户画中画的小窗播放,对清晰度/流畅度要求较差,可能会有反交错问题。
30
- */
31
- windowMode: { type: String, default: "resizable" },
32
- /**
33
- * 属性,int类型,底层使用的播放器类型。1:系统播放器;2:jsv视频播放器;3:jsv音频播放器。默认2。
34
- */
35
- playerType: { type: Number, default: 2 },
36
- /**
37
- * 属性,int类型,播放器解码方式。0:根据硬件能力自动匹配;1:硬解码;2:软解码。默认0(根据芯片能力自动匹配)。
38
- */
39
- decodeType: { type: Number, default: 0 },
40
- /**
41
- * 属性,Boolean类型,层级关系,true表示在界面的下面,false表示在界面上面,默认true。
42
- */
43
- background: { type: Boolean, default: true },
44
- /**
45
- * 属性,Boolean类型,true表示静音,默认false。
46
- */
47
- muted: { type: Boolean, default: false },
48
- /**
49
- * 属性,Boolean类型,true表示循环播放,默认false。
50
- */
51
- loop: { type: Boolean, default: false },
52
- /**
53
- * 属性,String类型,播放地址。
54
- */
55
- src: { type: String, default: "" },
56
- /**
57
- * 属性,Double类型,起播时间,0-duration。
58
- */
59
- currentTime: { type: Number, default: 0 },
60
- /**
61
- * 属性,Boolean类型,是否保留最后一帧,true保留,false不保留。
62
- */
63
- keepLastFrame: { type: Boolean, default: true },
64
- /**
65
- * 属性,String类型,视频显示比例,origin原始比例显示,full全屏显示,x:y按照指定比例显示。
66
- */
67
- videoAspectRatio: { type: String, default: "origin" },
68
- /**
69
- * 属性,JSON Object类型,色度抠像参数,包含color,colorDistance,edgeDistance,greenOffset四个参数,
70
- * 参考格式:{color: 0x30FF30, colorDistance: 0.15, edgeDistance: 0.4, greenOffset: 0.05}
71
- * color,色值,int类型,为抠图色值范围的中心点,格式为0xRRGGBB。
72
- * colorDistance,float类型,色域范围,范围0-1.0。
73
- * edgeDistance,float类型,alpha透明度距离,范围colorDistance-1.0,从colorDistance到edgeDistance的alpha值从1.0-0线性递减。
74
- * greenOffset,float类型,红蓝差值,范围0-1.0。
75
- * 目前只支持扣绿。
76
- */
77
- chromaKey: { type: Object, default: null },
78
- /**
79
- * 回调函数,播放结束时通过此回调接口通知。
80
- */
81
- onEnded: {
82
- type: Function,
83
- default: () => {
84
- return {};
85
- },
86
- },
87
- /**
88
- * 回调函数,播放错误时通过此接口通知。
89
- * @param {int} 错误类型,当前定义了四种错误。1是异常中断;2是网络错误;3是解码错误;4是格式不支持。
90
- */
91
- onError: {
92
- type: Function,
93
- default: () => {
94
- return {};
95
- },
96
- },
97
- // onAbort: {type: Function, default: ()=>{return{}}},
98
- /**
99
- * 回调函数,当正常播放时,每0.5秒上报一次,回调接口里会带上当前时间,也可以使用video对象的currentTime属性去获取当前时间。
100
- * @param {Long} 当前播放时间,单位秒。
101
- */
102
- onTimeUpdate: {
103
- type: Function,
104
- default: () => {
105
- return {};
106
- },
107
- },
108
- /**
109
- * 回调函数,开始加载,设置完播放地址后,上报此事件。
110
- */
111
- onLoadStart: {
112
- type: Function,
113
- default: () => {
114
- return {};
115
- },
116
- },
117
- /**
118
- * 回调函数,开始正常播放,同一个播放地址仅触发一次。
119
- */
120
- onCanPlayThrough: {
121
- type: Function,
122
- default: () => {
123
- return {};
124
- },
125
- },
126
- /**
127
- * 回调函数,正常下载,duration不变的情况下只触发一次。
128
- */
129
- onProgress: {
130
- type: Function,
131
- default: () => {
132
- return {};
133
- },
134
- },
135
- /**
136
- * 回调函数,视频准备好后触发。
137
- */
138
- onLoadedMetaData: {
139
- type: Function,
140
- default: () => {
141
- return {};
142
- },
143
- },
144
- /**
145
- * 回调函数,视频准备好后触发,这个时候可以正常seek。
146
- */
147
- onLoad: {
148
- type: Function,
149
- default: () => {
150
- return {};
151
- },
152
- },
153
- /**
154
- * 回调函数,视频准备好后触发,这个时候可以获取duration。
155
- */
156
- onDurationChange: {
157
- type: Function,
158
- default: () => {
159
- return {};
160
- },
161
- },
162
- /**
163
- * 回调函数,视频准备好后,seek(修改currentTime)会出发此事件。
164
- */
165
- onSeeking: {
166
- type: Function,
167
- default: () => {
168
- return {};
169
- },
170
- },
171
- /**
172
- * 回调函数,seek完成后触发此事件。
173
- */
174
- onSeeked: {
175
- type: Function,
176
- default: () => {
177
- return {};
178
- },
179
- },
180
- /**
181
- * 回调函数,缓冲时触发。
182
- */
183
- onStalled: {
184
- type: Function,
185
- default: () => {
186
- return {};
187
- },
188
- },
189
- /**
190
- * 回调函数,正常播放后触发。
191
- */
192
- onPlaying: {
193
- type: Function,
194
- default: () => {
195
- return {};
196
- },
197
- },
198
- /**
199
- * 回调函数,正常显示后触发此事件。
200
- */
201
- onCanPlay: {
202
- type: Function,
203
- default: () => {
204
- return {};
205
- },
206
- },
207
- /**
208
- * 回调函数,音频失去焦点后触发此事件,可能会导致pause(点播)或者离开频道(直播)。
209
- */
210
- onAudioFocusLoss: {
211
- type: Function,
212
- default: () => {
213
- return {};
214
- },
215
- },
216
- /**
217
- * 回调函数,音频获取焦点后触发此事件,可能会触发resume(点播)或者加入频道(直播)。
218
- */
219
- onAudioFocusGain: {
220
- type: Function,
221
- default: () => {
222
- return {};
223
- },
224
- },
225
- /**
226
- * 回调函数,直播进入时移状态时,触发此事件。
227
- */
228
- onTimeShift: {
229
- type: Function,
230
- default: () => {
231
- return {};
232
- },
233
- },
234
- /**
235
- * 回调函数,直播进入时移状态时,成功播放触发此事件。
236
- */
237
- onTimeShifted: {
238
- type: Function,
239
- default: () => {
240
- return {};
241
- },
242
- },
243
- /**
244
- * 回调函数,时移回到直播状态,触发此事件。
245
- */
246
- onBackLive: {
247
- type: Function,
248
- default: () => {
249
- return {};
250
- },
251
- },
252
- /**
253
- * 回调函数,时移回到直播状态时,成功播放触发此事件。
254
- */
255
- onBackLived: {
256
- type: Function,
257
- default: () => {
258
- return {};
259
- },
260
- },
261
- /**
262
- * 属性,Object类型,设置窗口属性,同其他组件的style设置。
263
- */
264
- style: {
265
- type: Object,
266
- default: () => {
267
- return {};
268
- },
269
- },
270
- /**
271
- * 属性,Boolean类型,活跃状态,当多个JsvPlayer组件指向一个video对象时,只能有一个处于活跃状态。
272
- * 视频显示在活跃JsvPlayer设置的显示区域内,事件通知也只会送给活跃的JsvPlayer组件注册的回调函数。
273
- */
274
- active: { type: Boolean, default: true },
275
- corner: { type: Number, default: 0 },
276
- },
277
- components: {
278
- JsvNativeSharedDiv,
279
- },
280
- watch: {
281
- active(newValue) {
282
- logDebug("active newValue: " + newValue);
283
- if (this.video && this.playerType !== 3) {
284
- if (newValue) {
285
- this.registerEvent();
286
- this.video.setHoleID(this.holeId);
287
- this.holeStyle = {
288
- left: 0,
289
- top: 0,
290
- width: this.style.width,
291
- height: this.style.height,
292
- };
293
- } else {
294
- this.holeStyle = {
295
- left: 0,
296
- top: 0,
297
- width: 0,
298
- height: 0,
299
- };
300
- }
301
- }
302
- },
303
- style(newValue) {
304
- logDebug(
305
- "holeStyle newValue: left=" +
306
- newValue.left +
307
- ", top=" +
308
- newValue.top +
309
- ", width=" +
310
- newValue.width +
311
- ", height=" +
312
- newValue.height
313
- );
314
- if (this.active && this.playerType !== 3) {
315
- this.holeStyle = {
316
- left: 0,
317
- top: 0,
318
- width: newValue.width,
319
- height: newValue.height,
320
- };
321
- }
322
- },
323
- keepLastFrame(newValue) {
324
- logDebug("keepLastFrame newValue: " + newValue);
325
- if (this.video && this.active) {
326
- this.video.keepLastFrame = this.keepLastFrame;
327
- }
328
- },
329
- },
7
+ props: {
8
+ /**
9
+ * 回调函数,播放器对象通知接口
10
+ * @param {Object} video对象,可以通过此video对象调用video相关属性和方法,具体属性和方法定义见JsvMedia.js文件里相关说明。
11
+ */
12
+ onRef: { type: Function, default: () => {} },
13
+ /**
14
+ * 属性,Boolean类型,true表示自动播放,默认false。
15
+ */
16
+ autoplay: { type: Boolean, default: false },
17
+ /**
18
+ * 属性,String类型,播放器实例索引,同样的key使用同一个播放器实例。
19
+ */
20
+ playerKey: { type: String, default: null},
21
+ /**
22
+ * 属性,String类型,播放器窗口模式,默认resizable模式。
23
+ * full:观影模式,全屏方式,不建议修改w/h/l/t,视频清晰度/流畅度最佳;
24
+ * resizable:可变窗口模式,可以随意修改w/h/l/t,支持动画效果,视频清晰度/流畅度表现可能不如full模式;
25
+ * pip:画中画模式,只在支持多路硬解的情况下使用,用户画中画的小窗播放,对清晰度/流畅度要求较差,可能会有反交错问题。
26
+ */
27
+ windowMode: {type: String, default: "resizable"},
28
+ /**
29
+ * 属性,int类型,底层使用的播放器类型。1:系统播放器;2:jsv视频播放器;3:jsv音频播放器;4:jsv短视频播放器。默认2。
30
+ */
31
+ playerType: {type: Number, default: 2},
32
+ /**
33
+ * 属性,int类型,播放器解码方式。0:根据硬件能力自动匹配;1:硬解码;2:软解码。默认0(根据芯片能力自动匹配)。
34
+ */
35
+ decodeType: {type: Number, default: 0},
36
+ /**
37
+ * 属性,Boolean类型,层级关系,true表示在界面的下面,false表示在界面上面,默认true。
38
+ */
39
+ background: {type: Boolean, default: true},
40
+ /**
41
+ * 属性,Boolean类型,true表示静音,默认false。
42
+ */
43
+ muted: {type: Boolean, default: false},
44
+ /**
45
+ * 属性,Boolean类型,true表示循环播放,默认false。
46
+ */
47
+ loop:{type: Boolean, default: false},
48
+ /**
49
+ * 属性,String类型,播放地址。
50
+ */
51
+ src: {type: String, default: ""},
52
+ /**
53
+ * 属性,Double类型,起播时间,0-duration。
54
+ */
55
+ currentTime: { type: Number, default: 0},
56
+ /**
57
+ * 属性,Boolean类型,是否保留最后一帧,true保留,false不保留。
58
+ */
59
+ keepLastFrame: {type: Boolean, default: true},
60
+ /**
61
+ * 属性,String类型,视频显示比例,origin原始比例显示,full全屏显示,x:y按照指定比例显示。
62
+ */
63
+ videoAspectRatio: {type: String, default: "origin"},
64
+ /**
65
+ * 属性,String类型,色度抠像参数,包含color,colorDistance,edgeDistance,greenOffset四个参数,
66
+ * 参考格式:{color: 0x30FF30, colorDistance: 0.15, edgeDistance: 0.4, greenOffset: 0.05}
67
+ * color,色值,int类型,为抠图色值范围的中心点,格式为0xRRGGBB。
68
+ * colorDistance,float类型,色域范围,范围0-1.0。
69
+ * edgeDistance,float类型,alpha透明度距离,范围colorDistance-1.0,从colorDistance到edgeDistance的alpha值从1.0-0线性递减。
70
+ * greenOffset,float类型,红蓝差值,范围0-1.0。
71
+ * 目前只支持扣绿。
72
+ */
73
+ chromaKey: {type: String, default: ""},
74
+ /**
75
+ * 回调函数,播放结束时通过此回调接口通知。
76
+ */
77
+ onEnded: {type: Function, default: ()=>{return{}}},
78
+ /**
79
+ * 回调函数,播放错误时通过此接口通知。
80
+ * @param {int} 错误类型,当前定义了四种错误。1是异常中断;2是网络错误;3是解码错误;4是格式不支持。
81
+ */
82
+ onError: {type: Function, default: ()=>{return{}}},
83
+ // onAbort: {type: Function, default: ()=>{return{}}},
84
+ /**
85
+ * 回调函数,当正常播放时,每0.5秒上报一次,回调接口里会带上当前时间,也可以使用video对象的currentTime属性去获取当前时间。
86
+ * @param {Long} 当前播放时间,单位秒。
87
+ */
88
+ onTimeUpdate: {type: Function, default: ()=>{return{}}},
89
+ /**
90
+ * 回调函数,开始加载,设置完播放地址后,上报此事件。
91
+ */
92
+ onLoadStart: {type: Function, default: ()=>{return{}}},
93
+ /**
94
+ * 回调函数,开始正常播放,同一个播放地址仅触发一次。
95
+ */
96
+ onCanPlayThrough: {type: Function, default: ()=>{return{}}},
97
+ /**
98
+ * 回调函数,正常下载,duration不变的情况下只触发一次。
99
+ */
100
+ onProgress: {type: Function, default: ()=>{return{}}},
101
+ /**
102
+ * 回调函数,视频准备好后触发。
103
+ */
104
+ onLoadedMetaData: {type: Function, default: ()=>{return{}}},
105
+ /**
106
+ * 回调函数,视频准备好后触发,这个时候可以正常seek。
107
+ */
108
+ onLoad: {type: Function, default: ()=>{return{}}},
109
+ /**
110
+ * 回调函数,视频准备好后触发,这个时候可以获取duration。
111
+ */
112
+ onDurationChange: {type: Function, default: ()=>{return{}}},
113
+ /**
114
+ * 回调函数,视频准备好后,seek(修改currentTime)会出发此事件。
115
+ */
116
+ onSeeking: {type: Function, default: ()=>{return{}}},
117
+ /**
118
+ * 回调函数,seek完成后触发此事件。
119
+ */
120
+ onSeeked: {type: Function, default: ()=>{return{}}},
121
+ /**
122
+ * 回调函数,缓冲时触发。
123
+ */
124
+ onStalled: {type: Function, default: ()=>{return{}}},
125
+ /**
126
+ * 回调函数,正常播放后触发。
127
+ */
128
+ onPlaying: {type: Function, default: ()=>{return{}}},
129
+ /**
130
+ * 回调函数,正常显示后触发此事件。
131
+ */
132
+ onCanPlay: {type: Function, default: ()=>{return{}}},
133
+ /**
134
+ * 回调函数,音频失去焦点后触发此事件,可能会导致pause(点播)或者离开频道(直播)。
135
+ */
136
+ onAudioFocusLoss: {type: Function, default: ()=>{return{}}},
137
+ /**
138
+ * 回调函数,音频获取焦点后触发此事件,可能会触发resume(点播)或者加入频道(直播)。
139
+ */
140
+ onAudioFocusGain: {type: Function, default: ()=>{return{}}},
141
+ /**
142
+ * 回调函数,直播进入时移状态时,触发此事件。
143
+ */
144
+ onTimeShift: {type: Function, default: ()=>{return{}}},
145
+ /**
146
+ * 回调函数,直播进入时移状态时,成功播放触发此事件。
147
+ */
148
+ onTimeShifted: {type: Function, default: ()=>{return{}}},
149
+ /**
150
+ * 回调函数,时移回到直播状态,触发此事件。
151
+ */
152
+ onBackLive: {type: Function, default: ()=>{return{}}},
153
+ /**
154
+ * 回调函数,时移回到直播状态时,成功播放触发此事件。
155
+ */
156
+ onBackLived: {type: Function, default: ()=>{return{}}},
157
+ /**
158
+ * 回调函数,当流播放错误时,重试的时候发送此事件,用于上报log使用。
159
+ */
160
+ onStreamChanged: {type: Function, default: ()=>{return{}}},
161
+ /**
162
+ * 回调函数,当短视频修改播放地址,真正执行修改动作时,触发此事件。
163
+ */
164
+ onChangeUrlComplete: {type: Function, default: ()=>{return {}}},
165
+ /**
166
+ * 回调函数,当短视频修改播放地址,开始起播时,触发此事件。
167
+ */
168
+ onChangeUrlRenderStart: {type: Function, default: ()=>{return {}}},
169
+ /**
170
+ * 回调函数,当短视频修改播放地址,开始起播时,触发此事件。
171
+ */
172
+ onSizeChangeError: {type: Function, default: ()=>{return {}}},
173
+ /**
174
+ * 属性,Object类型,设置窗口属性,同其他组件的style设置。
175
+ */
176
+ style: {type: Object, default: ()=>{return{}}},
177
+ /**
178
+ * 属性,Boolean类型,活跃状态,当多个JsvPlayer组件指向一个video对象时,只能有一个处于活跃状态。
179
+ * 视频显示在活跃JsvPlayer设置的显示区域内,事件通知也只会送给活跃的JsvPlayer组件注册的回调函数。
180
+ */
181
+ active:{type: Boolean, default: true},
330
182
 
331
- setup() {
332
- return {
333
- video: null,
334
- holeId: "",
335
- };
336
- },
183
+ /**
184
+ * 属性,int类型,设置圆角属性。
185
+ */
186
+ cornerRadius: {type: Number, default: 0},
337
187
 
338
- data() {
339
- return {
340
- holeStyle: {},
341
- };
342
- },
343
- created() {},
344
- mounted() {
345
- logDebug("JsvPlayer:", this.style);
188
+ oversize: {type: Number, default: 0},
189
+ },
190
+ components: {
191
+ JsvNativeSharedDiv
192
+ },
193
+ watch: {
194
+ active(newValue) {
195
+ logDebug("active newValue: "+newValue);
196
+ if(this.video && this.playerType !== 3){
197
+ if(newValue){
198
+ this.registerEvent();
199
+ this.video.setHoleID(this.holeId);
200
+ this.holeStyle = {
201
+ left: 0, top: 0,
202
+ width: this.style.width, height: this.style.height
203
+ };
204
+ }else{
205
+ this.holeStyle = {
206
+ left: 0, top: 0,
207
+ width: 0, height: 0
208
+ };
209
+ }
210
+ }
211
+ },
212
+ style(newValue){
213
+ logDebug("holeStyle newValue: left="+newValue.left+", top="+newValue.top+", width="+newValue.width+", height="+newValue.height);
214
+ if(this.active && this.playerType !== 3){
215
+ this.holeStyle = {
216
+ left: 0, top: 0,
217
+ width:newValue.width, height:newValue.height
218
+ };
219
+ }
220
+ },
221
+ keepLastFrame(newValue){
222
+ logDebug("keepLastFrame newValue: "+newValue);
223
+ if(this.video && this.active){
224
+ this.video.keepLastFrame = this.keepLastFrame;
225
+ }
226
+ }
227
+ },
346
228
 
347
- let key = "Jsv_" + Math.floor(Math.random() * 10000);
348
- if (this.playerKey) {
349
- key = this.playerKey;
350
- }
351
- logDebug("player key:" + key);
229
+ setup(){
230
+ return {
231
+ video: null,
232
+ holeId: "",
233
+ };
234
+ },
352
235
 
353
- let player_type = 2;
354
- if (this.playerType) player_type = this.playerType;
236
+ data() {
237
+ return {
238
+ holeStyle: {},
239
+ };
240
+ },
241
+ created() {
242
+ },
243
+ mounted() {
244
+ logDebug("JsvPlayer:",this.style)
245
+
246
+ let key = "Jsv_" + Math.floor(Math.random() * 10000);
247
+ if(this.playerKey){
248
+ key = this.playerKey;
249
+ }
250
+ logDebug("player key:"+key)
355
251
 
356
- let background = true;
357
- if (!this.background) background = this.background;
252
+ let player_type = 2;
253
+ if(this.playerType)
254
+ player_type = this.playerType;
358
255
 
359
- logDebug("JsvPlayer background:" + background);
256
+ let background = true;
257
+ if(!this.background)
258
+ background = this.background;
360
259
 
361
- const designMap = window.Forge.DesignMap();
362
- logDebug("JsvPlayer:", this.holeId);
260
+ logDebug("JsvPlayer background:"+background)
363
261
 
364
- this.video = findMediaObjectByKey(key);
365
- let first_create = true;
262
+ const designMap = window.Forge.DesignMap();
263
+ logDebug("JsvPlayer:", this.holeId)
366
264
 
367
- if (!this.video) {
368
- if (player_type === 3) {
369
- this.video = new JsvMediaAudio(key, designMap.width);
370
- } else {
371
- this.video = new JsvMediaVideo(
372
- this.holeId,
373
- this.windowMode,
374
- player_type,
375
- key,
376
- background,
377
- designMap.width,
378
- this.decodeType
379
- );
380
- }
381
- } else {
382
- this.video.setRef();
383
- first_create = false;
384
- }
265
+ this.video = findMediaObjectByKey(key);
266
+ let first_create = true;
385
267
 
386
- if (this.video != null) {
387
- if (this.active) {
388
- this.registerEvent();
268
+ if(!this.video){
269
+ if(player_type === 3){
270
+ this.video = new JsvMediaAudio(key, designMap.width);
271
+ }else{
272
+ this.video = new JsvMediaVideo(this.holeId, this.windowMode, player_type, key, background, designMap.width, this.decodeType);
273
+ }
274
+ }else{
275
+ this.video.setRef();
276
+ first_create = false;
277
+ }
389
278
 
390
- //if(first_create){
391
- if (this.src && this.src !== "") this.video.src = this.src;
279
+ if(this.video != null){
280
+ if(this.active){
281
+ this.registerEvent();
392
282
 
393
- if (this.currentTime !== 0) this.video.currentTime = this.currentTime;
283
+ //if(first_create){
284
+ if(this.src && this.src !== "")
285
+ this.video.src = this.src;
286
+
287
+ if(this.currentTime !== 0)
288
+ this.video.currentTime = this.currentTime;
394
289
 
395
- if (this.autoplay) {
396
- this.video.autoplay = this.autoplay;
397
- }
290
+ if(this.autoplay){
291
+ this.video.autoplay = this.autoplay;
292
+ }
398
293
 
399
- if (this.muted) {
400
- this.video.muted = this.muted;
401
- }
294
+ if(this.muted){
295
+ this.video.muted = this.muted;
296
+ }
402
297
 
403
- if (this.loop) {
404
- this.video.loop = this.loop;
405
- }
298
+ if(this.loop){
299
+ this.video.loop = this.loop;
300
+ }
406
301
 
407
- if (!this.keepLastFrame) {
408
- this.video.keepLastFrame = this.keepLastFrame;
409
- }
302
+ if(!this.keepLastFrame){
303
+ this.video.keepLastFrame = this.keepLastFrame;
304
+ }
410
305
 
411
- if (this.videoAspectRatio !== "origin") {
412
- this.video.videoAspectRatio = this.videoAspectRatio;
413
- }
306
+ if(this.videoAspectRatio !== "origin"){
307
+ this.video.videoAspectRatio = this.videoAspectRatio;
308
+ }
414
309
 
415
- if (this.chromaKey && this.chromaKey !== "") {
416
- this.video.setChromaKey(this.chromaKey);
417
- }
418
- //}else{
419
- if (!first_create) {
420
- this.video.setHoleID(this.holeId);
421
- if (this.playerType !== 3) {
422
- this.holeStyle = {
423
- left: 0,
424
- top: 0,
425
- width: this.style.width,
426
- height: this.style.height,
427
- };
428
- }
429
- }
430
- }
310
+ if(this.chromaKey && this.chromaKey !== ""){
311
+ this.video.setChromaKey(this.chromaKey)
312
+ }
313
+ //}else{
314
+ if(!first_create){
315
+ this.video.setHoleID(this.holeId);
316
+ if(this.playerType !== 3){
317
+ this.holeStyle = {
318
+ left: 0, top: 0,
319
+ width: this.style.width, height: this.style.height
320
+ };
321
+ }
322
+ }
323
+ }
431
324
 
432
- this.onRef?.(this.video);
433
- }
434
- },
325
+ this.onRef?.(this.video)
326
+ }
327
+ },
435
328
 
436
- unmounted() {
437
- if (this.video != null) {
438
- this.video.releasePlayer();
329
+ beforeUnmount(){
330
+ if(this.video != null){
331
+ this.video.releasePlayer();
439
332
 
440
- this.onRef?.(null);
441
- }
442
- },
333
+ this.onRef?.(null)
334
+ }
335
+ },
443
336
 
444
- methods: {
445
- getHoleId(id) {
446
- logDebug("getHoleId:", id);
447
- this.holeId = id;
448
- },
449
- registerEvent() {
450
- if (this.video && this.active) {
451
- this.video.addEventListener("end", this.onEnded);
452
- this.video.addEventListener("error", this.onError);
453
- //this.video.addEventListener("abort", this.onAbort);
454
- this.video.addEventListener("timeupdate", this.onTimeUpdate);
455
- this.video.addEventListener("loadstart", () => {
456
- logDebug("JsvPlayer received loadstart event.");
457
- if (this.playerType !== 3) {
458
- this.holeStyle = {
459
- left: 0,
460
- top: 0,
461
- width: this.style.width,
462
- height: this.style.height,
463
- };
464
- }
465
- this.onLoadStart();
466
- });
467
- this.video.addEventListener("canplaythrough", this.onCanPlayThrough);
468
- this.video.addEventListener("progress", this.onProgress);
469
- this.video.addEventListener("loadedmetadata", this.onLoadedMetaData);
470
- this.video.addEventListener("load", this.onLoad);
471
- this.video.addEventListener("durationchange", this.onDurationChange);
472
- this.video.addEventListener("seeking", this.onSeeking);
473
- this.video.addEventListener("seeked", this.onSeeked);
474
- this.video.addEventListener("stalled", this.onStalled);
475
- this.video.addEventListener("playing", this.onPlaying);
476
- this.video.addEventListener("canplay", this.onCanPlay);
477
- this.video.addEventListener("audiofocusloss", this.onAudioFocusLoss);
478
- this.video.addEventListener("audiofocusgain", this.onAudioFocusGain);
479
- this.video.addEventListener("timeshift", this.onTimeShift);
480
- this.video.addEventListener("timeshifted", this.onTimeShifted);
481
- this.video.addEventListener("backlive", this.onBackLive);
482
- this.video.addEventListener("backlived", this.onBackLived);
483
- }
484
- },
485
- },
486
- };
337
+ methods: {
338
+ getHoleId(id){
339
+ logDebug("getHoleId:", id)
340
+ this.holeId = id;
341
+ },
342
+ registerEvent(){
343
+ if(this.video && this.active){
344
+ this.video.addEventListener("end", this.onEnded);
345
+ this.video.addEventListener("error", this.onError);
346
+ //this.video.addEventListener("abort", this.onAbort);
347
+ this.video.addEventListener("timeupdate", this.onTimeUpdate);
348
+ this.video.addEventListener("loadstart", () => {
349
+ logDebug("JsvPlayer received loadstart event.");
350
+ if(this.playerType !== 3){
351
+ this.holeStyle = {
352
+ left: 0, top: 0,
353
+ width:this.style.width, height:this.style.height
354
+ };
355
+ }
356
+ this.onLoadStart();
357
+ });
358
+ this.video.addEventListener("canplaythrough", this.onCanPlayThrough);
359
+ this.video.addEventListener("progress", this.onProgress);
360
+ this.video.addEventListener("loadedmetadata", this.onLoadedMetaData);
361
+ this.video.addEventListener("load", this.onLoad);
362
+ this.video.addEventListener("durationchange", this.onDurationChange);
363
+ this.video.addEventListener("seeking", this.onSeeking);
364
+ this.video.addEventListener("seeked", this.onSeeked);
365
+ this.video.addEventListener("stalled", this.onStalled);
366
+ this.video.addEventListener("playing", this.onPlaying);
367
+ this.video.addEventListener("canplay", this.onCanPlay);
368
+ this.video.addEventListener("audiofocusloss", this.onAudioFocusLoss);
369
+ this.video.addEventListener("audiofocusgain", this.onAudioFocusGain);
370
+ this.video.addEventListener("timeshift", this.onTimeShift);
371
+ this.video.addEventListener("timeshifted", this.onTimeShifted);
372
+ this.video.addEventListener("backlive", this.onBackLive);
373
+ this.video.addEventListener("backlived", this.onBackLived);
374
+ this.video.addEventListener("streamchanged", this.onStreamChanged);
375
+ this.video.addEventListener("changeurlcomplete", this.onChangeUrlComplete);
376
+ this.video.addEventListener("changeurlrenderstart", this.onChangeUrlRenderStart);
377
+ this.video.addEventListener("sizechangeerror", this.onSizeChangeError);
378
+ }
379
+ }
380
+ },
381
+ }
487
382
 
488
383
  //export default JsvPlayer;
489
384
  </script>
490
385
 
491
386
  <template>
492
- <div v-if="playerType != 3" :style="style" backgroundColor="rgba(0,0,0,1)">
493
- <JsvNativeSharedDiv
494
- :style="holeStyle"
495
- :getId="getHoleId"
496
- :corner="corner"
497
- ></JsvNativeSharedDiv>
387
+ <div
388
+ v-if="playerType!=3"
389
+ :style="style">
390
+ <JsvNativeSharedDiv :style="holeStyle" :getId="getHoleId" :corner="cornerRadius" :frontLayer="!this.background" :oversize="oversize"></JsvNativeSharedDiv>
498
391
  </div>
499
392
  </template>
500
393
 
501
- <style scoped></style>
394
+ <style scoped>
395
+
396
+ </style>