@shijiu/jsview-vue 2.2.373 → 2.2.426-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/bin/jsview-vue.mjs +333 -487
  2. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/CheckType.d.ts +0 -4
  3. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusBlock.vue.d.ts +0 -34
  4. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/JsvFocus/JsvFocusHub.d.ts +0 -4
  5. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +12 -0
  6. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Const.d.ts +0 -4
  7. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Dispatcher.d.ts +0 -4
  8. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/ListWidget.vue.d.ts +0 -8
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +161 -0
  10. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/MetroWidgetSetup.d.ts +0 -4
  11. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/PageUpdater.d.ts +0 -4
  12. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/RenderItem.d.ts +0 -4
  13. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/Slide.d.ts +0 -4
  14. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/SlotComponent.vue.d.ts +0 -4
  15. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +64 -0
  16. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.d.ts +4 -0
  17. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/VisibleInfo.d.ts +0 -4
  18. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/MetroWidget/WidgetRectInfo.d.ts +0 -4
  19. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/RangeModel.d.ts +0 -4
  20. package/bin/types/utils/JsViewEngineWidget/RectUtils.d.ts +61 -0
  21. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/CommonMetroTemplate.d.ts +0 -4
  22. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/Fence.d.ts +2 -6
  23. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/ListMetroTemplate.d.ts +0 -4
  24. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/MetroTemplate.d.ts +3 -7
  25. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/TemplateItemAdder.d.ts +0 -4
  26. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/TemplateParser/index.d.ts +0 -4
  27. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/WidgetCommon.d.ts +0 -4
  28. package/bin/types/{JsViewEngineWidget → utils/JsViewEngineWidget}/index.d.ts +0 -4
  29. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAccount/JsvAccount.d.ts +0 -4
  30. package/bin/types/utils/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
  31. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +0 -4
  32. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +4 -8
  33. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/CheckType.d.ts +0 -4
  34. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/Events.d.ts +0 -4
  35. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudio.vue.d.ts +4 -8
  36. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioBridgeProxy.d.ts +0 -4
  37. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/JsvAudioProxy.vue.d.ts +0 -4
  38. package/bin/types/utils/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
  39. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/ScreenLockManager.d.ts +0 -4
  40. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvAudio/index.d.ts +0 -4
  41. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +13 -0
  42. package/bin/types/{JsViewPlugin/JsvLatex → utils/JsViewPlugin/JsvAudio}/version.d.ts +0 -4
  43. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserDomBuilder.d.ts +0 -4
  44. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/BrowserJsvLatex.vue.d.ts +4 -8
  45. package/bin/types/utils/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
  46. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatex.vue.d.ts +4 -28
  47. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
  48. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/JsvLatexProxy.vue.d.ts +0 -4
  49. package/bin/types/utils/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
  50. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/JsvLatex/index.d.ts +0 -4
  51. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +13 -0
  52. package/bin/types/{JsViewPlugin/JsvAudio → utils/JsViewPlugin/JsvLatex}/version.d.ts +0 -5
  53. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer-0.9.vue.d.ts +45 -0
  54. package/bin/types/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue.d.ts +597 -0
  55. package/bin/types/utils/JsViewPlugin/JsvPlayer/GetVersion.d.ts +13 -0
  56. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +420 -0
  57. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +57 -0
  58. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +588 -0
  59. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +358 -0
  60. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +358 -0
  61. package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +14 -0
  62. package/bin/types/{JsViewPlugin → utils/JsViewPlugin}/index.d.ts +0 -4
  63. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ConstSymbol.d.ts +0 -4
  64. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugContentShellJBridge.d.ts +0 -4
  65. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DebugTool.d.ts +0 -4
  66. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/DefaultKeyMap.d.ts +0 -4
  67. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/FeatureActive.d.ts +0 -4
  68. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeConstDefine.d.ts +0 -4
  69. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/ForgeHandles.d.ts +0 -4
  70. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDemoTester.d.ts +0 -4
  71. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicCssStyle.d.ts +0 -17
  72. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvDynamicKeyFrames.d.ts +0 -17
  73. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvFederationTools.d.ts +0 -4
  74. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvHashHistory.d.ts +0 -4
  75. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvImpactTracer.d.ts +0 -4
  76. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPerformance.d.ts +0 -4
  77. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvPreDownloader.d.ts +0 -21
  78. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRefTaker.d.ts +0 -26
  79. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvRuntimeBridge.d.ts +0 -8
  80. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleClass.d.ts +0 -4
  81. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvStyleSheetsDeclarer.d.ts +0 -18
  82. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +61 -0
  83. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureDefines.d.ts +0 -4
  84. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureLoadTool.d.ts +0 -4
  85. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +0 -4
  86. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/CommandList.d.ts +0 -4
  87. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CanvasTexture/Path.d.ts +0 -4
  88. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +0 -4
  89. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/JsvTextureStore.d.ts +0 -22
  90. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Store.d.ts +0 -4
  91. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/JsvTextureStore/Texture.d.ts +0 -4
  92. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/NinePatchHelper.d.ts +0 -4
  93. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/TextureManagerTools.d.ts +0 -4
  94. package/bin/types/utils/JsViewVueTools/TypeCheckAndSet.d.ts +3 -0
  95. package/bin/types/{JsViewVueTools → utils/JsViewVueTools}/index.d.ts +0 -5
  96. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/ActorControlBase.d.ts +0 -4
  97. package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
  98. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/JsvActorMoveControl.d.ts +0 -4
  99. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvActorMove/index.d.ts +0 -4
  100. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -5
  101. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic/JsvApic.vue.d.ts +0 -20
  102. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
  103. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -5
  104. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
  105. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
  106. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +0 -4
  107. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +0 -4
  108. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/GifData.d.ts +0 -4
  109. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +0 -4
  110. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +0 -4
  111. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +0 -4
  112. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/Viewer.d.ts +0 -4
  113. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvBrowserApicLib/WebpData.d.ts +0 -4
  114. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvApic/JsvCommonLoopToolBase.d.ts +0 -4
  115. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvClipDiv/JsvClipDiv.vue.d.ts +0 -4
  116. package/bin/types/utils/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
  117. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
  118. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
  119. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
  120. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDragBox/JsvDragBox.vue.d.ts +0 -25
  121. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvDriftScope/JsvDriftScope.vue.d.ts +0 -4
  122. package/bin/types/utils/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
  123. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvEnableRenderBreak.vue.d.ts +0 -4
  124. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFilterView.vue.d.ts +3 -22
  125. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
  126. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +75 -0
  127. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFlexCell/index.d.ts +0 -4
  128. package/bin/types/{JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts → utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts} +1 -5
  129. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/index.d.ts +1 -0
  130. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorControl.d.ts +0 -4
  131. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/CallbackManager.d.ts +0 -4
  132. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ForgeTypeDefine.d.ts +0 -4
  133. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +9 -34
  134. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +3 -25
  135. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/KeepFlags.d.ts +7 -0
  136. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/NexusNode.d.ts +0 -4
  137. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetAction.d.ts +0 -4
  138. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetCondition.d.ts +0 -4
  139. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SetState.d.ts +0 -4
  140. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/SyncLinkManager.d.ts +0 -4
  141. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/index.d.ts +0 -4
  142. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvGrid.vue.d.ts +0 -73
  143. package/bin/types/utils/JsViewVueWidget/JsvHole.d.ts +2 -0
  144. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/Cursor.vue.d.ts +1 -5
  145. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditViewOperator.d.ts +2 -5
  146. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/EditVisibleArea.d.ts +4 -5
  147. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +12 -0
  148. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SharedDefine.d.ts +0 -4
  149. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/SystemTextTools.d.ts +7 -5
  150. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvInput/index.d.ts +0 -4
  151. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
  152. package/bin/types/utils/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
  153. package/bin/types/utils/JsViewVueWidget/JsvLine/index.d.ts +2 -0
  154. package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
  155. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMaskClipDiv.vue.d.ts +0 -22
  156. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Constant.d.ts +0 -4
  157. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/DataTree.d.ts +0 -4
  158. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/Geometry.d.ts +2 -6
  159. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/JsvMindMap.vue.d.ts +9 -92
  160. package/bin/types/utils/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
  161. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/rtree.d.ts +0 -4
  162. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvNativeSharedDiv.vue.d.ts +0 -18
  163. package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +21 -0
  164. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
  165. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterDiv.vue.d.ts +0 -17
  166. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvPosterImage.vue.d.ts +0 -18
  167. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
  168. package/bin/types/utils/JsViewVueWidget/JsvPreload/index.d.ts +2 -0
  169. package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
  170. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvQrcode/JsvQrcode.vue.d.ts +1 -26
  171. package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
  172. package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
  173. package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
  174. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvRipple/index.d.ts +0 -4
  175. package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
  176. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollBox.vue.d.ts +0 -4
  177. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/JsvScrollFollow.vue.d.ts +0 -4
  178. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
  179. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/ScrollSymbol.d.ts +0 -4
  180. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvScrollBox/index.d.ts +0 -4
  181. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSector.vue.d.ts +0 -18
  182. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSoundPool.d.ts +0 -42
  183. package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
  184. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/FrameBuidler.d.ts +0 -4
  185. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
  186. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +0 -16
  187. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/JsvSpriteTools.d.ts +0 -4
  188. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/SpriteController.d.ts +0 -4
  189. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSpriteAnim/index.d.ts +0 -4
  190. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
  191. package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +16 -0
  192. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper/JsvSwiper.vue.d.ts +1 -40
  193. package/bin/types/utils/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
  194. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +16 -0
  195. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvSwiper3D/JsvSwiper.vue.d.ts +3 -27
  196. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
  197. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextBox.vue.d.ts +0 -26
  198. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/CommonType.d.ts +0 -4
  199. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTextureAnim/JsvTextureAnim.vue.d.ts +2 -7
  200. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/index.d.ts +4 -0
  201. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvTouchModeSwitcher.vue.d.ts +3 -28
  202. package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +23 -0
  203. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +6 -31
  204. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvVisibleSensor/index.d.ts +6 -10
  205. package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/index.d.ts +2 -6
  206. package/bin/types/{index.d.ts → utils/index.d.ts} +0 -4
  207. package/index.d.ts +2 -2
  208. package/package.json +1 -1
  209. package/tools/jsview-vue-build.mjs +3 -2
  210. package/tsconfig.json +27 -0
  211. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusManager.ts +3 -22
  212. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +19 -33
  213. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -1
  214. package/utils/JsViewEngineWidget/TemplateParser/Fence.ts +2 -2
  215. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +2 -4
  216. package/utils/JsViewPlugin/JsvAudio/version.js +1 -1
  217. package/utils/JsViewPlugin/JsvAudio/version.mjs +1 -1
  218. package/utils/JsViewVueTools/JsvHashHistory.js +26 -29
  219. package/utils/JsViewVueTools/JsvRuntimeBridge.js +70 -70
  220. package/utils/JsViewVueTools/JsvTextTools.ts +63 -130
  221. package/utils/JsViewVueTools/TypeCheckAndSet.ts +66 -0
  222. package/utils/JsViewVueTools/index.js +1 -1
  223. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +9 -14
  224. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +4 -1
  225. package/utils/JsViewVueWidget/JsvFragShaderView/index.js +2 -9
  226. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +47 -14
  227. package/utils/JsViewVueWidget/JsvInput/EditVisibleArea.ts +43 -10
  228. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +22 -9
  229. package/utils/JsViewVueWidget/JsvInput/SystemTextTools.ts +41 -27
  230. package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +3 -48
  231. package/utils/JsViewVueWidget/JsvPosterImage.vue +1 -2
  232. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +21 -44
  233. package/utils/JsViewVueWidget/JsvPreload/index.js +2 -13
  234. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  235. package/utils/JsViewVueWidget/JsvSoundPool.js +3 -7
  236. package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +17 -14
  237. package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +0 -5
  238. package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +70 -75
  239. package/utils/JsViewVueWidget/JsvTextureAnim/index.js +2 -9
  240. package/utils/JsViewVueWidget/index.js +2 -2
  241. package/bin/browser/BrowserJsvFragShaderView.vue.mjs +0 -79
  242. package/bin/browser/BrowserPreload.vue.mjs +0 -139
  243. package/bin/browser/BrowserQrcode.vue.mjs +0 -176
  244. package/bin/browser/BrowserSpray.vue.mjs +0 -56
  245. package/bin/browser/BrowserTextureAnim.vue.mjs +0 -322
  246. package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +0 -25
  247. package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +0 -435
  248. package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +0 -6
  249. package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +0 -5
  250. package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +0 -5
  251. package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +0 -7
  252. package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +0 -5
  253. package/bin/types/JsViewVueTools/JsvTextTools.d.ts +0 -95
  254. package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +0 -6
  255. package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +0 -102
  256. package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +0 -6
  257. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +0 -51
  258. package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +0 -6
  259. package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +0 -5
  260. package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +0 -5
  261. package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +0 -34
  262. package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +0 -6
  263. package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +0 -5
  264. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +0 -106
  265. package/bin/types/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +0 -106
  266. package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +0 -60
  267. package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +0 -6
  268. package/bin/types/JsViewVueWidget/JsvHole.d.ts +0 -19
  269. package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +0 -65
  270. package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +0 -32
  271. package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +0 -5
  272. package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +0 -6
  273. package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +0 -33
  274. package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +0 -5
  275. package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +0 -50
  276. package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +0 -26
  277. package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +0 -14
  278. package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +0 -67
  279. package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +0 -21
  280. package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +0 -31
  281. package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +0 -15
  282. package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +0 -6
  283. package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +0 -37
  284. package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +0 -8
  285. package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +0 -129
  286. package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +0 -28
  287. package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +0 -8
  288. package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +0 -29
  289. package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +0 -78
  290. package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +0 -6
  291. package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +0 -70
  292. package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +0 -6
  293. package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +0 -6
  294. package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +0 -6
  295. package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +0 -155
  296. package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +0 -18
  297. package/tools/config/tsconfig.json +0 -16
  298. package/utils/JsViewVueTools/TypeCheckAndSet.js +0 -27
  299. package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +0 -75
  300. package/utils/JsViewVueWidget/JsvPreload/BrowserPreload.vue +0 -144
  301. package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +0 -189
  302. package/utils/JsViewVueWidget/JsvQrcode/index.js +0 -18
  303. package/utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue +0 -55
  304. package/utils/JsViewVueWidget/JsvSpray/index.js +0 -17
  305. package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +0 -359
  306. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActionRefObject.d.ts +0 -0
  307. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvFreeMoveActor/ActorState.d.ts +0 -0
  308. /package/bin/types/{JsViewVueWidget → utils/JsViewVueWidget}/JsvMindMap/CommonType.d.ts +0 -0
@@ -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 };
@@ -1,176 +0,0 @@
1
- import { ref, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, unref } from 'vue';
2
- import QRCode from 'qr.js';
3
-
4
- /*
5
- + @file {@link file://./../../../../utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue}
6
- */
7
- const _sfc_main = {
8
- __name: "BrowserQrcode",
9
- props: {
10
- value: String,
11
- size: Number,
12
- fgColor: {
13
- type: String,
14
- default: "#000000"
15
- },
16
- bgColor: {
17
- type: String,
18
- default: "#ffffff"
19
- },
20
- level: {
21
- type: String,
22
- // ,容错级别,分别是L(7%)、M(15%)、Q(25%)、H(30%),
23
- default: "L"
24
- },
25
- imageSettings: Object
26
- },
27
- setup(__props) {
28
- const props = __props;
29
- const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
30
- const convertStr = (str) => {
31
- let out = "";
32
- for (let i = 0; i < str.length; i++) {
33
- let charcode = str.charCodeAt(i);
34
- if (charcode < 128) {
35
- out += String.fromCharCode(charcode);
36
- } else if (charcode < 2048) {
37
- out += String.fromCharCode(192 | charcode >> 6);
38
- out += String.fromCharCode(128 | charcode & 63);
39
- } else if (charcode < 55296 || charcode >= 57344) {
40
- out += String.fromCharCode(224 | charcode >> 12);
41
- out += String.fromCharCode(128 | charcode >> 6 & 63);
42
- out += String.fromCharCode(128 | charcode & 63);
43
- } else {
44
- i++;
45
- charcode = 65536 + ((charcode & 1023) << 10 | str.charCodeAt(i) & 1023);
46
- out += String.fromCharCode(240 | charcode >> 18);
47
- out += String.fromCharCode(128 | charcode >> 12 & 63);
48
- out += String.fromCharCode(128 | charcode >> 6 & 63);
49
- out += String.fromCharCode(128 | charcode & 63);
50
- }
51
- }
52
- return out;
53
- };
54
- const generatePath = (modules, margin = 0) => {
55
- const ops = [];
56
- modules.forEach((row, y) => {
57
- let start = null;
58
- row.forEach((cell, x) => {
59
- if (!cell && start !== null) {
60
- ops.push(
61
- `M${start + margin} ${y + margin}h${x - start}v1H${start + margin}z`
62
- );
63
- start = null;
64
- return;
65
- }
66
- if (x === row.length - 1) {
67
- if (!cell) {
68
- return;
69
- }
70
- if (start === null) {
71
- ops.push(`M${x + margin},${y + margin} h1v1H${x + margin}z`);
72
- } else {
73
- ops.push(
74
- `M${start + margin},${y + margin} h${x + 1 - start}v1H${start + margin}z`
75
- );
76
- }
77
- return;
78
- }
79
- if (cell && start === null) {
80
- start = x;
81
- }
82
- });
83
- });
84
- return ops.join("");
85
- };
86
- const getImageSettings = (props2) => {
87
- const imageSettings = props2.imageSettings;
88
- const size = props2.size;
89
- if (!imageSettings) {
90
- return null;
91
- }
92
- const w = imageSettings.width;
93
- const h = imageSettings.height;
94
- const x = !imageSettings.x ? size / 2 - w / 2 : imageSettings.x;
95
- const y = !imageSettings.y ? size / 2 - h / 2 : imageSettings.y;
96
- return { x, y, h, w };
97
- };
98
- const renderQrcode = () => {
99
- const qrcode = QRCode(convertStr(props.value), {
100
- errorCorrectLevel: QRCode.ErrorCorrectLevel[props.level]
101
- });
102
- const cells = qrcode.modules;
103
- if (cells === null) {
104
- return null;
105
- }
106
- const margin = 2;
107
- const numCells = cells.length + margin * 2;
108
- const propsData = {
109
- value: props.value,
110
- size: props.size,
111
- level: props.level,
112
- bgColor: props.bgColor,
113
- fgColor: props.fgColor,
114
- imageSettings: props.imageSettings
115
- };
116
- const calculatedImageSettings = getImageSettings(propsData);
117
- if (props.imageSettings) {
118
- imageStyle = {
119
- backgroundImage: `url(${props.imageSettings.src})`,
120
- height: calculatedImageSettings.h,
121
- width: calculatedImageSettings.w,
122
- left: calculatedImageSettings.x + margin,
123
- top: calculatedImageSettings.y + margin
124
- };
125
- } else {
126
- imageStyle = {};
127
- }
128
- const fgPath = generatePath(cells, margin);
129
- return { numCells, fgPath };
130
- };
131
- const svgRoot = ref(null);
132
- let imageStyle = null;
133
- const qrcodeRes = renderQrcode();
134
- onMounted(() => {
135
- svgRoot.value.jsvGetProxyView().RegisterOnProxyReady(() => {
136
- const root = svgRoot.value.jsvGetProxyView().HtmlGetElement();
137
- const doc = renderDocument;
138
- const svg = doc.createElementNS("http://www.w3.org/2000/svg", "svg");
139
- svg.setAttribute("type", "qrcode");
140
- svg.setAttribute("shapeRendering", "crispEdges");
141
- svg.setAttribute("height", props.size);
142
- svg.setAttribute("width", props.size);
143
- svg.setAttribute(
144
- "viewBox",
145
- "0 0 " + qrcodeRes.numCells + " " + qrcodeRes.numCells
146
- );
147
- const path1 = doc.createElementNS("http://www.w3.org/2000/svg", "path");
148
- path1.setAttribute("fill", props.bgColor);
149
- path1.setAttribute(
150
- "d",
151
- "M0,0 h" + qrcodeRes.numCells + "v" + qrcodeRes.numCells + "H0z"
152
- );
153
- const path2 = doc.createElementNS("http://www.w3.org/2000/svg", "path");
154
- path2.setAttribute("fill", props.fgColor);
155
- path2.setAttribute("d", qrcodeRes.fgPath);
156
- svg.appendChild(path1);
157
- svg.appendChild(path2);
158
- root.appendChild(svg);
159
- });
160
- });
161
- return (_ctx, _cache) => {
162
- return openBlock(), createElementBlock("div", null, [
163
- createElementVNode("div", {
164
- ref_key: "svgRoot",
165
- ref: svgRoot,
166
- style: { width: 100, height: 100 }
167
- }, null, 512),
168
- createElementVNode("div", {
169
- style: normalizeStyle(unref(imageStyle))
170
- }, null, 4)
171
- ]);
172
- };
173
- }
174
- };
175
-
176
- export { _sfc_main as default };
@@ -1,56 +0,0 @@
1
- import { Forge } from '@shijiu/jsview/dom/jsv-forge-define';
2
- import { openBlock, createElementBlock, normalizeStyle } from 'vue';
3
- import { _ as _export_sfc } from '../export-sfc.mjs';
4
-
5
- /*
6
- + @file {@link file://./../../../../utils/JsViewVueWidget/JsvSpray/BrowserSpray.vue}
7
- */
8
- const _sfc_main = {
9
- props: {
10
- pointRes: {
11
- type: String,
12
- required: true
13
- },
14
- sprayStyle: {
15
- type: Object,
16
- required: true
17
- }
18
- },
19
- data() {
20
- return {
21
- viewId: -1
22
- };
23
- },
24
- computed: {
25
- viewWidth() {
26
- return this.sprayStyle.deltaWidth === 0 ? 1 : this.sprayStyle.deltaWidth * 2;
27
- },
28
- viewHeight() {
29
- return this.sprayStyle.deltaHeight === 0 ? 1 : this.sprayStyle.deltaHeight * 2;
30
- }
31
- },
32
- mounted() {
33
- const viewSize = {
34
- width: this.viewWidth,
35
- height: this.viewHeight
36
- };
37
- this.viewId = Forge.sParticleManager.addParticle(
38
- this.sprayStyle,
39
- this.pointRes,
40
- viewSize,
41
- this.$refs.element.jsvGetProxyView()
42
- );
43
- },
44
- beforeUnmount() {
45
- Forge.sParticleManager.recycleView(this.viewId);
46
- }
47
- };
48
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
49
- return openBlock(), createElementBlock("div", {
50
- ref: "element",
51
- style: normalizeStyle({ width: $options.viewWidth, height: $options.viewHeight })
52
- }, null, 4);
53
- }
54
- const BrowserSpray = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
55
-
56
- export { BrowserSpray as default };
@@ -1,322 +0,0 @@
1
- import { openBlock, createElementBlock } from 'vue';
2
- import { _ as _export_sfc } from '../export-sfc.mjs';
3
-
4
- /*
5
- + @file {@link file://./../../../../utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue}
6
- */
7
- const forgeTextureManager = window.JsvCode.ForgeHandles.TextureManager;
8
- const renderDocument = window.JsvCode.Dom.RenderDocument ? window.JsvCode.Dom.RenderDocument : window.JsvCode.Dom.BrowserDocument;
9
- const DECORATE_BORDER_RADIUS = "BroderRaidus";
10
- const DECORATE_NINEPATCH_ALPHA_MIX = "NinePatchAlphaMix";
11
- const TexAlignAnchor = {
12
- LEFT_TOP: 1,
13
- CENTER_TOP: 2,
14
- RIGHT_TOP: 3,
15
- LEFT_MIDDLE: 4,
16
- CENTER: 5,
17
- RIGHT_MIDDLE: 6,
18
- LEFT_BOTTOM: 7,
19
- CENTER_BOTTOM: 8,
20
- RIGHT_BOTTOM: 9
21
- };
22
- const getOffset = (type, viewW, viewH, texLeft, texTop) => {
23
- let extraLeft, extraTop;
24
- switch (type) {
25
- case TexAlignAnchor.LEFT_TOP:
26
- extraLeft = 0;
27
- extraTop = 0;
28
- break;
29
- case TexAlignAnchor.CENTER_TOP:
30
- extraLeft = viewW / 2;
31
- extraTop = 0;
32
- break;
33
- case TexAlignAnchor.RIGHT_TOP:
34
- extraLeft = viewW;
35
- extraTop = 0;
36
- break;
37
- case TexAlignAnchor.LEFT_MIDDLE:
38
- extraLeft = 0;
39
- extraTop = viewH / 2;
40
- break;
41
- case TexAlignAnchor.RIGHT_MIDDLE:
42
- extraLeft = viewW;
43
- extraTop = viewH / 2;
44
- break;
45
- case TexAlignAnchor.LEFT_BOTTOM:
46
- extraLeft = 0;
47
- extraTop = viewH;
48
- break;
49
- case TexAlignAnchor.CENTER_BOTTOM:
50
- extraLeft = viewW / 2;
51
- extraTop = viewH;
52
- break;
53
- case TexAlignAnchor.RIGHT_BOTTOM:
54
- extraLeft = viewW;
55
- extraTop = viewH;
56
- break;
57
- case TexAlignAnchor.CENTER:
58
- default:
59
- extraLeft = viewW / 2;
60
- extraTop = viewH / 2;
61
- break;
62
- }
63
- return [texLeft + extraLeft, texTop + extraTop];
64
- };
65
- let TOKEN = 0;
66
- const _sfc_main = {
67
- props: {
68
- src: String,
69
- top: Number,
70
- left: Number,
71
- width: Number,
72
- height: Number,
73
- borderRadius: [String, Number],
74
- decorate: Object,
75
- animation: String,
76
- duration: Number,
77
- transform: String,
78
- transformOrigin: String,
79
- repeat: {
80
- type: Number,
81
- default: 1
82
- },
83
- delay: {
84
- type: Number,
85
- default: 0
86
- },
87
- easing: {
88
- type: String,
89
- default: "linear"
90
- },
91
- onAnimationEnd: Function,
92
- autoStart: {
93
- type: Boolean,
94
- default: false
95
- },
96
- texCoord: {
97
- type: Object
98
- }
99
- },
100
- setup(props) {
101
- return {
102
- animName: "browser-texture-anim-" + TOKEN++,
103
- animDiv: null,
104
- clipDiv: null,
105
- imgDiv: null,
106
- watcherHandlerList: []
107
- };
108
- },
109
- computed: {
110
- animSet() {
111
- return `${this.animName} ${this.duration / 1e3}s ${this.easing} ${this.delay / 1e3}s ${this.repeat === -1 ? "infinite" : this.repeat}`;
112
- },
113
- textureLayout() {
114
- if (!isNaN(this.texCoord?.width) && !isNaN(this.texCoord?.height)) {
115
- const texLeft = !isNaN(this.texCoord.left) ? this.texCoord.left : -this.texCoord.width / 2;
116
- const texTop = !isNaN(this.texCoord.top) ? this.texCoord.top : -this.texCoord.height / 2;
117
- const type = !isNaN(this.texCoord.alignAnchor) ? this.texCoord.alignAnchor : 5;
118
- const offset = getOffset(
119
- type,
120
- this.width,
121
- this.height,
122
- texLeft,
123
- texTop
124
- );
125
- const transition = this.decorate?.animTime ? `left ${this.decorate.animTime}s, top ${this.decorate.animTime}s` : "";
126
- return {
127
- position: "absolute",
128
- left: offset[0] + "px",
129
- top: offset[1] + "px",
130
- transition,
131
- width: this.texCoord.width + "px",
132
- height: this.texCoord.height + "px"
133
- };
134
- } else {
135
- return {
136
- position: "absolute",
137
- left: 0 + "px",
138
- top: 0 + "px",
139
- width: this.width + "px",
140
- height: this.height + "px"
141
- };
142
- }
143
- },
144
- maskStyle() {
145
- if (this.borderRadius) {
146
- const radiusObj = this._readRadius(this.borderRadius);
147
- return {
148
- left: this.left + "px",
149
- top: this.top + "px",
150
- borderRadius: `${radiusObj.topLeft}px ${radiusObj.topRight}px ${radiusObj.bottomLeft}px ${radiusObj.bottomRight}px`,
151
- width: this.width + "px",
152
- height: this.height + "px",
153
- overflow: "hidden"
154
- };
155
- } else if (this.decorate) {
156
- if (this.decorate.type == DECORATE_NINEPATCH_ALPHA_MIX) {
157
- const imageDspWidth = this.decorate.imageDspWidth > 0 ? this.decorate.imageDspWidth : this.decorate.imageWidth;
158
- const slideWidth = (this.decorate.imageWidth - this.decorate.centerWidth) / 2;
159
- const outset = Math.ceil(
160
- this.decorate.borderOutset * imageDspWidth / this.decorate.imageWidth
161
- );
162
- console.log("get mask style");
163
- const transitionTime = this.decorate.animTime;
164
- let decorate_url = this.decorate.url;
165
- if (this.decorate.url && this.decorate.url.startsWith("jsvtexturestore:")) {
166
- let view_texture = forgeTextureManager.GetImage2(this.decorate.url);
167
- decorate_url = `url(${view_texture.Source})`;
168
- }
169
- return {
170
- left: this.left + "px",
171
- top: this.top + "px",
172
- width: this.width + "px",
173
- height: this.height + "px",
174
- transition: `left ${transitionTime}s, top ${transitionTime}s, width ${transitionTime}s, height ${transitionTime}s`,
175
- webkitMaskBoxImageSource: decorate_url,
176
- webkitMaskBoxImageSlice: slideWidth,
177
- webkitMaskBoxImageWidth: Math.ceil(
178
- slideWidth * imageDspWidth / this.decorate.imageWidth
179
- ) + "px",
180
- webkitMaskBoxImageOutset: outset + "px",
181
- position: "absolute"
182
- };
183
- } else if (this.decorate.type == DECORATE_BORDER_RADIUS) {
184
- return {
185
- left: this.left + "px",
186
- top: this.top + "px",
187
- borderRadius: `${this.decorate.topLeft}px ${this.decorate.topRight}px ${this.decorate.bottomRight}px ${this.decorate.bottomLeft}`,
188
- width: this.width + "px",
189
- height: this.height + "px",
190
- overflow: "hidden"
191
- };
192
- }
193
- } else {
194
- return {
195
- left: this.left + "px",
196
- top: this.top + "px",
197
- width: this.width + "px",
198
- height: this.height + "px",
199
- overflow: "hidden"
200
- };
201
- }
202
- }
203
- },
204
- methods: {
205
- _readRadius(setting) {
206
- if (typeof setting == "number") {
207
- return {
208
- type: DECORATE_BORDER_RADIUS,
209
- topLeft: setting,
210
- topRight: setting,
211
- bottomRight: setting,
212
- bottomLeft: setting
213
- };
214
- } else if (typeof setting == "string" && setting.length > 0) {
215
- const pattern = /\d+/g;
216
- let match = setting.match(pattern);
217
- if (match.length > 0) {
218
- let top_left = match[0];
219
- let top_right = match.length > 1 ? match[1] : top_left;
220
- return {
221
- type: DECORATE_BORDER_RADIUS,
222
- topLeft: top_left,
223
- topRight: top_right,
224
- bottomRight: match.length > 2 ? match[2] : top_left,
225
- bottomLeft: match.length > 3 ? match[3] : top_right
226
- };
227
- }
228
- }
229
- return null;
230
- },
231
- start() {
232
- if (this.animDiv && this.animation) {
233
- this.animDiv.style.animation = this.animSet;
234
- }
235
- },
236
- insertKeyframe(animDefine) {
237
- const index = renderDocument.styleSheets[0].cssRules.length;
238
- renderDocument.styleSheets[0].insertRule(animDefine, index);
239
- },
240
- removeKeyframe(animName) {
241
- const styleSheetRef = renderDocument.styleSheets[0];
242
- const cssRulesRef = styleSheetRef.cssRules;
243
- for (let i = cssRulesRef.length - 1; i >= 0; i--) {
244
- if (cssRulesRef[i].name === animName) {
245
- styleSheetRef.deleteRule(i);
246
- break;
247
- }
248
- }
249
- }
250
- },
251
- mounted() {
252
- if (this.animation) {
253
- this.insertKeyframe("@keyframes " + this.animName + " " + this.animation);
254
- }
255
- this.$refs.root.jsvGetProxyView().RegisterOnProxyReady(() => {
256
- const root = this.$refs.root.jsvGetProxyView().HtmlGetElement();
257
- this.clipDiv = renderDocument.createElement("div");
258
- Object.assign(this.clipDiv.style, this.maskStyle);
259
- const textureLayout = this.textureLayout;
260
- this.animDiv = renderDocument.createElement("div");
261
- Object.assign(this.animDiv.style, textureLayout);
262
- this.animDiv.onanimationend = () => {
263
- this.animDiv.style.animation = null;
264
- this.onAnimationEnd?.();
265
- };
266
- this.imgDiv = renderDocument.createElement("div");
267
- this.imgDiv.style.width = textureLayout.width;
268
- this.imgDiv.style.height = textureLayout.height;
269
- this.imgDiv.style.backgroundImage = `url(${this.src})`;
270
- this.imgDiv.style.transform = this.transform;
271
- this.imgDiv.style.transformOrigin = this.transformOrigin;
272
- this.animDiv.appendChild(this.imgDiv);
273
- this.clipDiv.appendChild(this.animDiv);
274
- root.appendChild(this.clipDiv);
275
- });
276
- this.watcherHandlerList.push(
277
- this.$watch("left", (newValue) => {
278
- this.clipDiv.style.left = newValue + "px";
279
- })
280
- );
281
- this.watcherHandlerList.push(
282
- this.$watch("top", (newValue) => {
283
- this.clipDiv.style.top = newValue + "px";
284
- })
285
- );
286
- this.watcherHandlerList.push(
287
- this.$watch("width", (newValue) => {
288
- this.clipDiv.style.width = newValue + "px";
289
- })
290
- );
291
- this.watcherHandlerList.push(
292
- this.$watch("height", (newValue) => {
293
- this.clipDiv.style.height = newValue + "px";
294
- })
295
- );
296
- this.watcherHandlerList.push(
297
- this.$watch("textureLayout", (newValue) => {
298
- Object.assign(this.animDiv.style, newValue);
299
- this.imgDiv.style.width = newValue.width;
300
- this.imgDiv.style.height = newValue.height;
301
- })
302
- );
303
- if (this.autoStart) {
304
- setTimeout(() => {
305
- this.start();
306
- }, 0);
307
- }
308
- },
309
- beforeUnmount() {
310
- this.removeKeyframe(this.animName);
311
- for (let handler of this.watcherHandlerList) {
312
- handler?.();
313
- }
314
- this.watcherHandlerList = [];
315
- }
316
- };
317
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
318
- return openBlock(), createElementBlock("div", { ref: "root" }, null, 512);
319
- }
320
- const BrowserTextureAnim = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
321
-
322
- export { BrowserTextureAnim as default };