@tsparticles/interaction-particles-links 3.0.0-alpha.1 → 3.0.0-beta.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.
Files changed (79) hide show
  1. package/README.md +25 -19
  2. package/browser/CircleWarp.js +7 -23
  3. package/browser/LinkInstance.js +121 -114
  4. package/browser/Linker.js +39 -56
  5. package/browser/Options/Classes/Links.js +2 -2
  6. package/browser/Utils.js +24 -8
  7. package/browser/index.js +11 -11
  8. package/browser/interaction.js +3 -3
  9. package/browser/package.json +1 -0
  10. package/browser/plugin.js +3 -3
  11. package/cjs/CircleWarp.js +7 -23
  12. package/cjs/LinkInstance.js +123 -127
  13. package/cjs/Linker.js +69 -97
  14. package/cjs/Options/Classes/Links.js +4 -4
  15. package/cjs/Utils.js +26 -8
  16. package/cjs/index.js +11 -22
  17. package/cjs/interaction.js +5 -16
  18. package/cjs/package.json +1 -0
  19. package/cjs/plugin.js +7 -18
  20. package/esm/CircleWarp.js +7 -23
  21. package/esm/LinkInstance.js +121 -114
  22. package/esm/Linker.js +39 -56
  23. package/esm/Options/Classes/Links.js +2 -2
  24. package/esm/Utils.js +24 -8
  25. package/esm/index.js +11 -11
  26. package/esm/interaction.js +3 -3
  27. package/esm/package.json +1 -0
  28. package/esm/plugin.js +3 -3
  29. package/package.json +19 -6
  30. package/report.html +4 -4
  31. package/tsparticles.interaction.particles.links.js +244 -204
  32. package/tsparticles.interaction.particles.links.min.js +1 -1
  33. package/tsparticles.interaction.particles.links.min.js.LICENSE.txt +1 -8
  34. package/types/CircleWarp.d.ts +1 -2
  35. package/types/Interfaces.d.ts +22 -0
  36. package/types/LinkInstance.d.ts +7 -8
  37. package/types/Linker.d.ts +3 -7
  38. package/types/Options/Classes/Links.d.ts +4 -5
  39. package/types/Options/Classes/LinksShadow.d.ts +2 -3
  40. package/types/Options/Classes/LinksTriangle.d.ts +2 -3
  41. package/types/Options/Interfaces/ILinks.d.ts +2 -2
  42. package/types/Types.d.ts +47 -0
  43. package/types/Utils.d.ts +5 -4
  44. package/types/index.d.ts +7 -7
  45. package/types/interaction.d.ts +1 -1
  46. package/types/plugin.d.ts +1 -1
  47. package/umd/CircleWarp.js +7 -23
  48. package/umd/LinkInstance.js +121 -114
  49. package/umd/Linker.js +41 -58
  50. package/umd/Options/Classes/Links.js +5 -5
  51. package/umd/Utils.js +26 -8
  52. package/umd/index.js +12 -12
  53. package/umd/interaction.js +6 -6
  54. package/umd/plugin.js +7 -7
  55. package/browser/Options/Interfaces/IParticlesLinkOptions.js +0 -1
  56. package/cjs/LinkParticle.js +0 -2
  57. package/cjs/Options/Classes/ParticlesLinkOptions.js +0 -2
  58. package/cjs/Options/Interfaces/IParticlesLinkOptions.js +0 -2
  59. package/esm/ILink.js +0 -1
  60. package/esm/LinkContainer.js +0 -1
  61. package/esm/LinkParticle.js +0 -1
  62. package/esm/Options/Classes/ParticlesLinkOptions.js +0 -1
  63. package/esm/Options/Interfaces/IParticlesLinkOptions.js +0 -1
  64. package/types/ILink.d.ts +0 -9
  65. package/types/LinkContainer.d.ts +0 -7
  66. package/types/LinkParticle.d.ts +0 -11
  67. package/types/Options/Classes/ParticlesLinkOptions.d.ts +0 -5
  68. package/types/Options/Interfaces/IParticlesLinkOptions.d.ts +0 -7
  69. package/umd/LinkParticle.js +0 -12
  70. package/umd/Options/Classes/ParticlesLinkOptions.js +0 -12
  71. package/umd/Options/Interfaces/IParticlesLinkOptions.js +0 -12
  72. /package/browser/{ILink.js → Interfaces.js} +0 -0
  73. /package/browser/{LinkContainer.js → Types.js} +0 -0
  74. /package/cjs/{ILink.js → Interfaces.js} +0 -0
  75. /package/cjs/{LinkContainer.js → Types.js} +0 -0
  76. /package/{browser/LinkParticle.js → esm/Interfaces.js} +0 -0
  77. /package/{browser/Options/Classes/ParticlesLinkOptions.js → esm/Types.js} +0 -0
  78. /package/umd/{ILink.js → Interfaces.js} +0 -0
  79. /package/umd/{LinkContainer.js → Types.js} +0 -0
