Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bverbeken committed Apr 5, 2024
1 parent cbf5754 commit f0618d0
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,32 @@ const chartDesignerConfigNormalMode: Required<ChartDesignerConfigOptions> = {
onDesignerRenderingFailed: designer => { designer.destroy() }
}

// Set up a complete Chart Designer config - normal mode

// Set up a complete Chart Designer config - readOnly mode
const chartDesignerConfigReadOnlyMode: Required<ChartDesignerConfigOptions> = {
secretKey: 'mySecretKey',
divId: 'chartContainer',
container: document.body,
chartKey: 'myChartKey',
language: 'en',
features: {
disabled: ['areas', 'backgroundImage'],
readOnly: ['categoryList', 'chartName']
},
mode: 'readOnly',
openDraftDrawing: true,
openLatestDrawing: true,
canvasColorScheme: 'auto',
// Callbacks
onChartCreated: _chartKey => {},
onChartUpdated: _chartKey => {},
onChartPublished: _chartKey => {},
onExitRequested: () => {},
onDesignerRendered: _designer => {},
onDesignerRenderingFailed: designer => { designer.destroy() }
}

// Set up a complete Chart Designer config - safe mode
const chartDesignerConfigSafeMode: Required<ChartDesignerConfigOptions> = {
secretKey: 'mySecretKey',
divId: 'chartContainer',
Expand Down

0 comments on commit f0618d0

Please sign in to comment.