@knowvah/dot-engine 2.10.2 → 2.10.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"layout-reset.d.ts","sourceRoot":"","sources":["../../src/gvc/layout-reset.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,GAAG,OAAO,CAEhD;AAYD;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAIjD"}
1
+ {"version":3,"file":"layout-reset.d.ts","sourceRoot":"","sources":["../../src/gvc/layout-reset.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,GAAG,OAAO,CAEhD;AAYD;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAIjD"}
package/dist/index.js CHANGED
@@ -27239,24 +27239,7 @@ function removeFill(g) {
27239
27239
  }
27240
27240
  agdelsubg(g.root, sg);
27241
27241
  }
27242
- function gvCleanupEdgeLabels(e) {
27243
- e.info.label = void 0;
27244
- e.info.xlabel = void 0;
27245
- e.info.head_label = void 0;
27246
- e.info.tail_label = void 0;
27247
- }
27248
- function gvCleanupNodeLabels(n) {
27249
- n.info.label = void 0;
27250
- n.info.xlabel = void 0;
27251
- }
27252
- function dotCleanupGraph(g) {
27253
- for (const subg of g.subgraphs.values()) dotCleanupGraph(subg);
27254
- if (g !== g.root) g.info.label = void 0;
27255
- }
27256
27242
  function dotCleanup(g) {
27257
- for (const e of g.edges) gvCleanupEdgeLabels(e);
27258
- for (const n2 of g.nodes.values()) gvCleanupNodeLabels(n2);
27259
- dotCleanupGraph(g);
27260
27243
  let n = g.info.nlist;
27261
27244
  while (n !== void 0) {
27262
27245
  const next = n.info.next;
@@ -51928,8 +51911,6 @@ function getPos(g, dim) {
51928
51911
  return pos;
51929
51912
  }
51930
51913
  function sfdpCleanup(g) {
51931
- for (const e of g.edges) gvCleanupEdgeLabels(e);
51932
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n);
51933
51914
  for (const n of g.nodes.values()) {
51934
51915
  n.info.pos = void 0;
51935
51916
  n.info.id = void 0;
@@ -54159,8 +54140,6 @@ function neatoSetAspect(g) {
54159
54140
  }
54160
54141
  }
54161
54142
  function neatoCleanup(g) {
54162
- for (const e of g.edges) gvCleanupEdgeLabels(e);
54163
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n);
54164
54143
  for (const [, n] of g.nodes) {
54165
54144
  n.info.pos = void 0;
54166
54145
  n.info.pinned = void 0;
@@ -54240,8 +54219,6 @@ function twopiFreeAlg(g) {
54240
54219
  }
54241
54220
  function twopiCleanup(g) {
54242
54221
  if (g.nodes.size === 0) return;
54243
- for (const e of g.edges) gvCleanupEdgeLabels(e);
54244
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n);
54245
54222
  g.info.neato_nlist = void 0;
54246
54223
  }
54247
54224
 
@@ -54934,18 +54911,7 @@ function fdpInitNodeEdge(g) {
54934
54911
  }
54935
54912
  initialPositions3(g);
54936
54913
  }
54937
- function fdpCleanupSubgs(g) {
54938
- const nClust = g.info.n_cluster ?? 0;
54939
- for (let i = 1; i <= nClust; i++) {
54940
- const subg = g.info.clust[i - 1];
54941
- subg.info.label = void 0;
54942
- fdpCleanupSubgs(subg);
54943
- }
54944
- }
54945
54914
  function fdpCleanup(g) {
54946
- for (const e of g.edges) gvCleanupEdgeLabels(e);
54947
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n);
54948
- fdpCleanupSubgs(g);
54949
54915
  for (const n of g.nodes.values()) {
54950
54916
  n.info.alg = void 0;
54951
54917
  n.info.pos = void 0;
@@ -57765,8 +57731,6 @@ function circoLayoutFull(g) {
57765
57731
  }
57766
57732
  function circoCleanup(g) {
57767
57733
  if (g.nodes.size === 0) return;
57768
- for (const e of g.edges) gvCleanupEdgeLabels(e);
57769
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n);
57770
57734
  g.info.alg = void 0;
57771
57735
  g.info.neato_nlist = void 0;
57772
57736
  }
@@ -58052,23 +58016,10 @@ function osageLayout(g) {
58052
58016
  placeGraphLabel(g);
58053
58017
  gvPostprocess(g);
58054
58018
  }
58055
- function cleanupGraphs(g) {
58056
- const nClust = g.info.n_cluster ?? 0;
58057
- for (let i = 1; i <= nClust; i++) {
58058
- const subg = g.info.clust[i - 1];
58059
- subg.info.label = void 0;
58060
- cleanupGraphs(subg);
58061
- }
58062
- g.info.clust = void 0;
58063
- g.info.n_cluster = void 0;
58064
- }
58065
58019
  function osageCleanup(g) {
58066
- for (const e of g.edges) gvCleanupEdgeLabels(e);
58067
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n);
58068
58020
  for (const n of g.nodes.values()) {
58069
58021
  if (n.info.alg?.kind === "osage") n.info.alg = void 0;
58070
58022
  }
58071
- cleanupGraphs(g);
58072
58023
  }
58073
58024
  var OSAGE_LAYOUT_ENGINE = {
58074
58025
  type: "osage",
@@ -58416,8 +58367,6 @@ function patchworkEngineLayout(g) {
58416
58367
  }
58417
58368
  function patchworkEngineCleanup(g) {
58418
58369
  if (g.nodes.size === 0) return;
58419
- for (const e of g.edges) gvCleanupEdgeLabels(e);
58420
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n);
58421
58370
  g.info.clust = void 0;
58422
58371
  g.info.n_cluster = void 0;
58423
58372
  for (const n of g.nodes.values()) {