Global

Members

constant_keyStr

See:

_XMLHttpRequest

获取 XMLHttpRequest 对象,如果 Tiny._XMLHttpRequest 存在,则取之,如果没有,则创建一个 XMLHttpRequest 对象,并存之。
如果 Tiny._XMLHttpRequest 正在使用中,则返回一个新建的 XMLHttpRequest

constantapple_phone

isMobile.js v0.5.2

See:

TheglCore.GLBuffer

The vertex buffer

TheglCore.VertexArrayObject

The vertex array object

Methods

Smaller version of the async library constructs.

eachSeries(array, iterator, callback, deferNext)

Iterates an array in series.

Name Type Default Description
array array.<*>

Array to iterate.

iterator function

Function to call for each element.

callback function

Function to call when done, or on error.

deferNext boolean false optional

Break synchronous each loop by calling next with a setTimeout of 1.

encodeBinary(input){string}

Name Type Description
input string
Returns:
Type Description
string

bit-twiddle v1.0.1

See:

onlyOnce(fn){function}

Ensures a function is only called once.

Name Type Description
fn function

The function to wrap.

Returns:
Type Description
function The wrapping function.

queue(worker, concurrency){*}

Async queue implementation,

Name Type Description
worker function

The worker function to call for each task.

concurrency number

How many workers to run in parrallel.

Returns:
Type Description
* The async queue object.

resolve(source, relative)

简单的 Node.js url.resolve 实现

Name Type Description
source string
relative string
Example
Tiny.url.resolve('/one/two/three', 'four');
//=> '/one/two/four'
Tiny.url.resolve('http://example.com/', '/one');
//=> 'http://example.com/one'
Tiny.url.resolve('http://example.com/one', '/two');
//=> 'http://example.com/two'
Tiny.url.resolve('http://example.com/one/two', '/three');
//=> 'http://example.com/three'
Tiny.url.resolve('http://example.com/one/two', 'three');
//=> 'http://example.com/one/three'
Tiny.url.resolve('http://example.com/one/two', './three');
//=> 'http://example.com/one/three'
Tiny.url.resolve('http://example.com/one/two', '../three');
//=> 'http://example.com/three'

Type Definitions

DecomposedDataUriobject

Typedef for decomposeDataUri return object.

Properties:
Name Type Description
Media mediaType

type, eg. image

Sub subType

type, eg. png

Data encoding

encoding, eg. base64

The data

actual data

FrameObjectobject

Properties:
Name Type Description
texture Tiny.Texture

The Tiny.Texture of the frame

time number

the duration of the frame in ms

Sizeobject

Typedef for Size object.

Properties:
Name Type Description
Width width

component

Height height

component

Documentation generated by JSDoc 3.4.3 on Fri Jul 09 2021 19:32:26 GMT+0800 (CST)