When creating P&ID (Piping & Instrumentation Drawing) views in Ignition Perspective using XY-coordinates with percentage mode and maintaining Aspect Ratio, I ran into misalignment issues where pipe lines and instruments would shift on different screen sizes.
Using CSS transform and transform-origin to uniformly scale and center the entire view using scale(ZoomFactor) translateX(CenterXpx, CenterYpx) & transform-origin: top left . I was able to scale in/out the views on different screen sizes.
I wanted to share this approach because it can make scaling your P&ID views in and out on different screen sizes effortless and ensure your drawings stay perfectly aligned.
I welcome any feedback or suggestions to make it even better!
Thank you,
Pratik Patel
ZoomInOutView.zip (3.1 KB)