Stay organized with collections
Save and categorize content based on your preferences.
blockly > bubbles > TextInputBubble > (constructor)
bubbles.TextInputBubble.(constructor)
Constructs a new instance of the TextInputBubble
class
Signature:
constructor(workspace: WorkspaceSvg, anchor: Coordinate, ownerRect?: Rect | undefined);
Parameters
Parameter |
Type |
Description |
workspace |
WorkspaceSvg |
The workspace this bubble belongs to. |
anchor |
Coordinate |
The anchor location of the thing this bubble is attached to. The tail of the bubble will point to this location. |
ownerRect |
Rect | undefined |
(Optional) An optional rect we don't want the bubble to overlap with when automatically positioning. |
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 `TextInputBubble` class provides a way to display and edit text within a Blockly workspace."],["A new `TextInputBubble` instance requires a workspace, anchor point for the bubble's tail, and an optional area to avoid overlapping."],["The constructor initializes the bubble with the given workspace, anchor location, and optional bounding rectangle to avoid overlap."]]],["The `TextInputBubble` class constructor creates a new bubble instance. It requires a `WorkspaceSvg` object, defining the workspace the bubble belongs to. It also needs an `anchor` coordinate, indicating where the bubble's tail connects. An optional `ownerRect` can be provided to prevent bubble overlap during automatic positioning. These parameters define the bubble's environment and placement within the workspace.\n"]]