charton API / @chart-on/core / index / layoutEntry
Function: layoutEntry()
layoutEntry(
layout,name,id?):LayoutEntry
Defined in: packages/core/src/storage/drawings.ts:185
What storage.saveLayout() takes for layout: the layout and the summary listLayouts returns for it. savedAt is now: call it when saving, so a layout loaded and saved again (whose meta.updatedAt is still the old time) sorts as the newest. Leave id out to save a new layout.
ts
await storage.saveLayout(layoutEntry(chart.serializeLayout(), 'Swing'));Parameters
layout
name
string
id?
string