Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > geras > Oluşturucu > makePathObject
geras.Renderer.makePathObject() yöntemi
Oluşturucu yolu nesnesinin yeni bir örneğini oluşturun.
İmza:
makePathObject(root: SVGElement, style: BlockStyle): PathObject;
Parametreler
Parametre |
Tür |
Açıklama |
kök |
SVGElement |
Kök SVG öğesi. |
stil |
BlockStyle |
Renklendirme için kullanılacak stil nesnesi. |
Şunu döndürür:
PathObject
Oluşturucu yol nesnesi.
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 `makePathObject` method, part of the `geras.Renderer` class, creates a new renderer path object. It requires two parameters: `root`, an SVG element, and `style`, a `BlockStyle` object for coloring. This method returns a `PathObject`, representing the constructed renderer path. The method's primary function is to instantiate and configure a path object for rendering, utilizing provided SVG element and style information.\n"]]