@antv/layout
Version:
graph layout algorithm
37 lines (31 loc) • 869 B
JavaScript
import { __require as require_Hash } from './_Hash.js';
import { __require as require_ListCache } from './_ListCache.js';
import { __require as require_Map } from './_Map.js';
var _mapCacheClear;
var hasRequired_mapCacheClear;
function require_mapCacheClear () {
if (hasRequired_mapCacheClear) return _mapCacheClear;
hasRequired_mapCacheClear = 1;
var Hash = require_Hash(),
ListCache = require_ListCache(),
Map = require_Map();
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.size = 0;
this.__data__ = {
'hash': new Hash,
'map': new (Map || ListCache),
'string': new Hash
};
}
_mapCacheClear = mapCacheClear;
return _mapCacheClear;
}
export { require_mapCacheClear as __require };
//# sourceMappingURL=_mapCacheClear.js.map