new XSankey(ecs, options, vectors)
create sankey objects
Parameters:
Name | Type | Description |
---|---|---|
ecs |
ECS | |
options |
object | options.chart: the json chart section defining chart grid space, {domain, range, grid, grid-space} |
vectors |
array | the high dimensional vectors. |
- Source:
Members
(static) skuuid
For generating sankey element uuid.
- Source:
barmap
Bars' pivoting (extruding) positions (grid index).
Properties:
Name | Type | Description |
---|---|---|
barmap |
- Source:
extrudingCoord
extruding coordingate index
Properties:
Name | Type | Description |
---|---|---|
extrudingCoord |
int | coordinate index |
- Source:
pivotings
Bars' pivoting (extruding) positions (grid index).
Properties:
Name | Type | Description |
---|---|---|
pivotings |
array.<array> | major index: vector index; |
- Source:
vectors
vectors
Properties:
Name | Type | Description |
---|---|---|
vectors |
- Source:
Methods
(static) debug1()
Create some sankey bars. Should been kept. works together with update() in branch temp-sankey-debug1
- Source:
(static) extrudextr(e)
Extrude / de-extrude the selected coordinates.
Note: In x-visual 1.0, all sankey bars can only move back and forth, without moving elsewhere, e.g. from z = 1 to z = 2.
TODO ignore new translate when tweening
Parameters:
Name | Type | Description |
---|---|---|
e |
Sankey | the selected entity |
- Source:
(static) sankey(ecs, grid, pivotings
, json, options
) → {object}
Setup sankey chart with data.
Parameters:
Name | Type | Description |
---|---|---|
ecs |
ECS | |
grid |
CoordsGrid | |
pivotings |
object | |
json |
object | where |
options |
object | texture: string, bar texture, e.g. './tex/byr0.png', default is ram texture |
- Source:
Returns:
{barmap, defs} where
barmap: map of [coord-index => [bar-entity]]
defs: array of entity definition of sankey bars
- Type
- object
(static) skUId()
Get a uuid.
- Source:
update(tick, entites)
Parameters:
Name | Type | Description |
---|---|---|
tick |
int | |
entites |
array.<Entity> |
- Source: