blockly > MetricsManager > getAbsoluteMetrics
Metoda MetricsManager.getAbsoluteMetrics()
Pobiera bezwzględną pozycję lewej i górnej krawędzi w układzie współrzędnych pikseli. W tym miejscu zaczyna się widoczny obszar roboczy w odniesieniu do kontenera SVG.
Podpis:
getAbsoluteMetrics(): AbsoluteMetrics;
Zwroty:
AbsoluteMetrics
Dane bezwzględne dotyczące obszaru roboczego.
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-11-30 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-30 UTC."],[[["The `getAbsoluteMetrics()` method returns the position of the visible workspace within the SVG container."],["It provides the absolute left and top positions in pixels as an `AbsoluteMetrics` object."]]],["The `getAbsoluteMetrics()` method, part of the `MetricsManager` class, retrieves the absolute position of the visible workspace within the SVG container. It returns the absolute left and top coordinates in pixels, indicating where the workspace begins. The method's output is an `AbsoluteMetrics` object, encapsulating these positional values. This method is called without any arguments.\n"]]