UNPKG

@minofrk/xelto-diagram-canvas

Version:

An implementation of <xelto-diagram> in TypeScript.

18 lines 451 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class PrivateMap { constructor() { this.mapOfMap = new WeakMap(); } init(that, initMap) { this.mapOfMap.set(that, initMap); } of(that) { const value = this.mapOfMap.get(that); if (!value) throw new TypeError(); return value; } } exports.default = PrivateMap; //# sourceMappingURL=private-map.js.map