Palette
Classes
Palette
Extends
Constructors
Constructor
new Palette(items?): Palette;
Parameters
| Parameter | Type |
|---|---|
items? | Swatch[] |
Returns
Inherited from
Constructor
new Palette(items?): Palette;
Parameters
| Parameter | Type |
|---|---|
items? | Collection<Swatch> |
Returns
Inherited from
Constructor
new Palette(...items): Palette;
Parameters
| Parameter | Type |
|---|---|
...items | Swatch[] |
Returns
Inherited from
Accessors
empty
Get Signature
get empty(): boolean;
Returns
boolean
Inherited from
length
Get Signature
get length(): number;
Returns
number
Inherited from
Methods
[iterator]()
iterator: ArrayIterator<Swatch>;
Returns
ArrayIterator<Swatch>
Inherited from
add()
add(...items): void;
Parameters
| Parameter | Type |
|---|---|
...items | Swatch[] |
Returns
void
Inherited from
addRange()
addRange(items): void;
Adds the specified items to the end of the collection.
Parameters
| Parameter | Type |
|---|---|
items | any |
Returns
void
Inherited from
aggregate()
Call Signature
aggregate(func): Swatch;
Parameters
| Parameter | Type |
|---|---|
func | (prev, current) => Swatch |
Returns
Inherited from
Call Signature
aggregate<TAccumulate>(seed, func): TAccumulate;
Type Parameters
| Type Parameter |
|---|
TAccumulate |
Parameters
| Parameter | Type |
|---|---|
seed | TAccumulate |
func | (prev, current) => TAccumulate |
Returns
TAccumulate
Inherited from
Call Signature
aggregate<TAccumulate, TResult>(
seed,
func,
resultSelector): TResult;
Type Parameters
| Type Parameter |
|---|
TAccumulate |
TResult |
Parameters
| Parameter | Type |
|---|---|
seed | TAccumulate |
func | (prev, current) => TAccumulate |
resultSelector | (last) => TResult |
Returns
TResult
Inherited from
all()
all(predicate): boolean;
Parameters
| Parameter | Type |
|---|---|
predicate | (element) => boolean |
Returns
boolean
Inherited from
alternate()
Call Signature
alternate(alternateValue): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
alternateValue | Swatch |
Returns
IEnumerable<T>
Inherited from
Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
alternateSequence | { [x: number]: Swatch; length: number; } |
alternateSequence.length | number |
Returns
IEnumerable<T>
Inherited from
Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
alternateSequence | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Call Signature
alternate(alternateSequence): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
alternateSequence | Swatch[] |
Returns
IEnumerable<T>
Inherited from
any()
any(predicate?): boolean;
Parameters
| Parameter | Type |
|---|---|
predicate? | (element) => boolean |
Returns
boolean
Inherited from
asEnumerable()
asEnumerable(): IEnumerable<T>;
Returns
IEnumerable<T>
Inherited from
average()
average(selector?): number;
Parameters
| Parameter | Type |
|---|---|
selector? | (element) => number |
Returns
number
Inherited from
buffer()
buffer(count): IEnumerable<T[]>;
Parameters
| Parameter | Type |
|---|---|
count | number |
Returns
IEnumerable<T[]>
Inherited from
cast()
cast<TResult>(): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TResult |
Returns
IEnumerable<TResult>
Inherited from
catchError()
catchError(handler): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
handler | (exception) => void |
Returns
IEnumerable<T>
Inherited from
choose()
choose(selector): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
selector | (element, index) => Swatch |
Returns
IEnumerable<T>
Inherited from
clear()
clear(): void;
Removes all items from the collection
Returns
void
Inherited from
collectionChanged()
collectionChanged(h): void;
Parameters
| Parameter | Type |
|---|---|
h | AnyFunction |
Returns
void
Inherited from
collectionChanged()
collectionChanged(h): void;
Parameters
| Parameter | Type |
|---|---|
h | AnyFunction |
Returns
void
Inherited from
concat()
Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
...sequences | IEnumerable<T>[] |
Returns
IEnumerable<T>
Inherited from
Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
...sequences | object[] |
Returns
IEnumerable<T>
Inherited from
Call Signature
concat(...sequences): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
...sequences | Swatch[] |
Returns
IEnumerable<T>
Inherited from
constructor()
constructor(getEnumerator): never;
Parameters
| Parameter | Type |
|---|---|
getEnumerator | () => IEnumerator<T> |
Returns
never
Inherited from
Collection.constructor
contains()
Call Signature
contains(value): boolean;
Parameters
| Parameter | Type |
|---|---|
value | Swatch |
Returns
boolean
Inherited from
Call Signature
contains<TCompare>(value, compareSelector?): boolean;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
value | Swatch |
compareSelector? | (element) => TCompare |
Returns
boolean
Inherited from
count()
count(predicate?): number;
Parameters
| Parameter | Type |
|---|---|
predicate? | (element, index) => boolean |
Returns
number
Inherited from
defaultIfEmpty()
defaultIfEmpty(defaultValue?): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
defaultValue? | Swatch |
Returns
IEnumerable<T>
Inherited from
distinct()
Call Signature
distinct(): IEnumerable<T>;
Returns
IEnumerable<T>
Inherited from
Call Signature
distinct<TCompare>(compareSelector): IEnumerable<T>;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
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
| Parameter | Type |
|---|---|
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Collection.distinctUntilChanged
doAction()
Call Signature
doAction(action): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
action | (element, index) => void |
Returns
IEnumerable<T>
Inherited from
Call Signature
doAction(action): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
action | (element, index) => boolean |
Returns
IEnumerable<T>
Inherited from
elementAt()
elementAt(index): Swatch;
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
Inherited from
elementAtOrDefault()
elementAtOrDefault(index, defaultValue?): Swatch;
Parameters
| Parameter | Type |
|---|---|
index | number |
defaultValue? | Swatch |
Returns
Inherited from
except()
Call Signature
except(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
IEnumerable<T>
Inherited from
Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Call Signature
except(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
second | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
second | IEnumerable<T> |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Call Signature
except(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
second | Swatch[] |
Returns
IEnumerable<T>
Inherited from
Call Signature
except<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
second | Swatch[] |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
finallyAction()
finallyAction(finallyAction): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
finallyAction | () => void |
Returns
IEnumerable<T>
Inherited from
first()
first(predicate?): Swatch;
Parameters
| Parameter | Type |
|---|---|
predicate? | (element, index) => boolean |
Returns
Inherited from
firstOrDefault()
firstOrDefault(predicate?, defaultValue?): Swatch;
Parameters
| Parameter | Type |
|---|---|
predicate? | Swatch | ((element, index) => boolean) |
defaultValue? | Swatch |
Returns
Inherited from
flatten()
flatten(): IEnumerable<any>;
Returns
IEnumerable<any>
Inherited from
force()
force(): void;
Returns
void
Inherited from
forEach()
Call Signature
forEach(action): void;
Parameters
| Parameter | Type |
|---|---|
action | (element, index) => void |
Returns
void
Inherited from
Call Signature
forEach(action): void;
Parameters
| Parameter | Type |
|---|---|
action | (element, index) => boolean |
Returns
void
Inherited from
get()
get(index): Swatch;
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
Inherited from
getEnumerator()
getEnumerator(): IEnumerator<T>;
Returns
IEnumerator<T>
Inherited from
getItem()
getItem(index): Swatch;
Parameters
| Parameter | Type |
|---|---|
index | any |
Returns
Inherited from
groupBy()
Call Signature
groupBy<TKey>(keySelector): IEnumerable<IGrouping<TKey, T>>;
Type Parameters
| Type Parameter |
|---|
TKey |
Parameters
| Parameter | Type |
|---|---|
keySelector | (element) => TKey |
Returns
IEnumerable<IGrouping<TKey, T>>
Inherited from
Call Signature
groupBy<TKey, TElement>(keySelector, elementSelector): IEnumerable<IGrouping<TKey, TElement>>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
Parameters
| Parameter | Type |
|---|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
Returns
IEnumerable<IGrouping<TKey, TElement>>
Inherited from
Call Signature
groupBy<TKey, TElement, TResult>(
keySelector,
elementSelector,
resultSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
TResult |
Parameters
| Parameter | Type |
|---|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
resultSelector | (key, element) => TResult |
Returns
IEnumerable<TResult>
Inherited from
Call Signature
groupBy<TKey, TElement, TResult, TCompare>(
keySelector,
elementSelector,
resultSelector,
compareSelector): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TKey |
TElement |
TResult |
TCompare |
Parameters
| Parameter | Type |
|---|---|
keySelector | (element) => TKey |
elementSelector | (element) => TElement |
resultSelector | (key, element) => TResult |
compareSelector | (element) => TCompare |
Returns
IEnumerable<TResult>
Inherited from
groupJoin()
Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|---|
inner | IEnumerable<TInner> |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|---|
inner | { [x: number]: TInner; length: number; } |
inner.length | number |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
Call Signature
groupJoin<TInner, TKey, TResult>(
inner,
outerKeySelector,
innerKeySelector,
resultSelector,
compareSelector?): IEnumerable<TResult>;
Type Parameters
| Type Parameter |
|---|
TInner |
TKey |
TResult |
Parameters
| Parameter | Type |
|---|---|
inner | TInner[] |
outerKeySelector | (outer) => TKey |
innerKeySelector | (inner) => TKey |
resultSelector | (outer, inner) => TResult |
compareSelector? | (obj) => TKey |
Returns
IEnumerable<TResult>
Inherited from
indexOf()
Call Signature
indexOf(item): number;
Parameters
| Parameter | Type |
|---|---|
item | Swatch |
Returns
number
Inherited from
Call Signature
indexOf(predicate): number;
Parameters
| Parameter | Type |
|---|---|
predicate | (element, index) => boolean |
Returns
number
Inherited from
insert()
Call Signature
insert(index, second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
index | number |
second | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Call Signature
insert(index, second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
index | number |
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
IEnumerable<T>
Inherited from
insertAt()
insertAt(index, items): void;
Inserts the specified item into the collection at the specified index.
Parameters
| Parameter | Type |
|---|---|
index | number |
items | Swatch | Swatch[] |
Returns
void
Inherited from
intersect()
Call Signature
intersect(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
Returns
IEnumerable<T>
Inherited from
Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
second | { [x: number]: Swatch; length: number; } |
second.length | number |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Call Signature
intersect(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
second | IEnumerable<T> |
Returns
IEnumerable<T>
Inherited from
Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
second | IEnumerable<T> |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
Call Signature
intersect(second): IEnumerable<T>;
Parameters
| Parameter | Type |
|---|---|
second | Swatch[] |
Returns
IEnumerable<T>
Inherited from
Call Signature
intersect<TCompare>(second, compareSelector): IEnumerable<T>;
Type Parameters
| Type Parameter |
|---|
TCompare |
Parameters
| Parameter | Type |
|---|---|
second | Swatch[] |
compareSelector | (element) => TCompare |
Returns
IEnumerable<T>
Inherited from
isEmpty()
isEmpty(): boolean;
Returns
boolean
Inherited from
itemAdded()
itemAdded(h): void;
Parameters
| Parameter | Type |
|---|---|
h | (data?) => any |
Returns
void
Inherited from
itemAdded()
itemAdded(h): void;
Parameters
| Parameter | Type |
|---|---|
h | any |
Returns
void
Inherited from
itemMoved()
itemMoved(h): void;
Parameters
| Parameter | Type |
|---|---|
h | (data?) => any |
Returns
void