blockly > Options > setMetrics
Options.setMetrics property
If set, sets the translation of the workspace to match the scrollbars. A function that sets the translation of the workspace to match the scrollbars. The argument Contains an x and/or y property which is a float between 0 and 1 specifying the degree of scrolling.
Signature:
setMetrics?: (p1: {
x?: number;
y?: number;
}) => void;