const newGeneralPath = super.getPath(edge)!
const newObstacleHash = this.getObstacleHash(context)
if (
!newGeneralPath.hasSameValue(cache.generalPath) ||
newObstacleHash !== cache.obstacleHash
) {
const croppedGeneralPath = super.cropPath(
edge,
IArrow.NONE,
IArrow.NONE,
newGeneralPath
)!
const pathWithBridges = this.createPathWithBridges(
croppedGeneralPath,
context
)
const pathData = pathWithBridges.createSvgPathData()
widePath.setAttribute('d', pathData)
thinPath.setAttribute('d', pathData)
cache.generalPath = newGeneralPath
cache.obstacleHash = newObstacleHash
}