blockly > MetricsManager > getDimensionsPx_
Metoda MetricsManager.getDimensionsPx_()
Pobiera wymiary danego komponentu obszaru roboczego we współrzędnych pikseli.
Podpis:
protected getDimensionsPx_(elem: IToolbox | null | IFlyout): Size;
Parametry
Parametr | Typ | Opis |
---|---|---|
Elem | IToolbox | null | IFlyout | Element, którego mają dotyczyć wymiary, lub ma wartość null. Powinien to być zestaw narzędzi lub menu wysuwany oraz implementowane metody getwidth() i getHeight(). |
Zwraca:
Obiekt zawierający atrybuty szerokości i wysokości. Jeśli element nie istnieje, oba atrybuty będą mieć wartość zero.