Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const {
zoom,
settings,
path,
globalPoints,
localPoints,
} = this.props
const globalD = pathCode(path, globalPoints)
const localD = pathCode(path, localPoints)
const { x, y, width, height } = snapPath.getBBox(globalD)
const strokeWidth = 1 / zoom
return (