mirror of
https://github.com/google/blockly.git
synced 2026-01-14 12:27:10 +01:00
* introduce IDraggable interface * Add parameter to drag methods in IDragTarget * combines bubble/drag methods on IDragTarget and IDeleteArea to take an IDraggable element
25 lines
442 B
JavaScript
25 lines
442 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for an object that is draggable.
|
|
* @author kozbial@google.com (Monica Kozbial)
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
goog.provide('Blockly.IDraggable');
|
|
|
|
goog.require('Blockly.IDeletable');
|
|
|
|
|
|
/**
|
|
* The interface for an object that can be dragged.
|
|
* @extends {Blockly.IDeletable}
|
|
* @interface
|
|
*/
|
|
Blockly.IDraggable = function() {};
|