Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > InsertionMarkerPreviewer > previewReplacement
ConnectivityMarkerPreviewer.previewPlacement() yöntemi
DraggedCon'un staticCon'a bağlandığı ve replaceBlock (şu anda staticCon'a bağlı) olduğu yerde bir bağlantı önizlemesi görüntüleyin.
İmza:
previewReplacement(draggedConn: RenderedConnection, staticConn: RenderedConnection, replacedBlock: BlockSvg): void;
Parametreler
Parametre |
Tür |
Açıklama |
draggedConn |
RenderedConnection |
Sürüklenen blok yığınındaki bağlantı. |
staticConn |
RenderedConnection |
Bağlandığımız bağlantı sürüklenmiyor. |
replacedBlock |
BlockSvg |
Blok, değiştirilmekte olan staticCon'a bağlı. |
Şunu döndürür:
geçersiz
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: 2024-09-08 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: 2024-09-08 UTC."],[[["The `previewReplacement` method visually demonstrates how a dragged block would connect and replace an existing block within a Blockly workspace."],["It takes three arguments: the dragged block's connection point, the static connection point it might connect to, and the block that would be replaced by this connection."],["This method is crucial for providing users with a clear preview before they commit to a block connection change, improving the user experience within the Blockly editor."]]],[]]