blockly > DragTarget > getClientRect
Metoda DragTarget.getClientRect()
Zwraca prostokąt ograniczający obszar docelowy przeciągania w jednostkach pikseli względem elementu div wstrzykiwania Blockly.
Podpis:
getClientRect(): Rect | null;
Zwroty:
Prostokąt | wartość null
Ramka ograniczająca komponentu. Wartość null, jeśli obszar docelowy przeciągania ma być ignorowany.
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-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-21 UTC."],[[["`getClientRect()` provides the coordinates and dimensions of the drag target area within the Blockly workspace."],["It returns a `Rect` object representing the bounding box, or `null` if the area should not be considered for dragging."],["Coordinates returned by `getClientRect()` are relative to the Blockly injection div, which is the main container of the workspace."]]],[]]