@dcloudio/uni-app-x 0.7.19 → 0.7.21
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.
- package/.prettierrc +5 -5
- package/README.md +1 -1
- package/index.d.ts +1 -1
- package/options.d.ts +9 -9
- package/package.json +27 -27
- package/types/app.d.ts +1002 -842
- package/types/index.d.ts +7 -7
- package/types/native/AsyncApiResult.d.ts +7 -7
- package/types/native/CSSStyleDeclaration.d.ts +25 -25
- package/types/native/CanvasRenderingContext2D.d.ts +2048 -2047
- package/types/native/DOMRect.d.ts +56 -56
- package/types/native/DrawableContext.d.ts +162 -162
- package/types/native/INavigationBar.d.ts +22 -22
- package/types/native/IUniElement.d.ts +2859 -2859
- package/types/native/IUniError.d.ts +20 -20
- package/types/native/IUniForm.d.ts +9 -9
- package/types/native/IUniObjectElement.d.ts +124 -124
- package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
- package/types/native/NodeData.d.ts +22 -22
- package/types/native/PageNode.d.ts +6 -6
- package/types/native/Path2D.d.ts +240 -240
- package/types/native/SnapshotOptions.d.ts +63 -63
- package/types/native/SourceError.d.ts +46 -46
- package/types/native/UTSAndroidHookProxy.d.ts +14 -14
- package/types/native/UniAggregateError.d.ts +19 -19
- package/types/native/UniApp.d.ts +205 -205
- package/types/native/UniCallbackWrapper.d.ts +7 -7
- package/types/native/UniCanvasElement.d.ts +9 -9
- package/types/native/UniCustomEvent.d.ts +24 -24
- package/types/native/UniDocument.d.ts +83 -83
- package/types/native/UniElement.d.ts +79 -79
- package/types/native/UniError.d.ts +70 -70
- package/types/native/UniEvent.d.ts +92 -92
- package/types/native/UniFormControl.d.ts +8 -8
- package/types/native/UniFormControlElement.d.ts +14 -14
- package/types/native/UniImageErrorEvent.d.ts +33 -33
- package/types/native/UniImageLoadEvent.d.ts +37 -37
- package/types/native/UniInputBlurEvent.d.ts +36 -36
- package/types/native/UniInputConfirmEvent.d.ts +30 -30
- package/types/native/UniInputEvent.d.ts +38 -38
- package/types/native/UniInputFocusEvent.d.ts +53 -53
- package/types/native/UniNativePage.d.ts +270 -270
- package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
- package/types/native/UniPageEvent.d.ts +10 -10
- package/types/native/UniPageManager.d.ts +27 -20
- package/types/native/UniPageScrollEvent.d.ts +13 -13
- package/types/native/UniPointerEvent.d.ts +74 -74
- package/types/native/UniProvider.d.ts +15 -15
- package/types/native/UniRefresherEvent.d.ts +18 -18
- package/types/native/UniResizeEvent.d.ts +34 -34
- package/types/native/UniResizeObserver.d.ts +184 -184
- package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
- package/types/native/UniScrollEvent.d.ts +42 -42
- package/types/native/UniScrollToLowerEvent.d.ts +23 -23
- package/types/native/UniScrollToUpperEvent.d.ts +23 -23
- package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
- package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
- package/types/native/UniSwiperChangeEvent.d.ts +44 -44
- package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
- package/types/native/UniTabTapEvent.d.ts +18 -18
- package/types/native/UniTabsElement.d.ts +59 -59
- package/types/native/UniTextElement.d.ts +34 -34
- package/types/native/UniTextareaFocusEvent.d.ts +54 -54
- package/types/native/UniTouchEvent.d.ts +64 -64
- package/types/native/UniVideoElement.d.ts +75 -75
- package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
- package/types/native/UniWebViewElement.d.ts +10 -10
- package/types/native/UniWebViewErrorEvent.d.ts +59 -59
- package/types/native/UniWebViewLoadEvent.d.ts +41 -41
- package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
- package/types/native/UniWebViewMessageEvent.d.ts +36 -36
- package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
- package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
- package/types/native/WebViewStyles.d.ts +20 -20
- package/types/native/global.d.ts +598 -598
- package/types/native/index.d.ts +71 -71
- package/types/native-global/index.d.ts +1 -1
- package/types/page.d.ts +1682 -1682
- package/types/process.d.ts +5 -5
- package/types/uni/base/index.d.ts +3 -3
- package/types/uni/env/index.d.ts +103 -103
- package/types/uni/global.d.ts +6 -6
- package/types/uni/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/global.d.ts +58 -57
- package/types/uni/uts-plugin-api/index.d.ts +58 -57
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -242
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -427
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -32
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -15
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +375 -375
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -74
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -36
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +193 -8
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
- package/types/uni/uts-plugin-biz/global.d.ts +4 -4
- package/types/uni/uts-plugin-biz/index.d.ts +4 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +808 -778
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
- package/types/uni/uts-plugin-component/global.d.ts +1 -1
- package/types/uni/uts-plugin-component/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
- package/types/uni/uts-plugin-extend/README.md +3 -3
- package/types/uni/uts-plugin-extend/global.d.ts +14 -14
- package/types/uni/uts-plugin-extend/index.d.ts +14 -14
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
- package/types/uni-cloud/index.d.ts +67 -63
- package/types/uni-cloud/interface.d.ts +987 -991
- package/types/uni-cloud/unicloud-db/index.ts +314 -314
- package/types/uni-global/index.d.ts +1 -1
- package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
- package/types/vue/LifeCycle.d.ts +55 -55
- package/types/vue/PickerViewChangeEvent.d.ts +41 -41
- package/types/vue/ProgressActiveendEvent.d.ts +32 -32
- package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
- package/types/vue/SliderChangeEvent.d.ts +35 -35
- package/types/vue/SwitchChangeEvent.d.ts +32 -32
- package/types/vue/UniCanvasElement.d.ts +275 -275
- package/types/vue/UniCloudDBElement.d.ts +217 -217
- package/types/vue/UniFormElement.d.ts +54 -54
- package/types/vue/UniNavigatorElement.d.ts +11 -11
- package/types/vue/global.d.ts +191 -191
- package/types/vue/index.d.ts +10 -10
- package/types/vue-global/index.d.ts +1 -1
- package/uts-plugin.d.ts +27 -27
- package/types/shim-uts-basic.d.ts +0 -4495
|
@@ -1,2047 +1,2048 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @package io.dcloud.uniapp.runtime
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { Image } from "./IUniElement"
|
|
6
|
-
import { Path2D } from "./Path2D"
|
|
7
|
-
/**
|
|
8
|
-
* 表示文本的尺寸,通过 CanvasRenderingContext2D.measureText() 方法创建
|
|
9
|
-
* @uniPlatform {
|
|
10
|
-
* "app": {
|
|
11
|
-
* "android": {
|
|
12
|
-
* "osVer": "5.0",
|
|
13
|
-
* "uniVer": "√",
|
|
14
|
-
* "unixVer": "4.25"
|
|
15
|
-
* },
|
|
16
|
-
* "ios": {
|
|
17
|
-
* "osVer": "12.0",
|
|
18
|
-
* "uniVer": "√",
|
|
19
|
-
* "unixVer": "4.25"
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
* "web": {
|
|
23
|
-
* "uniVer": "√",
|
|
24
|
-
* "unixVer": "4.21"
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
*/
|
|
28
|
-
export interface TextMetrics {
|
|
29
|
-
readonly width: number
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* 描述canvas元素的一个隐含像素数据的区域
|
|
34
|
-
* @uniPlatform {
|
|
35
|
-
* "app": {
|
|
36
|
-
* "android": {
|
|
37
|
-
* "osVer": "5.0",
|
|
38
|
-
* "uniVer": "√",
|
|
39
|
-
* "unixVer": "4.25"
|
|
40
|
-
* },
|
|
41
|
-
* "ios": {
|
|
42
|
-
* "osVer": "12.0",
|
|
43
|
-
* "uniVer": "√",
|
|
44
|
-
* "unixVer": "4.25"
|
|
45
|
-
* }
|
|
46
|
-
* }
|
|
47
|
-
* "web": {
|
|
48
|
-
* "uniVer": "√",
|
|
49
|
-
* "unixVer": "4.21"
|
|
50
|
-
* }
|
|
51
|
-
* }
|
|
52
|
-
*/
|
|
53
|
-
export interface ImageData {
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* "
|
|
64
|
-
* "
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* "
|
|
69
|
-
* "
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* "
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
* CanvasRenderingContext2D.
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* "
|
|
91
|
-
* "
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* "
|
|
96
|
-
* "
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* "
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
*
|
|
109
|
-
* @param {
|
|
110
|
-
* @
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* "
|
|
115
|
-
* "
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* "
|
|
120
|
-
* "
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* "
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* "
|
|
139
|
-
* "
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* "
|
|
144
|
-
* "
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* "
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* "
|
|
162
|
-
* "
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* "
|
|
167
|
-
* "
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* "
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* "
|
|
185
|
-
* "
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* "
|
|
190
|
-
* "
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* "
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
*
|
|
204
|
-
* @
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* "
|
|
209
|
-
* "
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* "
|
|
214
|
-
* "
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* "
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* "
|
|
232
|
-
* "
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* "
|
|
237
|
-
* "
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
* "
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
*
|
|
251
|
-
* @
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
* "
|
|
256
|
-
* "
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* "
|
|
261
|
-
* "
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* "
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
* "
|
|
279
|
-
* "
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* "
|
|
284
|
-
* "
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
* "
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
*
|
|
298
|
-
* @
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
* "
|
|
303
|
-
* "
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* "
|
|
308
|
-
* "
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
* "
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
* "
|
|
326
|
-
* "
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
* "
|
|
331
|
-
* "
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
* "
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
* "
|
|
349
|
-
* "
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* "
|
|
354
|
-
* "
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
* "
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
* "
|
|
372
|
-
* "
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
* "
|
|
377
|
-
* "
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
* "
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
* "
|
|
395
|
-
* "
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
* "
|
|
400
|
-
* "
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
*
|
|
405
|
-
* "
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
*
|
|
414
|
-
* @
|
|
415
|
-
*
|
|
416
|
-
*
|
|
417
|
-
*
|
|
418
|
-
* "
|
|
419
|
-
* "
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
* "
|
|
424
|
-
* "
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
* "
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
* "
|
|
442
|
-
* "
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
* "
|
|
447
|
-
* "
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
* "
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
*
|
|
461
|
-
* @
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
* "
|
|
466
|
-
* "
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
* "
|
|
471
|
-
* "
|
|
472
|
-
*
|
|
473
|
-
*
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
* "
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
*
|
|
485
|
-
* @
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
* "
|
|
490
|
-
* "
|
|
491
|
-
*
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* "
|
|
495
|
-
* "
|
|
496
|
-
*
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
* "
|
|
501
|
-
*
|
|
502
|
-
*
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
*
|
|
512
|
-
* "
|
|
513
|
-
* "
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
*
|
|
517
|
-
* "
|
|
518
|
-
* "
|
|
519
|
-
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
*
|
|
523
|
-
* "
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
* "
|
|
536
|
-
* "
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
* "
|
|
541
|
-
* "
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
* "
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
*
|
|
557
|
-
*
|
|
558
|
-
* "
|
|
559
|
-
* "
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
563
|
-
* "
|
|
564
|
-
* "
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
* "
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
580
|
-
*
|
|
581
|
-
* "
|
|
582
|
-
* "
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
* "
|
|
587
|
-
* "
|
|
588
|
-
*
|
|
589
|
-
*
|
|
590
|
-
*
|
|
591
|
-
*
|
|
592
|
-
* "
|
|
593
|
-
*
|
|
594
|
-
*
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
* "
|
|
605
|
-
* "
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
*
|
|
609
|
-
* "
|
|
610
|
-
* "
|
|
611
|
-
*
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
* "
|
|
616
|
-
*
|
|
617
|
-
*
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
*
|
|
624
|
-
* @
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
*
|
|
628
|
-
* "
|
|
629
|
-
* "
|
|
630
|
-
*
|
|
631
|
-
*
|
|
632
|
-
*
|
|
633
|
-
* "
|
|
634
|
-
* "
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
*
|
|
638
|
-
*
|
|
639
|
-
* "
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
*
|
|
648
|
-
* @
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
*
|
|
652
|
-
* "
|
|
653
|
-
* "
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
657
|
-
* "
|
|
658
|
-
* "
|
|
659
|
-
*
|
|
660
|
-
*
|
|
661
|
-
*
|
|
662
|
-
*
|
|
663
|
-
* "
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
*
|
|
673
|
-
*
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
* "
|
|
677
|
-
* "
|
|
678
|
-
*
|
|
679
|
-
*
|
|
680
|
-
*
|
|
681
|
-
* "
|
|
682
|
-
* "
|
|
683
|
-
*
|
|
684
|
-
*
|
|
685
|
-
*
|
|
686
|
-
*
|
|
687
|
-
* "
|
|
688
|
-
*
|
|
689
|
-
*
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
*
|
|
696
|
-
*
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
* "
|
|
700
|
-
* "
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
* "
|
|
705
|
-
* "
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
*
|
|
710
|
-
* "
|
|
711
|
-
*
|
|
712
|
-
*
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
*
|
|
719
|
-
* @param {number}
|
|
720
|
-
* @param {number}
|
|
721
|
-
* @param {number}
|
|
722
|
-
* @param {number}
|
|
723
|
-
* @param {number}
|
|
724
|
-
* @
|
|
725
|
-
*
|
|
726
|
-
*
|
|
727
|
-
*
|
|
728
|
-
* "
|
|
729
|
-
* "
|
|
730
|
-
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
* "
|
|
734
|
-
* "
|
|
735
|
-
*
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
|
-
*
|
|
739
|
-
* "
|
|
740
|
-
*
|
|
741
|
-
*
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
*
|
|
748
|
-
* @param {number}
|
|
749
|
-
* @param {number}
|
|
750
|
-
* @param {number}
|
|
751
|
-
* @param {number}
|
|
752
|
-
* @
|
|
753
|
-
*
|
|
754
|
-
*
|
|
755
|
-
*
|
|
756
|
-
* "
|
|
757
|
-
* "
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
* "
|
|
762
|
-
* "
|
|
763
|
-
*
|
|
764
|
-
*
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
* "
|
|
768
|
-
*
|
|
769
|
-
*
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
*
|
|
776
|
-
*
|
|
777
|
-
*
|
|
778
|
-
*
|
|
779
|
-
* "
|
|
780
|
-
* "
|
|
781
|
-
*
|
|
782
|
-
*
|
|
783
|
-
*
|
|
784
|
-
* "
|
|
785
|
-
* "
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
* "
|
|
791
|
-
*
|
|
792
|
-
*
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
*
|
|
799
|
-
* @param {number}
|
|
800
|
-
* @param {number}
|
|
801
|
-
* @param {number}
|
|
802
|
-
* @param {number}
|
|
803
|
-
* @param {number}
|
|
804
|
-
* @
|
|
805
|
-
*
|
|
806
|
-
*
|
|
807
|
-
*
|
|
808
|
-
* "
|
|
809
|
-
* "
|
|
810
|
-
*
|
|
811
|
-
*
|
|
812
|
-
*
|
|
813
|
-
* "
|
|
814
|
-
* "
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
-
*
|
|
818
|
-
*
|
|
819
|
-
* "
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
*
|
|
828
|
-
* @param {number}
|
|
829
|
-
* @param {number}
|
|
830
|
-
* @param {number}
|
|
831
|
-
* @
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
*
|
|
835
|
-
* "
|
|
836
|
-
* "
|
|
837
|
-
*
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
* "
|
|
841
|
-
* "
|
|
842
|
-
*
|
|
843
|
-
*
|
|
844
|
-
*
|
|
845
|
-
*
|
|
846
|
-
* "
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
*
|
|
855
|
-
*
|
|
856
|
-
*
|
|
857
|
-
*
|
|
858
|
-
* "
|
|
859
|
-
* "
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
*
|
|
863
|
-
* "
|
|
864
|
-
* "
|
|
865
|
-
*
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
*
|
|
869
|
-
* "
|
|
870
|
-
*
|
|
871
|
-
*
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
*
|
|
881
|
-
* "
|
|
882
|
-
* "
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
* "
|
|
887
|
-
* "
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
*
|
|
891
|
-
*
|
|
892
|
-
* "
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
*
|
|
901
|
-
*
|
|
902
|
-
*
|
|
903
|
-
*
|
|
904
|
-
* "
|
|
905
|
-
* "
|
|
906
|
-
*
|
|
907
|
-
*
|
|
908
|
-
*
|
|
909
|
-
* "
|
|
910
|
-
* "
|
|
911
|
-
*
|
|
912
|
-
*
|
|
913
|
-
*
|
|
914
|
-
*
|
|
915
|
-
* "
|
|
916
|
-
*
|
|
917
|
-
*
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
*
|
|
924
|
-
*
|
|
925
|
-
*
|
|
926
|
-
*
|
|
927
|
-
* "
|
|
928
|
-
* "
|
|
929
|
-
*
|
|
930
|
-
*
|
|
931
|
-
*
|
|
932
|
-
* "
|
|
933
|
-
* "
|
|
934
|
-
*
|
|
935
|
-
*
|
|
936
|
-
*
|
|
937
|
-
*
|
|
938
|
-
* "
|
|
939
|
-
*
|
|
940
|
-
*
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
*
|
|
947
|
-
*
|
|
948
|
-
*
|
|
949
|
-
*
|
|
950
|
-
* "
|
|
951
|
-
* "
|
|
952
|
-
*
|
|
953
|
-
*
|
|
954
|
-
*
|
|
955
|
-
* "
|
|
956
|
-
* "
|
|
957
|
-
*
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
*
|
|
961
|
-
* "
|
|
962
|
-
*
|
|
963
|
-
*
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
*
|
|
970
|
-
*
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
* "
|
|
974
|
-
* "
|
|
975
|
-
*
|
|
976
|
-
*
|
|
977
|
-
*
|
|
978
|
-
* "
|
|
979
|
-
* "
|
|
980
|
-
*
|
|
981
|
-
*
|
|
982
|
-
*
|
|
983
|
-
*
|
|
984
|
-
* "
|
|
985
|
-
*
|
|
986
|
-
*
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
*
|
|
993
|
-
* @param {string}
|
|
994
|
-
* @
|
|
995
|
-
*
|
|
996
|
-
*
|
|
997
|
-
*
|
|
998
|
-
* "
|
|
999
|
-
* "
|
|
1000
|
-
*
|
|
1001
|
-
*
|
|
1002
|
-
*
|
|
1003
|
-
* "
|
|
1004
|
-
* "
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1008
|
-
*
|
|
1009
|
-
* "
|
|
1010
|
-
*
|
|
1011
|
-
*
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
*
|
|
1018
|
-
* @param {number}
|
|
1019
|
-
* @param {number}
|
|
1020
|
-
* @param {number}
|
|
1021
|
-
* @
|
|
1022
|
-
*
|
|
1023
|
-
*
|
|
1024
|
-
*
|
|
1025
|
-
* "
|
|
1026
|
-
* "
|
|
1027
|
-
*
|
|
1028
|
-
*
|
|
1029
|
-
*
|
|
1030
|
-
* "
|
|
1031
|
-
* "
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1036
|
-
* "
|
|
1037
|
-
*
|
|
1038
|
-
*
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
*
|
|
1045
|
-
* @param {number}
|
|
1046
|
-
* @param {number}
|
|
1047
|
-
* @param {number}
|
|
1048
|
-
* @param {number}
|
|
1049
|
-
* @param {number}
|
|
1050
|
-
* @
|
|
1051
|
-
*
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1054
|
-
* "
|
|
1055
|
-
* "
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1059
|
-
* "
|
|
1060
|
-
* "
|
|
1061
|
-
*
|
|
1062
|
-
*
|
|
1063
|
-
*
|
|
1064
|
-
*
|
|
1065
|
-
* "
|
|
1066
|
-
*
|
|
1067
|
-
*
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1076
|
-
*
|
|
1077
|
-
* "
|
|
1078
|
-
* "
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1082
|
-
* "
|
|
1083
|
-
* "
|
|
1084
|
-
*
|
|
1085
|
-
*
|
|
1086
|
-
*
|
|
1087
|
-
*
|
|
1088
|
-
* "
|
|
1089
|
-
*
|
|
1090
|
-
*
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
*
|
|
1097
|
-
* @param {
|
|
1098
|
-
* @param {number}
|
|
1099
|
-
* @param {number}
|
|
1100
|
-
* @param {number}
|
|
1101
|
-
* @param {number}
|
|
1102
|
-
* @param {number}
|
|
1103
|
-
* @param {number}
|
|
1104
|
-
* @param {number}
|
|
1105
|
-
* @
|
|
1106
|
-
*
|
|
1107
|
-
*
|
|
1108
|
-
*
|
|
1109
|
-
* "
|
|
1110
|
-
* "
|
|
1111
|
-
*
|
|
1112
|
-
*
|
|
1113
|
-
*
|
|
1114
|
-
* "
|
|
1115
|
-
* "
|
|
1116
|
-
*
|
|
1117
|
-
*
|
|
1118
|
-
*
|
|
1119
|
-
*
|
|
1120
|
-
* "
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
drawImage(imageResource: Image, sx: number, sy: number
|
|
1126
|
-
drawImage(imageResource: Image, sx: number, sy: number, sWidth: number, sHeight: number
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
*
|
|
1132
|
-
*
|
|
1133
|
-
*
|
|
1134
|
-
*
|
|
1135
|
-
* "
|
|
1136
|
-
* "
|
|
1137
|
-
*
|
|
1138
|
-
*
|
|
1139
|
-
*
|
|
1140
|
-
* "
|
|
1141
|
-
* "
|
|
1142
|
-
*
|
|
1143
|
-
*
|
|
1144
|
-
*
|
|
1145
|
-
*
|
|
1146
|
-
* "
|
|
1147
|
-
*
|
|
1148
|
-
*
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
*
|
|
1156
|
-
*
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1159
|
-
* "
|
|
1160
|
-
* "
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1163
|
-
*
|
|
1164
|
-
* "
|
|
1165
|
-
* "
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
*
|
|
1170
|
-
* "
|
|
1171
|
-
*
|
|
1172
|
-
*
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
*
|
|
1179
|
-
|
|
1180
|
-
*
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
* "
|
|
1184
|
-
* "
|
|
1185
|
-
*
|
|
1186
|
-
*
|
|
1187
|
-
*
|
|
1188
|
-
* "
|
|
1189
|
-
* "
|
|
1190
|
-
*
|
|
1191
|
-
*
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1194
|
-
* "
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
*
|
|
1203
|
-
* @param {string}
|
|
1204
|
-
* @
|
|
1205
|
-
*
|
|
1206
|
-
*
|
|
1207
|
-
*
|
|
1208
|
-
* "
|
|
1209
|
-
* "
|
|
1210
|
-
*
|
|
1211
|
-
*
|
|
1212
|
-
*
|
|
1213
|
-
* "
|
|
1214
|
-
* "
|
|
1215
|
-
*
|
|
1216
|
-
*
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
* "
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
* @param {number}
|
|
1229
|
-
* @param {number}
|
|
1230
|
-
* @param {number}
|
|
1231
|
-
* @
|
|
1232
|
-
*
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1235
|
-
* "
|
|
1236
|
-
* "
|
|
1237
|
-
*
|
|
1238
|
-
*
|
|
1239
|
-
*
|
|
1240
|
-
* "
|
|
1241
|
-
* "
|
|
1242
|
-
*
|
|
1243
|
-
*
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
* "
|
|
1247
|
-
*
|
|
1248
|
-
*
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
*
|
|
1256
|
-
* @param {
|
|
1257
|
-
* @param {number}
|
|
1258
|
-
* @param {number}
|
|
1259
|
-
* @
|
|
1260
|
-
*
|
|
1261
|
-
*
|
|
1262
|
-
*
|
|
1263
|
-
* "
|
|
1264
|
-
* "
|
|
1265
|
-
*
|
|
1266
|
-
*
|
|
1267
|
-
*
|
|
1268
|
-
* "
|
|
1269
|
-
* "
|
|
1270
|
-
*
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
*
|
|
1274
|
-
* "
|
|
1275
|
-
*
|
|
1276
|
-
*
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
*
|
|
1283
|
-
* @param {number}
|
|
1284
|
-
* @param {number}
|
|
1285
|
-
* @param {number}
|
|
1286
|
-
* @
|
|
1287
|
-
*
|
|
1288
|
-
*
|
|
1289
|
-
*
|
|
1290
|
-
* "
|
|
1291
|
-
* "
|
|
1292
|
-
*
|
|
1293
|
-
*
|
|
1294
|
-
*
|
|
1295
|
-
* "
|
|
1296
|
-
* "
|
|
1297
|
-
*
|
|
1298
|
-
*
|
|
1299
|
-
*
|
|
1300
|
-
*
|
|
1301
|
-
* "
|
|
1302
|
-
*
|
|
1303
|
-
*
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
*
|
|
1310
|
-
*
|
|
1311
|
-
*
|
|
1312
|
-
*
|
|
1313
|
-
* "
|
|
1314
|
-
* "
|
|
1315
|
-
*
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
1318
|
-
* "
|
|
1319
|
-
* "
|
|
1320
|
-
*
|
|
1321
|
-
*
|
|
1322
|
-
*
|
|
1323
|
-
*
|
|
1324
|
-
* "
|
|
1325
|
-
*
|
|
1326
|
-
*
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
*
|
|
1333
|
-
* @param {number}
|
|
1334
|
-
* @
|
|
1335
|
-
*
|
|
1336
|
-
*
|
|
1337
|
-
*
|
|
1338
|
-
* "
|
|
1339
|
-
* "
|
|
1340
|
-
*
|
|
1341
|
-
*
|
|
1342
|
-
*
|
|
1343
|
-
* "
|
|
1344
|
-
* "
|
|
1345
|
-
*
|
|
1346
|
-
*
|
|
1347
|
-
*
|
|
1348
|
-
*
|
|
1349
|
-
* "
|
|
1350
|
-
*
|
|
1351
|
-
*
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
*
|
|
1358
|
-
* @param {number}
|
|
1359
|
-
* @param {number}
|
|
1360
|
-
* @
|
|
1361
|
-
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
* "
|
|
1365
|
-
* "
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1369
|
-
* "
|
|
1370
|
-
* "
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
*
|
|
1374
|
-
*
|
|
1375
|
-
* "
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
*
|
|
1384
|
-
* @param {number}
|
|
1385
|
-
* @param {number}
|
|
1386
|
-
* @
|
|
1387
|
-
*
|
|
1388
|
-
*
|
|
1389
|
-
*
|
|
1390
|
-
* "
|
|
1391
|
-
* "
|
|
1392
|
-
*
|
|
1393
|
-
*
|
|
1394
|
-
*
|
|
1395
|
-
* "
|
|
1396
|
-
* "
|
|
1397
|
-
*
|
|
1398
|
-
*
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1401
|
-
* "
|
|
1402
|
-
*
|
|
1403
|
-
*
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
*
|
|
1410
|
-
* @param {number}
|
|
1411
|
-
* @param {number}
|
|
1412
|
-
* @param {number}
|
|
1413
|
-
* @
|
|
1414
|
-
*
|
|
1415
|
-
*
|
|
1416
|
-
*
|
|
1417
|
-
* "
|
|
1418
|
-
* "
|
|
1419
|
-
*
|
|
1420
|
-
*
|
|
1421
|
-
*
|
|
1422
|
-
* "
|
|
1423
|
-
* "
|
|
1424
|
-
*
|
|
1425
|
-
*
|
|
1426
|
-
*
|
|
1427
|
-
*
|
|
1428
|
-
* "
|
|
1429
|
-
*
|
|
1430
|
-
*
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
*
|
|
1437
|
-
* @param {number}
|
|
1438
|
-
* @
|
|
1439
|
-
*
|
|
1440
|
-
*
|
|
1441
|
-
*
|
|
1442
|
-
* "
|
|
1443
|
-
* "
|
|
1444
|
-
*
|
|
1445
|
-
*
|
|
1446
|
-
*
|
|
1447
|
-
* "
|
|
1448
|
-
* "
|
|
1449
|
-
*
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
1452
|
-
*
|
|
1453
|
-
* "
|
|
1454
|
-
*
|
|
1455
|
-
*
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
*
|
|
1462
|
-
* @param {number}
|
|
1463
|
-
* @param {number}
|
|
1464
|
-
* @
|
|
1465
|
-
*
|
|
1466
|
-
*
|
|
1467
|
-
*
|
|
1468
|
-
* "
|
|
1469
|
-
* "
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1473
|
-
* "
|
|
1474
|
-
* "
|
|
1475
|
-
*
|
|
1476
|
-
*
|
|
1477
|
-
*
|
|
1478
|
-
*
|
|
1479
|
-
* "
|
|
1480
|
-
*
|
|
1481
|
-
*
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
*
|
|
1488
|
-
* @
|
|
1489
|
-
*
|
|
1490
|
-
*
|
|
1491
|
-
*
|
|
1492
|
-
* "
|
|
1493
|
-
* "
|
|
1494
|
-
*
|
|
1495
|
-
*
|
|
1496
|
-
*
|
|
1497
|
-
* "
|
|
1498
|
-
* "
|
|
1499
|
-
*
|
|
1500
|
-
*
|
|
1501
|
-
*
|
|
1502
|
-
*
|
|
1503
|
-
* "
|
|
1504
|
-
*
|
|
1505
|
-
*
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
*
|
|
1512
|
-
* @param {number}
|
|
1513
|
-
|
|
1514
|
-
*
|
|
1515
|
-
*
|
|
1516
|
-
*
|
|
1517
|
-
* "
|
|
1518
|
-
* "
|
|
1519
|
-
*
|
|
1520
|
-
*
|
|
1521
|
-
*
|
|
1522
|
-
* "
|
|
1523
|
-
* "
|
|
1524
|
-
*
|
|
1525
|
-
*
|
|
1526
|
-
*
|
|
1527
|
-
*
|
|
1528
|
-
* "
|
|
1529
|
-
*
|
|
1530
|
-
*
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
*
|
|
1537
|
-
|
|
1538
|
-
*
|
|
1539
|
-
*
|
|
1540
|
-
*
|
|
1541
|
-
* "
|
|
1542
|
-
* "
|
|
1543
|
-
*
|
|
1544
|
-
*
|
|
1545
|
-
*
|
|
1546
|
-
* "
|
|
1547
|
-
* "
|
|
1548
|
-
*
|
|
1549
|
-
*
|
|
1550
|
-
*
|
|
1551
|
-
*
|
|
1552
|
-
* "
|
|
1553
|
-
*
|
|
1554
|
-
*
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
*
|
|
1561
|
-
* @param {number}
|
|
1562
|
-
|
|
1563
|
-
*
|
|
1564
|
-
*
|
|
1565
|
-
*
|
|
1566
|
-
* "
|
|
1567
|
-
* "
|
|
1568
|
-
*
|
|
1569
|
-
*
|
|
1570
|
-
*
|
|
1571
|
-
* "
|
|
1572
|
-
* "
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
*
|
|
1576
|
-
*
|
|
1577
|
-
* "
|
|
1578
|
-
*
|
|
1579
|
-
*
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
* @param {number}
|
|
1587
|
-
* @param {number}
|
|
1588
|
-
* @
|
|
1589
|
-
*
|
|
1590
|
-
*
|
|
1591
|
-
*
|
|
1592
|
-
* "
|
|
1593
|
-
* "
|
|
1594
|
-
*
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
* "
|
|
1598
|
-
* "
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1602
|
-
*
|
|
1603
|
-
* "
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
*
|
|
1612
|
-
* @param {number}
|
|
1613
|
-
* @param {number}
|
|
1614
|
-
* @param {number}
|
|
1615
|
-
* @param {number}
|
|
1616
|
-
* @param {number}
|
|
1617
|
-
* @param {number}
|
|
1618
|
-
* @
|
|
1619
|
-
*
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
* "
|
|
1623
|
-
* "
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
* "
|
|
1628
|
-
* "
|
|
1629
|
-
*
|
|
1630
|
-
*
|
|
1631
|
-
*
|
|
1632
|
-
*
|
|
1633
|
-
* "
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
*
|
|
1642
|
-
* @param {number}
|
|
1643
|
-
* @param {number}
|
|
1644
|
-
* @param {number}
|
|
1645
|
-
|
|
1646
|
-
*
|
|
1647
|
-
*
|
|
1648
|
-
*
|
|
1649
|
-
* "
|
|
1650
|
-
* "
|
|
1651
|
-
*
|
|
1652
|
-
*
|
|
1653
|
-
*
|
|
1654
|
-
* "
|
|
1655
|
-
* "
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1659
|
-
*
|
|
1660
|
-
* "
|
|
1661
|
-
*
|
|
1662
|
-
*
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
*
|
|
1669
|
-
* @param {number}
|
|
1670
|
-
* @param {number}
|
|
1671
|
-
* @param {number}
|
|
1672
|
-
|
|
1673
|
-
*
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1676
|
-
* "
|
|
1677
|
-
* "
|
|
1678
|
-
*
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
* "
|
|
1682
|
-
* "
|
|
1683
|
-
*
|
|
1684
|
-
*
|
|
1685
|
-
*
|
|
1686
|
-
*
|
|
1687
|
-
* "
|
|
1688
|
-
*
|
|
1689
|
-
*
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
*
|
|
1696
|
-
*
|
|
1697
|
-
*
|
|
1698
|
-
*
|
|
1699
|
-
* "
|
|
1700
|
-
* "
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1703
|
-
*
|
|
1704
|
-
* "
|
|
1705
|
-
* "
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1708
|
-
*
|
|
1709
|
-
*
|
|
1710
|
-
* "
|
|
1711
|
-
*
|
|
1712
|
-
*
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
*
|
|
1719
|
-
*
|
|
1720
|
-
*
|
|
1721
|
-
*
|
|
1722
|
-
* "
|
|
1723
|
-
* "
|
|
1724
|
-
*
|
|
1725
|
-
*
|
|
1726
|
-
*
|
|
1727
|
-
* "
|
|
1728
|
-
* "
|
|
1729
|
-
*
|
|
1730
|
-
*
|
|
1731
|
-
*
|
|
1732
|
-
*
|
|
1733
|
-
* "
|
|
1734
|
-
*
|
|
1735
|
-
*
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
*
|
|
1742
|
-
* @
|
|
1743
|
-
*
|
|
1744
|
-
*
|
|
1745
|
-
*
|
|
1746
|
-
* "
|
|
1747
|
-
* "
|
|
1748
|
-
*
|
|
1749
|
-
*
|
|
1750
|
-
*
|
|
1751
|
-
* "
|
|
1752
|
-
* "
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
1755
|
-
*
|
|
1756
|
-
*
|
|
1757
|
-
* "
|
|
1758
|
-
*
|
|
1759
|
-
*
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
*
|
|
1766
|
-
* @param {number}
|
|
1767
|
-
* @param {number}
|
|
1768
|
-
* @param {number}
|
|
1769
|
-
* @param {number}
|
|
1770
|
-
* @param {number}
|
|
1771
|
-
* @
|
|
1772
|
-
*
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
1775
|
-
* "
|
|
1776
|
-
* "
|
|
1777
|
-
*
|
|
1778
|
-
*
|
|
1779
|
-
*
|
|
1780
|
-
* "
|
|
1781
|
-
* "
|
|
1782
|
-
*
|
|
1783
|
-
*
|
|
1784
|
-
*
|
|
1785
|
-
*
|
|
1786
|
-
* "
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
*
|
|
1795
|
-
*
|
|
1796
|
-
*
|
|
1797
|
-
*
|
|
1798
|
-
* "
|
|
1799
|
-
* "
|
|
1800
|
-
*
|
|
1801
|
-
*
|
|
1802
|
-
*
|
|
1803
|
-
* "
|
|
1804
|
-
* "
|
|
1805
|
-
*
|
|
1806
|
-
*
|
|
1807
|
-
*
|
|
1808
|
-
*
|
|
1809
|
-
* "
|
|
1810
|
-
*
|
|
1811
|
-
*
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
*
|
|
1818
|
-
* @param {
|
|
1819
|
-
* @
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1823
|
-
* "
|
|
1824
|
-
* "
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1828
|
-
* "
|
|
1829
|
-
* "
|
|
1830
|
-
*
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
1833
|
-
*
|
|
1834
|
-
* "
|
|
1835
|
-
*
|
|
1836
|
-
*
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
*
|
|
1843
|
-
* @
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
*
|
|
1847
|
-
* "
|
|
1848
|
-
* "
|
|
1849
|
-
*
|
|
1850
|
-
*
|
|
1851
|
-
*
|
|
1852
|
-
* "
|
|
1853
|
-
* "
|
|
1854
|
-
*
|
|
1855
|
-
*
|
|
1856
|
-
*
|
|
1857
|
-
*
|
|
1858
|
-
* "
|
|
1859
|
-
*
|
|
1860
|
-
*
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
*
|
|
1867
|
-
* @param {number}
|
|
1868
|
-
* @param {number}
|
|
1869
|
-
* @param {number}
|
|
1870
|
-
* @param {number}
|
|
1871
|
-
* @param {number}
|
|
1872
|
-
* @
|
|
1873
|
-
*
|
|
1874
|
-
*
|
|
1875
|
-
*
|
|
1876
|
-
* "
|
|
1877
|
-
* "
|
|
1878
|
-
*
|
|
1879
|
-
*
|
|
1880
|
-
*
|
|
1881
|
-
* "
|
|
1882
|
-
* "
|
|
1883
|
-
*
|
|
1884
|
-
*
|
|
1885
|
-
*
|
|
1886
|
-
*
|
|
1887
|
-
* "
|
|
1888
|
-
*
|
|
1889
|
-
*
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
*
|
|
1896
|
-
*
|
|
1897
|
-
*
|
|
1898
|
-
*
|
|
1899
|
-
* "
|
|
1900
|
-
* "
|
|
1901
|
-
*
|
|
1902
|
-
*
|
|
1903
|
-
*
|
|
1904
|
-
* "
|
|
1905
|
-
* "
|
|
1906
|
-
*
|
|
1907
|
-
*
|
|
1908
|
-
*
|
|
1909
|
-
*
|
|
1910
|
-
* "
|
|
1911
|
-
*
|
|
1912
|
-
*
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
*
|
|
1919
|
-
* @
|
|
1920
|
-
*
|
|
1921
|
-
*
|
|
1922
|
-
*
|
|
1923
|
-
* "
|
|
1924
|
-
* "
|
|
1925
|
-
*
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1928
|
-
* "
|
|
1929
|
-
* "
|
|
1930
|
-
*
|
|
1931
|
-
*
|
|
1932
|
-
*
|
|
1933
|
-
*
|
|
1934
|
-
* "
|
|
1935
|
-
*
|
|
1936
|
-
*
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
*
|
|
1943
|
-
* @param {number}
|
|
1944
|
-
* @param {number}
|
|
1945
|
-
* @param {number}
|
|
1946
|
-
* @
|
|
1947
|
-
*
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
1950
|
-
* "
|
|
1951
|
-
* "
|
|
1952
|
-
*
|
|
1953
|
-
*
|
|
1954
|
-
*
|
|
1955
|
-
* "
|
|
1956
|
-
* "
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
*
|
|
1960
|
-
*
|
|
1961
|
-
* "
|
|
1962
|
-
*
|
|
1963
|
-
*
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
*
|
|
1970
|
-
* @param {
|
|
1971
|
-
* @param {number}
|
|
1972
|
-
* @param {number}
|
|
1973
|
-
* @
|
|
1974
|
-
*
|
|
1975
|
-
*
|
|
1976
|
-
*
|
|
1977
|
-
* "
|
|
1978
|
-
* "
|
|
1979
|
-
*
|
|
1980
|
-
*
|
|
1981
|
-
*
|
|
1982
|
-
* "
|
|
1983
|
-
* "
|
|
1984
|
-
*
|
|
1985
|
-
*
|
|
1986
|
-
*
|
|
1987
|
-
*
|
|
1988
|
-
* "
|
|
1989
|
-
*
|
|
1990
|
-
*
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
*
|
|
1997
|
-
* @param {number}
|
|
1998
|
-
* @param {number}
|
|
1999
|
-
* @param {number}
|
|
2000
|
-
* @param {number}
|
|
2001
|
-
* @param {number}
|
|
2002
|
-
* @
|
|
2003
|
-
*
|
|
2004
|
-
*
|
|
2005
|
-
*
|
|
2006
|
-
* "
|
|
2007
|
-
* "
|
|
2008
|
-
*
|
|
2009
|
-
*
|
|
2010
|
-
*
|
|
2011
|
-
* "
|
|
2012
|
-
* "
|
|
2013
|
-
*
|
|
2014
|
-
*
|
|
2015
|
-
*
|
|
2016
|
-
*
|
|
2017
|
-
* "
|
|
2018
|
-
*
|
|
2019
|
-
*
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
*
|
|
2026
|
-
* @param {number}
|
|
2027
|
-
* @
|
|
2028
|
-
*
|
|
2029
|
-
*
|
|
2030
|
-
*
|
|
2031
|
-
* "
|
|
2032
|
-
* "
|
|
2033
|
-
*
|
|
2034
|
-
*
|
|
2035
|
-
*
|
|
2036
|
-
* "
|
|
2037
|
-
* "
|
|
2038
|
-
*
|
|
2039
|
-
*
|
|
2040
|
-
*
|
|
2041
|
-
*
|
|
2042
|
-
* "
|
|
2043
|
-
*
|
|
2044
|
-
*
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @package io.dcloud.uniapp.runtime
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { Image } from "./IUniElement"
|
|
6
|
+
import { Path2D } from "./Path2D"
|
|
7
|
+
/**
|
|
8
|
+
* 表示文本的尺寸,通过 CanvasRenderingContext2D.measureText() 方法创建
|
|
9
|
+
* @uniPlatform {
|
|
10
|
+
* "app": {
|
|
11
|
+
* "android": {
|
|
12
|
+
* "osVer": "5.0",
|
|
13
|
+
* "uniVer": "√",
|
|
14
|
+
* "unixVer": "4.25"
|
|
15
|
+
* },
|
|
16
|
+
* "ios": {
|
|
17
|
+
* "osVer": "12.0",
|
|
18
|
+
* "uniVer": "√",
|
|
19
|
+
* "unixVer": "4.25"
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* "web": {
|
|
23
|
+
* "uniVer": "√",
|
|
24
|
+
* "unixVer": "4.21"
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
export interface TextMetrics {
|
|
29
|
+
readonly width: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 描述canvas元素的一个隐含像素数据的区域
|
|
34
|
+
* @uniPlatform {
|
|
35
|
+
* "app": {
|
|
36
|
+
* "android": {
|
|
37
|
+
* "osVer": "5.0",
|
|
38
|
+
* "uniVer": "√",
|
|
39
|
+
* "unixVer": "4.25"
|
|
40
|
+
* },
|
|
41
|
+
* "ios": {
|
|
42
|
+
* "osVer": "12.0",
|
|
43
|
+
* "uniVer": "√",
|
|
44
|
+
* "unixVer": "4.25"
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
* "web": {
|
|
48
|
+
* "uniVer": "√",
|
|
49
|
+
* "unixVer": "4.21"
|
|
50
|
+
* }
|
|
51
|
+
* }
|
|
52
|
+
*/
|
|
53
|
+
export interface ImageData {
|
|
54
|
+
readonly data: Uint8ClampedArray
|
|
55
|
+
readonly width: number
|
|
56
|
+
readonly height: number
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 接口表示一个不透明对象,描述了一个基于图像、画布或视频的模板,该模板通过 CanvasRenderingContext2D.createPattern() 方法创建
|
|
60
|
+
* @uniPlatform {
|
|
61
|
+
* "app": {
|
|
62
|
+
* "android": {
|
|
63
|
+
* "osVer": "5.0",
|
|
64
|
+
* "uniVer": "√",
|
|
65
|
+
* "unixVer": "4.25"
|
|
66
|
+
* },
|
|
67
|
+
* "ios": {
|
|
68
|
+
* "osVer": "12.0",
|
|
69
|
+
* "uniVer": "√",
|
|
70
|
+
* "unixVer": "4.25"
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
* "web": {
|
|
74
|
+
* "uniVer": "√",
|
|
75
|
+
* "unixVer": "4.21"
|
|
76
|
+
* }
|
|
77
|
+
* }
|
|
78
|
+
*/
|
|
79
|
+
export interface CanvasPattern {
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 表示描述渐变的不透明对象。该接口通过 CanvasRenderingContext2D.createLinearGradient()、
|
|
85
|
+
* CanvasRenderingContext2D.createConicGradient()
|
|
86
|
+
* 或 CanvasRenderingContext2D.createRadialGradient() 方法返回
|
|
87
|
+
* @uniPlatform {
|
|
88
|
+
* "app": {
|
|
89
|
+
* "android": {
|
|
90
|
+
* "osVer": "5.0",
|
|
91
|
+
* "uniVer": "√",
|
|
92
|
+
* "unixVer": "4.25"
|
|
93
|
+
* },
|
|
94
|
+
* "ios": {
|
|
95
|
+
* "osVer": "12.0",
|
|
96
|
+
* "uniVer": "√",
|
|
97
|
+
* "unixVer": "4.25"
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
* "web": {
|
|
101
|
+
* "uniVer": "√",
|
|
102
|
+
* "unixVer": "4.21"
|
|
103
|
+
* }
|
|
104
|
+
* }
|
|
105
|
+
*/
|
|
106
|
+
export interface CanvasGradient {
|
|
107
|
+
/**
|
|
108
|
+
* 添加颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染
|
|
109
|
+
* @param {number} stop 表示渐变中开始与结束之间的位置,范围 0-1
|
|
110
|
+
* @param {string} color 渐变点的颜色
|
|
111
|
+
* @uniPlatform {
|
|
112
|
+
* "app": {
|
|
113
|
+
* "android": {
|
|
114
|
+
* "osVer": "5.0",
|
|
115
|
+
* "uniVer": "√",
|
|
116
|
+
* "unixVer": "4.25"
|
|
117
|
+
* },
|
|
118
|
+
* "ios": {
|
|
119
|
+
* "osVer": "12.0",
|
|
120
|
+
* "uniVer": "√",
|
|
121
|
+
* "unixVer": "4.25"
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
* "web": {
|
|
125
|
+
* "uniVer": "√",
|
|
126
|
+
* "unixVer": "4.21"
|
|
127
|
+
* }
|
|
128
|
+
* }
|
|
129
|
+
*/
|
|
130
|
+
addColorStop(stop: number, color: string): void
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* canvas元素的绘图2D渲染上下文, 它用于绘制形状、文本、图像和其他对象
|
|
135
|
+
* @uniPlatform {
|
|
136
|
+
* "app": {
|
|
137
|
+
* "android": {
|
|
138
|
+
* "osVer": "5.0",
|
|
139
|
+
* "uniVer": "√",
|
|
140
|
+
* "unixVer": "4.25"
|
|
141
|
+
* },
|
|
142
|
+
* "ios": {
|
|
143
|
+
* "osVer": "12.0",
|
|
144
|
+
* "uniVer": "√",
|
|
145
|
+
* "unixVer": "4.25"
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* "web": {
|
|
149
|
+
* "uniVer": "√",
|
|
150
|
+
* "unixVer": "4.21"
|
|
151
|
+
* }
|
|
152
|
+
* }
|
|
153
|
+
*/
|
|
154
|
+
export interface CanvasRenderingContext2D {
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* 是对与给定上下文关联的HTMLCanvasElement对象的只读引用
|
|
158
|
+
* @uniPlatform {
|
|
159
|
+
* "app": {
|
|
160
|
+
* "android": {
|
|
161
|
+
* "osVer": "5.0",
|
|
162
|
+
* "uniVer": "√",
|
|
163
|
+
* "unixVer": "4.25"
|
|
164
|
+
* },
|
|
165
|
+
* "ios": {
|
|
166
|
+
* "osVer": "12.0",
|
|
167
|
+
* "uniVer": "√",
|
|
168
|
+
* "unixVer": "4.25"
|
|
169
|
+
* }
|
|
170
|
+
* }
|
|
171
|
+
* "web": {
|
|
172
|
+
* "uniVer": "√",
|
|
173
|
+
* "unixVer": "4.21"
|
|
174
|
+
* }
|
|
175
|
+
* }
|
|
176
|
+
*/
|
|
177
|
+
readonly canvas: UniCanvasElement
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* 描述当前文本方向
|
|
181
|
+
* @uniPlatform {
|
|
182
|
+
* "app": {
|
|
183
|
+
* "android": {
|
|
184
|
+
* "osVer": "5.0",
|
|
185
|
+
* "uniVer": "√",
|
|
186
|
+
* "unixVer": "x"
|
|
187
|
+
* },
|
|
188
|
+
* "ios": {
|
|
189
|
+
* "osVer": "12.0",
|
|
190
|
+
* "uniVer": "√",
|
|
191
|
+
* "unixVer": "x"
|
|
192
|
+
* }
|
|
193
|
+
* }
|
|
194
|
+
* "web": {
|
|
195
|
+
* "uniVer": "√",
|
|
196
|
+
* "unixVer": "4.21"
|
|
197
|
+
* }
|
|
198
|
+
* }
|
|
199
|
+
*/
|
|
200
|
+
direction: string
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* 设置填充颜色
|
|
204
|
+
* @defaultValue #000 (黑色)
|
|
205
|
+
* @uniPlatform {
|
|
206
|
+
* "app": {
|
|
207
|
+
* "android": {
|
|
208
|
+
* "osVer": "5.0",
|
|
209
|
+
* "uniVer": "√",
|
|
210
|
+
* "unixVer": "4.25"
|
|
211
|
+
* },
|
|
212
|
+
* "ios": {
|
|
213
|
+
* "osVer": "12.0",
|
|
214
|
+
* "uniVer": "√",
|
|
215
|
+
* "unixVer": "4.25"
|
|
216
|
+
* }
|
|
217
|
+
* }
|
|
218
|
+
* "web": {
|
|
219
|
+
* "uniVer": "√",
|
|
220
|
+
* "unixVer": "4.21"
|
|
221
|
+
* }
|
|
222
|
+
* }
|
|
223
|
+
*/
|
|
224
|
+
fillStyle: CanvasGradient | string
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* 提供模糊、灰度等过滤效果的属性。它类似于 CSS filter 属性,并且接受相同的函数
|
|
228
|
+
* @uniPlatform {
|
|
229
|
+
* "app": {
|
|
230
|
+
* "android": {
|
|
231
|
+
* "osVer": "5.0",
|
|
232
|
+
* "uniVer": "√",
|
|
233
|
+
* "unixVer": "x"
|
|
234
|
+
* },
|
|
235
|
+
* "ios": {
|
|
236
|
+
* "osVer": "12.0",
|
|
237
|
+
* "uniVer": "√",
|
|
238
|
+
* "unixVer": "x"
|
|
239
|
+
* }
|
|
240
|
+
* }
|
|
241
|
+
* "web": {
|
|
242
|
+
* "uniVer": "√",
|
|
243
|
+
* "unixVer": "4.21"
|
|
244
|
+
* }
|
|
245
|
+
* }
|
|
246
|
+
*/
|
|
247
|
+
filter: string
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* 设置字体大小
|
|
251
|
+
* @defaultValue 10px
|
|
252
|
+
* @uniPlatform {
|
|
253
|
+
* "app": {
|
|
254
|
+
* "android": {
|
|
255
|
+
* "osVer": "5.0",
|
|
256
|
+
* "uniVer": "√",
|
|
257
|
+
* "unixVer": "4.25"
|
|
258
|
+
* },
|
|
259
|
+
* "ios": {
|
|
260
|
+
* "osVer": "12.0",
|
|
261
|
+
* "uniVer": "√",
|
|
262
|
+
* "unixVer": "4.25"
|
|
263
|
+
* }
|
|
264
|
+
* }
|
|
265
|
+
* "web": {
|
|
266
|
+
* "uniVer": "√",
|
|
267
|
+
* "unixVer": "4.21"
|
|
268
|
+
* }
|
|
269
|
+
* }
|
|
270
|
+
*/
|
|
271
|
+
font: string
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* 指定绘制文本时字体如何被扩展或压缩。该属性对应于 CSS 中的 font-stretch 属性,当使用关键字时(百分比值不支持)
|
|
275
|
+
* @uniPlatform {
|
|
276
|
+
* "app": {
|
|
277
|
+
* "android": {
|
|
278
|
+
* "osVer": "5.0",
|
|
279
|
+
* "uniVer": "√",
|
|
280
|
+
* "unixVer": "x"
|
|
281
|
+
* },
|
|
282
|
+
* "ios": {
|
|
283
|
+
* "osVer": "12.0",
|
|
284
|
+
* "uniVer": "√",
|
|
285
|
+
* "unixVer": "x"
|
|
286
|
+
* }
|
|
287
|
+
* }
|
|
288
|
+
* "web": {
|
|
289
|
+
* "uniVer": "√",
|
|
290
|
+
* "unixVer": "4.21"
|
|
291
|
+
* }
|
|
292
|
+
* }
|
|
293
|
+
*/
|
|
294
|
+
fontStretch: string
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* 用来描述在 canvas 上绘图之前,设置图形和图片透明度的属性。数值的范围从 0.0(完全透明)到 1.0(完全不透明)
|
|
298
|
+
* @defaultValue 1.0
|
|
299
|
+
* @uniPlatform {
|
|
300
|
+
* "app": {
|
|
301
|
+
* "android": {
|
|
302
|
+
* "osVer": "5.0",
|
|
303
|
+
* "uniVer": "√",
|
|
304
|
+
* "unixVer": "4.25"
|
|
305
|
+
* },
|
|
306
|
+
* "ios": {
|
|
307
|
+
* "osVer": "12.0",
|
|
308
|
+
* "uniVer": "√",
|
|
309
|
+
* "unixVer": "4.25"
|
|
310
|
+
* }
|
|
311
|
+
* }
|
|
312
|
+
* "web": {
|
|
313
|
+
* "uniVer": "√",
|
|
314
|
+
* "unixVer": "4.21"
|
|
315
|
+
* }
|
|
316
|
+
* }
|
|
317
|
+
*/
|
|
318
|
+
globalAlpha: number
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* 在绘制新形状时应用的合成操作的类型,其中 type 是用于标识要使用的合成或混合模式操作的字符串
|
|
322
|
+
* @uniPlatform {
|
|
323
|
+
* "app": {
|
|
324
|
+
* "android": {
|
|
325
|
+
* "osVer": "5.0",
|
|
326
|
+
* "uniVer": "√",
|
|
327
|
+
* "unixVer": "4.25"
|
|
328
|
+
* },
|
|
329
|
+
* "ios": {
|
|
330
|
+
* "osVer": "12.0",
|
|
331
|
+
* "uniVer": "√",
|
|
332
|
+
* "unixVer": "4.25"
|
|
333
|
+
* }
|
|
334
|
+
* }
|
|
335
|
+
* "web": {
|
|
336
|
+
* "uniVer": "√",
|
|
337
|
+
* "unixVer": "4.21"
|
|
338
|
+
* }
|
|
339
|
+
* }
|
|
340
|
+
*/
|
|
341
|
+
globalCompositeOperation: "" | "source-over" | "source-atop" | "source-in" | "source-out" | "destination-over" | "destination-atop" | "destination-in" | "destination-out" | "lighter" | "copy" | "xor"
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* 属性用于设置是否对缩放后的图片进行平滑处理,true 表示进行平滑处理(默认值),false 表示不进行
|
|
345
|
+
* @uniPlatform {
|
|
346
|
+
* "app": {
|
|
347
|
+
* "android": {
|
|
348
|
+
* "osVer": "5.0",
|
|
349
|
+
* "uniVer": "√",
|
|
350
|
+
* "unixVer": "x"
|
|
351
|
+
* },
|
|
352
|
+
* "ios": {
|
|
353
|
+
* "osVer": "12.0",
|
|
354
|
+
* "uniVer": "√",
|
|
355
|
+
* "unixVer": "x"
|
|
356
|
+
* }
|
|
357
|
+
* }
|
|
358
|
+
* "web": {
|
|
359
|
+
* "uniVer": "√",
|
|
360
|
+
* "unixVer": "4.21"
|
|
361
|
+
* }
|
|
362
|
+
* }
|
|
363
|
+
*/
|
|
364
|
+
imageSmoothingEnabled: boolean
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* 用于设置图像平滑度,要使此属性生效,imageSmoothingEnabled 属性必须为 true
|
|
368
|
+
* @uniPlatform {
|
|
369
|
+
* "app": {
|
|
370
|
+
* "android": {
|
|
371
|
+
* "osVer": "5.0",
|
|
372
|
+
* "uniVer": "√",
|
|
373
|
+
* "unixVer": "x"
|
|
374
|
+
* },
|
|
375
|
+
* "ios": {
|
|
376
|
+
* "osVer": "12.0",
|
|
377
|
+
* "uniVer": "√",
|
|
378
|
+
* "unixVer": "x"
|
|
379
|
+
* }
|
|
380
|
+
* }
|
|
381
|
+
* "web": {
|
|
382
|
+
* "uniVer": "√",
|
|
383
|
+
* "unixVer": "4.21"
|
|
384
|
+
* }
|
|
385
|
+
* }
|
|
386
|
+
*/
|
|
387
|
+
imageSmoothingQuality: string
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* 用于指定绘制文本时字母之间的间距。这对应于 CSS 中的 letter-spacing 属性
|
|
391
|
+
* @uniPlatform {
|
|
392
|
+
* "app": {
|
|
393
|
+
* "android": {
|
|
394
|
+
* "osVer": "5.0",
|
|
395
|
+
* "uniVer": "√",
|
|
396
|
+
* "unixVer": "x"
|
|
397
|
+
* },
|
|
398
|
+
* "ios": {
|
|
399
|
+
* "osVer": "12.0",
|
|
400
|
+
* "uniVer": "√",
|
|
401
|
+
* "unixVer": "x"
|
|
402
|
+
* }
|
|
403
|
+
* }
|
|
404
|
+
* "web": {
|
|
405
|
+
* "uniVer": "√",
|
|
406
|
+
* "unixVer": "4.21"
|
|
407
|
+
* }
|
|
408
|
+
* }
|
|
409
|
+
*/
|
|
410
|
+
letterSpacing: string | number
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* 指定如何绘制每一条线条末端的属性,可选值:`butt`线段末端以方形结束;`round`线段末端以圆形结束;`square`线段末端以方形结束,但是会增加一个一半宽度的矩形区域。
|
|
414
|
+
* @defaultValue butt
|
|
415
|
+
* @uniPlatform {
|
|
416
|
+
* "app": {
|
|
417
|
+
* "android": {
|
|
418
|
+
* "osVer": "5.0",
|
|
419
|
+
* "uniVer": "√",
|
|
420
|
+
* "unixVer": "4.25"
|
|
421
|
+
* },
|
|
422
|
+
* "ios": {
|
|
423
|
+
* "osVer": "12.0",
|
|
424
|
+
* "uniVer": "√",
|
|
425
|
+
* "unixVer": "4.25"
|
|
426
|
+
* }
|
|
427
|
+
* }
|
|
428
|
+
* "web": {
|
|
429
|
+
* "uniVer": "√",
|
|
430
|
+
* "unixVer": "4.21"
|
|
431
|
+
* }
|
|
432
|
+
* }
|
|
433
|
+
*/
|
|
434
|
+
lineCap: "" | "butt" | "round" | "square"
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* 设置虚线偏移量
|
|
438
|
+
* @uniPlatform {
|
|
439
|
+
* "app": {
|
|
440
|
+
* "android": {
|
|
441
|
+
* "osVer": "5.0",
|
|
442
|
+
* "uniVer": "√",
|
|
443
|
+
* "unixVer": "4.25"
|
|
444
|
+
* },
|
|
445
|
+
* "ios": {
|
|
446
|
+
* "osVer": "12.0",
|
|
447
|
+
* "uniVer": "√",
|
|
448
|
+
* "unixVer": "4.25"
|
|
449
|
+
* }
|
|
450
|
+
* }
|
|
451
|
+
* "web": {
|
|
452
|
+
* "uniVer": "√",
|
|
453
|
+
* "unixVer": "4.21"
|
|
454
|
+
* }
|
|
455
|
+
* }
|
|
456
|
+
*/
|
|
457
|
+
lineDashOffset: number
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* 设置 2 个长度不为 0 的线条相连部分如何连接在一起的属性,可选值:`bevel`斜角;`round`圆角;`miter`尖角。
|
|
461
|
+
* @defaultValue miter
|
|
462
|
+
* @uniPlatform {
|
|
463
|
+
* "app": {
|
|
464
|
+
* "android": {
|
|
465
|
+
* "osVer": "5.0",
|
|
466
|
+
* "uniVer": "√",
|
|
467
|
+
* "unixVer": "4.25"
|
|
468
|
+
* },
|
|
469
|
+
* "ios": {
|
|
470
|
+
* "osVer": "12.0",
|
|
471
|
+
* "uniVer": "√",
|
|
472
|
+
* "unixVer": "4.25"
|
|
473
|
+
* }
|
|
474
|
+
* }
|
|
475
|
+
* "web": {
|
|
476
|
+
* "uniVer": "√",
|
|
477
|
+
* "unixVer": "4.21"
|
|
478
|
+
* }
|
|
479
|
+
* }
|
|
480
|
+
*/
|
|
481
|
+
lineJoin: "" | "round" | "bevel" | "miter"
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* 设置线条的宽度
|
|
485
|
+
* @defaultValue 1px
|
|
486
|
+
* @uniPlatform {
|
|
487
|
+
* "app": {
|
|
488
|
+
* "android": {
|
|
489
|
+
* "osVer": "5.0",
|
|
490
|
+
* "uniVer": "√",
|
|
491
|
+
* "unixVer": "4.25"
|
|
492
|
+
* },
|
|
493
|
+
* "ios": {
|
|
494
|
+
* "osVer": "12.0",
|
|
495
|
+
* "uniVer": "√",
|
|
496
|
+
* "unixVer": "4.25"
|
|
497
|
+
* }
|
|
498
|
+
* }
|
|
499
|
+
* "web": {
|
|
500
|
+
* "uniVer": "√",
|
|
501
|
+
* "unixVer": "4.21"
|
|
502
|
+
* }
|
|
503
|
+
* }
|
|
504
|
+
*/
|
|
505
|
+
lineWidth: number
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* 设置斜接面限制比例的属性。当获取属性值时,会返回当前的值(默认值是10.0 )。当给属性赋值时,0、负数、 Infinity 和 NaN 都会被忽略;除此之外都会被赋予一个新值。
|
|
509
|
+
* @uniPlatform {
|
|
510
|
+
* "app": {
|
|
511
|
+
* "android": {
|
|
512
|
+
* "osVer": "5.0",
|
|
513
|
+
* "uniVer": "√",
|
|
514
|
+
* "unixVer": "4.25"
|
|
515
|
+
* },
|
|
516
|
+
* "ios": {
|
|
517
|
+
* "osVer": "12.0",
|
|
518
|
+
* "uniVer": "√",
|
|
519
|
+
* "unixVer": "4.25"
|
|
520
|
+
* }
|
|
521
|
+
* }
|
|
522
|
+
* "web": {
|
|
523
|
+
* "uniVer": "√",
|
|
524
|
+
* "unixVer": "4.21"
|
|
525
|
+
* }
|
|
526
|
+
* }
|
|
527
|
+
*/
|
|
528
|
+
miterLimit: number
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* 用于描述模糊效果程度,其中 0 表示没有模糊,数字越大表示模糊程度越高。这个值不对应于像素数量,并且不受当前变换矩阵的影响。默认值为 0。负数、Infinity 和 NaN 将被忽略
|
|
532
|
+
* @uniPlatform {
|
|
533
|
+
* "app": {
|
|
534
|
+
* "android": {
|
|
535
|
+
* "osVer": "5.0",
|
|
536
|
+
* "uniVer": "√",
|
|
537
|
+
* "unixVer": "x"
|
|
538
|
+
* },
|
|
539
|
+
* "ios": {
|
|
540
|
+
* "osVer": "12.0",
|
|
541
|
+
* "uniVer": "√",
|
|
542
|
+
* "unixVer": "x"
|
|
543
|
+
* }
|
|
544
|
+
* }
|
|
545
|
+
* "web": {
|
|
546
|
+
* "uniVer": "√",
|
|
547
|
+
* "unixVer": "4.21"
|
|
548
|
+
* }
|
|
549
|
+
* }
|
|
550
|
+
*/
|
|
551
|
+
shadowBlur: number
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* 描述阴影颜色,可以转换成 CSS <color> 值的DOMString 字符串。默认值是 fully-transparent black
|
|
555
|
+
* @uniPlatform {
|
|
556
|
+
* "app": {
|
|
557
|
+
* "android": {
|
|
558
|
+
* "osVer": "5.0",
|
|
559
|
+
* "uniVer": "√",
|
|
560
|
+
* "unixVer": "x"
|
|
561
|
+
* },
|
|
562
|
+
* "ios": {
|
|
563
|
+
* "osVer": "12.0",
|
|
564
|
+
* "uniVer": "√",
|
|
565
|
+
* "unixVer": "x"
|
|
566
|
+
* }
|
|
567
|
+
* }
|
|
568
|
+
* "web": {
|
|
569
|
+
* "uniVer": "√",
|
|
570
|
+
* "unixVer": "4.21"
|
|
571
|
+
* }
|
|
572
|
+
* }
|
|
573
|
+
*/
|
|
574
|
+
shadowColor: string
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* 指定阴影在水平方向上的偏移距离。正值向右偏移,负值向左偏移。默认值为 0(无水平偏移)。Infinity 和 NaN 值将被忽略
|
|
578
|
+
* @uniPlatform {
|
|
579
|
+
* "app": {
|
|
580
|
+
* "android": {
|
|
581
|
+
* "osVer": "5.0",
|
|
582
|
+
* "uniVer": "√",
|
|
583
|
+
* "unixVer": "x"
|
|
584
|
+
* },
|
|
585
|
+
* "ios": {
|
|
586
|
+
* "osVer": "12.0",
|
|
587
|
+
* "uniVer": "√",
|
|
588
|
+
* "unixVer": "x"
|
|
589
|
+
* }
|
|
590
|
+
* }
|
|
591
|
+
* "web": {
|
|
592
|
+
* "uniVer": "√",
|
|
593
|
+
* "unixVer": "4.21"
|
|
594
|
+
* }
|
|
595
|
+
* }
|
|
596
|
+
*/
|
|
597
|
+
shadowOffsetX: number
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* 指定阴影在垂直方向上的偏移距离。正值向右偏移,负值向左偏移。默认值为 0(无水平偏移)。Infinity 和 NaN 值将被忽略
|
|
601
|
+
* @uniPlatform {
|
|
602
|
+
* "app": {
|
|
603
|
+
* "android": {
|
|
604
|
+
* "osVer": "5.0",
|
|
605
|
+
* "uniVer": "√",
|
|
606
|
+
* "unixVer": "x"
|
|
607
|
+
* },
|
|
608
|
+
* "ios": {
|
|
609
|
+
* "osVer": "12.0",
|
|
610
|
+
* "uniVer": "√",
|
|
611
|
+
* "unixVer": "x"
|
|
612
|
+
* }
|
|
613
|
+
* }
|
|
614
|
+
* "web": {
|
|
615
|
+
* "uniVer": "√",
|
|
616
|
+
* "unixVer": "4.21"
|
|
617
|
+
* }
|
|
618
|
+
* }
|
|
619
|
+
*/
|
|
620
|
+
shadowOffsetY: number
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* 设置边框的颜色
|
|
624
|
+
* @defaultValue #000 (黑色)
|
|
625
|
+
* @uniPlatform {
|
|
626
|
+
* "app": {
|
|
627
|
+
* "android": {
|
|
628
|
+
* "osVer": "5.0",
|
|
629
|
+
* "uniVer": "√",
|
|
630
|
+
* "unixVer": "4.25"
|
|
631
|
+
* },
|
|
632
|
+
* "ios": {
|
|
633
|
+
* "osVer": "12.0",
|
|
634
|
+
* "uniVer": "√",
|
|
635
|
+
* "unixVer": "4.25"
|
|
636
|
+
* }
|
|
637
|
+
* }
|
|
638
|
+
* "web": {
|
|
639
|
+
* "uniVer": "√",
|
|
640
|
+
* "unixVer": "4.21"
|
|
641
|
+
* }
|
|
642
|
+
* }
|
|
643
|
+
*/
|
|
644
|
+
strokeStyle: CanvasGradient | string
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* 设置文本的对齐方式,可取值:`left`左对齐;`center`居中对齐;`right`右对齐。
|
|
648
|
+
* @defaultValue left
|
|
649
|
+
* @uniPlatform {
|
|
650
|
+
* "app": {
|
|
651
|
+
* "android": {
|
|
652
|
+
* "osVer": "5.0",
|
|
653
|
+
* "uniVer": "√",
|
|
654
|
+
* "unixVer": "4.25"
|
|
655
|
+
* },
|
|
656
|
+
* "ios": {
|
|
657
|
+
* "osVer": "12.0",
|
|
658
|
+
* "uniVer": "√",
|
|
659
|
+
* "unixVer": "4.25"
|
|
660
|
+
* }
|
|
661
|
+
* }
|
|
662
|
+
* "web": {
|
|
663
|
+
* "uniVer": "√",
|
|
664
|
+
* "unixVer": "4.21"
|
|
665
|
+
* }
|
|
666
|
+
* }
|
|
667
|
+
*/
|
|
668
|
+
textAlign: "" | "left" | "right" | "center" | "start" | "end"
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* 描述绘制文本时,当前文本基线的属性
|
|
673
|
+
* @uniPlatform {
|
|
674
|
+
* "app": {
|
|
675
|
+
* "android": {
|
|
676
|
+
* "osVer": "5.0",
|
|
677
|
+
* "uniVer": "√",
|
|
678
|
+
* "unixVer": "4.25"
|
|
679
|
+
* },
|
|
680
|
+
* "ios": {
|
|
681
|
+
* "osVer": "12.0",
|
|
682
|
+
* "uniVer": "√",
|
|
683
|
+
* "unixVer": "4.25"
|
|
684
|
+
* }
|
|
685
|
+
* }
|
|
686
|
+
* "web": {
|
|
687
|
+
* "uniVer": "√",
|
|
688
|
+
* "unixVer": "4.21"
|
|
689
|
+
* }
|
|
690
|
+
* }
|
|
691
|
+
*/
|
|
692
|
+
textBaseline: "" | "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom"
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* 用于在渲染文本时向渲染引擎提供应该如何优化的相关信息
|
|
696
|
+
* @uniPlatform {
|
|
697
|
+
* "app": {
|
|
698
|
+
* "android": {
|
|
699
|
+
* "osVer": "5.0",
|
|
700
|
+
* "uniVer": "x",
|
|
701
|
+
* "unixVer": "x"
|
|
702
|
+
* },
|
|
703
|
+
* "ios": {
|
|
704
|
+
* "osVer": "12.0",
|
|
705
|
+
* "uniVer": "x",
|
|
706
|
+
* "unixVer": "x"
|
|
707
|
+
* }
|
|
708
|
+
* }
|
|
709
|
+
* "web": {
|
|
710
|
+
* "uniVer": "√",
|
|
711
|
+
* "unixVer": "4.21"
|
|
712
|
+
* }
|
|
713
|
+
* }
|
|
714
|
+
*/
|
|
715
|
+
textRendering: number
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* 绘制一段弧线
|
|
719
|
+
* @param {number} x 圆弧中心(圆心)的 x 轴坐标
|
|
720
|
+
* @param {number} y 圆弧中心(圆心)的 y 轴坐标
|
|
721
|
+
* @param {number} radius 圆弧的半径
|
|
722
|
+
* @param {number} startAngle 圆弧的起始点,x 轴方向开始计算,单位为弧度
|
|
723
|
+
* @param {number} endAngle 圆弧的终点,单位为弧度
|
|
724
|
+
* @param {number} [anticlockwise=true] 圆弧绘制方向,true:逆时针绘制,false:顺时针绘制。
|
|
725
|
+
* @uniPlatform {
|
|
726
|
+
* "app": {
|
|
727
|
+
* "android": {
|
|
728
|
+
* "osVer": "5.0",
|
|
729
|
+
* "uniVer": "√",
|
|
730
|
+
* "unixVer": "4.25"
|
|
731
|
+
* },
|
|
732
|
+
* "ios": {
|
|
733
|
+
* "osVer": "12.0",
|
|
734
|
+
* "uniVer": "√",
|
|
735
|
+
* "unixVer": "4.25"
|
|
736
|
+
* }
|
|
737
|
+
* }
|
|
738
|
+
* "web": {
|
|
739
|
+
* "uniVer": "√",
|
|
740
|
+
* "unixVer": "4.21"
|
|
741
|
+
* }
|
|
742
|
+
* }
|
|
743
|
+
*/
|
|
744
|
+
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: boolean): void
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* 根据控制点和半径绘制圆弧路径,使用当前的描点 (前一个 moveTo 或 lineTo 等函数的止点)。根据当前描点与给定的控制点 1 连接的直线,和控制点 1 与控制点 2 连接的直线,作为使用指定半径的圆的切线,画出两条切线之间的弧线路径
|
|
748
|
+
* @param {number} x1 第一个控制点的 x 轴坐标
|
|
749
|
+
* @param {number} y1 第一个控制点的 y 轴坐标
|
|
750
|
+
* @param {number} x2 第二个控制点的 x 轴坐标
|
|
751
|
+
* @param {number} y2 第二个控制点的 y 轴坐标
|
|
752
|
+
* @param {number} radius 圆弧的半径
|
|
753
|
+
* @uniPlatform {
|
|
754
|
+
* "app": {
|
|
755
|
+
* "android": {
|
|
756
|
+
* "osVer": "5.0",
|
|
757
|
+
* "uniVer": "√",
|
|
758
|
+
* "unixVer": "4.25"
|
|
759
|
+
* },
|
|
760
|
+
* "ios": {
|
|
761
|
+
* "osVer": "12.0",
|
|
762
|
+
* "uniVer": "√",
|
|
763
|
+
* "unixVer": "4.25"
|
|
764
|
+
* }
|
|
765
|
+
* }
|
|
766
|
+
* "web": {
|
|
767
|
+
* "uniVer": "√",
|
|
768
|
+
* "unixVer": "4.21"
|
|
769
|
+
* }
|
|
770
|
+
* }
|
|
771
|
+
*/
|
|
772
|
+
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* 开始创建一个路径。需要调用 fill 或者 stroke 才会使用路径进行填充或描边
|
|
776
|
+
* @uniPlatform {
|
|
777
|
+
* "app": {
|
|
778
|
+
* "android": {
|
|
779
|
+
* "osVer": "5.0",
|
|
780
|
+
* "uniVer": "√",
|
|
781
|
+
* "unixVer": "4.25"
|
|
782
|
+
* },
|
|
783
|
+
* "ios": {
|
|
784
|
+
* "osVer": "12.0",
|
|
785
|
+
* "uniVer": "√",
|
|
786
|
+
* "unixVer": "4.25"
|
|
787
|
+
* }
|
|
788
|
+
* }
|
|
789
|
+
* "web": {
|
|
790
|
+
* "uniVer": "√",
|
|
791
|
+
* "unixVer": "4.21"
|
|
792
|
+
* }
|
|
793
|
+
* }
|
|
794
|
+
*/
|
|
795
|
+
beginPath(): void
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* 绘制三次贝赛尔曲线路径
|
|
799
|
+
* @param {number} cp1x 第一个控制点的 x 轴坐标
|
|
800
|
+
* @param {number} cp1y 第一个控制点的 y 轴坐标
|
|
801
|
+
* @param {number} cp2x 第二个控制点的 x 轴坐标
|
|
802
|
+
* @param {number} cp2y 第二个控制点的 y 轴坐标
|
|
803
|
+
* @param {number} x 结束点的 x 轴坐标
|
|
804
|
+
* @param {number} y 结束点的 y 轴坐标
|
|
805
|
+
* @uniPlatform {
|
|
806
|
+
* "app": {
|
|
807
|
+
* "android": {
|
|
808
|
+
* "osVer": "5.0",
|
|
809
|
+
* "uniVer": "√",
|
|
810
|
+
* "unixVer": "4.25"
|
|
811
|
+
* },
|
|
812
|
+
* "ios": {
|
|
813
|
+
* "osVer": "12.0",
|
|
814
|
+
* "uniVer": "√",
|
|
815
|
+
* "unixVer": "4.25"
|
|
816
|
+
* }
|
|
817
|
+
* }
|
|
818
|
+
* "web": {
|
|
819
|
+
* "uniVer": "√",
|
|
820
|
+
* "unixVer": "4.21"
|
|
821
|
+
* }
|
|
822
|
+
* }
|
|
823
|
+
*/
|
|
824
|
+
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* 清除画布上在该矩形区域内的内容
|
|
828
|
+
* @param {number} x 矩形起点的 x 轴坐标
|
|
829
|
+
* @param {number} y 矩形起点的 y 轴坐标
|
|
830
|
+
* @param {number} width 矩形的宽度
|
|
831
|
+
* @param {number} height 矩形的高度
|
|
832
|
+
* @uniPlatform {
|
|
833
|
+
* "app": {
|
|
834
|
+
* "android": {
|
|
835
|
+
* "osVer": "5.0",
|
|
836
|
+
* "uniVer": "√",
|
|
837
|
+
* "unixVer": "4.25"
|
|
838
|
+
* },
|
|
839
|
+
* "ios": {
|
|
840
|
+
* "osVer": "12.0",
|
|
841
|
+
* "uniVer": "√",
|
|
842
|
+
* "unixVer": "4.25"
|
|
843
|
+
* }
|
|
844
|
+
* }
|
|
845
|
+
* "web": {
|
|
846
|
+
* "uniVer": "√",
|
|
847
|
+
* "unixVer": "4.21"
|
|
848
|
+
* }
|
|
849
|
+
* }
|
|
850
|
+
*/
|
|
851
|
+
clearRect(x: number, y: number, width: number, height: number): void
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* 将当前创建的路径设置为当前剪切路径
|
|
855
|
+
* @uniPlatform {
|
|
856
|
+
* "app": {
|
|
857
|
+
* "android": {
|
|
858
|
+
* "osVer": "5.0",
|
|
859
|
+
* "uniVer": "√",
|
|
860
|
+
* "unixVer": "4.25"
|
|
861
|
+
* },
|
|
862
|
+
* "ios": {
|
|
863
|
+
* "osVer": "12.0",
|
|
864
|
+
* "uniVer": "√",
|
|
865
|
+
* "unixVer": "4.25"
|
|
866
|
+
* }
|
|
867
|
+
* }
|
|
868
|
+
* "web": {
|
|
869
|
+
* "uniVer": "√",
|
|
870
|
+
* "unixVer": "4.21"
|
|
871
|
+
* }
|
|
872
|
+
* }
|
|
873
|
+
*/
|
|
874
|
+
clip(): void
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* 将当前创建的路径设置为当前剪切路径
|
|
878
|
+
* @uniPlatform {
|
|
879
|
+
* "app": {
|
|
880
|
+
* "android": {
|
|
881
|
+
* "osVer": "5.0",
|
|
882
|
+
* "uniVer": "√",
|
|
883
|
+
* "unixVer": "x"
|
|
884
|
+
* },
|
|
885
|
+
* "ios": {
|
|
886
|
+
* "osVer": "12.0",
|
|
887
|
+
* "uniVer": "√",
|
|
888
|
+
* "unixVer": "x"
|
|
889
|
+
* }
|
|
890
|
+
* }
|
|
891
|
+
* "web": {
|
|
892
|
+
* "uniVer": "√",
|
|
893
|
+
* "unixVer": "4.21"
|
|
894
|
+
* }
|
|
895
|
+
* }
|
|
896
|
+
*/
|
|
897
|
+
clip(path: Path2D): void
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* 将当前创建的路径设置为当前剪切路径
|
|
901
|
+
* @uniPlatform {
|
|
902
|
+
* "app": {
|
|
903
|
+
* "android": {
|
|
904
|
+
* "osVer": "5.0",
|
|
905
|
+
* "uniVer": "√",
|
|
906
|
+
* "unixVer": "x"
|
|
907
|
+
* },
|
|
908
|
+
* "ios": {
|
|
909
|
+
* "osVer": "12.0",
|
|
910
|
+
* "uniVer": "√",
|
|
911
|
+
* "unixVer": "x"
|
|
912
|
+
* }
|
|
913
|
+
* }
|
|
914
|
+
* "web": {
|
|
915
|
+
* "uniVer": "√",
|
|
916
|
+
* "unixVer": "4.21"
|
|
917
|
+
* }
|
|
918
|
+
* }
|
|
919
|
+
*/
|
|
920
|
+
clip(fillRule: String): void
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* 将当前创建的路径设置为当前剪切路径
|
|
924
|
+
* @uniPlatform {
|
|
925
|
+
* "app": {
|
|
926
|
+
* "android": {
|
|
927
|
+
* "osVer": "5.0",
|
|
928
|
+
* "uniVer": "√",
|
|
929
|
+
* "unixVer": "x"
|
|
930
|
+
* },
|
|
931
|
+
* "ios": {
|
|
932
|
+
* "osVer": "12.0",
|
|
933
|
+
* "uniVer": "√",
|
|
934
|
+
* "unixVer": "x"
|
|
935
|
+
* }
|
|
936
|
+
* }
|
|
937
|
+
* "web": {
|
|
938
|
+
* "uniVer": "√",
|
|
939
|
+
* "unixVer": "4.21"
|
|
940
|
+
* }
|
|
941
|
+
* }
|
|
942
|
+
*/
|
|
943
|
+
clip(path: Path2D, fillRule: String): void
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* 关闭一个路径
|
|
947
|
+
* @uniPlatform {
|
|
948
|
+
* "app": {
|
|
949
|
+
* "android": {
|
|
950
|
+
* "osVer": "5.0",
|
|
951
|
+
* "uniVer": "√",
|
|
952
|
+
* "unixVer": "4.25"
|
|
953
|
+
* },
|
|
954
|
+
* "ios": {
|
|
955
|
+
* "osVer": "12.0",
|
|
956
|
+
* "uniVer": "√",
|
|
957
|
+
* "unixVer": "4.25"
|
|
958
|
+
* }
|
|
959
|
+
* }
|
|
960
|
+
* "web": {
|
|
961
|
+
* "uniVer": "√",
|
|
962
|
+
* "unixVer": "4.21"
|
|
963
|
+
* }
|
|
964
|
+
* }
|
|
965
|
+
*/
|
|
966
|
+
closePath(): void
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* 创建一个新的、空白的、指定大小的 ImageData 对象。所有的像素在新对象中都是透明的黑色
|
|
970
|
+
* @uniPlatform {
|
|
971
|
+
* "app": {
|
|
972
|
+
* "android": {
|
|
973
|
+
* "osVer": "5.0",
|
|
974
|
+
* "uniVer": "√",
|
|
975
|
+
* "unixVer": "x"
|
|
976
|
+
* },
|
|
977
|
+
* "ios": {
|
|
978
|
+
* "osVer": "12.0",
|
|
979
|
+
* "uniVer": "√",
|
|
980
|
+
* "unixVer": "x"
|
|
981
|
+
* }
|
|
982
|
+
* }
|
|
983
|
+
* "web": {
|
|
984
|
+
* "uniVer": "√",
|
|
985
|
+
* "unixVer": "4.21"
|
|
986
|
+
* }
|
|
987
|
+
* }
|
|
988
|
+
*/
|
|
989
|
+
createImageData(width: number, height: number): void
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* 对指定的图像创建模式的方法,可在指定的方向上重复元图像
|
|
993
|
+
* @param {string} image 重复的图像源,支持代码包路径和本地临时路径 (本地路径)
|
|
994
|
+
* @param {string} repetition 如何重复图像
|
|
995
|
+
* @uniPlatform {
|
|
996
|
+
* "app": {
|
|
997
|
+
* "android": {
|
|
998
|
+
* "osVer": "5.0",
|
|
999
|
+
* "uniVer": "√",
|
|
1000
|
+
* "unixVer": "4.25"
|
|
1001
|
+
* },
|
|
1002
|
+
* "ios": {
|
|
1003
|
+
* "osVer": "12.0",
|
|
1004
|
+
* "uniVer": "√",
|
|
1005
|
+
* "unixVer": "4.25"
|
|
1006
|
+
* }
|
|
1007
|
+
* }
|
|
1008
|
+
* "web": {
|
|
1009
|
+
* "uniVer": "√",
|
|
1010
|
+
* "unixVer": "4.21"
|
|
1011
|
+
* }
|
|
1012
|
+
* }
|
|
1013
|
+
*/
|
|
1014
|
+
createPattern(image: Image, repetition: string): CanvasPattern
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* 创建一个线性的渐变颜色。返回的CanvasGradient对象需要使用 CanvasGradient.addColorStop() 来指定渐变点,至少要两个
|
|
1018
|
+
* @param {number} x0 起点的 x 坐标
|
|
1019
|
+
* @param {number} y0 起点的 y 坐标
|
|
1020
|
+
* @param {number} x1 终点的 x 坐标
|
|
1021
|
+
* @param {number} y1 终点的 y 坐标
|
|
1022
|
+
* @uniPlatform {
|
|
1023
|
+
* "app": {
|
|
1024
|
+
* "android": {
|
|
1025
|
+
* "osVer": "5.0",
|
|
1026
|
+
* "uniVer": "√",
|
|
1027
|
+
* "unixVer": "4.25"
|
|
1028
|
+
* },
|
|
1029
|
+
* "ios": {
|
|
1030
|
+
* "osVer": "12.0",
|
|
1031
|
+
* "uniVer": "√",
|
|
1032
|
+
* "unixVer": "4.25"
|
|
1033
|
+
* }
|
|
1034
|
+
* }
|
|
1035
|
+
* "web": {
|
|
1036
|
+
* "uniVer": "√",
|
|
1037
|
+
* "unixVer": "4.21"
|
|
1038
|
+
* }
|
|
1039
|
+
* }
|
|
1040
|
+
*/
|
|
1041
|
+
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* 根据参数确定两个圆的坐标,绘制放射性渐变
|
|
1045
|
+
* @param {number} x0 开始圆形的 x 轴坐标
|
|
1046
|
+
* @param {number} y0 开始圆形的 y 轴坐标
|
|
1047
|
+
* @param {number} r0 开始圆形的半径
|
|
1048
|
+
* @param {number} x1 结束圆形的 x 轴坐标
|
|
1049
|
+
* @param {number} y1 结束圆形的 y 轴坐标
|
|
1050
|
+
* @param {number} r1 结束圆形的半径
|
|
1051
|
+
* @uniPlatform {
|
|
1052
|
+
* "app": {
|
|
1053
|
+
* "android": {
|
|
1054
|
+
* "osVer": "5.0",
|
|
1055
|
+
* "uniVer": "x",
|
|
1056
|
+
* "unixVer": "4.25"
|
|
1057
|
+
* },
|
|
1058
|
+
* "ios": {
|
|
1059
|
+
* "osVer": "12.0",
|
|
1060
|
+
* "uniVer": "x",
|
|
1061
|
+
* "unixVer": "4.25"
|
|
1062
|
+
* }
|
|
1063
|
+
* }
|
|
1064
|
+
* "web": {
|
|
1065
|
+
* "uniVer": "√",
|
|
1066
|
+
* "unixVer": "4.21"
|
|
1067
|
+
* }
|
|
1068
|
+
* }
|
|
1069
|
+
*/
|
|
1070
|
+
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r01: number): CanvasGradient
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* 将之前在绘图上下文中的描述(路径、变形、样式)画到 canvas 中, 该操作为可选非web标准,canvas组件会自动选择合适时机进行绘制
|
|
1074
|
+
* @uniPlatform {
|
|
1075
|
+
* "app": {
|
|
1076
|
+
* "android": {
|
|
1077
|
+
* "osVer": "5.0",
|
|
1078
|
+
* "uniVer": "√",
|
|
1079
|
+
* "unixVer": "4.25"
|
|
1080
|
+
* },
|
|
1081
|
+
* "ios": {
|
|
1082
|
+
* "osVer": "12.0",
|
|
1083
|
+
* "uniVer": "√",
|
|
1084
|
+
* "unixVer": "4.25"
|
|
1085
|
+
* }
|
|
1086
|
+
* }
|
|
1087
|
+
* "web": {
|
|
1088
|
+
* "uniVer": "√",
|
|
1089
|
+
* "unixVer": "4.21"
|
|
1090
|
+
* }
|
|
1091
|
+
* }
|
|
1092
|
+
*/
|
|
1093
|
+
draw(): void
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* 绘制图像到画布
|
|
1097
|
+
* @param {string} imageResource 所要绘制的图片资源
|
|
1098
|
+
* @param {number} sx 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的左上角 x 坐标
|
|
1099
|
+
* @param {number} sy 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的左上角 y 坐标
|
|
1100
|
+
* @param {number} sWidth 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的宽度
|
|
1101
|
+
* @param {number} sHeight 需要绘制到画布中的,imageResource的矩形(裁剪)选择框的高度
|
|
1102
|
+
* @param {number} dx imageResource的左上角在目标 canvas 上 x 轴的位置
|
|
1103
|
+
* @param {number} dy imageResource的左上角在目标 canvas 上 y 轴的位置
|
|
1104
|
+
* @param {number} dWidth 在目标画布上绘制imageResource的宽度,允许对绘制的imageResource进行缩放
|
|
1105
|
+
* @param {number} dHeight 在目标画布上绘制imageResource的高度,允许对绘制的imageResource进行缩放
|
|
1106
|
+
* @uniPlatform {
|
|
1107
|
+
* "app": {
|
|
1108
|
+
* "android": {
|
|
1109
|
+
* "osVer": "5.0",
|
|
1110
|
+
* "uniVer": "√",
|
|
1111
|
+
* "unixVer": "4.25"
|
|
1112
|
+
* },
|
|
1113
|
+
* "ios": {
|
|
1114
|
+
* "osVer": "12.0",
|
|
1115
|
+
* "uniVer": "√",
|
|
1116
|
+
* "unixVer": "4.25"
|
|
1117
|
+
* }
|
|
1118
|
+
* }
|
|
1119
|
+
* "web": {
|
|
1120
|
+
* "uniVer": "√",
|
|
1121
|
+
* "unixVer": "4.21"
|
|
1122
|
+
* }
|
|
1123
|
+
* }
|
|
1124
|
+
*/
|
|
1125
|
+
drawImage(imageResource: Image, sx: number, sy: number): void
|
|
1126
|
+
drawImage(imageResource: Image, sx: number, sy: number, sWidth: number, sHeight: number): void
|
|
1127
|
+
drawImage(imageResource: Image, sx: number, sy: number, sWidth: number, sHeight: number, dx: number, dy: number, dWidth: number, dHeight: number): void
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* 添加椭圆路径。椭圆的圆心在(x,y)位置,半径分别是radiusX 和 radiusY,按照anticlockwise(默认顺时针)指定的方向,从 startAngle 开始绘制,到 endAngle 结束
|
|
1132
|
+
* @uniPlatform {
|
|
1133
|
+
* "app": {
|
|
1134
|
+
* "android": {
|
|
1135
|
+
* "osVer": "5.0",
|
|
1136
|
+
* "uniVer": "√",
|
|
1137
|
+
* "unixVer": "x"
|
|
1138
|
+
* },
|
|
1139
|
+
* "ios": {
|
|
1140
|
+
* "osVer": "12.0",
|
|
1141
|
+
* "uniVer": "√",
|
|
1142
|
+
* "unixVer": "x"
|
|
1143
|
+
* }
|
|
1144
|
+
* }
|
|
1145
|
+
* "web": {
|
|
1146
|
+
* "uniVer": "√",
|
|
1147
|
+
* "unixVer": "4.21"
|
|
1148
|
+
* }
|
|
1149
|
+
* }
|
|
1150
|
+
*/
|
|
1151
|
+
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise: boolean): void
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* 对当前路径中的内容进行填充
|
|
1156
|
+
* @uniPlatform {
|
|
1157
|
+
* "app": {
|
|
1158
|
+
* "android": {
|
|
1159
|
+
* "osVer": "5.0",
|
|
1160
|
+
* "uniVer": "√",
|
|
1161
|
+
* "unixVer": "4.25"
|
|
1162
|
+
* },
|
|
1163
|
+
* "ios": {
|
|
1164
|
+
* "osVer": "12.0",
|
|
1165
|
+
* "uniVer": "√",
|
|
1166
|
+
* "unixVer": "4.25"
|
|
1167
|
+
* }
|
|
1168
|
+
* }
|
|
1169
|
+
* "web": {
|
|
1170
|
+
* "uniVer": "√",
|
|
1171
|
+
* "unixVer": "4.21"
|
|
1172
|
+
* }
|
|
1173
|
+
* }
|
|
1174
|
+
*/
|
|
1175
|
+
fill(): void
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* 对当前路径中的内容进行填充
|
|
1179
|
+
* @param {string} fillRule 填充当前或已存在的路径的方法。采取非零环绕(nonzero)或者奇偶环绕(evenodd)规则
|
|
1180
|
+
* @uniPlatform {
|
|
1181
|
+
* "app": {
|
|
1182
|
+
* "android": {
|
|
1183
|
+
* "osVer": "5.0",
|
|
1184
|
+
* "uniVer": "√",
|
|
1185
|
+
* "unixVer": "4.25"
|
|
1186
|
+
* },
|
|
1187
|
+
* "ios": {
|
|
1188
|
+
* "osVer": "12.0",
|
|
1189
|
+
* "uniVer": "√",
|
|
1190
|
+
* "unixVer": "4.25"
|
|
1191
|
+
* }
|
|
1192
|
+
* }
|
|
1193
|
+
* "web": {
|
|
1194
|
+
* "uniVer": "√",
|
|
1195
|
+
* "unixVer": "4.21"
|
|
1196
|
+
* }
|
|
1197
|
+
* }
|
|
1198
|
+
*/
|
|
1199
|
+
fill(fillRule: "nonzero" | "evenodd"): void
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* 对指定路径中的内容进行填充
|
|
1203
|
+
* @param {string} path 填充路径
|
|
1204
|
+
* @param {string} fillRule 填充当前或已存在的路径的方法。采取非零环绕(nonzero)或者奇偶环绕(evenodd)规则
|
|
1205
|
+
* @uniPlatform {
|
|
1206
|
+
* "app": {
|
|
1207
|
+
* "android": {
|
|
1208
|
+
* "osVer": "5.0",
|
|
1209
|
+
* "uniVer": "√",
|
|
1210
|
+
* "unixVer": "4.25"
|
|
1211
|
+
* },
|
|
1212
|
+
* "ios": {
|
|
1213
|
+
* "osVer": "12.0",
|
|
1214
|
+
* "uniVer": "√",
|
|
1215
|
+
* "unixVer": "4.25"
|
|
1216
|
+
* }
|
|
1217
|
+
* }
|
|
1218
|
+
* "web": {
|
|
1219
|
+
* "uniVer": "√",
|
|
1220
|
+
* "unixVer": "4.21"
|
|
1221
|
+
* }
|
|
1222
|
+
* }
|
|
1223
|
+
*/
|
|
1224
|
+
fill(path: Path2D, fillRule: "nonzero" | "evenodd"): void
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
*填充一个矩形。用 setFillStyle 设置矩形的填充色,如果没设置默认是黑色
|
|
1228
|
+
* @param {number} x 矩形起点的 x 轴坐标
|
|
1229
|
+
* @param {number} y 矩形起点的 y 轴坐标
|
|
1230
|
+
* @param {number} width 矩形的宽度
|
|
1231
|
+
* @param {number} height 矩形的高度
|
|
1232
|
+
* @uniPlatform {
|
|
1233
|
+
* "app": {
|
|
1234
|
+
* "android": {
|
|
1235
|
+
* "osVer": "5.0",
|
|
1236
|
+
* "uniVer": "√",
|
|
1237
|
+
* "unixVer": "4.25"
|
|
1238
|
+
* },
|
|
1239
|
+
* "ios": {
|
|
1240
|
+
* "osVer": "12.0",
|
|
1241
|
+
* "uniVer": "√",
|
|
1242
|
+
* "unixVer": "4.25"
|
|
1243
|
+
* }
|
|
1244
|
+
* }
|
|
1245
|
+
* "web": {
|
|
1246
|
+
* "uniVer": "√",
|
|
1247
|
+
* "unixVer": "4.21"
|
|
1248
|
+
* }
|
|
1249
|
+
* }
|
|
1250
|
+
*/
|
|
1251
|
+
fillRect(x: number, y: number, width: number, height: number): void
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* 在画布上绘制文本
|
|
1256
|
+
* @param {string} text 要渲染的文本字符串
|
|
1257
|
+
* @param {number} x 开始绘制文本的点的 X 轴坐标
|
|
1258
|
+
* @param {number} y 开始绘制文本的点的 X 轴坐标
|
|
1259
|
+
* @param {number} maxWidth 需要绘制的最大宽度
|
|
1260
|
+
* @uniPlatform {
|
|
1261
|
+
* "app": {
|
|
1262
|
+
* "android": {
|
|
1263
|
+
* "osVer": "5.0",
|
|
1264
|
+
* "uniVer": "√",
|
|
1265
|
+
* "unixVer": "4.25"
|
|
1266
|
+
* },
|
|
1267
|
+
* "ios": {
|
|
1268
|
+
* "osVer": "12.0",
|
|
1269
|
+
* "uniVer": "√",
|
|
1270
|
+
* "unixVer": "4.25"
|
|
1271
|
+
* }
|
|
1272
|
+
* }
|
|
1273
|
+
* "web": {
|
|
1274
|
+
* "uniVer": "√",
|
|
1275
|
+
* "unixVer": "4.21"
|
|
1276
|
+
* }
|
|
1277
|
+
* }
|
|
1278
|
+
*/
|
|
1279
|
+
fillText(text: string, x: number, y: number, maxWidth: number): void
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* 返回一个ImageData对象,用来描述 canvas 区域隐含的像素数据,这个区域通过矩形表示,起始点为*(sx, sy)、宽为sw、高为sh。
|
|
1283
|
+
* @param {number} sx 将要被提取的图像数据矩形区域的左上角 x 坐标
|
|
1284
|
+
* @param {number} sy 将要被提取的图像数据矩形区域的左上角 y 坐标
|
|
1285
|
+
* @param {number} sw 将要被提取的图像数据矩形区域的宽度
|
|
1286
|
+
* @param {number} sh 将要被提取的图像数据矩形区域的高度
|
|
1287
|
+
* @uniPlatform {
|
|
1288
|
+
* "app": {
|
|
1289
|
+
* "android": {
|
|
1290
|
+
* "osVer": "5.0",
|
|
1291
|
+
* "uniVer": "√",
|
|
1292
|
+
* "unixVer": "4.25"
|
|
1293
|
+
* },
|
|
1294
|
+
* "ios": {
|
|
1295
|
+
* "osVer": "12.0",
|
|
1296
|
+
* "uniVer": "√",
|
|
1297
|
+
* "unixVer": "4.25"
|
|
1298
|
+
* }
|
|
1299
|
+
* }
|
|
1300
|
+
* "web": {
|
|
1301
|
+
* "uniVer": "√",
|
|
1302
|
+
* "unixVer": "4.21"
|
|
1303
|
+
* }
|
|
1304
|
+
* }
|
|
1305
|
+
*/
|
|
1306
|
+
getImageData(sx: number, sy: number, sw: number, sh: number): ImageData
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* 返回一个Boolean 标记上下文是否已经丢失
|
|
1310
|
+
* @uniPlatform {
|
|
1311
|
+
* "app": {
|
|
1312
|
+
* "android": {
|
|
1313
|
+
* "osVer": "5.0",
|
|
1314
|
+
* "uniVer": "√",
|
|
1315
|
+
* "unixVer": "4.25"
|
|
1316
|
+
* },
|
|
1317
|
+
* "ios": {
|
|
1318
|
+
* "osVer": "12.0",
|
|
1319
|
+
* "uniVer": "√",
|
|
1320
|
+
* "unixVer": "4.25"
|
|
1321
|
+
* }
|
|
1322
|
+
* }
|
|
1323
|
+
* "web": {
|
|
1324
|
+
* "uniVer": "√",
|
|
1325
|
+
* "unixVer": "4.21"
|
|
1326
|
+
* }
|
|
1327
|
+
* }
|
|
1328
|
+
*/
|
|
1329
|
+
isContextLost(): Boolean
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* 判断在当前路径中是否包含检测点
|
|
1333
|
+
* @param {number} x 检测点的 X 坐标
|
|
1334
|
+
* @param {number} y 检测点的 Y 坐标
|
|
1335
|
+
* @uniPlatform {
|
|
1336
|
+
* "app": {
|
|
1337
|
+
* "android": {
|
|
1338
|
+
* "osVer": "5.0",
|
|
1339
|
+
* "uniVer": "√",
|
|
1340
|
+
* "unixVer": "x"
|
|
1341
|
+
* },
|
|
1342
|
+
* "ios": {
|
|
1343
|
+
* "osVer": "12.0",
|
|
1344
|
+
* "uniVer": "√",
|
|
1345
|
+
* "unixVer": "x"
|
|
1346
|
+
* }
|
|
1347
|
+
* }
|
|
1348
|
+
* "web": {
|
|
1349
|
+
* "uniVer": "√",
|
|
1350
|
+
* "unixVer": "4.21"
|
|
1351
|
+
* }
|
|
1352
|
+
* }
|
|
1353
|
+
*/
|
|
1354
|
+
isPointInPath(x: number, y: number): boolean
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* 判断在当前路径中是否包含检测点
|
|
1358
|
+
* @param {number} x 检测点的 X 坐标
|
|
1359
|
+
* @param {number} y 检测点的 Y 坐标
|
|
1360
|
+
* @param {number} fillRule 用来决定点在路径内还是在路径外的算法
|
|
1361
|
+
* @uniPlatform {
|
|
1362
|
+
* "app": {
|
|
1363
|
+
* "android": {
|
|
1364
|
+
* "osVer": "5.0",
|
|
1365
|
+
* "uniVer": "√",
|
|
1366
|
+
* "unixVer": "x"
|
|
1367
|
+
* },
|
|
1368
|
+
* "ios": {
|
|
1369
|
+
* "osVer": "12.0",
|
|
1370
|
+
* "uniVer": "√",
|
|
1371
|
+
* "unixVer": "x"
|
|
1372
|
+
* }
|
|
1373
|
+
* }
|
|
1374
|
+
* "web": {
|
|
1375
|
+
* "uniVer": "√",
|
|
1376
|
+
* "unixVer": "4.21"
|
|
1377
|
+
* }
|
|
1378
|
+
* }
|
|
1379
|
+
*/
|
|
1380
|
+
isPointInPath(x: number, y: number, fillRule: String): boolean
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* 判断在当前路径中是否包含检测点
|
|
1384
|
+
* @param {number} path Path2D应用的路径
|
|
1385
|
+
* @param {number} x 检测点的 X 坐标
|
|
1386
|
+
* @param {number} y 检测点的 Y 坐标
|
|
1387
|
+
* @uniPlatform {
|
|
1388
|
+
* "app": {
|
|
1389
|
+
* "android": {
|
|
1390
|
+
* "osVer": "5.0",
|
|
1391
|
+
* "uniVer": "√",
|
|
1392
|
+
* "unixVer": "x"
|
|
1393
|
+
* },
|
|
1394
|
+
* "ios": {
|
|
1395
|
+
* "osVer": "12.0",
|
|
1396
|
+
* "uniVer": "√",
|
|
1397
|
+
* "unixVer": "x"
|
|
1398
|
+
* }
|
|
1399
|
+
* }
|
|
1400
|
+
* "web": {
|
|
1401
|
+
* "uniVer": "√",
|
|
1402
|
+
* "unixVer": "4.21"
|
|
1403
|
+
* }
|
|
1404
|
+
* }
|
|
1405
|
+
*/
|
|
1406
|
+
isPointInPath(path: Path2D, x: number, y: number): boolean
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* 判断在当前路径中是否包含检测点
|
|
1410
|
+
* @param {number} path Path2D应用的路径
|
|
1411
|
+
* @param {number} x 检测点的 X 坐标
|
|
1412
|
+
* @param {number} y 检测点的 Y 坐标
|
|
1413
|
+
* @param {number} fillRule 用来决定点在路径内还是在路径外的算法
|
|
1414
|
+
* @uniPlatform {
|
|
1415
|
+
* "app": {
|
|
1416
|
+
* "android": {
|
|
1417
|
+
* "osVer": "5.0",
|
|
1418
|
+
* "uniVer": "√",
|
|
1419
|
+
* "unixVer": "x"
|
|
1420
|
+
* },
|
|
1421
|
+
* "ios": {
|
|
1422
|
+
* "osVer": "12.0",
|
|
1423
|
+
* "uniVer": "√",
|
|
1424
|
+
* "unixVer": "x"
|
|
1425
|
+
* }
|
|
1426
|
+
* }
|
|
1427
|
+
* "web": {
|
|
1428
|
+
* "uniVer": "√",
|
|
1429
|
+
* "unixVer": "4.21"
|
|
1430
|
+
* }
|
|
1431
|
+
* }
|
|
1432
|
+
*/
|
|
1433
|
+
isPointInPath(path: Path2D, x: number, y: number, fillRule: String): boolean
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* 检测某点是否在路径的描边线
|
|
1437
|
+
* @param {number} x 检测点的 X 坐标
|
|
1438
|
+
* @param {number} y 检测点的 Y 坐标
|
|
1439
|
+
* @uniPlatform {
|
|
1440
|
+
* "app": {
|
|
1441
|
+
* "android": {
|
|
1442
|
+
* "osVer": "5.0",
|
|
1443
|
+
* "uniVer": "√",
|
|
1444
|
+
* "unixVer": "x"
|
|
1445
|
+
* },
|
|
1446
|
+
* "ios": {
|
|
1447
|
+
* "osVer": "12.0",
|
|
1448
|
+
* "uniVer": "√",
|
|
1449
|
+
* "unixVer": "x"
|
|
1450
|
+
* }
|
|
1451
|
+
* }
|
|
1452
|
+
* "web": {
|
|
1453
|
+
* "uniVer": "√",
|
|
1454
|
+
* "unixVer": "4.21"
|
|
1455
|
+
* }
|
|
1456
|
+
* }
|
|
1457
|
+
*/
|
|
1458
|
+
isPointInStroke(x: number, y: number): boolean
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* 检测某点是否在路径的描边线
|
|
1462
|
+
* @param {number} path Path2D应用的路径
|
|
1463
|
+
* @param {number} x 检测点的 X 坐标
|
|
1464
|
+
* @param {number} y 检测点的 Y 坐标
|
|
1465
|
+
* @uniPlatform {
|
|
1466
|
+
* "app": {
|
|
1467
|
+
* "android": {
|
|
1468
|
+
* "osVer": "5.0",
|
|
1469
|
+
* "uniVer": "√",
|
|
1470
|
+
* "unixVer": "x"
|
|
1471
|
+
* },
|
|
1472
|
+
* "ios": {
|
|
1473
|
+
* "osVer": "12.0",
|
|
1474
|
+
* "uniVer": "√",
|
|
1475
|
+
* "unixVer": "x"
|
|
1476
|
+
* }
|
|
1477
|
+
* }
|
|
1478
|
+
* "web": {
|
|
1479
|
+
* "uniVer": "√",
|
|
1480
|
+
* "unixVer": "4.21"
|
|
1481
|
+
* }
|
|
1482
|
+
* }
|
|
1483
|
+
*/
|
|
1484
|
+
isPointInStroke(path: Path2D, x: number, y: number): boolean
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* 在填充线时使用虚线模式, 它使用一组值来指定描述模式的线和间隙的交替长度。
|
|
1488
|
+
* @ret {segments} Array<number>一组描述交替绘制线段和间距(坐标空间单位)长度的数字
|
|
1489
|
+
* @uniPlatform {
|
|
1490
|
+
* "app": {
|
|
1491
|
+
* "android": {
|
|
1492
|
+
* "osVer": "5.0",
|
|
1493
|
+
* "uniVer": "√",
|
|
1494
|
+
* "unixVer": "4.25"
|
|
1495
|
+
* },
|
|
1496
|
+
* "ios": {
|
|
1497
|
+
* "osVer": "12.0",
|
|
1498
|
+
* "uniVer": "√",
|
|
1499
|
+
* "unixVer": "4.25"
|
|
1500
|
+
* }
|
|
1501
|
+
* }
|
|
1502
|
+
* "web": {
|
|
1503
|
+
* "uniVer": "√",
|
|
1504
|
+
* "unixVer": "4.21"
|
|
1505
|
+
* }
|
|
1506
|
+
* }
|
|
1507
|
+
*/
|
|
1508
|
+
getLineDash(): Array<number>
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* 增加一个新点,然后创建一条从上次指定点到目标点的线。用 stroke 方法来画线条
|
|
1512
|
+
* @param {number} x 目标位置的 x 坐标
|
|
1513
|
+
* @param {number} y 目标位置的 y 坐标
|
|
1514
|
+
* @uniPlatform {
|
|
1515
|
+
* "app": {
|
|
1516
|
+
* "android": {
|
|
1517
|
+
* "osVer": "5.0",
|
|
1518
|
+
* "uniVer": "√",
|
|
1519
|
+
* "unixVer": "4.25"
|
|
1520
|
+
* },
|
|
1521
|
+
* "ios": {
|
|
1522
|
+
* "osVer": "12.0",
|
|
1523
|
+
* "uniVer": "√",
|
|
1524
|
+
* "unixVer": "4.25"
|
|
1525
|
+
* }
|
|
1526
|
+
* }
|
|
1527
|
+
* "web": {
|
|
1528
|
+
* "uniVer": "√",
|
|
1529
|
+
* "unixVer": "4.21"
|
|
1530
|
+
* }
|
|
1531
|
+
* }
|
|
1532
|
+
*/
|
|
1533
|
+
lineTo(x: number, y: number): void
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* 测量文本尺寸信息。目前仅返回文本宽度
|
|
1537
|
+
* @param {number} text 要渲测量的文本字符串
|
|
1538
|
+
* @uniPlatform {
|
|
1539
|
+
* "app": {
|
|
1540
|
+
* "android": {
|
|
1541
|
+
* "osVer": "5.0",
|
|
1542
|
+
* "uniVer": "√",
|
|
1543
|
+
* "unixVer": "4.25"
|
|
1544
|
+
* },
|
|
1545
|
+
* "ios": {
|
|
1546
|
+
* "osVer": "12.0",
|
|
1547
|
+
* "uniVer": "√",
|
|
1548
|
+
* "unixVer": "4.25"
|
|
1549
|
+
* }
|
|
1550
|
+
* }
|
|
1551
|
+
* "web": {
|
|
1552
|
+
* "uniVer": "√",
|
|
1553
|
+
* "unixVer": "4.21"
|
|
1554
|
+
* }
|
|
1555
|
+
* }
|
|
1556
|
+
*/
|
|
1557
|
+
measureText(text: string): TextMetrics
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* 把路径移动到画布中的指定点
|
|
1561
|
+
* @param {number} x 目标位置的 x 坐标
|
|
1562
|
+
* @param {number} y 目标位置的 y 坐标
|
|
1563
|
+
* @uniPlatform {
|
|
1564
|
+
* "app": {
|
|
1565
|
+
* "android": {
|
|
1566
|
+
* "osVer": "5.0",
|
|
1567
|
+
* "uniVer": "√",
|
|
1568
|
+
* "unixVer": "4.25"
|
|
1569
|
+
* },
|
|
1570
|
+
* "ios": {
|
|
1571
|
+
* "osVer": "12.0",
|
|
1572
|
+
* "uniVer": "√",
|
|
1573
|
+
* "unixVer": "4.25"
|
|
1574
|
+
* }
|
|
1575
|
+
* }
|
|
1576
|
+
* "web": {
|
|
1577
|
+
* "uniVer": "√",
|
|
1578
|
+
* "unixVer": "4.21"
|
|
1579
|
+
* }
|
|
1580
|
+
* }
|
|
1581
|
+
*/
|
|
1582
|
+
moveTo(x: number, y: number): void
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* 将数据从已有的 ImageData 对象绘制到位图的方法。如果提供了一个绘制过的矩形,则只绘制该矩形的像素。此方法不受画布转换矩阵的影响
|
|
1586
|
+
* @param {number} imagedata 包含像素值的数组对象
|
|
1587
|
+
* @param {number} x 源图像数据在目标画布中的位置偏移量(x 轴方向的偏移量)
|
|
1588
|
+
* @param {number} y 源图像数据在目标画布中的位置偏移量(y 轴方向的偏移量)
|
|
1589
|
+
* @uniPlatform {
|
|
1590
|
+
* "app": {
|
|
1591
|
+
* "android": {
|
|
1592
|
+
* "osVer": "5.0",
|
|
1593
|
+
* "uniVer": "√",
|
|
1594
|
+
* "unixVer": "4.25"
|
|
1595
|
+
* },
|
|
1596
|
+
* "ios": {
|
|
1597
|
+
* "osVer": "12.0",
|
|
1598
|
+
* "uniVer": "√",
|
|
1599
|
+
* "unixVer": "4.25"
|
|
1600
|
+
* }
|
|
1601
|
+
* }
|
|
1602
|
+
* "web": {
|
|
1603
|
+
* "uniVer": "√",
|
|
1604
|
+
* "unixVer": "4.21"
|
|
1605
|
+
* }
|
|
1606
|
+
* }
|
|
1607
|
+
*/
|
|
1608
|
+
putImageData(imageData: ImageData, x: number, y: number): boolean
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* 将数据从已有的 ImageData 对象绘制到位图的方法。如果提供了一个绘制过的矩形,则只绘制该矩形的像素。此方法不受画布转换矩阵的影响
|
|
1612
|
+
* @param {number} imagedata 包含像素值的数组对象
|
|
1613
|
+
* @param {number} x 源图像数据在目标画布中的位置偏移量(x 轴方向的偏移量)
|
|
1614
|
+
* @param {number} y 源图像数据在目标画布中的位置偏移量(y 轴方向的偏移量)
|
|
1615
|
+
* @param {number} dirtyX 在源图像数据中,矩形区域左上角的位置。默认是整个图像数据的左上角(x 坐标)
|
|
1616
|
+
* @param {number} dirtyY 在源图像数据中,矩形区域左上角的位置。默认是整个图像数据的左上角(y 坐标)
|
|
1617
|
+
* @param {number} dirtyWidth 在源图像数据中,矩形区域的宽度。默认是图像数据的宽度)
|
|
1618
|
+
* @param {number} dirtyHeight 在源图像数据中,矩形区域的高度。默认是图像数据的高度
|
|
1619
|
+
* @uniPlatform {
|
|
1620
|
+
* "app": {
|
|
1621
|
+
* "android": {
|
|
1622
|
+
* "osVer": "5.0",
|
|
1623
|
+
* "uniVer": "√",
|
|
1624
|
+
* "unixVer": "4.25"
|
|
1625
|
+
* },
|
|
1626
|
+
* "ios": {
|
|
1627
|
+
* "osVer": "12.0",
|
|
1628
|
+
* "uniVer": "√",
|
|
1629
|
+
* "unixVer": "4.25"
|
|
1630
|
+
* }
|
|
1631
|
+
* }
|
|
1632
|
+
* "web": {
|
|
1633
|
+
* "uniVer": "√",
|
|
1634
|
+
* "unixVer": "4.21"
|
|
1635
|
+
* }
|
|
1636
|
+
* }
|
|
1637
|
+
*/
|
|
1638
|
+
putImageData(imageData: ImageData, x: number, y: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): boolean
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* 创建二次贝塞尔曲线路径
|
|
1642
|
+
* @param {number} cpx 贝塞尔控制点的 x 坐标
|
|
1643
|
+
* @param {number} cpy 贝塞尔控制点的 y 坐标
|
|
1644
|
+
* @param {number} x 结束点的 x 坐标
|
|
1645
|
+
* @param {number} y 结束点的 y 坐标
|
|
1646
|
+
* @uniPlatform {
|
|
1647
|
+
* "app": {
|
|
1648
|
+
* "android": {
|
|
1649
|
+
* "osVer": "5.0",
|
|
1650
|
+
* "uniVer": "√",
|
|
1651
|
+
* "unixVer": "4.25"
|
|
1652
|
+
* },
|
|
1653
|
+
* "ios": {
|
|
1654
|
+
* "osVer": "12.0",
|
|
1655
|
+
* "uniVer": "√",
|
|
1656
|
+
* "unixVer": "4.25"
|
|
1657
|
+
* }
|
|
1658
|
+
* }
|
|
1659
|
+
* "web": {
|
|
1660
|
+
* "uniVer": "√",
|
|
1661
|
+
* "unixVer": "4.21"
|
|
1662
|
+
* }
|
|
1663
|
+
* }
|
|
1664
|
+
*/
|
|
1665
|
+
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* 创建一个矩形路径
|
|
1669
|
+
* @param {number} x 矩形路径起点的 x 轴坐标
|
|
1670
|
+
* @param {number} y 矩形路径起点的 y 轴坐标
|
|
1671
|
+
* @param {number} width 矩形路径的宽度
|
|
1672
|
+
* @param {number} height 矩形路径的高度
|
|
1673
|
+
* @uniPlatform {
|
|
1674
|
+
* "app": {
|
|
1675
|
+
* "android": {
|
|
1676
|
+
* "osVer": "5.0",
|
|
1677
|
+
* "uniVer": "√",
|
|
1678
|
+
* "unixVer": "4.25"
|
|
1679
|
+
* },
|
|
1680
|
+
* "ios": {
|
|
1681
|
+
* "osVer": "12.0",
|
|
1682
|
+
* "uniVer": "√",
|
|
1683
|
+
* "unixVer": "4.25"
|
|
1684
|
+
* }
|
|
1685
|
+
* }
|
|
1686
|
+
* "web": {
|
|
1687
|
+
* "uniVer": "√",
|
|
1688
|
+
* "unixVer": "4.21"
|
|
1689
|
+
* }
|
|
1690
|
+
* }
|
|
1691
|
+
*/
|
|
1692
|
+
rect(x: number, y: number, width: number, height: number): void
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* 使用单位矩阵重新设置当前变换
|
|
1696
|
+
* @uniPlatform {
|
|
1697
|
+
* "app": {
|
|
1698
|
+
* "android": {
|
|
1699
|
+
* "osVer": "5.0",
|
|
1700
|
+
* "uniVer": "√",
|
|
1701
|
+
* "unixVer": "4.25"
|
|
1702
|
+
* },
|
|
1703
|
+
* "ios": {
|
|
1704
|
+
* "osVer": "12.0",
|
|
1705
|
+
* "uniVer": "√",
|
|
1706
|
+
* "unixVer": "4.25"
|
|
1707
|
+
* }
|
|
1708
|
+
* }
|
|
1709
|
+
* "web": {
|
|
1710
|
+
* "uniVer": "√",
|
|
1711
|
+
* "unixVer": "4.21"
|
|
1712
|
+
* }
|
|
1713
|
+
* }
|
|
1714
|
+
*/
|
|
1715
|
+
resetTransform(): void
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* 恢复之前保存的绘图上下文
|
|
1719
|
+
* @uniPlatform {
|
|
1720
|
+
* "app": {
|
|
1721
|
+
* "android": {
|
|
1722
|
+
* "osVer": "5.0",
|
|
1723
|
+
* "uniVer": "√",
|
|
1724
|
+
* "unixVer": "4.25"
|
|
1725
|
+
* },
|
|
1726
|
+
* "ios": {
|
|
1727
|
+
* "osVer": "12.0",
|
|
1728
|
+
* "uniVer": "√",
|
|
1729
|
+
* "unixVer": "4.25"
|
|
1730
|
+
* }
|
|
1731
|
+
* }
|
|
1732
|
+
* "web": {
|
|
1733
|
+
* "uniVer": "√",
|
|
1734
|
+
* "unixVer": "4.21"
|
|
1735
|
+
* }
|
|
1736
|
+
* }
|
|
1737
|
+
*/
|
|
1738
|
+
restore(): void
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* 以原点为中心顺时针旋转当前坐标轴
|
|
1742
|
+
* @param {rotate} 旋转角度,以弧度计 degrees * Math.PI/180;degrees 范围为 0-360
|
|
1743
|
+
* @uniPlatform {
|
|
1744
|
+
* "app": {
|
|
1745
|
+
* "android": {
|
|
1746
|
+
* "osVer": "5.0",
|
|
1747
|
+
* "uniVer": "√",
|
|
1748
|
+
* "unixVer": "4.25"
|
|
1749
|
+
* },
|
|
1750
|
+
* "ios": {
|
|
1751
|
+
* "osVer": "12.0",
|
|
1752
|
+
* "uniVer": "√",
|
|
1753
|
+
* "unixVer": "4.25"
|
|
1754
|
+
* }
|
|
1755
|
+
* }
|
|
1756
|
+
* "web": {
|
|
1757
|
+
* "uniVer": "√",
|
|
1758
|
+
* "unixVer": "4.21"
|
|
1759
|
+
* }
|
|
1760
|
+
* }
|
|
1761
|
+
*/
|
|
1762
|
+
rotate(rotate: number): void
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* 在当前路径中添加一个圆角矩形
|
|
1766
|
+
* @param {number} imagedata 包含像素值的数组对象
|
|
1767
|
+
* @param {number} x 矩形起点的 x 轴坐标,以像素为单位
|
|
1768
|
+
* @param {number} y 矩形起点的 y 轴坐标,以像素为单位
|
|
1769
|
+
* @param {number} width 矩形的宽度。正值向右,负值向左
|
|
1770
|
+
* @param {number} height 矩形的高度。正值向下,负值向上
|
|
1771
|
+
* @param {number} radii 其数量和顺序与 width 和 height 为正值时的 border-radius CSS 属性相同
|
|
1772
|
+
* @uniPlatform {
|
|
1773
|
+
* "app": {
|
|
1774
|
+
* "android": {
|
|
1775
|
+
* "osVer": "5.0",
|
|
1776
|
+
* "uniVer": "√",
|
|
1777
|
+
* "unixVer": "x"
|
|
1778
|
+
* },
|
|
1779
|
+
* "ios": {
|
|
1780
|
+
* "osVer": "12.0",
|
|
1781
|
+
* "uniVer": "√",
|
|
1782
|
+
* "unixVer": "x"
|
|
1783
|
+
* }
|
|
1784
|
+
* }
|
|
1785
|
+
* "web": {
|
|
1786
|
+
* "uniVer": "√",
|
|
1787
|
+
* "unixVer": "4.21"
|
|
1788
|
+
* }
|
|
1789
|
+
* }
|
|
1790
|
+
*/
|
|
1791
|
+
roundRect(x: number, y: number, width: number, height: number, radii: any): boolean
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* 保存绘图上下文
|
|
1795
|
+
* @uniPlatform {
|
|
1796
|
+
* "app": {
|
|
1797
|
+
* "android": {
|
|
1798
|
+
* "osVer": "5.0",
|
|
1799
|
+
* "uniVer": "√",
|
|
1800
|
+
* "unixVer": "4.25"
|
|
1801
|
+
* },
|
|
1802
|
+
* "ios": {
|
|
1803
|
+
* "osVer": "12.0",
|
|
1804
|
+
* "uniVer": "√",
|
|
1805
|
+
* "unixVer": "4.25"
|
|
1806
|
+
* }
|
|
1807
|
+
* }
|
|
1808
|
+
* "web": {
|
|
1809
|
+
* "uniVer": "√",
|
|
1810
|
+
* "unixVer": "4.21"
|
|
1811
|
+
* }
|
|
1812
|
+
* }
|
|
1813
|
+
*/
|
|
1814
|
+
save(): void
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* 缩放变换
|
|
1818
|
+
* @param {x} 水平方向的缩放因子
|
|
1819
|
+
* @param {y} 垂直方向的缩放因子
|
|
1820
|
+
* @uniPlatform {
|
|
1821
|
+
* "app": {
|
|
1822
|
+
* "android": {
|
|
1823
|
+
* "osVer": "5.0",
|
|
1824
|
+
* "uniVer": "√",
|
|
1825
|
+
* "unixVer": "4.25"
|
|
1826
|
+
* },
|
|
1827
|
+
* "ios": {
|
|
1828
|
+
* "osVer": "12.0",
|
|
1829
|
+
* "uniVer": "√",
|
|
1830
|
+
* "unixVer": "4.25"
|
|
1831
|
+
* }
|
|
1832
|
+
* }
|
|
1833
|
+
* "web": {
|
|
1834
|
+
* "uniVer": "√",
|
|
1835
|
+
* "unixVer": "4.21"
|
|
1836
|
+
* }
|
|
1837
|
+
* }
|
|
1838
|
+
*/
|
|
1839
|
+
scale(x: number, y: number): void
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* 在填充线时使用虚线模式, 它使用一组值来指定描述模式的线和间隙的交替长度。
|
|
1843
|
+
* @param {segments} Array<number>一组描述交替绘制线段和间距(坐标空间单位)长度的数字
|
|
1844
|
+
* @uniPlatform {
|
|
1845
|
+
* "app": {
|
|
1846
|
+
* "android": {
|
|
1847
|
+
* "osVer": "5.0",
|
|
1848
|
+
* "uniVer": "√",
|
|
1849
|
+
* "unixVer": "4.25"
|
|
1850
|
+
* },
|
|
1851
|
+
* "ios": {
|
|
1852
|
+
* "osVer": "12.0",
|
|
1853
|
+
* "uniVer": "√",
|
|
1854
|
+
* "unixVer": "4.25"
|
|
1855
|
+
* }
|
|
1856
|
+
* }
|
|
1857
|
+
* "web": {
|
|
1858
|
+
* "uniVer": "√",
|
|
1859
|
+
* "unixVer": "4.21"
|
|
1860
|
+
* }
|
|
1861
|
+
* }
|
|
1862
|
+
*/
|
|
1863
|
+
setLineDash(segments: Array<number>): void
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* 使用单位矩阵重新设置(覆盖)当前的变换并调用变换
|
|
1867
|
+
* @param {number} scaleX 水平缩放
|
|
1868
|
+
* @param {number} skewY 垂直倾斜
|
|
1869
|
+
* @param {number} skewX 水平倾斜
|
|
1870
|
+
* @param {number} scaleY 垂直缩放
|
|
1871
|
+
* @param {number} translateX 水平移动
|
|
1872
|
+
* @param {number} translateY 垂直移动
|
|
1873
|
+
* @uniPlatform {
|
|
1874
|
+
* "app": {
|
|
1875
|
+
* "android": {
|
|
1876
|
+
* "osVer": "5.0",
|
|
1877
|
+
* "uniVer": "√",
|
|
1878
|
+
* "unixVer": "4.25"
|
|
1879
|
+
* },
|
|
1880
|
+
* "ios": {
|
|
1881
|
+
* "osVer": "12.0",
|
|
1882
|
+
* "uniVer": "√",
|
|
1883
|
+
* "unixVer": "4.25"
|
|
1884
|
+
* }
|
|
1885
|
+
* }
|
|
1886
|
+
* "web": {
|
|
1887
|
+
* "uniVer": "√",
|
|
1888
|
+
* "unixVer": "4.21"
|
|
1889
|
+
* }
|
|
1890
|
+
* }
|
|
1891
|
+
*/
|
|
1892
|
+
setTransform(scaleX: Number, skewY: Number, skewX: Number, scaleY: Number, translateX: Number, translateY: Number): void
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* 画出当前路径的边框。默认颜色色为黑色
|
|
1896
|
+
* @uniPlatform {
|
|
1897
|
+
* "app": {
|
|
1898
|
+
* "android": {
|
|
1899
|
+
* "osVer": "5.0",
|
|
1900
|
+
* "uniVer": "√",
|
|
1901
|
+
* "unixVer": "4.25"
|
|
1902
|
+
* },
|
|
1903
|
+
* "ios": {
|
|
1904
|
+
* "osVer": "12.0",
|
|
1905
|
+
* "uniVer": "√",
|
|
1906
|
+
* "unixVer": "4.25"
|
|
1907
|
+
* }
|
|
1908
|
+
* }
|
|
1909
|
+
* "web": {
|
|
1910
|
+
* "uniVer": "√",
|
|
1911
|
+
* "unixVer": "4.21"
|
|
1912
|
+
* }
|
|
1913
|
+
* }
|
|
1914
|
+
*/
|
|
1915
|
+
stroke(): void
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* 画出指定路径的边框。默认颜色色为黑色
|
|
1919
|
+
* @param {path} Path2D
|
|
1920
|
+
* @uniPlatform {
|
|
1921
|
+
* "app": {
|
|
1922
|
+
* "android": {
|
|
1923
|
+
* "osVer": "5.0",
|
|
1924
|
+
* "uniVer": "√",
|
|
1925
|
+
* "unixVer": "4.25"
|
|
1926
|
+
* },
|
|
1927
|
+
* "ios": {
|
|
1928
|
+
* "osVer": "12.0",
|
|
1929
|
+
* "uniVer": "√",
|
|
1930
|
+
* "unixVer": "4.25"
|
|
1931
|
+
* }
|
|
1932
|
+
* }
|
|
1933
|
+
* "web": {
|
|
1934
|
+
* "uniVer": "√",
|
|
1935
|
+
* "unixVer": "4.21"
|
|
1936
|
+
* }
|
|
1937
|
+
* }
|
|
1938
|
+
*/
|
|
1939
|
+
stroke(path: Path2D): void
|
|
1940
|
+
|
|
1941
|
+
/**
|
|
1942
|
+
* 画一个矩形(非填充)
|
|
1943
|
+
* @param {number} x 矩形起点的 x 轴坐标
|
|
1944
|
+
* @param {number} y 矩形起点的 y 轴坐标
|
|
1945
|
+
* @param {number} width 矩形的宽度
|
|
1946
|
+
* @param {number} height 矩形的高度
|
|
1947
|
+
* @uniPlatform {
|
|
1948
|
+
* "app": {
|
|
1949
|
+
* "android": {
|
|
1950
|
+
* "osVer": "5.0",
|
|
1951
|
+
* "uniVer": "√",
|
|
1952
|
+
* "unixVer": "4.25"
|
|
1953
|
+
* },
|
|
1954
|
+
* "ios": {
|
|
1955
|
+
* "osVer": "12.0",
|
|
1956
|
+
* "uniVer": "√",
|
|
1957
|
+
* "unixVer": "4.25"
|
|
1958
|
+
* }
|
|
1959
|
+
* }
|
|
1960
|
+
* "web": {
|
|
1961
|
+
* "uniVer": "√",
|
|
1962
|
+
* "unixVer": "4.21"
|
|
1963
|
+
* }
|
|
1964
|
+
* }
|
|
1965
|
+
*/
|
|
1966
|
+
strokeRect(x: number, y: number, width: number, height: number): void
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* 文本描边
|
|
1970
|
+
* @param {string} text 要渲染的文本字符串
|
|
1971
|
+
* @param {number} x 开始绘制文本的点的 X 轴坐标
|
|
1972
|
+
* @param {number} y 开始绘制文本的点的 X 轴坐标
|
|
1973
|
+
* @param {number} maxWidth 需要绘制的最大宽度
|
|
1974
|
+
* @uniPlatform {
|
|
1975
|
+
* "app": {
|
|
1976
|
+
* "android": {
|
|
1977
|
+
* "osVer": "5.0",
|
|
1978
|
+
* "uniVer": "√",
|
|
1979
|
+
* "unixVer": "4.25"
|
|
1980
|
+
* },
|
|
1981
|
+
* "ios": {
|
|
1982
|
+
* "osVer": "12.0",
|
|
1983
|
+
* "uniVer": "√",
|
|
1984
|
+
* "unixVer": "4.25"
|
|
1985
|
+
* }
|
|
1986
|
+
* }
|
|
1987
|
+
* "web": {
|
|
1988
|
+
* "uniVer": "√",
|
|
1989
|
+
* "unixVer": "4.21"
|
|
1990
|
+
* }
|
|
1991
|
+
* }
|
|
1992
|
+
*/
|
|
1993
|
+
strokeText(text: string, x: number, y: number, maxWidth: number): void
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* 使用矩阵多次叠加当前变换,矩阵由方法的参数进行描述。可以缩放、旋转、移动和倾斜上下文
|
|
1997
|
+
* @param {number} scaleX 水平缩放
|
|
1998
|
+
* @param {number} skewY 垂直倾斜
|
|
1999
|
+
* @param {number} skewX 水平倾斜
|
|
2000
|
+
* @param {number} scaleY 垂直缩放
|
|
2001
|
+
* @param {number} translateX 水平移动
|
|
2002
|
+
* @param {number} translateY 垂直移动
|
|
2003
|
+
* @uniPlatform {
|
|
2004
|
+
* "app": {
|
|
2005
|
+
* "android": {
|
|
2006
|
+
* "osVer": "5.0",
|
|
2007
|
+
* "uniVer": "√",
|
|
2008
|
+
* "unixVer": "4.25"
|
|
2009
|
+
* },
|
|
2010
|
+
* "ios": {
|
|
2011
|
+
* "osVer": "12.0",
|
|
2012
|
+
* "uniVer": "√",
|
|
2013
|
+
* "unixVer": "4.25"
|
|
2014
|
+
* }
|
|
2015
|
+
* }
|
|
2016
|
+
* "web": {
|
|
2017
|
+
* "uniVer": "√",
|
|
2018
|
+
* "unixVer": "4.21"
|
|
2019
|
+
* }
|
|
2020
|
+
* }
|
|
2021
|
+
*/
|
|
2022
|
+
transform(scaleX: Number, skewY: number, skewX: number, scaleY: number, translateX: number, translateY: number): void
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* 当前网格添加平移变换
|
|
2026
|
+
* @param {number} translateX 水平方向的移动距离
|
|
2027
|
+
* @param {number} translateY 垂直方向的移动距离
|
|
2028
|
+
* @uniPlatform {
|
|
2029
|
+
* "app": {
|
|
2030
|
+
* "android": {
|
|
2031
|
+
* "osVer": "5.0",
|
|
2032
|
+
* "uniVer": "√",
|
|
2033
|
+
* "unixVer": "4.25"
|
|
2034
|
+
* },
|
|
2035
|
+
* "ios": {
|
|
2036
|
+
* "osVer": "12.0",
|
|
2037
|
+
* "uniVer": "√",
|
|
2038
|
+
* "unixVer": "4.25"
|
|
2039
|
+
* }
|
|
2040
|
+
* }
|
|
2041
|
+
* "web": {
|
|
2042
|
+
* "uniVer": "√",
|
|
2043
|
+
* "unixVer": "4.21"
|
|
2044
|
+
* }
|
|
2045
|
+
* }
|
|
2046
|
+
*/
|
|
2047
|
+
translate(translateX: number, translateY: number): void
|
|
2048
|
+
}
|