pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
17 lines (16 loc) • 986 B
TypeScript
import * as Blockly from "blockly";
export declare function setDraggableShadowBlocks(ids: string[]): void;
/**
* Configures duplicate on drag for a block's child inputs
*
* @param parentBlockType The type of the parent block
* @param inputName The value input to duplicate blocks on when dragged. If not
* specified, all child value inputs will be duplicated
* @param childBlockType The type of the child block to be duplicated. If not specified,
* any block attached to the input will be duplicated on drag
* regardless of type
*/
export declare function setDuplicateOnDrag(parentBlockType: string, inputName?: string, childBlockType?: string): void;
export declare function isAllowlistedShadow(block: Blockly.Block): boolean;
export declare function shouldDuplicateOnDrag(block: Blockly.Block): boolean;
export declare function updateDuplicateOnDragState(block: Blockly.BlockSvg): void;