Skip to main content

Palette

Classes

Palette

Extends

Constructors

Constructor
new Palette(items?): Palette;
Parameters
ParameterType
items?Swatch[]
Returns

Palette

Inherited from

Collection.constructor

Constructor
new Palette(items?): Palette;
Parameters
ParameterType
items?Collection<Swatch>
Returns

Palette

Inherited from

Collection.constructor

Constructor
new Palette(...items): Palette;
Parameters
ParameterType
...itemsSwatch[]
Returns

Palette

Inherited from

Collection.constructor

Accessors

empty
Get Signature
get empty(): boolean;
Returns

boolean

Inherited from

Collection.empty

length
Get Signature
get length(): number;
Returns

number

Inherited from

Collection.length

Methods

[iterator]()
iterator: ArrayIterator<Swatch>;
Returns

ArrayIterator<Swatch>

Inherited from

Collection.[iterator]

add()
add(...items): void;
Parameters
ParameterType
...itemsSwatch[]
Returns

void

Inherited from

Collection.add

addRange()
addRange(items): void;

Adds the specified items to the end of the collection.

Parameters
ParameterType
itemsany
Returns

void

Inherited from

Collection.addRange

aggregate()
Call Signature
aggregate(func): Swatch;
Parameters
ParameterType
func(prev, current) => Swatch
Returns

Swatch

Inherited from

Collection.aggregate

Call Signature
aggregate<TAccumulate>(seed, func): TAccumulate;
Type Parameters
Type Parameter
TAccumulate
Parameters
ParameterType
seedTAccumulate
func(prev, current) => TAccumulate
Returns

TAccumulate

Inherited from

Collection.aggregate

Call Signature
aggregate<TAccumulate, TResult>(
seed,
func,
resultSelector): TResult;
Type Parameters
Type Parameter
TAccumulate
TResult
Parameters
ParameterType
seedTAccumulate
func(prev, current) => TAccumulate
resultSelector(last) => TResult
Returns

TResult

Inherited from

Collection.aggregate

all()
all(predicate): boolean;
Parameters
ParameterType
predicate(element) => boolean
Returns

boolean

Inherited from

Collection.all

alternate()
Call Signature
alternate(alternateValue): IEnumerable<T>;
Parameters
ParameterType
alternateValueSwatch
Returns

IEnumerable<T>

Inherited from

Collection.alternate

Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
ParameterType
alternateSequence{ [x: number]: Swatch; length: number; }
alternateSequence.lengthnumber
Returns

IEnumerable<T>

Inherited from

Collection.alternate

Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
ParameterType
alternateSequenceIEnumerable<T>
Returns

IEnumerable<T>

Inherited from

Collection.alternate

Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
ParameterType
alternateSequenceSwatch[]
Returns

IEnumerable<T>

Inherited from

Collection.alternate

any()
any(predicate?): boolean;
Parameters
ParameterType
predicate?(element) => boolean
Returns

boolean

Inherited from

Collection.any

asEnumerable()
asEnumerable(): IEnumerable<T>;
Returns

IEnumerable<T>

Inherited from

Collection.asEnumerable

average()
average(selector?): number;
Parameters
ParameterType
selector?(element) => number
Returns

number

Inherited from

Collection.average

buffer()
buffer(count): IEnumerable<T[]>;
Parameters
ParameterType
countnumber
Returns

IEnumerable<T[]>

Inherited from

Collection.buffer

cast()
cast<TResult>(): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.cast

catchError()
catchError(handler): IEnumerable<T>;
Parameters
ParameterType
handler(exception) => void
Returns

IEnumerable<T>

Inherited from

Collection.catchError

choose()
choose(selector): IEnumerable<T>;
Parameters
ParameterType
selector(element, index) => Swatch
Returns

IEnumerable<T>

Inherited from

Collection.choose

clear()
clear(): void;

Removes all items from the collection

Returns

void

Inherited from

Collection.clear

collectionChanged()
collectionChanged(h): void;
Parameters
ParameterType
hAnyFunction
Returns

void

Inherited from

Collection.collectionChanged

collectionChanged()
collectionChanged(h): void;
Parameters
ParameterType
hAnyFunction
Returns

void

Inherited from

Collection.collectionChanged

concat()
Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
ParameterType
...sequencesIEnumerable<T>[]
Returns

IEnumerable<T>

Inherited from

Collection.concat

Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
ParameterType
...sequencesobject[]
Returns

IEnumerable<T>

Inherited from

Collection.concat

Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
ParameterType
...sequencesSwatch[]
Returns

IEnumerable<T>

Inherited from

Collection.concat

constructor()
constructor(getEnumerator): never;
Parameters
ParameterType
getEnumerator() => IEnumerator<T>
Returns

never

Inherited from
Collection.constructor;
contains()
Call Signature
contains(value): boolean;
Parameters
ParameterType
valueSwatch
Returns

boolean

Inherited from

Collection.contains

Call Signature
contains<TCompare>(value, compareSelector?): boolean;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
valueSwatch
compareSelector?(element) => TCompare
Returns

boolean

Inherited from

Collection.contains

count()
count(predicate?): number;
Parameters
ParameterType
predicate?(element, index) => boolean
Returns

number

Inherited from

Collection.count

defaultIfEmpty()
defaultIfEmpty(defaultValue?): IEnumerable<T>;
Parameters
ParameterType
defaultValue?Swatch
Returns

IEnumerable<T>

Inherited from

Collection.defaultIfEmpty

distinct()
Call Signature
distinct(): IEnumerable<T>;
Returns

IEnumerable<T>

Inherited from

Collection.distinct

