mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 06:10:56 +08:00
Merge branch 'master' of github.com:NativeScript/NativeScript
This commit is contained in:
3
packages/core/index.d.ts
vendored
3
packages/core/index.d.ts
vendored
@ -8,7 +8,7 @@
|
|||||||
export type { NativeScriptConfig } from './config';
|
export type { NativeScriptConfig } from './config';
|
||||||
export { iOSApplication, AndroidApplication } from './application';
|
export { iOSApplication, AndroidApplication } from './application';
|
||||||
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
|
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
|
||||||
import { systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance } from './application';
|
import { systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application';
|
||||||
export declare const Application: {
|
export declare const Application: {
|
||||||
launchEvent: string;
|
launchEvent: string;
|
||||||
displayedEvent: string;
|
displayedEvent: string;
|
||||||
@ -40,6 +40,7 @@ export declare const Application: {
|
|||||||
getNativeApplication: typeof getNativeApplication;
|
getNativeApplication: typeof getNativeApplication;
|
||||||
hasLaunched: typeof hasLaunched;
|
hasLaunched: typeof hasLaunched;
|
||||||
systemAppearance: typeof systemAppearance;
|
systemAppearance: typeof systemAppearance;
|
||||||
|
setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
|
||||||
android: import('./application').AndroidApplication;
|
android: import('./application').AndroidApplication;
|
||||||
ios: import('./application').iOSApplication;
|
ios: import('./application').iOSApplication;
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ import './globals';
|
|||||||
export { iOSApplication, AndroidApplication } from './application';
|
export { iOSApplication, AndroidApplication } from './application';
|
||||||
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
|
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
|
||||||
|
|
||||||
import { fontScaleChangedEvent, launchEvent, displayedEvent, uncaughtErrorEvent, discardedErrorEvent, suspendEvent, resumeEvent, exitEvent, lowMemoryEvent, orientationChangedEvent, systemAppearanceChanged, systemAppearanceChangedEvent, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, android as appAndroid, ios as iosApp, systemAppearance } from './application';
|
import { fontScaleChangedEvent, launchEvent, displayedEvent, uncaughtErrorEvent, discardedErrorEvent, suspendEvent, resumeEvent, exitEvent, lowMemoryEvent, orientationChangedEvent, systemAppearanceChanged, systemAppearanceChangedEvent, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, android as appAndroid, ios as iosApp, systemAppearance, setAutoSystemAppearanceChanged } from './application';
|
||||||
export const Application = {
|
export const Application = {
|
||||||
launchEvent,
|
launchEvent,
|
||||||
displayedEvent,
|
displayedEvent,
|
||||||
@ -38,6 +38,7 @@ export const Application = {
|
|||||||
getNativeApplication,
|
getNativeApplication,
|
||||||
hasLaunched,
|
hasLaunched,
|
||||||
systemAppearance,
|
systemAppearance,
|
||||||
|
setAutoSystemAppearanceChanged,
|
||||||
|
|
||||||
android: appAndroid,
|
android: appAndroid,
|
||||||
ios: iosApp,
|
ios: iosApp,
|
||||||
|
@ -1317,7 +1317,7 @@ function createNativePercentLengthProperty(options: NativePercentLengthPropertyO
|
|||||||
setPercent = options.setPercent || percentNotSupported;
|
setPercent = options.setPercent || percentNotSupported;
|
||||||
options = null;
|
options = null;
|
||||||
}
|
}
|
||||||
if (length == 'auto' || !length) {
|
if (length == 'auto' || length == null) {
|
||||||
// tslint:disable-line
|
// tslint:disable-line
|
||||||
setPixels(this.nativeViewProtected, auto);
|
setPixels(this.nativeViewProtected, auto);
|
||||||
} else if (typeof length === 'number') {
|
} else if (typeof length === 'number') {
|
||||||
|
Reference in New Issue
Block a user