Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > geras > Çekmece
geras.Çekmece sınıfı
Belirtilen oluşturma bilgilerine göre geras oluşturucu için özelleştirilmiş bir blok çizen nesne.
İmza:
export declare class Drawer extends BaseDrawer
Genişletir: BaseDrawer
Markalar
Özellikler
Yöntemler
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 `geras.Drawer` class is responsible for drawing blocks within the Blockly workspace, specifically tailored for the Geras renderer."],["It extends the `BaseDrawer` class and provides methods for drawing various block elements, such as inputs, connections, and edges."],["It utilizes a `ConstantProvider` for consistent styling and a `Highlighter` for visual feedback."],["Key functionalities include methods like `draw()`, `drawInlineInput_()`, `drawJaggedEdge_()`, and methods for positioning connections."]]],["The `Drawer` class, part of the `geras` renderer, is designed to draw blocks based on provided rendering information. It extends the `BaseDrawer` and includes a constructor to create instances. Key actions include drawing the block using the `draw()` method, and drawing specific block elements such as the top, bottom, left side, jagged edge, inline, statement, and value inputs via methods like `drawTop_()`, `drawBottom_()`, `drawInlineInput_()`, `drawStatementInput_()`, etc. It also positions connections with similar `position` methods. It holds properties for `constants_` and a `highlighter_`.\n"]]