Methods Show Inherited
-
staticutil.getRelativePath(basePath, path){string}
-
Name Type Description basePathstring pathstring Returns:
Type Description string -
staticutil.convertUint8ArrayToString(array, isUTF8){string}
-
Name Type Default Description arrayUint8Array | Array.<number> isUTF8boolean false optional Returns:
Type Description string -
staticutil.getExtension(url){string}
-
Name Type Description urlstring Returns:
Type Description string -
staticutil.each(obj, fn)
-
Name Type Description objobject fnfunction -
staticutil.getIndexFromSortedArray(array, value, compareFn){Array.<number>}
-
Name Type Description arrayArray.<any> valueany compareFnfunction Returns:
Type Description Array.<number> -
staticutil.insertToSortedArray(array, item, compareFn)
-
Name Type Description arrayArray.<any> itemany compareFnfunction -
staticutil.padLeft(str, len, char){string}
-
Name Type Description strstring lennumber charstring Returns:
Type Description string -
staticutil.getTypedArrayGLType(array){GLenum}
-
Name Type Description arrayTypedArray Returns:
Type Description GLenum -
staticutil.getTypedArrayClass(type){any}
-
Name Type Description typeGLenum Returns:
Type Description any -
staticutil.copyArrayData(destArr, srcArr, destIdx, srcIdx, count)
-
Name Type Description destArrArray.<any> srcArrArray.<any> destIdxnumber srcIdxnumber countnumber -
staticutil.isStrOrNumber(d){boolean}
-
Name Type Description dany Returns:
Type Description boolean -
staticutil.isBlobUrl(url){boolean}
-
Name Type Description urlstring Returns:
Type Description boolean -
staticutil.revokeBlobUrl(blobUrl)
-
Name Type Description blobUrlstring -
staticutil.getBlobUrl(mimeType, data){string}
-
Name Type Description mimeTypestring dataArrayBuffer | TypedArray Returns:
Type Description string -
staticutil.isArrayLike(obj){boolean}
-
Name Type Description objany Returns:
Type Description boolean -
staticutil.getElementRect(elem){any}
-
Name Type Description elemElement Returns:
Type Description any -
staticutil.serialRun(data, fn){Promise.<any>}
-
Name Type Description dataany fnfunction Returns:
Type Description Promise.<any> -
staticutil.hasOwnProperty(obj, name){boolean}
-
Name Type Description objany namestring Returns:
Type Description boolean -
staticutil.isWebGL2(gl){boolean}
-
是否是 WebGL2
Name Type Description glany Returns:
Type Description boolean