Class VisualViewport

java.lang.Object
io.webfolder.cdp.type.page.VisualViewport

public class VisualViewport extends Object
Visual viewport position, dimensions, and scale
  • Constructor Details

    • VisualViewport

      public VisualViewport()
  • Method Details

    • getOffsetX

      public Double getOffsetX()
      Horizontal offset relative to the layout viewport (CSS pixels).
    • setOffsetX

      public void setOffsetX(Double offsetX)
      Horizontal offset relative to the layout viewport (CSS pixels).
    • getOffsetY

      public Double getOffsetY()
      Vertical offset relative to the layout viewport (CSS pixels).
    • setOffsetY

      public void setOffsetY(Double offsetY)
      Vertical offset relative to the layout viewport (CSS pixels).
    • getPageX

      public Double getPageX()
      Horizontal offset relative to the document (CSS pixels).
    • setPageX

      public void setPageX(Double pageX)
      Horizontal offset relative to the document (CSS pixels).
    • getPageY

      public Double getPageY()
      Vertical offset relative to the document (CSS pixels).
    • setPageY

      public void setPageY(Double pageY)
      Vertical offset relative to the document (CSS pixels).
    • getClientWidth

      public Double getClientWidth()
      Width (CSS pixels), excludes scrollbar if present.
    • setClientWidth

      public void setClientWidth(Double clientWidth)
      Width (CSS pixels), excludes scrollbar if present.
    • getClientHeight

      public Double getClientHeight()
      Height (CSS pixels), excludes scrollbar if present.
    • setClientHeight

      public void setClientHeight(Double clientHeight)
      Height (CSS pixels), excludes scrollbar if present.
    • getScale

      public Double getScale()
      Scale relative to the ideal viewport (size at width=device-width).
    • setScale

      public void setScale(Double scale)
      Scale relative to the ideal viewport (size at width=device-width).
    • getZoom

      public Double getZoom()
      Page zoom factor (CSS to device independent pixels ratio).
    • setZoom

      public void setZoom(Double zoom)
      Page zoom factor (CSS to device independent pixels ratio).