@hpcc-js/graph 3.6.5 → 3.6.6

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.
Files changed (77) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +256 -256
  3. package/dist/assets/dagre-B-z4SP0u.js.map +1 -1
  4. package/dist/assets/graphviz-DQ0E8zfY.js.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.umd.cjs +1 -1
  8. package/dist/index.umd.cjs.map +1 -1
  9. package/package.json +6 -6
  10. package/src/AdjacencyGraph.ts +224 -224
  11. package/src/Edge.css +23 -23
  12. package/src/Edge.ts +257 -257
  13. package/src/Graph.css +18 -18
  14. package/src/Graph.ts +1077 -1077
  15. package/src/GraphData.ts +187 -187
  16. package/src/GraphLayouts.ts +214 -214
  17. package/src/Sankey.css +46 -46
  18. package/src/Sankey.ts +304 -304
  19. package/src/Subgraph.css +10 -10
  20. package/src/Subgraph.ts +165 -165
  21. package/src/Vertex.css +3 -3
  22. package/src/Vertex.ts +282 -282
  23. package/src/__package__.ts +3 -3
  24. package/src/__tests__/data.ts +444 -444
  25. package/src/__tests__/index.ts +1 -1
  26. package/src/__tests__/test1.ts +18 -18
  27. package/src/__tests__/test2.ts +80 -80
  28. package/src/__tests__/test3.ts +46 -46
  29. package/src/__tests__/test4.ts +66 -66
  30. package/src/__tests__/test5.ts +85 -85
  31. package/src/common/graphT.css +38 -38
  32. package/src/common/graphT.ts +1363 -1363
  33. package/src/common/index.ts +3 -3
  34. package/src/common/layouts/circle.ts +37 -37
  35. package/src/common/layouts/dagre.ts +145 -145
  36. package/src/common/layouts/dagreWorker.ts +24 -24
  37. package/src/common/layouts/forceDirected.ts +117 -117
  38. package/src/common/layouts/forceDirectedWorker.ts +22 -22
  39. package/src/common/layouts/geoForceDirected.ts +112 -112
  40. package/src/common/layouts/graphviz.ts +137 -137
  41. package/src/common/layouts/graphvizWorker.ts +27 -27
  42. package/src/common/layouts/index.ts +7 -7
  43. package/src/common/layouts/layout.ts +147 -147
  44. package/src/common/layouts/null.ts +39 -39
  45. package/src/common/layouts/placeholders.ts +113 -113
  46. package/src/common/layouts/tree.ts +326 -326
  47. package/src/common/layouts/workers/dagre.ts +46 -46
  48. package/src/common/layouts/workers/dagreOptions.ts +35 -35
  49. package/src/common/layouts/workers/forceDirected.ts +38 -38
  50. package/src/common/layouts/workers/forceDirectedOptions.ts +30 -30
  51. package/src/common/layouts/workers/graphviz.ts +225 -225
  52. package/src/common/layouts/workers/graphvizOptions.ts +70 -70
  53. package/src/common/liteMap.ts +72 -72
  54. package/src/common/liteSVGZooom.ts +61 -61
  55. package/src/common/sankeyGraph.css +45 -45
  56. package/src/common/sankeyGraph.ts +345 -345
  57. package/src/html/annotation.ts +71 -71
  58. package/src/html/component.ts +18 -18
  59. package/src/html/edge.ts +15 -15
  60. package/src/html/graphHtml.ts +11 -11
  61. package/src/html/graphHtmlT.ts +117 -117
  62. package/src/html/icon.ts +64 -64
  63. package/src/html/image.ts +26 -26
  64. package/src/html/imageChar.ts +18 -18
  65. package/src/html/index.ts +8 -8
  66. package/src/html/intersection.ts +110 -110
  67. package/src/html/shape.ts +141 -141
  68. package/src/html/text.ts +59 -59
  69. package/src/html/textBox.ts +45 -45
  70. package/src/html/vertex.ts +67 -67
  71. package/src/index.ts +10 -10
  72. package/src/react/dataGraph.ts +345 -345
  73. package/src/react/graphReact.ts +177 -177
  74. package/src/react/graphReactT.ts +44 -44
  75. package/src/react/index.ts +4 -4
  76. package/src/react/subgraph.tsx +30 -30
  77. package/src/react/vertex.tsx +31 -31
@@ -65,6 +65,6 @@ ${f}
65
65
  <g transform="translate(${l.extent.width/2+v} ${g-y})">
66
66
  ${l}
67
67
  </g>
