Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeView

Hierarchy

Implements

Index

Constructors

constructor

  • new NodeView(node: Node, key?: string | null): NodeView

Accessors

appView

childViews

  • get childViews(): ReadonlyArray<View>

clientBounds

  • get clientBounds(): BoxR2

clientTransform

dirty

  • get dirty(): boolean

node

pageBounds

  • get pageBounds(): BoxR2

pageTransform

parentTransform

parentView

  • get parentView(): View | null

popoverBounds

  • get popoverBounds(): BoxR2

viewController

viewObservers

Methods

addViewObserver

animate

  • animate(force?: boolean): void

appendChild

  • appendChild(child: View | Node): void

appendChildNode

  • appendChildNode(childNode: Node): void

appendChildView

  • appendChildView(childView: View): void

cascadeAnimate

  • cascadeAnimate(frame: number): void

cascadeLayout

  • cascadeLayout(): void

cascadeMount

  • cascadeMount(): void

cascadeResize

  • cascadeResize(): void

cascadeScroll

  • cascadeScroll(): void

cascadeUnmount

  • cascadeUnmount(): void

Protected didAddViewObserver

Protected didAnimate

  • didAnimate(frame: number): void

Protected didInsertChildNode

  • didInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected didInsertChildView

  • didInsertChildView(childView: View, targetView: View | null | undefined): void

Protected didLayout

  • didLayout(): void

Protected didMount

  • didMount(): void

Protected didObserve

  • didObserve(callback: function): void

Protected didRemoveChildNode

  • didRemoveChildNode(childNode: Node): void

Protected didRemoveChildView

  • didRemoveChildView(childView: View): void

Protected didRemoveViewObserver

Protected didResize

  • didResize(): void

Protected didScroll

  • didScroll(): void

Protected didSetDirty

  • didSetDirty(dirty: boolean): void

Protected didSetKey

  • didSetKey(key: string | null): void

Protected didSetParentView

  • didSetParentView(parentView: View | null): void

Protected didSetViewController

Protected didUnmount

  • didUnmount(): void

dispatchEvent

  • dispatchEvent(event: Event): boolean

getChildView

  • getChildView(key: string): View | null

Protected initNode

insertChild

  • insertChild(child: View | Node, target: View | Node | null): void

insertChildNode

  • insertChildNode(childNode: Node, targetNode: Node | null): void

insertChildView

  • insertChildView(childView: View, targetView: View | null): void

isMounted

  • isMounted(): boolean

isVisible

  • isVisible(): boolean

key

  • key(): string | null
  • key(key: string | null): this

off

  • off(type: string, listener: EventListenerOrEventListenerObject, options?: EventListenerOptions | boolean): this

on

  • on(type: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean): this

Protected onAddViewObserver

Protected onAnimate

  • onAnimate(frame: number): void

Protected onAnimationFrame

  • onAnimationFrame(timestamp: number): void

Protected onInsertChildNode

  • onInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected onInsertChildView

  • onInsertChildView(childView: View, targetView: View | null | undefined): void

Protected onLayout

  • onLayout(): void

Protected onMount

  • onMount(): void

Protected onRemoveChildNode

  • onRemoveChildNode(childNode: Node): void

Protected onRemoveChildView

  • onRemoveChildView(childView: View): void

Protected onRemoveViewObserver

Protected onResize

  • onResize(): void

Protected onScroll

  • onScroll(): void

Protected onSetKey

  • onSetKey(key: string | null): void

Protected onSetParentView

  • onSetParentView(parentView: View | null): void

Protected onSetViewController

Protected onUnmount

  • onUnmount(): void

prependChild

  • prependChild(child: View | Node): void

prependChildNode

  • prependChildNode(childNode: Node): void

prependChildView

  • prependChildView(childView: View): void

remove

  • remove(): void

removeAll

  • removeAll(): void

removeChild

  • removeChild(child: View | Node): void

removeChildNode

  • removeChildNode(childNode: Node): void

removeChildView

  • removeChildView(childView: View): void

removeViewObserver

setChildView

  • setChildView(key: string, newChildView: View | null): View | null

setDirty

  • setDirty(dirty: boolean): void

setParentView

  • setParentView(parentView: View | null): void

setViewController

text

  • text(): string | null
  • text(value: string | null): this

Protected willAddViewObserver

Protected willAnimate

  • willAnimate(frame: number): void

Protected willInsertChildNode

  • willInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected willInsertChildView

  • willInsertChildView(childView: View, targetView: View | null | undefined): void

Protected willLayout

  • willLayout(): void

Protected willMount

  • willMount(): void

Protected willObserve

  • willObserve(callback: function): void

Protected willRemoveChildNode

  • willRemoveChildNode(childNode: Node): void

Protected willRemoveChildView

  • willRemoveChildView(childView: View): void

Protected willRemoveViewObserver

Protected willResize

  • willResize(): void

Protected willScroll

  • willScroll(): void

Protected willSetKey

  • willSetKey(key: string | null): void

Protected willSetParentView

  • willSetParentView(parentView: View | null): void

Protected willSetViewController

Protected willUnmount

  • willUnmount(): void

Static create

Static fromNode