Skip to content

Commit e9e045d

Browse files
committed
Updated changes according to ES Lint
1 parent 74b4b38 commit e9e045d

File tree

1 file changed

+78
-41
lines changed

1 file changed

+78
-41
lines changed

js/blockfactory.js

Lines changed: 78 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -967,16 +967,26 @@ class SVG {
967967
this.margins[3] = 0;
968968
const cacheKey =
969969
"bb|" +
970-
this._scale + "|" +
971-
this._expandX + "|" +
972-
this._expandY + "|" +
973-
(this._expandY2 || 0) + "|" +
974-
this._innies.join("") + "|" +
975-
(this._slot ? 1 : 0) + "|" +
976-
(this._tab ? 1 : 0) + "|" +
977-
(this._outie ? 1 : 0) + "|" +
978-
(this._bool ? 1 : 0) + "|" +
979-
(this._porch ? 1 : 0) + "|" +
970+
this._scale +
971+
"|" +
972+
this._expandX +
973+
"|" +
974+
this._expandY +
975+
"|" +
976+
(this._expandY2 || 0) +
977+
"|" +
978+
this._innies.join("") +
979+
"|" +
980+
(this._slot ? 1 : 0) +
981+
"|" +
982+
(this._tab ? 1 : 0) +
983+
"|" +
984+
(this._outie ? 1 : 0) +
985+
"|" +
986+
(this._bool ? 1 : 0) +
987+
"|" +
988+
(this._porch ? 1 : 0) +
989+
"|" +
980990
(this._tail ? 1 : 0);
981991

982992
if (__svgCache.has(cacheKey)) {
@@ -1159,10 +1169,10 @@ class SVG {
11591169
let svg = this._startBoolean(
11601170
this._strokeWidth / 2.0,
11611171
this._radius * 5.5 +
1162-
this._strokeWidth / 2.0 +
1163-
this._innieY2 +
1164-
this._inniesSpacer +
1165-
this._expandY
1172+
this._strokeWidth / 2.0 +
1173+
this._innieY2 +
1174+
this._inniesSpacer +
1175+
this._expandY
11661176
);
11671177
svg += this._rLineTo(
11681178
0,
@@ -1332,11 +1342,16 @@ class SVG {
13321342
const yoff = this._radius * 2;
13331343
const cacheKey =
13341344
"boolcmp|" +
1335-
this._scale + "|" +
1336-
this._expandX + "|" +
1337-
this._expandY + "|" +
1338-
(this._expandY2 || 0) + "|" +
1339-
this._innies.join("") + "|" +
1345+
this._scale +
1346+
"|" +
1347+
this._expandX +
1348+
"|" +
1349+
this._expandY +
1350+
"|" +
1351+
(this._expandY2 || 0) +
1352+
"|" +
1353+
this._innies.join("") +
1354+
"|" +
13401355
(this._porch ? 1 : 0);
13411356

13421357
if (__svgCache.has(cacheKey)) {
@@ -1452,18 +1467,30 @@ class SVG {
14521467
this.margins[3] = 0;
14531468
const cacheKey =
14541469
"bc|" +
1455-
this._scale + "|" +
1456-
this._expandX + "|" +
1457-
this._expandY + "|" +
1458-
(this._expandY2 || 0) + "|" +
1459-
this._innies.join("") + "|" +
1460-
(this._slot ? 1 : 0) + "|" +
1461-
(this._tab ? 1 : 0) + "|" +
1462-
(this._outie ? 1 : 0) + "|" +
1463-
(this._bool ? 1 : 0) + "|" +
1464-
this._clampCount + "|" +
1465-
JSON.stringify(this._clampSlots) + "|" +
1466-
(this._tail ? 1 : 0) + "|" +
1470+
this._scale +
1471+
"|" +
1472+
this._expandX +
1473+
"|" +
1474+
this._expandY +
1475+
"|" +
1476+
(this._expandY2 || 0) +
1477+
"|" +
1478+
this._innies.join("") +
1479+
"|" +
1480+
(this._slot ? 1 : 0) +
1481+
"|" +
1482+
(this._tab ? 1 : 0) +
1483+
"|" +
1484+
(this._outie ? 1 : 0) +
1485+
"|" +
1486+
(this._bool ? 1 : 0) +
1487+
"|" +
1488+
this._clampCount +
1489+
"|" +
1490+
JSON.stringify(this._clampSlots) +
1491+
"|" +
1492+
(this._tail ? 1 : 0) +
1493+
"|" +
14671494
(this._cap ? 1 : 0);
14681495

14691496
if (__svgCache.has(cacheKey)) {
@@ -1680,16 +1707,26 @@ class SVG {
16801707
this.margins[3] = 0;
16811708
const cacheKey =
16821709
"ac|" +
1683-
this._scale + "|" +
1684-
this._expandX + "|" +
1685-
this._expandY + "|" +
1686-
(this._expandY2 || 0) + "|" +
1687-
this._innies.join("") + "|" +
1688-
(this._slot ? 1 : 0) + "|" +
1689-
(this._tab ? 1 : 0) + "|" +
1690-
(this._outie ? 1 : 0) + "|" +
1691-
(this._bool ? 1 : 0) + "|" +
1692-
JSON.stringify(this._clampSlots) + "|" +
1710+
this._scale +
1711+
"|" +
1712+
this._expandX +
1713+
"|" +
1714+
this._expandY +
1715+
"|" +
1716+
(this._expandY2 || 0) +
1717+
"|" +
1718+
this._innies.join("") +
1719+
"|" +
1720+
(this._slot ? 1 : 0) +
1721+
"|" +
1722+
(this._tab ? 1 : 0) +
1723+
"|" +
1724+
(this._outie ? 1 : 0) +
1725+
"|" +
1726+
(this._bool ? 1 : 0) +
1727+
"|" +
1728+
JSON.stringify(this._clampSlots) +
1729+
"|" +
16931730
(this._tail ? 1 : 0);
16941731

16951732
if (__svgCache.has(cacheKey)) {

0 commit comments

Comments
 (0)