Skip to content

Commit

Permalink
fix:lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvl01 committed Sep 27, 2021
1 parent b0a4813 commit 3d6ccad
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
push:
branches:
- master
- 'renovate/**'
- "renovate/**"

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const LetterScale = new Titles.LetterScale(
stroke: false,
strokeSize: 2,
strokeColor: "rebeccapurple",
fontFamily: "Righteous",
fontFamily: "Righteous"
},
{
selector: ".letterscale"
Expand Down Expand Up @@ -291,12 +291,12 @@ const CircularText = new Titles.CircularText(
fontSize: 10,
viewBox: 100,
path: 38,
fill: "#ff000000",
fill: "#ff000000",
fontFamily: "Righteous"
},
{
selector: ".circulartext",
repeats: 2,
repeats: 2
}
);

Expand Down
24 changes: 12 additions & 12 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,41 @@ module.exports = {
modules: [path.resolve("./"), "node_modules"],
fallback: {
fs: false,
path: require.resolve("path-browserify"),
},
path: require.resolve("path-browserify")
}
},
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "./"),
path: path.resolve(__dirname, "./")
},
mode: "development",
module: {
rules: [
{
test: /\.js?$/,
use: ["babel-loader"],
exclude: /node_modules/,
exclude: /node_modules/
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"],
use: ["style-loader", "css-loader"]
},
{
test: /\.svg$/,
loader: "svg-inline-loader",
loader: "svg-inline-loader"
},
{
test: /\.html$/i,
loader: "html-loader",
},
],
loader: "html-loader"
}
]
},
devServer: {
watchContentBase: true,
host: "0.0.0.0",
port: 8080,
historyApiFallback: false,
hot: false,
contentBase: "./demo",
},
};
contentBase: "./demo"
}
};
2 changes: 1 addition & 1 deletion src/incidents/CircularText.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class CircularText extends HTMLClip {
},
{
duration: 3000,
selector: ".circle svg",
selector: ".circle svg"
}
);
this.addIncident(left, 0);
Expand Down
10 changes: 2 additions & 8 deletions src/incidents/RolingText.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,8 @@ export default class RolingText extends HTMLClip {
const delayEnd = this.attrs.delayEnd || 0;

if (!this.attrs.stopOnLast) {
this.addIncident(
animeTextLeftBack,
4500 + delayEnd
);
this.addIncident(
animeLineHeightBack,
5550 + delayEnd
);
this.addIncident(animeTextLeftBack, 4500 + delayEnd);
this.addIncident(animeLineHeightBack, 5550 + delayEnd);
}
}
}
10 changes: 2 additions & 8 deletions src/incidents/RotatedLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,9 @@ export default class RotatedLine extends HTMLClip {
this.addIncident(rotateAminmeEnd, 450);
this.addIncident(leftTextAnimate, 900);
if (!this.attrs.stopOnLast) {
this.addIncident(
rightTextAnimateIn,
4200 + delayEnd
);
this.addIncident(rightTextAnimateIn, 4200 + delayEnd);
this.addIncident(leftTextAnimateIn, 4200 + delayEnd);
this.addIncident(
rotateAminmeStartOut,
5100 + delayEnd
);
this.addIncident(rotateAminmeStartOut, 5100 + delayEnd);
this.addIncident(widthLIneOut, 5550 + delayEnd);
}
}
Expand Down

0 comments on commit 3d6ccad

Please sign in to comment.