@tsparticles/plugin-polygon-mask 4.0.0-alpha.4 → 4.0.0-alpha.8
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/37.min.js.LICENSE.txt +1 -1
- package/602.min.js.LICENSE.txt +1 -1
- package/browser/index.js +3 -3
- package/browser/pathseg.js +5 -15
- package/cjs/index.js +3 -3
- package/cjs/pathseg.js +5 -15
- package/dist_browser_PolygonMaskInstance_js.js +1 -1
- package/dist_browser_PolygonMaskPlugin_js.js +1 -1
- package/esm/index.js +3 -3
- package/esm/pathseg.js +5 -15
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.plugin.polygon-mask.js +2 -2
- package/tsparticles.plugin.polygon-mask.min.js +1 -1
- package/tsparticles.plugin.polygon-mask.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/index.js +3 -3
- package/umd/pathseg.js +5 -15
package/37.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Polygon Mask Plugin v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Polygon Mask Plugin v4.0.0-alpha.8 by Matteo Bruni */
|
package/602.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Polygon Mask Plugin v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Polygon Mask Plugin v4.0.0-alpha.8 by Matteo Bruni */
|
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadPolygonMaskPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadPolygonMaskPlugin(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { PolygonMaskPlugin } = await import("./PolygonMaskPlugin.js");
|
|
5
5
|
e.addPlugin(new PolygonMaskPlugin(engine));
|
|
6
6
|
});
|
package/browser/pathseg.js
CHANGED
|
@@ -1166,11 +1166,7 @@
|
|
|
1166
1166
|
Source.prototype._isCurrentSpace = function () {
|
|
1167
1167
|
const character = this._string[this._currentIndex];
|
|
1168
1168
|
return (character <= " " &&
|
|
1169
|
-
(character == " " ||
|
|
1170
|
-
character == "\n" ||
|
|
1171
|
-
character == "\t" ||
|
|
1172
|
-
character == "\r" ||
|
|
1173
|
-
character == "\f"));
|
|
1169
|
+
(character == " " || character == "\n" || character == "\t" || character == "\r" || character == "\f"));
|
|
1174
1170
|
};
|
|
1175
1171
|
Source.prototype._skipOptionalSpaces = function () {
|
|
1176
1172
|
while (this._currentIndex < this._endIndex && this._isCurrentSpace())
|
|
@@ -1243,10 +1239,7 @@
|
|
|
1243
1239
|
}
|
|
1244
1240
|
};
|
|
1245
1241
|
Source.prototype._nextCommandHelper = function (lookahead, previousCommand) {
|
|
1246
|
-
if ((lookahead == "+" ||
|
|
1247
|
-
lookahead == "-" ||
|
|
1248
|
-
lookahead == "." ||
|
|
1249
|
-
(lookahead >= "0" && lookahead <= "9")) &&
|
|
1242
|
+
if ((lookahead == "+" || lookahead == "-" || lookahead == "." || (lookahead >= "0" && lookahead <= "9")) &&
|
|
1250
1243
|
previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {
|
|
1251
1244
|
if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS)
|
|
1252
1245
|
return window.SVGPathSeg.PATHSEG_LINETO_ABS;
|
|
@@ -1260,8 +1253,7 @@
|
|
|
1260
1253
|
if (!this.hasMoreData())
|
|
1261
1254
|
return true;
|
|
1262
1255
|
const command = this.peekSegmentType();
|
|
1263
|
-
return
|
|
1264
|
-
command == window.SVGPathSeg.PATHSEG_MOVETO_REL);
|
|
1256
|
+
return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;
|
|
1265
1257
|
};
|
|
1266
1258
|
Source.prototype._parseNumber = function () {
|
|
1267
1259
|
let exponent = 0;
|
|
@@ -1279,8 +1271,7 @@
|
|
|
1279
1271
|
sign = -1;
|
|
1280
1272
|
}
|
|
1281
1273
|
if (this._currentIndex == this._endIndex ||
|
|
1282
|
-
((this._string.charAt(this._currentIndex) < "0" ||
|
|
1283
|
-
this._string.charAt(this._currentIndex) > "9") &&
|
|
1274
|
+
((this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") &&
|
|
1284
1275
|
this._string.charAt(this._currentIndex) != "."))
|
|
1285
1276
|
return undefined;
|
|
1286
1277
|
const startIntPartIndex = this._currentIndex;
|
|
@@ -1312,8 +1303,7 @@
|
|
|
1312
1303
|
}
|
|
1313
1304
|
if (this._currentIndex != startIndex &&
|
|
1314
1305
|
this._currentIndex + 1 < this._endIndex &&
|
|
1315
|
-
(this._string.charAt(this._currentIndex) == "e" ||
|
|
1316
|
-
this._string.charAt(this._currentIndex) == "E") &&
|
|
1306
|
+
(this._string.charAt(this._currentIndex) == "e" || this._string.charAt(this._currentIndex) == "E") &&
|
|
1317
1307
|
this._string.charAt(this._currentIndex + 1) != "x" &&
|
|
1318
1308
|
this._string.charAt(this._currentIndex + 1) != "m") {
|
|
1319
1309
|
this._currentIndex++;
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadPolygonMaskPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadPolygonMaskPlugin(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { PolygonMaskPlugin } = await import("./PolygonMaskPlugin.js");
|
|
5
5
|
e.addPlugin(new PolygonMaskPlugin(engine));
|
|
6
6
|
});
|
package/cjs/pathseg.js
CHANGED
|
@@ -1165,11 +1165,7 @@
|
|
|
1165
1165
|
Source.prototype._isCurrentSpace = function () {
|
|
1166
1166
|
const character = this._string[this._currentIndex];
|
|
1167
1167
|
return (character <= " " &&
|
|
1168
|
-
(character == " " ||
|
|
1169
|
-
character == "\n" ||
|
|
1170
|
-
character == "\t" ||
|
|
1171
|
-
character == "\r" ||
|
|
1172
|
-
character == "\f"));
|
|
1168
|
+
(character == " " || character == "\n" || character == "\t" || character == "\r" || character == "\f"));
|
|
1173
1169
|
};
|
|
1174
1170
|
Source.prototype._skipOptionalSpaces = function () {
|
|
1175
1171
|
while (this._currentIndex < this._endIndex && this._isCurrentSpace())
|
|
@@ -1242,10 +1238,7 @@
|
|
|
1242
1238
|
}
|
|
1243
1239
|
};
|
|
1244
1240
|
Source.prototype._nextCommandHelper = function (lookahead, previousCommand) {
|
|
1245
|
-
if ((lookahead == "+" ||
|
|
1246
|
-
lookahead == "-" ||
|
|
1247
|
-
lookahead == "." ||
|
|
1248
|
-
(lookahead >= "0" && lookahead <= "9")) &&
|
|
1241
|
+
if ((lookahead == "+" || lookahead == "-" || lookahead == "." || (lookahead >= "0" && lookahead <= "9")) &&
|
|
1249
1242
|
previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {
|
|
1250
1243
|
if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS)
|
|
1251
1244
|
return window.SVGPathSeg.PATHSEG_LINETO_ABS;
|
|
@@ -1259,8 +1252,7 @@
|
|
|
1259
1252
|
if (!this.hasMoreData())
|
|
1260
1253
|
return true;
|
|
1261
1254
|
const command = this.peekSegmentType();
|
|
1262
|
-
return
|
|
1263
|
-
command == window.SVGPathSeg.PATHSEG_MOVETO_REL);
|
|
1255
|
+
return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;
|
|
1264
1256
|
};
|
|
1265
1257
|
Source.prototype._parseNumber = function () {
|
|
1266
1258
|
let exponent = 0;
|
|
@@ -1278,8 +1270,7 @@
|
|
|
1278
1270
|
sign = -1;
|
|
1279
1271
|
}
|
|
1280
1272
|
if (this._currentIndex == this._endIndex ||
|
|
1281
|
-
((this._string.charAt(this._currentIndex) < "0" ||
|
|
1282
|
-
this._string.charAt(this._currentIndex) > "9") &&
|
|
1273
|
+
((this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") &&
|
|
1283
1274
|
this._string.charAt(this._currentIndex) != "."))
|
|
1284
1275
|
return undefined;
|
|
1285
1276
|
const startIntPartIndex = this._currentIndex;
|
|
@@ -1311,8 +1302,7 @@
|
|
|
1311
1302
|
}
|
|
1312
1303
|
if (this._currentIndex != startIndex &&
|
|
1313
1304
|
this._currentIndex + 1 < this._endIndex &&
|
|
1314
|
-
(this._string.charAt(this._currentIndex) == "e" ||
|
|
1315
|
-
this._string.charAt(this._currentIndex) == "E") &&
|
|
1305
|
+
(this._string.charAt(this._currentIndex) == "e" || this._string.charAt(this._currentIndex) == "E") &&
|
|
1316
1306
|
this._string.charAt(this._currentIndex + 1) != "x" &&
|
|
1317
1307
|
this._string.charAt(this._currentIndex + 1) != "m") {
|
|
1318
1308
|
this._currentIndex++;
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadPolygonMaskPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadPolygonMaskPlugin(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { PolygonMaskPlugin } = await import("./PolygonMaskPlugin.js");
|
|
5
5
|
e.addPlugin(new PolygonMaskPlugin(engine));
|
|
6
6
|
});
|
package/esm/pathseg.js
CHANGED
|
@@ -1166,11 +1166,7 @@
|
|
|
1166
1166
|
Source.prototype._isCurrentSpace = function () {
|
|
1167
1167
|
const character = this._string[this._currentIndex];
|
|
1168
1168
|
return (character <= " " &&
|
|
1169
|
-
(character == " " ||
|
|
1170
|
-
character == "\n" ||
|
|
1171
|
-
character == "\t" ||
|
|
1172
|
-
character == "\r" ||
|
|
1173
|
-
character == "\f"));
|
|
1169
|
+
(character == " " || character == "\n" || character == "\t" || character == "\r" || character == "\f"));
|
|
1174
1170
|
};
|
|
1175
1171
|
Source.prototype._skipOptionalSpaces = function () {
|
|
1176
1172
|
while (this._currentIndex < this._endIndex && this._isCurrentSpace())
|
|
@@ -1243,10 +1239,7 @@
|
|
|
1243
1239
|
}
|
|
1244
1240
|
};
|
|
1245
1241
|
Source.prototype._nextCommandHelper = function (lookahead, previousCommand) {
|
|
1246
|
-
if ((lookahead == "+" ||
|
|
1247
|
-
lookahead == "-" ||
|
|
1248
|
-
lookahead == "." ||
|
|
1249
|
-
(lookahead >= "0" && lookahead <= "9")) &&
|
|
1242
|
+
if ((lookahead == "+" || lookahead == "-" || lookahead == "." || (lookahead >= "0" && lookahead <= "9")) &&
|
|
1250
1243
|
previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {
|
|
1251
1244
|
if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS)
|
|
1252
1245
|
return window.SVGPathSeg.PATHSEG_LINETO_ABS;
|
|
@@ -1260,8 +1253,7 @@
|
|
|
1260
1253
|
if (!this.hasMoreData())
|
|
1261
1254
|
return true;
|
|
1262
1255
|
const command = this.peekSegmentType();
|
|
1263
|
-
return
|
|
1264
|
-
command == window.SVGPathSeg.PATHSEG_MOVETO_REL);
|
|
1256
|
+
return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;
|
|
1265
1257
|
};
|
|
1266
1258
|
Source.prototype._parseNumber = function () {
|
|
1267
1259
|
let exponent = 0;
|
|
@@ -1279,8 +1271,7 @@
|
|
|
1279
1271
|
sign = -1;
|
|
1280
1272
|
}
|
|
1281
1273
|
if (this._currentIndex == this._endIndex ||
|
|
1282
|
-
((this._string.charAt(this._currentIndex) < "0" ||
|
|
1283
|
-
this._string.charAt(this._currentIndex) > "9") &&
|
|
1274
|
+
((this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") &&
|
|
1284
1275
|
this._string.charAt(this._currentIndex) != "."))
|
|
1285
1276
|
return undefined;
|
|
1286
1277
|
const startIntPartIndex = this._currentIndex;
|
|
@@ -1312,8 +1303,7 @@
|
|
|
1312
1303
|
}
|
|
1313
1304
|
if (this._currentIndex != startIndex &&
|
|
1314
1305
|
this._currentIndex + 1 < this._endIndex &&
|
|
1315
|
-
(this._string.charAt(this._currentIndex) == "e" ||
|
|
1316
|
-
this._string.charAt(this._currentIndex) == "E") &&
|
|
1306
|
+
(this._string.charAt(this._currentIndex) == "e" || this._string.charAt(this._currentIndex) == "E") &&
|
|
1317
1307
|
this._string.charAt(this._currentIndex + 1) != "x" &&
|
|
1318
1308
|
this._string.charAt(this._currentIndex + 1) != "m") {
|
|
1319
1309
|
this._currentIndex++;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-polygon-mask",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"description": "tsParticles polygon mask plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"./package.json": "./package.json"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
91
|
+
"@tsparticles/engine": "4.0.0-alpha.8"
|
|
92
92
|
},
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|