pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
15 lines (14 loc) • 1.42 kB
TypeScript
/// <reference path="../pxtlib.d.ts" />
import * as Blockly from "blockly";
export declare function isArrayType(type: string): string;
export declare function createShadowValue(info: pxtc.BlocksInfo, p: pxt.blocks.BlockParameter, shadowId?: string, defaultV?: string, parentIsShadow?: boolean, maxRecursion?: number): Element;
export declare function createFlyoutHeadingLabel(name: string, color?: string, icon?: string, iconClass?: string): HTMLElement;
export declare function createFlyoutGroupLabel(name: string, icon?: string, labelLineWidth?: string, helpCallback?: string): HTMLElement;
export declare function createFlyoutButton(callbackKey: string, label: string): Element;
export declare function createFlyoutGap(gap: number): Element;
export declare function createToolboxBlock(info: pxtc.BlocksInfo, fn: pxtc.SymbolInfo, comp: pxt.blocks.BlockCompileInfo, isShadow?: boolean, maxRecursion?: number): HTMLElement;
export declare function mkPredicateBlock(type: string): HTMLElement;
export declare function mkFieldBlock(type: string, fieldName: string, fieldValue: string, isShadow: boolean): HTMLElement;
export declare function mkVariableFieldBlock(type: string, id: string, typeString: string, name: string, isShadow: boolean): HTMLElement;
export declare function mkReturnStatementBlock(): HTMLElement;
export declare function createFunctionsFlyoutCategory(workspace: Blockly.WorkspaceSvg): Element[];