jstd-web/node_modules/diagram-js/lib/features/clipboard/Clipboard.js

25 lines
377 B
JavaScript
Raw Normal View History

2025-11-25 15:23:22 +08:00
/**
* A clip board stub
*/
export default function Clipboard() {}
Clipboard.prototype.get = function() {
return this._data;
};
Clipboard.prototype.set = function(data) {
this._data = data;
};
Clipboard.prototype.clear = function() {
var data = this._data;
delete this._data;
return data;
};
Clipboard.prototype.isEmpty = function() {
return !this._data;
};