package/umd/Linker.js CHANGED
@@ -4,46 +4,52 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "@tsparticles/engine", "./CircleWarp", "./Options/Classes/Links"], factory);
7
+ define(["require", "exports", "@tsparticles/engine", "./CircleWarp.js", "./Options/Classes/Links.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Linker = void 0;
13
13
  const engine_1 = require("@tsparticles/engine");
14
- const CircleWarp_1 = require("./CircleWarp");
15
- const Links_1 = require("./Options/Classes/Links");
14
+ const CircleWarp_js_1 = require("./CircleWarp.js");
15
+ const Links_js_1 = require("./Options/Classes/Links.js");
16
16
  function getLinkDistance(pos1, pos2, optDistance, canvasSize, warp) {
17
- let distance = (0, engine_1.getDistance)(pos1, pos2);
17
+ const { dx, dy, distance } = (0, engine_1.getDistances)(pos1, pos2);
18
18
  if (!warp || distance <= optDistance) {
19
19
  return distance;
20
20
  }
21
- const pos2NE = {
22
- x: pos2.x - canvasSize.width,
23
- y: pos2.y,
21
+ const absDiffs = {
22
+ x: Math.abs(dx),
23
+ y: Math.abs(dy),
24
+ }, warpDistances = {
25
+ x: Math.min(absDiffs.x, canvasSize.width - absDiffs.x),
26
+ y: Math.min(absDiffs.y, canvasSize.height - absDiffs.y),
24
27
  };
25
- distance = (0, engine_1.getDistance)(pos1, pos2NE);
26
- if (distance <= optDistance) {
27
- return distance;
28
- }
29
- const pos2SE = {
30
- x: pos2.x - canvasSize.width,
31
- y: pos2.y - canvasSize.height,
32
- };
33
- distance = (0, engine_1.getDistance)(pos1, pos2SE);
34
- if (distance <= optDistance) {
35
- return distance;
36
- }
37
- const pos2SW = {
38
- x: pos2.x,
39
- y: pos2.y - canvasSize.height,
40
- };
41
- distance = (0, engine_1.getDistance)(pos1, pos2SW);
42
- return distance;
28
+ return Math.sqrt(warpDistances.x ** 2 + warpDistances.y ** 2);
43
29
  }
44
30
  class Linker extends engine_1.ParticlesInteractorBase {
45
31
  constructor(container) {
46
32
  super(container);
33
+ this._setColor = (p1) => {
34
+ if (!p1.options.links) {
35
+ return;
36
+ }
37
+ const container = this.linkContainer, linksOptions = p1.options.links;
38
+ let linkColor = linksOptions.id === undefined
39
+ ? container.particles.linksColor
40
+ : container.particles.linksColors.get(linksOptions.id);
41
+ if (linkColor) {
42
+ return;
43
+ }
44
+ const optColor = linksOptions.color;
45
+ linkColor = (0, engine_1.getLinkRandomColor)(optColor, linksOptions.blink, linksOptions.consent);
46
+ if (linksOptions.id === undefined) {
47
+ container.particles.linksColor = linkColor;
48
+ }
49
+ else {
50
+ container.particles.linksColors.set(linksOptions.id, linkColor);
51
+ }
52
+ };
47
53
  this.linkContainer = container;
48
54
  }
49
55
  clear() {
@@ -53,7 +59,6 @@
53
59
  this.linkContainer.particles.linksColors = new Map();
54
60
  }
55
61
  async interact(p1) {
56
- var _a;
57
62
  if (!p1.options.links) {
58
63
  return;
59
64
  }
@@ -62,19 +67,19 @@
62
67
  if (pos1.x < 0 || pos1.y < 0 || pos1.x > canvasSize.width || pos1.y > canvasSize.height) {
63
68
  return;
64
69
  }
65
- const linkOpt1 = p1.options.links, optOpacity = linkOpt1.opacity, optDistance = (_a = p1.retina.linksDistance) !== null && _a !== void 0 ? _a : 0, warp = linkOpt1.warp, range = warp
66
- ? new CircleWarp_1.CircleWarp(pos1.x, pos1.y, optDistance, canvasSize)
70
+ const linkOpt1 = p1.options.links, optOpacity = linkOpt1.opacity, optDistance = p1.retina.linksDistance ?? 0, warp = linkOpt1.warp, range = warp
71
+ ? new CircleWarp_js_1.CircleWarp(pos1.x, pos1.y, optDistance, canvasSize)
67
72
  : new engine_1.Circle(pos1.x, pos1.y, optDistance), query = container.particles.quadTree.query(range);
68
73
  for (const p2 of query) {
69
74
  const linkOpt2 = p2.options.links;
70
75
  if (p1 === p2 ||
71
- !(linkOpt2 === null || linkOpt2 === void 0 ? void 0 : linkOpt2.enable) ||
76
+ !linkOpt2?.enable ||
72
77
  linkOpt1.id !== linkOpt2.id ||
73
78
  p2.spawning ||
74
79
  p2.destroyed ||
75
80
  !p2.links ||
76
- p1.links.map((t) => t.destination).indexOf(p2) !== -1 ||
77
- p2.links.map((t) => t.destination).indexOf(p1) !== -1) {
81
+ p1.links.some((t) => t.destination === p2) ||
82
+ p2.links.some((t) => t.destination === p1)) {
78
83
  continue;
79
84
  }
80
85
  const pos2 = p2.getPosition();
@@ -83,10 +88,10 @@
83
88
  }
84
89
  const distance = getLinkDistance(pos1, pos2, optDistance, canvasSize, warp && linkOpt2.warp);
85
90
  if (distance > optDistance) {
86
- return;
91
+ continue;
87
92
  }
88
93
  const opacityLine = (1 - distance / optDistance) * optOpacity;
89
- this.setColor(p1);
94
+ this._setColor(p1);
90
95
  p1.links.push({
91
96
  destination: p2,
92
97
  opacity: opacityLine,
@@ -94,40 +99,18 @@
94
99
  }
95
100
  }
96
101
  isEnabled(particle) {
97
- var _a;
98
- return !!((_a = particle.options.links) === null || _a === void 0 ? void 0 : _a.enable);
102
+ return !!particle.options.links?.enable;
99
103
  }
100
104
  loadParticlesOptions(options, ...sources) {
101
- var _a, _b;
102
105
  if (!options.links) {
103
- options.links = new Links_1.Links();
106
+ options.links = new Links_js_1.Links();
104
107
  }
105
108
  for (const source of sources) {
106
- options.links.load((_b = (_a = source === null || source === void 0 ? void 0 : source.links) !== null && _a !== void 0 ? _a : source === null || source === void 0 ? void 0 : source.lineLinked) !== null && _b !== void 0 ? _b : source === null || source === void 0 ? void 0 : source.line_linked);
109
+ options.links.load(source?.links ?? source?.lineLinked ?? source?.line_linked);
107
110
  }
108
111
  }
109
112
  reset() {
110
113
  }
111
- setColor(p1) {
112
- if (!p1.options.links) {
113
- return;
114
- }
115
- const container = this.linkContainer, linksOptions = p1.options.links;
116
- let linkColor = linksOptions.id === undefined
117
- ? container.particles.linksColor
118
- : container.particles.linksColors.get(linksOptions.id);
119
- if (linkColor) {
120
- return;
121
- }
122
- const optColor = linksOptions.color;
123
- linkColor = (0, engine_1.getLinkRandomColor)(optColor, linksOptions.blink, linksOptions.consent);
124
- if (linksOptions.id === undefined) {
125
- container.particles.linksColor = linkColor;
126
- }
127
- else {
128
- container.particles.linksColors.set(linksOptions.id, linkColor);
129
- }
130
- }
131
114
  }
132
115
  exports.Linker = Linker;
133
116
  });
@@ -4,15 +4,15 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./LinksShadow", "./LinksTriangle", "@tsparticles/engine"], factory);
7
+ define(["require", "exports", "@tsparticles/engine", "./LinksShadow.js", "./LinksTriangle.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Links = void 0;
13
- const LinksShadow_1 = require("./LinksShadow");
14
- const LinksTriangle_1 = require("./LinksTriangle");
15
13
  const engine_1 = require("@tsparticles/engine");
14
+ const LinksShadow_js_1 = require("./LinksShadow.js");
15
+ const LinksTriangle_js_1 = require("./LinksTriangle.js");
16
16
  class Links {
17
17
  constructor() {
18
18
  this.blink = false;
@@ -23,8 +23,8 @@
23
23
  this.enable = false;
24
24
  this.frequency = 1;
25
25
  this.opacity = 1;
26
- this.shadow = new LinksShadow_1.LinksShadow();
27
- this.triangles = new LinksTriangle_1.LinksTriangle();
26
+ this.shadow = new LinksShadow_js_1.LinksShadow();
27
+ this.triangles = new LinksTriangle_js_1.LinksTriangle();
28
28
  this.width = 1;
29
29
  this.warp = false;
30
30
  }
package/umd/Utils.js CHANGED
@@ -9,15 +9,16 @@
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.drawLinkTriangle = exports.drawLinkLine = void 0;
12
+ exports.setLinkFrequency = exports.getLinkKey = exports.drawLinkTriangle = exports.drawLinkLine = void 0;
13
13
  const engine_1 = require("@tsparticles/engine");
14
- function drawLinkLine(context, width, begin, end, maxDistance, canvasSize, warp, backgroundMask, composite, colorLine, opacity, shadow) {
14
+ function drawLinkLine(params) {
15
15
  let drawn = false;
16
+ const { begin, end, maxDistance, context, canvasSize, width, backgroundMask, colorLine, opacity, links } = params;
16
17
  if ((0, engine_1.getDistance)(begin, end) <= maxDistance) {
17
18
  (0, engine_1.drawLine)(context, begin, end);
18
19
  drawn = true;
19
20
  }
20
- else if (warp) {
21
+ else if (links.warp) {
21
22
  let pi1;
22
23
  let pi2;
23
24
  const endNE = {
@@ -66,10 +67,11 @@
66
67
  return;
67
68
  }
68
69
  context.lineWidth = width;
69
- if (backgroundMask) {
70
- context.globalCompositeOperation = composite;
70
+ if (backgroundMask.enable) {
71
+ context.globalCompositeOperation = backgroundMask.composite;
71
72
  }
72
73
  context.strokeStyle = (0, engine_1.getStyleFromRgb)(colorLine, opacity);
74
+ const { shadow } = links;
73
75
  if (shadow.enable) {
74
76
  const shadowColor = (0, engine_1.rangeColorToRgb)(shadow.color);
75
77
  if (shadowColor) {
@@ -80,13 +82,29 @@
80
82
  context.stroke();
81
83
  }
82
84
  exports.drawLinkLine = drawLinkLine;
83
- function drawLinkTriangle(context, pos1, pos2, pos3, backgroundMask, composite, colorTriangle, opacityTriangle) {
85
+ function drawLinkTriangle(params) {
86
+ const { context, pos1, pos2, pos3, backgroundMask, colorTriangle, opacityTriangle } = params;
84
87
  (0, engine_1.drawTriangle)(context, pos1, pos2, pos3);
85
- if (backgroundMask) {
86
- context.globalCompositeOperation = composite;
88
+ if (backgroundMask.enable) {
89
+ context.globalCompositeOperation = backgroundMask.composite;
87
90
  }
88
91
  context.fillStyle = (0, engine_1.getStyleFromRgb)(colorTriangle, opacityTriangle);
89
92
  context.fill();
90
93
  }
91
94
  exports.drawLinkTriangle = drawLinkTriangle;
95
+ function getLinkKey(ids) {
96
+ ids.sort((a, b) => a - b);
97
+ return ids.join("_");
98
+ }
99
+ exports.getLinkKey = getLinkKey;
100
+ function setLinkFrequency(particles, dictionary) {
101
+ const key = getLinkKey(particles.map((t) => t.id));
102
+ let res = dictionary.get(key);
103
+ if (res === undefined) {
104
+ res = (0, engine_1.getRandom)();
105
+ dictionary.set(key, res);
106
+ }
107
+ return res;
108
+ }
109
+ exports.setLinkFrequency = setLinkFrequency;
92
110
  });
package/umd/index.js CHANGED
@@ -18,23 +18,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  if (v !== undefined) module.exports = v;
19
19
  }
20
20
  else if (typeof define === "function" && define.amd) {
21
- define(["require", "exports", "./interaction", "./plugin", "./Options/Classes/Links", "./Options/Classes/LinksShadow", "./Options/Classes/LinksTriangle", "./Options/Interfaces/ILinks", "./Options/Interfaces/ILinksShadow", "./Options/Interfaces/ILinksTriangle"], factory);
21
+ define(["require", "exports", "./interaction.js", "./plugin.js", "./Options/Classes/Links.js", "./Options/Classes/LinksShadow.js", "./Options/Classes/LinksTriangle.js", "./Options/Interfaces/ILinks.js", "./Options/Interfaces/ILinksShadow.js", "./Options/Interfaces/ILinksTriangle.js"], factory);
22
22
  }
23
23
  })(function (require, exports) {
24
24
  "use strict";
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.loadParticlesLinksInteraction = void 0;
27
- const interaction_1 = require("./interaction");
28
- const plugin_1 = require("./plugin");
29
- async function loadParticlesLinksInteraction(engine) {
30
- await (0, interaction_1.loadInteraction)(engine);
31
- await (0, plugin_1.loadPlugin)(engine);
27
+ const interaction_js_1 = require("./interaction.js");
28
+ const plugin_js_1 = require("./plugin.js");
29
+ async function loadParticlesLinksInteraction(engine, refresh = true) {
30
+ await (0, interaction_js_1.loadLinksInteraction)(engine, refresh);
31
+ await (0, plugin_js_1.loadLinksPlugin)(engine, refresh);
32
32
  }
33
33
  exports.loadParticlesLinksInteraction = loadParticlesLinksInteraction;
34
- __exportStar(require("./Options/Classes/Links"), exports);
35
- __exportStar(require("./Options/Classes/LinksShadow"), exports);
36
- __exportStar(require("./Options/Classes/LinksTriangle"), exports);
37
- __exportStar(require("./Options/Interfaces/ILinks"), exports);
38
- __exportStar(require("./Options/Interfaces/ILinksShadow"), exports);
39
- __exportStar(require("./Options/Interfaces/ILinksTriangle"), exports);
34
+ __exportStar(require("./Options/Classes/Links.js"), exports);
35
+ __exportStar(require("./Options/Classes/LinksShadow.js"), exports);
36
+ __exportStar(require("./Options/Classes/LinksTriangle.js"), exports);
37
+ __exportStar(require("./Options/Interfaces/ILinks.js"), exports);
38
+ __exportStar(require("./Options/Interfaces/ILinksShadow.js"), exports);
39
+ __exportStar(require("./Options/Interfaces/ILinksTriangle.js"), exports);
40
40
  });
@@ -4,15 +4,15 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./Linker"], factory);
7
+ define(["require", "exports", "./Linker.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.loadInteraction = void 0;
13
- const Linker_1 = require("./Linker");
14
- async function loadInteraction(engine) {
15
- await engine.addInteractor("particlesLinks", (container) => new Linker_1.Linker(container));
12
+ exports.loadLinksInteraction = void 0;
13
+ const Linker_js_1 = require("./Linker.js");
14
+ async function loadLinksInteraction(engine, refresh = true) {
15
+ await engine.addInteractor("particlesLinks", (container) => new Linker_js_1.Linker(container), refresh);
16
16
  }
17
- exports.loadInteraction = loadInteraction;
17
+ exports.loadLinksInteraction = loadLinksInteraction;
18
18
  });
package/umd/plugin.js CHANGED
@@ -4,19 +4,19 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./LinkInstance"], factory);
7
+ define(["require", "exports", "./LinkInstance.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.loadPlugin = void 0;
13
- const LinkInstance_1 = require("./LinkInstance");
12
+ exports.loadLinksPlugin = void 0;
13
+ const LinkInstance_js_1 = require("./LinkInstance.js");
14
14
  class LinksPlugin {
15
15
  constructor() {
16
16
  this.id = "links";
17
17
  }
18
18
  getPlugin(container) {
19
- return new LinkInstance_1.LinkInstance(container);
19
+ return new LinkInstance_js_1.LinkInstance(container);
20
20
  }
21
21
  loadOptions() {
22
22
  }
@@ -24,9 +24,9 @@
24
24
  return true;
25
25
  }
26
26
  }
27
- async function loadPlugin(engine) {
27
+ async function loadLinksPlugin(engine, refresh = true) {
28
28
  const plugin = new LinksPlugin();
29
- await engine.addPlugin(plugin);
29
+ await engine.addPlugin(plugin, refresh);
30
30
  }
31
- exports.loadPlugin = loadPlugin;
31
+ exports.loadLinksPlugin = loadLinksPlugin;
32
32
  });
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/esm/ILink.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
package/types/ILink.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { LinkParticle } from "./LinkParticle";
2
- export interface ILink {
3
- destination: LinkParticle;
4
- opacity: number;
5
- }
6
- export interface ILinkTriangle {
7
- opacity: number;
8
- vertices: LinkParticle[];
9
- }
@@ -1,7 +0,0 @@
1
- import type { Container, IRgb } from "@tsparticles/engine";
2
- export type LinkContainer = Container & {
3
- particles: {
4
- linksColor?: IRgb | string;
5
- linksColors: Map<string, IRgb | string | undefined>;
6
- };
7
- };
@@ -1,11 +0,0 @@
1
- import type { ILink } from "./ILink";
2
- import type { Particle } from "@tsparticles/engine";
3
- import type { ParticlesLinkOptions } from "./Options/Classes/ParticlesLinkOptions";
4
- export type LinkParticle = Particle & {
5
- links?: ILink[];
6
- options: ParticlesLinkOptions;
7
- retina: {
8
- linksDistance?: number;
9
- linksWidth?: number;
10
- };
11
- };
@@ -1,5 +0,0 @@
1
- import type { Links } from "./Links";
2
- import type { ParticlesOptions } from "@tsparticles/engine";
3
- export type ParticlesLinkOptions = ParticlesOptions & {
4
- links?: Links;
5
- };
@@ -1,7 +0,0 @@
1
- import type { ILinks } from "./ILinks";
2
- import type { IParticlesOptions } from "@tsparticles/engine";
3
- export type IParticlesLinkOptions = IParticlesOptions & {
4
- lineLinked?: ILinks;
5
- line_linked?: ILinks;
6
- links?: ILinks;
7
- };
@@ -1,12 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- });
@@ -1,12 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- });
@@ -1,12 +0,0 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- "use strict";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes