Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > blockRendering > PathObject > setPath
blockRendering.PathObject.setPath() yöntemi
Oluşturucu tarafından oluşturulan yolu ilgili SVG öğesine ayarlayın.
İmza:
setPath(pathString: string): void;
Parametreler
Parametre |
Tür |
Açıklama |
pathString |
dize |
Yol. |
Ş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-08-21 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-08-21 UTC."],[[["The `setPath` method updates the SVG element of a `PathObject` with a new path defined by the provided `pathString`."],["This method is part of the `blockRendering.PathObject` class within the Blockly library and is essential for visually rendering blocks."],["It accepts a single argument, `pathString`, which is a string representing the SVG path data."],["Calling `setPath` does not return any value, it simply updates the visual representation of the `PathObject`."]]],["The `setPath()` method, part of the `blockRendering.PathObject` class, updates the SVG element with a new path. It takes a single parameter, `pathString`, which is a string defining the path to be applied. This method does not return any value. It essentially sets the visual path of the rendered element based on the input string.\n"]]