mirror of
https://github.com/google/blockly.git
synced 2026-01-19 23:07:21 +01:00
Our files are up to a decade old, and have churned so much, that the initial author of the file no longer has much meaning. Furthermore, this will encourage developers to post to the developer group, rather than emailing Googlers (usually me) directly.
50 lines
957 B
JavaScript
50 lines
957 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The interface for an object that is copyable.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
/**
|
|
* The interface for an object that is copyable.
|
|
* @namespace Blockly.ICopyable
|
|
*/
|
|
goog.module('Blockly.ICopyable');
|
|
|
|
/* eslint-disable-next-line no-unused-vars */
|
|
const ISelectable = goog.require('Blockly.ISelectable');
|
|
/* eslint-disable-next-line no-unused-vars */
|
|
const WorkspaceSvg = goog.requireType('Blockly.WorkspaceSvg');
|
|
|
|
|
|
/**
|
|
* @extends {ISelectable}
|
|
* @interface
|
|
* @alias Blockly.ICopyable
|
|
*/
|
|
const ICopyable = function() {};
|
|
|
|
/**
|
|
* Encode for copying.
|
|
* @return {?ICopyable.CopyData} Copy metadata.
|
|
* @package
|
|
*/
|
|
ICopyable.prototype.toCopyData;
|
|
|
|
/**
|
|
* Copy Metadata.
|
|
* @typedef {{
|
|
* saveInfo:(!Object|!Element),
|
|
* source:WorkspaceSvg,
|
|
* typeCounts:?Object
|
|
* }}
|
|
*/
|
|
ICopyable.CopyData;
|
|
|
|
exports = ICopyable;
|