Stay organized with collections
Save and categorize content based on your preferences.
blockly > bubbles > Bubble > (constructor)
bubbles.Bubble.(constructor)
Constructs a new instance of the Bubble
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."],[[["`bubbles.Bubble` constructor creates a new bubble instance within a workspace."],["The bubble's tail points to an anchor location, usually an element it's attached to."],["An optional rectangle can be specified to prevent the bubble from overlapping it during automatic positioning."]]],[]]