@dcloudio/uni-app-x 0.7.112 → 0.7.113

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 (379) hide show
  1. package/package.json +1 -1
  2. package/types/dom2-internal/UniNativeView.d.ts +1 -0
  3. package/types/dom2-internal/UniPage.d.ts +16 -0
  4. package/types/native/CSSStyleDeclaration.d.ts +172 -172
  5. package/types/native/CanvasRenderingContext2D.d.ts +4720 -4720
  6. package/types/native/DrawableContext.d.ts +1893 -1893
  7. package/types/native/IUniElement.d.ts +7468 -7468
  8. package/types/native/IUniNativeViewElement.d.ts +327 -327
  9. package/types/native/SnapshotOptions.d.ts +337 -62
  10. package/types/native/UniPage.d.ts +1305 -1305
  11. package/types/native/UniResizeObserver.d.ts +749 -749
  12. package/types/native/UniSwiperAnimationFinishEvent.d.ts +59 -59
  13. package/types/native/UniSwiperChangeEvent.d.ts +58 -58
  14. package/types/page.d.ts +3154 -3112
  15. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1672 -911
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +126 -126
  19. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +14 -14
  20. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +154 -154
  21. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +14 -14
  22. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/global.d.ts +55 -0
  23. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/index.d.ts +27 -0
  24. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/interface.d.ts +1155 -0
  25. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +9 -6
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +5 -3
  27. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +978 -972
  28. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +25 -0
  29. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +12 -0
  30. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -0
  31. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +358 -358
  32. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
  33. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +78 -78
  34. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +490 -479
  35. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -214
  36. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +126 -126
  37. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +30 -30
  38. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +39 -0
  39. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +19 -0
  40. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +856 -0
  41. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  42. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +147 -147
  43. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +397 -397
  44. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +6363 -6359
  45. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +554 -554
  46. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2149 -2149
  47. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1340 -1340
  48. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1707 -1707
  49. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +307 -307
  50. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +310 -310
  51. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
  52. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +129 -129
  53. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +757 -757
  54. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +5881 -5879
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +442 -442
  56. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/global.d.ts +9 -0
  57. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/index.d.ts +5 -0
  58. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/interface.d.ts +0 -0
  59. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +171 -171
  60. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  61. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +536 -536
  62. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +2914 -2910
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +24 -24
  64. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +208 -208
  65. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +785 -785
  66. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4243 -4243
  67. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1979 -1963
  68. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +5 -3
  69. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +229 -229
  70. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +753 -753
  71. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +84 -84
  72. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +790 -788
  73. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +447 -447
  74. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +498 -498
  75. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1552 -1548
  76. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +30 -30
  78. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2513 -2513
  79. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +81 -81
  80. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +351 -351
  81. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +107 -107
  82. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +584 -584
  83. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -722
  84. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +292 -292
  85. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +358 -358
  86. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +657 -657
  87. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/global.d.ts +9 -0
  88. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/index.d.ts +5 -0
  89. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/interface.d.ts +0 -0
  90. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1010 -1010
  91. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/global.d.ts +47 -0
  92. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/index.d.ts +23 -0
  93. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/interface.d.ts +926 -0
  94. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/global.d.ts +29 -0
  95. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/index.d.ts +14 -0
  96. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +452 -0
  97. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1442 -1442
  98. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +220 -220
  99. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +65 -65
  100. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +981 -981
  101. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  102. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +1155 -0
  103. package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +38 -0
  104. package/types/uni/uts-plugin-component/.temp/uni-camera.ts +52 -0
  105. package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +976 -0
  106. package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +976 -0
  107. package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +171 -0
  108. package/types/uni/uts-plugin-component/.temp/uni-editor.ts +237 -0
  109. package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +2 -0
  110. package/types/uni/uts-plugin-component/.temp/uni-form.ts +1 -0
  111. package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
  112. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +56 -0
  113. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +88 -0
  114. package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +2 -0
  115. package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +2 -0
  116. package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +2 -0
  117. package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +1 -0
  118. package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
  119. package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +2 -0
  120. package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +2 -0
  121. package/types/uni/uts-plugin-component/.temp/uni-progress.ts +1 -0
  122. package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +7 -0
  123. package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +12 -0
  124. package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
  125. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +936 -0
  126. package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +134 -0
  127. package/types/uni/uts-plugin-component/.temp/uni-video.ts +180 -0
  128. package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +452 -0
  129. package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +51 -0
  130. package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +86 -0
  131. package/types/uni/uts-plugin-component/global.d.ts +79 -0
  132. package/types/uni/uts-plugin-component/index.d.ts +79 -0
  133. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +29 -0
  134. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +14 -0
  135. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +1673 -0
  136. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +25 -0
  137. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  138. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +226 -0
  139. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +11 -0
  140. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +5 -0
  141. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +79 -0
  142. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +59 -0
  143. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +29 -0
  144. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  145. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/global.d.ts +9 -0
  146. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/index.d.ts +5 -0
  147. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  148. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +11 -0
  149. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +5 -0
  150. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +79 -0
  151. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +978 -976
  152. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -976
  153. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +25 -0
  154. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +12 -0
  155. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +423 -0
  156. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +33 -0
  157. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +16 -0
  158. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +499 -0
  159. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +45 -0
  160. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +22 -0
  161. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +217 -0
  162. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +33 -0
  163. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +16 -0
  164. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +3379 -0
  165. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +21 -0
  166. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +10 -0
  167. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +153 -0
  168. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +19 -0
  169. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +9 -0
  170. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -0
  171. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +21 -0
  172. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +10 -0
  173. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +560 -0
  174. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +15 -0
  175. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +7 -0
  176. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -0
  177. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +23 -0
  178. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +11 -0
  179. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +158 -0
  180. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +29 -0
  181. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +14 -0
  182. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +2304 -0
  183. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +39 -0
  184. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +19 -0
  185. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +856 -0
  186. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/global.d.ts +25 -0
  187. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/index.d.ts +13 -0
  188. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +181 -0
  189. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +17 -0
  190. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +8 -0
  191. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +338 -0
  192. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +27 -0
  193. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +13 -0
  194. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +147 -0
  195. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +81 -0
  196. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +40 -0
  197. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +397 -0
  198. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +151 -0
  199. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -0
  200. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +6428 -0
  201. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +11 -0
  202. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +5 -0
  203. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +37 -0
  204. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +13 -0
  205. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +6 -0
  206. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +620 -0
  207. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +15 -0
  208. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +7 -0
  209. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2220 -0
  210. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +17 -0
  211. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +8 -0
  212. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1406 -0
  213. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +15 -0
  214. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +7 -0
  215. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1774 -0
  216. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +11 -0
  217. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/index.d.ts +5 -0
  218. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +82 -0
  219. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +13 -0
  220. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +6 -0
  221. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +374 -0
  222. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +13 -0
  223. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +6 -0
  224. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +377 -0
  225. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +21 -0
  226. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +11 -0
  227. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -0
  228. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +33 -0
  229. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +16 -0
  230. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +420 -0
  231. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +23 -0
  232. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +11 -0
  233. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +199 -0
  234. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +37 -0
  235. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +18 -0
  236. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +757 -0
  237. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +33 -0
  238. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +16 -0
  239. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +6084 -0
  240. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +13 -0
  241. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +6 -0
  242. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +508 -0
  243. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +25 -0
  244. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +12 -0
  245. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +125 -0
  246. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +17 -0
  247. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +8 -0
  248. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +171 -0
  249. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +45 -0
  250. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +22 -0
  251. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +234 -0
  252. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +29 -0
  253. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +14 -0
  254. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +603 -0
  255. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +61 -0
  256. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +30 -0
  257. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +3443 -0
  258. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +9 -0
  259. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +5 -0
  260. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +3 -0
  261. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +9 -0
  262. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  263. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +3 -0
  264. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +29 -0
  265. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +14 -0
  266. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +386 -0
  267. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +157 -0
  268. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +78 -0
  269. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +5245 -0
  270. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +43 -0
  271. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +21 -0
  272. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +291 -0
  273. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +69 -0
  274. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +34 -0
  275. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +1047 -0
  276. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +109 -0
  277. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +54 -0
  278. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +4462 -0
  279. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +71 -0
  280. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +35 -0
  281. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +2142 -0
  282. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +9 -0
  283. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +5 -0
  284. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  285. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +17 -0
  286. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +9 -0
  287. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +48 -0
  288. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +25 -0
  289. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +12 -0
  290. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +256 -0
  291. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +29 -0
  292. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +14 -0
  293. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +823 -0
  294. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +27 -0
  295. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +13 -0
  296. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +155 -0
  297. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +33 -0
  298. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +16 -0
  299. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +856 -0
  300. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +9 -0
  301. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +5 -0
  302. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +3 -0
  303. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +9 -0
  304. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +5 -0
  305. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  306. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +9 -0
  307. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +5 -0
  308. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +5 -0
  309. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/global.d.ts +19 -0
  310. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/index.d.ts +10 -0
  311. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/interface.d.ts +26 -0
  312. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +47 -0
  313. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +23 -0
  314. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +520 -0
  315. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +31 -0
  316. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +15 -0
  317. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +568 -0
  318. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +33 -0
  319. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +16 -0
  320. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +1693 -0
  321. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +29 -0
  322. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +14 -0
  323. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +191 -0
  324. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +21 -0
  325. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +10 -0
  326. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +2999 -0
  327. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +21 -0
  328. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +10 -0
  329. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +713 -0
  330. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +59 -0
  331. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +29 -0
  332. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +2731 -0
  333. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +11 -0
  334. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +5 -0
  335. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +81 -0
  336. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +25 -0
  337. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +12 -0
  338. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +429 -0
  339. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  340. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  341. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +314 -0
  342. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +41 -0
  343. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +20 -0
  344. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +584 -0
  345. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +9 -0
  346. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +5 -0
  347. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -0
  348. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +27 -0
  349. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +13 -0
  350. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -0
  351. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +47 -0
  352. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +23 -0
  353. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +446 -0
  354. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +21 -0
  355. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +10 -0
  356. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +330 -0
  357. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +79 -0
  358. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +39 -0
  359. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +1030 -0
  360. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +149 -0
  361. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +74 -0
  362. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +1221 -0
  363. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +53 -0
  364. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +26 -0
  365. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +1141 -0
  366. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -22
  367. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -11
  368. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +862 -872
  369. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +4 -14
  370. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +2 -7
  371. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +14 -51
  372. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +113 -0
  373. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +56 -0
  374. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +1661 -0
  375. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +17 -17
  376. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +59 -0
  377. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +29 -0
  378. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +1939 -0
  379. package/types/vue/LifeCycle.d.ts +865 -854
@@ -1,1893 +1,1893 @@
1
- // TODO 需要 export 以支持 declare global,否则会报错无法扩展全局接口
2
- export type DrawableContextColorString = string.ColorString
3
-
4
- declare global {
5
-
6
- /**
7
- * @package io.dcloud.uniapp.runtime
8
- * @uniPlatform {
9
- * "app": {
10
- * "android": {
11
- * "osVer": "5.0",
12
- * "uniVer": "x",
13
- * "unixVer": "3.9"
14
- * },
15
- * "ios": {
16
- * "osVer": "12.0",
17
- * "uniVer": "x",
18
- * "unixVer": "4.11"
19
- * },
20
- * "harmony": {
21
- * "osVer": "x",
22
- * "uniVer": "x",
23
- * "unixVer": "4.61",
24
- * "unixvVer": "x"
25
- * }
26
- * },
27
- * "mp": {
28
- * "weixin": {
29
- * "hostVer": "√",
30
- * "uniVer": "x",
31
- * "unixVer": "x"
32
- * },
33
- * "alipay": {
34
- * "hostVer": "√",
35
- * "uniVer": "x",
36
- * "unixVer": "x"
37
- * },
38
- * "baidu": {
39
- * "hostVer": "√",
40
- * "uniVer": "x",
41
- * "unixVer": "x"
42
- * },
43
- * "toutiao": {
44
- * "hostVer": "√",
45
- * "uniVer": "x",
46
- * "unixVer": "x"
47
- * },
48
- * "lark": {
49
- * "hostVer": "√",
50
- * "uniVer": "x",
51
- * "unixVer": "x"
52
- * },
53
- * "qq": {
54
- * "hostVer": "√",
55
- * "uniVer": "x",
56
- * "unixVer": "x"
57
- * },
58
- * "kuaishou": {
59
- * "hostVer": "√",
60
- * "uniVer": "x",
61
- * "unixVer": "x"
62
- * },
63
- * "jd": {
64
- * "hostVer": "√",
65
- * "uniVer": "x",
66
- * "unixVer": "x"
67
- * }
68
- * },
69
- * "web": {
70
- * "uniVer": "x",
71
- * "unixVer": "x"
72
- * }
73
- * }
74
- */
75
- interface DrawableContext {
76
- /**
77
- * 设置字体大小
78
- * @defaultValue 10px
79
- * @uniPlatform {
80
- * "app": {
81
- * "android": {
82
- * "osVer": "5.0",
83
- * "uniVer": "x",
84
- * "unixVer": "3.9"
85
- * },
86
- * "ios": {
87
- * "osVer": "12.0",
88
- * "uniVer": "x",
89
- * "unixVer": "4.11"
90
- * },
91
- * "harmony": {
92
- * "osVer": "x",
93
- * "uniVer": "x",
94
- * "unixVer": "4.61",
95
- * "unixvVer": "x"
96
- * }
97
- * },
98
- * "mp": {
99
- * "weixin": {
100
- * "hostVer": "√",
101
- * "uniVer": "x",
102
- * "unixVer": "x"
103
- * },
104
- * "alipay": {
105
- * "hostVer": "√",
106
- * "uniVer": "x",
107
- * "unixVer": "x"
108
- * },
109
- * "baidu": {
110
- * "hostVer": "√",
111
- * "uniVer": "x",
112
- * "unixVer": "x"
113
- * },
114
- * "toutiao": {
115
- * "hostVer": "√",
116
- * "uniVer": "x",
117
- * "unixVer": "x"
118
- * },
119
- * "lark": {
120
- * "hostVer": "√",
121
- * "uniVer": "x",
122
- * "unixVer": "x"
123
- * },
124
- * "qq": {
125
- * "hostVer": "√",
126
- * "uniVer": "x",
127
- * "unixVer": "x"
128
- * },
129
- * "kuaishou": {
130
- * "hostVer": "√",
131
- * "uniVer": "x",
132
- * "unixVer": "x"
133
- * },
134
- * "jd": {
135
- * "hostVer": "√",
136
- * "uniVer": "x",
137
- * "unixVer": "x"
138
- * }
139
- * },
140
- * "web": {
141
- * "uniVer": "x",
142
- * "unixVer": "x"
143
- * }
144
- * }
145
- */
146
- font: string
147
- /**
148
- * 设置填充颜色
149
- * @defaultValue #000 (黑色)
150
- * @uniPlatform {
151
- * "app": {
152
- * "android": {
153
- * "osVer": "5.0",
154
- * "uniVer": "x",
155
- * "unixVer": "3.9"
156
- * },
157
- * "ios": {
158
- * "osVer": "12.0",
159
- * "uniVer": "x",
160
- * "unixVer": "4.11"
161
- * },
162
- * "harmony": {
163
- * "osVer": "x",
164
- * "uniVer": "x",
165
- * "unixVer": "4.61",
166
- * "unixvVer": "x"
167
- * }
168
- * },
169
- * "mp": {
170
- * "weixin": {
171
- * "hostVer": "√",
172
- * "uniVer": "x",
173
- * "unixVer": "x"
174
- * },
175
- * "alipay": {
176
- * "hostVer": "√",
177
- * "uniVer": "x",
178
- * "unixVer": "x"
179
- * },
180
- * "baidu": {
181
- * "hostVer": "√",
182
- * "uniVer": "x",
183
- * "unixVer": "x"
184
- * },
185
- * "toutiao": {
186
- * "hostVer": "√",
187
- * "uniVer": "x",
188
- * "unixVer": "x"
189
- * },
190
- * "lark": {
191
- * "hostVer": "√",
192
- * "uniVer": "x",
193
- * "unixVer": "x"
194
- * },
195
- * "qq": {
196
- * "hostVer": "√",
197
- * "uniVer": "x",
198
- * "unixVer": "x"
199
- * },
200
- * "kuaishou": {
201
- * "hostVer": "√",
202
- * "uniVer": "x",
203
- * "unixVer": "x"
204
- * },
205
- * "jd": {
206
- * "hostVer": "√",
207
- * "uniVer": "x",
208
- * "unixVer": "x"
209
- * }
210
- * },
211
- * "web": {
212
- * "uniVer": "x",
213
- * "unixVer": "x"
214
- * }
215
- * }
216
- */
217
- fillStyle: DrawableContextColorString
218
- /**
219
- * 指定如何绘制每一条线条末端的属性,可选值:`butt`线段末端以方形结束;`round`线段末端以圆形结束;`square`线段末端以方形结束,但是会增加一个一半宽度的矩形区域。
220
- * @defaultValue butt
221
- * @uniPlatform {
222
- * "app": {
223
- * "android": {
224
- * "osVer": "5.0",
225
- * "uniVer": "x",
226
- * "unixVer": "3.9"
227
- * },
228
- * "ios": {
229
- * "osVer": "12.0",
230
- * "uniVer": "x",
231
- * "unixVer": "4.11"
232
- * },
233
- * "harmony": {
234
- * "osVer": "x",
235
- * "uniVer": "x",
236
- * "unixVer": "4.61",
237
- * "unixvVer": "x"
238
- * }
239
- * },
240
- * "mp": {
241
- * "weixin": {
242
- * "hostVer": "√",
243
- * "uniVer": "x",
244
- * "unixVer": "x"
245
- * },
246
- * "alipay": {
247
- * "hostVer": "√",
248
- * "uniVer": "x",
249
- * "unixVer": "x"
250
- * },
251
- * "baidu": {
252
- * "hostVer": "√",
253
- * "uniVer": "x",
254
- * "unixVer": "x"
255
- * },
256
- * "toutiao": {
257
- * "hostVer": "√",
258
- * "uniVer": "x",
259
- * "unixVer": "x"
260
- * },
261
- * "lark": {
262
- * "hostVer": "√",
263
- * "uniVer": "x",
264
- * "unixVer": "x"
265
- * },
266
- * "qq": {
267
- * "hostVer": "√",
268
- * "uniVer": "x",
269
- * "unixVer": "x"
270
- * },
271
- * "kuaishou": {
272
- * "hostVer": "√",
273
- * "uniVer": "x",
274
- * "unixVer": "x"
275
- * },
276
- * "jd": {
277
- * "hostVer": "√",
278
- * "uniVer": "x",
279
- * "unixVer": "x"
280
- * }
281
- * },
282
- * "web": {
283
- * "uniVer": "x",
284
- * "unixVer": "x"
285
- * }
286
- * }
287
- */
288
- lineCap: string
289
- /**
290
- * 设置虚线偏移量
291
- * @uniPlatform {
292
- * "app": {
293
- * "android": {
294
- * "osVer": "5.0",
295
- * "uniVer": "x",
296
- * "unixVer": "3.9"
297
- * },
298
- * "ios": {
299
- * "osVer": "12.0",
300
- * "uniVer": "x",
301
- * "unixVer": "4.11"
302
- * },
303
- * "harmony": {
304
- * "osVer": "x",
305
- * "uniVer": "x",
306
- * "unixVer": "4.61",
307
- * "unixvVer": "x"
308
- * }
309
- * },
310
- * "mp": {
311
- * "weixin": {
312
- * "hostVer": "√",
313
- * "uniVer": "x",
314
- * "unixVer": "x"
315
- * },
316
- * "alipay": {
317
- * "hostVer": "√",
318
- * "uniVer": "x",
319
- * "unixVer": "x"
320
- * },
321
- * "baidu": {
322
- * "hostVer": "√",
323
- * "uniVer": "x",
324
- * "unixVer": "x"
325
- * },
326
- * "toutiao": {
327
- * "hostVer": "√",
328
- * "uniVer": "x",
329
- * "unixVer": "x"
330
- * },
331
- * "lark": {
332
- * "hostVer": "√",
333
- * "uniVer": "x",
334
- * "unixVer": "x"
335
- * },
336
- * "qq": {
337
- * "hostVer": "√",
338
- * "uniVer": "x",
339
- * "unixVer": "x"
340
- * },
341
- * "kuaishou": {
342
- * "hostVer": "√",
343
- * "uniVer": "x",
344
- * "unixVer": "x"
345
- * },
346
- * "jd": {
347
- * "hostVer": "√",
348
- * "uniVer": "x",
349
- * "unixVer": "x"
350
- * }
351
- * },
352
- * "web": {
353
- * "uniVer": "x",
354
- * "unixVer": "x"
355
- * }
356
- * }
357
- */
358
- lineDashOffset: number
359
- /**
360
- * 设置 2 个长度不为 0 的线条相连部分如何连接在一起的属性,可选值:`bevel`斜角;`round`圆角;`miter`尖角。
361
- * @defaultValue miter
362
- * @uniPlatform {
363
- * "app": {
364
- * "android": {
365
- * "osVer": "5.0",
366
- * "uniVer": "x",
367
- * "unixVer": "3.9"
368
- * },
369
- * "ios": {
370
- * "osVer": "12.0",
371
- * "uniVer": "x",
372
- * "unixVer": "4.11"
373
- * },
374
- * "harmony": {
375
- * "osVer": "x",
376
- * "uniVer": "x",
377
- * "unixVer": "4.61",
378
- * "unixvVer": "x"
379
- * }
380
- * },
381
- * "mp": {
382
- * "weixin": {
383
- * "hostVer": "√",
384
- * "uniVer": "x",
385
- * "unixVer": "x"
386
- * },
387
- * "alipay": {
388
- * "hostVer": "√",
389
- * "uniVer": "x",
390
- * "unixVer": "x"
391
- * },
392
- * "baidu": {
393
- * "hostVer": "√",
394
- * "uniVer": "x",
395
- * "unixVer": "x"
396
- * },
397
- * "toutiao": {
398
- * "hostVer": "√",
399
- * "uniVer": "x",
400
- * "unixVer": "x"
401
- * },
402
- * "lark": {
403
- * "hostVer": "√",
404
- * "uniVer": "x",
405
- * "unixVer": "x"
406
- * },
407
- * "qq": {
408
- * "hostVer": "√",
409
- * "uniVer": "x",
410
- * "unixVer": "x"
411
- * },
412
- * "kuaishou": {
413
- * "hostVer": "√",
414
- * "uniVer": "x",
415
- * "unixVer": "x"
416
- * },
417
- * "jd": {
418
- * "hostVer": "√",
419
- * "uniVer": "x",
420
- * "unixVer": "x"
421
- * }
422
- * },
423
- * "web": {
424
- * "uniVer": "x",
425
- * "unixVer": "x"
426
- * }
427
- * }
428
- */
429
- lineJoin: string
430
- /**
431
- * 设置线条的宽度
432
- * @defaultValue 1px
433
- * @uniPlatform {
434
- * "app": {
435
- * "android": {
436
- * "osVer": "5.0",
437
- * "uniVer": "x",
438
- * "unixVer": "3.9"
439
- * },
440
- * "ios": {
441
- * "osVer": "12.0",
442
- * "uniVer": "x",
443
- * "unixVer": "4.11"
444
- * },
445
- * "harmony": {
446
- * "osVer": "x",
447
- * "uniVer": "x",
448
- * "unixVer": "4.61",
449
- * "unixvVer": "x"
450
- * }
451
- * },
452
- * "mp": {
453
- * "weixin": {
454
- * "hostVer": "√",
455
- * "uniVer": "x",
456
- * "unixVer": "x"
457
- * },
458
- * "alipay": {
459
- * "hostVer": "√",
460
- * "uniVer": "x",
461
- * "unixVer": "x"
462
- * },
463
- * "baidu": {
464
- * "hostVer": "√",
465
- * "uniVer": "x",
466
- * "unixVer": "x"
467
- * },
468
- * "toutiao": {
469
- * "hostVer": "√",
470
- * "uniVer": "x",
471
- * "unixVer": "x"
472
- * },
473
- * "lark": {
474
- * "hostVer": "√",
475
- * "uniVer": "x",
476
- * "unixVer": "x"
477
- * },
478
- * "qq": {
479
- * "hostVer": "√",
480
- * "uniVer": "x",
481
- * "unixVer": "x"
482
- * },
483
- * "kuaishou": {
484
- * "hostVer": "√",
485
- * "uniVer": "x",
486
- * "unixVer": "x"
487
- * },
488
- * "jd": {
489
- * "hostVer": "√",
490
- * "uniVer": "x",
491
- * "unixVer": "x"
492
- * }
493
- * },
494
- * "web": {
495
- * "uniVer": "x",
496
- * "unixVer": "x"
497
- * }
498
- * }
499
- */
500
- lineWidth: number
501
- /**
502
- * 设置边框的颜色
503
- * @defaultValue #000 (黑色)
504
- * @uniPlatform {
505
- * "app": {
506
- * "android": {
507
- * "osVer": "5.0",
508
- * "uniVer": "x",
509
- * "unixVer": "3.9"
510
- * },
511
- * "ios": {
512
- * "osVer": "12.0",
513
- * "uniVer": "x",
514
- * "unixVer": "4.11"
515
- * },
516
- * "harmony": {
517
- * "osVer": "x",
518
- * "uniVer": "x",
519
- * "unixVer": "4.61",
520
- * "unixvVer": "x"
521
- * }
522
- * },
523
- * "mp": {
524
- * "weixin": {
525
- * "hostVer": "√",
526
- * "uniVer": "x",
527
- * "unixVer": "x"
528
- * },
529
- * "alipay": {
530
- * "hostVer": "√",
531
- * "uniVer": "x",
532
- * "unixVer": "x"
533
- * },
534
- * "baidu": {
535
- * "hostVer": "√",
536
- * "uniVer": "x",
537
- * "unixVer": "x"
538
- * },
539
- * "toutiao": {
540
- * "hostVer": "√",
541
- * "uniVer": "x",
542
- * "unixVer": "x"
543
- * },
544
- * "lark": {
545
- * "hostVer": "√",
546
- * "uniVer": "x",
547
- * "unixVer": "x"
548
- * },
549
- * "qq": {
550
- * "hostVer": "√",
551
- * "uniVer": "x",
552
- * "unixVer": "x"
553
- * },
554
- * "kuaishou": {
555
- * "hostVer": "√",
556
- * "uniVer": "x",
557
- * "unixVer": "x"
558
- * },
559
- * "jd": {
560
- * "hostVer": "√",
561
- * "uniVer": "x",
562
- * "unixVer": "x"
563
- * }
564
- * },
565
- * "web": {
566
- * "uniVer": "x",
567
- * "unixVer": "x"
568
- * }
569
- * }
570
- */
571
- strokeStyle: DrawableContextColorString
572
- /**
573
- * 设置文本的对齐方式,可取值:`left`左对齐;`center`居中对齐;`right`右对齐。
574
- * @defaultValue left
575
- * @uniPlatform {
576
- * "app": {
577
- * "android": {
578
- * "osVer": "5.0",
579
- * "uniVer": "x",
580
- * "unixVer": "3.9"
581
- * },
582
- * "ios": {
583
- * "osVer": "12.0",
584
- * "uniVer": "x",
585
- * "unixVer": "4.11"
586
- * },
587
- * "harmony": {
588
- * "osVer": "x",
589
- * "uniVer": "x",
590
- * "unixVer": "4.61",
591
- * "unixvVer": "x"
592
- * }
593
- * },
594
- * "mp": {
595
- * "weixin": {
596
- * "hostVer": "√",
597
- * "uniVer": "x",
598
- * "unixVer": "x"
599
- * },
600
- * "alipay": {
601
- * "hostVer": "√",
602
- * "uniVer": "x",
603
- * "unixVer": "x"
604
- * },
605
- * "baidu": {
606
- * "hostVer": "√",
607
- * "uniVer": "x",
608
- * "unixVer": "x"
609
- * },
610
- * "toutiao": {
611
- * "hostVer": "√",
612
- * "uniVer": "x",
613
- * "unixVer": "x"
614
- * },
615
- * "lark": {
616
- * "hostVer": "√",
617
- * "uniVer": "x",
618
- * "unixVer": "x"
619
- * },
620
- * "qq": {
621
- * "hostVer": "√",
622
- * "uniVer": "x",
623
- * "unixVer": "x"
624
- * },
625
- * "kuaishou": {
626
- * "hostVer": "√",
627
- * "uniVer": "x",
628
- * "unixVer": "x"
629
- * },
630
- * "jd": {
631
- * "hostVer": "√",
632
- * "uniVer": "x",
633
- * "unixVer": "x"
634
- * }
635
- * },
636
- * "web": {
637
- * "uniVer": "x",
638
- * "unixVer": "x"
639
- * }
640
- * }
641
- */
642
- textAlign: string
643
-
644
- /**
645
- * 创建一个新的空路径
646
- * @uniPlatform {
647
- * "app": {
648
- * "android": {
649
- * "osVer": "5.0",
650
- * "uniVer": "x",
651
- * "unixVer": "3.9"
652
- * },
653
- * "ios": {
654
- * "osVer": "12.0",
655
- * "uniVer": "x",
656
- * "unixVer": "4.11"
657
- * },
658
- * "harmony": {
659
- * "osVer": "x",
660
- * "uniVer": "x",
661
- * "unixVer": "4.61",
662
- * "unixvVer": "x"
663
- * }
664
- * },
665
- * "mp": {
666
- * "weixin": {
667
- * "hostVer": "√",
668
- * "uniVer": "x",
669
- * "unixVer": "x"
670
- * },
671
- * "alipay": {
672
- * "hostVer": "√",
673
- * "uniVer": "x",
674
- * "unixVer": "x"
675
- * },
676
- * "baidu": {
677
- * "hostVer": "√",
678
- * "uniVer": "x",
679
- * "unixVer": "x"
680
- * },
681
- * "toutiao": {
682
- * "hostVer": "√",
683
- * "uniVer": "x",
684
- * "unixVer": "x"
685
- * },
686
- * "lark": {
687
- * "hostVer": "√",
688
- * "uniVer": "x",
689
- * "unixVer": "x"
690
- * },
691
- * "qq": {
692
- * "hostVer": "√",
693
- * "uniVer": "x",
694
- * "unixVer": "x"
695
- * },
696
- * "kuaishou": {
697
- * "hostVer": "√",
698
- * "uniVer": "x",
699
- * "unixVer": "x"
700
- * },
701
- * "jd": {
702
- * "hostVer": "√",
703
- * "uniVer": "x",
704
- * "unixVer": "x"
705
- * }
706
- * },
707
- * "web": {
708
- * "uniVer": "x",
709
- * "unixVer": "x"
710
- * }
711
- * }
712
- */
713
- beginPath(): void
714
-
715
- /**
716
- * 绘制一段弧线
717
- * @param {number} x 圆心的X轴坐标
718
- * @param {number} y 圆心的Y轴坐标
719
- * @param {number} radius 圆弧的半径
720
- * @param {number} startAngle 圆弧的起始点,x 轴方向开始计算,单位为弧度
721
- * @param {number} endAngle 圆弧的终点,单位为弧度
722
- * @param {number} [anticlockwise=true] 圆弧绘制方向,true:逆时针绘制,false:顺时针绘制。
723
- * @uniPlatform {
724
- * "app": {
725
- * "android": {
726
- * "osVer": "5.0",
727
- * "uniVer": "x",
728
- * "unixVer": "3.9"
729
- * },
730
- * "ios": {
731
- * "osVer": "12.0",
732
- * "uniVer": "x",
733
- * "unixVer": "4.11"
734
- * },
735
- * "harmony": {
736
- * "osVer": "x",
737
- * "uniVer": "x",
738
- * "unixVer": "4.61",
739
- * "unixvVer": "x"
740
- * }
741
- * },
742
- * "mp": {
743
- * "weixin": {
744
- * "hostVer": "√",
745
- * "uniVer": "x",
746
- * "unixVer": "x"
747
- * },
748
- * "alipay": {
749
- * "hostVer": "√",
750
- * "uniVer": "x",
751
- * "unixVer": "x"
752
- * },
753
- * "baidu": {
754
- * "hostVer": "√",
755
- * "uniVer": "x",
756
- * "unixVer": "x"
757
- * },
758
- * "toutiao": {
759
- * "hostVer": "√",
760
- * "uniVer": "x",
761
- * "unixVer": "x"
762
- * },
763
- * "lark": {
764
- * "hostVer": "√",
765
- * "uniVer": "x",
766
- * "unixVer": "x"
767
- * },
768
- * "qq": {
769
- * "hostVer": "√",
770
- * "uniVer": "x",
771
- * "unixVer": "x"
772
- * },
773
- * "kuaishou": {
774
- * "hostVer": "√",
775
- * "uniVer": "x",
776
- * "unixVer": "x"
777
- * },
778
- * "jd": {
779
- * "hostVer": "√",
780
- * "uniVer": "x",
781
- * "unixVer": "x"
782
- * }
783
- * },
784
- * "web": {
785
- * "uniVer": "x",
786
- * "unixVer": "x"
787
- * }
788
- * }
789
- */
790
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean | null): void
791
-
792
- /**
793
- * 将一个新的路径的起始点移动到 (x,y) 坐标
794
- * @param {number} x 点的X轴坐标
795
- * @param {number} y 点的Y轴坐标
796
- * @uniPlatform {
797
- * "app": {
798
- * "android": {
799
- * "osVer": "5.0",
800
- * "uniVer": "x",
801
- * "unixVer": "3.9"
802
- * },
803
- * "ios": {
804
- * "osVer": "12.0",
805
- * "uniVer": "x",
806
- * "unixVer": "4.11"
807
- * },
808
- * "harmony": {
809
- * "osVer": "x",
810
- * "uniVer": "x",
811
- * "unixVer": "4.61",
812
- * "unixvVer": "x"
813
- * }
814
- * },
815
- * "mp": {
816
- * "weixin": {
817
- * "hostVer": "√",
818
- * "uniVer": "x",
819
- * "unixVer": "x"
820
- * },
821
- * "alipay": {
822
- * "hostVer": "√",
823
- * "uniVer": "x",
824
- * "unixVer": "x"
825
- * },
826
- * "baidu": {
827
- * "hostVer": "√",
828
- * "uniVer": "x",
829
- * "unixVer": "x"
830
- * },
831
- * "toutiao": {
832
- * "hostVer": "√",
833
- * "uniVer": "x",
834
- * "unixVer": "x"
835
- * },
836
- * "lark": {
837
- * "hostVer": "√",
838
- * "uniVer": "x",
839
- * "unixVer": "x"
840
- * },
841
- * "qq": {
842
- * "hostVer": "√",
843
- * "uniVer": "x",
844
- * "unixVer": "x"
845
- * },
846
- * "kuaishou": {
847
- * "hostVer": "√",
848
- * "uniVer": "x",
849
- * "unixVer": "x"
850
- * },
851
- * "jd": {
852
- * "hostVer": "√",
853
- * "uniVer": "x",
854
- * "unixVer": "x"
855
- * }
856
- * },
857
- * "web": {
858
- * "uniVer": "x",
859
- * "unixVer": "x"
860
- * }
861
- * }
862
- */
863
- moveTo(x: number, y: number): void
864
-
865
- /**
866
- * 创建一个矩形路径
867
- * @param {number} x 矩形起点的X轴坐标
868
- * @param {number} y 矩形起点的Y轴坐标
869
- * @param {number} width 矩形宽度
870
- * @param {number} height 矩形高度
871
- * @uniPlatform {
872
- * "app": {
873
- * "android": {
874
- * "osVer": "5.0",
875
- * "uniVer": "x",
876
- * "unixVer": "3.9"
877
- * },
878
- * "ios": {
879
- * "osVer": "12.0",
880
- * "uniVer": "x",
881
- * "unixVer": "4.11"
882
- * },
883
- * "harmony": {
884
- * "osVer": "x",
885
- * "uniVer": "x",
886
- * "unixVer": "4.61",
887
- * "unixvVer": "x"
888
- * }
889
- * },
890
- * "mp": {
891
- * "weixin": {
892
- * "hostVer": "√",
893
- * "uniVer": "x",
894
- * "unixVer": "x"
895
- * },
896
- * "alipay": {
897
- * "hostVer": "√",
898
- * "uniVer": "x",
899
- * "unixVer": "x"
900
- * },
901
- * "baidu": {
902
- * "hostVer": "√",
903
- * "uniVer": "x",
904
- * "unixVer": "x"
905
- * },
906
- * "toutiao": {
907
- * "hostVer": "√",
908
- * "uniVer": "x",
909
- * "unixVer": "x"
910
- * },
911
- * "lark": {
912
- * "hostVer": "√",
913
- * "uniVer": "x",
914
- * "unixVer": "x"
915
- * },
916
- * "qq": {
917
- * "hostVer": "√",
918
- * "uniVer": "x",
919
- * "unixVer": "x"
920
- * },
921
- * "kuaishou": {
922
- * "hostVer": "√",
923
- * "uniVer": "x",
924
- * "unixVer": "x"
925
- * },
926
- * "jd": {
927
- * "hostVer": "√",
928
- * "uniVer": "x",
929
- * "unixVer": "x"
930
- * }
931
- * },
932
- * "web": {
933
- * "uniVer": "x",
934
- * "unixVer": "x"
935
- * }
936
- * }
937
- */
938
- rect(x: number, y: number, width: number, height: number): void
939
-
940
- /**
941
- * 将路径的最后一个点连接到 (x,y) 坐标
942
- * @param {number} x 线终点的X轴坐标
943
- * @param {number} y 线终点的Y轴坐标
944
- * @uniPlatform {
945
- * "app": {
946
- * "android": {
947
- * "osVer": "5.0",
948
- * "uniVer": "x",
949
- * "unixVer": "3.9"
950
- * },
951
- * "ios": {
952
- * "osVer": "12.0",
953
- * "uniVer": "x",
954
- * "unixVer": "4.11"
955
- * },
956
- * "harmony": {
957
- * "osVer": "x",
958
- * "uniVer": "x",
959
- * "unixVer": "4.61",
960
- * "unixvVer": "x"
961
- * }
962
- * },
963
- * "mp": {
964
- * "weixin": {
965
- * "hostVer": "√",
966
- * "uniVer": "x",
967
- * "unixVer": "x"
968
- * },
969
- * "alipay": {
970
- * "hostVer": "√",
971
- * "uniVer": "x",
972
- * "unixVer": "x"
973
- * },
974
- * "baidu": {
975
- * "hostVer": "√",
976
- * "uniVer": "x",
977
- * "unixVer": "x"
978
- * },
979
- * "toutiao": {
980
- * "hostVer": "√",
981
- * "uniVer": "x",
982
- * "unixVer": "x"
983
- * },
984
- * "lark": {
985
- * "hostVer": "√",
986
- * "uniVer": "x",
987
- * "unixVer": "x"
988
- * },
989
- * "qq": {
990
- * "hostVer": "√",
991
- * "uniVer": "x",
992
- * "unixVer": "x"
993
- * },
994
- * "kuaishou": {
995
- * "hostVer": "√",
996
- * "uniVer": "x",
997
- * "unixVer": "x"
998
- * },
999
- * "jd": {
1000
- * "hostVer": "√",
1001
- * "uniVer": "x",
1002
- * "unixVer": "x"
1003
- * }
1004
- * },
1005
- * "web": {
1006
- * "uniVer": "x",
1007
- * "unixVer": "x"
1008
- * }
1009
- * }
1010
- */
1011
- lineTo(x: number, y: number): void
1012
-
1013
- /**
1014
- * 闭合路径,将最后一个点与起点连接起来。如果图形已经封闭,或者只有一个点,那么此方法不会产生任何效果。
1015
- * @uniPlatform {
1016
- * "app": {
1017
- * "android": {
1018
- * "osVer": "5.0",
1019
- * "uniVer": "x",
1020
- * "unixVer": "3.9"
1021
- * },
1022
- * "ios": {
1023
- * "osVer": "12.0",
1024
- * "uniVer": "x",
1025
- * "unixVer": "4.11"
1026
- * },
1027
- * "harmony": {
1028
- * "osVer": "x",
1029
- * "uniVer": "x",
1030
- * "unixVer": "4.61",
1031
- * "unixvVer": "x"
1032
- * }
1033
- * },
1034
- * "mp": {
1035
- * "weixin": {
1036
- * "hostVer": "√",
1037
- * "uniVer": "x",
1038
- * "unixVer": "x"
1039
- * },
1040
- * "alipay": {
1041
- * "hostVer": "√",
1042
- * "uniVer": "x",
1043
- * "unixVer": "x"
1044
- * },
1045
- * "baidu": {
1046
- * "hostVer": "√",
1047
- * "uniVer": "x",
1048
- * "unixVer": "x"
1049
- * },
1050
- * "toutiao": {
1051
- * "hostVer": "√",
1052
- * "uniVer": "x",
1053
- * "unixVer": "x"
1054
- * },
1055
- * "lark": {
1056
- * "hostVer": "√",
1057
- * "uniVer": "x",
1058
- * "unixVer": "x"
1059
- * },
1060
- * "qq": {
1061
- * "hostVer": "√",
1062
- * "uniVer": "x",
1063
- * "unixVer": "x"
1064
- * },
1065
- * "kuaishou": {
1066
- * "hostVer": "√",
1067
- * "uniVer": "x",
1068
- * "unixVer": "x"
1069
- * },
1070
- * "jd": {
1071
- * "hostVer": "√",
1072
- * "uniVer": "x",
1073
- * "unixVer": "x"
1074
- * }
1075
- * },
1076
- * "web": {
1077
- * "uniVer": "x",
1078
- * "unixVer": "x"
1079
- * }
1080
- * }
1081
- */
1082
- closePath(): void
1083
-
1084
- /**
1085
- * 绘制当前或已经存在的路径的边框。
1086
- * @uniPlatform {
1087
- * "app": {
1088
- * "android": {
1089
- * "osVer": "5.0",
1090
- * "uniVer": "x",
1091
- * "unixVer": "3.9"
1092
- * },
1093
- * "ios": {
1094
- * "osVer": "12.0",
1095
- * "uniVer": "x",
1096
- * "unixVer": "4.11"
1097
- * },
1098
- * "harmony": {
1099
- * "osVer": "x",
1100
- * "uniVer": "x",
1101
- * "unixVer": "4.61",
1102
- * "unixvVer": "x"
1103
- * }
1104
- * },
1105
- * "mp": {
1106
- * "weixin": {
1107
- * "hostVer": "√",
1108
- * "uniVer": "x",
1109
- * "unixVer": "x"
1110
- * },
1111
- * "alipay": {
1112
- * "hostVer": "√",
1113
- * "uniVer": "x",
1114
- * "unixVer": "x"
1115
- * },
1116
- * "baidu": {
1117
- * "hostVer": "√",
1118
- * "uniVer": "x",
1119
- * "unixVer": "x"
1120
- * },
1121
- * "toutiao": {
1122
- * "hostVer": "√",
1123
- * "uniVer": "x",
1124
- * "unixVer": "x"
1125
- * },
1126
- * "lark": {
1127
- * "hostVer": "√",
1128
- * "uniVer": "x",
1129
- * "unixVer": "x"
1130
- * },
1131
- * "qq": {
1132
- * "hostVer": "√",
1133
- * "uniVer": "x",
1134
- * "unixVer": "x"
1135
- * },
1136
- * "kuaishou": {
1137
- * "hostVer": "√",
1138
- * "uniVer": "x",
1139
- * "unixVer": "x"
1140
- * },
1141
- * "jd": {
1142
- * "hostVer": "√",
1143
- * "uniVer": "x",
1144
- * "unixVer": "x"
1145
- * }
1146
- * },
1147
- * "web": {
1148
- * "uniVer": "x",
1149
- * "unixVer": "x"
1150
- * }
1151
- * }
1152
- */
1153
- stroke(): void
1154
-
1155
- /**
1156
- * 绘制一个矩形框
1157
- * @param {number} x 矩形起点的X轴坐标
1158
- * @param {number} y 矩形起点的Y轴坐标
1159
- * @param {number} width 矩形宽度
1160
- * @param {number} height 矩形高度
1161
- * @uniPlatform {
1162
- * "app": {
1163
- * "android": {
1164
- * "osVer": "5.0",
1165
- * "uniVer": "x",
1166
- * "unixVer": "3.9"
1167
- * },
1168
- * "ios": {
1169
- * "osVer": "12.0",
1170
- * "uniVer": "x",
1171
- * "unixVer": "4.11"
1172
- * },
1173
- * "harmony": {
1174
- * "osVer": "x",
1175
- * "uniVer": "x",
1176
- * "unixVer": "4.61",
1177
- * "unixvVer": "x"
1178
- * }
1179
- * },
1180
- * "mp": {
1181
- * "weixin": {
1182
- * "hostVer": "√",
1183
- * "uniVer": "x",
1184
- * "unixVer": "x"
1185
- * },
1186
- * "alipay": {
1187
- * "hostVer": "√",
1188
- * "uniVer": "x",
1189
- * "unixVer": "x"
1190
- * },
1191
- * "baidu": {
1192
- * "hostVer": "√",
1193
- * "uniVer": "x",
1194
- * "unixVer": "x"
1195
- * },
1196
- * "toutiao": {
1197
- * "hostVer": "√",
1198
- * "uniVer": "x",
1199
- * "unixVer": "x"
1200
- * },
1201
- * "lark": {
1202
- * "hostVer": "√",
1203
- * "uniVer": "x",
1204
- * "unixVer": "x"
1205
- * },
1206
- * "qq": {
1207
- * "hostVer": "√",
1208
- * "uniVer": "x",
1209
- * "unixVer": "x"
1210
- * },
1211
- * "kuaishou": {
1212
- * "hostVer": "√",
1213
- * "uniVer": "x",
1214
- * "unixVer": "x"
1215
- * },
1216
- * "jd": {
1217
- * "hostVer": "√",
1218
- * "uniVer": "x",
1219
- * "unixVer": "x"
1220
- * }
1221
- * },
1222
- * "web": {
1223
- * "uniVer": "x",
1224
- * "unixVer": "x"
1225
- * }
1226
- * }
1227
- */
1228
- strokeRect(x: number, y: number, width: number, height: number): void
1229
-
1230
- /**
1231
- * 绘制空心字符
1232
- * @param {string} text 要绘制的字符
1233
- * @param {number} x 字符开始绘制的X轴坐标
1234
- * @param {number} y 字符开始绘制的Y轴坐标
1235
- * @uniPlatform {
1236
- * "app": {
1237
- * "android": {
1238
- * "osVer": "5.0",
1239
- * "uniVer": "x",
1240
- * "unixVer": "3.9"
1241
- * },
1242
- * "ios": {
1243
- * "osVer": "12.0",
1244
- * "uniVer": "x",
1245
- * "unixVer": "4.11"
1246
- * },
1247
- * "harmony": {
1248
- * "osVer": "x",
1249
- * "uniVer": "x",
1250
- * "unixVer": "4.61",
1251
- * "unixvVer": "x"
1252
- * }
1253
- * },
1254
- * "mp": {
1255
- * "weixin": {
1256
- * "hostVer": "√",
1257
- * "uniVer": "x",
1258
- * "unixVer": "x"
1259
- * },
1260
- * "alipay": {
1261
- * "hostVer": "√",
1262
- * "uniVer": "x",
1263
- * "unixVer": "x"
1264
- * },
1265
- * "baidu": {
1266
- * "hostVer": "√",
1267
- * "uniVer": "x",
1268
- * "unixVer": "x"
1269
- * },
1270
- * "toutiao": {
1271
- * "hostVer": "√",
1272
- * "uniVer": "x",
1273
- * "unixVer": "x"
1274
- * },
1275
- * "lark": {
1276
- * "hostVer": "√",
1277
- * "uniVer": "x",
1278
- * "unixVer": "x"
1279
- * },
1280
- * "qq": {
1281
- * "hostVer": "√",
1282
- * "uniVer": "x",
1283
- * "unixVer": "x"
1284
- * },
1285
- * "kuaishou": {
1286
- * "hostVer": "√",
1287
- * "uniVer": "x",
1288
- * "unixVer": "x"
1289
- * },
1290
- * "jd": {
1291
- * "hostVer": "√",
1292
- * "uniVer": "x",
1293
- * "unixVer": "x"
1294
- * }
1295
- * },
1296
- * "web": {
1297
- * "uniVer": "x",
1298
- * "unixVer": "x"
1299
- * }
1300
- * }
1301
- */
1302
- strokeText(text: string, x: number, y: number): void
1303
-
1304
- /**
1305
- * 填充当前或已存在的路径
1306
- * @param {string} [fillRule=nonzero] 填充规则。可取值:`nonzero`非零环绕规则;`evenodd`奇偶环绕规则。
1307
- * @uniPlatform {
1308
- * "app": {
1309
- * "android": {
1310
- * "osVer": "5.0",
1311
- * "uniVer": "x",
1312
- * "unixVer": "3.9"
1313
- * },
1314
- * "ios": {
1315
- * "osVer": "12.0",
1316
- * "uniVer": "x",
1317
- * "unixVer": "4.11"
1318
- * },
1319
- * "harmony": {
1320
- * "osVer": "x",
1321
- * "uniVer": "x",
1322
- * "unixVer": "4.61",
1323
- * "unixvVer": "x"
1324
- * }
1325
- * },
1326
- * "mp": {
1327
- * "weixin": {
1328
- * "hostVer": "√",
1329
- * "uniVer": "x",
1330
- * "unixVer": "x"
1331
- * },
1332
- * "alipay": {
1333
- * "hostVer": "√",
1334
- * "uniVer": "x",
1335
- * "unixVer": "x"
1336
- * },
1337
- * "baidu": {
1338
- * "hostVer": "√",
1339
- * "uniVer": "x",
1340
- * "unixVer": "x"
1341
- * },
1342
- * "toutiao": {
1343
- * "hostVer": "√",
1344
- * "uniVer": "x",
1345
- * "unixVer": "x"
1346
- * },
1347
- * "lark": {
1348
- * "hostVer": "√",
1349
- * "uniVer": "x",
1350
- * "unixVer": "x"
1351
- * },
1352
- * "qq": {
1353
- * "hostVer": "√",
1354
- * "uniVer": "x",
1355
- * "unixVer": "x"
1356
- * },
1357
- * "kuaishou": {
1358
- * "hostVer": "√",
1359
- * "uniVer": "x",
1360
- * "unixVer": "x"
1361
- * },
1362
- * "jd": {
1363
- * "hostVer": "√",
1364
- * "uniVer": "x",
1365
- * "unixVer": "x"
1366
- * }
1367
- * },
1368
- * "web": {
1369
- * "uniVer": "x",
1370
- * "unixVer": "x"
1371
- * }
1372
- * }
1373
- */
1374
- fill(fillRule?: string | null): void
1375
-
1376
- /**
1377
- * 绘制一个实心矩形
1378
- * @param {number} x 矩形起点的X轴坐标
1379
- * @param {number} y 矩形起点的Y轴坐标
1380
- * @param {number} width 矩形宽度
1381
- * @param {number} height 矩形高度
1382
- * @uniPlatform {
1383
- * "app": {
1384
- * "android": {
1385
- * "osVer": "5.0",
1386
- * "uniVer": "x",
1387
- * "unixVer": "3.9"
1388
- * },
1389
- * "ios": {
1390
- * "osVer": "12.0",
1391
- * "uniVer": "x",
1392
- * "unixVer": "4.11"
1393
- * },
1394
- * "harmony": {
1395
- * "osVer": "x",
1396
- * "uniVer": "x",
1397
- * "unixVer": "4.61",
1398
- * "unixvVer": "x"
1399
- * }
1400
- * },
1401
- * "mp": {
1402
- * "weixin": {
1403
- * "hostVer": "√",
1404
- * "uniVer": "x",
1405
- * "unixVer": "x"
1406
- * },
1407
- * "alipay": {
1408
- * "hostVer": "√",
1409
- * "uniVer": "x",
1410
- * "unixVer": "x"
1411
- * },
1412
- * "baidu": {
1413
- * "hostVer": "√",
1414
- * "uniVer": "x",
1415
- * "unixVer": "x"
1416
- * },
1417
- * "toutiao": {
1418
- * "hostVer": "√",
1419
- * "uniVer": "x",
1420
- * "unixVer": "x"
1421
- * },
1422
- * "lark": {
1423
- * "hostVer": "√",
1424
- * "uniVer": "x",
1425
- * "unixVer": "x"
1426
- * },
1427
- * "qq": {
1428
- * "hostVer": "√",
1429
- * "uniVer": "x",
1430
- * "unixVer": "x"
1431
- * },
1432
- * "kuaishou": {
1433
- * "hostVer": "√",
1434
- * "uniVer": "x",
1435
- * "unixVer": "x"
1436
- * },
1437
- * "jd": {
1438
- * "hostVer": "√",
1439
- * "uniVer": "x",
1440
- * "unixVer": "x"
1441
- * }
1442
- * },
1443
- * "web": {
1444
- * "uniVer": "x",
1445
- * "unixVer": "x"
1446
- * }
1447
- * }
1448
- */
1449
- fillRect(x: number, y: number, width: number, height: number): void
1450
-
1451
- /**
1452
- * 绘制实心字符
1453
- * @param {string} text 要绘制的字符
1454
- * @param {number} x 字符开始绘制的X轴坐标
1455
- * @param {number} y 字符开始绘制的Y轴坐标
1456
- * @uniPlatform {
1457
- * "app": {
1458
- * "android": {
1459
- * "osVer": "5.0",
1460
- * "uniVer": "x",
1461
- * "unixVer": "3.9"
1462
- * },
1463
- * "ios": {
1464
- * "osVer": "12.0",
1465
- * "uniVer": "x",
1466
- * "unixVer": "4.11"
1467
- * },
1468
- * "harmony": {
1469
- * "osVer": "x",
1470
- * "uniVer": "x",
1471
- * "unixVer": "4.61",
1472
- * "unixvVer": "x"
1473
- * }
1474
- * },
1475
- * "mp": {
1476
- * "weixin": {
1477
- * "hostVer": "√",
1478
- * "uniVer": "x",
1479
- * "unixVer": "x"
1480
- * },
1481
- * "alipay": {
1482
- * "hostVer": "√",
1483
- * "uniVer": "x",
1484
- * "unixVer": "x"
1485
- * },
1486
- * "baidu": {
1487
- * "hostVer": "√",
1488
- * "uniVer": "x",
1489
- * "unixVer": "x"
1490
- * },
1491
- * "toutiao": {
1492
- * "hostVer": "√",
1493
- * "uniVer": "x",
1494
- * "unixVer": "x"
1495
- * },
1496
- * "lark": {
1497
- * "hostVer": "√",
1498
- * "uniVer": "x",
1499
- * "unixVer": "x"
1500
- * },
1501
- * "qq": {
1502
- * "hostVer": "√",
1503
- * "uniVer": "x",
1504
- * "unixVer": "x"
1505
- * },
1506
- * "kuaishou": {
1507
- * "hostVer": "√",
1508
- * "uniVer": "x",
1509
- * "unixVer": "x"
1510
- * },
1511
- * "jd": {
1512
- * "hostVer": "√",
1513
- * "uniVer": "x",
1514
- * "unixVer": "x"
1515
- * }
1516
- * },
1517
- * "web": {
1518
- * "uniVer": "x",
1519
- * "unixVer": "x"
1520
- * }
1521
- * }
1522
- */
1523
- fillText(text: string, x: number, y: number): void
1524
-
1525
- /**
1526
- * 清空绘制数据
1527
- * @uniPlatform {
1528
- * "app": {
1529
- * "android": {
1530
- * "osVer": "5.0",
1531
- * "uniVer": "x",
1532
- * "unixVer": "3.9"
1533
- * },
1534
- * "ios": {
1535
- * "osVer": "12.0",
1536
- * "uniVer": "x",
1537
- * "unixVer": "4.11"
1538
- * },
1539
- * "harmony": {
1540
- * "osVer": "x",
1541
- * "uniVer": "x",
1542
- * "unixVer": "4.61",
1543
- * "unixvVer": "x"
1544
- * }
1545
- * },
1546
- * "mp": {
1547
- * "weixin": {
1548
- * "hostVer": "√",
1549
- * "uniVer": "x",
1550
- * "unixVer": "x"
1551
- * },
1552
- * "alipay": {
1553
- * "hostVer": "√",
1554
- * "uniVer": "x",
1555
- * "unixVer": "x"
1556
- * },
1557
- * "baidu": {
1558
- * "hostVer": "√",
1559
- * "uniVer": "x",
1560
- * "unixVer": "x"
1561
- * },
1562
- * "toutiao": {
1563
- * "hostVer": "√",
1564
- * "uniVer": "x",
1565
- * "unixVer": "x"
1566
- * },
1567
- * "lark": {
1568
- * "hostVer": "√",
1569
- * "uniVer": "x",
1570
- * "unixVer": "x"
1571
- * },
1572
- * "qq": {
1573
- * "hostVer": "√",
1574
- * "uniVer": "x",
1575
- * "unixVer": "x"
1576
- * },
1577
- * "kuaishou": {
1578
- * "hostVer": "√",
1579
- * "uniVer": "x",
1580
- * "unixVer": "x"
1581
- * },
1582
- * "jd": {
1583
- * "hostVer": "√",
1584
- * "uniVer": "x",
1585
- * "unixVer": "x"
1586
- * }
1587
- * },
1588
- * "web": {
1589
- * "uniVer": "x",
1590
- * "unixVer": "x"
1591
- * }
1592
- * }
1593
- */
1594
- reset(): void
1595
-
1596
- /**
1597
- * 将所有绘制内容更新到画布上
1598
- * @uniPlatform {
1599
- * "app": {
1600
- * "android": {
1601
- * "osVer": "5.0",
1602
- * "uniVer": "x",
1603
- * "unixVer": "3.9"
1604
- * },
1605
- * "ios": {
1606
- * "osVer": "12.0",
1607
- * "uniVer": "x",
1608
- * "unixVer": "4.11"
1609
- * },
1610
- * "harmony": {
1611
- * "osVer": "x",
1612
- * "uniVer": "x",
1613
- * "unixVer": "4.61",
1614
- * "unixvVer": "x"
1615
- * }
1616
- * },
1617
- * "mp": {
1618
- * "weixin": {
1619
- * "hostVer": "√",
1620
- * "uniVer": "x",
1621
- * "unixVer": "x"
1622
- * },
1623
- * "alipay": {
1624
- * "hostVer": "√",
1625
- * "uniVer": "x",
1626
- * "unixVer": "x"
1627
- * },
1628
- * "baidu": {
1629
- * "hostVer": "√",
1630
- * "uniVer": "x",
1631
- * "unixVer": "x"
1632
- * },
1633
- * "toutiao": {
1634
- * "hostVer": "√",
1635
- * "uniVer": "x",
1636
- * "unixVer": "x"
1637
- * },
1638
- * "lark": {
1639
- * "hostVer": "√",
1640
- * "uniVer": "x",
1641
- * "unixVer": "x"
1642
- * },
1643
- * "qq": {
1644
- * "hostVer": "√",
1645
- * "uniVer": "x",
1646
- * "unixVer": "x"
1647
- * },
1648
- * "kuaishou": {
1649
- * "hostVer": "√",
1650
- * "uniVer": "x",
1651
- * "unixVer": "x"
1652
- * },
1653
- * "jd": {
1654
- * "hostVer": "√",
1655
- * "uniVer": "x",
1656
- * "unixVer": "x"
1657
- * }
1658
- * },
1659
- * "web": {
1660
- * "uniVer": "x",
1661
- * "unixVer": "x"
1662
- * }
1663
- * }
1664
- */
1665
- update(): void
1666
-
1667
- /**
1668
- * 设置虚线样式
1669
- * @param {Array<number>} segments 一组描述交替绘制线段和间距长度的数字。
1670
- * @uniPlatform {
1671
- * "app": {
1672
- * "android": {
1673
- * "osVer": "5.0",
1674
- * "uniVer": "x",
1675
- * "unixVer": "3.9"
1676
- * },
1677
- * "ios": {
1678
- * "osVer": "12.0",
1679
- * "uniVer": "x",
1680
- * "unixVer": "4.11"
1681
- * },
1682
- * "harmony": {
1683
- * "osVer": "x",
1684
- * "uniVer": "x",
1685
- * "unixVer": "4.61",
1686
- * "unixvVer": "x"
1687
- * }
1688
- * },
1689
- * "mp": {
1690
- * "weixin": {
1691
- * "hostVer": "√",
1692
- * "uniVer": "x",
1693
- * "unixVer": "x"
1694
- * },
1695
- * "alipay": {
1696
- * "hostVer": "√",
1697
- * "uniVer": "x",
1698
- * "unixVer": "x"
1699
- * },
1700
- * "baidu": {
1701
- * "hostVer": "√",
1702
- * "uniVer": "x",
1703
- * "unixVer": "x"
1704
- * },
1705
- * "toutiao": {
1706
- * "hostVer": "√",
1707
- * "uniVer": "x",
1708
- * "unixVer": "x"
1709
- * },
1710
- * "lark": {
1711
- * "hostVer": "√",
1712
- * "uniVer": "x",
1713
- * "unixVer": "x"
1714
- * },
1715
- * "qq": {
1716
- * "hostVer": "√",
1717
- * "uniVer": "x",
1718
- * "unixVer": "x"
1719
- * },
1720
- * "kuaishou": {
1721
- * "hostVer": "√",
1722
- * "uniVer": "x",
1723
- * "unixVer": "x"
1724
- * },
1725
- * "jd": {
1726
- * "hostVer": "√",
1727
- * "uniVer": "x",
1728
- * "unixVer": "x"
1729
- * }
1730
- * },
1731
- * "web": {
1732
- * "uniVer": "x",
1733
- * "unixVer": "x"
1734
- * }
1735
- * }
1736
- */
1737
- setLineDash(segments: Array<number>): void
1738
-
1739
- /**
1740
- * 根据控制点和半径绘制圆弧路径
1741
- * @param {number} x1 第一个控制点的 x 轴坐标
1742
- * @param {number} y1 第一个控制点的 y 轴坐标
1743
- * @param {number} x2 第二个控制点的 x 轴坐标
1744
- * @param {number} y2 第二个控制点的 y 轴坐标
1745
- * @param {number} radius 圆弧的半径
1746
- * @uniPlatform {
1747
- * "app": {
1748
- * "android": {
1749
- * "osVer": "5.0",
1750
- * "uniVer": "x",
1751
- * "unixVer": "3.9"
1752
- * },
1753
- * "ios": {
1754
- * "osVer": "12.0",
1755
- * "uniVer": "x",
1756
- * "unixVer": "4.11"
1757
- * },
1758
- * "harmony": {
1759
- * "osVer": "x",
1760
- * "uniVer": "x",
1761
- * "unixVer": "4.61",
1762
- * "unixvVer": "x"
1763
- * }
1764
- * },
1765
- * "mp": {
1766
- * "weixin": {
1767
- * "hostVer": "√",
1768
- * "uniVer": "x",
1769
- * "unixVer": "x"
1770
- * },
1771
- * "alipay": {
1772
- * "hostVer": "√",
1773
- * "uniVer": "x",
1774
- * "unixVer": "x"
1775
- * },
1776
- * "baidu": {
1777
- * "hostVer": "√",
1778
- * "uniVer": "x",
1779
- * "unixVer": "x"
1780
- * },
1781
- * "toutiao": {
1782
- * "hostVer": "√",
1783
- * "uniVer": "x",
1784
- * "unixVer": "x"
1785
- * },
1786
- * "lark": {
1787
- * "hostVer": "√",
1788
- * "uniVer": "x",
1789
- * "unixVer": "x"
1790
- * },
1791
- * "qq": {
1792
- * "hostVer": "√",
1793
- * "uniVer": "x",
1794
- * "unixVer": "x"
1795
- * },
1796
- * "kuaishou": {
1797
- * "hostVer": "√",
1798
- * "uniVer": "x",
1799
- * "unixVer": "x"
1800
- * },
1801
- * "jd": {
1802
- * "hostVer": "√",
1803
- * "uniVer": "x",
1804
- * "unixVer": "x"
1805
- * }
1806
- * },
1807
- * "web": {
1808
- * "uniVer": "x",
1809
- * "unixVer": "x"
1810
- * }
1811
- * }
1812
- */
1813
- // arcTo(x1 : number, y1 : number, x2 : number, y2 : number, radius : number) : void
1814
-
1815
- /**
1816
- * 创建三次方贝塞尔曲线路径
1817
- * @param {number} cp1x 第一个贝塞尔控制点的 x 坐标
1818
- * @param {number} cp1y 第一个贝塞尔控制点的 y 坐标
1819
- * @param {number} cp2x 第二个贝塞尔控制点的 x 坐标
1820
- * @param {number} cp2y 第二个贝塞尔控制点的 y 坐标
1821
- * @param {number} x 结束点的 x 坐标
1822
- * @param {number} y 结束点的 y 坐标
1823
- * @uniPlatform {
1824
- * "app": {
1825
- * "android": {
1826
- * "osVer": "5.0",
1827
- * "uniVer": "x",
1828
- * "unixVer": "3.9"
1829
- * },
1830
- * "ios": {
1831
- * "osVer": "12.0",
1832
- * "uniVer": "x",
1833
- * "unixVer": "4.11"
1834
- * },
1835
- * "harmony": {
1836
- * "osVer": "x",
1837
- * "uniVer": "x",
1838
- * "unixVer": "4.61",
1839
- * "unixvVer": "x"
1840
- * }
1841
- * },
1842
- * "mp": {
1843
- * "weixin": {
1844
- * "hostVer": "√",
1845
- * "uniVer": "x",
1846
- * "unixVer": "x"
1847
- * },
1848
- * "alipay": {
1849
- * "hostVer": "√",
1850
- * "uniVer": "x",
1851
- * "unixVer": "x"
1852
- * },
1853
- * "baidu": {
1854
- * "hostVer": "√",
1855
- * "uniVer": "x",
1856
- * "unixVer": "x"
1857
- * },
1858
- * "toutiao": {
1859
- * "hostVer": "√",
1860
- * "uniVer": "x",
1861
- * "unixVer": "x"
1862
- * },
1863
- * "lark": {
1864
- * "hostVer": "√",
1865
- * "uniVer": "x",
1866
- * "unixVer": "x"
1867
- * },
1868
- * "qq": {
1869
- * "hostVer": "√",
1870
- * "uniVer": "x",
1871
- * "unixVer": "x"
1872
- * },
1873
- * "kuaishou": {
1874
- * "hostVer": "√",
1875
- * "uniVer": "x",
1876
- * "unixVer": "x"
1877
- * },
1878
- * "jd": {
1879
- * "hostVer": "√",
1880
- * "uniVer": "x",
1881
- * "unixVer": "x"
1882
- * }
1883
- * },
1884
- * "web": {
1885
- * "uniVer": "x",
1886
- * "unixVer": "x"
1887
- * }
1888
- * }
1889
- */
1890
- bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
1891
- }
1892
-
1893
- }
1
+ // TODO 需要 export 以支持 declare global,否则会报错无法扩展全局接口
2
+ export type DrawableContextColorString = string.ColorString
3
+
4
+ declare global {
5
+
6
+ /**
7
+ * @package io.dcloud.uniapp.runtime
8
+ * @uniPlatform {
9
+ * "app": {
10
+ * "android": {
11
+ * "osVer": "5.0",
12
+ * "uniVer": "x",
13
+ * "unixVer": "3.9"
14
+ * },
15
+ * "ios": {
16
+ * "osVer": "12.0",
17
+ * "uniVer": "x",
18
+ * "unixVer": "4.11"
19
+ * },
20
+ * "harmony": {
21
+ * "osVer": "x",
22
+ * "uniVer": "x",
23
+ * "unixVer": "4.61",
24
+ * "unixVaporVer": "x"
25
+ * }
26
+ * },
27
+ * "mp": {
28
+ * "weixin": {
29
+ * "hostVer": "√",
30
+ * "uniVer": "x",
31
+ * "unixVer": "x"
32
+ * },
33
+ * "alipay": {
34
+ * "hostVer": "√",
35
+ * "uniVer": "x",
36
+ * "unixVer": "x"
37
+ * },
38
+ * "baidu": {
39
+ * "hostVer": "√",
40
+ * "uniVer": "x",
41
+ * "unixVer": "x"
42
+ * },
43
+ * "toutiao": {
44
+ * "hostVer": "√",
45
+ * "uniVer": "x",
46
+ * "unixVer": "x"
47
+ * },
48
+ * "lark": {
49
+ * "hostVer": "√",
50
+ * "uniVer": "x",
51
+ * "unixVer": "x"
52
+ * },
53
+ * "qq": {
54
+ * "hostVer": "√",
55
+ * "uniVer": "x",
56
+ * "unixVer": "x"
57
+ * },
58
+ * "kuaishou": {
59
+ * "hostVer": "√",
60
+ * "uniVer": "x",
61
+ * "unixVer": "x"
62
+ * },
63
+ * "jd": {
64
+ * "hostVer": "√",
65
+ * "uniVer": "x",
66
+ * "unixVer": "x"
67
+ * }
68
+ * },
69
+ * "web": {
70
+ * "uniVer": "x",
71
+ * "unixVer": "x"
72
+ * }
73
+ * }
74
+ */
75
+ interface DrawableContext {
76
+ /**
77
+ * 设置字体大小
78
+ * @defaultValue 10px
79
+ * @uniPlatform {
80
+ * "app": {
81
+ * "android": {
82
+ * "osVer": "5.0",
83
+ * "uniVer": "x",
84
+ * "unixVer": "3.9"
85
+ * },
86
+ * "ios": {
87
+ * "osVer": "12.0",
88
+ * "uniVer": "x",
89
+ * "unixVer": "4.11"
90
+ * },
91
+ * "harmony": {
92
+ * "osVer": "x",
93
+ * "uniVer": "x",
94
+ * "unixVer": "4.61",
95
+ * "unixVaporVer": "x"
96
+ * }
97
+ * },
98
+ * "mp": {
99
+ * "weixin": {
100
+ * "hostVer": "√",
101
+ * "uniVer": "x",
102
+ * "unixVer": "x"
103
+ * },
104
+ * "alipay": {
105
+ * "hostVer": "√",
106
+ * "uniVer": "x",
107
+ * "unixVer": "x"
108
+ * },
109
+ * "baidu": {
110
+ * "hostVer": "√",
111
+ * "uniVer": "x",
112
+ * "unixVer": "x"
113
+ * },
114
+ * "toutiao": {
115
+ * "hostVer": "√",
116
+ * "uniVer": "x",
117
+ * "unixVer": "x"
118
+ * },
119
+ * "lark": {
120
+ * "hostVer": "√",
121
+ * "uniVer": "x",
122
+ * "unixVer": "x"
123
+ * },
124
+ * "qq": {
125
+ * "hostVer": "√",
126
+ * "uniVer": "x",
127
+ * "unixVer": "x"
128
+ * },
129
+ * "kuaishou": {
130
+ * "hostVer": "√",
131
+ * "uniVer": "x",
132
+ * "unixVer": "x"
133
+ * },
134
+ * "jd": {
135
+ * "hostVer": "√",
136
+ * "uniVer": "x",
137
+ * "unixVer": "x"
138
+ * }
139
+ * },
140
+ * "web": {
141
+ * "uniVer": "x",
142
+ * "unixVer": "x"
143
+ * }
144
+ * }
145
+ */
146
+ font: string
147
+ /**
148
+ * 设置填充颜色
149
+ * @defaultValue #000 (黑色)
150
+ * @uniPlatform {
151
+ * "app": {
152
+ * "android": {
153
+ * "osVer": "5.0",
154
+ * "uniVer": "x",
155
+ * "unixVer": "3.9"
156
+ * },
157
+ * "ios": {
158
+ * "osVer": "12.0",
159
+ * "uniVer": "x",
160
+ * "unixVer": "4.11"
161
+ * },
162
+ * "harmony": {
163
+ * "osVer": "x",
164
+ * "uniVer": "x",
165
+ * "unixVer": "4.61",
166
+ * "unixVaporVer": "x"
167
+ * }
168
+ * },
169
+ * "mp": {
170
+ * "weixin": {
171
+ * "hostVer": "√",
172
+ * "uniVer": "x",
173
+ * "unixVer": "x"
174
+ * },
175
+ * "alipay": {
176
+ * "hostVer": "√",
177
+ * "uniVer": "x",
178
+ * "unixVer": "x"
179
+ * },
180
+ * "baidu": {
181
+ * "hostVer": "√",
182
+ * "uniVer": "x",
183
+ * "unixVer": "x"
184
+ * },
185
+ * "toutiao": {
186
+ * "hostVer": "√",
187
+ * "uniVer": "x",
188
+ * "unixVer": "x"
189
+ * },
190
+ * "lark": {
191
+ * "hostVer": "√",
192
+ * "uniVer": "x",
193
+ * "unixVer": "x"
194
+ * },
195
+ * "qq": {
196
+ * "hostVer": "√",
197
+ * "uniVer": "x",
198
+ * "unixVer": "x"
199
+ * },
200
+ * "kuaishou": {
201
+ * "hostVer": "√",
202
+ * "uniVer": "x",
203
+ * "unixVer": "x"
204
+ * },
205
+ * "jd": {
206
+ * "hostVer": "√",
207
+ * "uniVer": "x",
208
+ * "unixVer": "x"
209
+ * }
210
+ * },
211
+ * "web": {
212
+ * "uniVer": "x",
213
+ * "unixVer": "x"
214
+ * }
215
+ * }
216
+ */
217
+ fillStyle: DrawableContextColorString
218
+ /**
219
+ * 指定如何绘制每一条线条末端的属性,可选值:`butt`线段末端以方形结束;`round`线段末端以圆形结束;`square`线段末端以方形结束,但是会增加一个一半宽度的矩形区域。
220
+ * @defaultValue butt
221
+ * @uniPlatform {
222
+ * "app": {
223
+ * "android": {
224
+ * "osVer": "5.0",
225
+ * "uniVer": "x",
226
+ * "unixVer": "3.9"
227
+ * },
228
+ * "ios": {
229
+ * "osVer": "12.0",
230
+ * "uniVer": "x",
231
+ * "unixVer": "4.11"
232
+ * },
233
+ * "harmony": {
234
+ * "osVer": "x",
235
+ * "uniVer": "x",
236
+ * "unixVer": "4.61",
237
+ * "unixVaporVer": "x"
238
+ * }
239
+ * },
240
+ * "mp": {
241
+ * "weixin": {
242
+ * "hostVer": "√",
243
+ * "uniVer": "x",
244
+ * "unixVer": "x"
245
+ * },
246
+ * "alipay": {
247
+ * "hostVer": "√",
248
+ * "uniVer": "x",
249
+ * "unixVer": "x"
250
+ * },
251
+ * "baidu": {
252
+ * "hostVer": "√",
253
+ * "uniVer": "x",
254
+ * "unixVer": "x"
255
+ * },
256
+ * "toutiao": {
257
+ * "hostVer": "√",
258
+ * "uniVer": "x",
259
+ * "unixVer": "x"
260
+ * },
261
+ * "lark": {
262
+ * "hostVer": "√",
263
+ * "uniVer": "x",
264
+ * "unixVer": "x"
265
+ * },
266
+ * "qq": {
267
+ * "hostVer": "√",
268
+ * "uniVer": "x",
269
+ * "unixVer": "x"
270
+ * },
271
+ * "kuaishou": {
272
+ * "hostVer": "√",
273
+ * "uniVer": "x",
274
+ * "unixVer": "x"
275
+ * },
276
+ * "jd": {
277
+ * "hostVer": "√",
278
+ * "uniVer": "x",
279
+ * "unixVer": "x"
280
+ * }
281
+ * },
282
+ * "web": {
283
+ * "uniVer": "x",
284
+ * "unixVer": "x"
285
+ * }
286
+ * }
287
+ */
288
+ lineCap: string
289
+ /**
290
+ * 设置虚线偏移量
291
+ * @uniPlatform {
292
+ * "app": {
293
+ * "android": {
294
+ * "osVer": "5.0",
295
+ * "uniVer": "x",
296
+ * "unixVer": "3.9"
297
+ * },
298
+ * "ios": {
299
+ * "osVer": "12.0",
300
+ * "uniVer": "x",
301
+ * "unixVer": "4.11"
302
+ * },
303
+ * "harmony": {
304
+ * "osVer": "x",
305
+ * "uniVer": "x",
306
+ * "unixVer": "4.61",
307
+ * "unixVaporVer": "x"
308
+ * }
309
+ * },
310
+ * "mp": {
311
+ * "weixin": {
312
+ * "hostVer": "√",
313
+ * "uniVer": "x",
314
+ * "unixVer": "x"
315
+ * },
316
+ * "alipay": {
317
+ * "hostVer": "√",
318
+ * "uniVer": "x",
319
+ * "unixVer": "x"
320
+ * },
321
+ * "baidu": {
322
+ * "hostVer": "√",
323
+ * "uniVer": "x",
324
+ * "unixVer": "x"
325
+ * },
326
+ * "toutiao": {
327
+ * "hostVer": "√",
328
+ * "uniVer": "x",
329
+ * "unixVer": "x"
330
+ * },
331
+ * "lark": {
332
+ * "hostVer": "√",
333
+ * "uniVer": "x",
334
+ * "unixVer": "x"
335
+ * },
336
+ * "qq": {
337
+ * "hostVer": "√",
338
+ * "uniVer": "x",
339
+ * "unixVer": "x"
340
+ * },
341
+ * "kuaishou": {
342
+ * "hostVer": "√",
343
+ * "uniVer": "x",
344
+ * "unixVer": "x"
345
+ * },
346
+ * "jd": {
347
+ * "hostVer": "√",
348
+ * "uniVer": "x",
349
+ * "unixVer": "x"
350
+ * }
351
+ * },
352
+ * "web": {
353
+ * "uniVer": "x",
354
+ * "unixVer": "x"
355
+ * }
356
+ * }
357
+ */
358
+ lineDashOffset: number
359
+ /**
360
+ * 设置 2 个长度不为 0 的线条相连部分如何连接在一起的属性,可选值:`bevel`斜角;`round`圆角;`miter`尖角。
361
+ * @defaultValue miter
362
+ * @uniPlatform {
363
+ * "app": {
364
+ * "android": {
365
+ * "osVer": "5.0",
366
+ * "uniVer": "x",
367
+ * "unixVer": "3.9"
368
+ * },
369
+ * "ios": {
370
+ * "osVer": "12.0",
371
+ * "uniVer": "x",
372
+ * "unixVer": "4.11"
373
+ * },
374
+ * "harmony": {
375
+ * "osVer": "x",
376
+ * "uniVer": "x",
377
+ * "unixVer": "4.61",
378
+ * "unixVaporVer": "x"
379
+ * }
380
+ * },
381
+ * "mp": {
382
+ * "weixin": {
383
+ * "hostVer": "√",
384
+ * "uniVer": "x",
385
+ * "unixVer": "x"
386
+ * },
387
+ * "alipay": {
388
+ * "hostVer": "√",
389
+ * "uniVer": "x",
390
+ * "unixVer": "x"
391
+ * },
392
+ * "baidu": {
393
+ * "hostVer": "√",
394
+ * "uniVer": "x",
395
+ * "unixVer": "x"
396
+ * },
397
+ * "toutiao": {
398
+ * "hostVer": "√",
399
+ * "uniVer": "x",
400
+ * "unixVer": "x"
401
+ * },
402
+ * "lark": {
403
+ * "hostVer": "√",
404
+ * "uniVer": "x",
405
+ * "unixVer": "x"
406
+ * },
407
+ * "qq": {
408
+ * "hostVer": "√",
409
+ * "uniVer": "x",
410
+ * "unixVer": "x"
411
+ * },
412
+ * "kuaishou": {
413
+ * "hostVer": "√",
414
+ * "uniVer": "x",
415
+ * "unixVer": "x"
416
+ * },
417
+ * "jd": {
418
+ * "hostVer": "√",
419
+ * "uniVer": "x",
420
+ * "unixVer": "x"
421
+ * }
422
+ * },
423
+ * "web": {
424
+ * "uniVer": "x",
425
+ * "unixVer": "x"
426
+ * }
427
+ * }
428
+ */
429
+ lineJoin: string
430
+ /**
431
+ * 设置线条的宽度
432
+ * @defaultValue 1px
433
+ * @uniPlatform {
434
+ * "app": {
435
+ * "android": {
436
+ * "osVer": "5.0",
437
+ * "uniVer": "x",
438
+ * "unixVer": "3.9"
439
+ * },
440
+ * "ios": {
441
+ * "osVer": "12.0",
442
+ * "uniVer": "x",
443
+ * "unixVer": "4.11"
444
+ * },
445
+ * "harmony": {
446
+ * "osVer": "x",
447
+ * "uniVer": "x",
448
+ * "unixVer": "4.61",
449
+ * "unixVaporVer": "x"
450
+ * }
451
+ * },
452
+ * "mp": {
453
+ * "weixin": {
454
+ * "hostVer": "√",
455
+ * "uniVer": "x",
456
+ * "unixVer": "x"
457
+ * },
458
+ * "alipay": {
459
+ * "hostVer": "√",
460
+ * "uniVer": "x",
461
+ * "unixVer": "x"
462
+ * },
463
+ * "baidu": {
464
+ * "hostVer": "√",
465
+ * "uniVer": "x",
466
+ * "unixVer": "x"
467
+ * },
468
+ * "toutiao": {
469
+ * "hostVer": "√",
470
+ * "uniVer": "x",
471
+ * "unixVer": "x"
472
+ * },
473
+ * "lark": {
474
+ * "hostVer": "√",
475
+ * "uniVer": "x",
476
+ * "unixVer": "x"
477
+ * },
478
+ * "qq": {
479
+ * "hostVer": "√",
480
+ * "uniVer": "x",
481
+ * "unixVer": "x"
482
+ * },
483
+ * "kuaishou": {
484
+ * "hostVer": "√",
485
+ * "uniVer": "x",
486
+ * "unixVer": "x"
487
+ * },
488
+ * "jd": {
489
+ * "hostVer": "√",
490
+ * "uniVer": "x",
491
+ * "unixVer": "x"
492
+ * }
493
+ * },
494
+ * "web": {
495
+ * "uniVer": "x",
496
+ * "unixVer": "x"
497
+ * }
498
+ * }
499
+ */
500
+ lineWidth: number
501
+ /**
502
+ * 设置边框的颜色
503
+ * @defaultValue #000 (黑色)
504
+ * @uniPlatform {
505
+ * "app": {
506
+ * "android": {
507
+ * "osVer": "5.0",
508
+ * "uniVer": "x",
509
+ * "unixVer": "3.9"
510
+ * },
511
+ * "ios": {
512
+ * "osVer": "12.0",
513
+ * "uniVer": "x",
514
+ * "unixVer": "4.11"
515
+ * },
516
+ * "harmony": {
517
+ * "osVer": "x",
518
+ * "uniVer": "x",
519
+ * "unixVer": "4.61",
520
+ * "unixVaporVer": "x"
521
+ * }
522
+ * },
523
+ * "mp": {
524
+ * "weixin": {
525
+ * "hostVer": "√",
526
+ * "uniVer": "x",
527
+ * "unixVer": "x"
528
+ * },
529
+ * "alipay": {
530
+ * "hostVer": "√",
531
+ * "uniVer": "x",
532
+ * "unixVer": "x"
533
+ * },
534
+ * "baidu": {
535
+ * "hostVer": "√",
536
+ * "uniVer": "x",
537
+ * "unixVer": "x"
538
+ * },
539
+ * "toutiao": {
540
+ * "hostVer": "√",
541
+ * "uniVer": "x",
542
+ * "unixVer": "x"
543
+ * },
544
+ * "lark": {
545
+ * "hostVer": "√",
546
+ * "uniVer": "x",
547
+ * "unixVer": "x"
548
+ * },
549
+ * "qq": {
550
+ * "hostVer": "√",
551
+ * "uniVer": "x",
552
+ * "unixVer": "x"
553
+ * },
554
+ * "kuaishou": {
555
+ * "hostVer": "√",
556
+ * "uniVer": "x",
557
+ * "unixVer": "x"
558
+ * },
559
+ * "jd": {
560
+ * "hostVer": "√",
561
+ * "uniVer": "x",
562
+ * "unixVer": "x"
563
+ * }
564
+ * },
565
+ * "web": {
566
+ * "uniVer": "x",
567
+ * "unixVer": "x"
568
+ * }
569
+ * }
570
+ */
571
+ strokeStyle: DrawableContextColorString
572
+ /**
573
+ * 设置文本的对齐方式,可取值:`left`左对齐;`center`居中对齐;`right`右对齐。
574
+ * @defaultValue left
575
+ * @uniPlatform {
576
+ * "app": {
577
+ * "android": {
578
+ * "osVer": "5.0",
579
+ * "uniVer": "x",
580
+ * "unixVer": "3.9"
581
+ * },
582
+ * "ios": {
583
+ * "osVer": "12.0",
584
+ * "uniVer": "x",
585
+ * "unixVer": "4.11"
586
+ * },
587
+ * "harmony": {
588
+ * "osVer": "x",
589
+ * "uniVer": "x",
590
+ * "unixVer": "4.61",
591
+ * "unixVaporVer": "x"
592
+ * }
593
+ * },
594
+ * "mp": {
595
+ * "weixin": {
596
+ * "hostVer": "√",
597
+ * "uniVer": "x",
598
+ * "unixVer": "x"
599
+ * },
600
+ * "alipay": {
601
+ * "hostVer": "√",
602
+ * "uniVer": "x",
603
+ * "unixVer": "x"
604
+ * },
605
+ * "baidu": {
606
+ * "hostVer": "√",
607
+ * "uniVer": "x",
608
+ * "unixVer": "x"
609
+ * },
610
+ * "toutiao": {
611
+ * "hostVer": "√",
612
+ * "uniVer": "x",
613
+ * "unixVer": "x"
614
+ * },
615
+ * "lark": {
616
+ * "hostVer": "√",
617
+ * "uniVer": "x",
618
+ * "unixVer": "x"
619
+ * },
620
+ * "qq": {
621
+ * "hostVer": "√",
622
+ * "uniVer": "x",
623
+ * "unixVer": "x"
624
+ * },
625
+ * "kuaishou": {
626
+ * "hostVer": "√",
627
+ * "uniVer": "x",
628
+ * "unixVer": "x"
629
+ * },
630
+ * "jd": {
631
+ * "hostVer": "√",
632
+ * "uniVer": "x",
633
+ * "unixVer": "x"
634
+ * }
635
+ * },
636
+ * "web": {
637
+ * "uniVer": "x",
638
+ * "unixVer": "x"
639
+ * }
640
+ * }
641
+ */
642
+ textAlign: string
643
+
644
+ /**
645
+ * 创建一个新的空路径
646
+ * @uniPlatform {
647
+ * "app": {
648
+ * "android": {
649
+ * "osVer": "5.0",
650
+ * "uniVer": "x",
651
+ * "unixVer": "3.9"
652
+ * },
653
+ * "ios": {
654
+ * "osVer": "12.0",
655
+ * "uniVer": "x",
656
+ * "unixVer": "4.11"
657
+ * },
658
+ * "harmony": {
659
+ * "osVer": "x",
660
+ * "uniVer": "x",
661
+ * "unixVer": "4.61",
662
+ * "unixVaporVer": "x"
663
+ * }
664
+ * },
665
+ * "mp": {
666
+ * "weixin": {
667
+ * "hostVer": "√",
668
+ * "uniVer": "x",
669
+ * "unixVer": "x"
670
+ * },
671
+ * "alipay": {
672
+ * "hostVer": "√",
673
+ * "uniVer": "x",
674
+ * "unixVer": "x"
675
+ * },
676
+ * "baidu": {
677
+ * "hostVer": "√",
678
+ * "uniVer": "x",
679
+ * "unixVer": "x"
680
+ * },
681
+ * "toutiao": {
682
+ * "hostVer": "√",
683
+ * "uniVer": "x",
684
+ * "unixVer": "x"
685
+ * },
686
+ * "lark": {
687
+ * "hostVer": "√",
688
+ * "uniVer": "x",
689
+ * "unixVer": "x"
690
+ * },
691
+ * "qq": {
692
+ * "hostVer": "√",
693
+ * "uniVer": "x",
694
+ * "unixVer": "x"
695
+ * },
696
+ * "kuaishou": {
697
+ * "hostVer": "√",
698
+ * "uniVer": "x",
699
+ * "unixVer": "x"
700
+ * },
701
+ * "jd": {
702
+ * "hostVer": "√",
703
+ * "uniVer": "x",
704
+ * "unixVer": "x"
705
+ * }
706
+ * },
707
+ * "web": {
708
+ * "uniVer": "x",
709
+ * "unixVer": "x"
710
+ * }
711
+ * }
712
+ */
713
+ beginPath(): void
714
+
715
+ /**
716
+ * 绘制一段弧线
717
+ * @param {number} x 圆心的X轴坐标
718
+ * @param {number} y 圆心的Y轴坐标
719
+ * @param {number} radius 圆弧的半径
720
+ * @param {number} startAngle 圆弧的起始点,x 轴方向开始计算,单位为弧度
721
+ * @param {number} endAngle 圆弧的终点,单位为弧度
722
+ * @param {number} [anticlockwise=true] 圆弧绘制方向,true:逆时针绘制,false:顺时针绘制。
723
+ * @uniPlatform {
724
+ * "app": {
725
+ * "android": {
726
+ * "osVer": "5.0",
727
+ * "uniVer": "x",
728
+ * "unixVer": "3.9"
729
+ * },
730
+ * "ios": {
731
+ * "osVer": "12.0",
732
+ * "uniVer": "x",
733
+ * "unixVer": "4.11"
734
+ * },
735
+ * "harmony": {
736
+ * "osVer": "x",
737
+ * "uniVer": "x",
738
+ * "unixVer": "4.61",
739
+ * "unixVaporVer": "x"
740
+ * }
741
+ * },
742
+ * "mp": {
743
+ * "weixin": {
744
+ * "hostVer": "√",
745
+ * "uniVer": "x",
746
+ * "unixVer": "x"
747
+ * },
748
+ * "alipay": {
749
+ * "hostVer": "√",
750
+ * "uniVer": "x",
751
+ * "unixVer": "x"
752
+ * },
753
+ * "baidu": {
754
+ * "hostVer": "√",
755
+ * "uniVer": "x",
756
+ * "unixVer": "x"
757
+ * },
758
+ * "toutiao": {
759
+ * "hostVer": "√",
760
+ * "uniVer": "x",
761
+ * "unixVer": "x"
762
+ * },
763
+ * "lark": {
764
+ * "hostVer": "√",
765
+ * "uniVer": "x",
766
+ * "unixVer": "x"
767
+ * },
768
+ * "qq": {
769
+ * "hostVer": "√",
770
+ * "uniVer": "x",
771
+ * "unixVer": "x"
772
+ * },
773
+ * "kuaishou": {
774
+ * "hostVer": "√",
775
+ * "uniVer": "x",
776
+ * "unixVer": "x"
777
+ * },
778
+ * "jd": {
779
+ * "hostVer": "√",
780
+ * "uniVer": "x",
781
+ * "unixVer": "x"
782
+ * }
783
+ * },
784
+ * "web": {
785
+ * "uniVer": "x",
786
+ * "unixVer": "x"
787
+ * }
788
+ * }
789
+ */
790
+ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean | null): void
791
+
792
+ /**
793
+ * 将一个新的路径的起始点移动到 (x,y) 坐标
794
+ * @param {number} x 点的X轴坐标
795
+ * @param {number} y 点的Y轴坐标
796
+ * @uniPlatform {
797
+ * "app": {
798
+ * "android": {
799
+ * "osVer": "5.0",
800
+ * "uniVer": "x",
801
+ * "unixVer": "3.9"
802
+ * },
803
+ * "ios": {
804
+ * "osVer": "12.0",
805
+ * "uniVer": "x",
806
+ * "unixVer": "4.11"
807
+ * },
808
+ * "harmony": {
809
+ * "osVer": "x",
810
+ * "uniVer": "x",
811
+ * "unixVer": "4.61",
812
+ * "unixVaporVer": "x"
813
+ * }
814
+ * },
815
+ * "mp": {
816
+ * "weixin": {
817
+ * "hostVer": "√",
818
+ * "uniVer": "x",
819
+ * "unixVer": "x"
820
+ * },
821
+ * "alipay": {
822
+ * "hostVer": "√",
823
+ * "uniVer": "x",
824
+ * "unixVer": "x"
825
+ * },
826
+ * "baidu": {
827
+ * "hostVer": "√",
828
+ * "uniVer": "x",
829
+ * "unixVer": "x"
830
+ * },
831
+ * "toutiao": {
832
+ * "hostVer": "√",
833
+ * "uniVer": "x",
834
+ * "unixVer": "x"
835
+ * },
836
+ * "lark": {
837
+ * "hostVer": "√",
838
+ * "uniVer": "x",
839
+ * "unixVer": "x"
840
+ * },
841
+ * "qq": {
842
+ * "hostVer": "√",
843
+ * "uniVer": "x",
844
+ * "unixVer": "x"
845
+ * },
846
+ * "kuaishou": {
847
+ * "hostVer": "√",
848
+ * "uniVer": "x",
849
+ * "unixVer": "x"
850
+ * },
851
+ * "jd": {
852
+ * "hostVer": "√",
853
+ * "uniVer": "x",
854
+ * "unixVer": "x"
855
+ * }
856
+ * },
857
+ * "web": {
858
+ * "uniVer": "x",
859
+ * "unixVer": "x"
860
+ * }
861
+ * }
862
+ */
863
+ moveTo(x: number, y: number): void
864
+
865
+ /**
866
+ * 创建一个矩形路径
867
+ * @param {number} x 矩形起点的X轴坐标
868
+ * @param {number} y 矩形起点的Y轴坐标
869
+ * @param {number} width 矩形宽度
870
+ * @param {number} height 矩形高度
871
+ * @uniPlatform {
872
+ * "app": {
873
+ * "android": {
874
+ * "osVer": "5.0",
875
+ * "uniVer": "x",
876
+ * "unixVer": "3.9"
877
+ * },
878
+ * "ios": {
879
+ * "osVer": "12.0",
880
+ * "uniVer": "x",
881
+ * "unixVer": "4.11"
882
+ * },
883
+ * "harmony": {
884
+ * "osVer": "x",
885
+ * "uniVer": "x",
886
+ * "unixVer": "4.61",
887
+ * "unixVaporVer": "x"
888
+ * }
889
+ * },
890
+ * "mp": {
891
+ * "weixin": {
892
+ * "hostVer": "√",
893
+ * "uniVer": "x",
894
+ * "unixVer": "x"
895
+ * },
896
+ * "alipay": {
897
+ * "hostVer": "√",
898
+ * "uniVer": "x",
899
+ * "unixVer": "x"
900
+ * },
901
+ * "baidu": {
902
+ * "hostVer": "√",
903
+ * "uniVer": "x",
904
+ * "unixVer": "x"
905
+ * },
906
+ * "toutiao": {
907
+ * "hostVer": "√",
908
+ * "uniVer": "x",
909
+ * "unixVer": "x"
910
+ * },
911
+ * "lark": {
912
+ * "hostVer": "√",
913
+ * "uniVer": "x",
914
+ * "unixVer": "x"
915
+ * },
916
+ * "qq": {
917
+ * "hostVer": "√",
918
+ * "uniVer": "x",
919
+ * "unixVer": "x"
920
+ * },
921
+ * "kuaishou": {
922
+ * "hostVer": "√",
923
+ * "uniVer": "x",
924
+ * "unixVer": "x"
925
+ * },
926
+ * "jd": {
927
+ * "hostVer": "√",
928
+ * "uniVer": "x",
929
+ * "unixVer": "x"
930
+ * }
931
+ * },
932
+ * "web": {
933
+ * "uniVer": "x",
934
+ * "unixVer": "x"
935
+ * }
936
+ * }
937
+ */
938
+ rect(x: number, y: number, width: number, height: number): void
939
+
940
+ /**
941
+ * 将路径的最后一个点连接到 (x,y) 坐标
942
+ * @param {number} x 线终点的X轴坐标
943
+ * @param {number} y 线终点的Y轴坐标
944
+ * @uniPlatform {
945
+ * "app": {
946
+ * "android": {
947
+ * "osVer": "5.0",
948
+ * "uniVer": "x",
949
+ * "unixVer": "3.9"
950
+ * },
951
+ * "ios": {
952
+ * "osVer": "12.0",
953
+ * "uniVer": "x",
954
+ * "unixVer": "4.11"
955
+ * },
956
+ * "harmony": {
957
+ * "osVer": "x",
958
+ * "uniVer": "x",
959
+ * "unixVer": "4.61",
960
+ * "unixVaporVer": "x"
961
+ * }
962
+ * },
963
+ * "mp": {
964
+ * "weixin": {
965
+ * "hostVer": "√",
966
+ * "uniVer": "x",
967
+ * "unixVer": "x"
968
+ * },
969
+ * "alipay": {
970
+ * "hostVer": "√",
971
+ * "uniVer": "x",
972
+ * "unixVer": "x"
973
+ * },
974
+ * "baidu": {
975
+ * "hostVer": "√",
976
+ * "uniVer": "x",
977
+ * "unixVer": "x"
978
+ * },
979
+ * "toutiao": {
980
+ * "hostVer": "√",
981
+ * "uniVer": "x",
982
+ * "unixVer": "x"
983
+ * },
984
+ * "lark": {
985
+ * "hostVer": "√",
986
+ * "uniVer": "x",
987
+ * "unixVer": "x"
988
+ * },
989
+ * "qq": {
990
+ * "hostVer": "√",
991
+ * "uniVer": "x",
992
+ * "unixVer": "x"
993
+ * },
994
+ * "kuaishou": {
995
+ * "hostVer": "√",
996
+ * "uniVer": "x",
997
+ * "unixVer": "x"
998
+ * },
999
+ * "jd": {
1000
+ * "hostVer": "√",
1001
+ * "uniVer": "x",
1002
+ * "unixVer": "x"
1003
+ * }
1004
+ * },
1005
+ * "web": {
1006
+ * "uniVer": "x",
1007
+ * "unixVer": "x"
1008
+ * }
1009
+ * }
1010
+ */
1011
+ lineTo(x: number, y: number): void
1012
+
1013
+ /**
1014
+ * 闭合路径,将最后一个点与起点连接起来。如果图形已经封闭,或者只有一个点,那么此方法不会产生任何效果。
1015
+ * @uniPlatform {
1016
+ * "app": {
1017
+ * "android": {
1018
+ * "osVer": "5.0",
1019
+ * "uniVer": "x",
1020
+ * "unixVer": "3.9"
1021
+ * },
1022
+ * "ios": {
1023
+ * "osVer": "12.0",
1024
+ * "uniVer": "x",
1025
+ * "unixVer": "4.11"
1026
+ * },
1027
+ * "harmony": {
1028
+ * "osVer": "x",
1029
+ * "uniVer": "x",
1030
+ * "unixVer": "4.61",
1031
+ * "unixVaporVer": "x"
1032
+ * }
1033
+ * },
1034
+ * "mp": {
1035
+ * "weixin": {
1036
+ * "hostVer": "√",
1037
+ * "uniVer": "x",
1038
+ * "unixVer": "x"
1039
+ * },
1040
+ * "alipay": {
1041
+ * "hostVer": "√",
1042
+ * "uniVer": "x",
1043
+ * "unixVer": "x"
1044
+ * },
1045
+ * "baidu": {
1046
+ * "hostVer": "√",
1047
+ * "uniVer": "x",
1048
+ * "unixVer": "x"
1049
+ * },
1050
+ * "toutiao": {
1051
+ * "hostVer": "√",
1052
+ * "uniVer": "x",
1053
+ * "unixVer": "x"
1054
+ * },
1055
+ * "lark": {
1056
+ * "hostVer": "√",
1057
+ * "uniVer": "x",
1058
+ * "unixVer": "x"
1059
+ * },
1060
+ * "qq": {
1061
+ * "hostVer": "√",
1062
+ * "uniVer": "x",
1063
+ * "unixVer": "x"
1064
+ * },
1065
+ * "kuaishou": {
1066
+ * "hostVer": "√",
1067
+ * "uniVer": "x",
1068
+ * "unixVer": "x"
1069
+ * },
1070
+ * "jd": {
1071
+ * "hostVer": "√",
1072
+ * "uniVer": "x",
1073
+ * "unixVer": "x"
1074
+ * }
1075
+ * },
1076
+ * "web": {
1077
+ * "uniVer": "x",
1078
+ * "unixVer": "x"
1079
+ * }
1080
+ * }
1081
+ */
1082
+ closePath(): void
1083
+
1084
+ /**
1085
+ * 绘制当前或已经存在的路径的边框。
1086
+ * @uniPlatform {
1087
+ * "app": {
1088
+ * "android": {
1089
+ * "osVer": "5.0",
1090
+ * "uniVer": "x",
1091
+ * "unixVer": "3.9"
1092
+ * },
1093
+ * "ios": {
1094
+ * "osVer": "12.0",
1095
+ * "uniVer": "x",
1096
+ * "unixVer": "4.11"
1097
+ * },
1098
+ * "harmony": {
1099
+ * "osVer": "x",
1100
+ * "uniVer": "x",
1101
+ * "unixVer": "4.61",
1102
+ * "unixVaporVer": "x"
1103
+ * }
1104
+ * },
1105
+ * "mp": {
1106
+ * "weixin": {
1107
+ * "hostVer": "√",
1108
+ * "uniVer": "x",
1109
+ * "unixVer": "x"
1110
+ * },
1111
+ * "alipay": {
1112
+ * "hostVer": "√",
1113
+ * "uniVer": "x",
1114
+ * "unixVer": "x"
1115
+ * },
1116
+ * "baidu": {
1117
+ * "hostVer": "√",
1118
+ * "uniVer": "x",
1119
+ * "unixVer": "x"
1120
+ * },
1121
+ * "toutiao": {
1122
+ * "hostVer": "√",
1123
+ * "uniVer": "x",
1124
+ * "unixVer": "x"
1125
+ * },
1126
+ * "lark": {
1127
+ * "hostVer": "√",
1128
+ * "uniVer": "x",
1129
+ * "unixVer": "x"
1130
+ * },
1131
+ * "qq": {
1132
+ * "hostVer": "√",
1133
+ * "uniVer": "x",
1134
+ * "unixVer": "x"
1135
+ * },
1136
+ * "kuaishou": {
1137
+ * "hostVer": "√",
1138
+ * "uniVer": "x",
1139
+ * "unixVer": "x"
1140
+ * },
1141
+ * "jd": {
1142
+ * "hostVer": "√",
1143
+ * "uniVer": "x",
1144
+ * "unixVer": "x"
1145
+ * }
1146
+ * },
1147
+ * "web": {
1148
+ * "uniVer": "x",
1149
+ * "unixVer": "x"
1150
+ * }
1151
+ * }
1152
+ */
1153
+ stroke(): void
1154
+
1155
+ /**
1156
+ * 绘制一个矩形框
1157
+ * @param {number} x 矩形起点的X轴坐标
1158
+ * @param {number} y 矩形起点的Y轴坐标
1159
+ * @param {number} width 矩形宽度
1160
+ * @param {number} height 矩形高度
1161
+ * @uniPlatform {
1162
+ * "app": {
1163
+ * "android": {
1164
+ * "osVer": "5.0",
1165
+ * "uniVer": "x",
1166
+ * "unixVer": "3.9"
1167
+ * },
1168
+ * "ios": {
1169
+ * "osVer": "12.0",
1170
+ * "uniVer": "x",
1171
+ * "unixVer": "4.11"
1172
+ * },
1173
+ * "harmony": {
1174
+ * "osVer": "x",
1175
+ * "uniVer": "x",
1176
+ * "unixVer": "4.61",
1177
+ * "unixVaporVer": "x"
1178
+ * }
1179
+ * },
1180
+ * "mp": {
1181
+ * "weixin": {
1182
+ * "hostVer": "√",
1183
+ * "uniVer": "x",
1184
+ * "unixVer": "x"
1185
+ * },
1186
+ * "alipay": {
1187
+ * "hostVer": "√",
1188
+ * "uniVer": "x",
1189
+ * "unixVer": "x"
1190
+ * },
1191
+ * "baidu": {
1192
+ * "hostVer": "√",
1193
+ * "uniVer": "x",
1194
+ * "unixVer": "x"
1195
+ * },
1196
+ * "toutiao": {
1197
+ * "hostVer": "√",
1198
+ * "uniVer": "x",
1199
+ * "unixVer": "x"
1200
+ * },
1201
+ * "lark": {
1202
+ * "hostVer": "√",
1203
+ * "uniVer": "x",
1204
+ * "unixVer": "x"
1205
+ * },
1206
+ * "qq": {
1207
+ * "hostVer": "√",
1208
+ * "uniVer": "x",
1209
+ * "unixVer": "x"
1210
+ * },
1211
+ * "kuaishou": {
1212
+ * "hostVer": "√",
1213
+ * "uniVer": "x",
1214
+ * "unixVer": "x"
1215
+ * },
1216
+ * "jd": {
1217
+ * "hostVer": "√",
1218
+ * "uniVer": "x",
1219
+ * "unixVer": "x"
1220
+ * }
1221
+ * },
1222
+ * "web": {
1223
+ * "uniVer": "x",
1224
+ * "unixVer": "x"
1225
+ * }
1226
+ * }
1227
+ */
1228
+ strokeRect(x: number, y: number, width: number, height: number): void
1229
+
1230
+ /**
1231
+ * 绘制空心字符
1232
+ * @param {string} text 要绘制的字符
1233
+ * @param {number} x 字符开始绘制的X轴坐标
1234
+ * @param {number} y 字符开始绘制的Y轴坐标
1235
+ * @uniPlatform {
1236
+ * "app": {
1237
+ * "android": {
1238
+ * "osVer": "5.0",
1239
+ * "uniVer": "x",
1240
+ * "unixVer": "3.9"
1241
+ * },
1242
+ * "ios": {
1243
+ * "osVer": "12.0",
1244
+ * "uniVer": "x",
1245
+ * "unixVer": "4.11"
1246
+ * },
1247
+ * "harmony": {
1248
+ * "osVer": "x",
1249
+ * "uniVer": "x",
1250
+ * "unixVer": "4.61",
1251
+ * "unixVaporVer": "x"
1252
+ * }
1253
+ * },
1254
+ * "mp": {
1255
+ * "weixin": {
1256
+ * "hostVer": "√",
1257
+ * "uniVer": "x",
1258
+ * "unixVer": "x"
1259
+ * },
1260
+ * "alipay": {
1261
+ * "hostVer": "√",
1262
+ * "uniVer": "x",
1263
+ * "unixVer": "x"
1264
+ * },
1265
+ * "baidu": {
1266
+ * "hostVer": "√",
1267
+ * "uniVer": "x",
1268
+ * "unixVer": "x"
1269
+ * },
1270
+ * "toutiao": {
1271
+ * "hostVer": "√",
1272
+ * "uniVer": "x",
1273
+ * "unixVer": "x"
1274
+ * },
1275
+ * "lark": {
1276
+ * "hostVer": "√",
1277
+ * "uniVer": "x",
1278
+ * "unixVer": "x"
1279
+ * },
1280
+ * "qq": {
1281
+ * "hostVer": "√",
1282
+ * "uniVer": "x",
1283
+ * "unixVer": "x"
1284
+ * },
1285
+ * "kuaishou": {
1286
+ * "hostVer": "√",
1287
+ * "uniVer": "x",
1288
+ * "unixVer": "x"
1289
+ * },
1290
+ * "jd": {
1291
+ * "hostVer": "√",
1292
+ * "uniVer": "x",
1293
+ * "unixVer": "x"
1294
+ * }
1295
+ * },
1296
+ * "web": {
1297
+ * "uniVer": "x",
1298
+ * "unixVer": "x"
1299
+ * }
1300
+ * }
1301
+ */
1302
+ strokeText(text: string, x: number, y: number): void
1303
+
1304
+ /**
1305
+ * 填充当前或已存在的路径
1306
+ * @param {string} [fillRule=nonzero] 填充规则。可取值:`nonzero`非零环绕规则;`evenodd`奇偶环绕规则。
1307
+ * @uniPlatform {
1308
+ * "app": {
1309
+ * "android": {
1310
+ * "osVer": "5.0",
1311
+ * "uniVer": "x",
1312
+ * "unixVer": "3.9"
1313
+ * },
1314
+ * "ios": {
1315
+ * "osVer": "12.0",
1316
+ * "uniVer": "x",
1317
+ * "unixVer": "4.11"
1318
+ * },
1319
+ * "harmony": {
1320
+ * "osVer": "x",
1321
+ * "uniVer": "x",
1322
+ * "unixVer": "4.61",
1323
+ * "unixVaporVer": "x"
1324
+ * }
1325
+ * },
1326
+ * "mp": {
1327
+ * "weixin": {
1328
+ * "hostVer": "√",
1329
+ * "uniVer": "x",
1330
+ * "unixVer": "x"
1331
+ * },
1332
+ * "alipay": {
1333
+ * "hostVer": "√",
1334
+ * "uniVer": "x",
1335
+ * "unixVer": "x"
1336
+ * },
1337
+ * "baidu": {
1338
+ * "hostVer": "√",
1339
+ * "uniVer": "x",
1340
+ * "unixVer": "x"
1341
+ * },
1342
+ * "toutiao": {
1343
+ * "hostVer": "√",
1344
+ * "uniVer": "x",
1345
+ * "unixVer": "x"
1346
+ * },
1347
+ * "lark": {
1348
+ * "hostVer": "√",
1349
+ * "uniVer": "x",
1350
+ * "unixVer": "x"
1351
+ * },
1352
+ * "qq": {
1353
+ * "hostVer": "√",
1354
+ * "uniVer": "x",
1355
+ * "unixVer": "x"
1356
+ * },
1357
+ * "kuaishou": {
1358
+ * "hostVer": "√",
1359
+ * "uniVer": "x",
1360
+ * "unixVer": "x"
1361
+ * },
1362
+ * "jd": {
1363
+ * "hostVer": "√",
1364
+ * "uniVer": "x",
1365
+ * "unixVer": "x"
1366
+ * }
1367
+ * },
1368
+ * "web": {
1369
+ * "uniVer": "x",
1370
+ * "unixVer": "x"
1371
+ * }
1372
+ * }
1373
+ */
1374
+ fill(fillRule?: string | null): void
1375
+
1376
+ /**
1377
+ * 绘制一个实心矩形
1378
+ * @param {number} x 矩形起点的X轴坐标
1379
+ * @param {number} y 矩形起点的Y轴坐标
1380
+ * @param {number} width 矩形宽度
1381
+ * @param {number} height 矩形高度
1382
+ * @uniPlatform {
1383
+ * "app": {
1384
+ * "android": {
1385
+ * "osVer": "5.0",
1386
+ * "uniVer": "x",
1387
+ * "unixVer": "3.9"
1388
+ * },
1389
+ * "ios": {
1390
+ * "osVer": "12.0",
1391
+ * "uniVer": "x",
1392
+ * "unixVer": "4.11"
1393
+ * },
1394
+ * "harmony": {
1395
+ * "osVer": "x",
1396
+ * "uniVer": "x",
1397
+ * "unixVer": "4.61",
1398
+ * "unixVaporVer": "x"
1399
+ * }
1400
+ * },
1401
+ * "mp": {
1402
+ * "weixin": {
1403
+ * "hostVer": "√",
1404
+ * "uniVer": "x",
1405
+ * "unixVer": "x"
1406
+ * },
1407
+ * "alipay": {
1408
+ * "hostVer": "√",
1409
+ * "uniVer": "x",
1410
+ * "unixVer": "x"
1411
+ * },
1412
+ * "baidu": {
1413
+ * "hostVer": "√",
1414
+ * "uniVer": "x",
1415
+ * "unixVer": "x"
1416
+ * },
1417
+ * "toutiao": {
1418
+ * "hostVer": "√",
1419
+ * "uniVer": "x",
1420
+ * "unixVer": "x"
1421
+ * },
1422
+ * "lark": {
1423
+ * "hostVer": "√",
1424
+ * "uniVer": "x",
1425
+ * "unixVer": "x"
1426
+ * },
1427
+ * "qq": {
1428
+ * "hostVer": "√",
1429
+ * "uniVer": "x",
1430
+ * "unixVer": "x"
1431
+ * },
1432
+ * "kuaishou": {
1433
+ * "hostVer": "√",
1434
+ * "uniVer": "x",
1435
+ * "unixVer": "x"
1436
+ * },
1437
+ * "jd": {
1438
+ * "hostVer": "√",
1439
+ * "uniVer": "x",
1440
+ * "unixVer": "x"
1441
+ * }
1442
+ * },
1443
+ * "web": {
1444
+ * "uniVer": "x",
1445
+ * "unixVer": "x"
1446
+ * }
1447
+ * }
1448
+ */
1449
+ fillRect(x: number, y: number, width: number, height: number): void
1450
+
1451
+ /**
1452
+ * 绘制实心字符
1453
+ * @param {string} text 要绘制的字符
1454
+ * @param {number} x 字符开始绘制的X轴坐标
1455
+ * @param {number} y 字符开始绘制的Y轴坐标
1456
+ * @uniPlatform {
1457
+ * "app": {
1458
+ * "android": {
1459
+ * "osVer": "5.0",
1460
+ * "uniVer": "x",
1461
+ * "unixVer": "3.9"
1462
+ * },
1463
+ * "ios": {
1464
+ * "osVer": "12.0",
1465
+ * "uniVer": "x",
1466
+ * "unixVer": "4.11"
1467
+ * },
1468
+ * "harmony": {
1469
+ * "osVer": "x",
1470
+ * "uniVer": "x",
1471
+ * "unixVer": "4.61",
1472
+ * "unixVaporVer": "x"
1473
+ * }
1474
+ * },
1475
+ * "mp": {
1476
+ * "weixin": {
1477
+ * "hostVer": "√",
1478
+ * "uniVer": "x",
1479
+ * "unixVer": "x"
1480
+ * },
1481
+ * "alipay": {
1482
+ * "hostVer": "√",
1483
+ * "uniVer": "x",
1484
+ * "unixVer": "x"
1485
+ * },
1486
+ * "baidu": {
1487
+ * "hostVer": "√",
1488
+ * "uniVer": "x",
1489
+ * "unixVer": "x"
1490
+ * },
1491
+ * "toutiao": {
1492
+ * "hostVer": "√",
1493
+ * "uniVer": "x",
1494
+ * "unixVer": "x"
1495
+ * },
1496
+ * "lark": {
1497
+ * "hostVer": "√",
1498
+ * "uniVer": "x",
1499
+ * "unixVer": "x"
1500
+ * },
1501
+ * "qq": {
1502
+ * "hostVer": "√",
1503
+ * "uniVer": "x",
1504
+ * "unixVer": "x"
1505
+ * },
1506
+ * "kuaishou": {
1507
+ * "hostVer": "√",
1508
+ * "uniVer": "x",
1509
+ * "unixVer": "x"
1510
+ * },
1511
+ * "jd": {
1512
+ * "hostVer": "√",
1513
+ * "uniVer": "x",
1514
+ * "unixVer": "x"
1515
+ * }
1516
+ * },
1517
+ * "web": {
1518
+ * "uniVer": "x",
1519
+ * "unixVer": "x"
1520
+ * }
1521
+ * }
1522
+ */
1523
+ fillText(text: string, x: number, y: number): void
1524
+
1525
+ /**
1526
+ * 清空绘制数据
1527
+ * @uniPlatform {
1528
+ * "app": {
1529
+ * "android": {
1530
+ * "osVer": "5.0",
1531
+ * "uniVer": "x",
1532
+ * "unixVer": "3.9"
1533
+ * },
1534
+ * "ios": {
1535
+ * "osVer": "12.0",
1536
+ * "uniVer": "x",
1537
+ * "unixVer": "4.11"
1538
+ * },
1539
+ * "harmony": {
1540
+ * "osVer": "x",
1541
+ * "uniVer": "x",
1542
+ * "unixVer": "4.61",
1543
+ * "unixVaporVer": "x"
1544
+ * }
1545
+ * },
1546
+ * "mp": {
1547
+ * "weixin": {
1548
+ * "hostVer": "√",
1549
+ * "uniVer": "x",
1550
+ * "unixVer": "x"
1551
+ * },
1552
+ * "alipay": {
1553
+ * "hostVer": "√",
1554
+ * "uniVer": "x",
1555
+ * "unixVer": "x"
1556
+ * },
1557
+ * "baidu": {
1558
+ * "hostVer": "√",
1559
+ * "uniVer": "x",
1560
+ * "unixVer": "x"
1561
+ * },
1562
+ * "toutiao": {
1563
+ * "hostVer": "√",
1564
+ * "uniVer": "x",
1565
+ * "unixVer": "x"
1566
+ * },
1567
+ * "lark": {
1568
+ * "hostVer": "√",
1569
+ * "uniVer": "x",
1570
+ * "unixVer": "x"
1571
+ * },
1572
+ * "qq": {
1573
+ * "hostVer": "√",
1574
+ * "uniVer": "x",
1575
+ * "unixVer": "x"
1576
+ * },
1577
+ * "kuaishou": {
1578
+ * "hostVer": "√",
1579
+ * "uniVer": "x",
1580
+ * "unixVer": "x"
1581
+ * },
1582
+ * "jd": {
1583
+ * "hostVer": "√",
1584
+ * "uniVer": "x",
1585
+ * "unixVer": "x"
1586
+ * }
1587
+ * },
1588
+ * "web": {
1589
+ * "uniVer": "x",
1590
+ * "unixVer": "x"
1591
+ * }
1592
+ * }
1593
+ */
1594
+ reset(): void
1595
+
1596
+ /**
1597
+ * 将所有绘制内容更新到画布上
1598
+ * @uniPlatform {
1599
+ * "app": {
1600
+ * "android": {
1601
+ * "osVer": "5.0",
1602
+ * "uniVer": "x",
1603
+ * "unixVer": "3.9"
1604
+ * },
1605
+ * "ios": {
1606
+ * "osVer": "12.0",
1607
+ * "uniVer": "x",
1608
+ * "unixVer": "4.11"
1609
+ * },
1610
+ * "harmony": {
1611
+ * "osVer": "x",
1612
+ * "uniVer": "x",
1613
+ * "unixVer": "4.61",
1614
+ * "unixVaporVer": "x"
1615
+ * }
1616
+ * },
1617
+ * "mp": {
1618
+ * "weixin": {
1619
+ * "hostVer": "√",
1620
+ * "uniVer": "x",
1621
+ * "unixVer": "x"
1622
+ * },
1623
+ * "alipay": {
1624
+ * "hostVer": "√",
1625
+ * "uniVer": "x",
1626
+ * "unixVer": "x"
1627
+ * },
1628
+ * "baidu": {
1629
+ * "hostVer": "√",
1630
+ * "uniVer": "x",
1631
+ * "unixVer": "x"
1632
+ * },
1633
+ * "toutiao": {
1634
+ * "hostVer": "√",
1635
+ * "uniVer": "x",
1636
+ * "unixVer": "x"
1637
+ * },
1638
+ * "lark": {
1639
+ * "hostVer": "√",
1640
+ * "uniVer": "x",
1641
+ * "unixVer": "x"
1642
+ * },
1643
+ * "qq": {
1644
+ * "hostVer": "√",
1645
+ * "uniVer": "x",
1646
+ * "unixVer": "x"
1647
+ * },
1648
+ * "kuaishou": {
1649
+ * "hostVer": "√",
1650
+ * "uniVer": "x",
1651
+ * "unixVer": "x"
1652
+ * },
1653
+ * "jd": {
1654
+ * "hostVer": "√",
1655
+ * "uniVer": "x",
1656
+ * "unixVer": "x"
1657
+ * }
1658
+ * },
1659
+ * "web": {
1660
+ * "uniVer": "x",
1661
+ * "unixVer": "x"
1662
+ * }
1663
+ * }
1664
+ */
1665
+ update(): void
1666
+
1667
+ /**
1668
+ * 设置虚线样式
1669
+ * @param {Array<number>} segments 一组描述交替绘制线段和间距长度的数字。
1670
+ * @uniPlatform {
1671
+ * "app": {
1672
+ * "android": {
1673
+ * "osVer": "5.0",
1674
+ * "uniVer": "x",
1675
+ * "unixVer": "3.9"
1676
+ * },
1677
+ * "ios": {
1678
+ * "osVer": "12.0",
1679
+ * "uniVer": "x",
1680
+ * "unixVer": "4.11"
1681
+ * },
1682
+ * "harmony": {
1683
+ * "osVer": "x",
1684
+ * "uniVer": "x",
1685
+ * "unixVer": "4.61",
1686
+ * "unixVaporVer": "x"
1687
+ * }
1688
+ * },
1689
+ * "mp": {
1690
+ * "weixin": {
1691
+ * "hostVer": "√",
1692
+ * "uniVer": "x",
1693
+ * "unixVer": "x"
1694
+ * },
1695
+ * "alipay": {
1696
+ * "hostVer": "√",
1697
+ * "uniVer": "x",
1698
+ * "unixVer": "x"
1699
+ * },
1700
+ * "baidu": {
1701
+ * "hostVer": "√",
1702
+ * "uniVer": "x",
1703
+ * "unixVer": "x"
1704
+ * },
1705
+ * "toutiao": {
1706
+ * "hostVer": "√",
1707
+ * "uniVer": "x",
1708
+ * "unixVer": "x"
1709
+ * },
1710
+ * "lark": {
1711
+ * "hostVer": "√",
1712
+ * "uniVer": "x",
1713
+ * "unixVer": "x"
1714
+ * },
1715
+ * "qq": {
1716
+ * "hostVer": "√",
1717
+ * "uniVer": "x",
1718
+ * "unixVer": "x"
1719
+ * },
1720
+ * "kuaishou": {
1721
+ * "hostVer": "√",
1722
+ * "uniVer": "x",
1723
+ * "unixVer": "x"
1724
+ * },
1725
+ * "jd": {
1726
+ * "hostVer": "√",
1727
+ * "uniVer": "x",
1728
+ * "unixVer": "x"
1729
+ * }
1730
+ * },
1731
+ * "web": {
1732
+ * "uniVer": "x",
1733
+ * "unixVer": "x"
1734
+ * }
1735
+ * }
1736
+ */
1737
+ setLineDash(segments: Array<number>): void
1738
+
1739
+ /**
1740
+ * 根据控制点和半径绘制圆弧路径
1741
+ * @param {number} x1 第一个控制点的 x 轴坐标
1742
+ * @param {number} y1 第一个控制点的 y 轴坐标
1743
+ * @param {number} x2 第二个控制点的 x 轴坐标
1744
+ * @param {number} y2 第二个控制点的 y 轴坐标
1745
+ * @param {number} radius 圆弧的半径
1746
+ * @uniPlatform {
1747
+ * "app": {
1748
+ * "android": {
1749
+ * "osVer": "5.0",
1750
+ * "uniVer": "x",
1751
+ * "unixVer": "3.9"
1752
+ * },
1753
+ * "ios": {
1754
+ * "osVer": "12.0",
1755
+ * "uniVer": "x",
1756
+ * "unixVer": "4.11"
1757
+ * },
1758
+ * "harmony": {
1759
+ * "osVer": "x",
1760
+ * "uniVer": "x",
1761
+ * "unixVer": "4.61",
1762
+ * "unixVaporVer": "x"
1763
+ * }
1764
+ * },
1765
+ * "mp": {
1766
+ * "weixin": {
1767
+ * "hostVer": "√",
1768
+ * "uniVer": "x",
1769
+ * "unixVer": "x"
1770
+ * },
1771
+ * "alipay": {
1772
+ * "hostVer": "√",
1773
+ * "uniVer": "x",
1774
+ * "unixVer": "x"
1775
+ * },
1776
+ * "baidu": {
1777
+ * "hostVer": "√",
1778
+ * "uniVer": "x",
1779
+ * "unixVer": "x"
1780
+ * },
1781
+ * "toutiao": {
1782
+ * "hostVer": "√",
1783
+ * "uniVer": "x",
1784
+ * "unixVer": "x"
1785
+ * },
1786
+ * "lark": {
1787
+ * "hostVer": "√",
1788
+ * "uniVer": "x",
1789
+ * "unixVer": "x"
1790
+ * },
1791
+ * "qq": {
1792
+ * "hostVer": "√",
1793
+ * "uniVer": "x",
1794
+ * "unixVer": "x"
1795
+ * },
1796
+ * "kuaishou": {
1797
+ * "hostVer": "√",
1798
+ * "uniVer": "x",
1799
+ * "unixVer": "x"
1800
+ * },
1801
+ * "jd": {
1802
+ * "hostVer": "√",
1803
+ * "uniVer": "x",
1804
+ * "unixVer": "x"
1805
+ * }
1806
+ * },
1807
+ * "web": {
1808
+ * "uniVer": "x",
1809
+ * "unixVer": "x"
1810
+ * }
1811
+ * }
1812
+ */
1813
+ // arcTo(x1 : number, y1 : number, x2 : number, y2 : number, radius : number) : void
1814
+
1815
+ /**
1816
+ * 创建三次方贝塞尔曲线路径
1817
+ * @param {number} cp1x 第一个贝塞尔控制点的 x 坐标
1818
+ * @param {number} cp1y 第一个贝塞尔控制点的 y 坐标
1819
+ * @param {number} cp2x 第二个贝塞尔控制点的 x 坐标
1820
+ * @param {number} cp2y 第二个贝塞尔控制点的 y 坐标
1821
+ * @param {number} x 结束点的 x 坐标
1822
+ * @param {number} y 结束点的 y 坐标
1823
+ * @uniPlatform {
1824
+ * "app": {
1825
+ * "android": {
1826
+ * "osVer": "5.0",
1827
+ * "uniVer": "x",
1828
+ * "unixVer": "3.9"
1829
+ * },
1830
+ * "ios": {
1831
+ * "osVer": "12.0",
1832
+ * "uniVer": "x",
1833
+ * "unixVer": "4.11"
1834
+ * },
1835
+ * "harmony": {
1836
+ * "osVer": "x",
1837
+ * "uniVer": "x",
1838
+ * "unixVer": "4.61",
1839
+ * "unixVaporVer": "x"
1840
+ * }
1841
+ * },
1842
+ * "mp": {
1843
+ * "weixin": {
1844
+ * "hostVer": "√",
1845
+ * "uniVer": "x",
1846
+ * "unixVer": "x"
1847
+ * },
1848
+ * "alipay": {
1849
+ * "hostVer": "√",
1850
+ * "uniVer": "x",
1851
+ * "unixVer": "x"
1852
+ * },
1853
+ * "baidu": {
1854
+ * "hostVer": "√",
1855
+ * "uniVer": "x",
1856
+ * "unixVer": "x"
1857
+ * },
1858
+ * "toutiao": {
1859
+ * "hostVer": "√",
1860
+ * "uniVer": "x",
1861
+ * "unixVer": "x"
1862
+ * },
1863
+ * "lark": {
1864
+ * "hostVer": "√",
1865
+ * "uniVer": "x",
1866
+ * "unixVer": "x"
1867
+ * },
1868
+ * "qq": {
1869
+ * "hostVer": "√",
1870
+ * "uniVer": "x",
1871
+ * "unixVer": "x"
1872
+ * },
1873
+ * "kuaishou": {
1874
+ * "hostVer": "√",
1875
+ * "uniVer": "x",
1876
+ * "unixVer": "x"
1877
+ * },
1878
+ * "jd": {
1879
+ * "hostVer": "√",
1880
+ * "uniVer": "x",
1881
+ * "unixVer": "x"
1882
+ * }
1883
+ * },
1884
+ * "web": {
1885
+ * "uniVer": "x",
1886
+ * "unixVer": "x"
1887
+ * }
1888
+ * }
1889
+ */
1890
+ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
1891
+ }
1892
+
1893
+ }