Call Signature
distinct<TCompare>(compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.distinct

distinctUntilChanged()
Call Signature
distinctUntilChanged(): IEnumerable<T>;
Returns

IEnumerable<T>

Inherited from

Collection.distinctUntilChanged

Call Signature
distinctUntilChanged<TCompare>(compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.distinctUntilChanged

doAction()
Call Signature
doAction(action): IEnumerable<T>;
Parameters
ParameterType
action(element, index) => void
Returns

IEnumerable<T>

Inherited from

Collection.doAction

Call Signature
doAction(action): IEnumerable<T>;
Parameters
ParameterType
action(element, index) => boolean
Returns

IEnumerable<T>

Inherited from

Collection.doAction

elementAt()
elementAt(index): Swatch;
Parameters
ParameterType
indexnumber
Returns

Swatch

Inherited from

Collection.elementAt

elementAtOrDefault()
elementAtOrDefault(index, defaultValue?): Swatch;
Parameters
ParameterType
indexnumber
defaultValue?Swatch
Returns

Swatch

Inherited from

Collection.elementAtOrDefault

except()
Call Signature
except(second): IEnumerable<T>;
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
Returns

IEnumerable<T>

Inherited from

Collection.except

Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.except

Call Signature
except(second): IEnumerable<T>;
Parameters
ParameterType
secondIEnumerable<T>
Returns

IEnumerable<T>

Inherited from

Collection.except

Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondIEnumerable<T>
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.except

Call Signature
except(second): IEnumerable<T>;
Parameters
ParameterType
secondSwatch[]
Returns

IEnumerable<T>

Inherited from

Collection.except

Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondSwatch[]
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.except

finallyAction()
finallyAction(finallyAction): IEnumerable<T>;
Parameters
ParameterType
finallyAction() => void
Returns

IEnumerable<T>

Inherited from

Collection.finallyAction

first()
first(predicate?): Swatch;
Parameters
ParameterType
predicate?(element, index) => boolean
Returns

Swatch

Inherited from

Collection.first

firstOrDefault()
firstOrDefault(predicate?, defaultValue?): Swatch;
Parameters
ParameterType
predicate?Swatch | ((element, index) => boolean)
defaultValue?Swatch
Returns

Swatch

Inherited from

Collection.firstOrDefault

flatten()
flatten(): IEnumerable<any>;
Returns

IEnumerable<any>

Inherited from

Collection.flatten

force()
force(): void;
Returns

void

Inherited from

Collection.force

forEach()
Call Signature
forEach(action): void;
Parameters
ParameterType
action(element, index) => void
Returns

void

Inherited from

Collection.forEach

Call Signature
forEach(action): void;
Parameters
ParameterType
action(element, index) => boolean
Returns

void

Inherited from

Collection.forEach

get()
get(index): Swatch;
Parameters
ParameterType
indexnumber
Returns

Swatch

Inherited from

Collection.get

getEnumerator()
getEnumerator(): IEnumerator<T>;
Returns

IEnumerator<T>

Inherited from

Collection.getEnumerator

getItem()
getItem(index): Swatch;
Parameters
ParameterType
indexany
Returns

Swatch

Inherited from

Collection.getItem

groupBy()
Call Signature
groupBy<TKey>(keySelector): IEnumerable<IGrouping<TKey, T>>;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

IEnumerable<IGrouping<TKey, T>>

Inherited from

Collection.groupBy

Call Signature
groupBy<TKey, TElement>(keySelector, elementSelector): IEnumerable<IGrouping<TKey, TElement>>;
Type Parameters
Type Parameter
TKey
TElement
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
Returns

IEnumerable<IGrouping<TKey, TElement>>

Inherited from

Collection.groupBy

Call Signature
groupBy<TKey, TElement, TResult>(
keySelector,
elementSelector,
resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TKey
TElement
TResult
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
resultSelector(key, element) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.groupBy

Call Signature
groupBy<TKey, TElement, TResult, TCompare>(
keySelector,
elementSelector,
resultSelector,
compareSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TKey
TElement
TResult
TCompare
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
resultSelector(key, element) => TResult
compareSelector(element) => TCompare
Returns

IEnumerable<TResult>

Inherited from

Collection.groupBy

groupJoin()
Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
Type Parameter
TInner
TKey
TResult
Parameters
ParameterType
innerIEnumerable<TInner>
outerKeySelector(outer) => TKey
innerKeySelector(inner) => TKey
resultSelector(outer, inner) => TResult
compareSelector?(obj) => TKey
Returns

IEnumerable<TResult>

Inherited from

Collection.groupJoin

Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
Type Parameter
TInner
TKey
TResult
Parameters
ParameterType
inner{ [x: number]: TInner; length: number; }
inner.lengthnumber
outerKeySelector(outer) => TKey
innerKeySelector(inner) => TKey
resultSelector(outer, inner) => TResult
compareSelector?(obj) => TKey
Returns

IEnumerable<TResult>

Inherited from

Collection.groupJoin

Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
Type Parameter
TInner
TKey
TResult
Parameters
ParameterType
innerTInner[]
outerKeySelector(outer) => TKey
innerKeySelector(inner) => TKey
resultSelector(outer, inner) => TResult
compareSelector?(obj) => TKey
Returns

IEnumerable<TResult>

Inherited from

Collection.groupJoin

indexOf()
Call Signature
indexOf(item): number;
Parameters
ParameterType
itemSwatch
Returns

number

Inherited from

Collection.indexOf

Call Signature
indexOf(predicate): number;
Parameters
ParameterType
predicate(element, index) => boolean
Returns

number

Inherited from

Collection.indexOf

insert()
Call Signature
insert(index, second): IEnumerable<T>;
Parameters
ParameterType
indexnumber
secondIEnumerable<T>
Returns

IEnumerable<T>

Inherited from

Collection.insert

Call Signature
insert(index, second): IEnumerable<T>;
Parameters
ParameterType
indexnumber
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
Returns

IEnumerable<T>

Inherited from

Collection.insert

insertAt()
insertAt(index, items): void;

Inserts the specified item into the collection at the specified index.

Parameters
ParameterType
indexnumber
itemsSwatch | Swatch[]
Returns

void

Inherited from

Collection.insertAt

intersect()
Call Signature
intersect(second): IEnumerable<T>;
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
Returns

IEnumerable<T>

Inherited from

Collection.intersect

Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.intersect

Call Signature
intersect(second): IEnumerable<T>;
Parameters
ParameterType
secondIEnumerable<T>
Returns

IEnumerable<T>

Inherited from

Collection.intersect

Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondIEnumerable<T>
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.intersect

Call Signature
intersect(second): IEnumerable<T>;
Parameters
ParameterType
secondSwatch[]
Returns

IEnumerable<T>

Inherited from

Collection.intersect

Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondSwatch[]
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.intersect

isEmpty()
isEmpty(): boolean;
Returns

boolean

Inherited from

Collection.isEmpty

itemAdded()
itemAdded(h): void;
Parameters
ParameterType
h(data?) => any
Returns

void

Inherited from

Collection.itemAdded

itemAdded()
itemAdded(h): void;
Parameters
ParameterType
hany
Returns

void

Inherited from

Collection.itemAdded

itemMoved()
itemMoved(h): void;
Parameters
ParameterType
h(data?) => any
Returns

void

Inherited from

Collection.itemMoved

itemMoved()
itemMoved(h): void;
Parameters
ParameterType
h(data?) => any
Returns

void

Inherited from

Collection.itemMoved

itemRemoved()
itemRemoved(h): void;
Parameters
ParameterType
h(data?) => any
Returns

void

Inherited from

Collection.itemRemoved

itemRemoved()
itemRemoved(h): void;
Parameters
ParameterType
hany
Returns

void

Inherited from

Collection.itemRemoved

join()
Call Signature
join<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
Type Parameter
TInner
TKey
TResult
Parameters
ParameterType
innerIEnumerable<TInner>
outerKeySelector(outer) => TKey
innerKeySelector(inner) => TKey
resultSelector(outer, inner) => TResult
compareSelector?(obj) => TKey
Returns

IEnumerable<TResult>

Inherited from

Collection.join

Call Signature
join<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
Type Parameter
TInner
TKey
TResult
Parameters
ParameterType
inner{ [x: number]: TInner; length: number; }
inner.lengthnumber
outerKeySelector(outer) => TKey
innerKeySelector(inner) => TKey
resultSelector(outer, inner) => TResult
compareSelector?(obj) => TKey
Returns

IEnumerable<TResult>

Inherited from

Collection.join

Call Signature
join<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
Type Parameter
TInner
TKey
TResult
Parameters
ParameterType
innerTInner[]
outerKeySelector(outer) => TKey
innerKeySelector(inner) => TKey
resultSelector(outer, inner) => TResult
compareSelector?(obj) => TKey
Returns

IEnumerable<TResult>

Inherited from

Collection.join

last()
last(predicate?): Swatch;
Parameters
ParameterType
predicate?(element, index) => boolean
Returns

Swatch

Inherited from

Collection.last

lastIndexOf()
Call Signature
lastIndexOf(item): number;
Parameters
ParameterType
itemSwatch
Returns

number

Inherited from

Collection.lastIndexOf

Call Signature
lastIndexOf(predicate): number;
Parameters
ParameterType
predicate(element, index) => boolean
Returns

number

Inherited from

Collection.lastIndexOf

lastOrDefault()
lastOrDefault(predicate?, defaultValue?): Swatch;
Parameters
ParameterType
predicate?Swatch | ((element, index) => boolean)
defaultValue?Swatch
Returns

Swatch

Inherited from

Collection.lastOrDefault

letBind()
Call Signature
letBind<TResult>(func): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
func(source) => object
Returns

IEnumerable<TResult>

Inherited from

Collection.letBind

Call Signature
letBind<TResult>(func): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
func(source) => TResult[]
Returns

IEnumerable<TResult>

Inherited from

Collection.letBind

Call Signature
letBind<TResult>(func): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
func(source) => IEnumerable<TResult>
Returns

IEnumerable<TResult>

Inherited from

Collection.letBind

log()
Call Signature
log(): IEnumerable<T>;
Returns

IEnumerable<T>

Inherited from

Collection.log

Call Signature
log<TValue>(selector): IEnumerable<T>;
Type Parameters
Type Parameter
TValue
Parameters
ParameterType
selector(element) => TValue
Returns

IEnumerable<T>

Inherited from

Collection.log

max()
max(selector?): number;
Parameters
ParameterType
selector?(element) => number
Returns

number

Inherited from

Collection.max

maxBy()
maxBy<TKey>(keySelector): Swatch;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

Swatch

Inherited from

Collection.maxBy

memoize()
memoize(): IDisposableEnumerable<T>;
Returns

IDisposableEnumerable<T>

Inherited from

Collection.memoize

merge()
Call Signature
merge<TResult>(...params): IEnumerable<T>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
...paramsIEnumerable<T>[]
Returns

IEnumerable<T>

Inherited from

Collection.merge

Call Signature
merge<TResult>(...params): IEnumerable<T>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
...paramsobject[]
Returns

IEnumerable<T>

Inherited from

Collection.merge

Call Signature
merge<TResult>(...params): IEnumerable<T>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
...paramsSwatch[][]
Returns

IEnumerable<T>

Inherited from

Collection.merge

min()
min(selector?): number;
Parameters
ParameterType
selector?(element) => number
Returns

number

Inherited from

Collection.min

minBy()
minBy<TKey>(keySelector): Swatch;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

Swatch

Inherited from

Collection.minBy

move()
move(
oldIndex,
newIndex,
supressEvent?): Swatch;
Parameters
ParameterType
oldIndexany
newIndexany
supressEvent?boolean
Returns

Swatch

Inherited from

Collection.move

ofType()
ofType<TOf>(type): IEnumerable<TOf>;
Type Parameters
Type Parameter
TOf
Parameters
ParameterType
typeType<TOf>
Returns

IEnumerable<TOf>

Inherited from

Collection.ofType

orderBy()
orderBy<TKey>(keySelector): IOrderedEnumerable<T>;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

IOrderedEnumerable<T>

Inherited from

Collection.orderBy

orderByDescending()
orderByDescending<TKey>(keySelector): IOrderedEnumerable<T>;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

IOrderedEnumerable<T>

Inherited from

Collection.orderByDescending

pairwise()
pairwise<TResult>(selector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
selector(prev, current) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.pairwise

partitionBy()
Call Signature
partitionBy<TKey>(keySelector): IEnumerable<IGrouping<TKey, any>>;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

IEnumerable<IGrouping<TKey, any>>

Inherited from

Collection.partitionBy

Call Signature
partitionBy<TKey, TElement>(keySelector, elementSelector): IEnumerable<IGrouping<TKey, TElement>>;
Type Parameters
Type Parameter
TKey
TElement
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
Returns

IEnumerable<IGrouping<TKey, TElement>>

Inherited from

Collection.partitionBy

Call Signature
partitionBy<TKey, TElement, TResult>(
keySelector,
elementSelector,
resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TKey
TElement
TResult
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
resultSelector(key, element) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.partitionBy

Call Signature
partitionBy<TKey, TElement, TResult, TCompare>(
keySelector,
elementSelector,
resultSelector,
compareSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TKey
TElement
TResult
TCompare
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
resultSelector(key, element) => TResult
compareSelector(element) => TCompare
Returns

IEnumerable<TResult>

Inherited from

Collection.partitionBy

push()
push(item): number;
Parameters
ParameterType
itemSwatch
Returns

number

Inherited from

Collection.push

remove()
remove(item): Swatch;
Parameters
ParameterType
itemSwatch
Returns

Swatch

Inherited from

Collection.remove

removeAt()
removeAt(index): Swatch;

Removes the item at the specified index of the collection.

Parameters
ParameterType
indexnumber
Returns

Swatch

Inherited from

Collection.removeAt

removeRange()
removeRange(from, to): Swatch[];
Parameters
ParameterType
fromnumber
tonumber
Returns

Swatch[]

Inherited from

Collection.removeRange

replaceAt()
replaceAt(item, index): void;
Parameters
ParameterType
itemSwatch
indexnumber
Returns

void

Inherited from

Collection.replaceAt

reverse()
reverse(): IEnumerable<T>;
Returns

IEnumerable<T>

Inherited from

Collection.reverse

scan()
Call Signature
scan(func): IEnumerable<T>;
Parameters
ParameterType
func(prev, current) => Swatch
Returns

IEnumerable<T>

Inherited from

Collection.scan

Call Signature
scan<TAccumulate>(seed, func): IEnumerable<TAccumulate>;
Type Parameters
Type Parameter
TAccumulate
Parameters
ParameterType
seedTAccumulate
func(prev, current) => TAccumulate
Returns

IEnumerable<TAccumulate>

Inherited from

Collection.scan

select()
select<TResult>(selector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
selector(element, index) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.select

selectMany()
Call Signature
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
Type Parameters
Type Parameter
TOther
Parameters
ParameterType
collectionSelector(element, index) => IEnumerable<TOther>
Returns

IEnumerable<TOther>

Inherited from

Collection.selectMany

Call Signature
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TCollection
TResult
Parameters
ParameterType
collectionSelector(element, index) => IEnumerable<TCollection>
resultSelector(outer, inner) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.selectMany

Call Signature
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
Type Parameters
Type Parameter
TOther
Parameters
ParameterType
collectionSelector(element, index) => TOther[]
Returns

IEnumerable<TOther>

Inherited from

Collection.selectMany

Call Signature
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TCollection
TResult
Parameters
ParameterType
collectionSelector(element, index) => TCollection[]
resultSelector(outer, inner) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.selectMany

Call Signature
selectMany<TOther>(collectionSelector): IEnumerable<TOther>;
Type Parameters
Type Parameter
TOther
Parameters
ParameterType
collectionSelector(element, index) => object
Returns

IEnumerable<TOther>

Inherited from

Collection.selectMany

Call Signature
selectMany<TCollection, TResult>(collectionSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TCollection
TResult
Parameters
ParameterType
collectionSelector(element, index) => object
resultSelector(outer, inner) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.selectMany

sequenceEqual()
Call Signature
sequenceEqual(second): boolean;
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
Returns

boolean

Inherited from

Collection.sequenceEqual

Call Signature
sequenceEqual<TCompare>(second, compareSelector): boolean;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
compareSelector(element) => TCompare
Returns

boolean

Inherited from

Collection.sequenceEqual

Call Signature
sequenceEqual(second): boolean;
Parameters
ParameterType
secondIEnumerable<T>
Returns

boolean

Inherited from

Collection.sequenceEqual

Call Signature
sequenceEqual<TCompare>(second, compareSelector): boolean;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondIEnumerable<T>
compareSelector(element) => TCompare
Returns

boolean

Inherited from

Collection.sequenceEqual

Call Signature
sequenceEqual(second): boolean;
Parameters
ParameterType
secondSwatch[]
Returns

boolean

Inherited from

Collection.sequenceEqual

Call Signature
sequenceEqual<TCompare>(second, compareSelector): boolean;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondSwatch[]
compareSelector(element) => TCompare
Returns

boolean

Inherited from

Collection.sequenceEqual

set()
set(index, value): void;
Parameters
ParameterType
indexnumber
valueSwatch
Returns

void

Inherited from

Collection.set

setRange()
setRange(items): void;
Parameters
ParameterType
itemsany
Returns

void

Inherited from

Collection.setRange

share()
share(): IDisposableEnumerable<T>;
Returns

IDisposableEnumerable<T>

Inherited from

Collection.share

shuffle()
shuffle(): IEnumerable<T>;
Returns

IEnumerable<T>

Inherited from

Collection.shuffle

single()
single(predicate?): Swatch;
Parameters
ParameterType
predicate?(element, index) => boolean
Returns

Swatch

Inherited from

Collection.single

singleOrDefault()
singleOrDefault(predicate?, defaultValue?): Swatch;
Parameters
ParameterType
predicate?(element, index) => boolean
defaultValue?Swatch
Returns

Swatch

Inherited from

Collection.singleOrDefault

skip()
skip(count): IEnumerable<T>;
Parameters
ParameterType
countnumber
Returns

IEnumerable<T>

Inherited from

Collection.skip

skipWhile()
skipWhile(predicate): IEnumerable<T>;
Parameters
ParameterType
predicate(element, index) => boolean
Returns

IEnumerable<T>

Inherited from

Collection.skipWhile

sum()
sum(selector?): number;
Parameters
ParameterType
selector?(element) => number
Returns

number

Inherited from

Collection.sum

take()
take(count): IEnumerable<T>;
Parameters
ParameterType
countnumber
Returns

IEnumerable<T>

Inherited from

Collection.take

takeExceptLast()
takeExceptLast(count?): IEnumerable<T>;
Parameters
ParameterType
count?number
Returns

IEnumerable<T>

Inherited from

Collection.takeExceptLast

takeFromLast()
takeFromLast(count): IEnumerable<T>;
Parameters
ParameterType
countnumber
Returns

IEnumerable<T>

Inherited from

Collection.takeFromLast

takeWhile()
takeWhile(predicate): IEnumerable<T>;
Parameters
ParameterType
predicate(element, index) => boolean
Returns

IEnumerable<T>

Inherited from

Collection.takeWhile

toArray()
toArray(): Swatch[];
Returns

Swatch[]

Inherited from

Collection.toArray

toDictionary()
Call Signature
toDictionary<TKey>(keySelector): IDictionary<TKey, any>;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

IDictionary<TKey, any>

Inherited from

Collection.toDictionary

Call Signature
toDictionary<TKey, TValue>(keySelector, elementSelector): IDictionary<TKey, TValue>;
Type Parameters
Type Parameter
TKey
TValue
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TValue
Returns

IDictionary<TKey, TValue>

Inherited from

Collection.toDictionary

Call Signature
toDictionary<TKey, TValue, TCompare>(
keySelector,
elementSelector,
compareSelector): IDictionary<TKey, TValue>;
Type Parameters
Type Parameter
TKey
TValue
TCompare
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TValue
compareSelector(key) => TCompare
Returns

IDictionary<TKey, TValue>

Inherited from

Collection.toDictionary

toJoinedString()
Call Signature
toJoinedString(separator?): string;
Parameters
ParameterType
separator?string
Returns

string

Inherited from

Collection.toJoinedString

Call Signature
toJoinedString<TResult>(separator, selector): string;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
separatorstring
selector(element, index) => TResult
Returns

string

Inherited from

Collection.toJoinedString

toJSONString()
Call Signature
toJSONString(replacer): string;
Parameters
ParameterType
replacer(key, value) => any
Returns

string

Inherited from

Collection.toJSONString

Call Signature
toJSONString(replacer): string;
Parameters
ParameterType
replacerany[]
Returns

string

Inherited from

Collection.toJSONString

Call Signature
toJSONString(replacer, space): string;
Parameters
ParameterType
replacer(key, value) => any
spaceany
Returns

string

Inherited from

Collection.toJSONString

Call Signature
toJSONString(replacer, space): string;
Parameters
ParameterType
replacerany[]
spaceany
Returns

string

Inherited from

Collection.toJSONString

toLookup()
Call Signature
toLookup<TKey>(keySelector): ILookup<TKey, T>;
Type Parameters
Type Parameter
TKey
Parameters
ParameterType
keySelector(element) => TKey
Returns

ILookup<TKey, T>

Inherited from

Collection.toLookup

Call Signature
toLookup<TKey, TElement>(keySelector, elementSelector): ILookup<TKey, TElement>;
Type Parameters
Type Parameter
TKey
TElement
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
Returns

ILookup<TKey, TElement>

Inherited from

Collection.toLookup

Call Signature
toLookup<TKey, TElement, TCompare>(
keySelector,
elementSelector,
compareSelector): ILookup<TKey, TElement>;
Type Parameters
Type Parameter
TKey
TElement
TCompare
Parameters
ParameterType
keySelector(element) => TKey
elementSelector(element) => TElement
compareSelector(key) => TCompare
Returns

ILookup<TKey, TElement>

Inherited from

Collection.toLookup

toObject()
toObject(keySelector, elementSelector?): Object;
Parameters
ParameterType
keySelector(element) => any
elementSelector?(element) => any
Returns

Object

Inherited from

Collection.toObject

trace()
Call Signature
trace(message?): IEnumerable<T>;
Parameters
ParameterType
message?string
Returns

IEnumerable<T>

Inherited from

Collection.trace

Call Signature
trace<TValue>(message, selector): IEnumerable<T>;
Type Parameters
Type Parameter
TValue
Parameters
ParameterType
messagestring
selector(element) => TValue
Returns

IEnumerable<T>

Inherited from

Collection.trace

traverseBreadthFirst()
Call Signature
traverseBreadthFirst(childrenSelector): IEnumerable<T>;
Parameters
ParameterType
childrenSelector(element) => IEnumerable<T>
Returns

IEnumerable<T>

Inherited from

Collection.traverseBreadthFirst

Call Signature
traverseBreadthFirst<TResult>(childrenSelector, resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
childrenSelector(element) => IEnumerable<T>
resultSelector(element, nestLevel) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.traverseBreadthFirst

traverseDepthFirst()
Call Signature
traverseDepthFirst<TResult>(childrenSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
childrenSelector(element) => IEnumerable<T>
Returns

IEnumerable<T>

Inherited from

Collection.traverseDepthFirst

Call Signature
traverseDepthFirst<TResult>(childrenSelector, resultSelector?): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
childrenSelector(element) => IEnumerable<T>
resultSelector?(element, nestLevel) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.traverseDepthFirst

union()
Call Signature
union(second): IEnumerable<T>;
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
Returns

IEnumerable<T>

Inherited from

Collection.union

Call Signature
union<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.union

Call Signature
union(second): IEnumerable<T>;
Parameters
ParameterType
secondIEnumerable<T>
Returns

IEnumerable<T>

Inherited from

Collection.union

Call Signature
union<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondIEnumerable<T>
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.union

Call Signature
union(second): IEnumerable<T>;
Parameters
ParameterType
secondSwatch[]
Returns

IEnumerable<T>

Inherited from

Collection.union

Call Signature
union<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
Type Parameter
TCompare
Parameters
ParameterType
secondSwatch[]
compareSelector(element) => TCompare
Returns

IEnumerable<T>

Inherited from

Collection.union

weightedSample()
weightedSample(weightSelector): IEnumerable<T>;
Parameters
ParameterType
weightSelector(element) => number
Returns

IEnumerable<T>

Inherited from

Collection.weightedSample

where()
where(predicate): IEnumerable<T>;
Parameters
ParameterType
predicate(element, index) => boolean
Returns

IEnumerable<T>

Inherited from

Collection.where

write()
Call Signature
write(separator?): void;
Parameters
ParameterType
separator?string
Returns

void

Inherited from

Collection.write

Call Signature
write<TResult>(separator, selector): void;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
separatorstring
selector(element) => TResult
Returns

void

Inherited from

Collection.write

writeLine()
Call Signature
writeLine(): void;
Returns

void

Inherited from

Collection.writeLine

Call Signature
writeLine<TResult>(selector): void;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
selector(element) => TResult
Returns

void

Inherited from

Collection.writeLine

zip()
Call Signature
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
secondIEnumerable<T>
resultSelector(first, second, index) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.zip

Call Signature
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
second{ [x: number]: Swatch; length: number; }
second.lengthnumber
resultSelector(first, second, index) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.zip

Call Signature
zip<TResult>(second, resultSelector): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
secondSwatch[]
resultSelector(first, second, index) => TResult
Returns

IEnumerable<TResult>

Inherited from

Collection.zip

Call Signature
zip<TResult>(...params): IEnumerable<TResult>;
Type Parameters
Type Parameter
TResult
Parameters
ParameterType
...paramsany[]
Returns

IEnumerable<TResult>

Inherited from

Collection.zip

Was this page helpful?