@tsparticles/shape-cards 3.0.0-beta.0 → 3.0.0-beta.2

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.
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v3.0.0-beta.0
7
+ * v3.0.0-beta.2
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -1 +1 @@
1
- /*! tsParticles Cards Shape v3.0.0-beta.0 by Matteo Bruni */
1
+ /*! tsParticles Cards Shape v3.0.0-beta.2 by Matteo Bruni */
package/types/Utils.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { ICardsPath, IPath } from "./ICardsPath";
1
+ import type { ICardsPath, IPath } from "./ICardsPath.js";
2
2
  export declare function drawPath(ctx: CanvasRenderingContext2D, radius: number, path: IPath): void;
3
3
  export declare const paths: ICardsPath;
@@ -4,34 +4,34 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./Utils"], factory);
7
+ define(["require", "exports", "./Utils.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ClubDrawer = exports.DiamondDrawer = exports.HeartDrawer = exports.SpadeDrawer = void 0;
13
- const Utils_1 = require("./Utils");
13
+ const Utils_js_1 = require("./Utils.js");
14
14
  class SpadeDrawer {
15
15
  draw(context, _particle, radius) {
16
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.spade);
16
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.spade);
17
17
  }
18
18
  }
19
19
  exports.SpadeDrawer = SpadeDrawer;
20
20
  class HeartDrawer {
21
21
  draw(context, _particle, radius) {
22
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.heart);
22
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.heart);
23
23
  }
24
24
  }
25
25
  exports.HeartDrawer = HeartDrawer;
26
26
  class DiamondDrawer {
27
27
  draw(context, _particle, radius) {
28
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.diamond);
28
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.diamond);
29
29
  }
30
30
  }
31
31
  exports.DiamondDrawer = DiamondDrawer;
32
32
  class ClubDrawer {
33
33
  draw(context, _particle, radius) {
34
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.club);
34
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.club);
35
35
  }
36
36
  }
37
37
  exports.ClubDrawer = ClubDrawer;
package/umd/index.js CHANGED
@@ -4,18 +4,18 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./CardsSuitsDrawers"], factory);
7
+ define(["require", "exports", "./CardsSuitsDrawers.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.loadCardsShape = void 0;
13
- const CardsSuitsDrawers_1 = require("./CardsSuitsDrawers");
13
+ const CardsSuitsDrawers_js_1 = require("./CardsSuitsDrawers.js");
14
14
  async function loadCardsShape(engine, refresh = true) {
15
- await engine.addShape(["spade", "spades"], new CardsSuitsDrawers_1.SpadeDrawer(), refresh);
16
- await engine.addShape(["heart", "hearts"], new CardsSuitsDrawers_1.HeartDrawer(), refresh);
17
- await engine.addShape(["diamond", "diamonds"], new CardsSuitsDrawers_1.DiamondDrawer(), refresh);
18
- await engine.addShape(["club", "clubs"], new CardsSuitsDrawers_1.ClubDrawer(), refresh);
15
+ await engine.addShape(["spade", "spades"], new CardsSuitsDrawers_js_1.SpadeDrawer(), refresh);
16
+ await engine.addShape(["heart", "hearts"], new CardsSuitsDrawers_js_1.HeartDrawer(), refresh);
17
+ await engine.addShape(["diamond", "diamonds"], new CardsSuitsDrawers_js_1.DiamondDrawer(), refresh);
18
+ await engine.addShape(["club", "clubs"], new CardsSuitsDrawers_js_1.ClubDrawer(), refresh);
19
19
  }
20
20
  exports.loadCardsShape = loadCardsShape;
21
21
  });