@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.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![npmjs](https://badge.fury.io/js/@tsparticles/shape-cards.svg)](https://www.npmjs.com/package/@tsparticles/shape-cards)
7
7
  [![npmjs](https://img.shields.io/npm/dt/@tsparticles/shape-cards)](https://www.npmjs.com/package/@tsparticles/shape-cards) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
8
8
 
9
- [tsParticles](https://github.com/matteobruni/tsparticles) additional cards shape.
9
+ [tsParticles](https://github.com/tsparticles/tsparticles) additional cards shape.
10
10
 
11
11
  ## How to use it
12
12
 
@@ -1,4 +1,4 @@
1
- import { drawPath, paths } from "./Utils";
1
+ import { drawPath, paths } from "./Utils.js";
2
2
  export class SpadeDrawer {
3
3
  draw(context, _particle, radius) {
4
4
  drawPath(context, radius, paths.spade);
package/browser/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ClubDrawer, DiamondDrawer, HeartDrawer, SpadeDrawer } from "./CardsSuitsDrawers";
1
+ import { ClubDrawer, DiamondDrawer, HeartDrawer, SpadeDrawer } from "./CardsSuitsDrawers.js";
2
2
  export async function loadCardsShape(engine, refresh = true) {
3
3
  await engine.addShape(["spade", "spades"], new SpadeDrawer(), refresh);
4
4
  await engine.addShape(["heart", "hearts"], new HeartDrawer(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClubDrawer = exports.DiamondDrawer = exports.HeartDrawer = exports.SpadeDrawer = void 0;
4
- const Utils_1 = require("./Utils");
4
+ const Utils_js_1 = require("./Utils.js");
5
5
  class SpadeDrawer {
6
6
  draw(context, _particle, radius) {
7
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.spade);
7
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.spade);
8
8
  }
9
9
  }
10
10
  exports.SpadeDrawer = SpadeDrawer;
11
11
  class HeartDrawer {
12
12
  draw(context, _particle, radius) {
13
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.heart);
13
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.heart);
14
14
  }
15
15
  }
16
16
  exports.HeartDrawer = HeartDrawer;
17
17
  class DiamondDrawer {
18
18
  draw(context, _particle, radius) {
19
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.diamond);
19
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.diamond);
20
20
  }
21
21
  }
22
22
  exports.DiamondDrawer = DiamondDrawer;
23
23
  class ClubDrawer {
24
24
  draw(context, _particle, radius) {
25
- (0, Utils_1.drawPath)(context, radius, Utils_1.paths.club);
25
+ (0, Utils_js_1.drawPath)(context, radius, Utils_js_1.paths.club);
26
26
  }
27
27
  }
28
28
  exports.ClubDrawer = ClubDrawer;
package/cjs/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadCardsShape = void 0;
4
- const CardsSuitsDrawers_1 = require("./CardsSuitsDrawers");
4
+ const CardsSuitsDrawers_js_1 = require("./CardsSuitsDrawers.js");
5
5
  async function loadCardsShape(engine, refresh = true) {
6
- await engine.addShape(["spade", "spades"], new CardsSuitsDrawers_1.SpadeDrawer(), refresh);
7
- await engine.addShape(["heart", "hearts"], new CardsSuitsDrawers_1.HeartDrawer(), refresh);
8
- await engine.addShape(["diamond", "diamonds"], new CardsSuitsDrawers_1.DiamondDrawer(), refresh);
9
- await engine.addShape(["club", "clubs"], new CardsSuitsDrawers_1.ClubDrawer(), refresh);
6
+ await engine.addShape(["spade", "spades"], new CardsSuitsDrawers_js_1.SpadeDrawer(), refresh);
7
+ await engine.addShape(["heart", "hearts"], new CardsSuitsDrawers_js_1.HeartDrawer(), refresh);
8
+ await engine.addShape(["diamond", "diamonds"], new CardsSuitsDrawers_js_1.DiamondDrawer(), refresh);
9
+ await engine.addShape(["club", "clubs"], new CardsSuitsDrawers_js_1.ClubDrawer(), refresh);
10
10
  }
11
11
  exports.loadCardsShape = loadCardsShape;
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
@@ -1,4 +1,4 @@
1
- import { drawPath, paths } from "./Utils";
1
+ import { drawPath, paths } from "./Utils.js";
2
2
  export class SpadeDrawer {
3
3
  draw(context, _particle, radius) {
4
4
  drawPath(context, radius, paths.spade);
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ClubDrawer, DiamondDrawer, HeartDrawer, SpadeDrawer } from "./CardsSuitsDrawers";
1
+ import { ClubDrawer, DiamondDrawer, HeartDrawer, SpadeDrawer } from "./CardsSuitsDrawers.js";
2
2
  export async function loadCardsShape(engine, refresh = true) {
3
3
  await engine.addShape(["spade", "spades"], new SpadeDrawer(), refresh);
4
4
  await engine.addShape(["heart", "hearts"], new HeartDrawer(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/shape-cards",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "tsParticles cards shape",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/matteobruni/tsparticles.git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
9
  "directory": "shapes/cards"
10
10
  },
11
11
  "keywords": [
@@ -65,7 +65,7 @@
65
65
  "author": "Matteo Bruni <matteo.bruni@me.com>",
66
66
  "license": "MIT",
67
67
  "bugs": {
68
- "url": "https://github.com/matteobruni/tsparticles/issues"
68
+ "url": "https://github.com/tsparticles/tsparticles/issues"
69
69
  },
70
70
  "funding": [
71
71
  {
@@ -81,14 +81,26 @@
81
81
  "url": "https://www.buymeacoffee.com/matteobruni"
82
82
  }
83
83
  ],
84
- "main": "cjs/index.js",
84
+ "sideEffects": false,
85
85
  "jsdelivr": "tsparticles.shape.cards.min.js",
86
86
  "unpkg": "tsparticles.shape.cards.min.js",
87
+ "browser": "browser/index.js",
88
+ "main": "cjs/index.js",
87
89
  "module": "esm/index.js",
88
90
  "types": "types/index.d.ts",
89
- "sideEffects": false,
91
+ "exports": {
92
+ ".": {
93
+ "types": "./types/index.d.ts",
94
+ "browser": "./browser/index.js",
95
+ "import": "./esm/index.js",
96
+ "require": "./cjs/index.js",
97
+ "umd": "./umd/index.js",
98
+ "default": "./cjs/index.js"
99
+ },
100
+ "./package.json": "./package.json"
101
+ },
90
102
  "dependencies": {
91
- "@tsparticles/engine": "^3.0.0-beta.0"
103
+ "@tsparticles/engine": "^3.0.0-beta.2"
92
104
  },
93
105
  "publishConfig": {
94
106
  "access": "public"