Research Survey: Tell us about your experience with Blockly
Start survey
Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering
blockRendering namespace
Classes
Class |
Description |
BottomRow |
An object containing information about what elements are in the bottom row of a block as well as spacing information for the bottom row. Elements in a bottom row can consist of corners, spacers and next connections. |
Connection |
The base class to represent a connection and the space that it takes up on the block. |
ConstantProvider |
An object that provides constants for rendering blocks. |
Drawer |
An object that draws a block based on the given rendering information. |
ExternalValueInput |
An object containing information about the space an external value input takes up during rendering |
Field |
An object containing information about the space a field takes up during rendering |
Hat |
An object containing information about the space a hat takes up during rendering. |
Icon |
An object containing information about the space an icon takes up during rendering. |
InlineInput |
An object containing information about the space an inline input takes up during rendering. |
InputConnection |
The base class to represent an input that takes up space on a block during rendering. |
InputRow |
An object containing information about a row that holds one or more inputs. |
InRowSpacer |
An object containing information about a spacer between two elements on a row. |
JaggedEdge |
An object containing information about the space the jagged edge of a collapsed block takes up during rendering. |
MarkerSvg |
Class for a marker, containing methods for graphically rendering a marker as SVG. |
Measurable |
The base class to represent a part of a block that takes up space during rendering. The constructor for each non-spacer Measurable records the size of the block element (e.g. field, statement input). |
NextConnection |
An object containing information about the space a next connection takes up during rendering. |
OutputConnection |
An object containing information about the space an output connection takes up during rendering. |
PathObject |
An object that handles creating and setting each of the SVG elements used by the renderer. |
PreviousConnection |
An object containing information about the space a previous connection takes up during rendering. |
Renderer |
The base class for a block renderer. |
RenderInfo |
An object containing all sizing information needed to draw this block. This measure pass does not propagate changes to the block (although fields may choose to rerender when getSize() is called). However, calling it repeatedly may be expensive. |
RoundCorner |
An object containing information about the space a rounded corner takes up during rendering. |
Row |
An object representing a single row on a rendered block and all of its subcomponents. |
SpacerRow |
An object containing information about a spacer between two rows. |
SquareCorner |
An object containing information about the space a square corner takes up during rendering. |
StatementInput |
An object containing information about the space a statement input takes up during rendering |
TopRow |
An object containing information about what elements are in the top row of a block as well as sizing information for the top row. Elements in a top row can consist of corners, hats, spacers, and previous connections. After this constructor is called, the row will contain all non-spacer elements it needs. |
Functions
Interfaces
Interface |
Description |
InsideCorners |
An object containing sizing and path information about inside corners. |
IPathObject |
An interface for a block's path object. |
JaggedTeeth |
An object containing sizing and path information about collapsed block indicators. |
Notch |
An object containing sizing and path information about a notch. |
OutsideCorners |
An object containing sizing and path information about outside corners. |
PuzzleTab |
An object containing sizing and path information about a puzzle tab. |
StartHat |
An object containing sizing and path information about a start hat. |
Variables
Variable |
Description |
Types |
|
Type Aliases
Type Alias |
Description |
BaseShape |
|
DynamicShape |
An object containing sizing and type information about a dynamic shape. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `blockRendering` namespace handles the visual rendering of Blockly blocks, including their shapes, connections, and components like fields and inputs."],["It defines a range of classes and interfaces representing various block elements and their dimensions, used for calculating layout and drawing."],["Renderers within this namespace dictate the specific style and appearance of blocks, with options for registration and customization."],["The namespace also manages the rendering of connections, inputs, and other visual elements that contribute to the block's overall structure."],["Several utility functions and types are included for managing constants, path objects, and shape definitions used in the rendering process."]]],[]]