@tsparticles/plugin-polygon-mask 4.0.0-alpha.5 → 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.
@@ -1 +1 @@
1
- /*! tsParticles Polygon Mask Plugin v4.0.0-alpha.5 by Matteo Bruni */
1
+ /*! tsParticles Polygon Mask Plugin v4.0.0-alpha.8 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Polygon Mask Plugin v4.0.0-alpha.5 by Matteo Bruni */
1
+ /*! tsParticles Polygon Mask Plugin v4.0.0-alpha.8 by Matteo Bruni */
package/browser/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadPolygonMaskPlugin(engine) {
2
- engine.checkVersion("4.0.0-alpha.5");
2
+ engine.checkVersion("4.0.0-alpha.8");
3
3
  await engine.register(async (e) => {
4
4
  const { PolygonMaskPlugin } = await import("./PolygonMaskPlugin.js");
5
5
  e.addPlugin(new PolygonMaskPlugin(engine));
@@ -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 (command == window.SVGPathSeg.PATHSEG_MOVETO_ABS ||
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,5 +1,5 @@
1
1
  export async function loadPolygonMaskPlugin(engine) {
2
- engine.checkVersion("4.0.0-alpha.5");
2
+ engine.checkVersion("4.0.0-alpha.8");
3
3
  await engine.register(async (e) => {
4
4
  const { PolygonMaskPlugin } = await import("./PolygonMaskPlugin.js");
5
5
  e.addPlugin(new PolygonMaskPlugin(engine));
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 (command == window.SVGPathSeg.PATHSEG_MOVETO_ABS ||
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++;
@@ -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
- * v4.0.0-alpha.5
7
+ * v4.0.0-alpha.8
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -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
- * v4.0.0-alpha.5
7
+ * v4.0.0-alpha.8
8
8
  */
9
9
  "use strict";
10
10
  /*
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadPolygonMaskPlugin(engine) {
2
- engine.checkVersion("4.0.0-alpha.5");
2
+ engine.checkVersion("4.0.0-alpha.8");
3
3
  await engine.register(async (e) => {
4
4
  const { PolygonMaskPlugin } = await import("./PolygonMaskPlugin.js");
5
5
  e.addPlugin(new PolygonMaskPlugin(engine));
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 (command == window.SVGPathSeg.PATHSEG_MOVETO_ABS ||
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.5",
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.5"
91
+ "@tsparticles/engine": "4.0.0-alpha.8"
92
92
  },
93
93
  "publishConfig": {
94
94
  "access": "public"