mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 19:34:05 -06:00
prettier
This commit is contained in:
parent
7413f2a479
commit
dc5602504e
@ -127,18 +127,18 @@ class DiagramPanZoom {
|
||||
|
||||
private resetTransform() {
|
||||
this.scale = 1
|
||||
|
||||
|
||||
// Get container and SVG dimensions
|
||||
const containerRect = this.container.getBoundingClientRect()
|
||||
const svg = this.content.querySelector("svg")!
|
||||
const svgRect = svg.getBoundingClientRect()
|
||||
|
||||
|
||||
// Calculate center position relative to container
|
||||
this.currentPan = {
|
||||
x: (containerRect.width - svgRect.width) / 2,
|
||||
y: (containerRect.height - svgRect.height) / 2,
|
||||
}
|
||||
|
||||
|
||||
this.updateTransform()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user