@shijiu/jsview-vue 2.3.151-test.0 → 3.0.0-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 (244) hide show
  1. package/bin/browser/BrowserAudio.mjs +200 -0
  2. package/bin/browser/BrowserJsvLatex.mjs +61 -0
  3. package/bin/export-sfc.mjs +8 -9
  4. package/bin/jsview-vue-common.mjs +9 -35
  5. package/bin/jsview-vue.mjs +22246 -23643
  6. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +9 -71
  7. package/bin/types/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +18 -2
  8. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Const.d.ts +4 -1
  9. package/bin/types/utils/JsViewEngineWidget/MetroWidget/DebugFrame.vue.d.ts +10 -7
  10. package/bin/types/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +19 -178
  11. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +19 -178
  12. package/bin/types/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +24 -3
  13. package/bin/types/utils/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +7 -1
  14. package/bin/types/utils/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +25 -5
  15. package/bin/types/utils/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +9 -47
  16. package/bin/types/utils/JsViewEngineWidget/MetroWidget/TaskManager.d.ts +2 -1
  17. package/bin/types/utils/JsViewEngineWidget/MetroWidget/Utils.d.ts +2 -0
  18. package/bin/types/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +1 -1
  19. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue.d.ts +40 -0
  20. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.d.ts +24 -0
  21. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.d.ts +19 -0
  22. package/bin/types/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.d.ts +42 -0
  23. package/bin/types/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +2 -1
  24. package/bin/types/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +2 -1
  25. package/bin/types/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +6 -4
  26. package/bin/types/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +9 -7
  27. package/bin/types/utils/JsViewEngineWidget/WidgetCommon.d.ts +17 -7
  28. package/bin/types/utils/JsViewEngineWidget/index.d.ts +3 -1
  29. package/bin/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +140 -7
  30. package/bin/types/utils/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +12 -11
  31. package/bin/types/utils/JsViewPlugin/JsvAudio/Events.d.ts +10 -10
  32. package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +204 -17
  33. package/bin/types/utils/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -1
  34. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.mts +11 -11
  35. package/bin/types/utils/JsViewPlugin/JsvAudio/version.d.ts +11 -11
  36. package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +0 -1
  37. package/bin/types/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +75 -12
  38. package/bin/types/utils/JsViewPlugin/JsvLatex/GetVersion.d.ts +14 -0
  39. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +88 -13
  40. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +1 -0
  41. package/bin/types/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +5 -1
  42. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.mts +39 -12
  43. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMedia.d.ts +120 -17
  44. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.d.ts +62 -0
  45. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue.d.ts +108 -29
  46. package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue.d.ts → JsvPlayerBrowser-0.9.vue.d.ts} +8 -7
  47. package/bin/types/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser-wasm.vue.d.ts +614 -0
  48. package/bin/types/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue.d.ts → JsvPlayerBrowser.vue.d.ts} +36 -34
  49. package/bin/types/utils/JsViewPlugin/JsvPlayer/index-0.9.d.ts +89 -30
  50. package/bin/types/utils/JsViewPlugin/JsvPlayer/index.d.ts +89 -30
  51. package/bin/types/utils/JsViewPlugin/JsvPlayer/version.d.mts +11 -11
  52. package/bin/types/utils/JsViewVueTools/BlobApi.d.ts +38 -0
  53. package/bin/types/utils/JsViewVueTools/DebugTool.d.ts +1 -1
  54. package/bin/types/utils/JsViewVueTools/DefaultKeyMap.d.ts +7 -7
  55. package/bin/types/utils/JsViewVueTools/FeatureActive.d.ts +1 -0
  56. package/bin/types/utils/JsViewVueTools/JsvInteractionMode.d.ts +6 -0
  57. package/bin/types/utils/JsViewVueTools/JsvRuntimeBridge.d.ts +3 -3
  58. package/bin/types/utils/JsViewVueTools/JsvTextTools.d.ts +1 -0
  59. package/bin/types/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.d.ts +43 -0
  60. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +1 -0
  61. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.d.ts +54 -0
  62. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +13 -0
  63. package/bin/types/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +2 -0
  64. package/bin/types/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +76 -26
  65. package/bin/types/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.d.ts +49 -0
  66. package/bin/types/utils/JsViewVueTools/JsvTextureStore/index.d.ts +2 -0
  67. package/bin/types/utils/JsViewVueTools/index.d.ts +4 -1
  68. package/bin/types/utils/JsViewVueWidget/Jsv3dDiv.vue.d.ts +10 -98
  69. package/bin/types/utils/JsViewVueWidget/Jsv3dStage.vue.d.ts +10 -114
  70. package/bin/types/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +20 -61
  71. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +44 -13
  72. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +12 -11
  73. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +5 -5
  74. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +16 -10
  75. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +21 -17
  76. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +19 -16
  77. package/bin/types/utils/JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts +7 -7
  78. package/bin/types/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +12 -66
  79. package/bin/types/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +73 -12
  80. package/bin/types/utils/JsViewVueWidget/JsvDashPath.vue.d.ts +59 -10
  81. package/bin/types/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue.d.ts +41 -81
  82. package/bin/types/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +17 -100
  83. package/bin/types/utils/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +13 -50
  84. package/bin/types/utils/JsViewVueWidget/JsvFilterView.vue.d.ts +50 -70
  85. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +32 -68
  86. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvFullScrAdjust.vue.d.ts +57 -74
  87. package/bin/types/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue.d.ts +41 -71
  88. package/bin/types/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +83 -14
  89. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +151 -18
  90. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +79 -83
  91. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/JsvFreeMoveActor.vue.d.ts +70 -0
  92. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +20 -0
  93. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +108 -5
  94. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +88 -3
  95. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +6 -1
  96. package/bin/types/utils/JsViewVueWidget/JsvGrid.vue.d.ts +19 -18
  97. package/bin/types/utils/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +34 -11
  98. package/bin/types/utils/JsViewVueWidget/JsvInput/EditViewOperator.d.ts +4 -1
  99. package/bin/types/utils/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +193 -6
  100. package/bin/types/utils/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +54 -11
  101. package/bin/types/utils/JsViewVueWidget/JsvMarquee.vue.d.ts +89 -11
  102. package/bin/types/utils/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +9 -8
  103. package/bin/types/utils/JsViewVueWidget/JsvMindMap/Geometry.d.ts +2 -2
  104. package/bin/types/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +170 -138
  105. package/bin/types/utils/JsViewVueWidget/JsvMindMap/rtree.d.ts +5 -5
  106. package/bin/types/utils/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +48 -72
  107. package/bin/types/utils/JsViewVueWidget/JsvNinePatch.vue.d.ts +139 -20
  108. package/bin/types/utils/JsViewVueWidget/JsvPieChart.vue.d.ts +56 -8
  109. package/bin/types/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +20 -11
  110. package/bin/types/utils/JsViewVueWidget/JsvProgressBar.vue.d.ts +63 -11
  111. package/bin/types/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +8 -7
  112. package/bin/types/utils/JsViewVueWidget/JsvRadarChart.vue.d.ts +95 -12
  113. package/bin/types/utils/JsViewVueWidget/JsvRipple/Constant.d.ts +2 -2
  114. package/bin/types/utils/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +51 -78
  115. package/bin/types/utils/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +5 -4
  116. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +84 -193
  117. package/bin/types/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +23 -148
  118. package/bin/types/utils/JsViewVueWidget/JsvSector.vue.d.ts +56 -9
  119. package/bin/types/utils/JsViewVueWidget/JsvSmoothSlideContainer.vue.d.ts +22 -67
  120. package/bin/types/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +44 -10
  121. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +47 -14
  122. package/bin/types/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +26 -67
  123. package/bin/types/utils/JsViewVueWidget/JsvSwiper/Indicator.vue.d.ts +7 -6
  124. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSmoothSwiper.vue.d.ts +147 -109
  125. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +173 -16
  126. package/bin/types/utils/JsViewVueWidget/JsvSwiper/JsvSwiper2.vue.d.ts +216 -139
  127. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue.d.ts +7 -6
  128. package/bin/types/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +101 -96
  129. package/bin/types/utils/JsViewVueWidget/JsvTextBox.vue.d.ts +89 -74
  130. package/bin/types/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +21 -20
  131. package/bin/types/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue.d.ts +43 -70
  132. package/bin/types/utils/JsViewVueWidget/JsvVideo.vue.d.ts +6 -5
  133. package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +62 -82
  134. package/bin/types/utils/JsViewVueWidget/JsvVisibleSensor/index.d.ts +95 -74
  135. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue.d.ts +51 -0
  136. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue.d.ts +105 -0
  137. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue.d.ts +51 -0
  138. package/bin/types/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue.d.ts +105 -0
  139. package/bin/types/utils/JsViewVueWidget/index.d.ts +5 -3
  140. package/package.json +2 -2
  141. package/tools/jsview-vue-build.mjs +13 -9
  142. package/tsconfig.json +2 -2
  143. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue +32 -16
  144. package/utils/JsViewEngineWidget/JsvFocus/JsvFocusHub.ts +24 -2
  145. package/utils/JsViewEngineWidget/MetroWidget/Const.ts +5 -0
  146. package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +183 -89
  147. package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +269 -122
  148. package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +989 -357
  149. package/utils/JsViewEngineWidget/MetroWidget/PageUpdater.ts +41 -23
  150. package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +138 -41
  151. package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +1 -0
  152. package/utils/JsViewEngineWidget/MetroWidget/Utils.ts +6 -0
  153. package/utils/JsViewEngineWidget/MetroWidget/WidgetRectInfo.ts +2 -1
  154. package/utils/JsViewEngineWidget/RectUtils.js +1 -1
  155. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavProvider.vue +50 -0
  156. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationAlgorithm.ts +260 -0
  157. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigationNode.ts +32 -0
  158. package/utils/JsViewEngineWidget/SpatialNavigator/SpatialNavigator.ts +236 -0
  159. package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +342 -174
  160. package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +101 -27
  161. package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +12 -5
  162. package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +109 -41
  163. package/utils/JsViewEngineWidget/WidgetCommon.ts +17 -7
  164. package/utils/JsViewEngineWidget/index.ts +7 -2
  165. package/utils/JsViewPlugin/JsvLatex/BrowserDomBuilder.js +46 -46
  166. package/utils/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue +54 -41
  167. package/utils/JsViewPlugin/JsvLatex/GetVersion.js +65 -0
  168. package/utils/JsViewPlugin/JsvLatex/JsvLatex.vue +54 -12
  169. package/utils/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.js +10 -0
  170. package/utils/JsViewPlugin/JsvLatex/JsvLatexProxy.vue +15 -2
  171. package/utils/JsViewPlugin/JsvLatex/PluginLoader.js +63 -31
  172. package/utils/JsViewPlugin/JsvLatex/version.mjs +26 -13
  173. package/utils/JsViewPlugin/JsvPlayer/GetVersion.js +2 -1
  174. package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +402 -23
  175. package/utils/JsViewPlugin/JsvPlayer/JsvMediaBrowserInterface.js +100 -0
  176. package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +363 -468
  177. package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer.vue → JsvPlayerBrowser-wasm.vue} +60 -10
  178. package/utils/JsViewPlugin/JsvPlayer/JsvPlayerBrowser.vue +511 -0
  179. package/utils/JsViewPlugin/JsvPlayer/index-0.9.js +52 -10
  180. package/utils/JsViewPlugin/JsvPlayer/index.js +58 -9
  181. package/utils/JsViewPlugin/JsvPlayer/package.json +8 -0
  182. package/utils/JsViewVueTools/BlobApi.ts +55 -0
  183. package/utils/JsViewVueTools/FeatureActive.ts +3 -0
  184. package/utils/JsViewVueTools/ForgeHandles.ts +3 -0
  185. package/utils/JsViewVueTools/JsvInteractionMode.js +16 -0
  186. package/utils/JsViewVueTools/JsvPreDownloader.ts +2 -2
  187. package/utils/JsViewVueTools/JsvRuntimeBridge.js +25 -18
  188. package/utils/JsViewVueTools/JsvTextTools.ts +9 -1
  189. package/utils/JsViewVueTools/JsvTextureStore/BitPalette/BitPalette.ts +180 -0
  190. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.ts +1 -0
  191. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/DrawHelper.ts +304 -0
  192. package/utils/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.ts +38 -0
  193. package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +16 -1
  194. package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +154 -69
  195. package/utils/JsViewVueTools/JsvTextureStore/Store.ts +1 -1
  196. package/utils/JsViewVueTools/JsvTextureStore/TextureBuilder.ts +92 -0
  197. package/utils/JsViewVueTools/JsvTextureStore/index.js +2 -0
  198. package/utils/JsViewVueTools/index.js +3 -1
  199. package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +111 -86
  200. package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +1 -1
  201. package/utils/JsViewVueWidget/JsvDragBox/JsvDragBox.vue +11 -2
  202. package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +1 -1
  203. package/utils/JsViewVueWidget/JsvEnableRenderBreak.vue +6 -0
  204. package/utils/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue +11 -5
  205. package/utils/JsViewVueWidget/JsvFlexCell/JsvScreenFlex.vue +3 -1
  206. package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +23 -11
  207. package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +242 -25
  208. package/utils/JsViewVueWidget/JsvFreeMoveActor/{FreeMoveActor.vue → JsvFreeMoveActor.vue} +1 -1
  209. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +11 -5
  210. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +118 -6
  211. package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +56 -14
  212. package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +2 -1
  213. package/utils/JsViewVueWidget/JsvInput/EditViewOperator.ts +11 -2
  214. package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +30 -2
  215. package/utils/JsViewVueWidget/JsvLine/JsvLine.vue +24 -7
  216. package/utils/JsViewVueWidget/JsvMarquee.vue +1 -1
  217. package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +12 -10
  218. package/utils/JsViewVueWidget/JsvNinePatch.vue +13 -8
  219. package/utils/JsViewVueWidget/JsvPieChart.vue +93 -70
  220. package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +32 -29
  221. package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +2 -1
  222. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +25 -3
  223. package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +0 -3
  224. package/utils/JsViewVueWidget/JsvSector.vue +66 -28
  225. package/utils/JsViewVueWidget/JsvTextBox.vue +30 -1
  226. package/utils/JsViewVueWidget/JsvTouchModeSwitcher.vue +56 -14
  227. package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +8 -6
  228. package/utils/JsViewVueWidget/TypesDiv/JsvPosterDiv.vue +54 -0
  229. package/utils/JsViewVueWidget/TypesDiv/JsvPosterImage.vue +88 -0
  230. package/utils/JsViewVueWidget/TypesDiv/JsvSmartDiv.vue +177 -0
  231. package/utils/JsViewVueWidget/TypesDiv/JsvSmartImage.vue +267 -0
  232. package/utils/JsViewVueWidget/index.js +6 -2
  233. package/bin/browser/BrowserAudio.vue.mjs +0 -258
  234. package/bin/browser/BrowserJsvLatex.vue.mjs +0 -145
  235. package/bin/types/utils/JsViewPlugin/JsvLatex/version.d.ts +0 -10
  236. package/bin/types/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.d.ts +0 -7
  237. package/bin/types/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +0 -78
  238. package/bin/types/utils/JsViewVueWidget/JsvPosterDiv.vue.d.ts +0 -63
  239. package/bin/types/utils/JsViewVueWidget/JsvPosterImage.vue.d.ts +0 -78
  240. package/utils/JsViewPlugin/JsvLatex/version.js +0 -24
  241. package/utils/JsViewVueTools/JsvTextureStore/DominantColor/GetDominantColor.ts +0 -36
  242. package/utils/JsViewVueWidget/JsvPosterDiv.vue +0 -56
  243. package/utils/JsViewVueWidget/JsvPosterImage.vue +0 -105
  244. /package/utils/JsViewPlugin/JsvPlayer/{BrowserJsvPlayer-0.9.vue → JsvPlayerBrowser-0.9.vue} +0 -0
