mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add module names for the typedoc, make it work
Mark members with @private for typedoc.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { ViewBase } from "../view-base";
|
||||
/**
|
||||
* @module "ui/core/bindable"
|
||||
*/ /** */
|
||||
|
||||
import { ViewBase } from "../view-base";
|
||||
import { Observable, WrappedValue, PropertyChangeData, EventData } from "../../../data/observable";
|
||||
import { isEnabled as traceEnabled, write as traceWrite, categories as traceCategories, notifyEvent as traceNotifyEvent, messageType as traceMessageType, isCategorySet } from "../../../trace";
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
/**
|
||||
* @module "ui/core/control-state-change"
|
||||
*/ /** */
|
||||
|
||||
/**
|
||||
* An utility class used for supporting styling infrastructure.
|
||||
*/
|
||||
export class ControlStateChangeListener {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
/**
|
||||
* @module "ui/core/dependency-observable"
|
||||
*
|
||||
* Contains the DependencyObservable class, which represents an extended Observable object that uses Property instances for value backing mechanism.
|
||||
*/
|
||||
*/ /** */
|
||||
|
||||
import { Observable, EventData } from "../../../data/observable";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @module "ui/core/properties"
|
||||
*/ /** */
|
||||
|
||||
import { ViewBase } from "../view-base";
|
||||
import { Style } from "../../styling/style";
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @module "ui/core/view-base"
|
||||
*/ /** */
|
||||
|
||||
import { Property, InheritedProperty, Style } from "../properties";
|
||||
import { BindingOptions, Observable } from "../bindable";
|
||||
|
||||
@@ -60,13 +64,37 @@ export abstract class ViewBase extends Observable {
|
||||
alignSelf: AlignSelf;
|
||||
|
||||
//@private
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_oldLeft: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_oldTop: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_oldRight: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_oldBottom: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_defaultPaddingTop: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_defaultPaddingRight: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_defaultPaddingBottom: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_defaultPaddingLeft: number;
|
||||
//@endprivate
|
||||
|
||||
|
||||
57
tns-core-modules/ui/core/view/view.d.ts
vendored
57
tns-core-modules/ui/core/view/view.d.ts
vendored
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @module "ui/core/view"
|
||||
*/ /** */
|
||||
|
||||
///<reference path="../../../tns-core-modules.d.ts" /> Include global typings
|
||||
import { ViewBase, Property, EventData, Color } from "../view-base";
|
||||
import { Animation, AnimationDefinition, AnimationPromise } from "../../animation";
|
||||
@@ -472,37 +476,65 @@ export abstract class View extends ViewBase implements ApplyXmlAttributes {
|
||||
public eachChildView(callback: (view: View) => boolean): void;
|
||||
|
||||
//@private
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
isLayoutRequired: boolean;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_gestureObservers: any;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setNativeClipToBounds(): void;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_updateLayout(): void;
|
||||
|
||||
/**
|
||||
* Called by measure method to cache measureSpecs.
|
||||
* @private
|
||||
*/
|
||||
_setCurrentMeasureSpecs(widthMeasureSpec: number, heightMeasureSpec: number): boolean;
|
||||
|
||||
/**
|
||||
* Called by layout method to cache view bounds.
|
||||
* @private
|
||||
*/
|
||||
_setCurrentLayoutBounds(left: number, top: number, right: number, bottom: number): void;
|
||||
|
||||
/**
|
||||
* Return view bounds.
|
||||
* @private
|
||||
*/
|
||||
_getCurrentLayoutBounds(): { left: number; top: number; right: number; bottom: number };
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_goToVisualState(state: string);
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setNativeViewFrame(nativeView: any, frame: any): void;
|
||||
// _onStylePropertyChanged(property: dependencyObservable.Property): void;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_updateEffectiveLayoutValues(parent: View): void;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_currentWidthMeasureSpec: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_currentHeightMeasureSpec: number;
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setMinWidthNative(value: Length): void;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setMinHeightNative(value: Length): void;
|
||||
//@endprivate
|
||||
|
||||
@@ -522,8 +554,17 @@ export abstract class View extends ViewBase implements ApplyXmlAttributes {
|
||||
*/
|
||||
export class CustomLayoutView extends View {
|
||||
//@private
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_updateNativeLayoutParams(child: View): void;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setChildMinWidthNative(child: View): void;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setChildMinHeightNative(child: View): void;
|
||||
//@endprivate
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* @module "ui/core/weak-event-listener"
|
||||
*/ /** */
|
||||
|
||||
import { Observable, EventData } from "../../../data/observable";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user