dont use simplified path for now

This commit is contained in:
Philipp Kühn 2020-12-07 11:20:06 +01:00
parent 2e21a5bf38
commit f275946da5

View File

@ -100,7 +100,7 @@ export default {
requestAnimationFrame(() => {
this.path.attr('d', points => {
const path = d3.line().curve(d3.curveBasis)(points)
const simplifiedPath = d3.line().curve(d3.curveBasis)(this.simplifyPoints(points))
// const simplifiedPath = d3.line().curve(d3.curveBasis)(this.simplifyPoints(points))
const lines = this.node.attrs.lines.filter(item => item.id !== this.id)
this.updateAttributes({
@ -110,7 +110,8 @@ export default {
id: this.id,
color: this.color,
size: this.size,
path: simplifiedPath,
path,
// path: simplifiedPath,
},
],
})