@duskmoon-dev/el-markdown-input 1.9.3 → 1.10.1

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.
@@ -60118,7 +60118,7 @@ var init_swimlanes_XN3QIQJK = __esm(() => {
60118
60118
  });
60119
60119
  });
60120
60120
 
60121
- // ../../node_modules/.bun/cytoscape@3.34.3/node_modules/cytoscape/dist/cytoscape.esm.mjs
60121
+ // ../../node_modules/.bun/cytoscape@3.34.4/node_modules/cytoscape/dist/cytoscape.esm.mjs
60122
60122
  function _arrayLikeToArray2(r, a) {
60123
60123
  (a == null || a > r.length) && (a = r.length);
60124
60124
  for (var e = 0, n = Array(a);e < a; e++)
@@ -68861,7 +68861,7 @@ var _window, navigator2, typeofstr, typeofobj, typeoffn, typeofhtmlele, instance
68861
68861
  return new _Stylesheet;
68862
68862
  }
68863
68863
  this.length = 0;
68864
- }, sheetfn, version2 = "3.34.3", cytoscape2 = function cytoscape2(options) {
68864
+ }, sheetfn, version2 = "3.34.4", cytoscape2 = function cytoscape2(options) {
68865
68865
  if (options === undefined) {
68866
68866
  options = {};
68867
68867
  }
@@ -70378,12 +70378,17 @@ var init_cytoscape_esm = __esm(() => {
70378
70378
  startVertex = string(root) ? this.filter(root)[0].id() : root[0].id();
70379
70379
  var nodes = {};
70380
70380
  var edges = {};
70381
+ var subgraphEdges = eles.edges().filter(function(e) {
70382
+ return eles.has(e.source()) && eles.has(e.target());
70383
+ });
70381
70384
  if (directed) {
70382
70385
  eles.forEach(function(ele) {
70383
70386
  var id = ele.id();
70384
70387
  if (ele.isNode()) {
70385
- var ind = ele.indegree(true);
70386
- var outd = ele.outdegree(true);
70388
+ var incoming = ele.incomers().edges().intersection(subgraphEdges);
70389
+ var outgoing = ele.outgoers().edges().intersection(subgraphEdges);
70390
+ var ind = incoming.length;
70391
+ var outd = outgoing.length;
70387
70392
  var d1 = ind - outd;
70388
70393
  var d2 = outd - ind;
70389
70394
  if (d1 == 1) {
@@ -70400,9 +70405,8 @@ var init_cytoscape_esm = __esm(() => {
70400
70405
  dflag = true;
70401
70406
  }
70402
70407
  nodes[id] = [];
70403
- ele.outgoers().forEach(function(e) {
70404
- if (e.isEdge())
70405
- nodes[id].push(e.id());
70408
+ outgoing.forEach(function(e) {
70409
+ return nodes[id].push(e.id());
70406
70410
  });
70407
70411
  } else {
70408
70412
  edges[id] = [undefined, ele.target().id()];
@@ -70412,7 +70416,10 @@ var init_cytoscape_esm = __esm(() => {
70412
70416
  eles.forEach(function(ele) {
70413
70417
  var id = ele.id();
70414
70418
  if (ele.isNode()) {
70415
- var d = ele.degree(true);
70419
+ var connected = ele.connectedEdges().intersection(subgraphEdges);
70420
+ var d = connected.length + connected.filter(function(e) {
70421
+ return e.isLoop();
70422
+ }).length;
70416
70423
  if (d % 2) {
70417
70424
  if (!oddIn)
70418
70425
  oddIn = id;
@@ -70422,7 +70429,7 @@ var init_cytoscape_esm = __esm(() => {
70422
70429
  dflag = true;
70423
70430
  }
70424
70431
  nodes[id] = [];
70425
- ele.connectedEdges().forEach(function(e) {
70432
+ connected.forEach(function(e) {
70426
70433
  return nodes[id].push(e.id());
70427
70434
  });
70428
70435
  } else {
@@ -89737,8 +89744,6 @@ var init_cytoscape_esm = __esm(() => {
89737
89744
  buffCxt.translate(-bb.x1 * scale, -bb.y1 * scale);
89738
89745
  buffCxt.scale(scale, scale);
89739
89746
  this.drawElements(buffCxt, zsortedEles);
89740
- buffCxt.scale(1 / scale, 1 / scale);
89741
- buffCxt.translate(bb.x1 * scale, bb.y1 * scale);
89742
89747
  } else {
89743
89748
  var pan = cy.pan();
89744
89749
  var translation = {
@@ -89749,14 +89754,12 @@ var init_cytoscape_esm = __esm(() => {
89749
89754
  buffCxt.translate(translation.x, translation.y);
89750
89755
  buffCxt.scale(scale, scale);
89751
89756
  this.drawElements(buffCxt, zsortedEles);
89752
- buffCxt.scale(1 / scale, 1 / scale);
89753
- buffCxt.translate(-translation.x, -translation.y);
89754
89757
  }
89758
+ buffCxt.setTransform(1, 0, 0, 1, 0, 0);
89755
89759
  if (options.bg) {
89756
89760
  buffCxt.globalCompositeOperation = "destination-over";
89757
89761
  buffCxt.fillStyle = options.bg;
89758
- buffCxt.rect(0, 0, width, height);
89759
- buffCxt.fill();
89762
+ buffCxt.fillRect(0, 0, width, height);
89760
89763
  }
89761
89764
  }
89762
89765
  return buffCanvas;
@@ -94165,7 +94168,7 @@ var require_cose_base = __commonJS(function(exports2, module2) {
94165
94168
  });
94166
94169
  });
94167
94170
 
94168
- // ../../node_modules/.bun/cytoscape-cose-bilkent@4.1.0+a96ea9a7ca41acef/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js
94171
+ // ../../node_modules/.bun/cytoscape-cose-bilkent@4.1.0+545e7b35a3d68c00/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js
94169
94172
  var require_cytoscape_cose_bilkent = __commonJS(function(exports2, module2) {
94170
94173
  (function webpackUniversalModuleDefinition(root, factory) {
94171
94174
  if (typeof exports2 === "object" && typeof module2 === "object")
@@ -166004,7 +166007,7 @@ var require_cose_base2 = __commonJS(function(exports2, module2) {
166004
166007
  });
166005
166008
  });
166006
166009
 
166007
- // ../../node_modules/.bun/cytoscape-fcose@2.2.0+a96ea9a7ca41acef/node_modules/cytoscape-fcose/cytoscape-fcose.js
166010
+ // ../../node_modules/.bun/cytoscape-fcose@2.2.0+545e7b35a3d68c00/node_modules/cytoscape-fcose/cytoscape-fcose.js
166008
166011
  var require_cytoscape_fcose = __commonJS(function(exports2, module2) {
166009
166012
  (function webpackUniversalModuleDefinition(root, factory) {
166010
166013
  if (typeof exports2 === "object" && typeof module2 === "object")
@@ -177358,5 +177361,5 @@ var mermaid_default = mermaid;
177358
177361
  * Wait for document loaded before starting the execution
177359
177362
  */
177360
177363
 
177361
- //# debugId=387B57656F57959264756E2164756E21
177364
+ //# debugId=B391C71A70FF788764756E2164756E21
177362
177365
  //# sourceMappingURL=mermaid.js.map