@things-factory/integration-ui 6.1.101 → 6.1.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/analysis/graph-viewer-style.ts +117 -0
- package/client/analysis/graph-viewer.ts +1811 -0
- package/client/pages/integration-analysis.ts +148 -0
- package/client/route.ts +4 -0
- package/dist-client/analysis/graph-viewer-style.d.ts +1 -0
- package/dist-client/analysis/graph-viewer-style.js +117 -0
- package/dist-client/analysis/graph-viewer-style.js.map +1 -0
- package/dist-client/analysis/graph-viewer.d.ts +749 -0
- package/dist-client/analysis/graph-viewer.js +1516 -0
- package/dist-client/analysis/graph-viewer.js.map +1 -0
- package/dist-client/pages/integration-analysis.d.ts +19 -0
- package/dist-client/pages/integration-analysis.js +150 -0
- package/dist-client/pages/integration-analysis.js.map +1 -0
- package/dist-client/route.js +3 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/things-factory.config.js +4 -0
- package/translations/en.json +1 -1
- package/translations/ja.json +1 -1
- package/translations/ko.json +1 -1
- package/translations/ms.json +61 -61
- package/translations/zh.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-viewer.js","sourceRoot":"","sources":["../../client/analysis/graph-viewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAA;AAExB,MAAM,OAAO,WAAW;IAsCtB,YAAY,SAAc,EAAE,QAAa;QArBjC,mBAAc,GAAG,EAAE,CAAA;QACnB,eAAU,GAAG,KAAK,CAAA;QAClB,eAAU,GAAG,CAAC,CAAA;QACd,YAAO,GAAG;YAChB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;YACrB,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE;YAChC,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,EAAE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,CAAC,SAAS,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,GAAG,IAAI,EAAE,UAAU,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAA;QAEjG,IAAI,CAAC,GAAG,CAAC,IAAI,CACX,WAAW,EACX,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC,QAAQ,GAAG,GAAG,CACrG,CAAA;QACD,4DAA4D;IAC9D,CAAC;CACF","sourcesContent":["import * as d3 from 'd3'\n\nexport class GraphViewer {\n private container\n private info\n private node\n private nodes\n private relationship\n private relationshipOutline\n private relationshipOverlay\n private relationshipText\n private relationships\n private selector\n private simulation\n private svg\n private svgNodes\n private svgRelationships\n private svgScale\n private svgTranslate: any\n private classes2colors = {}\n private justLoaded = false\n private numClasses = 0\n private options = {\n arrowSize: 4,\n colors: this.colors(),\n highlight: undefined,\n iconMap: this.fontAwesomeIcons(),\n icons: undefined,\n imageMap: {},\n images: undefined,\n infoPanel: true,\n minCollision: undefined,\n graphData: undefined,\n dataUrl: undefined,\n nodeOutlineFillColor: undefined,\n nodeRadius: 25,\n relationshipColor: '#a5abb6',\n zoomFit: false\n } as any\n\n constructor(_selector: any, _options: any) {\n this.init(_selector, _options)\n }\n\n appendGraph(container) {\n this.svg = container\n .append('svg')\n .attr('width', '100%')\n .attr('height', '100%')\n .attr('class', 'graph-viewer')\n .call(\n d3.zoom().on('zoom', (event, d) => {\n var scale = event.transform.k,\n translate = [event.transform.x, event.transform.y]\n\n if (this.svgTranslate) {\n translate[0] += this.svgTranslate[0]\n translate[1] += this.svgTranslate[1]\n }\n\n if (this.svgScale) {\n scale *= this.svgScale\n }\n\n this.svg.attr('transform', 'translate(' + translate[0] + ', ' + translate[1] + ') scale(' + scale + ')')\n })\n )\n .on('dblclick.zoom', null)\n .append('g')\n .attr('width', '100%')\n .attr('height', '100%')\n\n this.svgRelationships = this.svg.append('g').attr('class', 'relationships')\n\n this.svgNodes = this.svg.append('g').attr('class', 'nodes')\n }\n\n appendImageToNode(node) {\n return node\n .append('image')\n .attr('height', d => {\n return this.icon(d) ? '24px' : '30px'\n })\n .attr('x', d => {\n return this.icon(d) ? '5px' : '-15px'\n })\n .attr('xlink:href', d => {\n return this.image(d)\n })\n .attr('y', d => {\n return this.icon(d) ? '5px' : '-16px'\n })\n .attr('width', d => {\n return this.icon(d) ? '24px' : '30px'\n })\n }\n\n appendInfoPanel(container) {\n return container.append('div').attr('class', 'graph-info')\n }\n\n appendInfoElement(cls, isNode, property, value?: any) {\n var elem = this.info.append('a')\n\n elem\n .attr('href', '#')\n .attr('class', cls)\n .html('<strong>' + property + '</strong>' + (value ? ': ' + value : ''))\n\n if (!value) {\n elem\n .style('background-color', d => {\n return this.options.nodeOutlineFillColor\n ? this.options.nodeOutlineFillColor\n : isNode\n ? this.class2color(property)\n : this.defaultColor()\n })\n .style('border-color', d => {\n return this.options.nodeOutlineFillColor\n ? this.class2darkenColor(this.options.nodeOutlineFillColor)\n : isNode\n ? this.class2darkenColor(property)\n : this.defaultDarkenColor()\n })\n .style('color', d => {\n return this.options.nodeOutlineFillColor ? this.class2darkenColor(this.options.nodeOutlineFillColor) : '#fff'\n })\n }\n }\n\n appendInfoElementClass(cls, node) {\n this.appendInfoElement(cls, true, node)\n }\n\n appendInfoElementProperty(cls, property, value) {\n this.appendInfoElement(cls, false, property, value)\n }\n\n appendInfoElementRelationship(cls, relationship) {\n this.appendInfoElement(cls, false, relationship)\n }\n\n appendNode() {\n return this.node\n .enter()\n .append('g')\n .attr('class', d => {\n var highlight,\n i,\n classes = 'node',\n label = d.labels[0]\n\n if (this.icon(d)) {\n classes += ' node-icon'\n }\n\n if (this.image(d)) {\n classes += ' node-image'\n }\n\n if (this.options.highlight) {\n for (i = 0; i < this.options.highlight.length; i++) {\n highlight = this.options.highlight[i]\n\n if (d.labels[0] === highlight.class && d.properties[highlight.property] === highlight.value) {\n classes += ' node-highlighted'\n break\n }\n }\n }\n\n return classes\n })\n .on('click', (event, d) => {\n d.fx = d.fy = null\n\n if (typeof this.options.onNodeClick === 'function') {\n this.options.onNodeClick(d)\n }\n })\n .on('dblclick', (event, d) => {\n this.stickNode(d, event)\n\n if (typeof this.options.onNodeDoubleClick === 'function') {\n this.options.onNodeDoubleClick(d)\n }\n })\n .on('mouseenter', (event, d) => {\n if (this.info) {\n this.updateInfo(d)\n }\n\n if (typeof this.options.onNodeMouseEnter === 'function') {\n this.options.onNodeMouseEnter(d)\n }\n })\n .on('mouseleave', (event, d) => {\n if (this.info) {\n this.clearInfo()\n }\n\n if (typeof this.options.onNodeMouseLeave === 'function') {\n this.options.onNodeMouseLeave(d)\n }\n })\n .call(\n d3\n .drag()\n .on('start', this.dragStarted.bind(this))\n .on('drag', this.dragged.bind(this))\n .on('end', this.dragEnded.bind(this))\n )\n }\n\n appendNodeToGraph() {\n var n = this.appendNode()\n\n this.appendRingToNode(n)\n // this.appendBoxToNode(n)\n this.appendOutlineToNode(n)\n\n if (this.options.icons) {\n this.appendTextToNode(n)\n }\n\n if (this.options.images) {\n this.appendImageToNode(n)\n }\n\n return n\n }\n\n appendOutlineToNode(node) {\n return node\n .append('circle')\n .attr('class', 'outline')\n .attr('r', this.options.nodeRadius)\n .style('fill', d => {\n return this.options.nodeOutlineFillColor ? this.options.nodeOutlineFillColor : this.class2color(d.labels[0])\n })\n .style('stroke', d => {\n return this.options.nodeOutlineFillColor\n ? this.class2darkenColor(this.options.nodeOutlineFillColor)\n : this.class2darkenColor(d.labels[0])\n })\n .append('title')\n .text(d => {\n return this.toString(d)\n })\n }\n\n appendBoxToNode(node) {\n const rect = node\n .append('rect')\n .attr('class', 'node-rect')\n .attr('width', 160) // 사각형의 너비\n .attr('height', 30) // 사각형의 높이\n .attr('x', -80) // 사각형의 중심을 기준으로 x 위치 조정\n .attr('y', -15) // 사각형의 중심을 기준으로 y 위치 조정\n .style('fill', d => {\n return this.options.nodeOutlineFillColor ? this.options.nodeOutlineFillColor : this.class2color(d.labels[0])\n })\n .style('stroke', d => {\n return this.options.nodeOutlineFillColor\n ? this.class2darkenColor(this.options.nodeOutlineFillColor)\n : this.class2darkenColor(d.labels[0])\n })\n .append('title')\n .text(d => {\n return this.toString(d)\n })\n\n node\n .append('text')\n .attr('class', 'node-text')\n .attr('x', 0)\n .attr('y', 4)\n .attr('text-anchor', 'middle') // 텍스트 중앙 정렬\n .attr('fill', 'black') // 텍스트 색상을 검은색으로 변경\n .text(d => d.text)\n\n return rect\n }\n\n appendRingToNode(node) {\n return node\n .append('circle')\n .attr('class', 'ring')\n .attr('r', this.options.nodeRadius * 1.16)\n .append('title')\n .text(d => {\n return this.toString(d)\n })\n }\n\n appendTextToNode(node) {\n return node\n .append('text')\n .attr('class', d => {\n return 'text' + (this.icon(d) ? ' icon' : '')\n })\n .attr('fill', '#ffffff')\n .attr('font-size', d => {\n return this.icon(d) ? this.options.nodeRadius + 'px' : '10px'\n })\n .attr('pointer-events', 'none')\n .attr('text-anchor', 'middle')\n .attr('y', d => {\n return this.icon(d) ? Math.round(this.options.nodeRadius * 0.32) + 'px' : '4px'\n })\n .html(d => {\n var _icon = this.icon(d)\n return _icon ? '&#x' + _icon : d.text\n })\n }\n\n appendRandomDataToNode(d, maxNodesToGenerate) {\n var data = this.randomD3Data(d, maxNodesToGenerate)\n this.updateWithGraphData(data)\n }\n\n appendRelationship() {\n return this.relationship\n .enter()\n .append('g')\n .attr('class', 'relationship')\n .on('dblclick', (event, d) => {\n if (typeof this.options.onRelationshipDoubleClick === 'function') {\n this.options.onRelationshipDoubleClick(d)\n }\n })\n .on('mouseenter', (event, d) => {\n if (this.info) {\n this.updateInfo(d)\n }\n })\n }\n\n appendOutlineToRelationship(r) {\n return r.append('path').attr('class', 'outline').attr('fill', '#a5abb6').attr('stroke', 'none')\n }\n\n appendOverlayToRelationship(r) {\n return r.append('path').attr('class', 'overlay')\n }\n\n appendTextToRelationship(r) {\n return r\n .append('text')\n .attr('class', 'text')\n .attr('fill', '#000000')\n .attr('font-size', '8px')\n .attr('pointer-events', 'none')\n .attr('text-anchor', 'middle')\n .text(d => {\n return d.type\n })\n }\n\n appendRelationshipToGraph() {\n var relationship = this.appendRelationship(),\n text = this.appendTextToRelationship(relationship),\n outline = this.appendOutlineToRelationship(relationship),\n overlay = this.appendOverlayToRelationship(relationship)\n\n return {\n outline: outline,\n overlay: overlay,\n relationship: relationship,\n text: text\n }\n }\n\n class2color(cls) {\n var color = this.classes2colors[cls]\n\n if (!color) {\n // color = this.options.colors[Math.min(numClasses, this.options.colors.length - 1)];\n color = this.options.colors[this.numClasses % this.options.colors.length]\n this.classes2colors[cls] = color\n this.numClasses++\n }\n\n return color\n }\n\n class2darkenColor(cls) {\n return d3.rgb(this.class2color(cls)).darker(1)\n }\n\n clearInfo() {\n this.info.html('')\n }\n\n color() {\n return this.options.colors[(this.options.colors.length * Math.random()) << 0]\n }\n\n colors() {\n // d3.schemeCategory10,\n // d3.schemeCategory20,\n return [\n '#68bdf6', // light blue\n '#6dce9e', // green #1\n '#faafc2', // light pink\n '#f2baf6', // purple\n '#ff928c', // light red\n '#fcea7e', // light yellow\n '#ffc766', // light orange\n '#405f9e', // navy blue\n '#a5abb6', // dark gray\n '#78cecb', // green #2,\n '#b88cbb', // dark purple\n '#ced2d9', // light gray\n '#e84646', // dark red\n '#fa5f86', // dark pink\n '#ffab1a', // dark orange\n '#fcda19', // dark yellow\n '#797b80', // black\n '#c9d96f', // pistacchio\n '#47991f', // green #3\n '#70edee', // turquoise\n '#ff75ea' // pink\n ]\n }\n\n contains(array, id) {\n var filter = array.filter(function (elem) {\n return elem.id === id\n })\n\n return filter.length > 0\n }\n\n defaultColor() {\n return this.options.relationshipColor\n }\n\n defaultDarkenColor() {\n return d3.rgb(this.options.colors[this.options.colors.length - 1]).darker(1)\n }\n\n dragEnded(d, event) {\n if (!event.active) {\n this.simulation.alphaTarget(0)\n }\n\n if (typeof this.options.onNodeDragEnd === 'function') {\n this.options.onNodeDragEnd(d)\n }\n }\n\n dragged(d, event) {\n this.stickNode(d, event)\n }\n\n dragStarted(d, event) {\n if (!event.active) {\n this.simulation.alphaTarget(0.3).restart()\n }\n\n d.fx = d.x\n d.fy = d.y\n\n if (typeof this.options.onNodeDragStart === 'function') {\n this.options.onNodeDragStart(d)\n }\n }\n\n extend(obj1, obj2) {\n var obj = {}\n\n this.merge(obj, obj1)\n this.merge(obj, obj2)\n\n return obj\n }\n\n fontAwesomeIcons() {\n return {\n glass: 'f000',\n music: 'f001',\n search: 'f002',\n 'envelope-o': 'f003',\n heart: 'f004',\n star: 'f005',\n 'star-o': 'f006',\n user: 'f007',\n film: 'f008',\n 'th-large': 'f009',\n th: 'f00a',\n 'th-list': 'f00b',\n check: 'f00c',\n 'remove,close,times': 'f00d',\n 'search-plus': 'f00e',\n 'search-minus': 'f010',\n 'power-off': 'f011',\n signal: 'f012',\n 'gear,cog': 'f013',\n 'trash-o': 'f014',\n home: 'f015',\n 'file-o': 'f016',\n 'clock-o': 'f017',\n road: 'f018',\n download: 'f019',\n 'arrow-circle-o-down': 'f01a',\n 'arrow-circle-o-up': 'f01b',\n inbox: 'f01c',\n 'play-circle-o': 'f01d',\n 'rotate-right,repeat': 'f01e',\n refresh: 'f021',\n 'list-alt': 'f022',\n lock: 'f023',\n flag: 'f024',\n headphones: 'f025',\n 'volume-off': 'f026',\n 'volume-down': 'f027',\n 'volume-up': 'f028',\n qrcode: 'f029',\n barcode: 'f02a',\n tag: 'f02b',\n tags: 'f02c',\n book: 'f02d',\n bookmark: 'f02e',\n print: 'f02f',\n camera: 'f030',\n font: 'f031',\n bold: 'f032',\n italic: 'f033',\n 'text-height': 'f034',\n 'text-width': 'f035',\n 'align-left': 'f036',\n 'align-center': 'f037',\n 'align-right': 'f038',\n 'align-justify': 'f039',\n list: 'f03a',\n 'dedent,outdent': 'f03b',\n indent: 'f03c',\n 'video-camera': 'f03d',\n 'photo,image,picture-o': 'f03e',\n pencil: 'f040',\n 'map-marker': 'f041',\n adjust: 'f042',\n tint: 'f043',\n 'edit,pencil-square-o': 'f044',\n 'share-square-o': 'f045',\n 'check-square-o': 'f046',\n arrows: 'f047',\n 'step-backward': 'f048',\n 'fast-backward': 'f049',\n backward: 'f04a',\n play: 'f04b',\n pause: 'f04c',\n stop: 'f04d',\n forward: 'f04e',\n 'fast-forward': 'f050',\n 'step-forward': 'f051',\n eject: 'f052',\n 'chevron-left': 'f053',\n 'chevron-right': 'f054',\n 'plus-circle': 'f055',\n 'minus-circle': 'f056',\n 'times-circle': 'f057',\n 'check-circle': 'f058',\n 'question-circle': 'f059',\n 'info-circle': 'f05a',\n crosshairs: 'f05b',\n 'times-circle-o': 'f05c',\n 'check-circle-o': 'f05d',\n ban: 'f05e',\n 'arrow-left': 'f060',\n 'arrow-right': 'f061',\n 'arrow-up': 'f062',\n 'arrow-down': 'f063',\n 'mail-forward,share': 'f064',\n expand: 'f065',\n compress: 'f066',\n plus: 'f067',\n minus: 'f068',\n asterisk: 'f069',\n 'exclamation-circle': 'f06a',\n gift: 'f06b',\n leaf: 'f06c',\n fire: 'f06d',\n eye: 'f06e',\n 'eye-slash': 'f070',\n 'warning,exclamation-triangle': 'f071',\n plane: 'f072',\n calendar: 'f073',\n random: 'f074',\n comment: 'f075',\n magnet: 'f076',\n 'chevron-up': 'f077',\n 'chevron-down': 'f078',\n retweet: 'f079',\n 'shopping-cart': 'f07a',\n folder: 'f07b',\n 'folder-open': 'f07c',\n 'arrows-v': 'f07d',\n 'arrows-h': 'f07e',\n 'bar-chart-o,bar-chart': 'f080',\n 'twitter-square': 'f081',\n 'facebook-square': 'f082',\n 'camera-retro': 'f083',\n key: 'f084',\n 'gears,cogs': 'f085',\n comments: 'f086',\n 'thumbs-o-up': 'f087',\n 'thumbs-o-down': 'f088',\n 'star-half': 'f089',\n 'heart-o': 'f08a',\n 'sign-out': 'f08b',\n 'linkedin-square': 'f08c',\n 'thumb-tack': 'f08d',\n 'external-link': 'f08e',\n 'sign-in': 'f090',\n trophy: 'f091',\n 'github-square': 'f092',\n upload: 'f093',\n 'lemon-o': 'f094',\n phone: 'f095',\n 'square-o': 'f096',\n 'bookmark-o': 'f097',\n 'phone-square': 'f098',\n twitter: 'f099',\n 'facebook-f,facebook': 'f09a',\n github: 'f09b',\n unlock: 'f09c',\n 'credit-card': 'f09d',\n 'feed,rss': 'f09e',\n 'hdd-o': 'f0a0',\n bullhorn: 'f0a1',\n bell: 'f0f3',\n certificate: 'f0a3',\n 'hand-o-right': 'f0a4',\n 'hand-o-left': 'f0a5',\n 'hand-o-up': 'f0a6',\n 'hand-o-down': 'f0a7',\n 'arrow-circle-left': 'f0a8',\n 'arrow-circle-right': 'f0a9',\n 'arrow-circle-up': 'f0aa',\n 'arrow-circle-down': 'f0ab',\n globe: 'f0ac',\n wrench: 'f0ad',\n tasks: 'f0ae',\n filter: 'f0b0',\n briefcase: 'f0b1',\n 'arrows-alt': 'f0b2',\n 'group,users': 'f0c0',\n 'chain,link': 'f0c1',\n cloud: 'f0c2',\n flask: 'f0c3',\n 'cut,scissors': 'f0c4',\n 'copy,files-o': 'f0c5',\n paperclip: 'f0c6',\n 'save,floppy-o': 'f0c7',\n square: 'f0c8',\n 'navicon,reorder,bars': 'f0c9',\n 'list-ul': 'f0ca',\n 'list-ol': 'f0cb',\n strikethrough: 'f0cc',\n underline: 'f0cd',\n table: 'f0ce',\n magic: 'f0d0',\n truck: 'f0d1',\n pinterest: 'f0d2',\n 'pinterest-square': 'f0d3',\n 'google-plus-square': 'f0d4',\n 'google-plus': 'f0d5',\n money: 'f0d6',\n 'caret-down': 'f0d7',\n 'caret-up': 'f0d8',\n 'caret-left': 'f0d9',\n 'caret-right': 'f0da',\n columns: 'f0db',\n 'unsorted,sort': 'f0dc',\n 'sort-down,sort-desc': 'f0dd',\n 'sort-up,sort-asc': 'f0de',\n envelope: 'f0e0',\n linkedin: 'f0e1',\n 'rotate-left,undo': 'f0e2',\n 'legal,gavel': 'f0e3',\n 'dashboard,tachometer': 'f0e4',\n 'comment-o': 'f0e5',\n 'comments-o': 'f0e6',\n 'flash,bolt': 'f0e7',\n sitemap: 'f0e8',\n umbrella: 'f0e9',\n 'paste,clipboard': 'f0ea',\n 'lightbulb-o': 'f0eb',\n exchange: 'f0ec',\n 'cloud-download': 'f0ed',\n 'cloud-upload': 'f0ee',\n 'user-md': 'f0f0',\n stethoscope: 'f0f1',\n suitcase: 'f0f2',\n 'bell-o': 'f0a2',\n coffee: 'f0f4',\n cutlery: 'f0f5',\n 'file-text-o': 'f0f6',\n 'building-o': 'f0f7',\n 'hospital-o': 'f0f8',\n ambulance: 'f0f9',\n medkit: 'f0fa',\n 'fighter-jet': 'f0fb',\n beer: 'f0fc',\n 'h-square': 'f0fd',\n 'plus-square': 'f0fe',\n 'angle-double-left': 'f100',\n 'angle-double-right': 'f101',\n 'angle-double-up': 'f102',\n 'angle-double-down': 'f103',\n 'angle-left': 'f104',\n 'angle-right': 'f105',\n 'angle-up': 'f106',\n 'angle-down': 'f107',\n desktop: 'f108',\n laptop: 'f109',\n tablet: 'f10a',\n 'mobile-phone,mobile': 'f10b',\n 'circle-o': 'f10c',\n 'quote-left': 'f10d',\n 'quote-right': 'f10e',\n spinner: 'f110',\n circle: 'f111',\n 'mail-reply,reply': 'f112',\n 'github-alt': 'f113',\n 'folder-o': 'f114',\n 'folder-open-o': 'f115',\n 'smile-o': 'f118',\n 'frown-o': 'f119',\n 'meh-o': 'f11a',\n gamepad: 'f11b',\n 'keyboard-o': 'f11c',\n 'flag-o': 'f11d',\n 'flag-checkered': 'f11e',\n terminal: 'f120',\n code: 'f121',\n 'mail-reply-all,reply-all': 'f122',\n 'star-half-empty,star-half-full,star-half-o': 'f123',\n 'location-arrow': 'f124',\n crop: 'f125',\n 'code-fork': 'f126',\n 'unlink,chain-broken': 'f127',\n question: 'f128',\n info: 'f129',\n exclamation: 'f12a',\n superscript: 'f12b',\n subscript: 'f12c',\n eraser: 'f12d',\n 'puzzle-piece': 'f12e',\n microphone: 'f130',\n 'microphone-slash': 'f131',\n shield: 'f132',\n 'calendar-o': 'f133',\n 'fire-extinguisher': 'f134',\n rocket: 'f135',\n maxcdn: 'f136',\n 'chevron-circle-left': 'f137',\n 'chevron-circle-right': 'f138',\n 'chevron-circle-up': 'f139',\n 'chevron-circle-down': 'f13a',\n html5: 'f13b',\n css3: 'f13c',\n anchor: 'f13d',\n 'unlock-alt': 'f13e',\n bullseye: 'f140',\n 'ellipsis-h': 'f141',\n 'ellipsis-v': 'f142',\n 'rss-square': 'f143',\n 'play-circle': 'f144',\n ticket: 'f145',\n 'minus-square': 'f146',\n 'minus-square-o': 'f147',\n 'level-up': 'f148',\n 'level-down': 'f149',\n 'check-square': 'f14a',\n 'pencil-square': 'f14b',\n 'external-link-square': 'f14c',\n 'share-square': 'f14d',\n compass: 'f14e',\n 'toggle-down,caret-square-o-down': 'f150',\n 'toggle-up,caret-square-o-up': 'f151',\n 'toggle-right,caret-square-o-right': 'f152',\n 'euro,eur': 'f153',\n gbp: 'f154',\n 'dollar,usd': 'f155',\n 'rupee,inr': 'f156',\n 'cny,rmb,yen,jpy': 'f157',\n 'ruble,rouble,rub': 'f158',\n 'won,krw': 'f159',\n 'bitcoin,btc': 'f15a',\n file: 'f15b',\n 'file-text': 'f15c',\n 'sort-alpha-asc': 'f15d',\n 'sort-alpha-desc': 'f15e',\n 'sort-amount-asc': 'f160',\n 'sort-amount-desc': 'f161',\n 'sort-numeric-asc': 'f162',\n 'sort-numeric-desc': 'f163',\n 'thumbs-up': 'f164',\n 'thumbs-down': 'f165',\n 'youtube-square': 'f166',\n youtube: 'f167',\n xing: 'f168',\n 'xing-square': 'f169',\n 'youtube-play': 'f16a',\n dropbox: 'f16b',\n 'stack-overflow': 'f16c',\n instagram: 'f16d',\n flickr: 'f16e',\n adn: 'f170',\n bitbucket: 'f171',\n 'bitbucket-square': 'f172',\n tumblr: 'f173',\n 'tumblr-square': 'f174',\n 'long-arrow-down': 'f175',\n 'long-arrow-up': 'f176',\n 'long-arrow-left': 'f177',\n 'long-arrow-right': 'f178',\n apple: 'f179',\n windows: 'f17a',\n android: 'f17b',\n linux: 'f17c',\n dribbble: 'f17d',\n skype: 'f17e',\n foursquare: 'f180',\n trello: 'f181',\n female: 'f182',\n male: 'f183',\n 'gittip,gratipay': 'f184',\n 'sun-o': 'f185',\n 'moon-o': 'f186',\n archive: 'f187',\n bug: 'f188',\n vk: 'f189',\n weibo: 'f18a',\n renren: 'f18b',\n pagelines: 'f18c',\n 'stack-exchange': 'f18d',\n 'arrow-circle-o-right': 'f18e',\n 'arrow-circle-o-left': 'f190',\n 'toggle-left,caret-square-o-left': 'f191',\n 'dot-circle-o': 'f192',\n wheelchair: 'f193',\n 'vimeo-square': 'f194',\n 'turkish-lira,try': 'f195',\n 'plus-square-o': 'f196',\n 'space-shuttle': 'f197',\n slack: 'f198',\n 'envelope-square': 'f199',\n wordpress: 'f19a',\n openid: 'f19b',\n 'institution,bank,university': 'f19c',\n 'mortar-board,graduation-cap': 'f19d',\n yahoo: 'f19e',\n google: 'f1a0',\n reddit: 'f1a1',\n 'reddit-square': 'f1a2',\n 'stumbleupon-circle': 'f1a3',\n stumbleupon: 'f1a4',\n delicious: 'f1a5',\n digg: 'f1a6',\n 'pied-piper-pp': 'f1a7',\n 'pied-piper-alt': 'f1a8',\n drupal: 'f1a9',\n joomla: 'f1aa',\n language: 'f1ab',\n fax: 'f1ac',\n building: 'f1ad',\n child: 'f1ae',\n paw: 'f1b0',\n spoon: 'f1b1',\n cube: 'f1b2',\n cubes: 'f1b3',\n behance: 'f1b4',\n 'behance-square': 'f1b5',\n steam: 'f1b6',\n 'steam-square': 'f1b7',\n recycle: 'f1b8',\n 'automobile,car': 'f1b9',\n 'cab,taxi': 'f1ba',\n tree: 'f1bb',\n spotify: 'f1bc',\n deviantart: 'f1bd',\n soundcloud: 'f1be',\n database: 'f1c0',\n 'file-pdf-o': 'f1c1',\n 'file-word-o': 'f1c2',\n 'file-excel-o': 'f1c3',\n 'file-powerpoint-o': 'f1c4',\n 'file-photo-o,file-picture-o,file-image-o': 'f1c5',\n 'file-zip-o,file-archive-o': 'f1c6',\n 'file-sound-o,file-audio-o': 'f1c7',\n 'file-movie-o,file-video-o': 'f1c8',\n 'file-code-o': 'f1c9',\n vine: 'f1ca',\n codepen: 'f1cb',\n jsfiddle: 'f1cc',\n 'life-bouy,life-buoy,life-saver,support,life-ring': 'f1cd',\n 'circle-o-notch': 'f1ce',\n 'ra,resistance,rebel': 'f1d0',\n 'ge,empire': 'f1d1',\n 'git-square': 'f1d2',\n git: 'f1d3',\n 'y-combinator-square,yc-square,hacker-news': 'f1d4',\n 'tencent-weibo': 'f1d5',\n qq: 'f1d6',\n 'wechat,weixin': 'f1d7',\n 'send,paper-plane': 'f1d8',\n 'send-o,paper-plane-o': 'f1d9',\n history: 'f1da',\n 'circle-thin': 'f1db',\n header: 'f1dc',\n paragraph: 'f1dd',\n sliders: 'f1de',\n 'share-alt': 'f1e0',\n 'share-alt-square': 'f1e1',\n bomb: 'f1e2',\n 'soccer-ball-o,futbol-o': 'f1e3',\n tty: 'f1e4',\n binoculars: 'f1e5',\n plug: 'f1e6',\n slideshare: 'f1e7',\n twitch: 'f1e8',\n yelp: 'f1e9',\n 'newspaper-o': 'f1ea',\n wifi: 'f1eb',\n calculator: 'f1ec',\n paypal: 'f1ed',\n 'google-wallet': 'f1ee',\n 'cc-visa': 'f1f0',\n 'cc-mastercard': 'f1f1',\n 'cc-discover': 'f1f2',\n 'cc-amex': 'f1f3',\n 'cc-paypal': 'f1f4',\n 'cc-stripe': 'f1f5',\n 'bell-slash': 'f1f6',\n 'bell-slash-o': 'f1f7',\n trash: 'f1f8',\n copyright: 'f1f9',\n at: 'f1fa',\n eyedropper: 'f1fb',\n 'paint-brush': 'f1fc',\n 'birthday-cake': 'f1fd',\n 'area-chart': 'f1fe',\n 'pie-chart': 'f200',\n 'line-chart': 'f201',\n lastfm: 'f202',\n 'lastfm-square': 'f203',\n 'toggle-off': 'f204',\n 'toggle-on': 'f205',\n bicycle: 'f206',\n bus: 'f207',\n ioxhost: 'f208',\n angellist: 'f209',\n cc: 'f20a',\n 'shekel,sheqel,ils': 'f20b',\n meanpath: 'f20c',\n buysellads: 'f20d',\n connectdevelop: 'f20e',\n dashcube: 'f210',\n forumbee: 'f211',\n leanpub: 'f212',\n sellsy: 'f213',\n shirtsinbulk: 'f214',\n simplybuilt: 'f215',\n skyatlas: 'f216',\n 'cart-plus': 'f217',\n 'cart-arrow-down': 'f218',\n diamond: 'f219',\n ship: 'f21a',\n 'user-secret': 'f21b',\n motorcycle: 'f21c',\n 'street-view': 'f21d',\n heartbeat: 'f21e',\n venus: 'f221',\n mars: 'f222',\n mercury: 'f223',\n 'intersex,transgender': 'f224',\n 'transgender-alt': 'f225',\n 'venus-double': 'f226',\n 'mars-double': 'f227',\n 'venus-mars': 'f228',\n 'mars-stroke': 'f229',\n 'mars-stroke-v': 'f22a',\n 'mars-stroke-h': 'f22b',\n neuter: 'f22c',\n genderless: 'f22d',\n 'facebook-official': 'f230',\n 'pinterest-p': 'f231',\n whatsapp: 'f232',\n server: 'f233',\n 'user-plus': 'f234',\n 'user-times': 'f235',\n 'hotel,bed': 'f236',\n viacoin: 'f237',\n train: 'f238',\n subway: 'f239',\n medium: 'f23a',\n 'yc,y-combinator': 'f23b',\n 'optin-monster': 'f23c',\n opencart: 'f23d',\n expeditedssl: 'f23e',\n 'battery-4,battery-full': 'f240',\n 'battery-3,battery-three-quarters': 'f241',\n 'battery-2,battery-half': 'f242',\n 'battery-1,battery-quarter': 'f243',\n 'battery-0,battery-empty': 'f244',\n 'mouse-pointer': 'f245',\n 'i-cursor': 'f246',\n 'object-group': 'f247',\n 'object-ungroup': 'f248',\n 'sticky-note': 'f249',\n 'sticky-note-o': 'f24a',\n 'cc-jcb': 'f24b',\n 'cc-diners-club': 'f24c',\n clone: 'f24d',\n 'balance-scale': 'f24e',\n 'hourglass-o': 'f250',\n 'hourglass-1,hourglass-start': 'f251',\n 'hourglass-2,hourglass-half': 'f252',\n 'hourglass-3,hourglass-end': 'f253',\n hourglass: 'f254',\n 'hand-grab-o,hand-rock-o': 'f255',\n 'hand-stop-o,hand-paper-o': 'f256',\n 'hand-scissors-o': 'f257',\n 'hand-lizard-o': 'f258',\n 'hand-spock-o': 'f259',\n 'hand-pointer-o': 'f25a',\n 'hand-peace-o': 'f25b',\n trademark: 'f25c',\n registered: 'f25d',\n 'creative-commons': 'f25e',\n gg: 'f260',\n 'gg-circle': 'f261',\n tripadvisor: 'f262',\n odnoklassniki: 'f263',\n 'odnoklassniki-square': 'f264',\n 'get-pocket': 'f265',\n 'wikipedia-w': 'f266',\n safari: 'f267',\n chrome: 'f268',\n firefox: 'f269',\n opera: 'f26a',\n 'internet-explorer': 'f26b',\n 'tv,television': 'f26c',\n contao: 'f26d',\n '500px': 'f26e',\n amazon: 'f270',\n 'calendar-plus-o': 'f271',\n 'calendar-minus-o': 'f272',\n 'calendar-times-o': 'f273',\n 'calendar-check-o': 'f274',\n industry: 'f275',\n 'map-pin': 'f276',\n 'map-signs': 'f277',\n 'map-o': 'f278',\n map: 'f279',\n commenting: 'f27a',\n 'commenting-o': 'f27b',\n houzz: 'f27c',\n vimeo: 'f27d',\n 'black-tie': 'f27e',\n fonticons: 'f280',\n 'reddit-alien': 'f281',\n edge: 'f282',\n 'credit-card-alt': 'f283',\n codiepie: 'f284',\n modx: 'f285',\n 'fort-awesome': 'f286',\n usb: 'f287',\n 'product-hunt': 'f288',\n mixcloud: 'f289',\n scribd: 'f28a',\n 'pause-circle': 'f28b',\n 'pause-circle-o': 'f28c',\n 'stop-circle': 'f28d',\n 'stop-circle-o': 'f28e',\n 'shopping-bag': 'f290',\n 'shopping-basket': 'f291',\n hashtag: 'f292',\n bluetooth: 'f293',\n 'bluetooth-b': 'f294',\n percent: 'f295',\n gitlab: 'f296',\n wpbeginner: 'f297',\n wpforms: 'f298',\n envira: 'f299',\n 'universal-access': 'f29a',\n 'wheelchair-alt': 'f29b',\n 'question-circle-o': 'f29c',\n blind: 'f29d',\n 'audio-description': 'f29e',\n 'volume-control-phone': 'f2a0',\n braille: 'f2a1',\n 'assistive-listening-systems': 'f2a2',\n 'asl-interpreting,american-sign-language-interpreting': 'f2a3',\n 'deafness,hard-of-hearing,deaf': 'f2a4',\n glide: 'f2a5',\n 'glide-g': 'f2a6',\n 'signing,sign-language': 'f2a7',\n 'low-vision': 'f2a8',\n viadeo: 'f2a9',\n 'viadeo-square': 'f2aa',\n snapchat: 'f2ab',\n 'snapchat-ghost': 'f2ac',\n 'snapchat-square': 'f2ad',\n 'pied-piper': 'f2ae',\n 'first-order': 'f2b0',\n yoast: 'f2b1',\n themeisle: 'f2b2',\n 'google-plus-circle,google-plus-official': 'f2b3',\n 'fa,font-awesome': 'f2b4'\n }\n }\n\n icon(d) {\n var code\n\n if (this.options.iconMap && this.options.showIcons && this.options.icons) {\n if (this.options.icons[d.labels[0]] && this.options.iconMap[this.options.icons[d.labels[0]]]) {\n code = this.options.iconMap[this.options.icons[d.labels[0]]]\n } else if (this.options.iconMap[d.labels[0]]) {\n code = this.options.iconMap[d.labels[0]]\n } else if (this.options.icons[d.labels[0]]) {\n code = this.options.icons[d.labels[0]]\n }\n }\n\n return code\n }\n\n image(d) {\n var i, imagesForLabel, img, imgLevel, label, labelPropertyValue, property, value\n\n if (this.options.images) {\n imagesForLabel = this.options.imageMap[d.labels[0]]\n\n if (imagesForLabel) {\n imgLevel = 0\n\n for (i = 0; i < imagesForLabel.length; i++) {\n labelPropertyValue = imagesForLabel[i].split('|')\n\n switch (labelPropertyValue.length) {\n case 3:\n value = labelPropertyValue[2]\n /* falls through */\n case 2:\n property = labelPropertyValue[1]\n /* falls through */\n case 1:\n label = labelPropertyValue[0]\n }\n\n if (\n d.labels[0] === label &&\n (!property || d.properties[property] !== undefined) &&\n (!value || d.properties[property] === value)\n ) {\n if (labelPropertyValue.length > imgLevel) {\n img = this.options.images[imagesForLabel[i]]\n imgLevel = labelPropertyValue.length\n }\n }\n }\n }\n }\n\n return img\n }\n\n init(_selector, _options) {\n this.initIconMap()\n\n this.merge(this.options, _options)\n\n if (this.options.icons) {\n this.options.showIcons = true\n }\n\n if (!this.options.minCollision) {\n this.options.minCollision = this.options.nodeRadius * 2\n }\n\n this.initImageMap()\n\n this.selector = _selector\n\n this.container = d3.select(this.selector)\n\n // this.container.attr('class', 'graph-container').html('')\n\n if (this.options.infoPanel) {\n this.info = this.appendInfoPanel(this.container)\n }\n\n this.appendGraph(this.container)\n\n this.simulation = this.initSimulation()\n\n if (this.options.graphData) {\n this.loadGraphData()\n } else if (this.options.dataUrl) {\n this.loadGraphDataFromUrl(this.options.dataUrl)\n } else {\n console.error('Error: both graphData and dataUrl are empty!')\n }\n }\n\n initIconMap() {\n Object.keys(this.options.iconMap).forEach((key, index) => {\n var keys = key.split(','),\n value = this.options.iconMap[key]\n\n keys.forEach(key => {\n this.options.iconMap[key] = value\n })\n })\n }\n\n initImageMap() {\n var key, keys, selector\n const images = this.options.images as any\n\n for (key in images) {\n if (images.hasOwnProperty(key)) {\n keys = key.split('|')\n\n if (!this.options.imageMap[keys[0]]) {\n this.options.imageMap[keys[0]] = [key]\n } else {\n this.options.imageMap[keys[0]].push(key)\n }\n }\n }\n }\n\n initSimulation() {\n const x = this.svg.node().parentElement.parentElement.clientWidth / 2\n const y = this.svg.node().parentElement.parentElement.clientHeight / 2\n\n var simulation = d3\n .forceSimulation()\n // .velocityDecay(0.8)\n // .force('x', d3.force().strength(0.002))\n // .force('y', d3.force().strength(0.002))\n .force(\n 'collide',\n d3\n .forceCollide()\n .radius(d => {\n return this.options.minCollision\n })\n .iterations(2)\n )\n .force('charge', d3.forceManyBody())\n .force(\n 'link',\n d3.forceLink().id(d => {\n return d.id\n })\n )\n .force('center', d3.forceCenter(x, y))\n .on('tick', () => {\n this.tick()\n })\n .on('end', () => {\n if (this.options.zoomFit && !this.justLoaded) {\n this.justLoaded = true\n this.zoomFit(2)\n }\n })\n\n return simulation\n }\n\n loadGraphData() {\n this.nodes = []\n this.relationships = []\n\n this.updateWithGraphData(this.options.graphData)\n }\n\n loadGraphDataFromUrl(dataUrl) {\n this.nodes = []\n this.relationships = []\n\n d3.json(dataUrl, (error, data) => {\n if (error) {\n throw error\n }\n\n this.updateWithGraphData(data)\n })\n }\n\n merge(target, source) {\n Object.keys(source).forEach(property => {\n target[property] = source[property]\n })\n }\n\n graphDataToD3Data(data) {\n var graph = {\n nodes: [] as any[],\n relationships: [] as any[]\n }\n\n data.results.forEach(result => {\n result.data.forEach(data => {\n data.graph.nodes.forEach(node => {\n if (!this.contains(graph.nodes, node.id)) {\n graph.nodes.push(node)\n }\n })\n\n data.graph.relationships.forEach(function (relationship) {\n relationship.source = relationship.startNode\n relationship.target = relationship.endNode\n graph.relationships.push(relationship)\n })\n\n data.graph.relationships.sort(function (a, b) {\n if (a.source > b.source) {\n return 1\n } else if (a.source < b.source) {\n return -1\n } else {\n if (a.target > b.target) {\n return 1\n }\n\n if (a.target < b.target) {\n return -1\n } else {\n return 0\n }\n }\n })\n\n for (var i = 0; i < data.graph.relationships.length; i++) {\n if (\n i !== 0 &&\n data.graph.relationships[i].source === data.graph.relationships[i - 1].source &&\n data.graph.relationships[i].target === data.graph.relationships[i - 1].target\n ) {\n data.graph.relationships[i].linknum = data.graph.relationships[i - 1].linknum + 1\n } else {\n data.graph.relationships[i].linknum = 1\n }\n }\n })\n })\n\n return graph\n }\n\n randomD3Data(d, maxNodesToGenerate) {\n var data = {\n nodes: [] as any[],\n relationships: [] as any[]\n },\n i,\n label,\n node,\n numNodes = ((maxNodesToGenerate * Math.random()) << 0) + 1,\n relationship,\n s = this.size()\n\n for (i = 0; i < numNodes; i++) {\n label = this.randomLabel()\n\n node = {\n id: s.nodes + 1 + i,\n labels: [label],\n properties: {\n random: label\n },\n x: d.x,\n y: d.y\n }\n\n data.nodes[data.nodes.length] = node\n\n relationship = {\n id: s.relationships + 1 + i,\n type: label.toUpperCase(),\n startNode: d.id,\n endNode: s.nodes + 1 + i,\n properties: {\n from: Date.now()\n },\n source: d.id,\n target: s.nodes + 1 + i,\n linknum: s.relationships + 1 + i\n }\n\n data.relationships[data.relationships.length] = relationship\n }\n\n return data\n }\n\n randomLabel() {\n var icons = Object.keys(this.options.iconMap)\n return icons[(icons.length * Math.random()) << 0]\n }\n\n rotate(cx, cy, x, y, angle) {\n var radians = (Math.PI / 180) * angle,\n cos = Math.cos(radians),\n sin = Math.sin(radians),\n nx = cos * (x - cx) + sin * (y - cy) + cx,\n ny = cos * (y - cy) - sin * (x - cx) + cy\n\n return { x: nx, y: ny }\n }\n\n rotatePoint(c, p, angle) {\n return this.rotate(c.x, c.y, p.x, p.y, angle)\n }\n\n rotation(source, target) {\n return (Math.atan2(target.y - source.y, target.x - source.x) * 180) / Math.PI\n }\n\n size() {\n return {\n nodes: this.nodes.length,\n relationships: this.relationships.length\n }\n }\n /*\n function smoothTransform(elem, translate, scale) {\n var animationMilliseconds = 5000,\n timeoutMilliseconds = 50,\n steps = parseInt(animationMilliseconds / timeoutMilliseconds);\n\n setTimeout(function() {\n smoothTransformStep(elem, translate, scale, timeoutMilliseconds, 1, steps);\n }, timeoutMilliseconds);\n }\n\n function smoothTransformStep(elem, translate, scale, timeoutMilliseconds, step, steps) {\n var progress = step / steps;\n\n elem.attr('transform', 'translate(' + (translate[0] * progress) + ', ' + (translate[1] * progress) + ') scale(' + (scale * progress) + ')');\n\n if (step < steps) {\n setTimeout(function() {\n smoothTransformStep(elem, translate, scale, timeoutMilliseconds, step + 1, steps);\n }, timeoutMilliseconds);\n }\n }\n*/\n\n stickNode(d, event) {\n d.fx = event.x\n d.fy = event.y\n }\n\n tick() {\n this.tickNodes()\n this.tickRelationships()\n }\n\n tickNodes() {\n if (this.node) {\n this.node.attr('transform', d => {\n return 'translate(' + d.x + ', ' + d.y + ')'\n })\n }\n }\n\n tickRelationships() {\n if (this.relationship) {\n this.relationship.attr('transform', d => {\n var angle = this.rotation(d.source, d.target)\n return 'translate(' + d.source.x + ', ' + d.source.y + ') rotate(' + angle + ')'\n })\n\n this.tickRelationshipsTexts()\n this.tickRelationshipsOutlines()\n this.tickRelationshipsOverlays()\n }\n }\n\n tickRelationshipsOutlines() {\n const self = this\n this.relationship.each(function (this, relationship) {\n var rel = d3.select(this)\n var outline = rel.select('.outline'),\n text = rel.select('.text'),\n bbox = text.node().getBBox(),\n padding = 3\n\n outline.attr('d', d => {\n var center = { x: 0, y: 0 },\n angle = self.rotation(d.source, d.target),\n textBoundingBox = text.node().getBBox(),\n textPadding = 5,\n u = self.unitaryVector(d.source, d.target),\n textMargin = {\n x: (d.target.x - d.source.x - (textBoundingBox.width + textPadding) * u.x) * 0.5,\n y: (d.target.y - d.source.y - (textBoundingBox.width + textPadding) * u.y) * 0.5\n },\n n = self.unitaryNormalVector(d.source, d.target),\n rotatedPointA1 = self.rotatePoint(\n center,\n { x: 0 + (self.options.nodeRadius + 1) * u.x - n.x, y: 0 + (self.options.nodeRadius + 1) * u.y - n.y },\n angle\n ),\n rotatedPointB1 = self.rotatePoint(center, { x: textMargin.x - n.x, y: textMargin.y - n.y }, angle),\n rotatedPointC1 = self.rotatePoint(center, { x: textMargin.x, y: textMargin.y }, angle),\n rotatedPointD1 = self.rotatePoint(\n center,\n { x: 0 + (self.options.nodeRadius + 1) * u.x, y: 0 + (self.options.nodeRadius + 1) * u.y },\n angle\n ),\n rotatedPointA2 = self.rotatePoint(\n center,\n { x: d.target.x - d.source.x - textMargin.x - n.x, y: d.target.y - d.source.y - textMargin.y - n.y },\n angle\n ),\n rotatedPointB2 = self.rotatePoint(\n center,\n {\n x: d.target.x - d.source.x - (self.options.nodeRadius + 1) * u.x - n.x - u.x * self.options.arrowSize,\n y: d.target.y - d.source.y - (self.options.nodeRadius + 1) * u.y - n.y - u.y * self.options.arrowSize\n },\n angle\n ),\n rotatedPointC2 = self.rotatePoint(\n center,\n {\n x:\n d.target.x -\n d.source.x -\n (self.options.nodeRadius + 1) * u.x -\n n.x +\n (n.x - u.x) * self.options.arrowSize,\n y:\n d.target.y -\n d.source.y -\n (self.options.nodeRadius + 1) * u.y -\n n.y +\n (n.y - u.y) * self.options.arrowSize\n },\n angle\n ),\n rotatedPointD2 = self.rotatePoint(\n center,\n {\n x: d.target.x - d.source.x - (self.options.nodeRadius + 1) * u.x,\n y: d.target.y - d.source.y - (self.options.nodeRadius + 1) * u.y\n },\n angle\n ),\n rotatedPointE2 = self.rotatePoint(\n center,\n {\n x: d.target.x - d.source.x - (self.options.nodeRadius + 1) * u.x + (-n.x - u.x) * self.options.arrowSize,\n y: d.target.y - d.source.y - (self.options.nodeRadius + 1) * u.y + (-n.y - u.y) * self.options.arrowSize\n },\n angle\n ),\n rotatedPointF2 = self.rotatePoint(\n center,\n {\n x: d.target.x - d.source.x - (self.options.nodeRadius + 1) * u.x - u.x * self.options.arrowSize,\n y: d.target.y - d.source.y - (self.options.nodeRadius + 1) * u.y - u.y * self.options.arrowSize\n },\n angle\n ),\n rotatedPointG2 = self.rotatePoint(\n center,\n { x: d.target.x - d.source.x - textMargin.x, y: d.target.y - d.source.y - textMargin.y },\n angle\n )\n\n return (\n 'M ' +\n rotatedPointA1.x +\n ' ' +\n rotatedPointA1.y +\n ' L ' +\n rotatedPointB1.x +\n ' ' +\n rotatedPointB1.y +\n ' L ' +\n rotatedPointC1.x +\n ' ' +\n rotatedPointC1.y +\n ' L ' +\n rotatedPointD1.x +\n ' ' +\n rotatedPointD1.y +\n ' Z M ' +\n rotatedPointA2.x +\n ' ' +\n rotatedPointA2.y +\n ' L ' +\n rotatedPointB2.x +\n ' ' +\n rotatedPointB2.y +\n ' L ' +\n rotatedPointC2.x +\n ' ' +\n rotatedPointC2.y +\n ' L ' +\n rotatedPointD2.x +\n ' ' +\n rotatedPointD2.y +\n ' L ' +\n rotatedPointE2.x +\n ' ' +\n rotatedPointE2.y +\n ' L ' +\n rotatedPointF2.x +\n ' ' +\n rotatedPointF2.y +\n ' L ' +\n rotatedPointG2.x +\n ' ' +\n rotatedPointG2.y +\n ' Z'\n )\n })\n })\n }\n\n tickRelationshipsOverlays() {\n this.relationshipOverlay.attr('d', d => {\n var center = { x: 0, y: 0 },\n angle = this.rotation(d.source, d.target),\n n1 = this.unitaryNormalVector(d.source, d.target),\n n = this.unitaryNormalVector(d.source, d.target, 50),\n rotatedPointA = this.rotatePoint(center, { x: 0 - n.x, y: 0 - n.y }, angle),\n rotatedPointB = this.rotatePoint(\n center,\n { x: d.target.x - d.source.x - n.x, y: d.target.y - d.source.y - n.y },\n angle\n ),\n rotatedPointC = this.rotatePoint(\n center,\n { x: d.target.x - d.source.x + n.x - n1.x, y: d.target.y - d.source.y + n.y - n1.y },\n angle\n ),\n rotatedPointD = this.rotatePoint(center, { x: 0 + n.x - n1.x, y: 0 + n.y - n1.y }, angle)\n\n return (\n 'M ' +\n rotatedPointA.x +\n ' ' +\n rotatedPointA.y +\n ' L ' +\n rotatedPointB.x +\n ' ' +\n rotatedPointB.y +\n ' L ' +\n rotatedPointC.x +\n ' ' +\n rotatedPointC.y +\n ' L ' +\n rotatedPointD.x +\n ' ' +\n rotatedPointD.y +\n ' Z'\n )\n })\n }\n\n tickRelationshipsTexts() {\n this.relationshipText.attr('transform', d => {\n var angle = (this.rotation(d.source, d.target) + 360) % 360,\n mirror = angle > 90 && angle < 270,\n center = { x: 0, y: 0 },\n n = this.unitaryNormalVector(d.source, d.target),\n nWeight = mirror ? 2 : -3,\n point = {\n x: (d.target.x - d.source.x) * 0.5 + n.x * nWeight,\n y: (d.target.y - d.source.y) * 0.5 + n.y * nWeight\n },\n rotatedPoint = this.rotatePoint(center, point, angle)\n\n return 'translate(' + rotatedPoint.x + ', ' + rotatedPoint.y + ') rotate(' + (mirror ? 180 : 0) + ')'\n })\n }\n\n toString(d) {\n var s = d.labels ? d.labels[0] : d.type\n\n s += ' (<id>: ' + d.id\n\n Object.keys(d.properties).forEach(function (property) {\n s += ', ' + property + ': ' + JSON.stringify(d.properties[property])\n })\n\n s += ')'\n\n return s\n }\n\n unitaryNormalVector(source, target, newLength?: any) {\n var center = { x: 0, y: 0 },\n vector = this.unitaryVector(source, target, newLength)\n\n return this.rotatePoint(center, vector, 90)\n }\n\n unitaryVector(source, target, newLength?: any) {\n var length =\n Math.sqrt(Math.pow(target.x - source.x, 2) + Math.pow(target.y - source.y, 2)) / Math.sqrt(newLength || 1)\n\n return {\n x: (target.x - source.x) / length,\n y: (target.y - source.y) / length\n }\n }\n\n updateWithD3Data(d3Data) {\n this.updateNodesAndRelationships(d3Data.nodes, d3Data.relationships)\n }\n\n updateWithGraphData(graphData) {\n var d3Data = this.graphDataToD3Data(graphData)\n this.updateWithD3Data(d3Data)\n }\n\n updateInfo(d) {\n this.clearInfo()\n\n if (d.labels) {\n this.appendInfoElementClass('class', d.labels[0])\n } else {\n this.appendInfoElementRelationship('class', d.type)\n }\n\n this.appendInfoElementProperty('property', '<id>', d.id)\n\n Object.keys(d.properties).forEach(property => {\n this.appendInfoElementProperty('property', property, JSON.stringify(d.properties[property]))\n })\n }\n\n updateNodes(n) {\n Array.prototype.push.apply(this.nodes, n)\n\n this.node = this.svgNodes.selectAll('.node').data(this.nodes, d => {\n return d.id\n })\n var nodeEnter = this.appendNodeToGraph()\n this.node = nodeEnter.merge(this.node)\n }\n\n updateNodesAndRelationships(n, r) {\n this.updateRelationships(r)\n this.updateNodes(n)\n\n this.simulation.nodes(this.nodes)\n this.simulation.force('link').links(this.relationships)\n }\n\n updateRelationships(r) {\n Array.prototype.push.apply(this.relationships, r)\n\n this.relationship = this.svgRelationships.selectAll('.relationship').data(this.relationships, d => {\n return d.id\n })\n\n var relationshipEnter = this.appendRelationshipToGraph()\n\n this.relationship = relationshipEnter.relationship.merge(this.relationship)\n\n this.relationshipOutline = this.svg.selectAll('.relationship .outline')\n this.relationshipOutline = relationshipEnter.outline.merge(this.relationshipOutline)\n\n this.relationshipOverlay = this.svg.selectAll('.relationship .overlay')\n this.relationshipOverlay = relationshipEnter.overlay.merge(this.relationshipOverlay)\n\n this.relationshipText = this.svg.selectAll('.relationship .text')\n this.relationshipText = relationshipEnter.text.merge(this.relationshipText)\n }\n\n zoomFit(transitionDuration) {\n var bounds = this.svg.node().getBBox(),\n parent = this.svg.node().parentElement.parentElement,\n fullWidth = parent.clientWidth,\n fullHeight = parent.clientHeight,\n width = bounds.width,\n height = bounds.height,\n midX = bounds.x + width / 2,\n midY = bounds.y + height / 2\n\n if (width === 0 || height === 0) {\n return // nothing to fit\n }\n\n this.svgScale = 0.85 / Math.max(width / fullWidth, height / fullHeight)\n this.svgTranslate = [fullWidth / 2 - this.svgScale * midX, fullHeight / 2 - this.svgScale * midY]\n\n this.svg.attr(\n 'transform',\n 'translate(' + this.svgTranslate[0] + ', ' + this.svgTranslate[1] + ') scale(' + this.svgScale + ')'\n )\n // smoothTransform(this.svgTranslate, this.svgScale);\n }\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '../analysis/graph-viewer';
|
|
2
|
+
import { PageView } from '@operato/shell';
|
|
3
|
+
import { GraphViewer } from '../analysis/graph-viewer';
|
|
4
|
+
declare const IntegrationAnalysis_base: (new (...args: any[]) => import("lit").LitElement) & typeof PageView;
|
|
5
|
+
export declare class IntegrationAnalysis extends IntegrationAnalysis_base {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
analysis: any;
|
|
8
|
+
graphViewer?: GraphViewer;
|
|
9
|
+
container: HTMLDivElement;
|
|
10
|
+
get context(): {
|
|
11
|
+
title: string;
|
|
12
|
+
help: string;
|
|
13
|
+
};
|
|
14
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
+
updated(changes: any): void;
|
|
16
|
+
pageUpdated(changes: any): Promise<void>;
|
|
17
|
+
fetchIntegrationAnalysis(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '../analysis/graph-viewer';
|
|
3
|
+
import gql from 'graphql-tag';
|
|
4
|
+
import { css, html } from 'lit';
|
|
5
|
+
import { customElement, query, state } from 'lit/decorators.js';
|
|
6
|
+
import { client } from '@operato/graphql';
|
|
7
|
+
import { i18next, localize } from '@operato/i18n';
|
|
8
|
+
import { PageView } from '@operato/shell';
|
|
9
|
+
import { ScrollbarStyles } from '@operato/styles';
|
|
10
|
+
import { GraphViewer } from '../analysis/graph-viewer';
|
|
11
|
+
import { GraphViewerStyles } from '../analysis/graph-viewer-style';
|
|
12
|
+
let IntegrationAnalysis = class IntegrationAnalysis extends localize(i18next)(PageView) {
|
|
13
|
+
get context() {
|
|
14
|
+
return {
|
|
15
|
+
title: i18next.t('text.integration analysis'),
|
|
16
|
+
help: 'integration/ui/integration-analysis'
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return html `<div graph-container></div>`;
|
|
21
|
+
}
|
|
22
|
+
updated(changes) {
|
|
23
|
+
if (changes.has('analysis')) {
|
|
24
|
+
this.graphViewer = new GraphViewer(this.container, {
|
|
25
|
+
highlight: [
|
|
26
|
+
{
|
|
27
|
+
class: 'Connection',
|
|
28
|
+
property: 'name',
|
|
29
|
+
value: 'corona-api'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
class: 'Scenario',
|
|
33
|
+
property: 'name',
|
|
34
|
+
value: 'monitor-simple'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
class: 'Tag',
|
|
38
|
+
property: 'tag',
|
|
39
|
+
value: 'count'
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
icons: {
|
|
43
|
+
Connection: 'gear',
|
|
44
|
+
Scenario: 'birthday-cake',
|
|
45
|
+
Tag: 'paw'
|
|
46
|
+
},
|
|
47
|
+
// images: {
|
|
48
|
+
// Address: 'img/twemoji/1f3e0.svg',
|
|
49
|
+
// BirthDate: 'img/twemoji/1f5d3.svg',
|
|
50
|
+
// Cookie: 'img/twemoji/1f36a.svg',
|
|
51
|
+
// CreditCard: 'img/twemoji/1f4b3.svg',
|
|
52
|
+
// Device: 'img/twemoji/1f4bb.svg',
|
|
53
|
+
// Email: 'img/twemoji/2709.svg',
|
|
54
|
+
// Git: 'img/twemoji/1f5c3.svg',
|
|
55
|
+
// Github: 'img/twemoji/1f5c4.svg',
|
|
56
|
+
// icons: 'img/twemoji/1f38f.svg',
|
|
57
|
+
// Ip: 'img/twemoji/1f4cd.svg',
|
|
58
|
+
// Issues: 'img/twemoji/1f4a9.svg',
|
|
59
|
+
// Language: 'img/twemoji/1f1f1-1f1f7.svg',
|
|
60
|
+
// Options: 'img/twemoji/2699.svg',
|
|
61
|
+
// Password: 'img/twemoji/1f511.svg',
|
|
62
|
+
// 'Project|name|d3': 'img/twemoji/32-20e3.svg',
|
|
63
|
+
// User: 'img/twemoji/1f600.svg'
|
|
64
|
+
// },
|
|
65
|
+
minCollision: 60,
|
|
66
|
+
graphData: {
|
|
67
|
+
results: [
|
|
68
|
+
{
|
|
69
|
+
columns: ['Connection', 'Scenario', 'Tag'],
|
|
70
|
+
data: [
|
|
71
|
+
{
|
|
72
|
+
graph: this.analysis
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
errors: []
|
|
78
|
+
},
|
|
79
|
+
nodeRadius: 25,
|
|
80
|
+
onNodeDoubleClick: node => {
|
|
81
|
+
switch (node.id) {
|
|
82
|
+
case '25':
|
|
83
|
+
// Google
|
|
84
|
+
window.open(node.properties.url, '_blank');
|
|
85
|
+
break;
|
|
86
|
+
default:
|
|
87
|
+
var maxNodes = 5, data = this.graphViewer.randomD3Data(node, maxNodes);
|
|
88
|
+
this.graphViewer.updateWithD3Data(data);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
zoomFit: true
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async pageUpdated(changes) {
|
|
97
|
+
if ('active' in changes) {
|
|
98
|
+
if (this.active) {
|
|
99
|
+
await this.fetchIntegrationAnalysis();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async fetchIntegrationAnalysis() {
|
|
104
|
+
const response = await client.query({
|
|
105
|
+
query: gql `
|
|
106
|
+
query {
|
|
107
|
+
integrationAnalysis
|
|
108
|
+
}
|
|
109
|
+
`
|
|
110
|
+
});
|
|
111
|
+
this.analysis = response.data.integrationAnalysis;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
IntegrationAnalysis.styles = [
|
|
115
|
+
GraphViewerStyles,
|
|
116
|
+
ScrollbarStyles,
|
|
117
|
+
css `
|
|
118
|
+
:host {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
background-color: var(--main-section-background-color);
|
|
124
|
+
padding: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[graph-container] {
|
|
128
|
+
flex: 1;
|
|
129
|
+
margin: 0;
|
|
130
|
+
padding: 0;
|
|
131
|
+
}
|
|
132
|
+
`
|
|
133
|
+
];
|
|
134
|
+
__decorate([
|
|
135
|
+
state(),
|
|
136
|
+
__metadata("design:type", Object)
|
|
137
|
+
], IntegrationAnalysis.prototype, "analysis", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
state(),
|
|
140
|
+
__metadata("design:type", GraphViewer)
|
|
141
|
+
], IntegrationAnalysis.prototype, "graphViewer", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
query('[graph-container]'),
|
|
144
|
+
__metadata("design:type", HTMLDivElement)
|
|
145
|
+
], IntegrationAnalysis.prototype, "container", void 0);
|
|
146
|
+
IntegrationAnalysis = __decorate([
|
|
147
|
+
customElement('integration-analysis')
|
|
148
|
+
], IntegrationAnalysis);
|
|
149
|
+
export { IntegrationAnalysis };
|
|
150
|
+
//# sourceMappingURL=integration-analysis.js.map
|
|
@@ -0,0 +1 @@
|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H,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAO;QACvB,IAAI,QAAQ,IAAI,OAAO,EAAE;YACvB,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAA;aACtC;SACF;IACH,CAAC;IAED,KAAK,CAAC,wBAAwB;QAC5B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;YAClC,KAAK,EAAE,GAAG,CAAA;;;;OAIT;SACF,CAAC,CAAA;QAEF,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAA;IACnD,CAAC;;AAnIM,0BAAM,GAAG;IACd,iBAAiB;IACjB,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;KAeF;CACF,CAAA;AAED;IAAC,KAAK,EAAE;;qDAAc;AACtB;IAAC,KAAK,EAAE;8BAAe,WAAW;wDAAA;AAElC;IAAC,KAAK,CAAC,mBAAmB,CAAC;8BAAa,cAAc;sDAAA;AAzB3C,mBAAmB;IAD/B,aAAa,CAAC,sBAAsB,CAAC;GACzB,mBAAmB,CAqI/B;SArIY,mBAAmB","sourcesContent":["import '../analysis/graph-viewer'\n\nimport gql from 'graphql-tag'\nimport { css, html } from 'lit'\nimport { customElement, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { PageView } from '@operato/shell'\nimport { ScrollbarStyles } from '@operato/styles'\nimport { GraphViewer } from '../analysis/graph-viewer'\nimport { GraphViewerStyles } from '../analysis/graph-viewer-style'\n\n@customElement('integration-analysis')\nexport class IntegrationAnalysis extends localize(i18next)(PageView) {\n static styles = [\n GraphViewerStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n overflow: hidden;\n background-color: var(--main-section-background-color);\n padding: 0;\n }\n\n [graph-container] {\n flex: 1;\n margin: 0;\n padding: 0;\n }\n `\n ]\n\n @state() analysis: any\n @state() graphViewer?: GraphViewer\n\n @query('[graph-container]') container!: HTMLDivElement\n\n get context() {\n return {\n title: i18next.t('text.integration analysis'),\n help: 'integration/ui/integration-analysis'\n }\n }\n\n render() {\n return html`<div graph-container></div>`\n }\n\n updated(changes) {\n if (changes.has('analysis')) {\n this.graphViewer = new GraphViewer(this.container, {\n highlight: [\n {\n class: 'Connection',\n property: 'name',\n value: 'corona-api'\n },\n {\n class: 'Scenario',\n property: 'name',\n value: 'monitor-simple'\n },\n {\n class: 'Tag',\n property: 'tag',\n value: 'count'\n }\n ],\n icons: {\n Connection: 'gear',\n Scenario: 'birthday-cake',\n Tag: 'paw'\n },\n // images: {\n // Address: 'img/twemoji/1f3e0.svg',\n // BirthDate: 'img/twemoji/1f5d3.svg',\n // Cookie: 'img/twemoji/1f36a.svg',\n // CreditCard: 'img/twemoji/1f4b3.svg',\n // Device: 'img/twemoji/1f4bb.svg',\n // Email: 'img/twemoji/2709.svg',\n // Git: 'img/twemoji/1f5c3.svg',\n // Github: 'img/twemoji/1f5c4.svg',\n // icons: 'img/twemoji/1f38f.svg',\n // Ip: 'img/twemoji/1f4cd.svg',\n // Issues: 'img/twemoji/1f4a9.svg',\n // Language: 'img/twemoji/1f1f1-1f1f7.svg',\n // Options: 'img/twemoji/2699.svg',\n // Password: 'img/twemoji/1f511.svg',\n // 'Project|name|d3': 'img/twemoji/32-20e3.svg',\n // User: 'img/twemoji/1f600.svg'\n // },\n minCollision: 60,\n graphData: {\n results: [\n {\n columns: ['Connection', 'Scenario', 'Tag'],\n data: [\n {\n graph: this.analysis\n }\n ]\n }\n ],\n errors: []\n },\n nodeRadius: 25,\n onNodeDoubleClick: node => {\n switch (node.id) {\n case '25':\n // Google\n window.open(node.properties.url, '_blank')\n break\n default:\n var maxNodes = 5,\n data = this.graphViewer!.randomD3Data(node, maxNodes)\n this.graphViewer!.updateWithD3Data(data)\n break\n }\n },\n zoomFit: true\n })\n }\n }\n\n async pageUpdated(changes) {\n if ('active' in changes) {\n if (this.active) {\n await this.fetchIntegrationAnalysis()\n }\n }\n }\n\n async fetchIntegrationAnalysis() {\n const response = await client.query({\n query: gql`\n query {\n integrationAnalysis\n }\n `\n })\n\n this.analysis = response.data.integrationAnalysis\n }\n}\n"]}
|
package/dist-client/route.js
CHANGED
|
@@ -9,6 +9,9 @@ export default function route(page) {
|
|
|
9
9
|
case 'integration-monitor':
|
|
10
10
|
import('./pages/integration-monitor');
|
|
11
11
|
return page;
|
|
12
|
+
case 'integration-analysis':
|
|
13
|
+
import('./pages/integration-analysis');
|
|
14
|
+
return page;
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=route.js.map
|
package/dist-client/route.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI;IAChC,QAAQ,IAAI,EAAE;QACZ,KAAK,YAAY;YACf,MAAM,CAAC,oBAAoB,CAAC,CAAA;YAC5B,OAAO,IAAI,CAAA;QAEb,KAAK,UAAU;YACb,MAAM,CAAC,kBAAkB,CAAC,CAAA;YAC1B,OAAO,IAAI,CAAA;QAEb,KAAK,qBAAqB;YACxB,MAAM,CAAC,6BAA6B,CAAC,CAAA;YACrC,OAAO,IAAI,CAAA;KACd;AACH,CAAC","sourcesContent":["export default function route(page) {\n switch (page) {\n case 'connection':\n import('./pages/connection')\n return page\n\n case 'scenario':\n import('./pages/scenario')\n return page\n\n case 'integration-monitor':\n import('./pages/integration-monitor')\n return page\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI;IAChC,QAAQ,IAAI,EAAE;QACZ,KAAK,YAAY;YACf,MAAM,CAAC,oBAAoB,CAAC,CAAA;YAC5B,OAAO,IAAI,CAAA;QAEb,KAAK,UAAU;YACb,MAAM,CAAC,kBAAkB,CAAC,CAAA;YAC1B,OAAO,IAAI,CAAA;QAEb,KAAK,qBAAqB;YACxB,MAAM,CAAC,6BAA6B,CAAC,CAAA;YACrC,OAAO,IAAI,CAAA;QAEb,KAAK,sBAAsB;YACzB,MAAM,CAAC,8BAA8B,CAAC,CAAA;YACtC,OAAO,IAAI,CAAA;KACd;AACH,CAAC","sourcesContent":["export default function route(page) {\n switch (page) {\n case 'connection':\n import('./pages/connection')\n return page\n\n case 'scenario':\n import('./pages/scenario')\n return page\n\n case 'integration-monitor':\n import('./pages/integration-monitor')\n return page\n\n case 'integration-analysis':\n import('./pages/integration-analysis')\n return page\n }\n}\n"]}
|