@akylas/nativescript 8.8.5 → 8.8.6
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/{js-libs/easysax/LICENSE → LICENSE} +11 -12
- package/animation-frame/index.d.ts +17 -3
- package/css/css-tree-parser.js +21 -17
- package/debugger/devtools-elements.d.ts +23 -5
- package/debugger/dom-node.d.ts +23 -20
- package/file-system/index.d.ts +382 -98
- package/fps-meter/index.d.ts +24 -7
- package/globals/index.d.ts +4 -19
- package/http/index.d.ts +149 -73
- package/index.d.ts +23 -7
- package/matrix/index.d.ts +32 -5
- package/module-name-resolver/index.d.ts +21 -13
- package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
- package/package.json +5 -8
- package/platform/index.d.ts +26 -0
- package/profiling/index.d.ts +153 -26
- package/text/formatted-string.d.ts +1 -1
- package/text/span.d.ts +1 -1
- package/trace/index.d.ts +131 -105
- package/ui/animation/keyframe-animation.d.ts +118 -66
- package/ui/builder/binding-builder.d.ts +15 -12
- package/ui/builder/index.d.ts +69 -27
- package/ui/content-view/index.d.ts +4 -23
- package/ui/core/view-base/index.d.ts +524 -483
- package/ui/core/weak-event-listener/index.d.ts +18 -2
- package/ui/layouts/index.d.ts +1 -2
- package/ui/placeholder/index.d.ts +42 -8
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/style-properties.d.ts +101 -82
- package/ui/styling/style-scope.d.ts +48 -79
- package/ui/text-base/formatted-string.d.ts +73 -36
- package/ui/text-base/span.d.ts +81 -36
- package/utils/debug.d.ts +61 -17
- package/utils/lazy.d.ts +5 -0
- package/utils/macrotask-scheduler.d.ts +5 -1
- package/utils/types.d.ts +115 -23
- package/xml/index.d.ts +105 -44
- package/xml/index.js +124 -89
- package/abortcontroller/abortsignal.d.ts +0 -23
- package/abortcontroller/abortsignal.js +0 -57
- package/abortcontroller/abortsignal.js.map +0 -1
- package/abortcontroller/index.d.ts +0 -20
- package/abortcontroller/index.js +0 -52
- package/abortcontroller/index.js.map +0 -1
- package/accessibility/accessibility-common.d.ts +0 -18
- package/accessibility/accessibility-common.js +0 -64
- package/accessibility/accessibility-common.js.map +0 -1
- package/accessibility/accessibility-css-helper.d.ts +0 -1
- package/accessibility/accessibility-css-helper.js +0 -101
- package/accessibility/accessibility-css-helper.js.map +0 -1
- package/accessibility/accessibility-properties.d.ts +0 -24
- package/accessibility/accessibility-properties.js +0 -122
- package/accessibility/accessibility-properties.js.map +0 -1
- package/accessibility/accessibility-service-common.d.ts +0 -8
- package/accessibility/accessibility-service-common.js +0 -26
- package/accessibility/accessibility-service-common.js.map +0 -1
- package/accessibility/accessibility-service.android.d.ts +0 -6
- package/accessibility/accessibility-service.android.js +0 -107
- package/accessibility/accessibility-service.android.js.map +0 -1
- package/accessibility/accessibility-service.ios.d.ts +0 -6
- package/accessibility/accessibility-service.ios.js +0 -61
- package/accessibility/accessibility-service.ios.js.map +0 -1
- package/accessibility/accessibility-types.d.ts +0 -224
- package/accessibility/accessibility-types.js +0 -222
- package/accessibility/accessibility-types.js.map +0 -1
- package/accessibility/font-scale-common.d.ts +0 -7
- package/accessibility/font-scale-common.js +0 -14
- package/accessibility/font-scale-common.js.map +0 -1
- package/accessibility/font-scale.android.d.ts +0 -5
- package/accessibility/font-scale.android.js +0 -56
- package/accessibility/font-scale.android.js.map +0 -1
- package/accessibility/font-scale.ios.d.ts +0 -5
- package/accessibility/font-scale.ios.js +0 -89
- package/accessibility/font-scale.ios.js.map +0 -1
- package/accessibility/index.android.d.ts +0 -10
- package/accessibility/index.android.js +0 -418
- package/accessibility/index.android.js.map +0 -1
- package/accessibility/index.ios.d.ts +0 -9
- package/accessibility/index.ios.js +0 -234
- package/accessibility/index.ios.js.map +0 -1
- package/animation-frame/animation-native.android.d.ts +0 -1
- package/animation-frame/animation-native.android.js +0 -4
- package/animation-frame/animation-native.android.js.map +0 -1
- package/animation-frame/animation-native.ios.d.ts +0 -1
- package/animation-frame/animation-native.ios.js +0 -3
- package/animation-frame/animation-native.ios.js.map +0 -1
- package/animation-frame/index.js +0 -92
- package/animation-frame/index.js.map +0 -1
- package/application/application-common.d.ts +0 -224
- package/application/application-common.js +0 -467
- package/application/application-common.js.map +0 -1
- package/application/application-interfaces.d.ts +0 -217
- package/application/application-interfaces.js +0 -2
- package/application/application-interfaces.js.map +0 -1
- package/application/application-shims.d.ts +0 -351
- package/application/application-shims.js +0 -353
- package/application/application-shims.js.map +0 -1
- package/application/application.android.d.ts +0 -73
- package/application/application.android.js +0 -500
- package/application/application.android.js.map +0 -1
- package/application/application.ios.d.ts +0 -81
- package/application/application.ios.js +0 -455
- package/application/application.ios.js.map +0 -1
- package/application/index.android.d.ts +0 -2
- package/application/index.android.js +0 -3
- package/application/index.android.js.map +0 -1
- package/application/index.ios.d.ts +0 -2
- package/application/index.ios.js +0 -3
- package/application/index.ios.js.map +0 -1
- package/application-settings/application-settings-common.d.ts +0 -2
- package/application-settings/application-settings-common.js +0 -15
- package/application-settings/application-settings-common.js.map +0 -1
- package/application-settings/index.android.d.ts +0 -13
- package/application-settings/index.android.js +0 -175
- package/application-settings/index.android.js.map +0 -1
- package/application-settings/index.ios.d.ts +0 -13
- package/application-settings/index.ios.js +0 -88
- package/application-settings/index.ios.js.map +0 -1
- package/bundle-entry-points.d.ts +0 -1
- package/bundle-entry-points.js +0 -47
- package/bundle-entry-points.js.map +0 -1
- package/color/color-common.d.ts +0 -137
- package/color/color-common.js +0 -520
- package/color/color-common.js.map +0 -1
- package/color/index.android.d.ts +0 -4
- package/color/index.android.js +0 -7
- package/color/index.android.js.map +0 -1
- package/color/index.ios.d.ts +0 -6
- package/color/index.ios.js +0 -19
- package/color/index.ios.js.map +0 -1
- package/color/known-colors.d.ts +0 -144
- package/color/known-colors.js +0 -165
- package/color/known-colors.js.map +0 -1
- package/config/config.interface.d.ts +0 -235
- package/config/config.interface.js +0 -2
- package/config/config.interface.js.map +0 -1
- package/config/index.d.ts +0 -1
- package/config/index.js +0 -2
- package/config/index.js.map +0 -1
- package/connectivity/index.android.d.ts +0 -11
- package/connectivity/index.android.js +0 -156
- package/connectivity/index.android.js.map +0 -1
- package/connectivity/index.ios.d.ts +0 -11
- package/connectivity/index.ios.js +0 -132
- package/connectivity/index.ios.js.map +0 -1
- package/console/index.d.ts +0 -14
- package/console/index.js +0 -33
- package/console/index.js.map +0 -1
- package/core-types/index.d.ts +0 -335
- package/core-types/index.js +0 -287
- package/core-types/index.js.map +0 -1
- package/css/CSS3Parser.d.ts +0 -184
- package/css/CSS3Parser.js +0 -534
- package/css/CSS3Parser.js.map +0 -1
- package/css/CSSNativeScript.d.ts +0 -14
- package/css/CSSNativeScript.js +0 -113
- package/css/CSSNativeScript.js.map +0 -1
- package/css/LICENSE +0 -9
- package/css/Readme.md +0 -278
- package/css/css-tree-parser.d.ts +0 -1
- package/css/css-tree-parser.js.map +0 -1
- package/css/parser.d.ts +0 -70
- package/css/parser.js +0 -516
- package/css/parser.js.map +0 -1
- package/css/system-classes.d.ts +0 -12
- package/css/system-classes.js +0 -47
- package/css/system-classes.js.map +0 -1
- package/css-mediaquery/index.d.ts +0 -27
- package/css-mediaquery/index.js +0 -118
- package/css-mediaquery/index.js.map +0 -1
- package/css-value/LICENSE +0 -9
- package/css-value/Readme.md +0 -45
- package/data/observable/index.d.ts +0 -185
- package/data/observable/index.js +0 -411
- package/data/observable/index.js.map +0 -1
- package/data/observable-array/index.d.ts +0 -215
- package/data/observable-array/index.js +0 -325
- package/data/observable-array/index.js.map +0 -1
- package/data/virtual-array/index.d.ts +0 -72
- package/data/virtual-array/index.js +0 -133
- package/data/virtual-array/index.js.map +0 -1
- package/debugger/InspectorBackendCommands.d.ts +0 -1056
- package/debugger/InspectorBackendCommands.js +0 -578
- package/debugger/InspectorBackendCommands.js.map +0 -1
- package/debugger/devtools-elements-interfaces.d.ts +0 -16
- package/debugger/devtools-elements-interfaces.js +0 -2
- package/debugger/devtools-elements-interfaces.js.map +0 -1
- package/debugger/devtools-elements.common.d.ts +0 -7
- package/debugger/devtools-elements.common.js +0 -84
- package/debugger/devtools-elements.common.js.map +0 -1
- package/debugger/devtools-elements.js +0 -20
- package/debugger/devtools-elements.js.map +0 -1
- package/debugger/dom-node.js +0 -150
- package/debugger/dom-node.js.map +0 -1
- package/debugger/index.d.ts +0 -87
- package/debugger/index.js +0 -118
- package/debugger/index.js.map +0 -1
- package/debugger/webinspector-css.d.ts +0 -34
- package/debugger/webinspector-css.js +0 -71
- package/debugger/webinspector-css.js.map +0 -1
- package/debugger/webinspector-dom.d.ts +0 -33
- package/debugger/webinspector-dom.js +0 -74
- package/debugger/webinspector-dom.js.map +0 -1
- package/debugger/webinspector-network.android.d.ts +0 -79
- package/debugger/webinspector-network.android.js +0 -207
- package/debugger/webinspector-network.android.js.map +0 -1
- package/debugger/webinspector-network.ios.d.ts +0 -79
- package/debugger/webinspector-network.ios.js +0 -203
- package/debugger/webinspector-network.ios.js.map +0 -1
- package/fetch/LICENSE +0 -20
- package/fetch/README.md +0 -1
- package/file-system/file-system-access.android.d.ts +0 -167
- package/file-system/file-system-access.android.js +0 -1295
- package/file-system/file-system-access.android.js.map +0 -1
- package/file-system/file-system-access.ios.d.ts +0 -85
- package/file-system/file-system-access.ios.js +0 -637
- package/file-system/file-system-access.ios.js.map +0 -1
- package/file-system/index.js +0 -863
- package/file-system/index.js.map +0 -1
- package/fps-meter/fps-native.android.d.ts +0 -12
- package/fps-meter/fps-native.android.js +0 -62
- package/fps-meter/fps-native.android.js.map +0 -1
- package/fps-meter/fps-native.ios.d.ts +0 -11
- package/fps-meter/fps-native.ios.js +0 -56
- package/fps-meter/fps-native.ios.js.map +0 -1
- package/fps-meter/index.js +0 -77
- package/fps-meter/index.js.map +0 -1
- package/globals/index.js +0 -321
- package/globals/index.js.map +0 -1
- package/http/http-request/http-request-common.d.ts +0 -1
- package/http/http-request/http-request-common.js +0 -15
- package/http/http-request/http-request-common.js.map +0 -1
- package/http/http-request/index.android.d.ts +0 -7
- package/http/http-request/index.android.js +0 -290
- package/http/http-request/index.android.js.map +0 -1
- package/http/http-request/index.ios.d.ts +0 -7
- package/http/http-request/index.ios.js +0 -236
- package/http/http-request/index.ios.js.map +0 -1
- package/http/index.js +0 -74
- package/http/index.js.map +0 -1
- package/image-asset/image-asset-common.d.ts +0 -26
- package/image-asset/image-asset-common.js +0 -51
- package/image-asset/image-asset-common.js.map +0 -1
- package/image-asset/index.android.d.ts +0 -10
- package/image-asset/index.android.js +0 -42
- package/image-asset/index.android.js.map +0 -1
- package/image-asset/index.ios.d.ts +0 -11
- package/image-asset/index.ios.js +0 -84
- package/image-asset/index.ios.js.map +0 -1
- package/image-source/image-source-common.d.ts +0 -4
- package/image-source/image-source-common.js +0 -21
- package/image-source/image-source-common.js.map +0 -1
- package/image-source/index.android.d.ts +0 -57
- package/image-source/index.android.js +0 -381
- package/image-source/index.android.js.map +0 -1
- package/image-source/index.ios.d.ts +0 -56
- package/image-source/index.ios.js +0 -449
- package/image-source/index.ios.js.map +0 -1
- package/index.js +0 -36
- package/index.js.map +0 -1
- package/inspector_modules.d.ts +0 -1
- package/inspector_modules.js +0 -5
- package/inspector_modules.js.map +0 -1
- package/js-libs/easysax/README.md +0 -46
- package/matrix/index.js +0 -45
- package/matrix/index.js.map +0 -1
- package/media-query-list/index.d.ts +0 -21
- package/media-query-list/index.js +0 -169
- package/media-query-list/index.js.map +0 -1
- package/module-name-resolver/index.js +0 -79
- package/module-name-resolver/index.js.map +0 -1
- package/module-name-resolver/non-bundle-workflow-compat.d.ts +0 -6
- package/module-name-resolver/non-bundle-workflow-compat.js +0 -119
- package/module-name-resolver/non-bundle-workflow-compat.js.map +0 -1
- package/module-name-resolver/qualifier-matcher/index.js +0 -141
- package/module-name-resolver/qualifier-matcher/index.js.map +0 -1
- package/platform/common.d.ts +0 -9
- package/platform/common.js +0 -13
- package/platform/common.js.map +0 -1
- package/platform/device/index.android.d.ts +0 -20
- package/platform/device/index.android.js +0 -78
- package/platform/device/index.android.js.map +0 -1
- package/platform/device/index.ios.d.ts +0 -19
- package/platform/device/index.ios.js +0 -69
- package/platform/device/index.ios.js.map +0 -1
- package/platform/index.js +0 -4
- package/platform/index.js.map +0 -1
- package/platform/screen/index.android.d.ts +0 -15
- package/platform/screen/index.android.js +0 -39
- package/platform/screen/index.android.js.map +0 -1
- package/platform/screen/index.ios.d.ts +0 -15
- package/platform/screen/index.ios.js +0 -35
- package/platform/screen/index.ios.js.map +0 -1
- package/platforms/README.md +0 -1
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +0 -52
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/polyfills/formdata.d.ts +0 -6
- package/polyfills/formdata.js +0 -16
- package/polyfills/formdata.js.map +0 -1
- package/profiling/index.js +0 -274
- package/profiling/index.js.map +0 -1
- package/text/formatted-string.js +0 -2
- package/text/formatted-string.js.map +0 -1
- package/text/index.android.d.ts +0 -9
- package/text/index.android.js +0 -11
- package/text/index.android.js.map +0 -1
- package/text/index.ios.d.ts +0 -9
- package/text/index.ios.js +0 -11
- package/text/index.ios.js.map +0 -1
- package/text/span.js +0 -2
- package/text/span.js.map +0 -1
- package/text/text-common.d.ts +0 -12
- package/text/text-common.js +0 -111
- package/text/text-common.js.map +0 -1
- package/timer/index.android.d.ts +0 -4
- package/timer/index.android.js +0 -75
- package/timer/index.android.js.map +0 -1
- package/timer/index.ios.d.ts +0 -4
- package/timer/index.ios.js +0 -68
- package/timer/index.ios.js.map +0 -1
- package/trace/index.js +0 -255
- package/trace/index.js.map +0 -1
- package/ui/action-bar/action-bar-common.d.ts +0 -81
- package/ui/action-bar/action-bar-common.js +0 -369
- package/ui/action-bar/action-bar-common.js.map +0 -1
- package/ui/action-bar/index.android.d.ts +0 -47
- package/ui/action-bar/index.android.js +0 -469
- package/ui/action-bar/index.android.js.map +0 -1
- package/ui/action-bar/index.ios.d.ts +0 -38
- package/ui/action-bar/index.ios.js +0 -481
- package/ui/action-bar/index.ios.js.map +0 -1
- package/ui/activity-indicator/activity-indicator-common.d.ts +0 -7
- package/ui/activity-indicator/activity-indicator-common.js +0 -17
- package/ui/activity-indicator/activity-indicator-common.js.map +0 -1
- package/ui/activity-indicator/index.android.d.ts +0 -6
- package/ui/activity-indicator/index.android.js +0 -56
- package/ui/activity-indicator/index.android.js.map +0 -1
- package/ui/activity-indicator/index.ios.d.ts +0 -8
- package/ui/activity-indicator/index.ios.js +0 -48
- package/ui/activity-indicator/index.ios.js.map +0 -1
- package/ui/animation/animation-common.d.ts +0 -40
- package/ui/animation/animation-common.js +0 -186
- package/ui/animation/animation-common.js.map +0 -1
- package/ui/animation/animation-interfaces.d.ts +0 -63
- package/ui/animation/animation-interfaces.js +0 -2
- package/ui/animation/animation-interfaces.js.map +0 -1
- package/ui/animation/index.android.d.ts +0 -25
- package/ui/animation/index.android.js +0 -509
- package/ui/animation/index.android.js.map +0 -1
- package/ui/animation/index.ios.d.ts +0 -46
- package/ui/animation/index.ios.js +0 -906
- package/ui/animation/index.ios.js.map +0 -1
- package/ui/animation/keyframe-animation.js +0 -245
- package/ui/animation/keyframe-animation.js.map +0 -1
- package/ui/builder/binding-builder.js +0 -171
- package/ui/builder/binding-builder.js.map +0 -1
- package/ui/builder/component-builder/index.d.ts +0 -7
- package/ui/builder/component-builder/index.js +0 -221
- package/ui/builder/component-builder/index.js.map +0 -1
- package/ui/builder/index.js +0 -202
- package/ui/builder/index.js.map +0 -1
- package/ui/builder/xml2ui.d.ts +0 -134
- package/ui/builder/xml2ui.js +0 -393
- package/ui/builder/xml2ui.js.map +0 -1
- package/ui/button/button-common.d.ts +0 -9
- package/ui/button/button-common.js +0 -26
- package/ui/button/button-common.js.map +0 -1
- package/ui/button/index.android.d.ts +0 -14
- package/ui/button/index.android.js +0 -150
- package/ui/button/index.android.js.map +0 -1
- package/ui/button/index.ios.d.ts +0 -13
- package/ui/button/index.ios.js +0 -270
- package/ui/button/index.ios.js.map +0 -1
- package/ui/content-view/index.js +0 -87
- package/ui/content-view/index.js.map +0 -1
- package/ui/core/bindable/bindable-expressions.d.ts +0 -7
- package/ui/core/bindable/bindable-expressions.js +0 -255
- package/ui/core/bindable/bindable-expressions.js.map +0 -1
- package/ui/core/bindable/bindable-resources.d.ts +0 -2
- package/ui/core/bindable/bindable-resources.js +0 -8
- package/ui/core/bindable/bindable-resources.js.map +0 -1
- package/ui/core/bindable/index.d.ts +0 -89
- package/ui/core/bindable/index.js +0 -556
- package/ui/core/bindable/index.js.map +0 -1
- package/ui/core/control-state-change/index.android.d.ts +0 -6
- package/ui/core/control-state-change/index.android.js +0 -8
- package/ui/core/control-state-change/index.android.js.map +0 -1
- package/ui/core/control-state-change/index.ios.d.ts +0 -14
- package/ui/core/control-state-change/index.ios.js +0 -61
- package/ui/core/control-state-change/index.ios.js.map +0 -1
- package/ui/core/properties/index.d.ts +0 -178
- package/ui/core/properties/index.js +0 -1133
- package/ui/core/properties/index.js.map +0 -1
- package/ui/core/view/index.android.d.ts +0 -98
- package/ui/core/view/index.android.js +0 -1206
- package/ui/core/view/index.android.js.map +0 -1
- package/ui/core/view/index.ios.d.ts +0 -95
- package/ui/core/view/index.ios.js +0 -1015
- package/ui/core/view/index.ios.js.map +0 -1
- package/ui/core/view/view-common.d.ts +0 -288
- package/ui/core/view/view-common.js +0 -1100
- package/ui/core/view/view-common.js.map +0 -1
- package/ui/core/view/view-helper/index.android.d.ts +0 -9
- package/ui/core/view/view-helper/index.android.js +0 -56
- package/ui/core/view/view-helper/index.android.js.map +0 -1
- package/ui/core/view/view-helper/index.ios.d.ts +0 -67
- package/ui/core/view/view-helper/index.ios.js +0 -329
- package/ui/core/view/view-helper/index.ios.js.map +0 -1
- package/ui/core/view/view-helper/view-helper-common.d.ts +0 -11
- package/ui/core/view/view-helper/view-helper-common.js +0 -157
- package/ui/core/view/view-helper/view-helper-common.js.map +0 -1
- package/ui/core/view-base/index.js +0 -1166
- package/ui/core/view-base/index.js.map +0 -1
- package/ui/core/weak-event-listener/index.js +0 -123
- package/ui/core/weak-event-listener/index.js.map +0 -1
- package/ui/date-picker/date-picker-common.d.ts +0 -27
- package/ui/date-picker/date-picker-common.js +0 -81
- package/ui/date-picker/date-picker-common.js.map +0 -1
- package/ui/date-picker/index.android.d.ts +0 -11
- package/ui/date-picker/index.android.js +0 -131
- package/ui/date-picker/index.android.js.map +0 -1
- package/ui/date-picker/index.ios.d.ts +0 -10
- package/ui/date-picker/index.ios.js +0 -165
- package/ui/date-picker/index.ios.js.map +0 -1
- package/ui/dialogs/dialogs-common.d.ts +0 -215
- package/ui/dialogs/dialogs-common.js +0 -167
- package/ui/dialogs/dialogs-common.js.map +0 -1
- package/ui/dialogs/index.android.d.ts +0 -20
- package/ui/dialogs/index.android.js +0 -329
- package/ui/dialogs/index.android.js.map +0 -1
- package/ui/dialogs/index.ios.d.ts +0 -17
- package/ui/dialogs/index.ios.js +0 -329
- package/ui/dialogs/index.ios.js.map +0 -1
- package/ui/editable-text-base/editable-text-base-common.d.ts +0 -39
- package/ui/editable-text-base/editable-text-base-common.js +0 -82
- package/ui/editable-text-base/editable-text-base-common.js.map +0 -1
- package/ui/editable-text-base/index.android.d.ts +0 -26
- package/ui/editable-text-base/index.android.js +0 -505
- package/ui/editable-text-base/index.android.js.map +0 -1
- package/ui/editable-text-base/index.ios.d.ts +0 -10
- package/ui/editable-text-base/index.ios.js +0 -261
- package/ui/editable-text-base/index.ios.js.map +0 -1
- package/ui/embedding/index.android.d.ts +0 -4
- package/ui/embedding/index.android.js +0 -14
- package/ui/embedding/index.android.js.map +0 -1
- package/ui/embedding/index.ios.d.ts +0 -1
- package/ui/embedding/index.ios.js +0 -4
- package/ui/embedding/index.ios.js.map +0 -1
- package/ui/enums/enums.js +0 -6
- package/ui/enums/enums.js.map +0 -1
- package/ui/enums/index.js +0 -6
- package/ui/enums/index.js.map +0 -1
- package/ui/frame/activity.android.d.ts +0 -1
- package/ui/frame/activity.android.js +0 -110
- package/ui/frame/activity.android.js.map +0 -1
- package/ui/frame/callbacks/activity-callbacks.d.ts +0 -20
- package/ui/frame/callbacks/activity-callbacks.js +0 -301
- package/ui/frame/callbacks/activity-callbacks.js.map +0 -1
- package/ui/frame/callbacks/fragment-callbacks.d.ts +0 -19
- package/ui/frame/callbacks/fragment-callbacks.js +0 -273
- package/ui/frame/callbacks/fragment-callbacks.js.map +0 -1
- package/ui/frame/fragment.android.d.ts +0 -3
- package/ui/frame/fragment.android.js +0 -92
- package/ui/frame/fragment.android.js.map +0 -1
- package/ui/frame/fragment.ios.d.ts +0 -3
- package/ui/frame/fragment.ios.js +0 -4
- package/ui/frame/fragment.ios.js.map +0 -1
- package/ui/frame/fragment.transitions.android.d.ts +0 -36
- package/ui/frame/fragment.transitions.android.js +0 -591
- package/ui/frame/fragment.transitions.android.js.map +0 -1
- package/ui/frame/fragment.transitions.types.d.ts +0 -6
- package/ui/frame/fragment.transitions.types.js +0 -2
- package/ui/frame/fragment.transitions.types.js.map +0 -1
- package/ui/frame/frame-common.d.ts +0 -97
- package/ui/frame/frame-common.js +0 -673
- package/ui/frame/frame-common.js.map +0 -1
- package/ui/frame/frame-helpers.d.ts +0 -16
- package/ui/frame/frame-helpers.js +0 -19
- package/ui/frame/frame-helpers.js.map +0 -1
- package/ui/frame/frame-interfaces.d.ts +0 -95
- package/ui/frame/frame-interfaces.js +0 -7
- package/ui/frame/frame-interfaces.js.map +0 -1
- package/ui/frame/frame-stack.d.ts +0 -6
- package/ui/frame/frame-stack.js +0 -38
- package/ui/frame/frame-stack.js.map +0 -1
- package/ui/frame/index.android.d.ts +0 -65
- package/ui/frame/index.android.js +0 -685
- package/ui/frame/index.android.js.map +0 -1
- package/ui/frame/index.ios.d.ts +0 -57
- package/ui/frame/index.ios.js +0 -648
- package/ui/frame/index.ios.js.map +0 -1
- package/ui/gestures/gestures-common.d.ts +0 -279
- package/ui/gestures/gestures-common.js +0 -199
- package/ui/gestures/gestures-common.js.map +0 -1
- package/ui/gestures/index.android.d.ts +0 -21
- package/ui/gestures/index.android.js +0 -595
- package/ui/gestures/index.android.js.map +0 -1
- package/ui/gestures/index.ios.d.ts +0 -36
- package/ui/gestures/index.ios.js +0 -512
- package/ui/gestures/index.ios.js.map +0 -1
- package/ui/gestures/touch-manager.d.ts +0 -82
- package/ui/gestures/touch-manager.js +0 -269
- package/ui/gestures/touch-manager.js.map +0 -1
- package/ui/html-view/html-view-common.d.ts +0 -13
- package/ui/html-view/html-view-common.js +0 -35
- package/ui/html-view/html-view-common.js.map +0 -1
- package/ui/html-view/index.android.d.ts +0 -7
- package/ui/html-view/index.android.js +0 -86
- package/ui/html-view/index.android.js.map +0 -1
- package/ui/html-view/index.ios.d.ts +0 -11
- package/ui/html-view/index.ios.js +0 -103
- package/ui/html-view/index.ios.js.map +0 -1
- package/ui/image/image-common.d.ts +0 -43
- package/ui/image/image-common.js +0 -191
- package/ui/image/image-common.js.map +0 -1
- package/ui/image/index.android.d.ts +0 -13
- package/ui/image/index.android.js +0 -167
- package/ui/image/index.android.js.map +0 -1
- package/ui/image/index.ios.d.ts +0 -17
- package/ui/image/index.ios.js +0 -186
- package/ui/image/index.ios.js.map +0 -1
- package/ui/image/symbol-effects-common.d.ts +0 -36
- package/ui/image/symbol-effects-common.js +0 -35
- package/ui/image/symbol-effects-common.js.map +0 -1
- package/ui/image/symbol-effects.android.d.ts +0 -5
- package/ui/image/symbol-effects.android.js +0 -8
- package/ui/image/symbol-effects.android.js.map +0 -1
- package/ui/image/symbol-effects.ios.d.ts +0 -6
- package/ui/image/symbol-effects.ios.js +0 -79
- package/ui/image/symbol-effects.ios.js.map +0 -1
- package/ui/image-cache/image-cache-common.d.ts +0 -40
- package/ui/image-cache/image-cache-common.js +0 -176
- package/ui/image-cache/image-cache-common.js.map +0 -1
- package/ui/image-cache/index.android.d.ts +0 -11
- package/ui/image-cache/index.android.js +0 -76
- package/ui/image-cache/index.android.js.map +0 -1
- package/ui/image-cache/index.ios.d.ts +0 -11
- package/ui/image-cache/index.ios.js +0 -84
- package/ui/image-cache/index.ios.js.map +0 -1
- package/ui/index.d.ts +0 -78
- package/ui/index.js +0 -62
- package/ui/index.js.map +0 -1
- package/ui/label/index.android.d.ts +0 -11
- package/ui/label/index.android.js +0 -40
- package/ui/label/index.android.js.map +0 -1
- package/ui/label/index.ios.d.ts +0 -16
- package/ui/label/index.ios.js +0 -220
- package/ui/label/index.ios.js.map +0 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +0 -16
- package/ui/layouts/absolute-layout/absolute-layout-common.js +0 -70
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +0 -1
- package/ui/layouts/absolute-layout/index.android.d.ts +0 -6
- package/ui/layouts/absolute-layout/index.android.js +0 -26
- package/ui/layouts/absolute-layout/index.android.js.map +0 -1
- package/ui/layouts/absolute-layout/index.ios.d.ts +0 -10
- package/ui/layouts/absolute-layout/index.ios.js +0 -48
- package/ui/layouts/absolute-layout/index.ios.js.map +0 -1
- package/ui/layouts/dock-layout/dock-layout-common.d.ts +0 -14
- package/ui/layouts/dock-layout/dock-layout-common.js +0 -51
- package/ui/layouts/dock-layout/dock-layout-common.js.map +0 -1
- package/ui/layouts/dock-layout/index.android.d.ts +0 -6
- package/ui/layouts/dock-layout/index.android.js +0 -38
- package/ui/layouts/dock-layout/index.android.js.map +0 -1
- package/ui/layouts/dock-layout/index.ios.d.ts +0 -8
- package/ui/layouts/dock-layout/index.ios.js +0 -115
- package/ui/layouts/dock-layout/index.ios.js.map +0 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +0 -126
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +0 -402
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +0 -1
- package/ui/layouts/flexbox-layout/index.android.d.ts +0 -12
- package/ui/layouts/flexbox-layout/index.android.js +0 -133
- package/ui/layouts/flexbox-layout/index.android.js.map +0 -1
- package/ui/layouts/flexbox-layout/index.ios.d.ts +0 -44
- package/ui/layouts/flexbox-layout/index.ios.js +0 -1232
- package/ui/layouts/flexbox-layout/index.ios.js.map +0 -1
- package/ui/layouts/grid-layout/grid-layout-common.d.ts +0 -72
- package/ui/layouts/grid-layout/grid-layout-common.js +0 -323
- package/ui/layouts/grid-layout/grid-layout-common.js.map +0 -1
- package/ui/layouts/grid-layout/index.android.d.ts +0 -22
- package/ui/layouts/grid-layout/index.android.js +0 -117
- package/ui/layouts/grid-layout/index.android.js.map +0 -1
- package/ui/layouts/grid-layout/index.ios.d.ts +0 -28
- package/ui/layouts/grid-layout/index.ios.js +0 -777
- package/ui/layouts/grid-layout/index.ios.js.map +0 -1
- package/ui/layouts/index.js +0 -9
- package/ui/layouts/index.js.map +0 -1
- package/ui/layouts/layout-base-common.d.ts +0 -36
- package/ui/layouts/layout-base-common.js +0 -146
- package/ui/layouts/layout-base-common.js.map +0 -1
- package/ui/layouts/layout-base.android.d.ts +0 -4
- package/ui/layouts/layout-base.android.js +0 -44
- package/ui/layouts/layout-base.android.js.map +0 -1
- package/ui/layouts/layout-base.ios.d.ts +0 -10
- package/ui/layouts/layout-base.ios.js +0 -34
- package/ui/layouts/layout-base.ios.js.map +0 -1
- package/ui/layouts/root-layout/index.android.d.ts +0 -16
- package/ui/layouts/root-layout/index.android.js +0 -115
- package/ui/layouts/root-layout/index.android.js.map +0 -1
- package/ui/layouts/root-layout/index.ios.d.ts +0 -16
- package/ui/layouts/root-layout/index.ios.js +0 -96
- package/ui/layouts/root-layout/index.ios.js.map +0 -1
- package/ui/layouts/root-layout/root-layout-common.d.ts +0 -54
- package/ui/layouts/root-layout/root-layout-common.js +0 -394
- package/ui/layouts/root-layout/root-layout-common.js.map +0 -1
- package/ui/layouts/stack-layout/index.android.d.ts +0 -6
- package/ui/layouts/stack-layout/index.android.js +0 -11
- package/ui/layouts/stack-layout/index.android.js.map +0 -1
- package/ui/layouts/stack-layout/index.ios.d.ts +0 -10
- package/ui/layouts/stack-layout/index.ios.js +0 -151
- package/ui/layouts/stack-layout/index.ios.js.map +0 -1
- package/ui/layouts/stack-layout/stack-layout-common.d.ts +0 -8
- package/ui/layouts/stack-layout/stack-layout-common.js +0 -19
- package/ui/layouts/stack-layout/stack-layout-common.js.map +0 -1
- package/ui/layouts/wrap-layout/index.android.d.ts +0 -6
- package/ui/layouts/wrap-layout/index.android.js +0 -18
- package/ui/layouts/wrap-layout/index.android.js.map +0 -1
- package/ui/layouts/wrap-layout/index.ios.d.ts +0 -8
- package/ui/layouts/wrap-layout/index.ios.js +0 -170
- package/ui/layouts/wrap-layout/index.ios.js.map +0 -1
- package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +0 -15
- package/ui/layouts/wrap-layout/wrap-layout-common.js +0 -38
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +0 -1
- package/ui/list-picker/index.android.d.ts +0 -10
- package/ui/list-picker/index.android.js +0 -177
- package/ui/list-picker/index.android.js.map +0 -1
- package/ui/list-picker/index.ios.d.ts +0 -11
- package/ui/list-picker/index.ios.js +0 -99
- package/ui/list-picker/index.ios.js.map +0 -1
- package/ui/list-picker/list-picker-common.d.ts +0 -22
- package/ui/list-picker/list-picker-common.js +0 -77
- package/ui/list-picker/list-picker-common.js.map +0 -1
- package/ui/list-view/index.android.d.ts +0 -32
- package/ui/list-view/index.android.js +0 -359
- package/ui/list-view/index.android.js.map +0 -1
- package/ui/list-view/index.ios.d.ts +0 -45
- package/ui/list-view/index.ios.js +0 -456
- package/ui/list-view/index.ios.js.map +0 -1
- package/ui/list-view/list-view-common.d.ts +0 -66
- package/ui/list-view/list-view-common.js +0 -210
- package/ui/list-view/list-view-common.js.map +0 -1
- package/ui/page/index.android.d.ts +0 -13
- package/ui/page/index.android.js +0 -148
- package/ui/page/index.android.js.map +0 -1
- package/ui/page/index.ios.d.ts +0 -45
- package/ui/page/index.ios.js +0 -600
- package/ui/page/index.ios.js.map +0 -1
- package/ui/page/page-common.d.ts +0 -77
- package/ui/page/page-common.js +0 -186
- package/ui/page/page-common.js.map +0 -1
- package/ui/placeholder/index.android.d.ts +0 -12
- package/ui/placeholder/index.android.js +0 -21
- package/ui/placeholder/index.android.js.map +0 -1
- package/ui/placeholder/index.js +0 -16
- package/ui/placeholder/index.js.map +0 -1
- package/ui/placeholder/placeholder-common.d.ts +0 -12
- package/ui/placeholder/placeholder-common.js +0 -2
- package/ui/placeholder/placeholder-common.js.map +0 -1
- package/ui/progress/index.android.d.ts +0 -6
- package/ui/progress/index.android.js +0 -65
- package/ui/progress/index.android.js.map +0 -1
- package/ui/progress/index.ios.d.ts +0 -7
- package/ui/progress/index.ios.js +0 -45
- package/ui/progress/index.ios.js.map +0 -1
- package/ui/progress/progress-common.d.ts +0 -15
- package/ui/progress/progress-common.js +0 -34
- package/ui/progress/progress-common.js.map +0 -1
- package/ui/proxy-view-container/index.d.ts +0 -31
- package/ui/proxy-view-container/index.js +0 -244
- package/ui/proxy-view-container/index.js.map +0 -1
- package/ui/repeater/index.d.ts +0 -65
- package/ui/repeater/index.js +0 -219
- package/ui/repeater/index.js.map +0 -1
- package/ui/scroll-view/index.android.d.ts +0 -22
- package/ui/scroll-view/index.android.js +0 -157
- package/ui/scroll-view/index.android.js.map +0 -1
- package/ui/scroll-view/index.ios.d.ts +0 -23
- package/ui/scroll-view/index.ios.js +0 -174
- package/ui/scroll-view/index.ios.js.map +0 -1
- package/ui/scroll-view/scroll-view-common.d.ts +0 -32
- package/ui/scroll-view/scroll-view-common.js +0 -93
- package/ui/scroll-view/scroll-view-common.js.map +0 -1
- package/ui/search-bar/index.android.d.ts +0 -14
- package/ui/search-bar/index.android.js +0 -239
- package/ui/search-bar/index.android.js.map +0 -1
- package/ui/search-bar/index.ios.d.ts +0 -14
- package/ui/search-bar/index.ios.js +0 -195
- package/ui/search-bar/index.ios.js.map +0 -1
- package/ui/search-bar/search-bar-common.d.ts +0 -17
- package/ui/search-bar/search-bar-common.js +0 -37
- package/ui/search-bar/search-bar-common.js.map +0 -1
- package/ui/segmented-bar/index.android.d.ts +0 -21
- package/ui/segmented-bar/index.android.js +0 -283
- package/ui/segmented-bar/index.android.js.map +0 -1
- package/ui/segmented-bar/index.ios.d.ts +0 -15
- package/ui/segmented-bar/index.ios.js +0 -140
- package/ui/segmented-bar/index.ios.js.map +0 -1
- package/ui/segmented-bar/segmented-bar-common.d.ts +0 -37
- package/ui/segmented-bar/segmented-bar-common.js +0 -146
- package/ui/segmented-bar/segmented-bar-common.js.map +0 -1
- package/ui/slider/index.android.d.ts +0 -18
- package/ui/slider/index.android.js +0 -118
- package/ui/slider/index.android.js.map +0 -1
- package/ui/slider/index.ios.d.ts +0 -19
- package/ui/slider/index.ios.js +0 -145
- package/ui/slider/index.ios.js.map +0 -1
- package/ui/slider/slider-common.d.ts +0 -26
- package/ui/slider/slider-common.js +0 -68
- package/ui/slider/slider-common.js.map +0 -1
- package/ui/styling/background-common.d.ts +0 -78
- package/ui/styling/background-common.js +0 -222
- package/ui/styling/background-common.js.map +0 -1
- package/ui/styling/background.android.d.ts +0 -9
- package/ui/styling/background.android.js +0 -135
- package/ui/styling/background.android.js.map +0 -1
- package/ui/styling/background.ios.d.ts +0 -34
- package/ui/styling/background.ios.js +0 -1100
- package/ui/styling/background.ios.js.map +0 -1
- package/ui/styling/box-shadow.d.ts +0 -9
- package/ui/styling/box-shadow.js +0 -3
- package/ui/styling/box-shadow.js.map +0 -1
- package/ui/styling/converters.js +0 -41
- package/ui/styling/converters.js.map +0 -1
- package/ui/styling/css-animation-parser.d.ts +0 -14
- package/ui/styling/css-animation-parser.js +0 -188
- package/ui/styling/css-animation-parser.js.map +0 -1
- package/ui/styling/css-selector.d.ts +0 -270
- package/ui/styling/css-selector.js +0 -928
- package/ui/styling/css-selector.js.map +0 -1
- package/ui/styling/css-shadow.d.ts +0 -19
- package/ui/styling/css-shadow.js +0 -26
- package/ui/styling/css-shadow.js.map +0 -1
- package/ui/styling/css-stroke.d.ts +0 -12
- package/ui/styling/css-stroke.js +0 -19
- package/ui/styling/css-stroke.js.map +0 -1
- package/ui/styling/css-utils.d.ts +0 -7
- package/ui/styling/css-utils.js +0 -65
- package/ui/styling/css-utils.js.map +0 -1
- package/ui/styling/font-common.d.ts +0 -63
- package/ui/styling/font-common.js +0 -241
- package/ui/styling/font-common.js.map +0 -1
- package/ui/styling/font-interfaces.d.ts +0 -15
- package/ui/styling/font-interfaces.js +0 -2
- package/ui/styling/font-interfaces.js.map +0 -1
- package/ui/styling/font.android.d.ts +0 -8
- package/ui/styling/font.android.js +0 -146
- package/ui/styling/font.android.js.map +0 -1
- package/ui/styling/font.ios.d.ts +0 -12
- package/ui/styling/font.ios.js +0 -143
- package/ui/styling/font.ios.js.map +0 -1
- package/ui/styling/linear-gradient.d.ts +0 -13
- package/ui/styling/linear-gradient.js +0 -48
- package/ui/styling/linear-gradient.js.map +0 -1
- package/ui/styling/style/index.d.ts +0 -162
- package/ui/styling/style/index.js +0 -67
- package/ui/styling/style/index.js.map +0 -1
- package/ui/styling/style-properties.js +0 -1331
- package/ui/styling/style-properties.js.map +0 -1
- package/ui/styling/style-scope.js +0 -1017
- package/ui/styling/style-scope.js.map +0 -1
- package/ui/switch/index.android.d.ts +0 -11
- package/ui/switch/index.android.js +0 -111
- package/ui/switch/index.android.js.map +0 -1
- package/ui/switch/index.ios.d.ts +0 -14
- package/ui/switch/index.ios.js +0 -147
- package/ui/switch/index.ios.js.map +0 -1
- package/ui/switch/switch-common.d.ts +0 -12
- package/ui/switch/switch-common.js +0 -38
- package/ui/switch/switch-common.js.map +0 -1
- package/ui/tab-view/index.android.d.ts +0 -37
- package/ui/tab-view/index.android.js +0 -604
- package/ui/tab-view/index.android.js.map +0 -1
- package/ui/tab-view/index.ios.d.ts +0 -49
- package/ui/tab-view/index.ios.js +0 -583
- package/ui/tab-view/index.ios.js.map +0 -1
- package/ui/tab-view/tab-view-common.d.ts +0 -71
- package/ui/tab-view/tab-view-common.js +0 -263
- package/ui/tab-view/tab-view-common.js.map +0 -1
- package/ui/text-base/formatted-string.js +0 -163
- package/ui/text-base/formatted-string.js.map +0 -1
- package/ui/text-base/index.android.d.ts +0 -16
- package/ui/text-base/index.android.js +0 -500
- package/ui/text-base/index.android.js.map +0 -1
- package/ui/text-base/index.ios.d.ts +0 -30
- package/ui/text-base/index.ios.js +0 -569
- package/ui/text-base/index.ios.js.map +0 -1
- package/ui/text-base/span.js +0 -113
- package/ui/text-base/span.js.map +0 -1
- package/ui/text-base/text-base-common.d.ts +0 -98
- package/ui/text-base/text-base-common.js +0 -323
- package/ui/text-base/text-base-common.js.map +0 -1
- package/ui/text-field/index.android.d.ts +0 -7
- package/ui/text-field/index.android.js +0 -95
- package/ui/text-field/index.android.js.map +0 -1
- package/ui/text-field/index.ios.d.ts +0 -25
- package/ui/text-field/index.ios.js +0 -277
- package/ui/text-field/index.ios.js.map +0 -1
- package/ui/text-field/text-field-common.d.ts +0 -11
- package/ui/text-field/text-field-common.js +0 -25
- package/ui/text-field/text-field-common.js.map +0 -1
- package/ui/text-view/index.android.d.ts +0 -6
- package/ui/text-view/index.android.js +0 -19
- package/ui/text-view/index.android.js.map +0 -1
- package/ui/text-view/index.ios.d.ts +0 -24
- package/ui/text-view/index.ios.js +0 -366
- package/ui/text-view/index.ios.js.map +0 -1
- package/ui/text-view/text-view-common.d.ts +0 -6
- package/ui/text-view/text-view-common.js +0 -5
- package/ui/text-view/text-view-common.js.map +0 -1
- package/ui/time-picker/index.android.d.ts +0 -8
- package/ui/time-picker/index.android.js +0 -79
- package/ui/time-picker/index.android.js.map +0 -1
- package/ui/time-picker/index.ios.d.ts +0 -11
- package/ui/time-picker/index.ios.js +0 -138
- package/ui/time-picker/index.ios.js.map +0 -1
- package/ui/time-picker/time-picker-common.d.ts +0 -30
- package/ui/time-picker/time-picker-common.js +0 -175
- package/ui/time-picker/time-picker-common.js.map +0 -1
- package/ui/transition/fade-transition.android.d.ts +0 -4
- package/ui/transition/fade-transition.android.js +0 -28
- package/ui/transition/fade-transition.android.js.map +0 -1
- package/ui/transition/fade-transition.ios.d.ts +0 -17
- package/ui/transition/fade-transition.ios.js +0 -65
- package/ui/transition/fade-transition.ios.js.map +0 -1
- package/ui/transition/flip-transition.android.d.ts +0 -6
- package/ui/transition/flip-transition.android.js +0 -90
- package/ui/transition/flip-transition.android.js.map +0 -1
- package/ui/transition/index.android.d.ts +0 -19
- package/ui/transition/index.android.js +0 -37
- package/ui/transition/index.android.js.map +0 -1
- package/ui/transition/index.ios.d.ts +0 -14
- package/ui/transition/index.ios.js +0 -30
- package/ui/transition/index.ios.js.map +0 -1
- package/ui/transition/modal-transition.android.d.ts +0 -5
- package/ui/transition/modal-transition.android.js +0 -7
- package/ui/transition/modal-transition.android.js.map +0 -1
- package/ui/transition/modal-transition.ios.d.ts +0 -34
- package/ui/transition/modal-transition.ios.js +0 -182
- package/ui/transition/modal-transition.ios.js.map +0 -1
- package/ui/transition/page-transition.android.d.ts +0 -10
- package/ui/transition/page-transition.android.js +0 -305
- package/ui/transition/page-transition.android.js.map +0 -1
- package/ui/transition/page-transition.ios.d.ts +0 -35
- package/ui/transition/page-transition.ios.js +0 -199
- package/ui/transition/page-transition.ios.js.map +0 -1
- package/ui/transition/shared-transition-helper.android.d.ts +0 -9
- package/ui/transition/shared-transition-helper.android.js +0 -10
- package/ui/transition/shared-transition-helper.android.js.map +0 -1
- package/ui/transition/shared-transition-helper.ios.d.ts +0 -14
- package/ui/transition/shared-transition-helper.ios.js +0 -539
- package/ui/transition/shared-transition-helper.ios.js.map +0 -1
- package/ui/transition/shared-transition.d.ts +0 -271
- package/ui/transition/shared-transition.js +0 -233
- package/ui/transition/shared-transition.js.map +0 -1
- package/ui/transition/slide-transition.android.d.ts +0 -7
- package/ui/transition/slide-transition.android.js +0 -116
- package/ui/transition/slide-transition.android.js.map +0 -1
- package/ui/transition/slide-transition.ios.d.ts +0 -19
- package/ui/transition/slide-transition.ios.js +0 -95
- package/ui/transition/slide-transition.ios.js.map +0 -1
- package/ui/utils.android.d.ts +0 -5
- package/ui/utils.android.js +0 -16
- package/ui/utils.android.js.map +0 -1
- package/ui/utils.ios.d.ts +0 -12
- package/ui/utils.ios.js +0 -66
- package/ui/utils.ios.js.map +0 -1
- package/ui/web-view/index.android.d.ts +0 -17
- package/ui/web-view/index.android.js +0 -180
- package/ui/web-view/index.android.js.map +0 -1
- package/ui/web-view/index.ios.d.ts +0 -26
- package/ui/web-view/index.ios.js +0 -247
- package/ui/web-view/index.ios.js.map +0 -1
- package/ui/web-view/web-view-common.d.ts +0 -28
- package/ui/web-view/web-view-common.js +0 -75
- package/ui/web-view/web-view-common.js.map +0 -1
- package/ui/web-view/web-view-interfaces.d.ts +0 -12
- package/ui/web-view/web-view-interfaces.js +0 -2
- package/ui/web-view/web-view-interfaces.js.map +0 -1
- package/utils/android/index.d.ts +0 -21
- package/utils/android/index.js +0 -169
- package/utils/android/index.js.map +0 -1
- package/utils/common.d.ts +0 -65
- package/utils/common.js +0 -253
- package/utils/common.js.map +0 -1
- package/utils/constants.android.d.ts +0 -1
- package/utils/constants.android.js +0 -2
- package/utils/constants.android.js.map +0 -1
- package/utils/constants.ios.d.ts +0 -1
- package/utils/constants.ios.js +0 -2
- package/utils/constants.ios.js.map +0 -1
- package/utils/debug.js +0 -61
- package/utils/debug.js.map +0 -1
- package/utils/index.android.d.ts +0 -24
- package/utils/index.android.js +0 -177
- package/utils/index.android.js.map +0 -1
- package/utils/index.ios.d.ts +0 -19
- package/utils/index.ios.js +0 -75
- package/utils/index.ios.js.map +0 -1
- package/utils/ios/index.d.ts +0 -39
- package/utils/ios/index.js +0 -257
- package/utils/ios/index.js.map +0 -1
- package/utils/layout-helper/index.android.d.ts +0 -24
- package/utils/layout-helper/index.android.js +0 -77
- package/utils/layout-helper/index.android.js.map +0 -1
- package/utils/layout-helper/index.ios.d.ts +0 -24
- package/utils/layout-helper/index.ios.js +0 -64
- package/utils/layout-helper/index.ios.js.map +0 -1
- package/utils/layout-helper/layout-helper-common.d.ts +0 -14
- package/utils/layout-helper/layout-helper-common.js +0 -57
- package/utils/layout-helper/layout-helper-common.js.map +0 -1
- package/utils/lazy.js +0 -5
- package/utils/lazy.js.map +0 -1
- package/utils/macrotask-scheduler.js +0 -26
- package/utils/macrotask-scheduler.js.map +0 -1
- package/utils/mainthread-helper.android.d.ts +0 -3
- package/utils/mainthread-helper.android.js +0 -28
- package/utils/mainthread-helper.android.js.map +0 -1
- package/utils/mainthread-helper.ios.d.ts +0 -3
- package/utils/mainthread-helper.ios.js +0 -17
- package/utils/mainthread-helper.ios.js.map +0 -1
- package/utils/module-merge.d.ts +0 -1
- package/utils/module-merge.js +0 -8
- package/utils/module-merge.js.map +0 -1
- package/utils/native-helper.android.d.ts +0 -10
- package/utils/native-helper.android.js +0 -139
- package/utils/native-helper.android.js.map +0 -1
- package/utils/native-helper.ios.d.ts +0 -10
- package/utils/native-helper.ios.js +0 -91
- package/utils/native-helper.ios.js.map +0 -1
- package/utils/number-utils.d.ts +0 -19
- package/utils/number-utils.js +0 -37
- package/utils/number-utils.js.map +0 -1
- package/utils/platform-check.d.ts +0 -4
- package/utils/platform-check.js +0 -21
- package/utils/platform-check.js.map +0 -1
- package/utils/types.js +0 -104
- package/utils/types.js.map +0 -1
- package/wgc/atob.d.ts +0 -1
- package/wgc/atob.js +0 -9
- package/wgc/atob.js.map +0 -1
- package/wgc/btoa.d.ts +0 -1
- package/wgc/btoa.js +0 -9
- package/wgc/btoa.js.map +0 -1
- package/wgc/crypto/SubtleCrypto.d.ts +0 -63
- package/wgc/crypto/SubtleCrypto.js +0 -551
- package/wgc/crypto/SubtleCrypto.js.map +0 -1
- package/wgc/crypto/index.d.ts +0 -8
- package/wgc/crypto/index.js +0 -31
- package/wgc/crypto/index.js.map +0 -1
- package/wgc/index.d.ts +0 -2
- package/wgc/index.js +0 -3
- package/wgc/index.js.map +0 -1
- package/xhr/index.d.ts +0 -107
- package/xhr/index.js +0 -472
- package/xhr/index.js.map +0 -1
- package/xml/index.js.map +0 -1
|
@@ -1,906 +0,0 @@
|
|
|
1
|
-
// Requires
|
|
2
|
-
import { AnimationBase, Properties, CubicBezierAnimationCurve } from './animation-common';
|
|
3
|
-
import { Trace } from '../../trace';
|
|
4
|
-
import { rotateProperty, rotateXProperty, rotateYProperty, translateXProperty, translateYProperty, scaleXProperty, scaleYProperty, heightProperty, widthProperty, PercentLength } from '../styling/style-properties';
|
|
5
|
-
import { ios as iosBackground } from '../styling/background';
|
|
6
|
-
import { ios as iosViewUtils } from '../utils';
|
|
7
|
-
import { Screen } from '../../platform';
|
|
8
|
-
import { Color } from '../../color';
|
|
9
|
-
import { applyRotateTransform } from '../../utils/ios';
|
|
10
|
-
export * from './animation-common';
|
|
11
|
-
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
|
|
12
|
-
const _transform = '_transform';
|
|
13
|
-
const _skip = '_skip';
|
|
14
|
-
class AnimationInfo {
|
|
15
|
-
}
|
|
16
|
-
export function applyAnimationProperty(styleOrView, property, value, setKeyFrame) {
|
|
17
|
-
styleOrView[setKeyFrame && property['keyframe'] ? property['keyframe'] : property.name] = value;
|
|
18
|
-
}
|
|
19
|
-
var AnimationDelegateImpl = /** @class */ (function (_super) {
|
|
20
|
-
__extends(AnimationDelegateImpl, _super);
|
|
21
|
-
function AnimationDelegateImpl() {
|
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
-
}
|
|
24
|
-
AnimationDelegateImpl.initWithFinishedCallback = function (animation, propertyAnimation) {
|
|
25
|
-
var delegate = AnimationDelegateImpl.new();
|
|
26
|
-
delegate._animation = animation;
|
|
27
|
-
delegate._propertyAnimation = propertyAnimation;
|
|
28
|
-
return delegate;
|
|
29
|
-
};
|
|
30
|
-
AnimationDelegateImpl.prototype.animationDidStart = function (anim) {
|
|
31
|
-
var _a;
|
|
32
|
-
var value = this._propertyAnimation.value;
|
|
33
|
-
var animation = (_a = this._animation) === null || _a === void 0 ? void 0 : _a.get();
|
|
34
|
-
var setKeyFrame = (animation === null || animation === void 0 ? void 0 : animation.valueSource) === 'keyframe';
|
|
35
|
-
var targetStyle = this._propertyAnimation.target.style;
|
|
36
|
-
this._propertyAnimation.target._suspendPresentationLayerUpdates();
|
|
37
|
-
switch (this._propertyAnimation.propertyName) {
|
|
38
|
-
case Properties.rotate:
|
|
39
|
-
applyAnimationProperty(targetStyle, rotateXProperty, value.x, setKeyFrame);
|
|
40
|
-
applyAnimationProperty(targetStyle, rotateYProperty, value.y, setKeyFrame);
|
|
41
|
-
applyAnimationProperty(targetStyle, rotateProperty, value.z, setKeyFrame);
|
|
42
|
-
break;
|
|
43
|
-
case Properties.translate:
|
|
44
|
-
applyAnimationProperty(targetStyle, translateXProperty, value.x, setKeyFrame);
|
|
45
|
-
applyAnimationProperty(targetStyle, translateYProperty, value.y, setKeyFrame);
|
|
46
|
-
break;
|
|
47
|
-
case Properties.scale:
|
|
48
|
-
applyAnimationProperty(targetStyle, scaleXProperty, value.x || 1e-6, setKeyFrame);
|
|
49
|
-
applyAnimationProperty(targetStyle, scaleYProperty, value.y || 1e-6, setKeyFrame);
|
|
50
|
-
break;
|
|
51
|
-
case _transform: {
|
|
52
|
-
var translateValue = value[Properties.rotate];
|
|
53
|
-
if (translateValue !== undefined) {
|
|
54
|
-
applyAnimationProperty(targetStyle, translateXProperty, translateValue.x, setKeyFrame);
|
|
55
|
-
applyAnimationProperty(targetStyle, translateYProperty, translateValue.y, setKeyFrame);
|
|
56
|
-
}
|
|
57
|
-
var rotateValue = value[Properties.rotate];
|
|
58
|
-
if (rotateValue !== undefined) {
|
|
59
|
-
applyAnimationProperty(targetStyle, rotateXProperty, rotateValue.x, setKeyFrame);
|
|
60
|
-
applyAnimationProperty(targetStyle, rotateYProperty, rotateValue.y, setKeyFrame);
|
|
61
|
-
applyAnimationProperty(targetStyle, rotateProperty, rotateValue.z, setKeyFrame);
|
|
62
|
-
}
|
|
63
|
-
var scaleValue = value[Properties.scale];
|
|
64
|
-
if (scaleValue !== undefined) {
|
|
65
|
-
var x = scaleValue.x;
|
|
66
|
-
var y = scaleValue.y;
|
|
67
|
-
applyAnimationProperty(targetStyle, scaleXProperty, scaleValue.x || 1e-6, setKeyFrame);
|
|
68
|
-
applyAnimationProperty(targetStyle, scaleYProperty, scaleValue.y || 1e-6, setKeyFrame);
|
|
69
|
-
}
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
default: {
|
|
73
|
-
var property = this._propertyAnimation.property;
|
|
74
|
-
if (property) {
|
|
75
|
-
applyAnimationProperty(targetStyle, property, value, setKeyFrame);
|
|
76
|
-
}
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
this._propertyAnimation.target._resumePresentationLayerUpdates();
|
|
81
|
-
};
|
|
82
|
-
AnimationDelegateImpl.prototype.animationDidStopFinished = function (anim, finished) {
|
|
83
|
-
var _a;
|
|
84
|
-
var animation = (_a = this._animation) === null || _a === void 0 ? void 0 : _a.get();
|
|
85
|
-
if (animation) {
|
|
86
|
-
animation.animationFinishedCallback(!finished);
|
|
87
|
-
}
|
|
88
|
-
if (finished && this.nextAnimation) {
|
|
89
|
-
this.nextAnimation();
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
// The CAAnimationDelegate protocol has been introduced in the iOS 10 SDK
|
|
93
|
-
AnimationDelegateImpl.ObjCProtocols = global.CAAnimationDelegate ? [global.CAAnimationDelegate] : [];
|
|
94
|
-
return AnimationDelegateImpl;
|
|
95
|
-
}(NSObject));
|
|
96
|
-
export function _resolveAnimationCurve(curve) {
|
|
97
|
-
switch (curve) {
|
|
98
|
-
case 'easeIn':
|
|
99
|
-
return CAMediaTimingFunction.functionWithName(kCAMediaTimingFunctionEaseIn);
|
|
100
|
-
case 'easeOut':
|
|
101
|
-
return CAMediaTimingFunction.functionWithName(kCAMediaTimingFunctionEaseOut);
|
|
102
|
-
case 'easeInOut':
|
|
103
|
-
return CAMediaTimingFunction.functionWithName(kCAMediaTimingFunctionEaseInEaseOut);
|
|
104
|
-
case 'linear':
|
|
105
|
-
return CAMediaTimingFunction.functionWithName(kCAMediaTimingFunctionLinear);
|
|
106
|
-
case 'spring':
|
|
107
|
-
return curve;
|
|
108
|
-
case 'ease':
|
|
109
|
-
return CAMediaTimingFunction.functionWithControlPoints(0.25, 0.1, 0.25, 1.0);
|
|
110
|
-
default:
|
|
111
|
-
if (curve instanceof CAMediaTimingFunction) {
|
|
112
|
-
return curve;
|
|
113
|
-
}
|
|
114
|
-
else if (curve instanceof CubicBezierAnimationCurve) {
|
|
115
|
-
const animationCurve = curve;
|
|
116
|
-
return CAMediaTimingFunction.functionWithControlPoints(animationCurve.x1, animationCurve.y1, animationCurve.x2, animationCurve.y2);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
console.error(`Invalid animation curve: ${curve}`);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
export class Animation extends AnimationBase {
|
|
124
|
-
get valueSource() {
|
|
125
|
-
return this._valueSource;
|
|
126
|
-
}
|
|
127
|
-
constructor(animationDefinitions, playSequentially) {
|
|
128
|
-
super(animationDefinitions, playSequentially);
|
|
129
|
-
this._wasCancelled = false;
|
|
130
|
-
this.usePropertyAnimator = false;
|
|
131
|
-
this._valueSource = 'animation';
|
|
132
|
-
if (animationDefinitions.length > 0 && animationDefinitions[0].valueSource !== undefined) {
|
|
133
|
-
this._valueSource = animationDefinitions[0].valueSource;
|
|
134
|
-
}
|
|
135
|
-
if (!playSequentially) {
|
|
136
|
-
if (Trace.isEnabled()) {
|
|
137
|
-
Trace.write('Non-merged Property Animations: ' + this._propertyAnimations.length, Trace.categories.Animation);
|
|
138
|
-
}
|
|
139
|
-
this._mergedPropertyAnimations = Animation._mergeAffineTransformAnimations(this._propertyAnimations);
|
|
140
|
-
if (Trace.isEnabled()) {
|
|
141
|
-
Trace.write('Merged Property Animations: ' + this._mergedPropertyAnimations.length, Trace.categories.Animation);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
this._mergedPropertyAnimations = this._propertyAnimations;
|
|
146
|
-
}
|
|
147
|
-
this._iOSAnimationFunction = this._createiOSAnimationFunction(this._mergedPropertyAnimations, 0, this._playSequentially);
|
|
148
|
-
}
|
|
149
|
-
animationFinishedCallback(cancelled) {
|
|
150
|
-
if (this._playSequentially) {
|
|
151
|
-
// This function will be called by the last animation when done or by another animation if the user cancels them halfway through.
|
|
152
|
-
if (cancelled) {
|
|
153
|
-
this._rejectAnimationFinishedPromise();
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
this._resolveAnimationFinishedPromise();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
// This callback will be called by each INDIVIDUAL animation when it finishes or is cancelled.
|
|
161
|
-
if (cancelled) {
|
|
162
|
-
this._cancelledAnimations++;
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
this._finishedAnimations++;
|
|
166
|
-
}
|
|
167
|
-
if (this._cancelledAnimations > 0 && this._cancelledAnimations + this._finishedAnimations === this._mergedPropertyAnimations.length) {
|
|
168
|
-
if (Trace.isEnabled()) {
|
|
169
|
-
Trace.write(this._cancelledAnimations + ' animations cancelled.', Trace.categories.Animation);
|
|
170
|
-
}
|
|
171
|
-
this._rejectAnimationFinishedPromise();
|
|
172
|
-
}
|
|
173
|
-
else if (this._finishedAnimations === this._mergedPropertyAnimations.length) {
|
|
174
|
-
if (Trace.isEnabled()) {
|
|
175
|
-
Trace.write(this._finishedAnimations + ' animations finished.', Trace.categories.Animation);
|
|
176
|
-
}
|
|
177
|
-
this._resolveAnimationFinishedPromise();
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
play() {
|
|
182
|
-
if (this.isPlaying) {
|
|
183
|
-
return this._rejectAlreadyPlaying();
|
|
184
|
-
}
|
|
185
|
-
const animationFinishedPromise = super.play();
|
|
186
|
-
this._wasCancelled = false;
|
|
187
|
-
this._finishedAnimations = 0;
|
|
188
|
-
this._cancelledAnimations = 0;
|
|
189
|
-
this._iOSAnimationFunction();
|
|
190
|
-
return animationFinishedPromise;
|
|
191
|
-
}
|
|
192
|
-
cancel() {
|
|
193
|
-
if (!this.isPlaying) {
|
|
194
|
-
Trace.write('Animation is not currently playing.', Trace.categories.Animation, Trace.messageType.warn);
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
this._wasCancelled = true;
|
|
198
|
-
if (this._mergedPropertyAnimations) {
|
|
199
|
-
for (let i = 0; i < this._mergedPropertyAnimations.length; i++) {
|
|
200
|
-
const propertyAnimation = this._mergedPropertyAnimations[i];
|
|
201
|
-
if (propertyAnimation) {
|
|
202
|
-
if (propertyAnimation.target?.nativeViewProtected) {
|
|
203
|
-
const nativeView = propertyAnimation.target.nativeViewProtected;
|
|
204
|
-
if (nativeView.layer.mask) {
|
|
205
|
-
nativeView.layer.mask.removeAllAnimations();
|
|
206
|
-
}
|
|
207
|
-
nativeView.layer.removeAllAnimations();
|
|
208
|
-
// Gradient background animations
|
|
209
|
-
if (nativeView.gradientLayer) {
|
|
210
|
-
nativeView.gradientLayer.removeAllAnimations();
|
|
211
|
-
}
|
|
212
|
-
// Border animations
|
|
213
|
-
if (nativeView.borderLayer) {
|
|
214
|
-
if (nativeView.borderLayer.mask) {
|
|
215
|
-
nativeView.borderLayer.mask.removeAllAnimations();
|
|
216
|
-
}
|
|
217
|
-
const borderLayers = nativeView.borderLayer.sublayers;
|
|
218
|
-
if (borderLayers?.count) {
|
|
219
|
-
for (let i = 0, count = borderLayers.count; i < count; i++) {
|
|
220
|
-
borderLayers[i].removeAllAnimations();
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
nativeView.borderLayer.removeAllAnimations();
|
|
224
|
-
}
|
|
225
|
-
// Shadow animations
|
|
226
|
-
if (nativeView.outerShadowContainerLayer) {
|
|
227
|
-
if (nativeView.outerShadowContainerLayer.mask) {
|
|
228
|
-
nativeView.outerShadowContainerLayer.mask.removeAllAnimations();
|
|
229
|
-
}
|
|
230
|
-
const outerShadowLayers = nativeView.outerShadowContainerLayer.sublayers;
|
|
231
|
-
if (outerShadowLayers?.count) {
|
|
232
|
-
for (let i = 0, count = outerShadowLayers.count; i < count; i++) {
|
|
233
|
-
const shadowLayer = outerShadowLayers[i];
|
|
234
|
-
if (shadowLayer.mask) {
|
|
235
|
-
shadowLayer.mask.removeAllAnimations();
|
|
236
|
-
}
|
|
237
|
-
shadowLayer.removeAllAnimations();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
nativeView.outerShadowContainerLayer.removeAllAnimations();
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
if (propertyAnimation._propertyResetCallback) {
|
|
244
|
-
propertyAnimation._propertyResetCallback(propertyAnimation._originalValue, this._valueSource);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
_resolveAnimationCurve(curve) {
|
|
251
|
-
return _resolveAnimationCurve(curve);
|
|
252
|
-
}
|
|
253
|
-
_createiOSAnimationFunction(propertyAnimations, index, playSequentially) {
|
|
254
|
-
return (cancelled) => {
|
|
255
|
-
if (cancelled) {
|
|
256
|
-
if (Trace.isEnabled()) {
|
|
257
|
-
Trace.write('Animation ' + (index - 1).toString() + ' was cancelled. Will skip the rest of animations and call finishedCallback(true).', Trace.categories.Animation);
|
|
258
|
-
}
|
|
259
|
-
this.animationFinishedCallback(cancelled);
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
this._createNativeUIViewAnimation(propertyAnimations, index, playSequentially);
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
_getNativeAnimationArguments(animation, duration, delay, repeatCount, useCABasicAnimation = false) {
|
|
266
|
-
const view = animation.target;
|
|
267
|
-
const style = view.style;
|
|
268
|
-
const nativeView = view.nativeViewProtected;
|
|
269
|
-
const parent = view.parent;
|
|
270
|
-
let propertyNameToAnimate = animation.propertyName;
|
|
271
|
-
let subPropertyNameToAnimate;
|
|
272
|
-
let toValue = animation.value;
|
|
273
|
-
let fromValue;
|
|
274
|
-
const setKeyFrame = this._valueSource === 'keyframe';
|
|
275
|
-
if (nativeView) {
|
|
276
|
-
switch (animation.propertyName) {
|
|
277
|
-
case Properties.rotate:
|
|
278
|
-
animation._originalValue = {
|
|
279
|
-
x: view.rotateX,
|
|
280
|
-
y: view.rotateY,
|
|
281
|
-
z: view.rotate,
|
|
282
|
-
};
|
|
283
|
-
animation._propertyResetCallback = (value) => {
|
|
284
|
-
applyAnimationProperty(style, rotateXProperty, value.x, setKeyFrame);
|
|
285
|
-
applyAnimationProperty(style, rotateYProperty, value.y, setKeyFrame);
|
|
286
|
-
applyAnimationProperty(style, rotateProperty, value.z, setKeyFrame);
|
|
287
|
-
};
|
|
288
|
-
propertyNameToAnimate = 'transform.rotation';
|
|
289
|
-
subPropertyNameToAnimate = ['x', 'y', 'z'];
|
|
290
|
-
fromValue = {
|
|
291
|
-
x: nativeView.layer.valueForKeyPath('transform.rotation.x'),
|
|
292
|
-
y: nativeView.layer.valueForKeyPath('transform.rotation.y'),
|
|
293
|
-
z: nativeView.layer.valueForKeyPath('transform.rotation.z'),
|
|
294
|
-
};
|
|
295
|
-
if (animation.target.rotateX !== undefined && animation.target.rotateX !== 0 && Math.floor(toValue / 360) - toValue / 360 === 0) {
|
|
296
|
-
fromValue.x = (animation.target.rotateX * Math.PI) / 180;
|
|
297
|
-
}
|
|
298
|
-
if (animation.target.rotateY !== undefined && animation.target.rotateY !== 0 && Math.floor(toValue / 360) - toValue / 360 === 0) {
|
|
299
|
-
fromValue.y = (animation.target.rotateY * Math.PI) / 180;
|
|
300
|
-
}
|
|
301
|
-
if (animation.target.rotate !== undefined && animation.target.rotate !== 0 && Math.floor(toValue / 360) - toValue / 360 === 0) {
|
|
302
|
-
fromValue.z = (animation.target.rotate * Math.PI) / 180;
|
|
303
|
-
}
|
|
304
|
-
// Respect only value.z for back-compat until 3D rotations are implemented
|
|
305
|
-
toValue = {
|
|
306
|
-
x: (toValue.x * Math.PI) / 180,
|
|
307
|
-
y: (toValue.y * Math.PI) / 180,
|
|
308
|
-
z: (toValue.z * Math.PI) / 180,
|
|
309
|
-
};
|
|
310
|
-
break;
|
|
311
|
-
case Properties.translate:
|
|
312
|
-
animation._originalValue = {
|
|
313
|
-
x: view.translateX,
|
|
314
|
-
y: view.translateY,
|
|
315
|
-
};
|
|
316
|
-
animation._propertyResetCallback = (value, valueSource) => {
|
|
317
|
-
applyAnimationProperty(style, translateXProperty, value.x, setKeyFrame);
|
|
318
|
-
applyAnimationProperty(style, translateYProperty, value.y, setKeyFrame);
|
|
319
|
-
};
|
|
320
|
-
propertyNameToAnimate = 'transform';
|
|
321
|
-
fromValue = NSValue.valueWithCATransform3D(nativeView.layer.transform);
|
|
322
|
-
toValue = NSValue.valueWithCATransform3D(CATransform3DTranslate(nativeView.layer.transform, toValue.x, toValue.y, 0));
|
|
323
|
-
break;
|
|
324
|
-
case Properties.scale:
|
|
325
|
-
toValue.x = toValue.x || 1e-6;
|
|
326
|
-
toValue.y = toValue.y || 1e-6;
|
|
327
|
-
animation._originalValue = { x: view.scaleX, y: view.scaleY };
|
|
328
|
-
animation._propertyResetCallback = (value, valueSource) => {
|
|
329
|
-
applyAnimationProperty(style, scaleXProperty, value.x, setKeyFrame);
|
|
330
|
-
applyAnimationProperty(style, scaleYProperty, value.y, setKeyFrame);
|
|
331
|
-
};
|
|
332
|
-
propertyNameToAnimate = 'transform';
|
|
333
|
-
fromValue = NSValue.valueWithCATransform3D(nativeView.layer.transform);
|
|
334
|
-
toValue = NSValue.valueWithCATransform3D(CATransform3DScale(nativeView.layer.transform, toValue.x, toValue.y, 1));
|
|
335
|
-
break;
|
|
336
|
-
case _transform:
|
|
337
|
-
fromValue = NSValue.valueWithCATransform3D(nativeView.layer.transform);
|
|
338
|
-
animation._originalValue = {
|
|
339
|
-
xs: view.scaleX,
|
|
340
|
-
ys: view.scaleY,
|
|
341
|
-
xt: view.translateX,
|
|
342
|
-
yt: view.translateY,
|
|
343
|
-
rx: view.rotateX,
|
|
344
|
-
ry: view.rotateY,
|
|
345
|
-
rz: view.rotate,
|
|
346
|
-
};
|
|
347
|
-
animation._propertyResetCallback = (value, valueSource) => {
|
|
348
|
-
applyAnimationProperty(style, translateXProperty, value.xt, setKeyFrame);
|
|
349
|
-
applyAnimationProperty(style, translateYProperty, value.yt, setKeyFrame);
|
|
350
|
-
applyAnimationProperty(style, scaleXProperty, value.xs, setKeyFrame);
|
|
351
|
-
applyAnimationProperty(style, scaleYProperty, value.ys, setKeyFrame);
|
|
352
|
-
applyAnimationProperty(style, rotateXProperty, value.rx, setKeyFrame);
|
|
353
|
-
applyAnimationProperty(style, rotateYProperty, value.ry, setKeyFrame);
|
|
354
|
-
applyAnimationProperty(style, rotateProperty, value.rz, setKeyFrame);
|
|
355
|
-
};
|
|
356
|
-
propertyNameToAnimate = 'transform';
|
|
357
|
-
toValue = NSValue.valueWithCATransform3D(Animation._createNativeAffineTransform(animation));
|
|
358
|
-
break;
|
|
359
|
-
case Properties.width:
|
|
360
|
-
case Properties.height: {
|
|
361
|
-
const direction = animation.propertyName;
|
|
362
|
-
const isHeight = direction === 'height';
|
|
363
|
-
if (!parent) {
|
|
364
|
-
throw new Error(`cannot animate ${direction} on root view`);
|
|
365
|
-
}
|
|
366
|
-
const parentExtent = isHeight ? parent.getMeasuredHeight() : parent.getMeasuredWidth();
|
|
367
|
-
const asNumber = PercentLength.toDevicePixels(PercentLength.parse(toValue), parentExtent, parentExtent) / Screen.mainScreen.scale;
|
|
368
|
-
const currentBounds = nativeView.layer.bounds;
|
|
369
|
-
const extentX = isHeight ? currentBounds.size.width : asNumber;
|
|
370
|
-
const extentY = isHeight ? asNumber : currentBounds.size.height;
|
|
371
|
-
fromValue = NSValue.valueWithCGRect(currentBounds);
|
|
372
|
-
toValue = NSValue.valueWithCGRect(CGRectMake(currentBounds.origin.x, currentBounds.origin.y, extentX, extentY));
|
|
373
|
-
if (useCABasicAnimation) {
|
|
374
|
-
animation._originalValue = view.height;
|
|
375
|
-
animation._propertyResetCallback = (value) => {
|
|
376
|
-
const prop = isHeight ? heightProperty : widthProperty;
|
|
377
|
-
applyAnimationProperty(style, prop, value, setKeyFrame);
|
|
378
|
-
};
|
|
379
|
-
break;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
// eslint-disable-next-line no-fallthrough
|
|
383
|
-
default:
|
|
384
|
-
if (animation.property) {
|
|
385
|
-
// animation._originalValue = view.backgroundColor;
|
|
386
|
-
animation._originalValue = animation.target.style[animation.property.name];
|
|
387
|
-
animation._propertyResetCallback = (value) => {
|
|
388
|
-
applyAnimationProperty(style, animation.property, value, setKeyFrame);
|
|
389
|
-
};
|
|
390
|
-
fromValue = animation._originalValue;
|
|
391
|
-
if (animation._originalValue instanceof Color) {
|
|
392
|
-
// animation._originalValue = animation._originalValue;
|
|
393
|
-
fromValue = animation._originalValue.ios.CGColor;
|
|
394
|
-
}
|
|
395
|
-
if (toValue instanceof Color) {
|
|
396
|
-
if (nativeView instanceof UILabel) {
|
|
397
|
-
nativeView.setValueForKey(UIColor.clearColor, 'backgroundColor');
|
|
398
|
-
}
|
|
399
|
-
toValue = toValue.ios.CGColor;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
else {
|
|
403
|
-
console.error(`Animating property '${propertyNameToAnimate}' is unsupported`);
|
|
404
|
-
}
|
|
405
|
-
break;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
return {
|
|
409
|
-
propertyNameToAnimate: propertyNameToAnimate,
|
|
410
|
-
fromValue: fromValue,
|
|
411
|
-
subPropertiesToAnimate: subPropertyNameToAnimate,
|
|
412
|
-
toValue: toValue,
|
|
413
|
-
duration,
|
|
414
|
-
delay,
|
|
415
|
-
repeatCount,
|
|
416
|
-
animationBlock: animation.animationBlock,
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
// protected _createNativeAnimation(propertyAnimations: Array<PropertyAnimation>, index: number, playSequentially: boolean) {
|
|
420
|
-
// const animationInfo = propertyAnimations[index];
|
|
421
|
-
// const args = this._getNativeAnimationArguments(animationInfo, true);
|
|
422
|
-
// const nativeView = <UIView>animationInfo.target.nativeViewProtected;
|
|
423
|
-
// let nativeAnimation;
|
|
424
|
-
// if (args.subPropertiesToAnimate) {
|
|
425
|
-
// nativeAnimation = this._createGroupAnimation(args, animationInfo);
|
|
426
|
-
// } else {
|
|
427
|
-
// nativeAnimation = this._createBasicAnimation(args, animationInfo);
|
|
428
|
-
// }
|
|
429
|
-
// const animationDelegate = AnimationDelegateImpl.initWithFinishedCallback(new WeakRef(this), animationInfo);
|
|
430
|
-
// nativeAnimation.setValueForKey(animationDelegate, 'delegate');
|
|
431
|
-
// if (nativeView?.layer) {
|
|
432
|
-
// nativeView.layer.addAnimationForKey(nativeAnimation, args.propertyNameToAnimate);
|
|
433
|
-
// }
|
|
434
|
-
// let callback = undefined;
|
|
435
|
-
// if (index + 1 < propertyAnimations.length) {
|
|
436
|
-
// callback = this._createiOSAnimationFunction(propertyAnimations, index + 1, playSequentially);
|
|
437
|
-
// if (!playSequentially) {
|
|
438
|
-
// callback();
|
|
439
|
-
// } else {
|
|
440
|
-
// animationDelegate.nextAnimation = callback;
|
|
441
|
-
// }
|
|
442
|
-
// }
|
|
443
|
-
// }
|
|
444
|
-
// protected _createGroupAnimation(args: AnimationInfo, animation: PropertyAnimation) {
|
|
445
|
-
// const groupAnimation = CAAnimationGroup.new();
|
|
446
|
-
// groupAnimation.duration = args.duration;
|
|
447
|
-
// if (args.repeatCount !== undefined) {
|
|
448
|
-
// groupAnimation.repeatCount = args.repeatCount;
|
|
449
|
-
// }
|
|
450
|
-
// if (args.delay !== undefined) {
|
|
451
|
-
// groupAnimation.beginTime = CACurrentMediaTime() + args.delay;
|
|
452
|
-
// }
|
|
453
|
-
// if (animation.curve !== undefined) {
|
|
454
|
-
// groupAnimation.timingFunction = animation.curve;
|
|
455
|
-
// }
|
|
456
|
-
// const animations = NSMutableArray.alloc<CAAnimation>().initWithCapacity(3);
|
|
457
|
-
// args.subPropertiesToAnimate.forEach((property) => {
|
|
458
|
-
// const basicAnimationArgs = { ...args, duration: undefined, repeatCount: undefined, delay: undefined, curve: undefined };
|
|
459
|
-
// basicAnimationArgs.propertyNameToAnimate = `${args.propertyNameToAnimate}.${property}`;
|
|
460
|
-
// basicAnimationArgs.fromValue = args.fromValue[property];
|
|
461
|
-
// basicAnimationArgs.toValue = args.toValue[property];
|
|
462
|
-
// const basicAnimation = this._createBasicAnimation(basicAnimationArgs, animation);
|
|
463
|
-
// animations.addObject(basicAnimation);
|
|
464
|
-
// });
|
|
465
|
-
// groupAnimation.animations = animations;
|
|
466
|
-
// return groupAnimation;
|
|
467
|
-
// }
|
|
468
|
-
_createBasicAnimation(args, curve, duration, delay, repeatCount) {
|
|
469
|
-
const basicAnimation = (curve === 'spring' ? CASpringAnimation : CABasicAnimation).animationWithKeyPath(args.propertyNameToAnimate);
|
|
470
|
-
basicAnimation['damping'] = 0.2;
|
|
471
|
-
basicAnimation.fromValue = args.fromValue;
|
|
472
|
-
basicAnimation.toValue = args.toValue;
|
|
473
|
-
basicAnimation.duration = duration;
|
|
474
|
-
if (repeatCount !== undefined) {
|
|
475
|
-
basicAnimation.repeatCount = args.repeatCount;
|
|
476
|
-
}
|
|
477
|
-
if (delay !== undefined) {
|
|
478
|
-
basicAnimation.beginTime = CACurrentMediaTime() + delay;
|
|
479
|
-
}
|
|
480
|
-
if (curve !== undefined) {
|
|
481
|
-
basicAnimation.timingFunction = curve;
|
|
482
|
-
}
|
|
483
|
-
return basicAnimation;
|
|
484
|
-
}
|
|
485
|
-
_createNativeUIViewAnimation(propertyAnimations, index, playSequentially) {
|
|
486
|
-
// const animationInfos = playSequentially ? [propertyAnimations[index]] : propertyAnimations;
|
|
487
|
-
// TODO: need to investigate why we cant handle all animations in one block
|
|
488
|
-
const animationInfos = [propertyAnimations[index]];
|
|
489
|
-
const firstAnimation = animationInfos[0];
|
|
490
|
-
const nativeView = firstAnimation.target.nativeViewProtected;
|
|
491
|
-
if (!nativeView) {
|
|
492
|
-
this._rejectAnimationFinishedPromise(new Error('trying to animate view without nativeView'));
|
|
493
|
-
return;
|
|
494
|
-
}
|
|
495
|
-
let callback = undefined;
|
|
496
|
-
let nextAnimation;
|
|
497
|
-
if (index + 1 < propertyAnimations.length) {
|
|
498
|
-
callback = this._createiOSAnimationFunction(propertyAnimations, index + 1, playSequentially);
|
|
499
|
-
if (!playSequentially) {
|
|
500
|
-
callback();
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
nextAnimation = callback;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
let delay = 0;
|
|
507
|
-
if (firstAnimation.delay) {
|
|
508
|
-
delay = firstAnimation.delay / 1000.0;
|
|
509
|
-
}
|
|
510
|
-
let duration = 0.3;
|
|
511
|
-
if (firstAnimation.duration !== undefined) {
|
|
512
|
-
duration = firstAnimation.duration / 1000.0;
|
|
513
|
-
}
|
|
514
|
-
let repeatCount = undefined;
|
|
515
|
-
if (firstAnimation.iterations !== undefined) {
|
|
516
|
-
if (firstAnimation.iterations === Number.POSITIVE_INFINITY) {
|
|
517
|
-
repeatCount = Number.MAX_VALUE;
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
repeatCount = firstAnimation.iterations;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
const animationOptions = 2 /* UIViewAnimationOptions.AllowUserInteraction */;
|
|
524
|
-
const animate = () => {
|
|
525
|
-
// only one animationBlock so we can test on first
|
|
526
|
-
if (firstAnimation.animationBlock) {
|
|
527
|
-
firstAnimation.animationBlock();
|
|
528
|
-
}
|
|
529
|
-
// only one animationBlock so we can test on first
|
|
530
|
-
if (repeatCount !== undefined) {
|
|
531
|
-
UIView.setAnimationRepeatCount(repeatCount);
|
|
532
|
-
}
|
|
533
|
-
const setKeyFrame = this._valueSource === 'keyframe';
|
|
534
|
-
animationInfos.forEach((animationInfo) => {
|
|
535
|
-
switch (animationInfo.propertyName) {
|
|
536
|
-
case _transform: {
|
|
537
|
-
// we use basicAnimation for transform.
|
|
538
|
-
// UIView.animate does not handle 360 rotate correctly
|
|
539
|
-
const args = this._getNativeAnimationArguments(animationInfo, duration, delay, repeatCount, true);
|
|
540
|
-
animationInfo._originalValue = nativeView.layer.transform;
|
|
541
|
-
const basicAnimation = this._createBasicAnimation({
|
|
542
|
-
...args,
|
|
543
|
-
}, curve, duration, delay, repeatCount);
|
|
544
|
-
// we set the destination value in animate to persist it after animation end
|
|
545
|
-
nativeView.layer.transform = args.toValue.CATransform3DValue;
|
|
546
|
-
// we start the animation
|
|
547
|
-
nativeView.layer.addAnimationForKey(basicAnimation, args.propertyNameToAnimate);
|
|
548
|
-
// nativeView.layer.setValueForKey(args.toValue, args.propertyNameToAnimate);
|
|
549
|
-
animationInfo._propertyResetCallback = function (value) {
|
|
550
|
-
nativeView.layer.transform = value;
|
|
551
|
-
};
|
|
552
|
-
// Shadow layers do not inherit from animating view layer
|
|
553
|
-
if (nativeView.outerShadowContainerLayer) {
|
|
554
|
-
// we set the destination value in animate to persist it after animation end
|
|
555
|
-
nativeView.outerShadowContainerLayer.transform = args.toValue.CATransform3DValue;
|
|
556
|
-
nativeView.outerShadowContainerLayer.addAnimationForKey(basicAnimation, args.propertyNameToAnimate);
|
|
557
|
-
}
|
|
558
|
-
break;
|
|
559
|
-
}
|
|
560
|
-
case Properties.width:
|
|
561
|
-
case Properties.height: {
|
|
562
|
-
const args = this._getNativeAnimationArguments(animationInfo, duration, delay, repeatCount);
|
|
563
|
-
// Resize background during animation
|
|
564
|
-
iosBackground.drawBackgroundVisualEffects(animationInfo.target);
|
|
565
|
-
this.animateNestedLayerSizeUsingBasicAnimation(nativeView, args.toValue.CGRectValue, animationInfo, args /* nativeAnimation */, curve, duration, delay, repeatCount);
|
|
566
|
-
applyAnimationProperty(animationInfo.target, animationInfo.property, animationInfo.value, setKeyFrame);
|
|
567
|
-
(animationInfo.target.page || animationInfo.target).nativeViewProtected.layoutIfNeeded();
|
|
568
|
-
break;
|
|
569
|
-
}
|
|
570
|
-
default:
|
|
571
|
-
applyAnimationProperty(animationInfo.target, animationInfo.property, animationInfo.value, setKeyFrame);
|
|
572
|
-
if (animationInfo.property.affectsLayout) {
|
|
573
|
-
(animationInfo.target.page || animationInfo.target).nativeViewProtected.layoutIfNeeded();
|
|
574
|
-
}
|
|
575
|
-
break;
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
};
|
|
579
|
-
let finished = false;
|
|
580
|
-
const startTime = Date.now();
|
|
581
|
-
let finishedCalledOnce = false;
|
|
582
|
-
const finish = (animationDidFinish = true) => {
|
|
583
|
-
if (finished || (animationDidFinish && !finishedCalledOnce && Date.now() - startTime < duration * 1000)) {
|
|
584
|
-
//ignoring finished. Called to soon
|
|
585
|
-
// will be called again byt the CATransaction completion block
|
|
586
|
-
finishedCalledOnce = true;
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
finished = true;
|
|
590
|
-
animationInfos.forEach((animationInfo) => {
|
|
591
|
-
if (animationDidFinish) {
|
|
592
|
-
// not needed anymore as we set the destination value in animate to persist it
|
|
593
|
-
// if (animationInfo.propertyName === _transform) {
|
|
594
|
-
// if (animationInfo.value[Properties.translate] !== undefined) {
|
|
595
|
-
// animationInfo.target.translateX = animationInfo.value[Properties.translate].x;
|
|
596
|
-
// animationInfo.target.translateY = animationInfo.value[Properties.translate].y;
|
|
597
|
-
// }
|
|
598
|
-
// if (animationInfo.value[Properties.rotate] !== undefined) {
|
|
599
|
-
// animationInfo.target.rotateX = animationInfo.value[Properties.rotate].x;
|
|
600
|
-
// animationInfo.target.rotateY = animationInfo.value[Properties.rotate].y;
|
|
601
|
-
// animationInfo.target.rotate = animationInfo.value[Properties.rotate].z;
|
|
602
|
-
// }
|
|
603
|
-
// if (animationInfo.value[Properties.scale] !== undefined) {
|
|
604
|
-
// animationInfo.target.scaleX = animationInfo.value[Properties.scale].x;
|
|
605
|
-
// animationInfo.target.scaleY = animationInfo.value[Properties.scale].y;
|
|
606
|
-
// }
|
|
607
|
-
// }
|
|
608
|
-
}
|
|
609
|
-
else {
|
|
610
|
-
if (animationInfo._propertyResetCallback) {
|
|
611
|
-
animationInfo._propertyResetCallback(animationInfo._originalValue);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
});
|
|
615
|
-
const cancelled = !animationDidFinish;
|
|
616
|
-
this.animationFinishedCallback(cancelled);
|
|
617
|
-
if (animationDidFinish && nextAnimation && !this._wasCancelled) {
|
|
618
|
-
nextAnimation();
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
const curve = firstAnimation.curve || CAMediaTimingFunction.functionWithName(kCAMediaTimingFunctionLinear);
|
|
622
|
-
const isSpring = curve === 'spring';
|
|
623
|
-
if (this.usePropertyAnimator) {
|
|
624
|
-
const finishCallback = (position) => finish(position === 0 /* UIViewAnimatingPosition.End */);
|
|
625
|
-
if (isSpring) {
|
|
626
|
-
const animator = UIViewPropertyAnimator.alloc().initWithDurationDampingRatioAnimations(duration, 0.2, null);
|
|
627
|
-
animator.manualHitTestingEnabled = true;
|
|
628
|
-
animator.addAnimations(animate);
|
|
629
|
-
animator.addCompletion(finishCallback);
|
|
630
|
-
// for seems to be the only way to use a timeout. It is not too bad but would be better to be handled natively
|
|
631
|
-
// for this example this breaks slow animations in debugger
|
|
632
|
-
if (delay) {
|
|
633
|
-
setTimeout(() => {
|
|
634
|
-
animator.startAnimation();
|
|
635
|
-
}, delay * 1000);
|
|
636
|
-
}
|
|
637
|
-
else {
|
|
638
|
-
animator.startAnimation();
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
else {
|
|
642
|
-
CATransaction.begin();
|
|
643
|
-
CATransaction.setAnimationTimingFunction(curve);
|
|
644
|
-
CATransaction.setAnimationDuration(duration);
|
|
645
|
-
CATransaction.setCompletionBlock(finish);
|
|
646
|
-
UIViewPropertyAnimator.runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion(duration, delay, animationOptions, animate, finishCallback);
|
|
647
|
-
CATransaction.commit();
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
else {
|
|
651
|
-
if (isSpring) {
|
|
652
|
-
CATransaction.begin();
|
|
653
|
-
CATransaction.setAnimationDuration(duration);
|
|
654
|
-
CATransaction.setCompletionBlock(finish);
|
|
655
|
-
UIView.animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(duration, delay, 0.2, 0, 196608 /* UIViewAnimationOptions.CurveLinear */ | animationOptions, animate, finish);
|
|
656
|
-
CATransaction.commit();
|
|
657
|
-
}
|
|
658
|
-
else {
|
|
659
|
-
CATransaction.begin();
|
|
660
|
-
CATransaction.setAnimationDuration(duration);
|
|
661
|
-
CATransaction.setAnimationTimingFunction(curve);
|
|
662
|
-
CATransaction.setCompletionBlock(finish);
|
|
663
|
-
UIView.animateWithDurationDelayOptionsAnimationsCompletion(duration, delay, animationOptions, animate, finish);
|
|
664
|
-
CATransaction.commit();
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
static _createNativeAffineTransform(animation) {
|
|
669
|
-
const value = animation.value;
|
|
670
|
-
let result = CATransform3DIdentity;
|
|
671
|
-
if (value[Properties.translate] !== undefined) {
|
|
672
|
-
const x = value[Properties.translate].x;
|
|
673
|
-
const y = value[Properties.translate].y;
|
|
674
|
-
result = CATransform3DTranslate(result, x, y, 0);
|
|
675
|
-
}
|
|
676
|
-
if (value[Properties.scale] !== undefined) {
|
|
677
|
-
const x = value[Properties.scale].x || 1e-6;
|
|
678
|
-
const y = value[Properties.scale].y || 1e-6;
|
|
679
|
-
result = CATransform3DScale(result, x, y, 1);
|
|
680
|
-
}
|
|
681
|
-
if (value[Properties.rotate] !== undefined) {
|
|
682
|
-
const x = value[Properties.rotate].x;
|
|
683
|
-
const y = value[Properties.rotate].y;
|
|
684
|
-
const z = value[Properties.rotate].z;
|
|
685
|
-
const perspective = animation.target.perspective || 300;
|
|
686
|
-
// Only set perspective if there is 3D rotation
|
|
687
|
-
if (x || y) {
|
|
688
|
-
result.m34 = -1 / perspective;
|
|
689
|
-
}
|
|
690
|
-
result = applyRotateTransform(result, x, y, z);
|
|
691
|
-
}
|
|
692
|
-
return result;
|
|
693
|
-
}
|
|
694
|
-
static _isAffineTransform(property) {
|
|
695
|
-
return property === _transform || property === Properties.translate || property === Properties.rotate || property === Properties.scale;
|
|
696
|
-
}
|
|
697
|
-
static _canBeMerged(animation1, animation2) {
|
|
698
|
-
const result = Animation._isAffineTransform(animation1.propertyName) && Animation._isAffineTransform(animation2.propertyName) && animation1.target === animation2.target && animation1.duration === animation2.duration && animation1.delay === animation2.delay && animation1.iterations === animation2.iterations && animation1.curve === animation2.curve;
|
|
699
|
-
return result;
|
|
700
|
-
}
|
|
701
|
-
static _mergeAffineTransformAnimations(propertyAnimations) {
|
|
702
|
-
const result = new Array();
|
|
703
|
-
let i = 0;
|
|
704
|
-
let j;
|
|
705
|
-
const length = propertyAnimations.length;
|
|
706
|
-
for (; i < length; i++) {
|
|
707
|
-
if (propertyAnimations[i][_skip]) {
|
|
708
|
-
continue;
|
|
709
|
-
}
|
|
710
|
-
if (!Animation._isAffineTransform(propertyAnimations[i].propertyName)) {
|
|
711
|
-
// This is not an affine transform animation, so there is nothing to merge.
|
|
712
|
-
result.push(propertyAnimations[i]);
|
|
713
|
-
}
|
|
714
|
-
else {
|
|
715
|
-
// This animation has not been merged anywhere. Create a new transform animation.
|
|
716
|
-
// The value becomes a JSON object combining all affine transforms together like this:
|
|
717
|
-
// {
|
|
718
|
-
// translate: {x: 100, y: 100 },
|
|
719
|
-
// rotate: 90,
|
|
720
|
-
// scale: {x: 2, y: 2 }
|
|
721
|
-
// }
|
|
722
|
-
const newTransformAnimation = {
|
|
723
|
-
target: propertyAnimations[i].target,
|
|
724
|
-
propertyName: _transform,
|
|
725
|
-
property: null,
|
|
726
|
-
value: {},
|
|
727
|
-
duration: propertyAnimations[i].duration,
|
|
728
|
-
delay: propertyAnimations[i].delay,
|
|
729
|
-
iterations: propertyAnimations[i].iterations,
|
|
730
|
-
curve: propertyAnimations[i].curve,
|
|
731
|
-
};
|
|
732
|
-
if (Trace.isEnabled()) {
|
|
733
|
-
Trace.write('Curve: ' + propertyAnimations[i].curve, Trace.categories.Animation);
|
|
734
|
-
}
|
|
735
|
-
newTransformAnimation.value[propertyAnimations[i].propertyName] = propertyAnimations[i].value;
|
|
736
|
-
if (Trace.isEnabled()) {
|
|
737
|
-
Trace.write('Created new transform animation: ' + Animation._getAnimationInfo(newTransformAnimation), Trace.categories.Animation);
|
|
738
|
-
}
|
|
739
|
-
// Merge all compatible affine transform animations to the right into this new animation.
|
|
740
|
-
j = i + 1;
|
|
741
|
-
if (j < length) {
|
|
742
|
-
for (; j < length; j++) {
|
|
743
|
-
if (Animation._canBeMerged(propertyAnimations[i], propertyAnimations[j])) {
|
|
744
|
-
if (Trace.isEnabled()) {
|
|
745
|
-
Trace.write('Merging animations: ' + Animation._getAnimationInfo(newTransformAnimation) + ' + ' + Animation._getAnimationInfo(propertyAnimations[j]) + ';', Trace.categories.Animation);
|
|
746
|
-
}
|
|
747
|
-
newTransformAnimation.value[propertyAnimations[j].propertyName] = propertyAnimations[j].value;
|
|
748
|
-
// Mark that it has been merged so we can skip it on our outer loop.
|
|
749
|
-
propertyAnimations[j][_skip] = true;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
result.push(newTransformAnimation);
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
return result;
|
|
757
|
-
}
|
|
758
|
-
animateNestedLayerSizeUsingBasicAnimation(nativeView, bounds, animation, args /* , nativeAnimation: CABasicAnimation */, curve, duration, delay, repeatCount) {
|
|
759
|
-
const view = animation.target;
|
|
760
|
-
// Gradient background animation
|
|
761
|
-
// if (nativeView.gradientLayer) {
|
|
762
|
-
// nativeView.gradientLayer.addAnimationForKey(nativeAnimation, 'bounds');
|
|
763
|
-
// }
|
|
764
|
-
let clipPath; // This is also used for animating shadow
|
|
765
|
-
// Clipping mask animation
|
|
766
|
-
if (nativeView.layer.mask instanceof CAShapeLayer) {
|
|
767
|
-
let toValue;
|
|
768
|
-
if (nativeView.maskType === iosViewUtils.LayerMask.BORDER) {
|
|
769
|
-
toValue = iosBackground.generateNonUniformBorderOuterClipRoundedPath(view, bounds);
|
|
770
|
-
}
|
|
771
|
-
else if (nativeView.maskType === iosViewUtils.LayerMask.CLIP_PATH) {
|
|
772
|
-
clipPath = iosBackground.generateClipPath(view, bounds);
|
|
773
|
-
toValue = clipPath;
|
|
774
|
-
}
|
|
775
|
-
else {
|
|
776
|
-
Trace.write('Unknown mask on animating view: ' + view, Trace.categories.Animation, Trace.messageType.info);
|
|
777
|
-
}
|
|
778
|
-
if (toValue) {
|
|
779
|
-
nativeView.layer.mask.addAnimationForKey(this._createBasicAnimation({
|
|
780
|
-
...args,
|
|
781
|
-
propertyNameToAnimate: 'path',
|
|
782
|
-
fromValue: nativeView.layer.mask.path,
|
|
783
|
-
toValue,
|
|
784
|
-
}, curve, duration, delay, repeatCount), 'path');
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
// Border animations (uniform and non-uniform)
|
|
788
|
-
if (nativeView.hasNonUniformBorder) {
|
|
789
|
-
if (nativeView.borderLayer) {
|
|
790
|
-
const innerClipPath = iosBackground.generateNonUniformBorderInnerClipRoundedPath(animation.target, bounds);
|
|
791
|
-
if (nativeView.hasNonUniformBorderColor) {
|
|
792
|
-
const borderMask = nativeView.borderLayer.mask;
|
|
793
|
-
if (borderMask instanceof CAShapeLayer) {
|
|
794
|
-
borderMask.addAnimationForKey(this._createBasicAnimation({
|
|
795
|
-
...args,
|
|
796
|
-
propertyNameToAnimate: 'path',
|
|
797
|
-
fromValue: borderMask.path,
|
|
798
|
-
toValue: innerClipPath,
|
|
799
|
-
}, curve, duration, delay, repeatCount), 'path');
|
|
800
|
-
}
|
|
801
|
-
const borderLayers = nativeView.borderLayer.sublayers;
|
|
802
|
-
if (borderLayers?.count) {
|
|
803
|
-
const paths = iosBackground.generateNonUniformMultiColorBorderRoundedPaths(animation.target, bounds);
|
|
804
|
-
for (let i = 0, count = borderLayers.count; i < count; i++) {
|
|
805
|
-
const layer = nativeView.borderLayer.sublayers[i];
|
|
806
|
-
if (layer instanceof CAShapeLayer) {
|
|
807
|
-
layer.addAnimationForKey(this._createBasicAnimation({
|
|
808
|
-
...args,
|
|
809
|
-
propertyNameToAnimate: 'path',
|
|
810
|
-
fromValue: layer.path,
|
|
811
|
-
toValue: paths[i],
|
|
812
|
-
}, curve, duration, delay, repeatCount), 'path');
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
else {
|
|
818
|
-
nativeView.borderLayer.addAnimationForKey(this._createBasicAnimation({
|
|
819
|
-
...args,
|
|
820
|
-
propertyNameToAnimate: 'path',
|
|
821
|
-
fromValue: nativeView.borderLayer.path,
|
|
822
|
-
toValue: innerClipPath,
|
|
823
|
-
}, curve, duration, delay, repeatCount), 'path');
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
else {
|
|
828
|
-
// TODO: Animate border width when borders get support for percentage values
|
|
829
|
-
// Uniform corner radius also relies on view size
|
|
830
|
-
if (nativeView.layer.cornerRadius) {
|
|
831
|
-
nativeView.layer.addAnimationForKey(this._createBasicAnimation({
|
|
832
|
-
...args,
|
|
833
|
-
propertyNameToAnimate: 'cornerRadius',
|
|
834
|
-
fromValue: nativeView.layer.cornerRadius,
|
|
835
|
-
toValue: iosBackground.getUniformBorderRadius(animation.target, bounds),
|
|
836
|
-
}, curve, duration, delay, repeatCount), 'cornerRadius');
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
// Shadow layers do not inherit from animating view layer
|
|
840
|
-
if (nativeView.outerShadowContainerLayer) {
|
|
841
|
-
const shadowClipMask = nativeView.outerShadowContainerLayer.mask;
|
|
842
|
-
// This is for animating view clip path on shadow
|
|
843
|
-
if (clipPath && shadowClipMask instanceof CAShapeLayer) {
|
|
844
|
-
shadowClipMask.addAnimationForKey(this._createBasicAnimation({
|
|
845
|
-
...args,
|
|
846
|
-
propertyNameToAnimate: 'path',
|
|
847
|
-
fromValue: shadowClipMask.path,
|
|
848
|
-
toValue: clipPath,
|
|
849
|
-
}, curve, duration, delay, repeatCount), 'path');
|
|
850
|
-
}
|
|
851
|
-
const outerShadowLayers = nativeView.outerShadowContainerLayer.sublayers;
|
|
852
|
-
if (outerShadowLayers?.count) {
|
|
853
|
-
const { maskPath, shadowPath } = iosBackground.generateShadowLayerPaths(view, bounds);
|
|
854
|
-
for (let i = 0, count = outerShadowLayers.count; i < count; i++) {
|
|
855
|
-
const shadowLayer = outerShadowLayers[i];
|
|
856
|
-
shadowLayer.addAnimationForKey(this._createBasicAnimation({
|
|
857
|
-
...args,
|
|
858
|
-
propertyNameToAnimate: 'shadowPath',
|
|
859
|
-
fromValue: shadowLayer.shadowPath,
|
|
860
|
-
toValue: shadowPath,
|
|
861
|
-
}, curve, duration, delay, repeatCount), 'shadowPath');
|
|
862
|
-
if (shadowLayer.mask instanceof CAShapeLayer) {
|
|
863
|
-
shadowLayer.mask.addAnimationForKey(this._createBasicAnimation({
|
|
864
|
-
...args,
|
|
865
|
-
propertyNameToAnimate: 'path',
|
|
866
|
-
fromValue: shadowLayer.mask.path,
|
|
867
|
-
toValue: maskPath,
|
|
868
|
-
}, curve, duration, delay, repeatCount), 'path');
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
export function _getTransformMismatchErrorMessage(view) {
|
|
876
|
-
const expectedTransform = calculateTransform(view);
|
|
877
|
-
const expectedTransformString = getCATransform3DString(expectedTransform);
|
|
878
|
-
const actualTransformString = getCATransform3DString(view.nativeViewProtected.layer.transform);
|
|
879
|
-
if (actualTransformString !== expectedTransformString) {
|
|
880
|
-
return 'View and Native transforms do not match.\nActual: ' + actualTransformString + ';\nExpected: ' + expectedTransformString;
|
|
881
|
-
}
|
|
882
|
-
return undefined;
|
|
883
|
-
}
|
|
884
|
-
function calculateTransform(view) {
|
|
885
|
-
const scaleX = view.scaleX || 1e-6;
|
|
886
|
-
const scaleY = view.scaleY || 1e-6;
|
|
887
|
-
const perspective = view.perspective || 300;
|
|
888
|
-
// Order is important: translate, rotate, scale
|
|
889
|
-
let expectedTransform = new CATransform3D(CATransform3DIdentity);
|
|
890
|
-
// Only set perspective if there is 3D rotation
|
|
891
|
-
if (view.rotateX || view.rotateY) {
|
|
892
|
-
expectedTransform.m34 = -1 / perspective;
|
|
893
|
-
}
|
|
894
|
-
expectedTransform = CATransform3DTranslate(expectedTransform, view.translateX, view.translateY, 0);
|
|
895
|
-
expectedTransform = applyRotateTransform(expectedTransform, view.rotateX, view.rotateY, view.rotate);
|
|
896
|
-
expectedTransform = CATransform3DScale(expectedTransform, scaleX, scaleY, 1);
|
|
897
|
-
return expectedTransform;
|
|
898
|
-
}
|
|
899
|
-
function getCATransform3DString(t) {
|
|
900
|
-
return `[
|
|
901
|
-
${t.m11}, ${t.m12}, ${t.m13}, ${t.m14},
|
|
902
|
-
${t.m21}, ${t.m22}, ${t.m23}, ${t.m24},
|
|
903
|
-
${t.m31}, ${t.m32}, ${t.m33}, ${t.m34},
|
|
904
|
-
${t.m41}, ${t.m42}, ${t.m43}, ${t.m44}]`;
|
|
905
|
-
}
|
|
906
|
-
//# sourceMappingURL=index.ios.js.map
|