diff --git a/.babelrc b/.babelrc index d3a883036..723fc3bdd 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,3 @@ - { "plugins": [ "transform-object-rest-spread", diff --git a/.torch.compile.opts.js b/.torch.compile.opts.js index 67414d097..1bc192a53 100644 --- a/.torch.compile.opts.js +++ b/.torch.compile.opts.js @@ -13,7 +13,7 @@ module.exports = { ], ], presets: [ - 'env' + 'env', ], sourceMaps: 'inline', }, diff --git a/demos/custom-html.html b/demos/custom-html.html index 71b37ebd1..161de4932 100644 --- a/demos/custom-html.html +++ b/demos/custom-html.html @@ -19,6 +19,11 @@ id: 'node2', x: 300, y: 200 + }, { + id: 'node3', + x: 300, + y: 300, + shape: 'common' }], edges: [{ target: 'node2', @@ -30,7 +35,7 @@ draw(item){ const group = item.getGraphicGroup(); const html = G6.Util.createDOM('