@graphty/cytoscape-extensions 0.0.15 → 0.0.17

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 (2) hide show
  1. package/package.json +5 -5
  2. package/src/layouts.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphty/cytoscape-extensions",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Graphty layouts, algorithms, graph generators, sample datasets and file import/export as Cytoscape.js extensions",
5
5
  "author": "Adam Powers <apowers@ato.ms>",
6
6
  "type": "module",
@@ -72,8 +72,8 @@
72
72
  "homepage": "https://github.com/graphty-org/graphty-monorepo/tree/master/cytoscape-extensions#readme",
73
73
  "dependencies": {
74
74
  "@graphty/graph-io": "^0.3.38",
75
- "@graphty/webgpu-graph-algorithms": "^0.6.50",
76
- "@graphty/graph-samples": "^0.1.30"
75
+ "@graphty/graph-samples": "^0.1.30",
76
+ "@graphty/webgpu-graph-algorithms": "^0.6.52"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@graphty/algorithms": "^3.0.0",
@@ -102,9 +102,9 @@
102
102
  "typescript": "^5.9.3",
103
103
  "vite": "^7.0.5",
104
104
  "vitest": "4.1.11",
105
- "@graphty/graph-format": "^1.3.15",
106
105
  "@graphty/algorithms": "^3.4.5",
107
- "@graphty/layout": "^2.4.5"
106
+ "@graphty/graph-format": "^1.3.15",
107
+ "@graphty/layout": "^2.5.1"
108
108
  },
109
109
  "scripts": {
110
110
  "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json && vite build --config vite.bundle.config.ts --mode cdn --logLevel warn && vite build --config vite.bundle.config.ts --logLevel warn",
package/src/layouts.ts CHANGED
@@ -893,10 +893,12 @@ function registrant(run: (layout: LayoutThis) => void, withStop: boolean): unkno
893
893
  this.looping = false;
894
894
  RUN_BODIES.set(this, run);
895
895
  }
896
- GraphtyLayout.prototype.run = runLayout;
896
+ const methods: { run: typeof runLayout; stop?: typeof stopLayout } = { run: runLayout };
897
897
  if (withStop) {
898
- GraphtyLayout.prototype.stop = stopLayout;
898
+ methods.stop = stopLayout;
899
899
  }
900
+ // A function's prototype is typed any; assigning through Object.assign keeps the methods typed.
901
+ Object.assign(GraphtyLayout.prototype, methods);
900
902
  return GraphtyLayout;
901
903
  }
902
904