All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.classDiagram-v2-a2b738ad.d5eca625.js.map Maven / Gradle / Ivy

{"mappings":"A,S,E,C,C,C,C,C,C,C,E,O,c,C,E,E,C,I,E,I,E,W,C,E,a,C,C,E,C,I,E,A,W,iB,C,E,E,Q,C,E,Q,S,C,C,C,E,E,E,O,C,U,I,G,I,E,E,S,E,E,S,E,E,S,E,E,S,E,E,S,E,S,E,S,E,S,E,S,E,S,E,SCmBA,IAAM,EAAe,AAAC,GAAQ,AAAA,CAAA,EAAA,EAAA,CAAK,AAAL,EAAO,YAAY,CAAC,EAAK,AAAA,CAAA,EAAA,EAAA,CAAQ,AAAR,KACnD,EAAO,CACT,cAAe,GACf,QAAS,EACT,WAAY,GACZ,MAAO,KAAK,CACd,EACM,EAAgB,SAAS,CAAU,CAAE,CAAC,CAAE,CAAG,CAAE,CAAO,EACxD,IAAM,EAAO,OAAO,IAAI,CAAC,GACzB,AAAA,CAAA,EAAA,EAAA,CAAE,AAAF,EAAI,IAAI,CAAC,QAAS,GAClB,AAAA,CAAA,EAAA,EAAA,CAAE,AAAF,EAAI,IAAI,CAAC,GACT,EAAK,OAAO,CAAC,SAAS,CAAE,EACtB,IAAI,EAAI,EACR,IAAM,EAAS,CAAU,CAAC,EAAG,CAEvB,EAAO,CACX,MAFY,OAGZ,GAAI,EAAO,EAAE,CACb,MAAO,EAAO,KAAK,CACnB,UAAW,EAAa,EAAO,EAAE,EACjC,WAAY,GACZ,MAAO,4BAEP,QAAU,AAAC,CAAA,AAA+B,MAA/B,CAAA,EAAK,AAAA,CAAA,EAAA,EAAA,CAAQ,AAAR,IAAY,SAAQ,AAAR,EAAqB,KAAK,EAAI,EAAG,OAAM,AAAN,GAAc,CAAA,AAA2B,MAA3B,CAAA,EAAK,AAAA,CAAA,EAAA,EAAA,CAAQ,AAAR,IAAY,KAAK,AAAL,EAAiB,KAAK,EAAI,EAAG,OAAO,AAAP,CAC3H,EACA,EAAE,OAAO,CAAC,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AA,CAAA,CACA,GAAA,EAAA,CAAA,CACA,SAPe,CACf,QAxFc,SAAS,CAAG,EAC1B,EAAO,CACL,GAAG,CAAI,CACP,GAAG,CAAG,AACR,CACF,EAoFE,KAAA,CACF,EAKE,OAAA,EAAA,CAAA,CACA,KAAM,AAAC,IACA,EAAI,KAAK,EACZ,CAAA,EAAI,KAAK,CAAG,CAAC,CAAA,EAEf,EAAI,KAAK,CAAC,mBAAmB,CAAG,EAAI,mBAAmB,CACvD,AAAA,CAAA,EAAA,EAAA,CAAC,AAAD,EAAG,KAAK,EACV,CACF,C,G,E,Q,S,C,C,C,E,E,E,O,C,U,I,G,I,E,E,SCnQA,EAJA,SAAe,CAAK,EAClB,MAAO,AAAA,CAAA,EAAA,EAAA,OAAQ,AAAR,EAAU,EA7BM,EA8BzB,C","sources":["","node_modules/mermaid/dist/classDiagram-v2-a2b738ad.js","node_modules/lodash-es/clone.js"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n      var $parcel$global = globalThis;\n    var parcelRequire = $parcel$global[\"parcelRequire3bab\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"7IZkM\", function(module, exports) {\n\n$parcel$export(module.exports, \"diagram\", () => $59fc38266b7e344f$export$6118d022d940d562);\n\nvar $g9b1o = parcelRequire(\"g9b1o\");\n\nvar $2YFJl = parcelRequire(\"2YFJl\");\n\nvar $4LkSm = parcelRequire(\"4LkSm\");\n\nvar $4jcZX = parcelRequire(\"4jcZX\");\n\nvar $4FlE0 = parcelRequire(\"4FlE0\");\nparcelRequire(\"eJNXH\");\nparcelRequire(\"gngdn\");\nparcelRequire(\"2ujND\");\nparcelRequire(\"i8Fxz\");\n\n\n\n\n\nparcelRequire(\"hV1gR\");\nparcelRequire(\"c0ySZ\");\n\n\n\nconst $59fc38266b7e344f$var$sanitizeText = (txt)=>(0, $4jcZX.e).sanitizeText(txt, (0, $4jcZX.c)());\nlet $59fc38266b7e344f$var$conf = {\n    dividerMargin: 10,\n    padding: 5,\n    textHeight: 10,\n    curve: void 0\n};\nconst $59fc38266b7e344f$var$addNamespaces = function(namespaces, g, _id, diagObj) {\n    const keys = Object.keys(namespaces);\n    (0, $4jcZX.l).info(\"keys:\", keys);\n    (0, $4jcZX.l).info(namespaces);\n    keys.forEach(function(id) {\n        var _a, _b;\n        const vertex = namespaces[id];\n        const shape = \"rect\";\n        const node = {\n            shape: shape,\n            id: vertex.id,\n            domId: vertex.domId,\n            labelText: $59fc38266b7e344f$var$sanitizeText(vertex.id),\n            labelStyle: \"\",\n            style: \"fill: none; stroke: black\",\n            // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n            padding: ((_a = (0, $4jcZX.c)().flowchart) == null ? void 0 : _a.padding) ?? ((_b = (0, $4jcZX.c)().class) == null ? void 0 : _b.padding)\n        };\n        g.setNode(vertex.id, node);\n        $59fc38266b7e344f$var$addClasses(vertex.classes, g, _id, diagObj, vertex.id);\n        (0, $4jcZX.l).info(\"setNode\", node);\n    });\n};\nconst $59fc38266b7e344f$var$addClasses = function(classes, g, _id, diagObj, parent) {\n    const keys = Object.keys(classes);\n    (0, $4jcZX.l).info(\"keys:\", keys);\n    (0, $4jcZX.l).info(classes);\n    keys.filter((id)=>classes[id].parent == parent).forEach(function(id) {\n        var _a, _b;\n        const vertex = classes[id];\n        const cssClassStr = vertex.cssClasses.join(\" \");\n        const styles2 = (0, $4jcZX.k)(vertex.styles);\n        const vertexText = vertex.label ?? vertex.id;\n        const radius = 0;\n        const shape = \"class_box\";\n        const node = {\n            labelStyle: styles2.labelStyle,\n            shape: shape,\n            labelText: $59fc38266b7e344f$var$sanitizeText(vertexText),\n            classData: vertex,\n            rx: radius,\n            ry: radius,\n            class: cssClassStr,\n            style: styles2.style,\n            id: vertex.id,\n            domId: vertex.domId,\n            tooltip: diagObj.db.getTooltip(vertex.id, parent) || \"\",\n            haveCallback: vertex.haveCallback,\n            link: vertex.link,\n            width: vertex.type === \"group\" ? 500 : void 0,\n            type: vertex.type,\n            // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n            padding: ((_a = (0, $4jcZX.c)().flowchart) == null ? void 0 : _a.padding) ?? ((_b = (0, $4jcZX.c)().class) == null ? void 0 : _b.padding)\n        };\n        g.setNode(vertex.id, node);\n        if (parent) g.setParent(vertex.id, parent);\n        (0, $4jcZX.l).info(\"setNode\", node);\n    });\n};\nconst $59fc38266b7e344f$var$addNotes = function(notes, g, startEdgeId, classes) {\n    (0, $4jcZX.l).info(notes);\n    notes.forEach(function(note, i) {\n        var _a, _b;\n        const vertex = note;\n        const cssNoteStr = \"\";\n        const styles2 = {\n            labelStyle: \"\",\n            style: \"\"\n        };\n        const vertexText = vertex.text;\n        const radius = 0;\n        const shape = \"note\";\n        const node = {\n            labelStyle: styles2.labelStyle,\n            shape: shape,\n            labelText: $59fc38266b7e344f$var$sanitizeText(vertexText),\n            noteData: vertex,\n            rx: radius,\n            ry: radius,\n            class: cssNoteStr,\n            style: styles2.style,\n            id: vertex.id,\n            domId: vertex.id,\n            tooltip: \"\",\n            type: \"note\",\n            // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n            padding: ((_a = (0, $4jcZX.c)().flowchart) == null ? void 0 : _a.padding) ?? ((_b = (0, $4jcZX.c)().class) == null ? void 0 : _b.padding)\n        };\n        g.setNode(vertex.id, node);\n        (0, $4jcZX.l).info(\"setNode\", node);\n        if (!vertex.class || !(vertex.class in classes)) return;\n        const edgeId = startEdgeId + i;\n        const edgeData = {\n            id: `edgeNote${edgeId}`,\n            //Set relationship style and line type\n            classes: \"relation\",\n            pattern: \"dotted\",\n            // Set link type for rendering\n            arrowhead: \"none\",\n            //Set edge extra labels\n            startLabelRight: \"\",\n            endLabelLeft: \"\",\n            //Set relation arrow types\n            arrowTypeStart: \"none\",\n            arrowTypeEnd: \"none\",\n            style: \"fill:none\",\n            labelStyle: \"\",\n            curve: (0, $4jcZX.n)($59fc38266b7e344f$var$conf.curve, (0, $2YFJl.curveLinear))\n        };\n        g.setEdge(vertex.id, vertex.class, edgeData, edgeId);\n    });\n};\nconst $59fc38266b7e344f$var$addRelations = function(relations, g) {\n    const conf2 = (0, $4jcZX.c)().flowchart;\n    let cnt = 0;\n    relations.forEach(function(edge) {\n        var _a;\n        cnt++;\n        const edgeData = {\n            //Set relationship style and line type\n            classes: \"relation\",\n            pattern: edge.relation.lineType == 1 ? \"dashed\" : \"solid\",\n            id: `id_${edge.id1}_${edge.id2}_${cnt}`,\n            // Set link type for rendering\n            arrowhead: edge.type === \"arrow_open\" ? \"none\" : \"normal\",\n            //Set edge extra labels\n            startLabelRight: edge.relationTitle1 === \"none\" ? \"\" : edge.relationTitle1,\n            endLabelLeft: edge.relationTitle2 === \"none\" ? \"\" : edge.relationTitle2,\n            //Set relation arrow types\n            arrowTypeStart: $59fc38266b7e344f$var$getArrowMarker(edge.relation.type1),\n            arrowTypeEnd: $59fc38266b7e344f$var$getArrowMarker(edge.relation.type2),\n            style: \"fill:none\",\n            labelStyle: \"\",\n            curve: (0, $4jcZX.n)(conf2 == null ? void 0 : conf2.curve, (0, $2YFJl.curveLinear))\n        };\n        (0, $4jcZX.l).info(edgeData, edge);\n        if (edge.style !== void 0) {\n            const styles2 = (0, $4jcZX.k)(edge.style);\n            edgeData.style = styles2.style;\n            edgeData.labelStyle = styles2.labelStyle;\n        }\n        edge.text = edge.title;\n        if (edge.text === void 0) {\n            if (edge.style !== void 0) edgeData.arrowheadStyle = \"fill: #333\";\n        } else {\n            edgeData.arrowheadStyle = \"fill: #333\";\n            edgeData.labelpos = \"c\";\n            if (((_a = (0, $4jcZX.c)().flowchart) == null ? void 0 : _a.htmlLabels) ?? (0, $4jcZX.c)().htmlLabels) {\n                edgeData.labelType = \"html\";\n                edgeData.label = '' + edge.text + \"\";\n            } else {\n                edgeData.labelType = \"text\";\n                edgeData.label = edge.text.replace((0, $4jcZX.e).lineBreakRegex, \"\\n\");\n                if (edge.style === void 0) edgeData.style = edgeData.style || \"stroke: #333; stroke-width: 1.5px;fill:none\";\n                edgeData.labelStyle = edgeData.labelStyle.replace(\"color:\", \"fill:\");\n            }\n        }\n        g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n    });\n};\nconst $59fc38266b7e344f$var$setConf = function(cnf) {\n    $59fc38266b7e344f$var$conf = {\n        ...$59fc38266b7e344f$var$conf,\n        ...cnf\n    };\n};\nconst $59fc38266b7e344f$var$draw = async function(text, id, _version, diagObj) {\n    (0, $4jcZX.l).info(\"Drawing class - \", id);\n    const conf2 = (0, $4jcZX.c)().flowchart ?? (0, $4jcZX.c)().class;\n    const securityLevel = (0, $4jcZX.c)().securityLevel;\n    (0, $4jcZX.l).info(\"config:\", conf2);\n    const nodeSpacing = (conf2 == null ? void 0 : conf2.nodeSpacing) ?? 50;\n    const rankSpacing = (conf2 == null ? void 0 : conf2.rankSpacing) ?? 50;\n    const g = new $4LkSm.Graph({\n        multigraph: true,\n        compound: true\n    }).setGraph({\n        rankdir: diagObj.db.getDirection(),\n        nodesep: nodeSpacing,\n        ranksep: rankSpacing,\n        marginx: 8,\n        marginy: 8\n    }).setDefaultEdgeLabel(function() {\n        return {};\n    });\n    const namespaces = diagObj.db.getNamespaces();\n    const classes = diagObj.db.getClasses();\n    const relations = diagObj.db.getRelations();\n    const notes = diagObj.db.getNotes();\n    (0, $4jcZX.l).info(relations);\n    $59fc38266b7e344f$var$addNamespaces(namespaces, g, id, diagObj);\n    $59fc38266b7e344f$var$addClasses(classes, g, id, diagObj);\n    $59fc38266b7e344f$var$addRelations(relations, g);\n    $59fc38266b7e344f$var$addNotes(notes, g, relations.length + 1, classes);\n    let sandboxElement;\n    if (securityLevel === \"sandbox\") sandboxElement = (0, $2YFJl.select)(\"#i\" + id);\n    const root = securityLevel === \"sandbox\" ? (0, $2YFJl.select)(sandboxElement.nodes()[0].contentDocument.body) : (0, $2YFJl.select)(\"body\");\n    const svg = root.select(`[id=\"${id}\"]`);\n    const element = root.select(\"#\" + id + \" g\");\n    await (0, $4FlE0.r)(element, g, [\n        \"aggregation\",\n        \"extension\",\n        \"composition\",\n        \"dependency\",\n        \"lollipop\"\n    ], \"classDiagram\", id);\n    (0, $4jcZX.u).insertTitle(svg, \"classTitleText\", (conf2 == null ? void 0 : conf2.titleTopMargin) ?? 5, diagObj.db.getDiagramTitle());\n    (0, $4jcZX.o)(g, svg, conf2 == null ? void 0 : conf2.diagramPadding, conf2 == null ? void 0 : conf2.useMaxWidth);\n    if (!(conf2 == null ? void 0 : conf2.htmlLabels)) {\n        const doc = securityLevel === \"sandbox\" ? sandboxElement.nodes()[0].contentDocument : document;\n        const labels = doc.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n        for (const label of labels){\n            const dim = label.getBBox();\n            const rect = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\");\n            rect.setAttribute(\"rx\", 0);\n            rect.setAttribute(\"ry\", 0);\n            rect.setAttribute(\"width\", dim.width);\n            rect.setAttribute(\"height\", dim.height);\n            label.insertBefore(rect, label.firstChild);\n        }\n    }\n};\nfunction $59fc38266b7e344f$var$getArrowMarker(type) {\n    let marker;\n    switch(type){\n        case 0:\n            marker = \"aggregation\";\n            break;\n        case 1:\n            marker = \"extension\";\n            break;\n        case 2:\n            marker = \"composition\";\n            break;\n        case 3:\n            marker = \"dependency\";\n            break;\n        case 4:\n            marker = \"lollipop\";\n            break;\n        default:\n            marker = \"none\";\n    }\n    return marker;\n}\nconst $59fc38266b7e344f$var$renderer = {\n    setConf: $59fc38266b7e344f$var$setConf,\n    draw: $59fc38266b7e344f$var$draw\n};\nconst $59fc38266b7e344f$export$6118d022d940d562 = {\n    parser: $g9b1o.p,\n    db: $g9b1o.d,\n    renderer: $59fc38266b7e344f$var$renderer,\n    styles: $g9b1o.s,\n    init: (cnf)=>{\n        if (!cnf.class) cnf.class = {};\n        cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n        (0, $g9b1o.d).clear();\n    }\n};\n\n});\n\nparcelRegister(\"hNIl0\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $cf5967d89366f433$export$2e2bcd8739ae039);\n\nvar $gbpSA = parcelRequire(\"gbpSA\");\n/** Used to compose bitmasks for cloning. */ var $cf5967d89366f433$var$CLONE_SYMBOLS_FLAG = 4;\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */ function $cf5967d89366f433$var$clone(value) {\n    return (0, $gbpSA.default)(value, $cf5967d89366f433$var$CLONE_SYMBOLS_FLAG);\n}\nvar $cf5967d89366f433$export$2e2bcd8739ae039 = $cf5967d89366f433$var$clone;\n\n});\n\n\n//# sourceMappingURL=classDiagram-v2-a2b738ad.d5eca625.js.map\n","import { p as parser, d as db, s as styles } from \"./styles-b83b31c9.js\";\nimport { select, curveLinear } from \"d3\";\nimport * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nimport { l as log, c as getConfig, u as utils, o as setupGraphViewbox, k as getStylesFromArray, n as interpolateToCurve, e as common } from \"./mermaid-6dc72991.js\";\nimport { r as render } from \"./index-01f381cb.js\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"lodash-es/merge.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nimport \"dagre-d3-es/src/dagre/index.js\";\nimport \"dagre-d3-es/src/graphlib/json.js\";\nimport \"./edges-066a5561.js\";\nimport \"./createText-ca0c5216.js\";\nimport \"mdast-util-from-markdown\";\nconst sanitizeText = (txt) => common.sanitizeText(txt, getConfig());\nlet conf = {\n  dividerMargin: 10,\n  padding: 5,\n  textHeight: 10,\n  curve: void 0\n};\nconst addNamespaces = function(namespaces, g, _id, diagObj) {\n  const keys = Object.keys(namespaces);\n  log.info(\"keys:\", keys);\n  log.info(namespaces);\n  keys.forEach(function(id) {\n    var _a, _b;\n    const vertex = namespaces[id];\n    const shape = \"rect\";\n    const node = {\n      shape,\n      id: vertex.id,\n      domId: vertex.domId,\n      labelText: sanitizeText(vertex.id),\n      labelStyle: \"\",\n      style: \"fill: none; stroke: black\",\n      // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n      padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)\n    };\n    g.setNode(vertex.id, node);\n    addClasses(vertex.classes, g, _id, diagObj, vertex.id);\n    log.info(\"setNode\", node);\n  });\n};\nconst addClasses = function(classes, g, _id, diagObj, parent) {\n  const keys = Object.keys(classes);\n  log.info(\"keys:\", keys);\n  log.info(classes);\n  keys.filter((id) => classes[id].parent == parent).forEach(function(id) {\n    var _a, _b;\n    const vertex = classes[id];\n    const cssClassStr = vertex.cssClasses.join(\" \");\n    const styles2 = getStylesFromArray(vertex.styles);\n    const vertexText = vertex.label ?? vertex.id;\n    const radius = 0;\n    const shape = \"class_box\";\n    const node = {\n      labelStyle: styles2.labelStyle,\n      shape,\n      labelText: sanitizeText(vertexText),\n      classData: vertex,\n      rx: radius,\n      ry: radius,\n      class: cssClassStr,\n      style: styles2.style,\n      id: vertex.id,\n      domId: vertex.domId,\n      tooltip: diagObj.db.getTooltip(vertex.id, parent) || \"\",\n      haveCallback: vertex.haveCallback,\n      link: vertex.link,\n      width: vertex.type === \"group\" ? 500 : void 0,\n      type: vertex.type,\n      // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n      padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)\n    };\n    g.setNode(vertex.id, node);\n    if (parent) {\n      g.setParent(vertex.id, parent);\n    }\n    log.info(\"setNode\", node);\n  });\n};\nconst addNotes = function(notes, g, startEdgeId, classes) {\n  log.info(notes);\n  notes.forEach(function(note, i) {\n    var _a, _b;\n    const vertex = note;\n    const cssNoteStr = \"\";\n    const styles2 = { labelStyle: \"\", style: \"\" };\n    const vertexText = vertex.text;\n    const radius = 0;\n    const shape = \"note\";\n    const node = {\n      labelStyle: styles2.labelStyle,\n      shape,\n      labelText: sanitizeText(vertexText),\n      noteData: vertex,\n      rx: radius,\n      ry: radius,\n      class: cssNoteStr,\n      style: styles2.style,\n      id: vertex.id,\n      domId: vertex.id,\n      tooltip: \"\",\n      type: \"note\",\n      // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n      padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)\n    };\n    g.setNode(vertex.id, node);\n    log.info(\"setNode\", node);\n    if (!vertex.class || !(vertex.class in classes)) {\n      return;\n    }\n    const edgeId = startEdgeId + i;\n    const edgeData = {\n      id: `edgeNote${edgeId}`,\n      //Set relationship style and line type\n      classes: \"relation\",\n      pattern: \"dotted\",\n      // Set link type for rendering\n      arrowhead: \"none\",\n      //Set edge extra labels\n      startLabelRight: \"\",\n      endLabelLeft: \"\",\n      //Set relation arrow types\n      arrowTypeStart: \"none\",\n      arrowTypeEnd: \"none\",\n      style: \"fill:none\",\n      labelStyle: \"\",\n      curve: interpolateToCurve(conf.curve, curveLinear)\n    };\n    g.setEdge(vertex.id, vertex.class, edgeData, edgeId);\n  });\n};\nconst addRelations = function(relations, g) {\n  const conf2 = getConfig().flowchart;\n  let cnt = 0;\n  relations.forEach(function(edge) {\n    var _a;\n    cnt++;\n    const edgeData = {\n      //Set relationship style and line type\n      classes: \"relation\",\n      pattern: edge.relation.lineType == 1 ? \"dashed\" : \"solid\",\n      id: `id_${edge.id1}_${edge.id2}_${cnt}`,\n      // Set link type for rendering\n      arrowhead: edge.type === \"arrow_open\" ? \"none\" : \"normal\",\n      //Set edge extra labels\n      startLabelRight: edge.relationTitle1 === \"none\" ? \"\" : edge.relationTitle1,\n      endLabelLeft: edge.relationTitle2 === \"none\" ? \"\" : edge.relationTitle2,\n      //Set relation arrow types\n      arrowTypeStart: getArrowMarker(edge.relation.type1),\n      arrowTypeEnd: getArrowMarker(edge.relation.type2),\n      style: \"fill:none\",\n      labelStyle: \"\",\n      curve: interpolateToCurve(conf2 == null ? void 0 : conf2.curve, curveLinear)\n    };\n    log.info(edgeData, edge);\n    if (edge.style !== void 0) {\n      const styles2 = getStylesFromArray(edge.style);\n      edgeData.style = styles2.style;\n      edgeData.labelStyle = styles2.labelStyle;\n    }\n    edge.text = edge.title;\n    if (edge.text === void 0) {\n      if (edge.style !== void 0) {\n        edgeData.arrowheadStyle = \"fill: #333\";\n      }\n    } else {\n      edgeData.arrowheadStyle = \"fill: #333\";\n      edgeData.labelpos = \"c\";\n      if (((_a = getConfig().flowchart) == null ? void 0 : _a.htmlLabels) ?? getConfig().htmlLabels) {\n        edgeData.labelType = \"html\";\n        edgeData.label = '' + edge.text + \"\";\n      } else {\n        edgeData.labelType = \"text\";\n        edgeData.label = edge.text.replace(common.lineBreakRegex, \"\\n\");\n        if (edge.style === void 0) {\n          edgeData.style = edgeData.style || \"stroke: #333; stroke-width: 1.5px;fill:none\";\n        }\n        edgeData.labelStyle = edgeData.labelStyle.replace(\"color:\", \"fill:\");\n      }\n    }\n    g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n  });\n};\nconst setConf = function(cnf) {\n  conf = {\n    ...conf,\n    ...cnf\n  };\n};\nconst draw = async function(text, id, _version, diagObj) {\n  log.info(\"Drawing class - \", id);\n  const conf2 = getConfig().flowchart ?? getConfig().class;\n  const securityLevel = getConfig().securityLevel;\n  log.info(\"config:\", conf2);\n  const nodeSpacing = (conf2 == null ? void 0 : conf2.nodeSpacing) ?? 50;\n  const rankSpacing = (conf2 == null ? void 0 : conf2.rankSpacing) ?? 50;\n  const g = new graphlib.Graph({\n    multigraph: true,\n    compound: true\n  }).setGraph({\n    rankdir: diagObj.db.getDirection(),\n    nodesep: nodeSpacing,\n    ranksep: rankSpacing,\n    marginx: 8,\n    marginy: 8\n  }).setDefaultEdgeLabel(function() {\n    return {};\n  });\n  const namespaces = diagObj.db.getNamespaces();\n  const classes = diagObj.db.getClasses();\n  const relations = diagObj.db.getRelations();\n  const notes = diagObj.db.getNotes();\n  log.info(relations);\n  addNamespaces(namespaces, g, id, diagObj);\n  addClasses(classes, g, id, diagObj);\n  addRelations(relations, g);\n  addNotes(notes, g, relations.length + 1, classes);\n  let sandboxElement;\n  if (securityLevel === \"sandbox\") {\n    sandboxElement = select(\"#i\" + id);\n  }\n  const root = securityLevel === \"sandbox\" ? select(sandboxElement.nodes()[0].contentDocument.body) : select(\"body\");\n  const svg = root.select(`[id=\"${id}\"]`);\n  const element = root.select(\"#\" + id + \" g\");\n  await render(\n    element,\n    g,\n    [\"aggregation\", \"extension\", \"composition\", \"dependency\", \"lollipop\"],\n    \"classDiagram\",\n    id\n  );\n  utils.insertTitle(svg, \"classTitleText\", (conf2 == null ? void 0 : conf2.titleTopMargin) ?? 5, diagObj.db.getDiagramTitle());\n  setupGraphViewbox(g, svg, conf2 == null ? void 0 : conf2.diagramPadding, conf2 == null ? void 0 : conf2.useMaxWidth);\n  if (!(conf2 == null ? void 0 : conf2.htmlLabels)) {\n    const doc = securityLevel === \"sandbox\" ? sandboxElement.nodes()[0].contentDocument : document;\n    const labels = doc.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n    for (const label of labels) {\n      const dim = label.getBBox();\n      const rect = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\");\n      rect.setAttribute(\"rx\", 0);\n      rect.setAttribute(\"ry\", 0);\n      rect.setAttribute(\"width\", dim.width);\n      rect.setAttribute(\"height\", dim.height);\n      label.insertBefore(rect, label.firstChild);\n    }\n  }\n};\nfunction getArrowMarker(type) {\n  let marker;\n  switch (type) {\n    case 0:\n      marker = \"aggregation\";\n      break;\n    case 1:\n      marker = \"extension\";\n      break;\n    case 2:\n      marker = \"composition\";\n      break;\n    case 3:\n      marker = \"dependency\";\n      break;\n    case 4:\n      marker = \"lollipop\";\n      break;\n    default:\n      marker = \"none\";\n  }\n  return marker;\n}\nconst renderer = {\n  setConf,\n  draw\n};\nconst diagram = {\n  parser,\n  db,\n  renderer,\n  styles,\n  init: (cnf) => {\n    if (!cnf.class) {\n      cnf.class = {};\n    }\n    cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n    db.clear();\n  }\n};\nexport {\n  diagram\n};\n","import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n  return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nexport default clone;\n"],"names":["$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","parcelRequire","$parcel$global","globalThis","parcelRegister","register","module","exports","$59fc38266b7e344f$export$6118d022d940d562","$g9b1o","$2YFJl","$4LkSm","$4jcZX","$4FlE0","$59fc38266b7e344f$var$sanitizeText","txt","sanitizeText","c","$59fc38266b7e344f$var$conf","dividerMargin","padding","textHeight","curve","$59fc38266b7e344f$var$addNamespaces","namespaces","g","_id","diagObj","keys","l","info","forEach","id","_a","_b","vertex","node","shape","domId","labelText","labelStyle","style","flowchart","class","setNode","$59fc38266b7e344f$var$addClasses","classes","parent","filter","cssClassStr","cssClasses","join","styles2","k","styles","vertexText","label","classData","rx","ry","tooltip","db","getTooltip","haveCallback","link","width","type","setParent","$59fc38266b7e344f$var$addNotes","notes","startEdgeId","note","i","text","noteData","edgeId","edgeData","pattern","arrowhead","startLabelRight","endLabelLeft","arrowTypeStart","arrowTypeEnd","curveLinear","setEdge","$59fc38266b7e344f$var$addRelations","relations","conf2","cnt","edge","relation","lineType","id1","id2","relationTitle1","relationTitle2","$59fc38266b7e344f$var$getArrowMarker","type1","type2","title","arrowheadStyle","labelpos","htmlLabels","labelType","replace","lineBreakRegex","$59fc38266b7e344f$var$draw","_version","sandboxElement","securityLevel","nodeSpacing","rankSpacing","Graph","multigraph","compound","setGraph","rankdir","getDirection","nodesep","ranksep","marginx","marginy","setDefaultEdgeLabel","getNamespaces","getClasses","getRelations","getNotes","length","select","root","nodes","contentDocument","body","svg","element","r","u","insertTitle","titleTopMargin","getDiagramTitle","o","diagramPadding","useMaxWidth","doc","document","querySelectorAll","dim","getBBox","rect","createElementNS","setAttribute","height","insertBefore","firstChild","marker","parser","p","d","renderer","setConf","cnf","draw","init","arrowMarkerAbsolute","clear","$cf5967d89366f433$export$2e2bcd8739ae039","$gbpSA","value","default"],"version":3,"file":"classDiagram-v2-a2b738ad.d5eca625.js.map"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy