Merge pull request #8394 from google/develop

chore: develop into V12 to pin node version
This commit is contained in:
Beka Westberg
2024-07-18 18:46:10 +00:00
committed by GitHub
8 changed files with 249 additions and 462 deletions

View File

@@ -457,7 +457,7 @@ export class BlockSvg
getBoundingRectangleWithoutChildren(): Rect {
return this.getBoundingRectangleWithDimensions({
height: this.height,
width: this.width,
width: this.childlessWidth,
});
}

View File

@@ -104,7 +104,7 @@ export class CommentView implements IRenderedElement {
constructor(private readonly workspace: WorkspaceSvg) {
this.svgRoot = dom.createSvgElement(Svg.G, {
'class': 'blocklyComment blocklyEditable',
'class': 'blocklyComment blocklyEditable blocklyDraggable',
});
this.highlightRect = this.createHighlightRect(this.svgRoot);

View File

@@ -57,6 +57,7 @@ export class RenderedWorkspaceComment
// Set the size to the default size as defined in the superclass.
this.view.setSize(this.getSize());
this.view.setEditable(this.isEditable());
this.view.getSvgRoot().setAttribute('data-id', this.id);
this.addModelUpdateBindings();

View File

@@ -748,7 +748,6 @@ export class Workspace implements IASTNodeLocation {
*
* @param id ID of comment to find.
* @returns The sought after comment, or null if not found.
* @internal
*/
getCommentById(id: string): WorkspaceComment | null {
return this.commentDB.get(id) ?? null;