remove some non standard lint rules

This commit is contained in:
JFH
2021-01-31 23:16:43 +01:00
parent e02fddb224
commit 47c365bf2a
298 changed files with 2110 additions and 29712 deletions

View File

@@ -91,7 +91,7 @@ exports[`use various parts of svg-edit > check tool_text #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -137,7 +137,7 @@ exports[`use various parts of svg-edit > check tool_clone #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -152,7 +152,7 @@ exports[`use various parts of svg-edit > check tool_clone #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -199,7 +199,7 @@ exports[`use various parts of svg-edit > check tool_italic #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -215,7 +215,7 @@ exports[`use various parts of svg-edit > check tool_italic #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -263,7 +263,7 @@ exports[`use various parts of svg-edit > check tool_bold #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -280,7 +280,7 @@ exports[`use various parts of svg-edit > check tool_bold #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -328,7 +328,7 @@ exports[`use various parts of svg-edit > check change color #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -345,7 +345,7 @@ exports[`use various parts of svg-edit > check change color #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -485,7 +485,7 @@ exports[`use various parts of svg-edit > check tool_star #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -502,7 +502,7 @@ exports[`use various parts of svg-edit > check tool_star #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -514,7 +514,7 @@ exports[`use various parts of svg-edit > check tool_star #0`] = `
</text>
<polygon
cx="407"
cy="45"
cy="60"
id="svg_3"
shape="star"
point="5"
@@ -525,7 +525,7 @@ exports[`use various parts of svg-edit > check tool_star #0`] = `
fill="#000000"
strokecolor="#000000"
strokeWidth="0"
points="407,31.666666666666664 410.1348546788932,40.68524269666695 419.68075355060205,40.87977340833403 412.0723014202408,46.64809063666639 414.83713669723295,55.78689325833263 407,50.333333333333336 399.16286330276705,55.78689325833263 401.9276985797592,46.64809063666639 394.31924644939795,40.87977340833404 403.8651453211068,40.68524269666695 407,31.666666666666664 410.1348546788932,40.68524269666695 "
points="407,46.666666666666664 410.1348546788932,55.68524269666695 419.68075355060205,55.87977340833403 412.0723014202408,61.64809063666639 414.83713669723295,70.78689325833264 407,65.33333333333333 399.16286330276705,70.78689325833264 401.9276985797592,61.64809063666639 394.31924644939795,55.87977340833404 403.8651453211068,55.68524269666695 407,46.666666666666664 410.1348546788932,55.68524269666695 "
stroke="#000000"
stroke-width="0"
>
@@ -576,7 +576,7 @@ exports[`use various parts of svg-edit > check tool_polygon #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -593,7 +593,7 @@ exports[`use various parts of svg-edit > check tool_polygon #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -605,7 +605,7 @@ exports[`use various parts of svg-edit > check tool_polygon #0`] = `
</text>
<polygon
cx="407"
cy="45"
cy="60"
id="svg_3"
shape="star"
point="5"
@@ -616,7 +616,7 @@ exports[`use various parts of svg-edit > check tool_polygon #0`] = `
fill="#000000"
strokecolor="#000000"
strokeWidth="0"
points="407,31.666666666666664 410.1348546788932,40.68524269666695 419.68075355060205,40.87977340833403 412.0723014202408,46.64809063666639 414.83713669723295,55.78689325833263 407,50.333333333333336 399.16286330276705,55.78689325833263 401.9276985797592,46.64809063666639 394.31924644939795,40.87977340833404 403.8651453211068,40.68524269666695 407,31.666666666666664 410.1348546788932,40.68524269666695 "
points="407,46.666666666666664 410.1348546788932,55.68524269666695 419.68075355060205,55.87977340833403 412.0723014202408,61.64809063666639 414.83713669723295,70.78689325833264 407,65.33333333333333 399.16286330276705,70.78689325833264 401.9276985797592,61.64809063666639 394.31924644939795,55.87977340833404 403.8651453211068,55.68524269666695 407,46.666666666666664 410.1348546788932,55.68524269666695 "
stroke="#000000"
stroke-width="0"
style="pointer-events:inherit"
@@ -625,7 +625,7 @@ exports[`use various parts of svg-edit > check tool_polygon #0`] = `
></polygon>
<polygon
cx="457"
cy="95"
cy="110"
id="svg_4"
shape="regularPoly"
sides="5"
@@ -634,7 +634,7 @@ exports[`use various parts of svg-edit > check tool_polygon #0`] = `
fill="#000000"
strokecolor="#000000"
strokeWidth="5"
points="462.6710053890136,95 458.7524370403971,100.39344662916632 452.4120602650961,98.33333333333333 452.4120602650961,91.66666666666667 458.7524370403971,89.60655337083368 462.6710053890136,95 "
points="462.6710053890136,110 458.7524370403971,115.39344662916632 452.4120602650961,113.33333333333333 452.4120602650961,106.66666666666667 458.7524370403971,104.60655337083368 462.6710053890136,110 "
stroke="#000000"
stroke-width="5"
>
@@ -684,7 +684,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_start #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -701,7 +701,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_start #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -713,7 +713,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_start #0`] = `
</text>
<polygon
cx="407"
cy="45"
cy="60"
id="svg_3"
shape="star"
point="5"
@@ -724,7 +724,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_start #0`] = `
fill="#000000"
strokecolor="#000000"
strokewidth="0"
points="407,31.666666666666664 410.1348546788932,40.68524269666695 419.68075355060205,40.87977340833403 412.0723014202408,46.64809063666639 414.83713669723295,55.78689325833263 407,50.333333333333336 399.16286330276705,55.78689325833263 401.9276985797592,46.64809063666639 394.31924644939795,40.87977340833404 403.8651453211068,40.68524269666695 407,31.666666666666664 410.1348546788932,40.68524269666695 "
points="407,46.666666666666664 410.1348546788932,55.68524269666695 419.68075355060205,55.87977340833403 412.0723014202408,61.64809063666639 414.83713669723295,70.78689325833264 407,65.33333333333333 399.16286330276705,70.78689325833264 401.9276985797592,61.64809063666639 394.31924644939795,55.87977340833404 403.8651453211068,55.68524269666695 407,46.666666666666664 410.1348546788932,55.68524269666695 "
stroke="#000000"
stroke-width="0"
fill-opacity="1"
@@ -732,7 +732,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_start #0`] = `
></polygon>
<polygon
cx="457"
cy="95"
cy="110"
id="svg_4"
shape="regularPoly"
sides="5"
@@ -741,15 +741,15 @@ exports[`use various parts of svg-edit > check tool_text_anchor_start #0`] = `
fill="#000000"
strokecolor="#000000"
strokewidth="5"
points="462.6710053890136,95 458.7524370403971,100.39344662916632 452.4120602650961,98.33333333333333 452.4120602650961,91.66666666666667 458.7524370403971,89.60655337083368 462.6710053890136,95 "
points="462.6710053890136,110 458.7524370403971,115.39344662916632 452.4120602650961,113.33333333333333 452.4120602650961,106.66666666666667 458.7524370403971,104.60655337083368 462.6710053890136,110 "
stroke="#000000"
stroke-width="5"
fill-opacity="1"
stroke-opacity="1"
></polygon>
<polygon
cx="116"
cy="78"
cx="115"
cy="79"
id="svg_5"
shape="regularPoly"
sides="5"
@@ -805,7 +805,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -822,7 +822,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -834,7 +834,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = `
</text>
<polygon
cx="407"
cy="45"
cy="60"
id="svg_3"
shape="star"
point="5"
@@ -845,7 +845,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = `
fill="#000000"
strokecolor="#000000"
strokewidth="0"
points="407,31.666666666666664 410.1348546788932,40.68524269666695 419.68075355060205,40.87977340833403 412.0723014202408,46.64809063666639 414.83713669723295,55.78689325833263 407,50.333333333333336 399.16286330276705,55.78689325833263 401.9276985797592,46.64809063666639 394.31924644939795,40.87977340833404 403.8651453211068,40.68524269666695 407,31.666666666666664 410.1348546788932,40.68524269666695 "
points="407,46.666666666666664 410.1348546788932,55.68524269666695 419.68075355060205,55.87977340833403 412.0723014202408,61.64809063666639 414.83713669723295,70.78689325833264 407,65.33333333333333 399.16286330276705,70.78689325833264 401.9276985797592,61.64809063666639 394.31924644939795,55.87977340833404 403.8651453211068,55.68524269666695 407,46.666666666666664 410.1348546788932,55.68524269666695 "
stroke="#000000"
stroke-width="0"
fill-opacity="1"
@@ -853,7 +853,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = `
></polygon>
<polygon
cx="457"
cy="95"
cy="110"
id="svg_4"
shape="regularPoly"
sides="5"
@@ -862,15 +862,15 @@ exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = `
fill="#000000"
strokecolor="#000000"
strokewidth="5"
points="462.6710053890136,95 458.7524370403971,100.39344662916632 452.4120602650961,98.33333333333333 452.4120602650961,91.66666666666667 458.7524370403971,89.60655337083368 462.6710053890136,95 "
points="462.6710053890136,110 458.7524370403971,115.39344662916632 452.4120602650961,113.33333333333333 452.4120602650961,106.66666666666667 458.7524370403971,104.60655337083368 462.6710053890136,110 "
stroke="#000000"
stroke-width="5"
fill-opacity="1"
stroke-opacity="1"
></polygon>
<polygon
cx="116"
cy="78"
cx="115"
cy="79"
id="svg_5"
shape="regularPoly"
sides="5"
@@ -884,8 +884,8 @@ exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = `
stroke="none"
></polygon>
<polygon
cx="116"
cy="78"
cx="115"
cy="79"
id="svg_6"
shape="regularPoly"
sides="5"
@@ -941,7 +941,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
y="87"
id="svg_1"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -958,7 +958,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
x="136"
y="107"
font-size="24"
font-family="Sans-serif"
font-family="Serif"
text-anchor="middle"
xml:space="preserve"
fill-opacity="1"
@@ -970,7 +970,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
</text>
<polygon
cx="407"
cy="45"
cy="60"
id="svg_3"
shape="star"
point="5"
@@ -981,7 +981,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
fill="#000000"
strokecolor="#000000"
strokewidth="0"
points="407,31.666666666666664 410.1348546788932,40.68524269666695 419.68075355060205,40.87977340833403 412.0723014202408,46.64809063666639 414.83713669723295,55.78689325833263 407,50.333333333333336 399.16286330276705,55.78689325833263 401.9276985797592,46.64809063666639 394.31924644939795,40.87977340833404 403.8651453211068,40.68524269666695 407,31.666666666666664 410.1348546788932,40.68524269666695 "
points="407,46.666666666666664 410.1348546788932,55.68524269666695 419.68075355060205,55.87977340833403 412.0723014202408,61.64809063666639 414.83713669723295,70.78689325833264 407,65.33333333333333 399.16286330276705,70.78689325833264 401.9276985797592,61.64809063666639 394.31924644939795,55.87977340833404 403.8651453211068,55.68524269666695 407,46.666666666666664 410.1348546788932,55.68524269666695 "
stroke="#000000"
stroke-width="0"
fill-opacity="1"
@@ -989,7 +989,7 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
></polygon>
<polygon
cx="457"
cy="95"
cy="110"
id="svg_4"
shape="regularPoly"
sides="5"
@@ -998,15 +998,15 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
fill="#000000"
strokecolor="#000000"
strokewidth="5"
points="462.6710053890136,95 458.7524370403971,100.39344662916632 452.4120602650961,98.33333333333333 452.4120602650961,91.66666666666667 458.7524370403971,89.60655337083368 462.6710053890136,95 "
points="462.6710053890136,110 458.7524370403971,115.39344662916632 452.4120602650961,113.33333333333333 452.4120602650961,106.66666666666667 458.7524370403971,104.60655337083368 462.6710053890136,110 "
stroke="#000000"
stroke-width="5"
fill-opacity="1"
stroke-opacity="1"
></polygon>
<polygon
cx="116"
cy="78"
cx="115"
cy="79"
id="svg_5"
shape="regularPoly"
sides="5"
@@ -1020,8 +1020,8 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
stroke="none"
></polygon>
<polygon
cx="116"
cy="78"
cx="115"
cy="79"
id="svg_6"
shape="regularPoly"
sides="5"
@@ -1035,8 +1035,8 @@ exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = `
stroke="none"
></polygon>
<polygon
cx="116"
cy="78"
cx="115"
cy="79"
id="svg_7"
shape="regularPoly"
sides="5"

View File

@@ -30,6 +30,6 @@ describe('Fix issue 407', function () {
.dblclick({force: true});
// svgedit use the #text text field to capture the text
cy.get('#text').type('1234', {force: true});
cy.get('#a_text').should('have.text', 'hell1234o');
cy.get('#a_text').should('have.text', 'he1234llo');
});
});

View File

@@ -211,7 +211,6 @@ describe('utilities performance', function () {
assert.isBelow(ave, 20, 'svgedit.utilities.getStrokedBBox average execution time is less than 20 ms');
console.log('Pass1 svgCanvas.getStrokedBBox total ms ' + total + ', ave ms ' + ave.toFixed(1) + ',\t min/max ' + min + ' ' + max);
// eslint-disable-next-line promise/avoid-new
return new Promise((resolve) => {
// The second pass is two to ten times faster.
setTimeout(function () {