blockly > IConnectionPreviewer > previewReplacement
IConnectionPreviewer.previewReplacement()
عرض معاينة اتصال حيث يتصل DraggedCon بـ staticCon، بدلاً من replaceBlock (المتصل حاليًا بـ staticCon).
Signature:
previewReplacement(draggedConn: RenderedConnection, staticConn: RenderedConnection, replacedBlock: BlockSvg): void;
المعلمات
المعلمة |
النوع |
الوصف |
draggedConn |
RenderedConnection |
|
staticConn |
RenderedConnection |
|
replacedBlock |
BlockSvg |
الكتلة المتصلة حاليًا بـ staticCon التي يتم استبدالها. |
المرتجعات:
فراغ
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `previewReplacement` method visually displays how a dragged connection would connect to a static connection, replacing an existing block."],["It takes three parameters: the dragged connection, the static connection, and the block being replaced."],["This method is part of the `IConnectionPreviewer` interface and doesn't return any value."]]],["The `previewReplacement` method, part of the `IConnectionPreviewer` interface, shows a connection preview. This preview illustrates how a `draggedConn` would connect to a `staticConn`, effectively replacing a `replacedBlock` that is currently connected to the `staticConn`. The method takes three parameters: `draggedConn` (the connection being dragged), `staticConn` (the stationary connection), and `replacedBlock` (the block being replaced). The method returns void.\n"]]