Skip to content

Commit

Permalink
0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhenye committed May 3, 2023
1 parent 0bbd7c3 commit 200363a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion dist/ass-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
fadeAwayHeight: param[4] * 1 || 0,
};
}
if (text !== '') {
return { name: text };
}
return null;
}

Expand Down Expand Up @@ -349,7 +352,10 @@
if (eff.name === 'banner') {
return ("Banner;" + (eff.delay) + ";" + (eff.leftToRight) + ";" + (eff.fadeAwayWidth));
}
return ((eff.name.replace(/^\w/, function (x) { return x.toUpperCase(); })) + ";" + (eff.y1) + ";" + (eff.y2) + ";" + (eff.delay) + ";" + (eff.fadeAwayHeight));
if (/^scroll\s/.test(eff.name)) {
return ((eff.name.replace(/^\w/, function (x) { return x.toUpperCase(); })) + ";" + (eff.y1) + ";" + (eff.y2) + ";" + (eff.delay) + ";" + (eff.fadeAwayHeight));
}
return eff.name;
}

function stringifyDrawing(drawing) {
Expand Down
Loading

0 comments on commit 200363a

Please sign in to comment.