Members
-
constant_keyStr
-
_XMLHttpRequest
-
获取 XMLHttpRequest 对象,如果 Tiny._XMLHttpRequest 存在,则取之,如果没有,则创建一个 XMLHttpRequest 对象,并存之。
如果 Tiny._XMLHttpRequest 正在使用中,则返回一个新建的 XMLHttpRequest -
constantapple_phone
-
isMobile.js v0.5.2
-
TheglCore.GLBuffer
-
The vertex buffer
-
TheglCore.VertexArrayObject
-
The vertex array object
Methods
-
_noop()
-
Smaller version of the async library constructs.
-
eachSeries(array, iterator, callback, deferNext)
-
Iterates an array in series.
Name Type Default Description arrayarray.<*> Array to iterate.
iteratorfunction Function to call for each element.
callbackfunction Function to call when done, or on error.
deferNextboolean false optional Break synchronous each loop by calling next with a setTimeout of 1.
-
encodeBinary(input) ❯ {string}
-
Name Type Description inputstring Returns:
Type Description string -
isPow2()
-
bit-twiddle v1.0.1
-
onlyOnce(fn) ❯ {function}
-
Ensures a function is only called once.
Name Type Description fnfunction The function to wrap.
Returns:
Type Description function The wrapping function. -
queue(worker, concurrency) ❯ {*}
-
Async queue implementation,
Name Type Description workerfunction The worker function to call for each task.
concurrencynumber How many workers to run in parrallel.
Returns:
Type Description * The async queue object. -
resolve(source, relative)
-
简单的 Node.js
url.resolve实现Name Type Description sourcestring relativestring 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 MediamediaType type, eg.
imageSubsubType type, eg.
pngDataencoding encoding, eg.
base64Thedata actual data
-
FrameObjectobject
-
Properties:
Name Type Description textureTiny.Texture The Tiny.Texture of the frame
timenumber the duration of the frame in ms
-
Sizeobject
-
Typedef for Size object.
Properties:
Name Type Description Widthwidth component
Heightheight component