Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Hareket
Hareket sınıfı
Bir hareket için ders.
İmza:
export declare class Gesture
Markalar
Özellikler
Özellik |
Değiştiriciler |
Tür |
Açıklama |
currentDropdownOwner |
|
Alan | boş |
Bu hareket ilk başladığında dropDiv öğesinin sahibi. Alanlar etkinlikleri üzerinde işlem yapmadan önce açılır listeyi kapatacağımız ve bazı alanlar açılır listenin kime ait olduğuyla ilgilenebileceği için gereklidir. |
isEnding_ |
protected |
boolean |
Bertaraf sürecini kırmak için dahili olarak kullanılan Boole. |
startWorkspace_ |
protected |
WorkspaceSvg | boş |
Hareketin başlatıldığı çalışma alanı. Bir sayfada birden fazla çalışma alanı olabilir; bu, Blockly.common.getMainWorkspace() kullanımına kıyasla daha doğru sonuç verir. |
Yöntemler
Yöntem |
Değiştiriciler |
Açıklama |
getCurrentDragger() |
|
Hareket bir sürükleme işlemiyse geçerli sürükleyici döndürür. |
inProgress() |
static |
Şu anda herhangi bir çalışma alanında sürükleme veya başka bir hareket devam ediyor mu? |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[[["The `Gesture` class in Blockly handles user interactions like drags and other gestures within a workspace."],["It tracks the workspace where the gesture originated and manages the current dragger if the gesture involves dragging."],["You can use the `inProgress()` method to check if any drag or gesture is currently active on any of the Blockly workspaces."],["A `Gesture` instance is initiated with details of the event and the originating workspace."]]],["The `Gesture` class manages user interactions, primarily focusing on drags. It stores the starting workspace and tracks the current dropdown owner. Key actions include creating a new `Gesture` instance with an event and workspace. It manages whether the gesture is ending internally, the `getCurrentDragger()` method provides access to the active dragger, and the static method `inProgress()` checks if any gesture is underway across all workspaces.\n"]]