Comparing version 3.4.1 to 3.4.2
{ | ||
"name": "demrec", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "Demo Recorder Renderer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -187,3 +187,3 @@ let fs = require('fs') | ||
.replaceAll('%TIME%', util.getTickTime(a.ticks[1] - a.ticks[0])) | ||
.replace(/%TIME\[(.*?)\]%/g, (_, b) => util.getTickTime(a.ticks[1] - a.ticks[0]) + Number(b)) | ||
.replace(/%TIME\[(.*?)\]%/g, (_, b) => util.getTickTime(a.ticks[1] - a.ticks[0], Number(b))) | ||
.replaceAll('%TIME_START%', util.getTickTime(a.padding)) | ||
@@ -190,0 +190,0 @@ .replaceAll('%TIME_END%', util.getTickTime(a.ticks[1] - a.ticks[0] - a.padding)) |
@@ -121,4 +121,4 @@ let fs = require('fs') | ||
}, | ||
getTickTime (ticks) { | ||
return this.formatTime(ticks / (200 / 3) * 1000) | ||
getTickTime (ticks, add = 0) { | ||
return this.formatTime((ticks / (200 / 3) + add) * 1000) | ||
}, | ||
@@ -125,0 +125,0 @@ formatTime (ms, decimals = 3) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26380