68
- `,f.extent.width,f.extent.height,(e,t)=>h.intersection({x:e.x,y:g+e.y},t)??f.intersection({x:e.x,y:e.y},t))},"vertex"),kw=c(({graphInstance:e,strokeWidth:t,path:r})=>Mb`<path d="${r}" marker-start="url(#${e.id()}_source${e.sourceMarker()})" marker-end="url(#${e.id()}_target${e.targetMarker()})" style="stroke-width:${t}px"></path>`,"edge"),Dw=class _GraphHtml extends Ew{constructor(){super(void 0,Cw,kw)}};c(Dw,"GraphHtml");let Mw=Dw;Mw.prototype._class+=" graph_GraphHtml";const Fw=c(({label:e="",labelFill:t="black",labelHeight:r=12,width:n=0,height:o=0,rectFill:a,rectStroke:s="#627ae7",rectStrokeWidth:u=2})=>i.React.createElement("g",{transform:`translate(${-n/2} ${-o/2})`},i.React.createElement("rect",{width:n,height:o,fill:a,stroke:s,style:{strokeWidth:u}}),i.React.createElement("g",{transform:`translate(8 ${8+r})`},i.React.createElement(i.Text,{text:e,fill:t,height:r}))),"BasicSubgraph"),Sw=c(({text:e,textFill:t="black",textHeight:r=12,scale:n=1,circleRadius:o=16,circleFill:a="#a2bcf9",circleStroke:s="#627ae7",circleStrokeWidth:u=2})=>i.React.createElement("g",{transform:`scale(${n})`},i.React.createElement("circle",{cx:"0",cy:"0",r:o,fill:a,stroke:s,style:{strokeWidth:u}}),i.React.createElement("g",{transform:`translate(0 ${o+r})`},i.React.createElement(i.Text,{text:e,fill:t,height:r}))),"BasicVertex");e.AdjacencyGraph=mm,e.Annotation=_m,e.AnnotationColumn=tb,e.BUILD_VERSION="3.19.3",e.BasicSubgraph=Fw,e.BasicVertex=Sw,e.DEFAULT_SHAPE_SIZE=ow,e.DataGraph=nb,e.Edge=$,e.Graph=fm,e.Graph2=Jy,e.GraphHtml=Mw,e.GraphReact=Zy,e.GraphReactT=Ky,e.GraphT=Gy,e.Image=_w,e.ImageChar=gw,e.PKG_NAME="@hpcc-js/graph",e.PKG_VERSION="3.6.5",e.Sankey=Bm,e.SankeyColumn=Pm,e.SankeyGraph=ob,e.Subgraph=um,e.Text=lw,e.TextLine=hw,e.Vertex=hm,e.annotation=dw,e.annotations=pw,e.circle=aw,e.graphviz=Yy,e.icon=mw,e.rectangle=sw,e.shape=cw,e.square=uw,e.toJsonObj=Ay,e.vertex=Cw,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
68
+ `,f.extent.width,f.extent.height,(e,t)=>h.intersection({x:e.x,y:g+e.y},t)??f.intersection({x:e.x,y:e.y},t))},"vertex"),kw=c(({graphInstance:e,strokeWidth:t,path:r})=>Mb`<path d="${r}" marker-start="url(#${e.id()}_source${e.sourceMarker()})" marker-end="url(#${e.id()}_target${e.targetMarker()})" style="stroke-width:${t}px"></path>`,"edge"),Dw=class _GraphHtml extends Ew{constructor(){super(void 0,Cw,kw)}};c(Dw,"GraphHtml");let Mw=Dw;Mw.prototype._class+=" graph_GraphHtml";const Fw=c(({label:e="",labelFill:t="black",labelHeight:r=12,width:n=0,height:o=0,rectFill:a,rectStroke:s="#627ae7",rectStrokeWidth:u=2})=>i.React.createElement("g",{transform:`translate(${-n/2} ${-o/2})`},i.React.createElement("rect",{width:n,height:o,fill:a,stroke:s,style:{strokeWidth:u}}),i.React.createElement("g",{transform:`translate(8 ${8+r})`},i.React.createElement(i.Text,{text:e,fill:t,height:r}))),"BasicSubgraph"),Sw=c(({text:e,textFill:t="black",textHeight:r=12,scale:n=1,circleRadius:o=16,circleFill:a="#a2bcf9",circleStroke:s="#627ae7",circleStrokeWidth:u=2})=>i.React.createElement("g",{transform:`scale(${n})`},i.React.createElement("circle",{cx:"0",cy:"0",r:o,fill:a,stroke:s,style:{strokeWidth:u}}),i.React.createElement("g",{transform:`translate(0 ${o+r})`},i.React.createElement(i.Text,{text:e,fill:t,height:r}))),"BasicVertex");e.AdjacencyGraph=mm,e.Annotation=_m,e.AnnotationColumn=tb,e.BUILD_VERSION="3.20.0",e.BasicSubgraph=Fw,e.BasicVertex=Sw,e.DEFAULT_SHAPE_SIZE=ow,e.DataGraph=nb,e.Edge=$,e.Graph=fm,e.Graph2=Jy,e.GraphHtml=Mw,e.GraphReact=Zy,e.GraphReactT=Ky,e.GraphT=Gy,e.Image=_w,e.ImageChar=gw,e.PKG_NAME="@hpcc-js/graph",e.PKG_VERSION="3.6.6",e.Sankey=Bm,e.SankeyColumn=Pm,e.SankeyGraph=ob,e.Subgraph=um,e.Text=lw,e.TextLine=hw,e.Vertex=hm,e.annotation=dw,e.annotations=pw,e.circle=aw,e.graphviz=Yy,e.icon=mw,e.rectangle=sw,e.shape=cw,e.square=uw,e.toJsonObj=Ay,e.vertex=Cw,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
69
69
  //# sourceMappingURL=index.umd.cjs.map
