blockly > dragging > CommentDragStrategy
Signature:
export declare class CommentDragStrategy implements IDragStrategy
Implements: IDragStrategy
Constructors
Constructor |
Modifiers |
Description |
(constructor)(comment) |
|
Constructs a new instance of the CommentDragStrategy class |
Methods
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.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `CommentDragStrategy` class in Blockly manages the dragging behavior of workspace comments."],["It implements the `IDragStrategy` interface and provides methods for controlling the drag process, such as `startDrag`, `drag`, `endDrag`, and `revertDrag`."],["This class determines if a comment is movable using the `isMovable` method and handles updating the comment's position during the drag."],["A new `CommentDragStrategy` instance is created using its constructor, taking the comment block as an argument."]]],[]]