-
Notifications
You must be signed in to change notification settings - Fork 1
FrameBuffer
-
Uint8ClampedArray
↳
FrameBuffer
- [iterator]
- at
- copyWithin
- entries
- every
- fill
- filter
- find
- findIndex
- forEach
- includes
- indexOf
- join
- keys
- lastIndexOf
- map
- reduce
- reduceRight
- reverse
- set
- slice
- some
- sort
- subarray
- toLocaleString
- toString
- valueOf
- values
- from
- of
• new FrameBuffer(rowCount
, columnCount
)
Name | Type |
---|---|
rowCount |
number |
columnCount |
number |
Uint8ClampedArray.constructor
• Readonly
BYTES_PER_ELEMENT: number
The size in bytes of each element in the array.
Uint8ClampedArray.BYTES_PER_ELEMENT
node_modules/typescript/lib/lib.es5.d.ts:2415
• Readonly
[toStringTag]: "Uint8ClampedArray"
Uint8ClampedArray.__@toStringTag@1577
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:286
• Readonly
buffer: ArrayBufferLike
The ArrayBuffer instance referenced by the array.
Uint8ClampedArray.buffer
node_modules/typescript/lib/lib.es5.d.ts:2420
• Readonly
byteLength: number
The length in bytes of the array.
Uint8ClampedArray.byteLength
node_modules/typescript/lib/lib.es5.d.ts:2425
• Readonly
byteOffset: number
The offset in bytes of the array.
Uint8ClampedArray.byteOffset
node_modules/typescript/lib/lib.es5.d.ts:2430
• Readonly
length: number
The length of the array.
Uint8ClampedArray.length
node_modules/typescript/lib/lib.es5.d.ts:2529
▪ Static
Readonly
BYTES_PER_ELEMENT: number
The size in bytes of each element in the array.
Uint8ClampedArray.BYTES_PER_ELEMENT
node_modules/typescript/lib/lib.es5.d.ts:2664
▸ [iterator](): IterableIterator
<number
>
IterableIterator
<number
>
Uint8ClampedArray.__@iterator@243
node_modules/typescript/lib/lib.es2015.iterable.d.ts:300
▸ at(index
): undefined
| number
Returns the item located at the specified index.
Name | Type | Description |
---|---|---|
index |
number |
The zero-based index of the desired code unit. A negative index will count back from the last item. |
undefined
| number
Uint8ClampedArray.at
node_modules/typescript/lib/lib.es2022.array.d.ts:58
▸ copyWithin(target
, start
, end?
): FrameBuffer
Returns the this object after copying a section of the array identified by start and end to the same array starting at position target
Name | Type | Description |
---|---|---|
target |
number |
If target is negative, it is treated as length+target where length is the length of the array. |
start |
number |
If start is negative, it is treated as length+start. If end is negative, it is treated as length+end. |
end? |
number |
If not specified, length of the this object is used as its default value. |
Uint8ClampedArray.copyWithin
node_modules/typescript/lib/lib.es5.d.ts:2441
▸ entries(): IterableIterator
<[number
, number
]>
Returns an array of key, value pairs for every entry in the array
IterableIterator
<[number
, number
]>
Uint8ClampedArray.entries
node_modules/typescript/lib/lib.es2015.iterable.d.ts:304
▸ every(predicate
, thisArg?
): boolean
Determines whether all the members of an array satisfy the specified test.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , array : Uint8ClampedArray ) => unknown
|
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array. |
thisArg? |
any |
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. |
boolean
Uint8ClampedArray.every
node_modules/typescript/lib/lib.es5.d.ts:2451
▸ fill(value
, start?
, end?
): FrameBuffer
Changes all array elements from start
to end
index to a static value
and returns the modified array
Name | Type | Description |
---|---|---|
value |
number |
value to fill array section with |
start? |
number |
index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array. |
end? |
number |
index to stop filling the array at. If end is negative, it is treated as length+end. |
Uint8ClampedArray.fill
node_modules/typescript/lib/lib.es5.d.ts:2461
▸ filter(predicate
, thisArg?
): Uint8ClampedArray
Returns the elements of an array that meet the condition specified in a callback function.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , array : Uint8ClampedArray ) => any
|
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. |
thisArg? |
any |
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. |
Uint8ClampedArray
Uint8ClampedArray.filter
node_modules/typescript/lib/lib.es5.d.ts:2470
▸ find(predicate
, thisArg?
): undefined
| number
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , obj : Uint8ClampedArray ) => boolean
|
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. |
thisArg? |
any |
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead. |
undefined
| number
Uint8ClampedArray.find
node_modules/typescript/lib/lib.es5.d.ts:2481
▸ findIndex(predicate
, thisArg?
): number
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , obj : Uint8ClampedArray ) => boolean
|
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1. |
thisArg? |
any |
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead. |
number
Uint8ClampedArray.findIndex
node_modules/typescript/lib/lib.es5.d.ts:2492
▸ forEach(callbackfn
, thisArg?
): void
Performs the specified action for each element in an array.
Name | Type | Description |
---|---|---|
callbackfn |
(value : number , index : number , array : Uint8ClampedArray ) => void
|
A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. |
thisArg? |
any |
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. |
void
Uint8ClampedArray.forEach
node_modules/typescript/lib/lib.es5.d.ts:2501
▸ includes(searchElement
, fromIndex?
): boolean
Determines whether an array includes a certain element, returning true or false as appropriate.
Name | Type | Description |
---|---|---|
searchElement |
number |
The element to search for. |
fromIndex? |
number |
The position in this array at which to begin searching for searchElement. |
boolean
Uint8ClampedArray.includes
node_modules/typescript/lib/lib.es2016.array.include.d.ts:63
▸ indexOf(searchElement
, fromIndex?
): number
Returns the index of the first occurrence of a value in an array.
Name | Type | Description |
---|---|---|
searchElement |
number |
The value to locate in the array. |
fromIndex? |
number |
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. |
number
Uint8ClampedArray.indexOf
node_modules/typescript/lib/lib.es5.d.ts:2509
▸ join(separator?
): string
Adds all the elements of an array separated by the specified separator string.
Name | Type | Description |
---|---|---|
separator? |
string |
A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. |
string
Uint8ClampedArray.join
node_modules/typescript/lib/lib.es5.d.ts:2516
▸ keys(): IterableIterator
<number
>
Returns an list of keys in the array
IterableIterator
<number
>
Uint8ClampedArray.keys
node_modules/typescript/lib/lib.es2015.iterable.d.ts:309
▸ lastIndexOf(searchElement
, fromIndex?
): number
Returns the index of the last occurrence of a value in an array.
Name | Type | Description |
---|---|---|
searchElement |
number |
The value to locate in the array. |
fromIndex? |
number |
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. |
number
Uint8ClampedArray.lastIndexOf
node_modules/typescript/lib/lib.es5.d.ts:2524
▸ map(callbackfn
, thisArg?
): Uint8ClampedArray
Calls a defined callback function on each element of an array, and returns an array that contains the results.
Name | Type | Description |
---|---|---|
callbackfn |
(value : number , index : number , array : Uint8ClampedArray ) => number
|
A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. |
thisArg? |
any |
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. |
Uint8ClampedArray
Uint8ClampedArray.map
node_modules/typescript/lib/lib.es5.d.ts:2539
▸ reduce(callbackfn
): number
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8ClampedArray ) => number
|
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. |
number
Uint8ClampedArray.reduce
node_modules/typescript/lib/lib.es5.d.ts:2551
▸ reduce(callbackfn
, initialValue
): number
Name | Type |
---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8ClampedArray ) => number
|
initialValue |
number |
number
Uint8ClampedArray.reduce
node_modules/typescript/lib/lib.es5.d.ts:2552
▸ reduce<U
>(callbackfn
, initialValue
): U
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name |
---|
U |
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : U , currentValue : number , currentIndex : number , array : Uint8ClampedArray ) => U
|
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. |
initialValue |
U |
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. |
U
Uint8ClampedArray.reduce
node_modules/typescript/lib/lib.es5.d.ts:2564
▸ reduceRight(callbackfn
): number
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8ClampedArray ) => number
|
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. |
number
Uint8ClampedArray.reduceRight
node_modules/typescript/lib/lib.es5.d.ts:2576
▸ reduceRight(callbackfn
, initialValue
): number
Name | Type |
---|---|
callbackfn |
(previousValue : number , currentValue : number , currentIndex : number , array : Uint8ClampedArray ) => number
|
initialValue |
number |
number
Uint8ClampedArray.reduceRight
node_modules/typescript/lib/lib.es5.d.ts:2577
▸ reduceRight<U
>(callbackfn
, initialValue
): U
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Name |
---|
U |
Name | Type | Description |
---|---|---|
callbackfn |
(previousValue : U , currentValue : number , currentIndex : number , array : Uint8ClampedArray ) => U
|
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. |
initialValue |
U |
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. |
U
Uint8ClampedArray.reduceRight
node_modules/typescript/lib/lib.es5.d.ts:2589
▸ reverse(): Uint8ClampedArray
Reverses the elements in an Array.
Uint8ClampedArray
Uint8ClampedArray.reverse
node_modules/typescript/lib/lib.es5.d.ts:2594
▸ set(array
, offset?
): void
Sets a value or an array of values.
Name | Type | Description |
---|---|---|
array |
ArrayLike <number > |
A typed or untyped array of values to set. |
offset? |
number |
The index in the current array at which the values are to be written. |
void
Uint8ClampedArray.set
node_modules/typescript/lib/lib.es5.d.ts:2601
▸ slice(start?
, end?
): Uint8ClampedArray
Returns a section of an array.
Name | Type | Description |
---|---|---|
start? |
number |
The beginning of the specified portion of the array. |
end? |
number |
The end of the specified portion of the array. This is exclusive of the element at the index 'end'. |
Uint8ClampedArray
Uint8ClampedArray.slice
node_modules/typescript/lib/lib.es5.d.ts:2608
▸ some(predicate
, thisArg?
): boolean
Determines whether the specified callback function returns true for any element of an array.
Name | Type | Description |
---|---|---|
predicate |
(value : number , index : number , array : Uint8ClampedArray ) => unknown
|
A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. |
thisArg? |
any |
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. |
boolean
Uint8ClampedArray.some
node_modules/typescript/lib/lib.es5.d.ts:2618
▸ sort(compareFn?
): FrameBuffer
Sorts an array.
Name | Type | Description |
---|---|---|
compareFn? |
(a : number , b : number ) => number
|
Function used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise. If omitted, the elements are sorted in ascending order. ts [11,2,22,1].sort((a, b) => a - b)
|
Uint8ClampedArray.sort
node_modules/typescript/lib/lib.es5.d.ts:2629
▸ subarray(begin?
, end?
): Uint8ClampedArray
Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
Name | Type | Description |
---|---|---|
begin? |
number |
The index of the beginning of the array. |
end? |
number |
The index of the end of the array. |
Uint8ClampedArray
Uint8ClampedArray.subarray
node_modules/typescript/lib/lib.es5.d.ts:2637
▸ toLocaleString(): string
Converts a number to a string by using the current locale.
string
Uint8ClampedArray.toLocaleString
node_modules/typescript/lib/lib.es5.d.ts:2642
▸ toString(): string
Returns a string representation of an array.
string
Uint8ClampedArray.toString
node_modules/typescript/lib/lib.es5.d.ts:2647
▸ valueOf(): Uint8ClampedArray
Returns the primitive value of the specified object.
Uint8ClampedArray
Uint8ClampedArray.valueOf
node_modules/typescript/lib/lib.es5.d.ts:2650
▸ values(): IterableIterator
<number
>
Returns an list of values in the array
IterableIterator
<number
>
Uint8ClampedArray.values
node_modules/typescript/lib/lib.es2015.iterable.d.ts:314
▸ Static
from(arrayLike
): Uint8ClampedArray
Creates an array from an array-like or iterable object.
Name | Type | Description |
---|---|---|
arrayLike |
ArrayLike <number > |
An array-like or iterable object to convert to an array. |
Uint8ClampedArray
Uint8ClampedArray.from
node_modules/typescript/lib/lib.es5.d.ts:2676
▸ Static
from<T
>(arrayLike
, mapfn
, thisArg?
): Uint8ClampedArray
Creates an array from an array-like or iterable object.
Name |
---|
T |
Name | Type | Description |
---|---|---|
arrayLike |
ArrayLike <T > |
An array-like or iterable object to convert to an array. |
mapfn |
(v : T , k : number ) => number
|
A mapping function to call on every element of the array. |
thisArg? |
any |
Value of 'this' used to invoke the mapfn. |
Uint8ClampedArray
Uint8ClampedArray.from
node_modules/typescript/lib/lib.es5.d.ts:2684
▸ Static
from(arrayLike
, mapfn?
, thisArg?
): Uint8ClampedArray
Creates an array from an array-like or iterable object.
Name | Type | Description |
---|---|---|
arrayLike |
Iterable <number > |
An array-like or iterable object to convert to an array. |
mapfn? |
(v : number , k : number ) => number
|
A mapping function to call on every element of the array. |
thisArg? |
any |
Value of 'this' used to invoke the mapfn. |
Uint8ClampedArray
Uint8ClampedArray.from
node_modules/typescript/lib/lib.es2015.iterable.d.ts:327
▸ Static
of(...items
): Uint8ClampedArray
Returns a new array from a set of elements.
Name | Type | Description |
---|---|---|
...items |
number [] |
A set of elements to include in the new array object. |
Uint8ClampedArray
Uint8ClampedArray.of
node_modules/typescript/lib/lib.es5.d.ts:2670