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