Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/theme
MoodMatrix
Class MoodMatrix<M, N>
Type parameters
M
:
Mood
=
Feel
N
:
Mood
=
Feel
Hierarchy
MoodMatrix
Implements
Equals
Debug
Index
Constructors
constructor
Properties
col
Array
col
Index
row
Array
row
Index
Accessors
col
Count
row
Count
Methods
col
debug
dot
equals
get
Col
get
Row
has
Col
has
Row
identity
For
minus
negative
plus
row
times
times
Col
times
Row
to
String
transform
updated
Col
updated
Row
empty
for
Cols
for
Rows
from
Col
Array
from
Row
Array
Constructors
constructor
new
Mood
Matrix<M, N>
(
rowArray
:
readonly
[
M
,
MoodVector
<
N
>
]
[]
, rowIndex
:
{}
, colArray
:
readonly
[
N
,
MoodVector
<
M
>
]
[]
, colIndex
:
{}
)
:
MoodMatrix
<
M
,
N
>
Type parameters
M
:
Mood
=
Feel
N
:
Mood
=
Feel
Parameters
rowArray:
readonly
[
M
,
MoodVector
<
N
>
]
[]
rowIndex:
{}
[
name:
string
]:
number
|
undefined
colArray:
readonly
[
N
,
MoodVector
<
M
>
]
[]
colIndex:
{}
[
name:
string
]:
number
|
undefined
Returns
MoodMatrix
<
M
,
N
>
Properties
Readonly
col
Array
col
Array
:
readonly
[
N
,
MoodVector
<
M
>
]
[]
Readonly
col
Index
col
Index
:
{}
Type declaration
[
name:
string
]:
number
|
undefined
Readonly
row
Array
row
Array
:
readonly
[
M
,
MoodVector
<
N
>
]
[]
Readonly
row
Index
row
Index
:
{}
Type declaration
[
name:
string
]:
number
|
undefined
Accessors
col
Count
get
colCount
(
)
:
number
Returns
number
row
Count
get
rowCount
(
)
:
number
Returns
number
Methods
col
col
(
colKey
:
N
, col
:
undefined
|
AnyMoodVector
<
M
>
)
:
MoodMatrix
<
M
,
N
>
Parameters
colKey:
N
col:
undefined
|
AnyMoodVector
<
M
>
Returns
MoodMatrix
<
M
,
N
>
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
dot
dot
(
rowKey
:
string
|
number
|
M
, col
:
MoodVector
<
N
>
)
:
undefined
|
number
Parameters
rowKey:
string
|
number
|
M
col:
MoodVector
<
N
>
Returns
undefined
|
number
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
get
Col
get
Col
(
colKey
:
N
)
:
undefined
|
MoodVector
<
M
>
get
Col
(
colKey
:
string
)
:
undefined
|
MoodVector
<
M
>
get
Col
(
colIndex
:
number
)
:
undefined
|
MoodVector
<
M
>
Parameters
colKey:
N
Returns
undefined
|
MoodVector
<
M
>
Parameters
colKey:
string
Returns
undefined
|
MoodVector
<
M
>
Parameters
colIndex:
number
Returns
undefined
|
MoodVector
<
M
>
get
Row
get
Row
(
rowKey
:
M
)
:
undefined
|
MoodVector
<
N
>
get
Row
(
rowKey
:
string
)
:
undefined
|
MoodVector
<
N
>
get
Row
(
rowIndex
:
number
)
:
undefined
|
MoodVector
<
N
>
Parameters
rowKey:
M
Returns
undefined
|
MoodVector
<
N
>
Parameters
rowKey:
string
Returns
undefined
|
MoodVector
<
N
>
Parameters
rowIndex:
number
Returns
undefined
|
MoodVector
<
N
>
has
Col
has
Col
(
colKey
:
N
)
:
boolean
has
Col
(
colKey
:
string
)
:
boolean
Parameters
colKey:
N
Returns
boolean
Parameters
colKey:
string
Returns
boolean
has
Row
has
Row
(
rowKey
:
M
)
:
boolean
has
Row
(
rowKey
:
string
)
:
boolean
Parameters
rowKey:
M
Returns
boolean
Parameters
rowKey:
string
Returns
boolean
identity
For
identity
For
(
that
:
MoodMatrix
<
N
,
M
&
N
>
)
:
MoodMatrix
<
M
,
N
>
Parameters
that:
MoodMatrix
<
N
,
M
&
N
>
Returns
MoodMatrix
<
M
,
N
>
minus
minus
(
that
:
MoodMatrix
<
M
,
N
>
)
:
MoodMatrix
<
M
,
N
>
Parameters
that:
MoodMatrix
<
M
,
N
>
Returns
MoodMatrix
<
M
,
N
>
negative
negative
(
)
:
MoodMatrix
<
M
,
N
>
Returns
MoodMatrix
<
M
,
N
>
plus
plus
(
that
:
MoodMatrix
<
M
,
N
>
)
:
MoodMatrix
<
M
,
N
>
Parameters
that:
MoodMatrix
<
M
,
N
>
Returns
MoodMatrix
<
M
,
N
>
row
row
(
rowKey
:
M
, row
:
undefined
|
AnyMoodVector
<
N
>
)
:
MoodMatrix
<
M
,
N
>
Parameters
rowKey:
M
row:
undefined
|
AnyMoodVector
<
N
>
Returns
MoodMatrix
<
M
,
N
>
times
times
(
scalar
:
number
)
:
MoodMatrix
<
M
,
N
>
Parameters
scalar:
number
Returns
MoodMatrix
<
M
,
N
>
times
Col
times
Col
(
col
:
MoodVector
<
N
>
)
:
MoodVector
<
M
>
times
Col
(
col
:
MoodVector
<
M
&
N
>
, implicitIdentity
?:
boolean
)
:
MoodVector
<
M
>
Parameters
col:
MoodVector
<
N
>
Returns
MoodVector
<
M
>
Parameters
col:
MoodVector
<
M
&
N
>
Optional
implicitIdentity:
boolean
Returns
MoodVector
<
M
>
times
Row
times
Row
(
row
:
MoodVector
<
M
>
)
:
MoodVector
<
N
>
times
Row
(
row
:
MoodVector
<
M
&
N
>
, implicitIdentity
?:
boolean
)
:
MoodVector
<
M
>
Parameters
row:
MoodVector
<
M
>
Returns
MoodVector
<
N
>
Parameters
row:
MoodVector
<
M
&
N
>
Optional
implicitIdentity:
boolean
Returns
MoodVector
<
M
>
to
String
to
String
(
)
:
string
Returns
string
transform
transform
(
that
:
MoodMatrix
<
N
,
N
>
, implicitIdentity
?:
boolean
)
:
MoodMatrix
<
M
,
N
>
Parameters
that:
MoodMatrix
<
N
,
N
>
Optional
implicitIdentity:
boolean
Returns
MoodMatrix
<
M
,
N
>
updated
Col
updated
Col
(
colKey
:
N
, updates
:
MoodVectorUpdates
<
M
>
, defaultCol
?:
AnyMoodVector
<
M
>
)
:
MoodMatrix
<
M
,
N
>
updated
Col
(
colKey
:
M
&
N
, updates
:
MoodVectorUpdates
<
M
&
N
>
, defaultCol
?:
boolean
|
AnyMoodVector
<
M
>
)
:
MoodMatrix
<
M
|
N
,
N
>
Parameters
colKey:
N
updates:
MoodVectorUpdates
<
M
>
Optional
defaultCol:
AnyMoodVector
<
M
>
Returns
MoodMatrix
<
M
,
N
>
Parameters
colKey:
M
&
N
updates:
MoodVectorUpdates
<
M
&
N
>
Optional
defaultCol:
boolean
|
AnyMoodVector
<
M
>
Returns
MoodMatrix
<
M
|
N
,
N
>
updated
Row
updated
Row
(
rowKey
:
M
, updates
:
MoodVectorUpdates
<
N
>
, defaultRow
?:
AnyMoodVector
<
N
>
)
:
MoodMatrix
<
M
,
N
>
updated
Row
(
rowKey
:
M
&
N
, updates
:
MoodVectorUpdates
<
M
&
N
>
, defaultRow
?:
boolean
|
AnyMoodVector
<
N
>
)
:
MoodMatrix
<
M
|
N
,
N
>
Parameters
rowKey:
M
updates:
MoodVectorUpdates
<
N
>
Optional
defaultRow:
AnyMoodVector
<
N
>
Returns
MoodMatrix
<
M
,
N
>
Parameters
rowKey:
M
&
N
updates:
MoodVectorUpdates
<
M
&
N
>
Optional
defaultRow:
boolean
|
AnyMoodVector
<
N
>
Returns
MoodMatrix
<
M
|
N
,
N
>
Static
empty
empty<M, N>
(
)
:
MoodMatrix
<
M
,
N
>
Type parameters
M
:
Mood
=
Feel
N
:
Mood
=
Feel
Returns
MoodMatrix
<
M
,
N
>
Static
for
Cols
for
Cols<M, N>
(
...
cols
:
[
N
,
AnyMoodVector
<
M
>
]
[]
)
:
MoodMatrix
<
M
,
N
>
Type parameters
M
:
Mood
N
:
Mood
Parameters
Rest
...
cols:
[
N
,
AnyMoodVector
<
M
>
]
[]
Returns
MoodMatrix
<
M
,
N
>
Static
for
Rows
for
Rows<M, N>
(
...
rows
:
[
M
,
AnyMoodVector
<
N
>
]
[]
)
:
MoodMatrix
<
M
,
N
>
Type parameters
M
:
Mood
N
:
Mood
Parameters
Rest
...
rows:
[
M
,
AnyMoodVector
<
N
>
]
[]
Returns
MoodMatrix
<
M
,
N
>
Static
from
Col
Array
from
Col
Array<M, N>
(
colArray
:
readonly
[
N
,
MoodVector
<
M
>
]
[]
, colIndex
?:
{}
)
:
MoodMatrix
<
M
,
N
>
Type parameters
M
:
Mood
N
:
Mood
Parameters
colArray:
readonly
[
N
,
MoodVector
<
M
>
]
[]
Optional
colIndex:
{}
[
name:
string
]:
number
|
undefined
Returns
MoodMatrix
<
M
,
N
>
Static
from
Row
Array
from
Row
Array<M, N>
(
rowArray
:
readonly
[
M
,
MoodVector
<
N
>
]
[]
, rowIndex
?:
{}
)
:
MoodMatrix
<
M
,
N
>
Type parameters
M
:
Mood
N
:
Mood
Parameters
rowArray:
readonly
[
M
,
MoodVector
<
N
>
]
[]
Optional
rowIndex:
{}
[
name:
string
]:
number
|
undefined
Returns
MoodMatrix
<
M
,
N
>
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Brightness
Feel
Color
Look
Feel
Feel
Vector
Feel
Vector
Interpolator
Font
Look
Interpolated
Feel
Length
Look
Look
Look
Vector
Mood
Matrix
constructor
col
Array
col
Index
row
Array
row
Index
col
Count
row
Count
col
debug
dot
equals
get
Col
get
Row
has
Col
has
Row
identity
For
minus
negative
plus
row
times
times
Col
times
Row
to
String
transform
updated
Col
updated
Row
empty
for
Cols
for
Rows
from
Col
Array
from
Row
Array
Mood
Vector
Number
Look
Opacity
Feel
Shadow
Look
Theme
Matrix
Timing
Look
Mood
Any
Feel
Vector
Any
Look
Vector
Any
Mood
Vector
Feel
Vector
Array
Feel
Vector
Updates
Look
Vector
Array
Look
Vector
Updates
Mood
Vector
Array
Mood
Vector
Updates
Mood
Theme
Generated using
TypeDoc