70
70
  !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".graph_Edge{fill:none;stroke:#656565;stroke-width:1px}.graph_Edge .common_TextBox .common_Text{fill:#000;stroke:none}.graph_Edge .common_TextBox .common_Shape{fill:#fff;stroke:none}.graph_Edge.selected{stroke:red!important}.graph_Edge.selected .common_Text{fill:red!important}.graph_Subgraph .border{fill:none;stroke:#1f77b4;stroke-width:1px;pointer-events:none}.graph_Subgraph.selected>rect{stroke:red!important}.graph_Vertex.selected .common_Shape{stroke:red!important}.graph_Graph .marker{fill:#656565;stroke:none;stroke-width:1px}.graph_Graph .zoom{fill:none;pointer-events:all}.graph_Graph .selectionBrush{fill:none;stroke:#a9a9a9}.graph_Graph .graphEdge.shortest-path .graph_Edge{stroke:red}.graph_Sankey .node rect{cursor:move;fill-opacity:.9;shape-rendering:crispEdges;stroke:#a9a9a9}.graph_Sankey .node.selected rect{stroke:red}.graph_Sankey .node.over rect{stroke:orange}.graph_Sankey .node.selected.over rect{stroke:red}.graph_Sankey .node text{pointer-events:none;text-shadow:0 1px 0 #fff}.graph_Sankey .node.selected text{fill:red}.graph_Sankey .node.over text{fill:orange}.graph_Sankey .node.selected.over text{fill:red}.graph_Sankey .link{fill:none;stroke:#000;stroke-opacity:.2}.graph_Sankey .link:hover{stroke-opacity:.5}.graph_GraphT .graphVertex,.graph_GraphT .allowDragging .graphVertex{cursor:pointer}.graph_GraphT .allowDragging .graphVertex.grabbed{cursor:grabbing}.graph_GraphT .graphEdge{stroke:#a9a9a9;fill:none}.graph_GraphT .graphEdge>text{stroke:none;fill:#000}.graph_GraphT .graphEdge.hide-text>text{display:none}.graph_GraphT g.selected rect{stroke:navy!important}.graph_GraphT g.selected circle{stroke:navy!important}.graph_GraphT .graphVertex:focus,.graph_GraphT .graphVertex:focus-visible{outline:2px solid #0078d4;outline-offset:2px}.graph_SankeyGraph .node rect{cursor:move;fill-opacity:.9;shape-rendering:crispEdges;stroke:#a9a9a9}.graph_SankeyGraph .node.selected rect{stroke:red}.graph_SankeyGraph .node.over rect{stroke:orange}.graph_SankeyGraph .node.selected.over rect{stroke:red}.graph_SankeyGraph .node text{pointer-events:none;text-shadow:0 1px 0 #fff}.graph_SankeyGraph .node.selected text{fill:red}.graph_SankeyGraph .node.over text{fill:orange}.graph_SankeyGraph .node.selected.over text{fill:red}.graph_SankeyGraph .link{fill:none;stroke:#000;stroke-opacity:.2}.graph_SankeyGraph .link:hover{stroke-opacity:.5}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();