const newGeneralPath = super.getPath(edge)!
const newObstacleHash = this.getObstacleHash(context)
if (
!newGeneralPath.hasSameValue(cache.generalPath) ||
newObstacleHash !== cache.obstacleHash
) {
const croppedGeneralPath = super.cropPath(
edge,
new Arrow(ArrowType.NONE),
new Arrow(ArrowType.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
}