blockly > InsertionMarkerPreviewer

המחלקה InsertionMarkerPreviewer

Signature:

export declare class InsertionMarkerPreviewer implements IConnectionPreviewer 

הטמעות: IConnectionPreviewer

יצרנים

יצרן גורמי שינוי תיאור
(constructor)(draggedBlock) יצירת מופע חדש של המחלקה InsertionMarkerPreviewer

שיטות

שיטה גורמי שינוי תיאור
dispose() מסירים את כל ההפניות ששמורות בתצוגה המקדימה של החיבור.
hidePreview() הסתרת כל התצוגות המקדימות שמוצגות כרגע.
previewConnection(draggedConn, staticConn) הצגת תצוגה מקדימה של חיבור שבה המשתמש DraggedCon מתחבר ל-staticCon, ולא נוצר שום קישור לבלוק.
previewReplacement(draggedConn, staticConn, replacedBlock) להציג תצוגה מקדימה של חיבור שבה המשתמש DraggedCon מתחבר ל-staticCon, ויחליף את ה-changeBlock (המחובר כרגע ל-staticCon).