UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

14 lines (13 loc) 817 B
import * as Blockly from "blockly"; export declare class ConnectionPreviewer extends Blockly.InsertionMarkerPreviewer { static CONNECTION_INDICATOR_RADIUS: number; protected connectionLine: SVGLineElement; protected draggedConnectionIndicator: SVGElement; protected staticConnection: Blockly.RenderedConnection; protected staticConnectionIndicator: SVGElement; previewConnection(draggedConn: Blockly.RenderedConnection, staticConn: Blockly.RenderedConnection): void; previewReplacement(draggedConn: Blockly.RenderedConnection, staticConn: Blockly.RenderedConnection, replacedBlock: Blockly.BlockSvg): void; private showDraggedIndicatorWithLine; hidePreview(): void; protected createConnectionIndicator(parent: SVGElement, connection: Blockly.RenderedConnection): SVGElement; }