chore: format

This commit is contained in:
Nathan Walker
2020-07-05 14:57:06 -07:00
parent 8f2900ad0b
commit da3c0b973d
379 changed files with 71587 additions and 54582 deletions

View File

@@ -1,24 +1,35 @@
import { WrapLayoutBase, orientationProperty, itemWidthProperty, itemHeightProperty } from "./wrap-layout-common";
import {
WrapLayoutBase,
orientationProperty,
itemWidthProperty,
itemHeightProperty,
} from "./wrap-layout-common";
import { Length } from "../../styling/style-properties";
export * from "./wrap-layout-common";
export class WrapLayout extends WrapLayoutBase {
nativeViewProtected: org.nativescript.widgets.WrapLayout;
nativeViewProtected: org.nativescript.widgets.WrapLayout;
public createNativeView() {
return new org.nativescript.widgets.WrapLayout(this._context);
}
public createNativeView() {
return new org.nativescript.widgets.WrapLayout(this._context);
}
[orientationProperty.setNative](value: "horizontal" | "vertical") {
this.nativeViewProtected.setOrientation(value === "vertical" ? org.nativescript.widgets.Orientation.vertical : org.nativescript.widgets.Orientation.horizontal);
}
[orientationProperty.setNative](value: "horizontal" | "vertical") {
this.nativeViewProtected.setOrientation(
value === "vertical"
? org.nativescript.widgets.Orientation.vertical
: org.nativescript.widgets.Orientation.horizontal
);
}
[itemWidthProperty.setNative](value: Length) {
this.nativeViewProtected.setItemWidth(Length.toDevicePixels(value, -1));
}
[itemWidthProperty.setNative](value: Length) {
this.nativeViewProtected.setItemWidth(Length.toDevicePixels(value, -1));
}
[itemHeightProperty.setNative](value: Length) {
this.nativeViewProtected.setItemHeight(Length.toDevicePixels(value, -1));
}
[itemHeightProperty.setNative](value: Length) {
this.nativeViewProtected.setItemHeight(
Length.toDevicePixels(value, -1)
);
}
}