mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Extracted view-related utility methods from "utils/utils" to "ui/utils" so that the "utils/utils" module does not depend on the view module.
This commit is contained in:
8
utils/utils.d.ts
vendored
8
utils/utils.d.ts
vendored
@ -1,6 +1,5 @@
|
||||
declare module "utils/utils" {
|
||||
import colorModule = require("color");
|
||||
import view = require("ui/core/view");
|
||||
|
||||
export var RESOURCE_PREFIX: string;
|
||||
|
||||
@ -129,11 +128,6 @@
|
||||
* @param uiColor - UIColor instance used to create a NativeScript color.
|
||||
*/
|
||||
export function getColor(uiColor: UIColor): colorModule.Color;
|
||||
/**
|
||||
* Gets actual height of a [UIView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/) widget.
|
||||
* @param uiView - An instance of UIView.
|
||||
*/
|
||||
export function getActualHeight(uiView: UIView): number;
|
||||
/**
|
||||
* Gets an information about if current mode is Landscape.
|
||||
*/
|
||||
@ -142,8 +136,6 @@
|
||||
* Gets the iOS device major version (for 8.1 will return 8).
|
||||
*/
|
||||
export var MajorVersion: number;
|
||||
|
||||
export function _layoutRootView(rootView: view.View, parentBounds: CGRect): void;
|
||||
}
|
||||
/**
|
||||
* An utility function that copies properties from source object to target object.
|
||||
|
Reference in New Issue
Block a user