Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private drawPlus() {
let iconColor = new Color(ColorService.Active.COMPLIMENTARY).ios;
//// Bezier Drawing
let bezierPath = UIBezierPath.bezierPath();
bezierPath.moveToPoint(CGPointMake(35.72, 15));
bezierPath.addLineToPoint(CGPointMake(44.35, 15));
bezierPath.addLineToPoint(CGPointMake(44.35, 35.65));
bezierPath.addLineToPoint(CGPointMake(65, 35.65));
bezierPath.addLineToPoint(CGPointMake(65, 43.89));
bezierPath.addLineToPoint(CGPointMake(44.35, 43.89));
bezierPath.addLineToPoint(CGPointMake(44.35, 65));
bezierPath.addLineToPoint(CGPointMake(35.72, 65));
bezierPath.addLineToPoint(CGPointMake(35.72, 43.89));
bezierPath.addLineToPoint(CGPointMake(15, 43.89));
bezierPath.addLineToPoint(CGPointMake(15, 35.65));
bezierPath.addLineToPoint(CGPointMake(35.72, 35.65));
bezierPath.addLineToPoint(CGPointMake(35.72, 15));
function pageLoaded(args) {
// Get the event sender
var page = args.object;
page.bindingContext = new main_view_model_1.HelloWorldModel(page);
if (platform_1.isAndroid && platform_1.device.sdkVersion >= "21") {
var window_1 = application_1.android.startActivity.getWindow();
window_1.setStatusBarColor(new color_1.Color("#d32f2f").android);
}
}
exports.pageLoaded = pageLoaded;
set: function (value) {
if (types.isString(value) || types.isNumber(value)) {
this._setValue(Border.borderColorProperty, new color.Color(value));
}
else {
this._setValue(Border.borderColorProperty, value);
}
},
enumerable: true,
function BrowserView() {
var _this = _super.call(this) || this;
_this.realityWebviews = new Map();
_this.videoView = vuforia.videoView;
_this.scrollView = new scroll_view_1.ScrollView;
_this.layerContainer = new grid_layout_1.GridLayout;
_this.layers = [];
_this._overviewEnabled = false;
_this._checkedVersion = false;
_this._lastTime = Date.now();
_this._layerBackgroundColor = new color_1.Color(0, 255, 255, 255);
_this.layerContainer.horizontalAlignment = 'stretch';
_this.layerContainer.verticalAlignment = 'stretch';
if (_this.layerContainer.ios) {
_this.layerContainer.ios.layer.masksToBounds = false;
}
else if (_this.layerContainer.android) {
_this.layerContainer.android.setClipChildren(false);
}
_this.scrollView.horizontalAlignment = 'stretch';
_this.scrollView.verticalAlignment = 'stretch';
_this.scrollView.content = _this.layerContainer;
if (_this.scrollView.ios) {
_this.scrollView.ios.layer.masksToBounds = false;
}
else if (_this.scrollView.android) {
_this.scrollView.android.setClipChildren(false);
private static shadowView(opacity: number, width: number): StackLayout {
let shadowRow = new StackLayout();
shadowRow.backgroundColor = new Color('black');
shadowRow.opacity = opacity;
shadowRow.height = 1;
return shadowRow;
}
public static fadeViews(topHeight: number, verticalOffset: number, viewsToFade: View[], topOpacity): void {
set: function (value) {
var foreColor;
if (types.isString(value)) {
foreColor = new colorModule.Color(value);
}
else {
foreColor = value;
}
if (this._foregroundColor !== foreColor) {
this._foregroundColor = foreColor;
}
},
enumerable: true,
valueConverter: function (value) { return new colorModule.Color(value); },
valueChanged: function (view, oldValue, newValue) {
function registerThemeColor(color, key){
if(color != "undefined" && color !== null){
if(theme === null){
theme = new A0Theme();
}
theme.registerColorForKey(new colorModule.Color(color).ios, key);
}
}
LoginComponent.prototype.toggleDisplay = function () {
this.isLoggingIn = !this.isLoggingIn;
var mainContainer = this.mainContainer.nativeElement;
mainContainer.animate({
backgroundColor: this.isLoggingIn ? new color_1.Color("white") : new color_1.Color("#301217"),
duration: 200
});
};
LoginComponent.prototype.startBackgroundAnimation = function (background) {
private _setTextColor(color) {
if (color) {
this._snackbarManager.messageTextColor = new Color(color).ios;
}
}