Skip to content

Commit

Permalink
feat: rename spec to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
islxyqwe committed Nov 6, 2024
1 parent 34e4517 commit 517d347
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/graphic-walker/src/utils/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,11 @@ export const addFilterForQuery = (query: IDataQueryPayload, filters: IVisFilter[
workflow: [filterQuery, ...query.workflow],
};
};

export function chartToWorkflow(chart: IVisSpec | IChart): IDataQueryPayload {
/**
* @deprecated
*/
export const chartToWorkflow = specToWorkflow;
export function specToWorkflow(chart: IVisSpec | IChart): IDataQueryPayload {
const parsedChart = parseChart(chart);
const viewEncodingFields = viewEncodingKeys(parsedChart.config?.geoms?.[0] ?? 'auto').flatMap<IViewField>((k) => parsedChart.encodings?.[k] ?? []);
const rows = parsedChart.encodings?.rows ?? [];
Expand Down

0 comments on commit 517d347

Please sign in to comment.