3.1.8 • Published 3 years ago

ku4es-ui-data v3.1.8

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

Classes

Functions

BinaryFile

Kind: global class
Summary: A binary file abstraction that exposes methods for reading data from a binary file.

new BinaryFile(byteString)

Param
byteString

binaryFile.toBlob(mimeType) ⇒ Blob

Kind: instance method of BinaryFile
Access: public

ParamTypeDescription
mimeTypestringA valid MIMEType

BinaryFile.parseDataUrl(dataUrl) ⇒ BinaryFile

Kind: static method of BinaryFile
Access: public

Param
dataUrl

createBlobFromBinaryArray(binaryArray, mimeType) ⇒ Blob

Kind: global function
Summary: Creates a Blob from a binary array, e.g. Uint16Array

ParamType
binaryArrayTypedArray
mimeTypestring

createBlobFromDataUrl(dataUrl) ⇒ Blob

Kind: global function
Summary: Creates a blob from a dataURL

ParamType
dataUrlstring

readExifDataInDataUrl(dataUrl) ⇒ Object | Object

Kind: global function
Summary: Reads exif data out of a dataURL

ParamType
dataUrlstring

blobFromSrc(src, options) ⇒ Promise.<Blob>

Kind: global function
Summary: Convert an image at src url to blob

ParamTypeDescription
srcstringpath to target image or dataURL
optionsObject
options.crossOriginbooleanSet to true to support cross origin sources.
options.mimeTypestringA valid MIME type.
options.maxAttemptsnumberThe maximum number of attempts to convert before timeout.
options.resolutionnumber
options.resolution.xnumberPixel dimension resolution on the x-axis.
options.resolution.ynumberPixel dimension resolution on the y-axis.
options.orientationnumberCurrent orientation. A number 1-8 following EXIF Orientation rules.

dataUrlFromSrc(src, options) ⇒ Promise.<string>

Kind: global function
Summary: Convert an image at src url to a dataURL

ParamTypeDescription
srcstringpath to target image
optionsObject
options.crossOriginbooleanSet to true to support cross origin sources.
options.mimeTypestringA valid MIME type.
options.maxAttemptsnumberThe maximum number of attempts to convert before timeout.
options.resolutionnumber
options.resolution.xnumberPixel dimension resolution on the x-axis.
options.resolution.ynumberPixel dimension resolution on the y-axis.
options.orientationnumberCurrent orientation. A number 1-8 following EXIF Orientation rules.

dataUrlFromFile(file, options) ⇒ Promise.<string>

Kind: global function
Summary: Convert an image file to a dataURL

ParamTypeDescription
fileFileFile to convert
optionsObject
options.crossOriginbooleanSet to true to support cross origin sources.
options.mimeTypestringA valid MIME type.
options.maxAttemptsnumberThe maximum number of attempts to convert before timeout.
options.resolutionnumber
options.resolution.xnumberPixel dimension resolution on the x-axis.
options.resolution.ynumberPixel dimension resolution on the y-axis.
options.orientationnumberCurrent orientation. A number 1-8 following EXIF Orientation rules.

blobFromFile(file, options) ⇒ Promise.<Blob>

Kind: global function
Summary: Convert an image file to a Blob

ParamTypeDescription
fileFileFile to convert
optionsObject
options.crossOriginbooleanSet to true to support cross origin sources.
options.mimeTypestringA valid MIME type.
options.maxAttemptsnumberThe maximum number of attempts to convert before timeout.
options.resolutionnumber
options.resolution.xnumberPixel dimension resolution on the x-axis.
options.resolution.ynumberPixel dimension resolution on the y-axis.
options.orientationnumberCurrent orientation. A number 1-8 following EXIF Orientation rules.
3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago