UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering.

13 lines 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.uuid = void 0; function uuid() { // credit: http://stackoverflow.com/posts/2117523/revisions return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = (Math.random() * 16) | 0; var v = c === 'x' ? r : (r & 0x3) | 0x8; return v.toString(16); }); } exports.uuid = uuid; //# sourceMappingURL=uuid.js.map