Understand the Panzoom event detail object
mainEvery Panzoom event provides a detail object containing the current transformation state and the triggering event. The properties available in detail are:
x: The current x-coordinate.y: The current y-coordinate.scale: The current zoom scale.originalEvent: The original browser event that triggered the panzoom action (e.g.,pointerdown,touchstart, ormousedown). This is applicable for events likepanzoomstartandpanzoomend.