An open source alternative to Tableau. Embeddable visual analytic
TypeScript bidatadata-analysisdata-miningdata-visualizationedak6skanarieslow-codepivot-tablereacttableautableau-alternativetypescriptvegavega-litevisualization
feat: add exportViewSpecAsRaw api
ObservedObserver87d0f74a3cfc
diff --git a/packages/graphic-walker/src/store/visualSpecStore.ts b/packages/graphic-walker/src/store/visualSpecStore.tsindex 6dd4361c..bdfbe287 100644--- a/packages/graphic-walker/src/store/visualSpecStore.ts+++ b/packages/graphic-walker/src/store/visualSpecStore.ts@@ -700,6 +700,13 @@ export class VizSpecStore {specList: pureVisList,});}+ public exportViewSpecAsRaw() {+ const pureVisList = dumpsGWPureSpec(this.visList);+ return JSON.stringify({+ datasets: toJS(this.commonStore.datasets),+ specList: pureVisList,+ });+ }public importRaw(raw: string) {const content = parseGWContent(raw);this.commonStore.datasets = content.datasets;