Options
All
  • Public
  • Public/Protected
  • All
Menu

External module ui

Index

Enumerations

Classes

Interfaces

Variables

Functions

Object literals

Variables

Const CanvasClearFlag

CanvasClearFlag: object = Enum({SOLID_COLOR: GFXClearFlag.ALL,DEPTH_STENCIL: GFXClearFlag.DEPTH_STENCIL,NONE: GFXClearFlag.NONE,})

Type declaration

Const EPSILON

EPSILON: 0.0001 = 0.0001

Const EventType

EventType: WebViewEventType = WebViewEventType
en

WebView event type

zh

网页视图事件类型。

enum

WebView.EventType

Const GETTINGSHORTERFACTOR

GETTINGSHORTERFACTOR: 20 = 20

Const LEFT_PADDING

LEFT_PADDING: 2 = 2

Const LEFT_RIGHT

LEFT_RIGHT: number = AlignFlags.LEFT | AlignFlags.RIGHT

Const MOVEMENT_FACTOR

MOVEMENT_FACTOR: 0.7 = 0.7

Const NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED

NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED: 5 = 5

Const NodeEvent

NodeEvent: SystemEventType = SystemEventType

Const OUT_OF_BOUNDARY_BREAKING_FACTOR

OUT_OF_BOUNDARY_BREAKING_FACTOR: 0.05 = 0.05

Const RenderMode

RenderMode: object = Enum({OVERLAY: 0,INTERSPERSE: 1,})

Type declaration

  • INTERSPERSE: number
  • OVERLAY: number

Const RichTextChildImageName

RichTextChildImageName: "RICHTEXT_Image_CHILD" = "RICHTEXT_Image_CHILD"

Const RichTextChildName

RichTextChildName: "RICHTEXT_CHILD" = "RICHTEXT_CHILD"

Const SEGMENTS_MAX

SEGMENTS_MAX: 10000 = 10000

Const SEGMENTS_MIN

SEGMENTS_MIN: 3 = 3

Const TOLERANCE

TOLERANCE: 10000 = 10000

Const TOP_BOT

TOP_BOT: number = AlignFlags.TOP | AlignFlags.BOT

Const ZERO

ZERO: Vec3 = new Vec3()

Const ZERO

ZERO: Vec3 = new Vec3()

Const _circlePoints

_circlePoints: Vec3[] = []

Const _color

_color: Color = new Color()

Const _htmlTextParser

_htmlTextParser: HtmlTextParser = new HtmlTextParser()

Const _mat4_temp

_mat4_temp: Mat4 = new Mat4()

Const _mat4_temp

_mat4_temp: Mat4 = new Mat4()

Const _matrix

_matrix: Mat4 = new Mat4()

Const _rect

_rect: Rect = new Rect()

Const _tempColor

_tempColor: Color = new Color()

Const _tempColor

_tempColor: Color = new Color()

Const _tempPos

_tempPos: Vec3 = new Vec3()

Const _tempPos

_tempPos: Vec3 = new Vec3()

Const _tempPos_1

_tempPos_1: Vec3 = new Vec3()

Const _tempPos_2

_tempPos_2: Vec3 = new Vec3()

Const _tempScale

_tempScale: Vec3 = new Vec3()

Const _tempSize

_tempSize: Size = new Size()

Const _tempVec2

_tempVec2: Vec2 = new Vec2()

Const _tempVec2

_tempVec2: Vec2 = new Vec2()

Const _tempVec2_1

_tempVec2_1: Vec2 = new Vec2()

Const _tempVec3

_tempVec3: Vec3 = new Vec3()

Const _tempVec3_1

_tempVec3_1: Vec3 = new Vec3()

Const _temp_vec2

_temp_vec2: Vec2 = new Vec2()

Const _vec2_temp

_vec2_temp: Vec2 = new Vec2()

Const _vec2a

_vec2a: Vec2 = new Vec2()

Const _vec2b

_vec2b: Vec2 = new Vec2()

Const _worldMatrix

_worldMatrix: Mat4 = new Mat4()

Const _worldMatrix

_worldMatrix: Mat4 = new Mat4()

Const _worldPos

_worldPos: Vec3 = new Vec3()

Const _zeroVec3

_zeroVec3: Vec3 = new Vec3()

Const defaultAnchor

defaultAnchor: Vec2 = new Vec2()

Const pool

pool: Pool<ILabelSegment> = new Pool((labelSeg: ILabelSegment) => {if (EDITOR) {return false;}if (DEV) {assert(!labelSeg.node.parent, 'Recycling node\'s parent should be null!');}if (!cc.isValid(labelSeg.node)) {return false;}else if (labelSeg.node.getComponent(LabelOutlineComponent)) {return false;}return true;}, 20)

富文本池。

Const vfmt

vfmt: object[] = [{name: GFXAttributeName.ATTR_POSITION,format: GFXFormat.RGB32F,},{name: GFXAttributeName.ATTR_TEX_COORD,format: GFXFormat.RG32F,},{name: GFXAttributeName.ATTR_COLOR,format: GFXFormat.RGBA32F,},]

Functions

calculateCircle

  • calculateCircle(center: Vec3, radius: Vec3, segments: number): Vec3[]

capitalize

  • capitalize(str: string): string

capitalizeFirstLetter

  • capitalizeFirstLetter(str: string): string

computeInverseTransForTarget

  • computeInverseTransForTarget(widgetNode: Node, target: Node, out_inverseTranslate: Vec3, out_inverseScale: Vec3): void

debounce

  • debounce(func: Function, wait: number, immediate?: undefined | false | true): (Anonymous function)
  • 返回一个可延时调用函数。只要不被调用就不会触发。选择 ‘immediate’ 则在触发时不会延迟而是立马回调。

    Parameters

    • func: Function

      延时调用函数。

    • wait: number

      延时时间。

    • Optional immediate: undefined | false | true

      是否立马执行回调。

    Returns (Anonymous function)

emptyCallback

  • emptyCallback(): void

getReadonlyNodeSize

  • getReadonlyNodeSize(parent: Node): Size | object

Const getTimeInMilliseconds

  • getTimeInMilliseconds(): number

Const quintEaseOut

  • quintEaseOut(time: number): number

Object literals

Const matInsInfo

matInsInfo: object

owner

owner: never = null!

parent

parent: never = null!

subModelIdx

subModelIdx: number = 0

Const matInsInfo

matInsInfo: object

owner

owner: never = null!

parent

parent: never = null!

subModelIdx

subModelIdx: number = 0

Const eventMap

eventMap: object

bounce-bottom

bounce-bottom: number = 6

bounce-left

bounce-left: number = 7

bounce-right

bounce-right: number = 8

bounce-top

bounce-top: number = 5

scroll-began

scroll-began: number = 12

scroll-ended

scroll-ended: number = 9

scroll-ended-with-threshold

scroll-ended-with-threshold: number = 11

scroll-to-bottom

scroll-to-bottom: number = 1

scroll-to-left

scroll-to-left: number = 2

scroll-to-right

scroll-to-right: number = 3

scroll-to-top

scroll-to-top: number = 0

scrolling

scrolling: number = 4

touch-up

touch-up: number = 10

Generated using TypeDoc