blockly > الفقاعات > فقاعة تفسيرية > setAnchorLocation
speechs.Bubble.setAnchorLocation()
حدِّد الموقع الذي تشير إليه الفقاعة.
Signature:
setAnchorLocation(anchor: Coordinate, relayout?: boolean): void;
المعلمات
المعلمة |
النوع |
الوصف |
علامة ارتساء |
التنسيق |
تمثّل هذه السمة المكان الذي تشير إليه أسفل الفقاعة. |
ترحيل |
منطقي |
(اختياري) إذا كانت الفقاعة التفسيرية "صحيح"، عليك إعادة وضعها من البداية حتى تصبح مرئية على النحو الأمثل. إذا كانت القيمة خاطئة، غيِّر موضعها حتى تحافظ على الموضع نفسه بالنسبة إلى علامة الارتساء. |
المرتجعات:
فراغ
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `setAnchorLocation()` method in Blockly's `bubbles.Bubble` class allows you to define the point to which the bubble's tail should be directed."],["It takes a `Coordinate` object as input, specifying the anchor point's location, and an optional boolean `relayout` parameter to control whether the bubble should be repositioned for optimal visibility or maintain its relative position to the anchor."],["Calling this method updates the visual connection between the bubble and its designated anchor point on the workspace."]]],["The `setAnchorLocation()` method in the `bubbles.Bubble` class allows setting the tail's location on a bubble. It accepts a `Coordinate` object representing the target location. An optional boolean parameter, `relayout`, dictates whether the bubble should be fully repositioned for optimal visibility (true) or maintain its relative position to the new anchor (false). The method returns nothing (`void`).\n"]]