Skip to content

Commit

Permalink
refactor: remove auto mark (#5687)
Browse files Browse the repository at this point in the history
* refactor: remove auto mark

* chore: add discussions issue template
  • Loading branch information
hustcc committed Oct 25, 2023
1 parent 6738e14 commit a336177
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 74 deletions.
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/discussions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Feature Requests & Questions
url: https://github.com/antvis/G2/discussions
about: Please ask and answer questions here.
2 changes: 1 addition & 1 deletion __tests__/plots/static/auto-mark.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Auto } from '@antv/g2-extension-ava';
import { G2Spec } from '../../../src';
import { Auto } from '../../../src/mark/auto';

export function AutoMark(): G2Spec {
return {
Expand Down
10 changes: 0 additions & 10 deletions __tests__/unit/lib/auto.spec.ts

This file was deleted.

1 change: 0 additions & 1 deletion __tests__/unit/lib/std.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import {
Density as DensityGeometry,
Heatmap,
Liquid,
Auto,
} from '../../../src/mark';
import { Category10, Category20 } from '../../../src/palette';
import {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"animation"
],
"dependencies": {
"@antv/ava": "^3.0.7",
"@antv/coord": "^0.4.1",
"@antv/event-emitter": "^0.1.3",
"@antv/g": "^5.18.6",
Expand Down Expand Up @@ -88,9 +87,10 @@
"@antv/g-plugin-control": "^1.9.5",
"@antv/g-plugin-rough-canvas-renderer": "^1.7.9",
"@antv/g-plugin-rough-svg-renderer": "^1.7.9",
"@antv/translator": "^1.0.0",
"@antv/g-svg": "^1.10.7",
"@antv/g-webgl": "^1.9.8",
"@antv/g2-extension-ava": "^0.1.1",
"@antv/translator": "^1.0.0",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^17.4.4",
"@optimize-lodash/rollup-plugin": "^4.0.3",
Expand Down
9 changes: 4 additions & 5 deletions site/docs/manual/extra-topics/bundle.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const Chart = extend(Runtime, corelib());

### G2.stdlib()

返回标准库,包含 G2 非 3D 之外的所有能力,也就是包含 [G2.corelib](#g2corelib)[G2.plotlib](#g2plotlib)[G2.geolib](#g2geolib)[G2.graphlib](#g2graphlib) 以及 [G2.autolib](#g2autolib) 的所有可视化组件。[G2.Chart](/manual/core/chart) 就是使用了这个 library。([源码](https://github.com/antvis/G2/blob/v5/src/lib/std.ts) · [案例](https://g2.antv.antgroup.com/examples))
返回标准库,包含 G2 非 3D 之外的所有能力,也就是包含 [G2.corelib](#g2corelib)[G2.plotlib](#g2plotlib)[G2.geolib](#g2geolib)以及[G2.graphlib](#g2graphlib) 的所有可视化组件。[G2.Chart](/manual/core/chart) 就是使用了这个 library。([源码](https://github.com/antvis/G2/blob/v5/src/lib/std.ts) · [案例](https://g2.antv.antgroup.com/examples))

```js
import { Runtime, extend, stdlib } from '@antv/g2';
Expand Down Expand Up @@ -226,14 +226,13 @@ const chart = new Chart();
chart.forceGraph();
```

### G2.autolib()

> 开发中,预计 10 月底上线
### autolib

返回增强分析库,提供增强分析标记(Auto 等)。该 library 会依赖 [@antv/ava](https://github.com/antvis/AVA) ,提供自动绘制图表、自动标注等能力。不能单独使用,需要配合 [G2.corelib](#g2corelib) 使用。

```js
import { Runtime, extend, corelib, autolib } from '@antv/g2';
import { Runtime, extend, corelib } from '@antv/g2';
import { autolib } from '@antv/g2-extension-ava';

const Chart = extend(Runtime, {
...corelib(),
Expand Down
7 changes: 0 additions & 7 deletions src/lib/auto.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ export { plotlib } from './plot';
export { threedlib } from './threed';
export { stdlib } from './std';
export { litelib } from './lite';
export { autolib } from './auto';
22 changes: 0 additions & 22 deletions src/mark/auto.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/mark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export { Gauge } from './gauge';
export { Density } from './density';
export { Heatmap } from './heatmap';
export { Liquid } from './liquid';
export { Auto } from './auto';

export type { IntervalOptions } from './interval';
export type { RectOptions } from './rect';
Expand Down

0 comments on commit a336177

Please sign in to comment.