Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: transplie d3-force to support ie11 #1541

Merged
merged 2 commits into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ChangeLog

#### 3.4.9
- fix: transplie d3-force to support IE11.

#### 3.4.8
- feat: update the keyShape type minimap when the node or edge's style is updated;
- fix: problem about switching to another applications or browser menu and then switch back, the drag-canvas does not take effect;
Expand Down
11 changes: 8 additions & 3 deletions docs/api/Graph.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -1406,8 +1406,13 @@ Add plugin to graph.
**Usage**

```javascript
import miniMap from '@antv/g6/build/minimap';
graph.Plugin(miniMap);
import { Minimap } from '@antv/g6';
const miniMap = new Minimap({
size: [200, 100],
className: 'minimap'
})

graph.addPlugin(miniMap);
```

### removePlugin(plugin)
Expand All @@ -1423,7 +1428,7 @@ Remove the plugin from graph.
**Usage**

```javascript
import miniMap from '@antv/g6/build/minimap';
// use removePlugin to remove plugin instance added by addPlugin
graph.removePlugin(miniMap);
```

Expand Down
11 changes: 8 additions & 3 deletions docs/api/Graph.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -1408,8 +1408,13 @@ graph.stopAnimate();
**用法**

```javascript
import miniMap from '@antv/g6/build/minimap';
graph.Plugin(miniMap);
import { Minimap } from '@antv/g6';
const miniMap = new Minimap({
size: [200, 100],
className: 'minimap'
})

graph.addPlugin(miniMap);
```

### removePlugin(plugin)
Expand All @@ -1425,7 +1430,7 @@ graph.Plugin(miniMap);
**用法**

```javascript
import miniMap from '@antv/g6/build/minimap';
// 使用 removePlugin 删除通过 addPlugin 添加的实例
graph.removePlugin(miniMap);
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g6",
"version": "3.4.8",
"version": "3.4.9",
"description": "A Graph Visualization Framework in JavaScript",
"keywords": [
"antv",
Expand Down
2 changes: 1 addition & 1 deletion src/global.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
version: '3.4.8',
version: '3.4.9',
rootContainerClassName: 'root-container',
nodeContainerClassName: 'node-container',
edgeContainerClassName: 'edge-container',
Expand Down
6 changes: 4 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ module.exports = {
],
},
{
test: /\.ts$/,
test: /\.js$/,
include: /node_modules/,
use: {
loader: 'babel-loader',
options: {
babelrc: true,
// babelrc: true,
presets: ['@babel/preset-env'],
},
},
},
Expand Down