Files
nebula.js/test/rendering/sheet/sheet-data.js
Tobias Åström 3dacac587b feat: sheet embed support (#1013)
* 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
2022-12-12 13:54:04 +01:00

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',
};
},
};
};