mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills Roll back some changes involved in separating UIEvent for dom and ios Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
This commit is contained in:
@ -12,17 +12,17 @@ function onStretchPropertyChanged(data: dependencyObservable.PropertyChangeData)
|
||||
|
||||
switch (data.newValue) {
|
||||
case enums.Stretch.aspectFit:
|
||||
image.ios.contentMode = UIViewContentMode.UIViewContentModeScaleAspectFit;
|
||||
image.ios.contentMode = UIViewContentMode.ScaleAspectFit;
|
||||
break;
|
||||
case enums.Stretch.aspectFill:
|
||||
image.ios.contentMode = UIViewContentMode.UIViewContentModeScaleAspectFill;
|
||||
image.ios.contentMode = UIViewContentMode.ScaleAspectFill;
|
||||
break;
|
||||
case enums.Stretch.fill:
|
||||
image.ios.contentMode = UIViewContentMode.UIViewContentModeScaleToFill;
|
||||
image.ios.contentMode = UIViewContentMode.ScaleToFill;
|
||||
break;
|
||||
case enums.Stretch.none:
|
||||
default:
|
||||
image.ios.contentMode = UIViewContentMode.UIViewContentModeTopLeft;
|
||||
image.ios.contentMode = UIViewContentMode.TopLeft;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -44,8 +44,8 @@ export class Image extends imageCommon.Image {
|
||||
super();
|
||||
|
||||
//TODO: Think of unified way of setting all the default values.
|
||||
this._ios = new UIImageView();
|
||||
this._ios.contentMode = UIViewContentMode.UIViewContentModeScaleAspectFit;
|
||||
this._ios = UIImageView.new();
|
||||
this._ios.contentMode = UIViewContentMode.ScaleAspectFit;
|
||||
this._ios.clipsToBounds = true;
|
||||
this._ios.userInteractionEnabled = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user