@duskmoon-dev/el-markdown-input 1.9.2 → 1.10.0

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.
@@ -60100,7 +60100,7 @@ var init_swimlanes_XN3QIQJK = __esm(() => {
60100
60100
  });
60101
60101
  });
60102
60102
 
60103
- // ../../node_modules/.bun/cytoscape@3.34.3/node_modules/cytoscape/dist/cytoscape.esm.mjs
60103
+ // ../../node_modules/.bun/cytoscape@3.34.4/node_modules/cytoscape/dist/cytoscape.esm.mjs
60104
60104
  function _arrayLikeToArray2(r, a) {
60105
60105
  (a == null || a > r.length) && (a = r.length);
60106
60106
  for (var e = 0, n = Array(a);e < a; e++)
@@ -68843,7 +68843,7 @@ var _window, navigator2, typeofstr, typeofobj, typeoffn, typeofhtmlele, instance
68843
68843
  return new _Stylesheet;
68844
68844
  }
68845
68845
  this.length = 0;
68846
- }, sheetfn, version2 = "3.34.3", cytoscape2 = function cytoscape2(options) {
68846
+ }, sheetfn, version2 = "3.34.4", cytoscape2 = function cytoscape2(options) {
68847
68847
  if (options === undefined) {
68848
68848
  options = {};
68849
68849
  }
@@ -70360,12 +70360,17 @@ var init_cytoscape_esm = __esm(() => {
70360
70360
  startVertex = string(root) ? this.filter(root)[0].id() : root[0].id();
70361
70361
  var nodes = {};
70362
70362
  var edges = {};
70363
+ var subgraphEdges = eles.edges().filter(function(e) {
70364
+ return eles.has(e.source()) && eles.has(e.target());
70365
+ });
70363
70366
  if (directed) {
70364
70367
  eles.forEach(function(ele) {
70365
70368
  var id = ele.id();
70366
70369
  if (ele.isNode()) {
70367
- var ind = ele.indegree(true);
70368
- var outd = ele.outdegree(true);
70370
+ var incoming = ele.incomers().edges().intersection(subgraphEdges);
70371
+ var outgoing = ele.outgoers().edges().intersection(subgraphEdges);
70372
+ var ind = incoming.length;
70373
+ var outd = outgoing.length;
70369
70374
  var d1 = ind - outd;
70370
70375
  var d2 = outd - ind;
70371
70376
  if (d1 == 1) {
@@ -70382,9 +70387,8 @@ var init_cytoscape_esm = __esm(() => {
70382
70387
  dflag = true;
70383
70388
  }
70384
70389
  nodes[id] = [];
70385
- ele.outgoers().forEach(function(e) {
70386
- if (e.isEdge())
70387
- nodes[id].push(e.id());
70390
+ outgoing.forEach(function(e) {
70391
+ return nodes[id].push(e.id());
70388
70392
  });
70389
70393
  } else {
70390
70394
  edges[id] = [undefined, ele.target().id()];
@@ -70394,7 +70398,10 @@ var init_cytoscape_esm = __esm(() => {
70394
70398
  eles.forEach(function(ele) {
70395
70399
  var id = ele.id();
70396
70400
  if (ele.isNode()) {
70397
- var d = ele.degree(true);
70401
+ var connected = ele.connectedEdges().intersection(subgraphEdges);
70402
+ var d = connected.length + connected.filter(function(e) {
70403
+ return e.isLoop();
70404
+ }).length;
70398
70405
  if (d % 2) {
70399
70406
  if (!oddIn)
70400
70407
  oddIn = id;
@@ -70404,7 +70411,7 @@ var init_cytoscape_esm = __esm(() => {
70404
70411
  dflag = true;
70405
70412
  }
70406
70413
  nodes[id] = [];
70407
- ele.connectedEdges().forEach(function(e) {
70414
+ connected.forEach(function(e) {
70408
70415
  return nodes[id].push(e.id());
70409
70416
  });
70410
70417
  } else {
@@ -89719,8 +89726,6 @@ var init_cytoscape_esm = __esm(() => {
89719
89726
  buffCxt.translate(-bb.x1 * scale, -bb.y1 * scale);
89720
89727
  buffCxt.scale(scale, scale);
89721
89728
  this.drawElements(buffCxt, zsortedEles);
89722
- buffCxt.scale(1 / scale, 1 / scale);
89723
- buffCxt.translate(bb.x1 * scale, bb.y1 * scale);
89724
89729
  } else {
89725
89730
  var pan = cy.pan();
89726
89731
  var translation = {
@@ -89731,14 +89736,12 @@ var init_cytoscape_esm = __esm(() => {
89731
89736
  buffCxt.translate(translation.x, translation.y);
89732
89737
  buffCxt.scale(scale, scale);
89733
89738
  this.drawElements(buffCxt, zsortedEles);
89734
- buffCxt.scale(1 / scale, 1 / scale);
89735
- buffCxt.translate(-translation.x, -translation.y);
89736
89739
  }
89740
+ buffCxt.setTransform(1, 0, 0, 1, 0, 0);
89737
89741
  if (options.bg) {
89738
89742
  buffCxt.globalCompositeOperation = "destination-over";
89739
89743
  buffCxt.fillStyle = options.bg;
89740
- buffCxt.rect(0, 0, width, height);
89741
- buffCxt.fill();
89744
+ buffCxt.fillRect(0, 0, width, height);
89742
89745
  }
89743
89746
  }
89744
89747
  return buffCanvas;
@@ -94147,7 +94150,7 @@ var require_cose_base = __commonJS(function(exports, module) {
94147
94150
  });
94148
94151
  });
94149
94152
 
94150
- // ../../node_modules/.bun/cytoscape-cose-bilkent@4.1.0+a96ea9a7ca41acef/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js
94153
+ // ../../node_modules/.bun/cytoscape-cose-bilkent@4.1.0+545e7b35a3d68c00/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js
94151
94154
  var require_cytoscape_cose_bilkent = __commonJS(function(exports, module) {
94152
94155
  (function webpackUniversalModuleDefinition(root, factory) {
94153
94156
  if (typeof exports === "object" && typeof module === "object")
@@ -165986,7 +165989,7 @@ var require_cose_base2 = __commonJS(function(exports, module) {
165986
165989
  });
165987
165990
  });
165988
165991
 
165989
- // ../../node_modules/.bun/cytoscape-fcose@2.2.0+a96ea9a7ca41acef/node_modules/cytoscape-fcose/cytoscape-fcose.js
165992
+ // ../../node_modules/.bun/cytoscape-fcose@2.2.0+545e7b35a3d68c00/node_modules/cytoscape-fcose/cytoscape-fcose.js
165990
165993
  var require_cytoscape_fcose = __commonJS(function(exports, module) {
165991
165994
  (function webpackUniversalModuleDefinition(root, factory) {
165992
165995
  if (typeof exports === "object" && typeof module === "object")
@@ -177336,5 +177339,5 @@ export {
177336
177339
  mermaid_default as default
177337
177340
  };
177338
177341
 
177339
- //# debugId=E424EC9A05C74E9964756E2164756E21
177342
+ //# debugId=1DC01B09E58505A464756E2164756E21
177340
177343
  //# sourceMappingURL=mermaid.js.map