I am working with clip() in canvas.
clip()
I have made a region to clip(), as specified below
this.svgRenderer.ctx.rect(positionX, pos
.clip is a permanent context state change.
.clip
It can only be removed by wrapping it in .save and .restore.
.save
.restore
Changing the canvas element width will clear the context state (and remove clipping) but will also erase the existing drawings.