mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
* feat: add basic sheet rendering support * chore: add missing file * fix: correct bg colors for none support * chore: fix test that relied on dark bg * chore: fix ref * chore: api spec update * chore: add todo comments * chore: use memo * chore: a bit less verbose * chore: list * chore: cleaning * chore: add rendering test * chore: enable rendering test * chore: settings * chore: settings * chore: disable rendering tests * chore: revert test tests
51 lines
906 B
JavaScript
51 lines
906 B
JavaScript
/* eslint arrow-body-style: 0 */
|
|
|
|
window.getFuncs = function getFuncs() {
|
|
return {
|
|
getSheetLayout: () => {
|
|
return {
|
|
qInfo: {
|
|
qId: 'sheet',
|
|
},
|
|
visualization: 'sheet',
|
|
cells: [
|
|
{
|
|
name: 'bar',
|
|
bounds: {
|
|
x: 0,
|
|
y: 0,
|
|
width: 50,
|
|
height: 50,
|
|
},
|
|
},
|
|
{
|
|
name: 'pie',
|
|
bounds: {
|
|
x: 50,
|
|
y: 50,
|
|
width: 50,
|
|
height: 50,
|
|
},
|
|
},
|
|
],
|
|
};
|
|
},
|
|
getBarLayout: () => {
|
|
return {
|
|
qInfo: {
|
|
qId: 'bar',
|
|
},
|
|
visualization: 'barchart',
|
|
};
|
|
},
|
|
getPieLayout: () => {
|
|
return {
|
|
qInfo: {
|
|
qId: 'pie',
|
|
},
|
|
visualization: 'piechart',
|
|
};
|
|
},
|
|
};
|
|
};
|