@tsparticles/shape-cards 4.0.0-beta.11 → 4.0.0-beta.15
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/browser/browser.js +5 -0
- package/browser/cards/index.js +3 -5
- package/browser/cards/index.lazy.js +9 -0
- package/browser/clubs/index.js +3 -5
- package/browser/clubs/index.lazy.js +9 -0
- package/browser/diamonds/index.js +3 -5
- package/browser/diamonds/index.lazy.js +9 -0
- package/browser/hearts/index.js +3 -5
- package/browser/hearts/index.lazy.js +9 -0
- package/browser/index.js +7 -13
- package/browser/index.lazy.js +13 -0
- package/browser/spades/index.js +3 -5
- package/browser/spades/index.lazy.js +9 -0
- package/browser/suits.js +11 -19
- package/browser/suits.lazy.js +15 -0
- package/cjs/browser.js +5 -0
- package/cjs/cards/index.js +3 -5
- package/cjs/cards/index.lazy.js +9 -0
- package/cjs/clubs/index.js +3 -5
- package/cjs/clubs/index.lazy.js +9 -0
- package/cjs/diamonds/index.js +3 -5
- package/cjs/diamonds/index.lazy.js +9 -0
- package/cjs/hearts/index.js +3 -5
- package/cjs/hearts/index.lazy.js +9 -0
- package/cjs/index.js +7 -13
- package/cjs/index.lazy.js +13 -0
- package/cjs/spades/index.js +3 -5
- package/cjs/spades/index.lazy.js +9 -0
- package/cjs/suits.js +11 -19
- package/cjs/suits.lazy.js +15 -0
- package/esm/browser.js +5 -0
- package/esm/cards/index.js +3 -5
- package/esm/cards/index.lazy.js +9 -0
- package/esm/clubs/index.js +3 -5
- package/esm/clubs/index.lazy.js +9 -0
- package/esm/diamonds/index.js +3 -5
- package/esm/diamonds/index.lazy.js +9 -0
- package/esm/hearts/index.js +3 -5
- package/esm/hearts/index.lazy.js +9 -0
- package/esm/index.js +7 -13
- package/esm/index.lazy.js +13 -0
- package/esm/spades/index.js +3 -5
- package/esm/spades/index.lazy.js +9 -0
- package/esm/suits.js +11 -19
- package/esm/suits.lazy.js +15 -0
- package/package.json +52 -3
- package/report.html +4949 -94
- package/tsparticles.shape.cards.js +381 -369
- package/tsparticles.shape.cards.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/cards/index.lazy.d.ts +2 -0
- package/types/clubs/index.lazy.d.ts +2 -0
- package/types/diamonds/index.lazy.d.ts +2 -0
- package/types/hearts/index.lazy.d.ts +2 -0
- package/types/index.d.ts +0 -2
- package/types/index.lazy.d.ts +2 -0
- package/types/spades/index.lazy.d.ts +2 -0
- package/types/suits.d.ts +0 -4
- package/types/suits.lazy.d.ts +2 -0
- package/192.min.js +0 -1
- package/558.min.js +0 -1
- package/676.min.js +0 -1
- package/712.min.js +0 -1
- package/855.min.js +0 -1
- package/dist_browser_cards_CardDrawer_js.js +0 -60
- package/dist_browser_clubs_ClubDrawer_js.js +0 -50
- package/dist_browser_diamonds_DiamondDrawer_js.js +0 -50
- package/dist_browser_hearts_HeartDrawer_js.js +0 -50
- package/dist_browser_spades_SpadeDrawer_js.js +0 -50
package/esm/suits.js
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
+
import { loadClubsSuitShape } from "./clubs/index.js";
|
|
2
|
+
import { loadDiamondsSuitShape } from "./diamonds/index.js";
|
|
3
|
+
import { loadHeartsSuitShape } from "./hearts/index.js";
|
|
4
|
+
import { loadSpadesSuitShape } from "./spades/index.js";
|
|
1
5
|
export async function loadCardSuitsShape(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
-
await
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
]);
|
|
10
|
-
await Promise.all([
|
|
11
|
-
loadClubsSuitShape(e),
|
|
12
|
-
loadDiamondsSuitShape(e),
|
|
13
|
-
loadHeartsSuitShape(e),
|
|
14
|
-
loadSpadesSuitShape(e),
|
|
15
|
-
]);
|
|
16
|
-
});
|
|
6
|
+
engine.checkVersion("4.0.0-beta.15");
|
|
7
|
+
await Promise.all([
|
|
8
|
+
loadClubsSuitShape(engine),
|
|
9
|
+
loadDiamondsSuitShape(engine),
|
|
10
|
+
loadHeartsSuitShape(engine),
|
|
11
|
+
loadSpadesSuitShape(engine),
|
|
12
|
+
]);
|
|
17
13
|
}
|
|
18
|
-
export * from "./clubs/index.js";
|
|
19
|
-
export * from "./diamonds/index.js";
|
|
20
|
-
export * from "./hearts/index.js";
|
|
21
|
-
export * from "./spades/index.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export async function loadCardSuitsShape(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-beta.15");
|
|
3
|
+
const [{ loadClubsSuitShape }, { loadDiamondsSuitShape }, { loadHeartsSuitShape }, { loadSpadesSuitShape }] = await Promise.all([
|
|
4
|
+
import("./clubs/index.lazy.js"),
|
|
5
|
+
import("./diamonds/index.lazy.js"),
|
|
6
|
+
import("./hearts/index.lazy.js"),
|
|
7
|
+
import("./spades/index.lazy.js"),
|
|
8
|
+
]);
|
|
9
|
+
await Promise.all([
|
|
10
|
+
loadClubsSuitShape(engine),
|
|
11
|
+
loadDiamondsSuitShape(engine),
|
|
12
|
+
loadHeartsSuitShape(engine),
|
|
13
|
+
loadSpadesSuitShape(engine),
|
|
14
|
+
]);
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/shape-cards",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.15",
|
|
4
4
|
"description": "tsParticles cards shape",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -96,6 +96,13 @@
|
|
|
96
96
|
"require": "./cjs/index.js",
|
|
97
97
|
"default": "./esm/index.js"
|
|
98
98
|
},
|
|
99
|
+
"./lazy": {
|
|
100
|
+
"types": "./types/index.lazy.d.ts",
|
|
101
|
+
"browser": "./browser/index.lazy.js",
|
|
102
|
+
"import": "./esm/index.lazy.js",
|
|
103
|
+
"require": "./cjs/index.lazy.js",
|
|
104
|
+
"default": "./esm/index.lazy.js"
|
|
105
|
+
},
|
|
99
106
|
"./cards": {
|
|
100
107
|
"types": "./types/cards/index.d.ts",
|
|
101
108
|
"browser": "./browser/cards/index.js",
|
|
@@ -103,6 +110,13 @@
|
|
|
103
110
|
"require": "./cjs/cards/index.js",
|
|
104
111
|
"default": "./esm/cards/index.js"
|
|
105
112
|
},
|
|
113
|
+
"./cards/lazy": {
|
|
114
|
+
"types": "./types/cards/index.lazy.d.ts",
|
|
115
|
+
"browser": "./browser/cards/index.lazy.js",
|
|
116
|
+
"import": "./esm/cards/index.lazy.js",
|
|
117
|
+
"require": "./cjs/cards/index.lazy.js",
|
|
118
|
+
"default": "./esm/cards/index.lazy.js"
|
|
119
|
+
},
|
|
106
120
|
"./clubs": {
|
|
107
121
|
"types": "./types/clubs/index.d.ts",
|
|
108
122
|
"browser": "./browser/clubs/index.js",
|
|
@@ -110,6 +124,13 @@
|
|
|
110
124
|
"require": "./cjs/clubs/index.js",
|
|
111
125
|
"default": "./esm/clubs/index.js"
|
|
112
126
|
},
|
|
127
|
+
"./clubs/lazy": {
|
|
128
|
+
"types": "./types/clubs/index.lazy.d.ts",
|
|
129
|
+
"browser": "./browser/clubs/index.lazy.js",
|
|
130
|
+
"import": "./esm/clubs/index.lazy.js",
|
|
131
|
+
"require": "./cjs/clubs/index.lazy.js",
|
|
132
|
+
"default": "./esm/clubs/index.lazy.js"
|
|
133
|
+
},
|
|
113
134
|
"./diamons": {
|
|
114
135
|
"types": "./types/diamons/index.d.ts",
|
|
115
136
|
"browser": "./browser/diamons/index.js",
|
|
@@ -117,6 +138,13 @@
|
|
|
117
138
|
"require": "./cjs/diamons/index.js",
|
|
118
139
|
"default": "./esm/diamons/index.js"
|
|
119
140
|
},
|
|
141
|
+
"./diamons/lazy": {
|
|
142
|
+
"types": "./types/diamons/index.lazy.d.ts",
|
|
143
|
+
"browser": "./browser/diamons/index.lazy.js",
|
|
144
|
+
"import": "./esm/diamons/index.lazy.js",
|
|
145
|
+
"require": "./cjs/diamons/index.lazy.js",
|
|
146
|
+
"default": "./esm/diamons/index.lazy.js"
|
|
147
|
+
},
|
|
120
148
|
"./hearts": {
|
|
121
149
|
"types": "./types/hearts/index.d.ts",
|
|
122
150
|
"browser": "./browser/hearts/index.js",
|
|
@@ -124,6 +152,13 @@
|
|
|
124
152
|
"require": "./cjs/hearts/index.js",
|
|
125
153
|
"default": "./esm/hearts/index.js"
|
|
126
154
|
},
|
|
155
|
+
"./hearts/lazy": {
|
|
156
|
+
"types": "./types/hearts/index.lazy.d.ts",
|
|
157
|
+
"browser": "./browser/hearts/index.lazy.js",
|
|
158
|
+
"import": "./esm/hearts/index.lazy.js",
|
|
159
|
+
"require": "./cjs/hearts/index.lazy.js",
|
|
160
|
+
"default": "./esm/hearts/index.lazy.js"
|
|
161
|
+
},
|
|
127
162
|
"./spades": {
|
|
128
163
|
"types": "./types/spades/index.d.ts",
|
|
129
164
|
"browser": "./browser/spades/index.js",
|
|
@@ -131,6 +166,13 @@
|
|
|
131
166
|
"require": "./cjs/spades/index.js",
|
|
132
167
|
"default": "./esm/spades/index.js"
|
|
133
168
|
},
|
|
169
|
+
"./spades/lazy": {
|
|
170
|
+
"types": "./types/spades/index.lazy.d.ts",
|
|
171
|
+
"browser": "./browser/spades/index.lazy.js",
|
|
172
|
+
"import": "./esm/spades/index.lazy.js",
|
|
173
|
+
"require": "./cjs/spades/index.lazy.js",
|
|
174
|
+
"default": "./esm/spades/index.lazy.js"
|
|
175
|
+
},
|
|
134
176
|
"./suits": {
|
|
135
177
|
"types": "./types/suits.d.ts",
|
|
136
178
|
"browser": "./browser/suits.js",
|
|
@@ -138,11 +180,18 @@
|
|
|
138
180
|
"require": "./cjs/suits.js",
|
|
139
181
|
"default": "./esm/suits.js"
|
|
140
182
|
},
|
|
183
|
+
"./suits/lazy": {
|
|
184
|
+
"types": "./types/suits.lazy.d.ts",
|
|
185
|
+
"browser": "./browser/suits.lazy.js",
|
|
186
|
+
"import": "./esm/suits.lazy.js",
|
|
187
|
+
"require": "./cjs/suits.lazy.js",
|
|
188
|
+
"default": "./esm/suits.lazy.js"
|
|
189
|
+
},
|
|
141
190
|
"./package.json": "./package.json"
|
|
142
191
|
},
|
|
143
192
|
"peerDependencies": {
|
|
144
|
-
"@tsparticles/engine": "4.0.0-beta.
|
|
145
|
-
"@tsparticles/path-utils": "4.0.0-beta.
|
|
193
|
+
"@tsparticles/engine": "4.0.0-beta.15",
|
|
194
|
+
"@tsparticles/path-utils": "4.0.0-beta.15"
|
|
146
195
|
},
|
|
147
196
|
"publishConfig": {
|
|
148
197
|
"access": "public"
|