You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/subtitles-octopus.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ var SubtitlesOctopus = function (options) {
23
23
self.prescaleTradeoff=options.prescaleTradeoff||null;// render subtitles less than viewport when less than 1.0 to improve speed, render to more than 1.0 to improve quality; set to null to disable scaling
24
24
self.softHeightLimit=options.softHeightLimit||1080;// don't apply prescaleTradeoff < 1 when viewport height is less that this limit
25
25
self.hardHeightLimit=options.hardHeightLimit||2160;// don't ever go above this limit
26
+
self.resizeVariation=options.resizeVariation||0.2;// by how many a size can vary before it would cause clearance of prerendered buffer
26
27
27
28
self.renderAhead=options.renderAhead||0;// how many MiB to render ahead and store; 0 to disable (approximate)
28
29
self.isOurCanvas=false;// (internal) we created canvas and manage it
@@ -400,10 +401,10 @@ var SubtitlesOctopus = function (options) {
0 commit comments