@shijiu/jsview-vue 2.3.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 (451) hide show
  1. package/bin/browser/BrowserAudio.vue.mjs +4 -1
  2. package/bin/browser/BrowserJsvLatex.vue.mjs +9 -90
  3. package/bin/jsview-vue.mjs +13913 -8048
  4. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +39 -3
  5. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
  6. package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +225 -0
  7. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +225 -0
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +5 -0
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +25 -2
  10. package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
  11. package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +28 -4
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
  13. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
  14. package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
  15. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +70 -0
  16. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
  17. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
  18. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
  19. package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +5 -4
  20. package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
  21. package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +12 -4
  22. package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
  23. package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +27 -14
  24. package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
  25. package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
  26. package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
  27. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +3 -0
  28. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
  29. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +4 -1
  30. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +29 -2
  31. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +107 -4
  32. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
  33. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +94 -18
  34. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  35. package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +24 -23
  36. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +77 -20
  37. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +77 -20
  38. package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
  39. package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
  40. package/bin/types/utils/JsViewVueTools/ForgeHandles.d.ts +1 -0
  41. package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
  42. package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +44 -1
  43. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
  44. package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
  45. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
  46. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
  47. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
  48. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +5 -3
  49. package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +88 -25
  50. package/bin/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +2 -0
  51. package/bin/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +4 -0
  52. package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
  53. package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
  54. package/bin/types/utils/JsViewVueTools/index.d.ts +3 -1
  55. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +12 -22
  56. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +12 -22
  57. package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +11 -0
  58. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +101 -0
  59. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +61 -0
  60. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +58 -0
  61. package/bin/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +1 -0
  62. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +3 -1
  63. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
  64. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +2 -1
  65. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  66. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +2 -1
  67. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +3 -1
  68. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +55 -12
  69. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +178 -35
  70. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +119 -17
  71. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +9 -3
  72. package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
  73. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +22 -1
  74. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
  75. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +2 -0
  76. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +5 -2
  77. package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +1 -1
  78. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +39 -1
  79. package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +1 -0
  80. package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +72 -0
  81. package/bin/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +26 -0
  82. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +112 -0
  83. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +142 -0
  84. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +3 -1
  85. package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +15 -3
  86. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +22 -96
  87. package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +6 -0
  88. package/bin/types/utils/JsViewVueWidget/{JsvPosterDiv.vue.d.ts → TypesDiv/JsvPosterDiv.vue.d.ts} +9 -0
  89. package/bin/types/utils/JsViewVueWidget/{JsvPosterImage.vue.d.ts → TypesDiv/JsvPosterImage.vue.d.ts} +15 -3
  90. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +72 -0
  91. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +90 -0
  92. package/bin/types/utils/JsViewVueWidget/index.d.ts +8 -4
  93. package/dist/types/utils/JsViewEngineWidget/CheckType.d.ts +7 -0
  94. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +106 -0
  95. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +128 -0
  96. package/dist/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +25 -0
  97. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +23 -0
  98. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +12 -0
  99. package/dist/types/utils/JsViewEngineWidget/MetroWidget/DebugTools.d.ts +9 -0
  100. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +16 -0
  101. package/dist/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +412 -0
  102. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +751 -0
  103. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.d.ts +9 -0
  104. package/dist/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +82 -0
  105. package/dist/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +31 -0
  106. package/dist/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +80 -0
  107. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Slide.d.ts +25 -0
  108. package/dist/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +52 -0
  109. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +69 -0
  110. package/dist/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  111. package/dist/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +6 -0
  112. package/dist/types/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +20 -0
  113. package/dist/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +21 -0
  114. package/dist/types/utils/JsViewEngineWidget/RangeModel.d.ts +166 -0
  115. package/dist/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  116. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +74 -0
  117. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +28 -0
  118. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +23 -0
  119. package/dist/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +46 -0
  120. package/dist/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +42 -0
  121. package/dist/types/utils/JsViewEngineWidget/TemplateParser/Fence.d.ts +62 -0
  122. package/dist/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +21 -0
  123. package/dist/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +103 -0
  124. package/dist/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +28 -0
  125. package/dist/types/utils/JsViewEngineWidget/TemplateParser/index.d.ts +8 -0
  126. package/dist/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +160 -0
  127. package/dist/types/utils/JsViewEngineWidget/index.d.ts +21 -0
  128. package/dist/types/utils/JsViewPlugin/JsvAccount/JsvAccount.d.ts +46 -0
  129. package/dist/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +6 -0
  130. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +22 -0
  131. package/dist/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +212 -0
  132. package/dist/types/utils/JsViewPlugin/JsvAudio/CheckType.d.ts +6 -0
  133. package/dist/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +17 -0
  134. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +22 -0
  135. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +12 -0
  136. package/dist/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +6 -0
  137. package/dist/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +5 -0
  138. package/dist/types/utils/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +9 -0
  139. package/dist/types/utils/JsViewPlugin/JsvAudio/index.d.ts +7 -0
  140. package/dist/types/utils/JsViewPlugin/JsvAudio/version.d.mts +14 -0
  141. package/{bin/types/utils/JsViewPlugin/JsvLatex → dist/types/utils/JsViewPlugin/JsvAudio}/version.d.ts +5 -0
  142. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -0
  143. package/dist/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +17 -0
  144. package/dist/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +5 -0
  145. package/dist/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +18 -0
  146. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +46 -0
  147. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +8 -0
  148. package/dist/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +9 -0
  149. package/dist/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +5 -0
  150. package/dist/types/utils/JsViewPlugin/JsvLatex/index.d.ts +8 -0
  151. package/dist/types/utils/JsViewPlugin/JsvLatex/version.d.mts +40 -0
  152. package/dist/types/utils/JsViewPlugin/JsvPlayer/AckEventDefine.d.ts +10 -0
  153. package/dist/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  154. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +523 -0
  155. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +119 -0
  156. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +664 -0
  157. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-0.9.vue.d.ts +45 -0
  158. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +611 -0
  159. package/dist/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue.d.ts +597 -0
  160. package/dist/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +415 -0
  161. package/dist/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +415 -0
  162. package/dist/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  163. package/dist/types/utils/JsViewPlugin/index.d.ts +7 -0
  164. package/dist/types/utils/JsViewVueTools/BlobApi.d.ts +42 -0
  165. package/dist/types/utils/JsViewVueTools/ConstSymbol.d.ts +6 -0
  166. package/dist/types/utils/JsViewVueTools/DebugContentShellJBridge.d.ts +10 -0
  167. package/dist/types/utils/JsViewVueTools/DebugTool.d.ts +12 -0
  168. package/dist/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +14 -0
  169. package/dist/types/utils/JsViewVueTools/FeatureActive.d.ts +15 -0
  170. package/dist/types/utils/JsViewVueTools/ForgeConstDefine.d.ts +15 -0
  171. package/dist/types/utils/JsViewVueTools/ForgeHandles.d.ts +11 -0
  172. package/dist/types/utils/JsViewVueTools/JsvDynamicCssStyle.d.ts +33 -0
  173. package/dist/types/utils/JsViewVueTools/JsvDynamicKeyFrames.d.ts +40 -0
  174. package/dist/types/utils/JsViewVueTools/JsvFederationTools.d.ts +20 -0
  175. package/dist/types/utils/JsViewVueTools/JsvHashHistory.d.ts +20 -0
  176. package/dist/types/utils/JsViewVueTools/JsvImpactTracer.d.ts +44 -0
  177. package/dist/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +10 -0
  178. package/dist/types/utils/JsViewVueTools/JsvPerformance.d.ts +9 -0
  179. package/dist/types/utils/JsViewVueTools/JsvPreDownloader.d.ts +55 -0
  180. package/dist/types/utils/JsViewVueTools/JsvRefTaker.d.ts +52 -0
  181. package/dist/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +378 -0
  182. package/dist/types/utils/JsViewVueTools/JsvStyleClass.d.ts +35 -0
  183. package/dist/types/utils/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +35 -0
  184. package/dist/types/utils/JsViewVueTools/JsvTextTools.d.ts +66 -0
  185. package/dist/types/utils/JsViewVueTools/JsvTextureDefines.d.ts +10 -0
  186. package/dist/types/utils/JsViewVueTools/JsvTextureLoadTool.d.ts +67 -0
  187. package/dist/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +47 -0
  188. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +99 -0
  189. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +20 -0
  190. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +58 -0
  191. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +113 -0
  192. package/dist/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +17 -0
  193. package/dist/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +170 -0
  194. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Store.d.ts +16 -0
  195. package/dist/types/utils/JsViewVueTools/JsvTextureStore/Texture.d.ts +31 -0
  196. package/dist/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +53 -0
  197. package/dist/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +6 -0
  198. package/dist/types/utils/JsViewVueTools/NinePatchHelper.d.ts +25 -0
  199. package/dist/types/utils/JsViewVueTools/TextureManagerTools.d.ts +11 -0
  200. package/dist/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +7 -0
  201. package/dist/types/utils/JsViewVueTools/index.d.ts +29 -0
  202. package/dist/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +124 -0
  203. package/dist/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +148 -0
  204. package/dist/types/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +35 -0
  205. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +102 -0
  206. package/dist/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +37 -0
  207. package/dist/types/utils/JsViewVueWidget/JsvActorMove/index.d.ts +8 -0
  208. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
  209. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +77 -0
  210. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +54 -0
  211. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
  212. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +44 -0
  213. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +17 -0
  214. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
  215. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
  216. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
  217. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
  218. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
  219. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
  220. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +20 -0
  221. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
  222. package/dist/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +26 -0
  223. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +74 -0
  224. package/dist/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +5 -0
  225. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +5 -0
  226. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +34 -0
  227. package/dist/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +6 -0
  228. package/dist/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +33 -0
  229. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.d.ts +105 -0
  230. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.d.ts +65 -0
  231. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.d.ts +62 -0
  232. package/dist/types/utils/JsViewVueWidget/JsvDomRenderer/index.d.ts +5 -0
  233. package/dist/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +109 -0
  234. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +108 -0
  235. package/dist/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +5 -0
  236. package/dist/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +61 -0
  237. package/dist/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +91 -0
  238. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +106 -0
  239. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +100 -0
  240. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +108 -0
  241. package/dist/types/utils/JsViewVueWidget/JsvFlexCell/index.d.ts +7 -0
  242. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +63 -0
  243. package/dist/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +5 -0
  244. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
  245. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +228 -0
  246. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
  247. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +16 -0
  248. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.d.ts +16 -0
  249. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +20 -0
  250. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +106 -0
  251. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +107 -0
  252. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +11 -0
  253. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +12 -0
  254. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +118 -0
  255. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +244 -0
  256. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +169 -0
  257. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +22 -0
  258. package/dist/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +24 -0
  259. package/dist/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +241 -0
  260. package/dist/types/utils/JsViewVueWidget/JsvHole.d.ts +19 -0
  261. package/dist/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +16 -0
  262. package/dist/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +52 -0
  263. package/dist/types/utils/JsViewVueWidget/JsvInput/EditVisibleArea.d.ts +30 -0
  264. package/dist/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +98 -0
  265. package/dist/types/utils/JsViewVueWidget/JsvInput/SharedDefine.d.ts +17 -0
  266. package/dist/types/utils/JsViewVueWidget/JsvInput/SystemTextTools.d.ts +20 -0
  267. package/dist/types/utils/JsViewVueWidget/JsvInput/index.d.ts +8 -0
  268. package/dist/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +32 -0
  269. package/dist/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +5 -0
  270. package/dist/types/utils/JsViewVueWidget/JsvLine/index.d.ts +6 -0
  271. package/dist/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +33 -0
  272. package/dist/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +101 -0
  273. package/dist/types/utils/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
  274. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Constant.d.ts +13 -0
  275. package/dist/types/utils/JsViewVueWidget/JsvMindMap/DataTree.d.ts +75 -0
  276. package/dist/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +72 -0
  277. package/dist/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +235 -0
  278. package/dist/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +5 -0
  279. package/dist/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +44 -0
  280. package/dist/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +93 -0
  281. package/dist/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +55 -0
  282. package/dist/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +30 -0
  283. package/dist/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +68 -0
  284. package/dist/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +6 -0
  285. package/dist/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +31 -0
  286. package/dist/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +85 -0
  287. package/dist/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +37 -0
  288. package/dist/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +8 -0
  289. package/dist/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +129 -0
  290. package/dist/types/utils/JsViewVueWidget/JsvRipple/index.d.ts +7 -0
  291. package/dist/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +28 -0
  292. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +278 -0
  293. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +157 -0
  294. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +8 -0
  295. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +16 -0
  296. package/dist/types/utils/JsViewVueWidget/JsvScrollBox/index.d.ts +7 -0
  297. package/dist/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +30 -0
  298. package/dist/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +76 -0
  299. package/dist/types/utils/JsViewVueWidget/JsvSoundPool.d.ts +114 -0
  300. package/dist/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +58 -0
  301. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +18 -0
  302. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +70 -0
  303. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +85 -0
  304. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +15 -0
  305. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +21 -0
  306. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/index.d.ts +9 -0
  307. package/dist/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +6 -0
  308. package/dist/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  309. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +141 -0
  310. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +248 -0
  311. package/dist/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +181 -0
  312. package/dist/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +8 -0
  313. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  314. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +121 -0
  315. package/dist/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +6 -0
  316. package/dist/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +121 -0
  317. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +6 -0
  318. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +38 -0
  319. package/dist/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +8 -0
  320. package/dist/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +109 -0
  321. package/dist/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  322. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +109 -0
  323. package/dist/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +88 -0
  324. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +94 -0
  325. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +115 -0
  326. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +94 -0
  327. package/dist/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +115 -0
  328. package/dist/types/utils/JsViewVueWidget/index.d.ts +53 -0
  329. package/dist/types/utils/index.d.ts +8 -0
  330. package/dist/utils/browser/BrowserAudio.vue.mjs +258 -0
  331. package/dist/utils/browser/BrowserJsvLatex.vue.mjs +64 -0
  332. package/dist/utils/export-sfc.mjs +12 -0
  333. package/dist/utils/index.mjs +29000 -0
  334. package/dist/utils/jsview-vue-common.mjs +39 -0
  335. package/package.json +1 -1
  336. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
  337. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +51 -3
  338. package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
  339. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +193 -89
  340. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +347 -145
  341. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetDebugger.ts +15 -0
  342. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +1603 -588
  343. package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
  344. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +146 -38
  345. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +39 -26
  346. package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
  347. package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
  348. package/utils/JsViewEngineWidget/RectUtils.js +1 -1
  349. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +62 -0
  350. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
  351. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
  352. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
  353. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +434 -264
  354. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
  355. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +54 -5
  356. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
  357. package/utils/JsViewEngineWidget/WidgetCommon.ts +29 -7
  358. package/utils/JsViewEngineWidget/index.ts +7 -2
  359. package/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue +4 -0
  360. package/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue +13 -13
  361. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
  362. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
  363. package/utils/JsViewPlugin/JsvLatex/Color.ts +104 -39
  364. package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
  365. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +71 -17
  366. package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
  367. package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +14 -2
  368. package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
  369. package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
  370. package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
  371. package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
  372. package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
  373. package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
  374. package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +61 -11
  375. package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
  376. package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
  377. package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
  378. package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
  379. package/utils/JsViewVueTools/BlobApi.ts +55 -0
  380. package/utils/JsViewVueTools/FeatureActive.ts +5 -1
  381. package/utils/JsViewVueTools/ForgeHandles.ts +8 -2
  382. package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
  383. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
  384. package/utils/JsViewVueTools/JsvRuntimeBridge.js +125 -8
  385. package/utils/JsViewVueTools/JsvTextTools.ts +12 -2
  386. package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
  387. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
  388. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
  389. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
  390. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +30 -12
  391. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +157 -51
  392. package/utils/JsViewVueTools/JsvTextureStore/Store.ts +33 -21
  393. package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +56 -41
  394. package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
  395. package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
  396. package/utils/JsViewVueTools/index.js +3 -1
  397. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
  398. package/utils/JsViewVueWidget/JsvDashPath.vue +150 -0
  399. package/utils/JsViewVueWidget/JsvDomRenderer/JsViewHtmlToVNodesOptions.ts +212 -0
  400. package/utils/JsViewVueWidget/JsvDomRenderer/JsvDomRenderer.ts +146 -0
  401. package/utils/JsViewVueWidget/JsvDomRenderer/htmlToVNodes.ts +748 -0
  402. package/utils/JsViewVueWidget/JsvDomRenderer/index.ts +1 -0
  403. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +10 -1
  404. package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
  405. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
  406. package/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue +3 -1
  407. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
  408. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +24 -8
  409. package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +269 -26
  410. package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +2 -1
  411. package/utils/JsViewVueWidget/JsvFreeMoveActor/CmdTypes.ts +24 -0
  412. package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +3 -0
  413. package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +5 -1
  414. package/utils/JsViewVueWidget/JsvFreeMoveActor/NexusNode.ts +10 -2
  415. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +223 -100
  416. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +245 -64
  417. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +95 -29
  418. package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +27 -5
  419. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
  420. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
  421. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
  422. package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
  423. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
  424. package/utils/JsViewVueWidget/JsvNinePatch.vue +22 -12
  425. package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
  426. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +34 -31
  427. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  428. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +56 -25
  429. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +11 -11
  430. package/utils/JsViewVueWidget/JsvSector.vue +66 -28
  431. package/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue +108 -0
  432. package/utils/JsViewVueWidget/JsvSoundPool.js +75 -12
  433. package/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue +543 -0
  434. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +3 -3
  435. package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue +644 -0
  436. package/utils/JsViewVueWidget/JsvSwiper/index.js +3 -1
  437. package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
  438. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +315 -299
  439. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
  440. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
  441. package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
  442. package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
  443. package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
  444. package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
  445. package/utils/JsViewVueWidget/index.js +9 -3
  446. package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
  447. package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
  448. package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
  449. /package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +0 -0
  450. /package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue.d.ts → JsvFreeMoveActor.vue.d.ts} +0 -0
  451. /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ + @file {@link file://./../../../utils/JsViewVueTools/JsvTextureDefines.ts}
3
+ */
4
+
5
+ declare class TextureInstantType {
6
+ static Auto: number;
7
+ static Sync: number;
8
+ static Async: number;
9
+ }
10
+ export { TextureInstantType, };
@@ -0,0 +1,67 @@
1
+ /**
2
+ + @file {@link file://./../../../utils/JsViewVueTools/JsvTextureLoadTool.ts}
3
+ */
4
+
5
+ /**
6
+ * @file
7
+ *
8
+ * 内部组件
9
+ *
10
+ * JsvTextureLoadTool: 对给定列表的图片资源进行后台预加载
11
+ * 特别注意: 在vue组件进行关联时,要在unmounted中进行对preload返回的句柄进行主动的release动作
12
+ *
13
+ * @method
14
+ * preload
15
+ * @param {Array(ItemSet)} preloadList
16
+ * @param {Function} finishCallback
17
+ */
18
+ declare class ItemSet {
19
+ url: String | null;
20
+ width: number;
21
+ height: number;
22
+ colorType: String;
23
+ netSetting: any;
24
+ isPosterImg: boolean;
25
+ magicToken: number;
26
+ /**
27
+ * @constructor
28
+ * @param {String} url 必填,图片的url,目前只支持 http:// 和 ./ 两个格式
29
+ * @param {number} width 选填,是否为了省内存而按照给定尺寸压缩图片
30
+ * @param {number} height 选填,是否为了省内存而按照给定尺寸压缩图片
31
+ * @param {String} color_type 选填,是否为了省内存而做成其他的图片解码格式
32
+ * @param {String} net_setting 选填,是否有特殊的网络header设置
33
+ * @param {boolean} is_poster_img 选填, 是否为统计为海报,海报有一套解码优先级处理
34
+ */
35
+ constructor(url: String, width?: number, height?: number, color_type?: String, net_setting?: any, is_poster_img?: boolean);
36
+ }
37
+ declare class ItemStatus {
38
+ loadStatus: boolean;
39
+ listenerToken: number;
40
+ textureRef: any;
41
+ releaseResource(): void;
42
+ }
43
+ declare class ListStatus {
44
+ loadStatusList: Array<ItemStatus>;
45
+ loadedInfoList: Array<any>;
46
+ originDataList: Array<ItemSet>;
47
+ loadingItemCount: number;
48
+ finishCallback: Function;
49
+ constructor(origin_data: Array<ItemSet>, finish_callback: Function);
50
+ onLoaded(index: number, loaded_info: any): void;
51
+ recycleResource(): void;
52
+ }
53
+ /**
54
+ * 对给定的ItemSet进行preload加载,返回 ListStatus,
55
+ * 注意: 在vue的unmount处理中要调用ListStatus.recycleResource()进行资源回收
56
+ *
57
+ * @function
58
+ * @param {ItemSet} preload_list_data 要加载资源的ItemSet列表
59
+ * @param {Function} finish_callback 全加载完成后的回调函数
60
+ * @returns {ListStatus}
61
+ */
62
+ declare function preload(preload_list_data: Array<ItemSet> | null, finish_callback: Function): ListStatus | null;
63
+ declare const JsvTextureLoadTool: {
64
+ preload: typeof preload;
65
+ ItemSet: typeof ItemSet;
66
+ };
67
+ export { JsvTextureLoadTool };
@@ -0,0 +1,47 @@
1
+ /**
2
+ + @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts}
3
+ */
4
+
5
+ declare const enum BitPaletteCommand {
6
+ Cmd_GetDomainColorSync = 1003,
7
+ Cmd_SubMapBlob = 1004,
8
+ Cmd_SubMapTextureSync = 1005,
9
+ Cmd_ToStoreTmpBufferSync = 1006
10
+ }
11
+ declare class BitPaletteCtrl {
12
+ private _texture;
13
+ private _recycled;
14
+ constructor(texture: any);
15
+ /**
16
+ * 获取图片的主色调(dominant color),返回一个 Promise,可与 async/await 配合使用。<br>
17
+ * 使用方式示例:
18
+ *
19
+ * 异步/Promise方式:
20
+ * let colorStrJson = await bitPalette.Ctrl.getDomainColorSync();
21
+ * if (colorStrJson) {
22
+ * let colorsList = JSON.parse(colorStrJson);
23
+ * // colorsList 是主色调数组
24
+ * }
25
+ *
26
+ */
27
+ getDomainColorSync(): Promise<any>;
28
+ toBlob(): Promise<Blob | null>;
29
+ private doCommand;
30
+ markRecycled(): void;
31
+ }
32
+ export declare class BitPalette {
33
+ private _recycled;
34
+ private _readyReject;
35
+ private _texture;
36
+ Ctrl: BitPaletteCtrl | null;
37
+ Ready: Promise<BitPalette> | null;
38
+ constructor(src: string, callback?: () => void);
39
+ recycle(): void;
40
+ static CommandType: {
41
+ GetDomainColorSync: BitPaletteCommand;
42
+ SubMapBlob: BitPaletteCommand;
43
+ SubMapTextureSync: BitPaletteCommand;
44
+ ToStoreTmpBuffer: BitPaletteCommand;
45
+ };
46
+ }
47
+ export {};
@@ -0,0 +1,99 @@
1
+ /**
2
+ + @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.ts}
3
+ */
4
+
5
+ import { TextureBase } from "../Texture";
6
+ import { RectPath, CirclePath, CustomPath } from "./Path";
7
+ declare class CanvasTexture extends TextureBase {
8
+ private drawCommands;
9
+ private commited;
10
+ private instantLoad;
11
+ /**
12
+ * canvasTexture
13
+ *
14
+ * @param {int} width 此Canvas画布的宽度
15
+ * @param {int} height 此Canvas画布的高度
16
+ * @param {String|null} baseName 可选, 访问名的前缀信息
17
+ */
18
+ constructor(width: Number, height: Number, baseName: String | null);
19
+ /**
20
+ * clearCanvas
21
+ * 清空canvas
22
+ */
23
+ clearCanvas(): void;
24
+ /**
25
+ * drawColor
26
+ * 将整个Canvas绘制成指定颜色
27
+ *
28
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
29
+ */
30
+ drawColor(color: String): void;
31
+ /**
32
+ * customPath
33
+ * 获得Path操作对象,
34
+ * 在自定义绘制指令后,通过 stroke 或者 fill 来完成绘制
35
+ *
36
+ * @return {CustomPath}
37
+ */
38
+ customPath(): CustomPath | null;
39
+ /**
40
+ * rectPath
41
+ * 获得RectPath操作对象,通过 stroke 或者 fill 来完成绘制
42
+ *
43
+ * @param {Number} left 矩形左上角left
44
+ * @param {Number} top 矩形左上角top
45
+ * @param {Number} right 矩形右下角right
46
+ * @param {Number} bottom 矩形右下角bottom
47
+ * @return {RectPath}
48
+ */
49
+ rectPath(left: Number, top: Number, right: Number, bottom: Number): RectPath | null;
50
+ /**
51
+ * circlePath
52
+ * 获得CirclePath操作对象,通过 stroke 或者 fill 来完成绘制
53
+ *
54
+ * @param {Number} centerX 圆心x
55
+ * @param {Number} centerY 圆心y
56
+ * @param {Number} radius 圆半径
57
+ * @return {CirclePath}
58
+ */
59
+ circlePath(centerX: Number, centerY: Number, radius: Number): CirclePath | null;
60
+ /**
61
+ * drawLine
62
+ * 绘制一条带有抗锯齿信息的直线
63
+ *
64
+ * @param {Number} fromX 绘制起点X
65
+ * @param {Number} fromY 绘制起点Y
66
+ * @param {Number} toX 绘制终点X
67
+ * @param {Number} toY 绘制终点Y
68
+ * @param {Number} lineWidth 线宽
69
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
70
+ */
71
+ drawLine(fromX: Number, fromY: Number, toX: Number, toY: Number, lineWidth: Number, color: String): void;
72
+ /**
73
+ * drawLinearGradientRect
74
+ * 用渐变色填充一个整个Canvas区域
75
+ * TODO: 后续如果有需求填充Canvas中子区域内容时,再加一个参数来指定填充区域
76
+ *
77
+ * @param {int} fromX 绘制起点X
78
+ * @param {int} fromY 绘制起点Y
79
+ * @param {int} toX 绘制终点X
80
+ * @param {int} toY 绘制终点Y
81
+ * @param {Array<String>} colorArray 颜色设定的数组
82
+ * @param {Array<double>} stopsArray 与color数组个数相同,颜色基准点位置
83
+ */
84
+ drawLinearGradientRect(fromX: Number, fromY: Number, toX: Number, toY: Number, colorArray: Array<String>, stopsArray: Array<Number>): void;
85
+ /**
86
+ * setAsyncLoad
87
+ * texture异步加载,让界面不会卡顿
88
+ *
89
+ * @param {int} fromX 绘制起点X
90
+ * @param {int} fromY 绘制起点Y
91
+ * @param {int} toX 绘制终点X
92
+ * @param {int} toY 绘制终点Y
93
+ * @param {Array<String>} colorArray 颜色设定的数组
94
+ * @param {Array<double>} stopsArray 与color数组个数相同,颜色基准点位置
95
+ */
96
+ setAsyncLoad(): void;
97
+ commit(): String;
98
+ }
99
+ export default CanvasTexture;
@@ -0,0 +1,20 @@
1
+ /**
2
+ + @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts}
3
+ */
4
+
5
+ export declare const CMD_INVALID = 0;
6
+ export declare const CMD_ALLOC_CANVAS = 1;
7
+ export declare const CMD_PREPARE_PAINT = 2;
8
+ export declare const CMD_PREPARE_PATH = 3;
9
+ export declare const CMD_CLEAR_CANVAS = 10;
10
+ export declare const CMD_DRAW_COLOR = 11;
11
+ export declare const CMD_DRAW_CIRCLE_WITH_PAINT = 12;
12
+ export declare const CMD_DRAW_RECT_WITH_PAINT = 13;
13
+ export declare const CMD_DRAW_PATH_WITH_PAINT = 14;
14
+ export declare const CMD_DRAW_LINE = 15;
15
+ export declare const CMD_DRAW_LINEAR_GRADIENT_RECT = 16;
16
+ export declare const PATH_CMD_MOVE_TO = 30;
17
+ export declare const PATH_CMD_LINE_TO = 31;
18
+ export declare const PATH_CMD_ARC_TO = 32;
19
+ export declare const PATH_CMD_CLOSE = 33;
20
+ export declare const PATH_CUBIC_TO = 34;
@@ -0,0 +1,58 @@
1
+ /**
2
+ + @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts}
3
+ */
4
+
5
+ import CanvasTexture from "./CanvasTexture";
6
+ import { CustomPath } from "./Path";
7
+ type Data = {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ export declare class ChartHelper {
12
+ private width;
13
+ private height;
14
+ private xAxis;
15
+ private yAxis;
16
+ private originPosition;
17
+ private canvasTexture;
18
+ /**
19
+ *
20
+ * @param w {number} 画布宽度
21
+ * @param h {number} 画布高度
22
+ * @param xAxis {number[]} x轴范围
23
+ * @param yAxis {number[]} y轴范围
24
+ * @throws {Error} 如果画布宽度或高度小于等于 0,或者 x 或 y 轴范围不是长度为 2 的数组,或者 x 或 y 轴范围不是升序
25
+ */
26
+ constructor(w: number, h: number, xAxis: number[], yAxis: number[]);
27
+ /**
28
+ * @description 获取画布对象
29
+ * @returns {CanvasTexture} 画布对象
30
+ */
31
+ getCanvas(): CanvasTexture;
32
+ /**
33
+ * @description 获取原始数据点对应的坐标
34
+ * @returns {Data} 原始数据点对应的坐标
35
+ */
36
+ getOriginPosition(): Data;
37
+ /**
38
+ * @description 根据数据获取绘制所需的position
39
+ * @param data {Data[]} 数据点数组,每个点包含 x 和 y 坐标
40
+ * @returns {Data[]} 数据点数组,每个点包含 x 和 y 坐标
41
+ */
42
+ data2Pos(data: Data[]): Data[];
43
+ /**
44
+ * linePath参数说明
45
+ * @param data {Data[]} 数据点数组,每个点包含 x 和 y 坐标
46
+ * @param isBroken {boolean} 是否为折线
47
+ * @param close {number}
48
+ * 0: 不闭合,绘制线段用,
49
+ * 1: 闭合到x轴(自动绘制左右两端垂直于x轴的线段), 需要填充颜色时用
50
+ * 2: 闭合到y轴(自动绘制上下两端垂直于y轴的线段), 需要填充颜色时用
51
+ * @returns {CustomPath, Data[]} 路径对象和数据点数组,每个点包含 x 和 y 坐标
52
+ */
53
+ linePath(data: Data[], isBroken?: boolean, close?: number): {
54
+ path: CustomPath;
55
+ position: Data[];
56
+ } | undefined;
57
+ }
58
+ export {};
@@ -0,0 +1,113 @@
1
+ /**
2
+ + @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts}
3
+ */
4
+
5
+ /**
6
+ * PathStrokeSetting
7
+ * 描边样式设定
8
+ * lineWidth: 描边线宽
9
+ * color: 描边颜色
10
+ * dash: 描边虚线样式,例如[10, 5]表示10px实线,5px虚线,交替出现
11
+ * phase: 描边虚线样式起始位置,例如0表示从虚线开始位置开始绘制
12
+ */
13
+ interface PathStrokeSetting {
14
+ lineWidth: Number;
15
+ color: String;
16
+ dash?: Array<Number>;
17
+ phase?: Number;
18
+ }
19
+ declare class DrawingPath {
20
+ protected drawCommandsRefs: Array<Object>;
21
+ protected finishedDraw: boolean;
22
+ constructor(drawCmds: Array<Object>);
23
+ /**
24
+ * stroke
25
+ * 绘制边框
26
+ *
27
+ * @param {Number} lineWidth 描边的线宽
28
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
29
+ */
30
+ stroke(lineWidth: Number, color: String): void;
31
+ /**
32
+ * strokeWithSetting
33
+ * 绘制边框,并设置描边样式
34
+ *
35
+ * @param {PathStrokeSetting} setting 描边样式设定
36
+ */
37
+ strokeWithSetting(setting: PathStrokeSetting): void;
38
+ /**
39
+ * fill
40
+ * 绘制填充
41
+ *
42
+ * @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
43
+ */
44
+ fill(color: String): void;
45
+ fillWithLinearGradient(fromX: Number, fromY: Number, toX: Number, toY: Number, colorList: Array<String>, positionList: Array<Number>): void;
46
+ protected onFinishDraw(): void;
47
+ }
48
+ export declare class RectPath extends DrawingPath {
49
+ private rectLeft;
50
+ private rectTop;
51
+ private rectRight;
52
+ private rectBottom;
53
+ constructor(drawCmds: Array<Object>, left: Number, top: Number, right: Number, bottom: Number);
54
+ onFinishDraw(): void;
55
+ }
56
+ export declare class CirclePath extends DrawingPath {
57
+ private circleCenterX;
58
+ private circleCenterY;
59
+ private circleRadius;
60
+ constructor(drawCmds: Array<Object>, centerX: Number, centerY: Number, radius: Number);
61
+ onFinishDraw(): void;
62
+ }
63
+ export declare class CustomPath extends DrawingPath {
64
+ protected pathCommands: Array<Object> | null;
65
+ constructor(drawCmds: Array<Object>);
66
+ /**
67
+ * moveTo
68
+ * 将画笔移动到目标位置
69
+ *
70
+ * @param {Number} targetX 目标位置x
71
+ * @param {Number} targetY 目标位置y
72
+ */
73
+ moveTo(targetX: Number, targetY: Number): void;
74
+ /**
75
+ * lineTo
76
+ * 将画笔从当前位置到目标位置之间绘制一条直线
77
+ *
78
+ * @param {Number} targetX 目标位置x
79
+ * @param {Number} targetY 目标位置y
80
+ */
81
+ lineTo(targetX: Number, targetY: Number): void;
82
+ /**
83
+ * cubicTo
84
+ * 绘制三次贝塞尔曲线
85
+ *
86
+ * @param {Number} x0 控制点1的x坐标
87
+ * @param {Number} y0 控制点1的y坐标
88
+ * @param {Number} x1 控制点2的x坐标
89
+ * @param {Number} y1 控制点2的y坐标
90
+ * @param {Number} x2 目标点的x坐标
91
+ * @param {Number} y2 目标点的y坐标
92
+ */
93
+ cubicTo(x0: Number, y0: Number, x1: Number, y1: Number, x2: Number, y2: Number): void;
94
+ /**
95
+ * arcTo
96
+ * 绘制以(left, top, right, bottom)围城的矩形为横轴比的椭圆圆弧
97
+ *
98
+ * @param {Number} left 定义椭圆区域的left
99
+ * @param {Number} top 定义椭圆区域的top
100
+ * @param {Number} right 定义椭圆区域的right
101
+ * @param {Number} bottom 定义椭圆区域的bottom
102
+ * @param {Number} startAngle 起始角度(例如30 = 30度)
103
+ * @param {Number} sweepAngle 扫过的角度(例如要绘制半圆,则设置180)
104
+ */
105
+ arcTo(left: Number, top: Number, right: Number, bottom: Number, startAngle: Number, sweepAngle: Number): void;
106
+ /**
107
+ * close
108
+ * 到此为止的路径进行闭环
109
+ */
110
+ close(): void;
111
+ onFinishDraw(): void;
112
+ }
113
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ + @file {@link file://./../../../../../utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts}
3
+ */
4
+
5
+ import { TextureBase } from "../Texture";
6
+ export type CapturedCallback = (textureAccessName: string, autoRecycleSet: boolean, width: number, height: number, isCannceled: boolean) => void;
7
+ export declare class CapturedTexture extends TextureBase {
8
+ private _Callback;
9
+ private _CaptureDiv;
10
+ private _Canceled;
11
+ private _Done;
12
+ private _PostProcessParams;
13
+ constructor(captureDiv: any, callback: CapturedCallback, autoRecycle: boolean, postProcessParams?: any);
14
+ cancel(): void;
15
+ recycle(): void;
16
+ commit(): String;
17
+ }
@@ -0,0 +1,170 @@
1
+ /**
2
+ + @file {@link file://./../../../../utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts}
3
+ */
4
+
5
+ /**
6
+ * @file JsvTextureStoreApi
7
+ *
8
+ * canvasTexture:
9
+ * 创建texture(图片纹理)句柄, 通过 CanvasTexture 的API进行绘制, 使用注意以下几点
10
+ * a. commit() 接口调用之前可以任意绘制, commit之后就无法更改, commit之后才能使用, commit后绘制内容会被全局保存
11
+ * b. commit()的返回是其使用名称, 在div.backgroundImage和img.src中可使用, 格式: jsvtexturestore://commit返回名
12
+ * c.【非常重要】CanvasTexture是全局管理, commit()之后 不会自动释放, 需要手动调用 deleteTexture, 其参数是commit的返回值
13
+ *
14
+ * deleteTexture:
15
+ * 删除全局保存的texture(图片纹理)
16
+ *
17
+ * capture2Texture:
18
+ * 对给定div做截图并生成一个Texture, 在回调函数中返回此Texture的访问名,
19
+ * 此访问名可以在 img.src 或者 div.backgroundImage 通过 "texturestore://访问名" 来使用
20
+ *
21
+ * getDominantColor:
22
+ * 获取图片的 dominant color
23
+ * 特殊说明: 此方法产生的内部CanvasTexture资源会自动回收,
24
+ * 虽然建议使用者在unmount时进行cancel, 但不是强制
25
+ *
26
+ * getChartHelper:
27
+ * 获取ChartHelper句柄,用于绘制二维统计图的多点折线(解决数据点之间的平滑衔接问题)
28
+ *
29
+ * CanvasTexture的接口(见 ./CanvasTexture/CanvasTexture.ts 的函数头):
30
+ * Path类型: 例如 rectPath, circlePath (见 ./CanvasTexture/Path.ts 的函数头)
31
+ * 通过 canvasTexture.xxxPath() 获得一个path操作对象,然后通过其接口进行游标运动形成绘制路径
32
+ * Path.fill() 或者 Path.stroke 调用前可以移动游标进行路径规划, 一旦fill或者stroke后就不能更改了。
33
+ * 非Path接口: 完成单一绘制动作,例如drawLine, drawColor
34
+ */
35
+
36
+ /*!
37
+ * @file JsvTextureStoreApi
38
+ *
39
+ * canvasTexture:
40
+ * 创建texture(图片纹理)句柄, 通过 CanvasTexture 的API进行绘制, 使用注意以下几点
41
+ * a. commit() 接口调用之前可以任意绘制, commit之后就无法更改, commit之后才能使用, commit后绘制内容会被全局保存
42
+ * b. commit()的返回是其使用名称, 在div.backgroundImage和img.src中可使用, 格式: jsvtexturestore://commit返回名
43
+ * c.【非常重要】CanvasTexture是全局管理, commit()之后 不会自动释放, 需要手动调用 deleteTexture, 其参数是commit的返回值
44
+ *
45
+ * deleteTexture:
46
+ * 删除全局保存的texture(图片纹理)
47
+ *
48
+ * capture2Texture:
49
+ * 对给定div做截图并生成一个Texture, 在回调函数中返回此Texture的访问名,
50
+ * 此访问名可以在 img.src 或者 div.backgroundImage 通过 "texturestore://访问名" 来使用
51
+ *
52
+ * getDominantColor:
53
+ * 获取图片的 dominant color
54
+ * 特殊说明: 此方法产生的内部CanvasTexture资源会自动回收,
55
+ * 虽然建议使用者在unmount时进行cancel, 但不是强制
56
+ *
57
+ * getChartHelper:
58
+ * 获取ChartHelper句柄,用于绘制二维统计图的多点折线(解决数据点之间的平滑衔接问题)
59
+ *
60
+ * CanvasTexture的接口(见 ./CanvasTexture/CanvasTexture.ts 的函数头):
61
+ * Path类型: 例如 rectPath, circlePath (见 ./CanvasTexture/Path.ts 的函数头)
62
+ * 通过 canvasTexture.xxxPath() 获得一个path操作对象,然后通过其接口进行游标运动形成绘制路径
63
+ * Path.fill() 或者 Path.stroke 调用前可以移动游标进行路径规划, 一旦fill或者stroke后就不能更改了。
64
+ * 非Path接口: 完成单一绘制动作,例如drawLine, drawColor
65
+ */
66
+ import CanvasTexture from "./CanvasTexture/CanvasTexture";
67
+ import { CapturedTexture, CapturedCallback } from "./CapturedTexture/CapturedTexture";
68
+ import { ChartHelper } from "./CanvasTexture/DrawHelper";
69
+ import { BitPalette } from "./BitPalette/BitPalette";
70
+ declare let sJsvTextureConst: {
71
+ LEFT: number;
72
+ TOP: number;
73
+ RIGHT: number;
74
+ BOTTOM: number;
75
+ };
76
+ declare let sTextureStoreApi: {
77
+ /**
78
+ * canvasTexture
79
+ * 创建CanvasTexture句柄,执行commit()后, 获取访问名(访问名规则: 输入参数 baseName + 分配id)
80
+ * 可以在 img.src 或者 div.backgroundImage 通过 "texturestore://访问名" 来使用
81
+ *
82
+ * @param {int} width 此Canvas画布的宽度
83
+ * @param {int} height 此Canvas画布的高度
84
+ * @param {String|null} baseName 可选, 访问名的前缀信息
85
+ * @return {CanvasTexture}
86
+ */
87
+ canvasTexture: (width: Number, height: Number, baseName?: String | null) => CanvasTexture;
88
+ /**
89
+ * capture2Texture
90
+ * 对给定div做截图并生成一个Texture, 在回调函数中返回此Texture的访问名,
91
+ * 此访问名可以在 img.src 或者 div.backgroundImage 通过 "texturestore://访问名" 来使用
92
+ *
93
+ * 关于 autoRecycle: 此api生成的CanvasTexture根据这个标识有自动释放功能
94
+ * true(默认值): 收到callback的访问名后,请立即设置给使用的地方,若此宏任务结束(其触发的所有微任务全完成后)时,
95
+ * 若资源未被div和img使用,则会自动回收,回收后此访问名对应内容为黑屏
96
+ * false: 截图资源永久存在,可被反复使用,直到 JsvTextureStoreApi.deleteTexture(访问名) 进行清理
97
+ *
98
+ * @param {DivVueRef} captureDiv 要截图的div
99
+ * @param {CapturedCallback} callback 完成截屏后的回调, 函数参数:
100
+ * (textureAccessName: string, // 访问名
101
+ * autoRecycleSet: boolean, // 通知是否为自动删除(和入参时一致)
102
+ * width: number, // 截取div的宽
103
+ * height: number) => void // 截取div的高
104
+ * @param {boolean} autoRecycle 可选, 是否当无div/img引用时会自动释放
105
+ * true默认值: 此场景在回调时要立刻赋值给响应式变量控制template的节点立刻使用(并且不是v-if=false的节点),
106
+ 否则会自动释放掉, 此时, texture当使用它的template节点从dom树中去掉的时候(v-if=false也算)会自动释放,
107
+ 不需要主动调用deleteTexture释放.
108
+ false: 此场景在callback收到资源名后, 需要使用完毕后调用 deleteTexture 手动释放
109
+ 在手动释放之前,可以赋给其他div/img来复用
110
+ * @param {any} postProcessParams 可选, 截图处理的参数
111
+ * @return {CapturedTexture} 用于cancel的句柄,当cancel时,会清理对div和Callback的引用
112
+ */
113
+ capture2Texture: (captureDiv: any, callback: CapturedCallback, autoRecycle?: boolean, postProcessParams?: any) => CapturedTexture;
114
+ /**
115
+ * deleteTexture
116
+ * 删除访问名对应的texture资源
117
+ *
118
+ * @param {String} accessName 此Texture的访问名,访问名来自: CanvasTexture.commit 或 capture2Texture 的回调
119
+ */
120
+ deleteTexture: (accessName: String) => void;
121
+ /**
122
+ * getDominantColor
123
+ * 获取图片的 dominant color
124
+ * 特殊说明: 此方法产生的内部CanvasTexture资源会自动回收,
125
+ * 虽然建议使用者在unmount时进行cancel, 但不是强制
126
+ *
127
+ * @param src 图片的src
128
+ * @param callback 回调函数, 参数: info
129
+ * @return 用于cancel的句柄的函数,
130
+ * 例如 let c = JsvTextureStoreApi.getDominantColor(src, callback); c(); 为资源清理
131
+ * 若callback前清理, 则callback不会被调用
132
+ */
133
+ getDominantColor: (src: string, callback: (info: any) => void) => () => void;
134
+ /**
135
+ * getBitPalette
136
+ * 获取 BitPalette 实例
137
+ *
138
+ * 用法示例:
139
+ *
140
+ * let bp = JsvTextureStoreApi.getBitPalette(src);
141
+ * await bp.Ready;
142
+ * let result = await bp.Ctrl?.doCommand(cmd_id, {...});
143
+ *
144
+ * 说明:
145
+ * - 该方法会立即返回 BitPalette 实例,但 BitPalette 数据初始化可能为异步过程。
146
+ * - 若在await Ready之前直接操作 bitPalette,其状态未必已完成加载。
147
+ *
148
+ * 特别注意: 不再使用时, 请务必调用 bitPalette.recycle() 释放资源, recycle接口不需要等待Ready完成
149
+ *
150
+ * @param {string} src 图片的 src 链接, 可以是 "jsvtexturestore://访问名" 或者 图片的url
151
+ * @return {BitPalette} BitPalette 实例
152
+ */
153
+ getBitPalette: (src: string, callback: () => void) => BitPalette;
154
+ /**
155
+ * getChartHelper
156
+ * 获取ChartHelper句柄,用于绘制二维统计图
157
+ *
158
+ * @param {number} width 画布宽度
159
+ * @param {number} height 画布高度
160
+ * @param {number[]} xAxis x轴范围(可以为负数到正数的范围)
161
+ * @param {number[]} yAxis y轴范围(可以为负数到正数的范围)
162
+ * @throws {Error} 如果画布宽度或高度小于等于 0,或者 x 或 y 轴范围不是长度为 2 的数组,或者 x 或 y 轴范围不是升序
163
+ * @return {ChartHelper} ChartHelper接口说明见 ./CanvasTexture/DrawHelper.ts 的 ChartHelper 类
164
+ */
165
+ getChartHelper(width: number, height: number, xAxis: number[], yAxis: number[]): ChartHelper;
166
+ };
167
+ export declare enum CaptureProcessType {
168
+ Blur = 1
169
+ }
170
+ export { sTextureStoreApi as JsvTextureStoreApi, sJsvTextureConst as JsvTextureConst, };
@@ -0,0 +1,16 @@
1
+ /**
2
+ + @file {@link file://./../../../../utils/JsViewVueTools/JsvTextureStore/Store.ts}
3
+ */
4
+
5
+ import { TextureBase } from "./Texture";
6
+ declare class JsvTextureStore {
7
+ private textureMap;
8
+ private hasAutoRecycle;
9
+ constructor();
10
+ addToStore(storeName: String, textureRef: TextureBase): void;
11
+ getFromStore(storeName: String): TextureBase | undefined;
12
+ removeFromStore(storeName: String): TextureBase | undefined;
13
+ private onWillSwap;
14
+ }
15
+ declare let sStore: JsvTextureStore;
16
+ export default sStore;
@@ -0,0 +1,31 @@
1
+ /**
2
+ + @file {@link file://./../../../../utils/JsViewVueTools/JsvTextureStore/Texture.ts}
3
+ */
4
+
5
+ export declare class TextureBase {
6
+ private baseName;
7
+ protected textureRef: any;
8
+ storeName: String;
9
+ protected autoRecycle: boolean;
10
+ private autoRecycleDelay;
11
+ constructor(baseName: String | null);
12
+ tryRecycle(): void;
13
+ isAutoRecycle(): boolean;
14
+ protected addToStore(): void;
15
+ protected getStoreName(): string;
16
+ /**
17
+ * commit
18
+ * 完成绘制设置,出发制作目标texture
19
+ *
20
+ * @return {String} BaseName-textureId 格式的名字,用于 jsvtexturestore:// 的访问链接
21
+ */
22
+ commit(): String;
23
+ /**
24
+ * getTextureRef
25
+ * 内部接口,获取内联的Forge.ImageTexture的句柄
26
+ *
27
+ * @return {String} BaseName-textureId 格式的名字,用于 jsvtexturestore:// 的访问链接
28
+ */
29
+ getTextureRef(): any;
30
+ recycle(): void;
31
+ }