Skip to content

Commit 2b3ee9c

Browse files
committed
fix links
1 parent 6e17db5 commit 2b3ee9c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![NPM Package][npm-image]][npm-url] [![Github Actions][github-actions-image]][github-actions-url] [![Cytoscape Plugin][cytoscape-image]][cytoscape-url]
44

5-
A [Cytoscape.js](https://js.cytoscape.org) plugin for rendering [Bubblesets](https://github.com/sgratzl/bubblesets-js).
5+
A [Cytoscape.js](https://js.cytoscape.org) plugin for rendering [Bubblesets](https://github.com/upsetjs/bubblesets-js).
66

77
![Euler Example](https://user-images.githubusercontent.com/4129778/83965199-249aef00-a8b2-11ea-866e-4b0207c7b446.png)
88

@@ -14,7 +14,7 @@ npm install cytoscape cytoscape-bubblesets
1414

1515
## Usage
1616

17-
see [Samples](https://github.com/sgratzl/cytoscape-bubblesets/tree/master/samples) on Github
17+
see [Samples](https://github.com/upsetjs/cytoscape-bubblesets/tree/master/samples) on Github
1818

1919
or at this [![Open in CodePen][codepen]](https://codepen.io/sgratzl/pen/TODO)
2020

@@ -109,7 +109,7 @@ yarn release:pre
109109
```
110110

111111
[npm-image]: https://badge.fury.io/js/cytoscape-bubblesets.svg
112-
[npm-url]: https://npmjs.org/package/sgratzl/cytoscape-bubblesets
112+
[npm-url]: https://npmjs.org/package/cytoscape-bubblesets
113113
[github-actions-image]: https://github.com/upsetjs/cytoscape.js-bubblesets/workflows/ci/badge.svg
114114
[github-actions-url]: https://github.com/upsetjs/cytoscape.js-bubblesets/actions
115115
[cytoscape-image]: https://img.shields.io/badge/Cytoscape-plugin-yellow

src/BubbleSetsPlugin.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
99

1010
export default class BubbleSetsPlugin {
1111
readonly svg: SVGSVGElement;
12-
readonly #paths: BubbleSetPath[] = [];
12+
readonly #layers: BubbleSetPath[] = [];
1313
readonly #adapter = {
1414
remove: (path: BubbleSetPath) => {
15-
const index = this.#paths.indexOf(path);
15+
const index = this.#layers.indexOf(path);
1616
if (index < 0) {
1717
return false;
1818
}
19-
this.#paths.splice(index, 1);
19+
this.#layers.splice(index, 1);
2020
return true;
2121
},
2222
};
@@ -51,7 +51,7 @@ export default class BubbleSetsPlugin {
5151
};
5252

5353
destroy() {
54-
for (const path of this.#paths) {
54+
for (const path of this.#layers) {
5555
path.remove();
5656
}
5757
this.#cy.off('viewport', undefined, this.zoomed);
@@ -75,20 +75,20 @@ export default class BubbleSetsPlugin {
7575
avoidNodes ?? this.#cy.collection(),
7676
Object.assign({}, this.#options, options)
7777
);
78-
this.#paths.push(path);
79-
if (this.#paths.length === 1) {
78+
this.#layers.push(path);
79+
if (this.#layers.length === 1) {
8080
this.zoomed();
8181
}
8282
path.update();
8383
return path;
8484
}
8585

8686
getPaths() {
87-
return this.#paths.slice();
87+
return this.#layers.slice();
8888
}
8989

9090
removePath(path: BubbleSetPath) {
91-
const i = this.#paths.indexOf(path);
91+
const i = this.#layers.indexOf(path);
9292
if (i < 0) {
9393
return false;
9494
}
@@ -104,7 +104,7 @@ export default class BubbleSetsPlugin {
104104

105105
update() {
106106
this.zoomed();
107-
this.#paths.forEach((p) => p.update());
107+
this.#layers.forEach((p) => p.update());
108108
}
109109
}
110110

0 commit comments

Comments
 (0)