Skip to content

Util


Methods

AddZeros

AddZeros(z)

parameters

name: z

desc:

type: string|number|object

return value

desc:

type:

BGRtoRGB

BGRtoRGB(oldValue)

parameters

name: oldValue

desc:

type: string|number|object

return value

desc:

type:

ByExH

ByExH(c)

parameters

name: c

desc:

type: GridGUI.Cell

return value

desc:

type:

ByExW

ByExW(c)

parameters

name: c

desc:

type: GridGUI.Cell

return value

desc:

type:

BySecoundValue

BySecoundValue(lst)

parameters

name: lst

desc:

type: string|number|object

return value

desc:

type:

BySize

BySize(pos)

parameters

name: pos

desc:

type: GridGUI.Position

return value

desc:

type:

ConvertStObjToObjOfStr

ConvertStObjToObjOfStr(obj)

parameters

name: obj

desc:

type: string|number|object

return value

desc:

type:

DPIScale

DPIScale(pos, enlarge := true)

parameters

name: pos

desc:

type: GridGUI.Position

name: enlarge

desc:

type: bool

default: true

return value

desc:

type:

FindIndex

FindIndex(lst, val, fun := false)

parameters

name: lst

desc:

type: string|number|object

name: val

desc:

type: string|number|object

name: fun

desc:

type: Func|BoundFunc|false

default: false

return value

desc:

type:

GetSizeByLimitingSide

GetSizeByLimitingSide(pos, ratio)

parameters

name: pos

desc:

type: GridGUI.Position

name: ratio

desc:

type: number

return value

desc:

type: GridGUI.Position

Join

Join(sep, params)

parameters

name: sep

desc:

type: string

name: params

desc:

type: array

return value

desc:

type: string

Justify

Justify(justifyOptions, area, pos, border)

parameters

name: justifyOptions

desc:

type: string

name: area

desc:

type: GridGUI.Position

name: pos

desc:

type: GridGUI.Position

name: border

desc:

type: GridGUI.Position

return value

desc:

type: GridGUI.Position

JustifyCenter

JustifyCenter(area, pos)

parameters

name: area

desc:

type: GridGUI.Position

name: pos

desc:

type: GridGUI.Position

return value

desc:

type: GridGUI.Position

prettyPrint

prettyPrint(str)

parameters

name: str

desc:

type: string|number|object

return value

desc:

type:

RemoveValue

RemoveValue(lst, val, fun := false)

parameters

name: lst

desc:

type: string|number|object

name: val

desc:

type: string|number|object

name: fun

desc:

type: Func|BoundFunc|false

default: false

return value

desc:

type:

RGBtoBGR

RGBtoBGR(oldValue)

parameters

name: oldValue

desc:

type: string|number|object

return value

desc:

type:

Sort

Sort(obj, fun)

parameters

name: obj

desc:

type: string|number|object

name: fun

desc:

type: Func|BoundFunc

return value

desc:

type:

Sum

Sum(obj)

parameters

name: obj

desc:

type: string|number|object

return value

desc:

type:

Back to top