@@ -1,78 +1,61 @@
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
- getWidth: () => any;
21
- getHeight: () => any;
22
- $props: {
23
- readonly background?: string | undefined;
24
- readonly askSize?: boolean | undefined;
25
- readonly onSized?: Function | undefined;
26
- readonly childWidth?: number | undefined;
27
- readonly childHeight?: number | undefined;
28
- };
29
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
30
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
31
- created?: ((() => void) | (() => void)[]) | undefined;
32
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
33
- mounted?: ((() => void) | (() => void)[]) | undefined;
34
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
35
- updated?: ((() => void) | (() => void)[]) | undefined;
36
- activated?: ((() => void) | (() => void)[]) | undefined;
37
- deactivated?: ((() => void) | (() => void)[]) | undefined;
38
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
39
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
40
- destroyed?: ((() => void) | (() => void)[]) | undefined;
41
- unmounted?: ((() => void) | (() => void)[]) | undefined;
42
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
43
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
44
- 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;
45
- };
46
- $forceUpdate: () => void;
47
- $nextTick: typeof import("vue").nextTick;
48
- $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;
49
- } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
50
- getWidth: () => any;
51
- getHeight: () => any;
52
- $props: {
53
- readonly background?: string | undefined;
54
- readonly askSize?: boolean | undefined;
55
- readonly onSized?: Function | undefined;
56
- readonly childWidth?: number | undefined;
57
- readonly childHeight?: number | undefined;
58
- };
59
- }> & {} & import("vue").ComponentCustomProperties & {};
60
- __isFragment?: undefined;
61
- __isTeleport?: undefined;
62
- __isSuspense?: undefined;
63
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
+ type __VLS_WithSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ childWidth: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ childHeight: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ askSize: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ onSized: {
21
+ type: FunctionConstructor;
22
+ default: null;
23
+ };
24
+ background: {
25
+ type: StringConstructor;
26
+ default: null;
27
+ };
28
+ }>, {
64
29
  getWidth: () => any;
65
30
  getHeight: () => any;
66
- $props: {
67
- readonly background?: string | undefined;
68
- readonly askSize?: boolean | undefined;
69
- readonly onSized?: Function | undefined;
70
- readonly childWidth?: number | undefined;
71
- readonly childHeight?: number | undefined;
31
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
32
+ childWidth: {
33
+ type: NumberConstructor;
34
+ default: number;
72
35
  };
73
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
74
- $slots: {
75
- default: (_: {}) => any;
36
+ childHeight: {
37
+ type: NumberConstructor;
38
+ default: number;
76
39
  };
77
- });
78
- export default _default;
40
+ askSize: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ onSized: {
45
+ type: FunctionConstructor;
46
+ default: null;
47
+ };
48
+ background: {
49
+ type: StringConstructor;
50
+ default: null;
51
+ };
52
+ }>> & Readonly<{}>, {
53
+ background: string;
54
+ askSize: boolean;
55
+ onSized: Function;
56
+ childWidth: number;
57
+ childHeight: number;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
59
+ type __VLS_Slots = {
60
+ default?: ((props: {}) => any) | undefined;
61
+ };
@@ -1,75 +1,45 @@
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
- getWidth: () => any;
21
- getHeight: () => any;
22
- $props: {
23
- readonly background?: string | undefined;
24
- readonly askSize?: boolean | undefined;
25
- readonly onSized?: Function | undefined;
26
- readonly style?: Record<string, any> | undefined;
27
- };
28
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
29
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
30
- created?: ((() => void) | (() => void)[]) | undefined;
31
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
32
- mounted?: ((() => void) | (() => void)[]) | undefined;
33
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
34
- updated?: ((() => void) | (() => void)[]) | undefined;
35
- activated?: ((() => void) | (() => void)[]) | undefined;
36
- deactivated?: ((() => void) | (() => void)[]) | undefined;
37
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
38
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
39
- destroyed?: ((() => void) | (() => void)[]) | undefined;
40
- unmounted?: ((() => void) | (() => void)[]) | undefined;
41
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
42
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
43
- 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;
44
- };
45
- $forceUpdate: () => void;
46
- $nextTick: typeof import("vue").nextTick;
47
- $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;
48
- } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
49
- getWidth: () => any;
50
- getHeight: () => any;
51
- $props: {
52
- readonly background?: string | undefined;
53
- readonly askSize?: boolean | undefined;
54
- readonly onSized?: Function | undefined;
55
- readonly style?: Record<string, any> | undefined;
56
- };
57
- }> & {} & import("vue").ComponentCustomProperties & {};
58
- __isFragment?: undefined;
59
- __isTeleport?: undefined;
60
- __isSuspense?: undefined;
61
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
+ type __VLS_WithSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ style: ObjectConstructor;
9
+ askSize: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ onSized: {
14
+ type: FunctionConstructor;
15
+ default: null;
16
+ };
17
+ background: {
18
+ type: StringConstructor;
19
+ default: null;
20
+ };
21
+ }>, {
62
22
  getWidth: () => any;
63
23
  getHeight: () => any;
64
- $props: {
65
- readonly background?: string | undefined;
66
- readonly askSize?: boolean | undefined;
67
- readonly onSized?: Function | undefined;
68
- readonly style?: Record<string, any> | undefined;
24
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
+ style: ObjectConstructor;
26
+ askSize: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
69
29
  };
70
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
71
- $slots: {
72
- default: (_: {}) => any;
30
+ onSized: {
31
+ type: FunctionConstructor;
32
+ default: null;
73
33
  };
74
- });
75
- export default _default;
34
+ background: {
35
+ type: StringConstructor;
36
+ default: null;
37
+ };
38
+ }>> & Readonly<{}>, {
39
+ background: string;
40
+ askSize: boolean;
41
+ onSized: Function;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ type __VLS_Slots = {
44
+ default?: ((props: {}) => any) | undefined;
45
+ };
@@ -1,16 +1,85 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ style: {
5
+ type: ObjectConstructor;
6
+ required: true;
7
+ };
8
+ duration: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ autoplay: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ reverseAnimate: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ shaderStr: {
21
+ type: StringConstructor;
22
+ required: true;
23
+ };
24
+ uniforms: {
25
+ type: ArrayConstructor;
26
+ };
27
+ textures: {
28
+ type: ArrayConstructor;
29
+ };
30
+ onEnd: {
31
+ type: FunctionConstructor;
32
+ };
33
+ onStart: {
34
+ type: FunctionConstructor;
35
+ };
36
+ loadComfirmed: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ }>, {
2
41
  startAnim: (alt_duration: any, on_timeout_func: any, reverse?: boolean) => number;
3
42
  stopAnim: () => void;
4
- $props: {
5
- readonly style?: Record<string, any> | undefined;
6
- readonly duration?: number | undefined;
7
- readonly autoplay?: boolean | undefined;
8
- readonly reverseAnimate?: boolean | undefined;
9
- readonly shaderStr?: string | undefined;
10
- readonly onEnd?: Function | undefined;
11
- readonly onStart?: Function | undefined;
12
- readonly uniforms?: unknown[] | undefined;
13
- readonly textures?: unknown[] | undefined;
14
- };
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
16
- export default _default;
43
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
+ style: {
45
+ type: ObjectConstructor;
46
+ required: true;
47
+ };
48
+ duration: {
49
+ type: NumberConstructor;
50
+ default: number;
51
+ };
52
+ autoplay: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ reverseAnimate: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ shaderStr: {
61
+ type: StringConstructor;
62
+ required: true;
63
+ };
64
+ uniforms: {
65
+ type: ArrayConstructor;
66
+ };
67
+ textures: {
68
+ type: ArrayConstructor;
69
+ };
70
+ onEnd: {
71
+ type: FunctionConstructor;
72
+ };
73
+ onStart: {
74
+ type: FunctionConstructor;
75
+ };
76
+ loadComfirmed: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ }>> & Readonly<{}>, {
81
+ autoplay: boolean;
82
+ duration: number;
83
+ reverseAnimate: boolean;
84
+ loadComfirmed: boolean;
85
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -6,6 +6,17 @@ import { NexusNode } from "./NexusNode";
6
6
  interface CmdListCreator {
7
7
  (builders: BuilderFactory): Array<Object>;
8
8
  }
9
+ interface ConditionConfig {
10
+ group?: number;
11
+ multiTimes?: boolean;
12
+ specName?: string | null;
13
+ shoudRenderBreak?: boolean;
14
+ }
15
+ interface ActionConfig {
16
+ xySpeedKeeps?: number;
17
+ xyAccKeeps?: number;
18
+ nexusRecv?: NexusNode | null;
19
+ }
9
20
  declare class BuilderFactory {
10
21
  private _SharedQuickConditionPackBuilder;
11
22
  private _SharedQuickActionPackBuilder;
@@ -16,39 +27,108 @@ declare class BuilderFactory {
16
27
  constructor(owner: ActorControl, callbackManager: CallbackManager, selfNexusRecv: NexusNode);
17
28
  /**
18
29
  * Condition
19
- * 获取创建 ConditionPack 的工厂对象
30
+ * 获取创建 Condition指令 的工厂对象
31
+ * 用法示例:
32
+ * actorControl.run((cmds)=>[ // cmds: 即为 BuilderFactory 的实例
33
+ * cmds.condition(...).条件指令(...).then([ // 条件指令: 例如 wallPosition()
34
+ * cmds.condition(...).其他条件指令(...), // 其他condition创建
35
+ * (actorState)=>{
36
+ * // 条件满足时预设的指令集
37
+ * console.log(
38
+ * "condition triggered",
39
+ * actorState.xPos, actorState.yPos,
40
+ * actorState.xSpd, actorState.ySpd,
41
+ * actorState.xAcc, actorState.yAcc);
42
+ * },
43
+ * ... // 其他command
44
+ * ]),
45
+ * ... // 其他command
46
+ * ]);
47
+ *
20
48
  * ConditionPack对应支持 .then(cmdPackList), 可传入同 Run 的处理队列
21
- * 可用方法见 ./SetCondition.js
22
- * @param {int} group 可选参数,默认为0, 有效值为0~3, 对应默认组, 1组, 2组, 3组, 便于remove时,按组进行清理
49
+ * cmdPackList中是新的由 action(), state(), condition(), (actorState)=>{} 组成的指令集
50
+ * 其中(actorState)=>{} condition().xxxx.then() 中独有的指令类型, 用于对接此condition触发后, 进行js端的回调
51
+ * actorState {
52
+ * xPos: number, // 当前drawX的值
53
+ * yPos: number, // 当前drawY的值
54
+ * xSpd: number, // 当前SpeedX的值
55
+ * ySpd: number, // 当前SpeedY的值
56
+ * xAcc: number, // 当前AccelerationX的值
57
+ * yAcc: number, // 当前AccelerationY的值
58
+ * }
59
+ *
60
+ * 创建condition时, 会记录当时的 baseOffset 坐标, 其设定值在进行比较时会转换成baseX和baseY坐标, 然后进行比较
61
+ * 所以不同担心div的style.top, style.left改变后, condition设置的条件中的坐标会发生偏移导致需要重新设置
62
+ * 比如: wallPosition(), boxPosition() 这种要常驻的condition
63
+ *
64
+ * boxPosition 用法示例(边界框与背景div尺寸一致):
65
+ * // div1 背景: (0, 0) -> (400, 400)
66
+ * cmds.condition({ multiTimes: true })
67
+ * .boxPosition(0, 0, 400, 400)
68
+ * .then([cmds.action().stopMoving(true)]);
69
+ *
70
+ * // div2 背景: (0, 0) -> (200, 200)
71
+ * cmds.condition({ multiTimes: true })
72
+ * .boxPosition(0, 0, 200, 200)
73
+ * .then([cmds.action().stopMoving(true)]);
74
+ *
75
+ * condition创建时, 可以用group和specName进行归类, 以便于后续按需清理, 例如:
76
+ * wallPosition()在一启动的时候有, 后续就没有了, 而还有其他condition存在, 不能使用state().clearConditions()全清理
77
+ *
78
+ * action指令内部也可能自己创建一些associated condition, 这些condition会被action执行完成后自动回收, 不需要通过state指令主动清理
79
+ *
80
+ * 可用方法见 @file://./SetCondition.ts
81
+ * @param {int | ConditionConfig} configOrGroup 可选参数,默认为0, 有效值为0~3, 对应默认组, 1组, 2组, 3组, 便于remove时,按组进行清理, 单个Anim中唯一, Anim之间可重名
82
+ * 也可以传入一个Object, 包含 group, multiTimes, specName, shoudRenderBreak 四个属性
23
83
  * @param {boolean} multiTimes 可选参数,默认为false, 是否要多次执行,
24
84
  * 若为单次, 当group未设定时自动作废,当group设定时,不作废但改为deactive状态
25
- * @param {string} specName 可选参数,默认null, 命名condition, 用于指定名字进行active/deactive动作的场景
85
+ * @param {string} specName 可选参数,默认null, 命名condition, 单个Anim中唯一, Anim之间可重名, 用于指定名字进行active/deactive动作的场景
26
86
  * @param {boolean} shoudRenderBreak 可选参数,默认false, 关联的回调是否会发起RenderBreak
27
- * @return {ConditionPackBuilder} ConditionPack 的工厂对象
87
+ * @return {ConditionPackBuilder} Condition指令的工厂对象
28
88
  */
29
- condition(group?: number, multiTimes?: boolean, specName?: string | null, shoudRenderBreak?: boolean): ConditionPackBuilder;
89
+ condition(configOrGroup?: ConditionConfig | number, multiTimes?: boolean, specName?: string | null, shoudRenderBreak?: boolean): ConditionPackBuilder;
30
90
  /**
31
91
  * Action
32
- * 获取创建 ActionPack 的工厂对象
33
- * 注意: ActionPack 是指会改变 speed 或 accelerate 并自动生成子condition的指令,
34
- * 每个新的Action会覆盖掉前一次的Action设置,包括其关联的condition,
35
- * 以及上一个action中的回调,以及上一个action中规划中的ActionEvent
36
- * 可用方法见 ./SetAction.js
92
+ * 获取创建 Action指令 的工厂对象
37
93
  *
38
- * @param {int} xySpeedKeeps xy轴上的速度是否保持(与新Action不冲突的才会被保留),
94
+ * 用法示例:
95
+ * actorControl.run((cmds)=>[ // cmds: 即为 BuilderFactory 的实例
96
+ * cmds.action(...).动作指令(...), // 动作指令: 例如 teleportOffset()
97
+ * ... // 其他command
98
+ * ]);
99
+ *
100
+ * Action主要是改变speed和accelerate的值,在Action指令中还包含一些综合指令, 例如:
101
+ * brakeToPosition: 通过内部创建一些associated condition来实现减速并停止到目标位置
102
+ * setSpdAndAccel: 同时设置速度和加速度,并提供拐点回调(用于抛物线处理)
103
+ *
104
+ * Action有个重要个规则: 一个FreeMoveActor中, 一个时间只会激活一条Action指令,
105
+ * 当下一条Action指令激活时, 会默认自动重置因为上一条Action而改变的SpeedX/Y(重置为0), AccelerationX/Y(重置为0), 以及其associated condition
106
+ * 但也可以进行主动保持, 通过 xySpeedKeeps 和 xyAccKeeps 参数控制
107
+ *
108
+ * 可用方法见 @file://./SetAction.ts
109
+ *
110
+ * @param {int | ActionConfig} configOrSpeedKeeps xy轴上的速度是否保持(与新Action不冲突的才会被保留),
39
111
  * x轴保持为1, y轴保持为2,可"与或"让两个轴都保持
112
+ * 也可以传入一个Object, 包含 xySpeedKeeps, xyAccKeeps, nexusRecv 三个属性
40
113
  * @param {int} xyAccKeeps xy轴上的加速度是否保持(与新Action不冲突的才会被保留),
41
114
  * x轴保持为1, y轴保持为2,可"与或"让两个轴都保持
42
115
  * @param {NexusNode} nexusRecv 此动作发出的 nexusEvent 的接受者
43
- * @return {ActionPackBuilder} ActionPack 的工厂对象
116
+ * @return {ActionPackBuilder} Action指令的工厂对象
44
117
  */
45
- action(xySpeedKeeps?: number, xyAccKeeps?: number, nexusRecv?: NexusNode | null): ActionPackBuilder;
118
+ action(configOrSpeedKeeps?: ActionConfig | number, xyAccKeeps?: number, nexusRecv?: NexusNode): ActionPackBuilder;
46
119
  /**
47
120
  * State
48
- * 获取创建 StatePack 的工厂对象
121
+ * 获取创建 State指令 的工厂对象
122
+ *
123
+ * 用法示例:
124
+ * actorControl.run((cmds)=>[ // cmds: 即为 BuilderFactory 的实例
125
+ * cmds.state(...).状态指令(...), // 状态指令: 例如 clearConditions()
126
+ * ... // 其他command
127
+ * ]);
128
+ *
49
129
  * 在下一帧运行前的设置值,例如清理condition, 或者在下一帧运动的前调整启动运动的位置
50
- * 可用方法见 ./SetState.js
51
- * @return {StatePackBuilder} StatePack 的工厂对象
130
+ * 可用方法见 @file://./SetState.ts
131
+ * @return {StatePackBuilder} State指令的工厂对象
52
132
  */
53
133
  state(): StatePackBuilder;
54
134
  }
@@ -62,10 +142,43 @@ declare class ActorControl {
62
142
  private _CondCycleEndList;
63
143
  private _Builders;
64
144
  constructor();
145
+ /**
146
+ * 内部API
147
+ *
148
+ * asSizeMode
149
+ */
65
150
  asSizeMode(): void;
151
+ /**
152
+ * 内部API
153
+ *
154
+ * bindForgeView
155
+ * 为普通的div创建ActorControl控制
156
+ *
157
+ * @param {any} bindView forgeView实例
158
+ * @param {boolean} instantActive 是否立即激活动画
159
+ */
66
160
  bindForgeView(bindView: any, instantActive: boolean): void;
67
161
  /**
68
- * run 执行编排好的intent集合
162
+ * run 创建并执行编排好的指令队列
163
+ *
164
+ * 用法为
165
+ * actorControl.run((cmds)=>[ // 指令队列
166
+ * cmds.state(...).状态指令(...),
167
+ * cmds.action(...).动作指令(...),
168
+ * cmds.condition(...).条件指令(...).then([
169
+ * // 条件满足时预设的指令集队列
170
+ * cmds.condition(...).其他条件指令(...),
171
+ * (actorState)=>{
172
+ * console.log(
173
+ * "condition triggered",
174
+ * actorState.xPos, actorState.yPos,
175
+ * actorState.xSpd, actorState.ySpd,
176
+ * actorState.xAcc, actorState.yAcc);
177
+ * },
178
+ * ...
179
+ * ]),
180
+ * ...
181
+ * ]);
69
182
  *
70
183
  * @param {CmdListCreator} commandsCreator
71
184
  * 命令指令队列创建回调
@@ -74,16 +187,36 @@ declare class ActorControl {
74
187
  */
75
188
  run(commandsCreator: CmdListCreator | undefined): void;
76
189
  _WrappedRun(cmdPackList: Array<Object>): void;
190
+ /**
191
+ * 内部API
192
+ *
193
+ * getBindedAnim
194
+ */
77
195
  getBindedAnim(): any;
196
+ /**
197
+ * 内部API
198
+ *
199
+ * getBindedView
200
+ */
78
201
  getBindedView(): any;
79
202
  /**
80
203
  * addCondCycleListener
81
204
  * 追加 cond cycle listener,可以根据start和end来进行callback时序排序
82
205
  *
206
+ * 应对场景为, 在condition的 (ActorState)=>{} 回调中,
207
+ * 当一帧中condition的多个回调发生时(可能复数的condition被触发,也可能是一个condition有多个回调), 协调这些回调的处理逻辑的场景
208
+ *
83
209
  * @param {Function} startCycleCallback 开始执行一帧的js回调(condition的callback)
84
210
  * @param {Function} endCycleCallback 执行一帧的js回调完毕
85
211
  */
86
212
  addCondCycleListener(startCycleCallback: Function, endCycleCallback: Function): void;
213
+ /**
214
+ * removeCondCycleListener
215
+ * 移除由 addCondCycleListener 加入的回调
216
+ *
217
+ * @param {Function} startCycleCallback 开始执行一帧的js回调(condition的callback)
218
+ * @param {Function} endCycleCallback 执行一帧的js回调完毕
219
+ */
87
220
  removeCondCycleListener(startCycleCallback: Function, endCycleCallback: Function): void;
88
221
  _OnEchoEvent(retJson: string): void;
89
222
  _EnsureAnim(): void;