Skip to content

Commit

Permalink
feat: remove autolib from stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Sep 28, 2023
1 parent 898bb57 commit 66cf0a3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion __tests__/plots/static/auto-mark.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { G2Spec } from '../../../src';
import { Auto } from '../../../src/mark/auto';

export function AutoMark(): G2Spec {
return {
type: 'auto',
type: Auto,
data: {
type: 'fetch',
value: 'data/alphabet.csv',
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/lib/auto.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { autolib } from '../../../src';
import { autolib } from '../../../src/lib';
import { Auto } from '../../../src/mark';

describe('autolib', () => {
Expand Down
1 change: 0 additions & 1 deletion __tests__/unit/lib/std.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ describe('stdlib', () => {
'mark.gauge': Gauge,
'mark.liquid': Liquid,
'mark.heatmap': Heatmap,
'mark.auto': Auto,
'palette.category10': Category10,
'palette.category20': Category20,
'scale.linear': Linear,
Expand Down
2 changes: 0 additions & 2 deletions src/lib/std.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import { corelib } from './core';
import { geolib } from './geo';
import { graphlib } from './graph';
import { plotlib } from './plot';
import { autolib } from './auto';

export function stdlib() {
return {
...geolib(),
...graphlib(),
...plotlib(),
...corelib(),
...autolib(),
} as const;
}

0 comments on commit 66cf0a3

Please sign in to comment.