fix(plugin-dimension): Fix rmad, closes #2860
This commit is contained in:
parent
bc8b742cb7
commit
35c9a877e2
1 changed files with 8 additions and 5 deletions
|
@ -145,12 +145,15 @@ export const plugin = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Remove all dimensions (with standard prefix)
|
// Remove all dimensions (with standard prefix)
|
||||||
rmad: function ({ prefix = '' }, { paths, points }) {
|
rmad: function (params, props) {
|
||||||
for (let id in points) {
|
const toRemove = {
|
||||||
if (id.slice(0, prefix.length) === prefix) delete points[id]
|
points: props.point,
|
||||||
|
paths: props.paths,
|
||||||
}
|
}
|
||||||
for (let id in paths) {
|
for (let type in toRemove) {
|
||||||
if (id.slice(0, prefix.length) === prefix) delete paths[id]
|
for (let id in props[type]) {
|
||||||
|
if (id.slice(0, prefix.length) === prefix) delete props[type][id]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue