@shijiu/jsview-vue 2.2.373 → 2.3.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 (336) hide show
  1. package/bin/jsview-vue-common.mjs +1 -1
  2. package/bin/jsview-vue.mjs +7678 -7306
  3. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
  4. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
  5. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
  6. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusManager.d.ts +0 -4
  7. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +8 -0
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +5 -0
  10. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
  11. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +24 -14
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +179 -0
  13. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +9 -6
  14. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
  15. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +3 -4
  16. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
  17. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
  18. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
  19. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  20. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
  21. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
  22. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
  23. package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  24. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
  25. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
  26. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
  27. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
  28. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
  29. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
  30. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
  31. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
  32. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
  33. package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
  34. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
  35. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
  36. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
  37. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
  38. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
  39. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
  40. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
  41. package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
  42. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
  43. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
  44. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
  45. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/version.d.ts +0 -4
  46. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
  47. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +5 -9
  48. package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
  49. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +5 -29
  50. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
  51. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
  52. package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
  53. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
  54. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
  55. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/version.d.ts +0 -4
  56. package/bin/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
  57. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
  58. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +596 -0
  59. package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  60. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
  61. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
  62. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
  63. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
  64. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
  65. package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  66. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
  67. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
  68. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
  69. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
  70. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
  71. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
  72. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
  73. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
  74. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
  75. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
  76. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
  77. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
  78. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
  79. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
  80. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
  81. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
  82. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +6 -8
  83. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
  84. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
  85. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
  86. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
  87. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
  88. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
  89. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
  90. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +20 -3
  91. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
  92. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +1 -23
  93. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
  94. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
  95. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
  96. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
  97. package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
  98. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -6
  99. package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +120 -0
  100. package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +144 -0
  101. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
  102. package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
  103. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
  104. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
  105. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
  106. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
  107. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +50 -0
  108. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
  109. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
  110. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +23 -0
  111. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
  112. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
  113. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
  114. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
  115. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
  116. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
  117. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
  118. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
  119. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
  120. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
  121. package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
  122. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
  123. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
  124. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
  125. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
  126. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +4 -8
  127. package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
  128. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
  129. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +6 -25
  130. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
  131. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +78 -0
  132. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
  133. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +1 -4
  134. package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
  135. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
  136. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
  137. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
  138. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
  139. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +12 -37
  140. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +6 -28
  141. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
  142. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
  143. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
  144. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
  145. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +1 -4
  146. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
  147. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
  148. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
  149. package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
  150. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +2 -6
  151. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
  152. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
  153. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
  154. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
  155. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
  156. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
  157. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
  158. package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
  159. package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
  160. package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
  161. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
  162. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
  163. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
  164. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
  165. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +12 -95
  166. package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
  167. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
  168. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
  169. package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
  170. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
  171. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +3 -17
  172. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +3 -18
  173. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
  174. package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
  175. package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
  176. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
  177. package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
  178. package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  179. package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
  180. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
  181. package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
  182. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
  183. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
  184. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
  185. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
  186. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
  187. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
  188. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
  189. package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +11 -0
  190. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
  191. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
  192. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
  193. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
  194. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
  195. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
  196. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
  197. package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  198. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +0 -39
  199. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
  200. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  201. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
  202. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
  203. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
  204. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
  205. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +0 -4
  206. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  207. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
  208. package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  209. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +9 -34
  210. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +9 -13
  211. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +4 -6
  212. package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
  213. package/index.d.ts +2 -2
  214. package/package.json +1 -1
  215. package/tools/jsview-vue-build.mjs +3 -2
  216. package/tsconfig.json +27 -0
  217. package/utils/JsViewEngineWidget/CheckType.js +3 -3
  218. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +25 -6
  219. package/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue +22 -0
  220. package/utils/JsViewEngineWidget/MetroWidget/DebugTools.ts +37 -0
  221. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +42 -7
  222. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +62 -10
  223. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +177 -77
  224. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +30 -0
  225. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
  226. package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
  227. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
  228. package/utils/JsViewPlugin/JsvPlayer/AckEventDefine.ts +82 -0
  229. package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +49 -31
  230. package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
  231. package/utils/JsViewVueTools/JsvRuntimeBridge.js +82 -73
  232. package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
  233. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -2
  234. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +1 -1
  235. package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
  236. package/utils/JsViewVueTools/index.js +1 -2
  237. package/utils/JsViewVueWidget/Jsv3dDiv.vue +85 -0
  238. package/utils/JsViewVueWidget/Jsv3dStage.vue +50 -0
  239. package/utils/JsViewVueWidget/JsvApic/JsvApic/index.js +1 -8
  240. package/utils/JsViewVueWidget/JsvApic/JsvApic2/index.js +1 -8
  241. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +1 -1
  242. package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +151 -0
  243. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +11 -16
  244. package/utils/JsViewVueWidget/JsvFlexCell/index.js +1 -0
  245. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
  246. package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
  247. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +8 -0
  248. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +48 -15
  249. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
  250. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
  251. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
  252. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -57
  253. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +57 -71
  254. package/utils/JsViewVueWidget/JsvPosterDiv.vue +15 -8
  255. package/utils/JsViewVueWidget/JsvPosterImage.vue +12 -3
  256. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
  257. package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
  258. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +3 -2
  259. package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
  260. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +116 -75
  261. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
  262. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +27 -32
  263. package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
  264. package/utils/JsViewVueWidget/index.js +4 -2
  265. package/bin/browser/BrowserApic.vue.mjs +0 -114
  266. package/bin/browser/BrowserApic2.vue.mjs +0 -108
  267. package/bin/browser/BrowserApicLib.mjs +0 -431
  268. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
  269. package/bin/browser/BrowserPreload.vue.mjs +0 -139
  270. package/bin/browser/BrowserQrcode.vue.mjs +0 -176
  271. package/bin/browser/BrowserSpray.vue.mjs +0 -56
  272. package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
  273. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
  274. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
  275. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
  276. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
  277. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
  278. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
  279. package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +0 -6
  280. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
  281. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
  282. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
  283. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
  284. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
  285. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
  286. package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
  287. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
  288. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
  289. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
  290. package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
  291. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
  292. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
  293. package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
  294. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
  295. package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
  296. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
  297. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
  298. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
  299. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
  300. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
  301. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
  302. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
  303. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
  304. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
  305. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
  306. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
  307. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
  308. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
  309. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
  310. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
  311. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
  312. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
  313. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
  314. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
  315. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
  316. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
  317. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
  318. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
  319. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
  320. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
  321. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
  322. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
  323. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
  324. package/tools/config/tsconfig.json +0 -16
  325. package/utils/JsViewVueTools/JsvDemoTester.js +0 -81
  326. package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
  327. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
  328. package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
  329. package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
  330. package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
  331. package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
  332. package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
  333. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
  334. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
  335. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
  336. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
