layoutMetrics property

Map<String, Object?> layoutMetrics
getter/setter pair

The layout metrics Page.getLayoutMetrics reports.

Defaults to a 800x600 viewport over a 800x600 document at a device pixel ratio of 1.

Implementation

Map<String, Object?> layoutMetrics = {
  'layoutViewport': {
    'pageX': 0,
    'pageY': 0,
    'clientWidth': 800,
    'clientHeight': 600,
  },
  'visualViewport': {
    'offsetX': 0,
    'offsetY': 0,
    'pageX': 0,
    'pageY': 0,
    'clientWidth': 800,
    'clientHeight': 600,
    'scale': 1,
    'zoom': 1,
  },
  'contentSize': {'x': 0, 'y': 0, 'width': 800, 'height': 600},
  'cssLayoutViewport': {
    'pageX': 0,
    'pageY': 0,
    'clientWidth': 800,
    'clientHeight': 600,
  },
  'cssVisualViewport': {
    'offsetX': 0,
    'offsetY': 0,
    'pageX': 0,
    'pageY': 0,
    'clientWidth': 800,
    'clientHeight': 600,
    'scale': 1,
    'zoom': 1,
  },
  'cssContentSize': {'x': 0, 'y': 0, 'width': 800, 'height': 600},
};