blockly > FlyoutMetricsManager > getScrollMetrics
Podpis:
getScrollMetrics(opt_getWorkspaceCoordinates?: boolean, opt_viewMetrics?: ContainerRegion, opt_contentMetrics?: ContainerRegion): {
height: number;
width: number;
top: number;
left: number;
};
Parametry
Parametr |
Typ |
Opis |
opt_getWorkspaceCoordinates |
wartość logiczna |
(Opcjonalnie) |
opt_viewMetrics |
ContainerRegion |
(Opcjonalnie) |
opt_contentMetrics |
ContainerRegion |
(Opcjonalnie) |
Zwroty:
{ height: number; szerokość: liczba; top: liczba; left: liczba;
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["`FlyoutMetricsManager.getScrollMetrics()` calculates and returns the scroll metrics of a flyout, including height, width, top, and left positions."],["This method optionally accepts workspace coordinates, view metrics, and content metrics to aid in the calculation."],["The returned object provides the dimensions and position of the flyout's scrollable area."]]],[]]