Question: first here:line 2 2 to line 5 1 ( / * * * Constructs a BlockSuggestor object. * @param { number } numBlocksPerCategory the size
first here:line to line
Constructs a BlockSuggestor object.
@param number numBlocksPerCategory the size of each toolbox category
constructornumBlocksPerCategory
Saves the full JSON data for each block type the first time it's used.
This helps store what initial configuration subblocks each block type
would be expected to have.
this.defaultJsonForBlockLookup ;
List of reently used block types
this.recentlyUsedBlocks ;
Checks if the workspace is finished loading, to avoid taking action on
all the BLOCKCREATE events during workspace loading.
this.workspaceHasFinishedLoading false;
Config parameter which sets the size of the toolbox categories.
this.numBlocksPerCategory numBlocksPerCategory;
this.eventListener this.eventListener.bindthis;
this.getMostUsed this.getMostUsed.bindthis;
this.getRecentlyUsed this.getRecentlyUsed.bindthis;
this.generateBlockData this.generateBlockData.bindthis;
second here:line workspace
third here: line @param BlocklyWorkspaceSvg workspace the workspace to load into
the link on the point shows this:
@param optoptions Optional dictionary of options.
@returns Newly created main workspace.
export function inject
container: Element string,
optoptions?: BlocklyOptions,
: WorkspaceSvg
let containerElement: Element null null;
if typeof container 'string'
containerElement
document.getElementByIdcontainer document.querySelectorcontainer;
else
containerElement container;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