@@ -1,431 +0,0 @@
1
- import { a as LoopToolBase, L as LoopType, A as ApicEndState } from '../jsview-vue-common.mjs';
2
-
3
- /*
4
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.js}
5
- */
6
- class PartLoopTool extends LoopToolBase {
7
- constructor(info_list) {
8
- super();
9
- this.mLoopPeriod = 0;
10
- this.mCurLoopStartFrame = 0;
11
- this.mCurLoopEndFrame = 0;
12
- this.mCurLoopNum = 0;
13
- this.mCurLoopCount = 0;
14
- if (info_list == null) {
15
- console.error("PartLoopTool info is null.");
16
- return;
17
- }
18
- this.mLoopInfo = info_list;
19
- }
20
- getNextIndex(curIndex) {
21
- if (!this.mValid) {
22
- return -1;
23
- }
24
- let next_index = -1;
25
- let loop_period_num = this.mLoopInfo.length;
26
- if (this.mLoopPeriod < loop_period_num) {
27
- if (curIndex < this.mCurLoopEndFrame) {
28
- next_index = curIndex + 1;
29
- } else {
30
- if (this.mCurLoopNum <= 0) {
31
- next_index = this.mCurLoopStartFrame;
32
- } else {
33
- this.mCurLoopCount++;
34
- if (this.mCurLoopCount >= this.mCurLoopNum) {
35
- this.mLoopPeriod++;
36
- if (this.mLoopPeriod < loop_period_num) {
37
- this.mValid = this.updateLoop();
38
- if (this.mValid) {
39
- this.mCurLoopCount = 0;
40
- next_index = this.mCurLoopStartFrame;
41
- }
42
- } else {
43
- }
44
- } else {
45
- next_index = this.mCurLoopStartFrame;
46
- }
47
- }
48
- }
49
- } else {
50
- }
51
- return next_index;
52
- }
53
- updateLoop() {
54
- let loop = this.mLoopInfo[this.mLoopPeriod];
55
- this.mCurLoopNum = loop[0];
56
- this.mCurLoopStartFrame = loop[1];
57
- this.mCurLoopEndFrame = loop[2];
58
- if (isNaN(this.mCurLoopNum) || isNaN(this.mCurLoopStartFrame) || isNaN(this.mCurLoopEndFrame) || this.mCurLoopStartFrame >= this.mTotalFrameNum || this.mCurLoopEndFrame >= this.mTotalFrameNum || this.mCurLoopStartFrame >= this.mCurLoopEndFrame) {
59
- console.error("data error, frame number out of size.", this.mLoopInfo);
60
- return false;
61
- } else {
62
- return true;
63
- }
64
- }
65
- setApicInfo(frameNum, loopNum) {
66
- this.mTotalFrameNum = frameNum;
67
- this.mValid = this.updateLoop();
68
- if (!this.mValid) {
69
- console.log("PartLoopTool init loop info error." + this.mLoopInfo.toString());
70
- } else {
71
- this.mNextFrameIndex = this.mCurLoopStartFrame;
72
- }
73
- }
74
- }
75
-
76
- /*
77
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.js}
78
- */
79
- class NormalLoopTool extends LoopToolBase {
80
- constructor(loop_type, loop_num) {
81
- super();
82
- this.mLoopType = loop_type;
83
- this.mLoopNum = loop_num;
84
- this.mLoopCount = 0;
85
- }
86
- getNextIndex(curFrame) {
87
- if (!this.mValid) {
88
- return -1;
89
- }
90
- let next_index = -1;
91
- switch (this.mLoopType) {
92
- case LoopType.LOOP_DEFAULT:
93
- if (this.mLoopNum <= 0) {
94
- next_index = (curFrame + 1) % this.mTotalFrameNum;
95
- } else {
96
- if (curFrame == this.mTotalFrameNum - 1) {
97
- this.mLoopCount++;
98
- }
99
- next_index = this.mLoopCount >= this.mLoopNum ? -1 : (curFrame + 1) % this.mTotalFrameNum;
100
- }
101
- break;
102
- case LoopType.LOOP_INFINITE:
103
- next_index = (curFrame + 1) % this.mTotalFrameNum;
104
- break;
105
- case LoopType.LOOP_FINITE:
106
- if (curFrame == this.mTotalFrameNum - 1) {
107
- this.mLoopCount++;
108
- }
109
- next_index = this.mLoopCount >= this.mLoopNum ? -1 : (curFrame + 1) % this.mTotalFrameNum;
110
- break;
111
- default:
112
- }
113
- return next_index;
114
- }
115
- setApicInfo(frameNum, loopNum) {
116
- this.mTotalFrameNum = frameNum;
117
- this.mLoopNum = this.mLoopType == LoopType.LOOP_DEFAULT ? loopNum : this.mLoopNum;
118
- this.mNextFrameIndex = 0;
119
- this.mValid = true;
120
- }
121
- }
122
-
123
- /*
124
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.js}
125
- */
126
- class SingleLoopTool extends LoopToolBase {
127
- constructor(index) {
128
- super();
129
- this.mTargetIndex = index;
130
- }
131
- getNextIndex(curIndex) {
132
- return -1;
133
- }
134
- setApicInfo(frame_num, loop_num) {
135
- this.mTotalFrameNum = frame_num;
136
- this.mNextFrameIndex = this.mTargetIndex;
137
- }
138
- }
139
-
140
- /*
141
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.js}
142
- */
143
- class Viewer {
144
- constructor(apic_data, canvas, listener) {
145
- this._ApicData = apic_data;
146
- this._Canvas = canvas;
147
- this._Context = this._Canvas.getContext("2d");
148
- this._Listener = listener;
149
- this._TimeoutId = -1;
150
- this._EndState = ApicEndState.LAST_FRAME;
151
- this._CurrentIndex = -1;
152
- }
153
- _createLoopTool(loop_type, loop_info) {
154
- let loop_num = null;
155
- switch (loop_type) {
156
- case LoopType.LOOP_DEFAULT:
157
- case LoopType.LOOP_INFINITE:
158
- case LoopType.LOOP_FINITE:
159
- loop_num = loop_type == LoopType.LOOP_DEFAULT ? this._ApicData.LoopCount : loop_info[0][0];
160
- this._LoopTool = new NormalLoopTool(
161
- loop_type,
162
- loop_num
163
- );
164
- break;
165
- case LoopType.LOOP_PART:
166
- this._LoopTool = new PartLoopTool(
167
- loop_info,
168
- this._ApicData.FrameCount
169
- );
170
- break;
171
- case LoopType.LOOP_SINGLE:
172
- this._LoopTool = new SingleLoopTool(loop_info[0][1]);
173
- break;
174
- default:
175
- this._LoopTool = new NormalLoopTool(
176
- LoopType.LOOP_DEFAULT,
177
- -1
178
- );
179
- }
180
- this._LoopTool.setApicInfo(this._ApicData.FrameCount, this._ApicData.LoopCount);
181
- }
182
- stop(frameCount = -1) {
183
- clearTimeout(this._TimeoutId);
184
- if (frameCount >= 0 && this._CurrentIndex !== frameCount) {
185
- this._CurrentIndex = frameCount;
186
- this.renderFrame(frameCount);
187
- }
188
- if (this._Listener?.onend) {
189
- this._Listener.onend();
190
- }
191
- }
192
- play(loopType, loopInfo, endState = ApicEndState.LAST_FRAME) {
193
- this._EndState = endState;
194
- let lInfo;
195
- if (loopInfo instanceof Array) {
196
- lInfo = loopInfo;
197
- } else if (!isNaN(loopInfo)) {
198
- lInfo = [[loopInfo, 0, 0]];
199
- } else {
200
- lInfo = [[0, 0, 0]];
201
- }
202
- this._createLoopTool(loopType, lInfo);
203
- clearTimeout(this._TimeoutId);
204
- this.renderLoop();
205
- if (this._Listener?.onstart) {
206
- this._Listener.onstart();
207
- }
208
- }
209
- renderLoop() {
210
- if (this._LoopTool.hasNext()) {
211
- this._CurrentIndex = this._LoopTool.next();
212
- let duration = this.renderFrame(this._CurrentIndex);
213
- this._TimeoutId = setTimeout(() => {
214
- this.renderLoop();
215
- }, duration);
216
- } else {
217
- console.log("loop finished");
218
- if (this._EndState == ApicEndState.HIDE) {
219
- this._Context.clearRect(0, 0, this._Canvas.width, this._Canvas.height);
220
- }
221
- if (this._Listener?.onend) {
222
- this._Listener.onend();
223
- }
224
- }
225
- }
226
- renderFrame(frame_index) {
227
- return this._ApicData.toImage(frame_index, this._Canvas, this._Context);
228
- }
229
- }
230
-
231
- /*
232
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.js}
233
- */
234
- const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
235
- class ApicDataBase {
236
- constructor(arrayBuffer) {
237
- this.LoopCount = 0;
238
- this.FrameCount = 0;
239
- this.Width = 0;
240
- this.Height = 0;
241
- this._Canvas = renderDocument.createElement("canvas");
242
- this._Context = this._Canvas.getContext("2d");
243
- this._DecodedData = null;
244
- this.decode(arrayBuffer);
245
- }
246
- decode(arrayBuffer) {
247
- console.log("decode need override ", arrayBuffer);
248
- }
249
- toImage(frameIndex, canvas, canvasCtx) {
250
- console.log("toImage need override ", frameIndex, canvas, canvasCtx);
251
- }
252
- }
253
-
254
- /*
255
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.js}
256
- */
257
- class WebpData extends ApicDataBase {
258
- decode(array_buffer) {
259
- let webp_data = new Uint8Array(array_buffer);
260
- let webp_decoder = new window.WebPDecoder();
261
- let image_data = window.WebPRiffParser(webp_data, 0);
262
- let blend = false;
263
- let header = image_data["header"] ? image_data["header"] : null;
264
- let frames = image_data["frames"] ? image_data["frames"] : null;
265
- if (header) {
266
- this.LoopCount = header["loop_count"];
267
- header["loop_counter"] = header["loop_count"];
268
- this._Canvas.height = header["canvas_height"];
269
- this._Canvas.width = header["canvas_width"];
270
- this.Width = header["canvas_width"];
271
- this.Height = header["canvas_height"];
272
- for (let f = 0; f < frames.length; f++) {
273
- if (frames[f]["blend"] === 0) {
274
- blend = true;
275
- break;
276
- }
277
- }
278
- }
279
- this.FrameCount = frames.length;
280
- for (let f = 0; f < frames.length; f++) {
281
- let height = [0];
282
- let width = [0];
283
- let frame = frames[f];
284
- let rgba = webp_decoder.WebPDecodeRGBA(
285
- webp_data,
286
- frame["src_off"],
287
- frame["src_size"],
288
- width,
289
- height
290
- );
291
- frame["rgba"] = rgba;
292
- frame["imgwidth"] = width[0];
293
- frame["imgheight"] = height[0];
294
- let oldimagedata = [];
295
- if (!header) {
296
- this._Canvas.height = height[0];
297
- this._Canvas.width = width[0];
298
- } else {
299
- if (blend) {
300
- let oldimagedata_ = this._Context.getImageData(
301
- frame["offset_x"],
302
- frame["offset_y"],
303
- width[0],
304
- height[0]
305
- );
306
- for (let i = 0; i < width[0] * height[0] * 4; i++) {
307
- oldimagedata[i] = oldimagedata_.data[i];
308
- }
309
- }
310
- }
311
- let imagedata = this._Context.createImageData(width[0], height[0]);
312
- if (frames.length === 1 && typeof frame["blend"] === "undefined" || frame["blend"] === 1) {
313
- for (let i = 0; i < width[0] * height[0] * 4; i++)
314
- imagedata.data[i] = rgba[i];
315
- } else {
316
- for (let i = 0; i < width[0] * height[0] * 4; i += 4) {
317
- if (rgba[i + 3] > 0) {
318
- imagedata.data[i + 3] = rgba[i + 3];
319
- imagedata.data[i] = rgba[i];
320
- imagedata.data[i + 1] = rgba[i + 1];
321
- imagedata.data[i + 2] = rgba[i + 2];
322
- } else {
323
- imagedata.data[i + 3] = oldimagedata[i + 3];
324
- imagedata.data[i] = oldimagedata[i];
325
- imagedata.data[i + 1] = oldimagedata[i + 1];
326
- imagedata.data[i + 2] = oldimagedata[i + 2];
327
- }
328
- }
329
- }
330
- if (frames.length === 1) {
331
- this._Context.putImageData(imagedata, 0, 0);
332
- } else {
333
- this._Context.putImageData(
334
- imagedata,
335
- frame["offset_x"],
336
- frame["offset_y"]
337
- );
338
- }
339
- frame["frameData"] = frame["rgba"] ? header ? this._Context.getImageData(
340
- 0,
341
- 0,
342
- header["canvas_width"],
343
- header["canvas_height"]
344
- ).data : rgba : null;
345
- if (frame["dispose"] === 1) {
346
- this._Context.clearRect(
347
- frame["offset_x"],
348
- frame["offset_y"],
349
- width[0],
350
- height[0]
351
- );
352
- }
353
- }
354
- this._DecodedData = image_data;
355
- }
356
- toImage(frame_index, canvas, canvas_ctx) {
357
- let frame = this._DecodedData["frames"][frame_index];
358
- let width = this._DecodedData["header"] ? this._DecodedData["header"]["canvas_width"] : frame["imgwidth"];
359
- let height = this._DecodedData["header"] ? this._DecodedData["header"]["canvas_height"] : frame["imgheight"];
360
- canvas.width = width;
361
- canvas.height = height;
362
- let image_data = canvas_ctx.createImageData(width, height);
363
- let frame_data = frame["frameData"];
364
- image_data.data.set(frame_data);
365
- canvas_ctx.putImageData(image_data, 0, 0);
366
- return frame["duration"];
367
- }
368
- }
369
-
370
- /*
371
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.js}
372
- */
373
- class GifData extends ApicDataBase {
374
- decode(array_buffer) {
375
- const gif = window.ApicTools.parseGIF(array_buffer);
376
- this._DecodedData = window.ApicTools.decompressFrames(gif, true);
377
- this.LoopCount = 0;
378
- this.FrameCount = this._DecodedData.length;
379
- this.Width = this._DecodedData[0].dims.width;
380
- this.Height = this._DecodedData[0].dims.height;
381
- for (let i = 0; i < this._DecodedData.length; i++) {
382
- let frame = this._DecodedData[i];
383
- if (frame["dims"]["width"] !== this.Width || frame["dims"]["height"] !== this.Height) {
384
- let pre_frame_data = this._DecodedData[i - 1]["frameData"];
385
- let left = frame["dims"]["left"];
386
- let top = frame["dims"]["top"];
387
- let width = frame["dims"]["width"];
388
- let height = frame["dims"]["height"];
389
- let patch_data = frame["patch"];
390
- let image_data = new Uint8ClampedArray(this.Width * this.Height * 4);
391
- for (let x = 0; x < this.Width; x++) {
392
- for (let y = 0; y < this.Height; y++) {
393
- let patch_x = x - left;
394
- let patch_y = y - top;
395
- let pixel_index = y * this.Width + x;
396
- let patch_pixel_index = patch_y * width + patch_x;
397
- if (x >= left && x < left + width && y >= top && y < top + height && patch_data[patch_pixel_index * 4 + 3] > 0) {
398
- image_data[pixel_index * 4] = patch_data[patch_pixel_index * 4];
399
- image_data[pixel_index * 4 + 1] = patch_data[patch_pixel_index * 4 + 1];
400
- image_data[pixel_index * 4 + 2] = patch_data[patch_pixel_index * 4 + 2];
401
- image_data[pixel_index * 4 + 3] = patch_data[patch_pixel_index * 4 + 3];
402
- } else {
403
- image_data[pixel_index * 4] = pre_frame_data[pixel_index * 4];
404
- image_data[pixel_index * 4 + 1] = pre_frame_data[pixel_index * 4 + 1];
405
- image_data[pixel_index * 4 + 2] = pre_frame_data[pixel_index * 4 + 2];
406
- image_data[pixel_index * 4 + 3] = pre_frame_data[pixel_index * 4 + 3];
407
- }
408
- }
409
- }
410
- frame["frameData"] = image_data;
411
- } else {
412
- frame["frameData"] = frame["patch"];
413
- }
414
- }
415
- }
416
- toImage(frame_index, canvas, canvas_ctx) {
417
- canvas.width = this.Width;
418
- canvas.height = this.Height;
419
- let frame = this._DecodedData[frame_index];
420
- let image_data = canvas_ctx.createImageData(this.Width, this.Height);
421
- image_data.data.set(frame["frameData"]);
422
- canvas_ctx.putImageData(image_data, 0, 0);
423
- return frame["delay"];
424
- }
425
- }
426
-
427
- /*
428
- + @file {@link file://./../../../../../utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.js}
429
- */
430
-
431
- export { GifData as G, Viewer as V, WebpData as W };
@@ -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 };
@@ -1,139 +0,0 @@
1
- import { reactive, watchEffect, onBeforeUnmount, openBlock, createElementBlock, createCommentVNode } from 'vue';
2
-
3
- /*
4
- + @file {@link file://./../../../../utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue}
5
- */
6
- const _sfc_main = {
7
- __name: "BrowserPreload",
8
- props: {
9
- preloadList: Array,
10
- downloadList: Array,
11
- onPreloadDone: Function,
12
- // 预加载完成回调
13
- onDownloadDone: Function,
14
- // 预下载完成回调
15
- onPreloading: Function
16
- },
17
- setup(__props) {
18
- const props = __props;
19
- const loadViewList = reactive({
20
- preloadViewList: [],
21
- downloadViewList: []
22
- });
23
- let preloadIsNullNum = 0;
24
- let downloadIsNullNum = 0;
25
- let preloadResultMap = {};
26
- let downloadResultMap = {};
27
- let downloadUrlList = [];
28
- let unmountStatus = { unmount: false };
29
- let preloadStateList = null;
30
- let downloadStateList = null;
31
- const getPreloadList = () => {
32
- preloadStateList = new Array(props.preloadList.length).fill(false);
33
- let preloadListData = props.preloadList;
34
- for (let i = 0; i < preloadListData.length; i++) {
35
- if (!preloadListData[i] || !preloadListData[i].url) {
36
- preloadListData.splice(i, 1);
37
- preloadIsNullNum++;
38
- i--;
39
- }
40
- }
41
- loadViewList.preloadViewList = preloadListData.map((item, index) => {
42
- if (!item || !item.url) {
43
- preloadStateList[index] = true;
44
- return null;
45
- }
46
- const image = new Image();
47
- const unmount_track = unmountStatus;
48
- image.onload = () => {
49
- if (unmount_track.unmount) {
50
- return;
51
- }
52
- preloadResultMap[item.url] = {
53
- width: image.width,
54
- height: image.height
55
- };
56
- preloadStateList[index] = true;
57
- let loadedNum = 0;
58
- preloadStateList.map((item2) => {
59
- loadedNum += item2 ? 1 : 0;
60
- });
61
- props.onPreloading?.(loadedNum / preloadStateList.length);
62
- if (props.onPreloadDone && loadedNum + preloadIsNullNum == preloadStateList.length) {
63
- props.onPreloadDone?.(preloadResultMap);
64
- }
65
- };
66
- image.src = item.url;
67
- });
68
- };
69
- const getDownloadList = () => {
70
- downloadStateList = new Array(props.downloadList.length).fill(false);
71
- downloadUrlList = new Array(downloadStateList.length);
72
- let downloadListData = props.downloadList;
73
- for (let i = 0; i < downloadListData.length; i++) {
74
- if (!downloadListData[i] || !downloadListData[i].url) {
75
- downloadListData.splice(i, 1);
76
- downloadUrlList[i] = "invalid";
77
- downloadIsNullNum++;
78
- i--;
79
- }
80
- }
81
- loadViewList.downloadViewList = downloadListData.map((item, index) => {
82
- if (!item || !item.url) {
83
- downloadStateList[index] = true;
84
- downloadUrlList[index] = "invalid";
85
- return null;
86
- }
87
- const image = new Image();
88
- const unmount_track = unmountStatus;
89
- image.onload = () => {
90
- if (unmount_track.unmount) {
91
- return;
92
- }
93
- downloadStateList[index] = true;
94
- downloadUrlList[index] = item.url;
95
- downloadResultMap[item.url] = {
96
- width: image.width,
97
- height: image.height
98
- };
99
- console.log(`pre download succeed ${item.url}`);
100
- if (props.onDownloadDone) {
101
- let downloadNum = 0;
102
- downloadStateList.map((item2) => {
103
- downloadNum += item2 ? 1 : 0;
104
- });
105
- if (downloadNum + downloadIsNullNum == downloadStateList.length) {
106
- props.onDownloadDone?.(downloadUrlList, downloadResultMap);
107
- }
108
- }
109
- };
110
- image.src = item.url;
111
- });
112
- };
113
- watchEffect(() => {
114
- if (props.preloadList) {
115
- console.log("JsvPreload: update preloadList");
116
- preloadIsNullNum = 0;
117
- preloadResultMap = {};
118
- getPreloadList();
119
- }
120
- });
121
- watchEffect(() => {
122
- if (props.downloadList) {
123
- console.log("JsvPreload: update downloadList");
124
- downloadIsNullNum = 0;
125
- downloadResultMap = {};
126
- downloadUrlList = [];
127
- getDownloadList();
128
- }
129
- });
130
- onBeforeUnmount(() => {
131
- unmountStatus.unmount = true;
132
- });
133
- return (_ctx, _cache) => {
134
- return !__props.preloadList ? (openBlock(), createElementBlock("div", { key: 0 })) : createCommentVNode("", true);
135
- };
136
- }
137
- };
138
-
139
- export { _sfc_main as default };