mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 13:36:55 +00:00
Move the slowInSlowOut easing function into utils
This commit is contained in:
@@ -88,6 +88,10 @@ exports.extendDeepCopy = function(object,extendedProperties) {
|
||||
return result;
|
||||
};
|
||||
|
||||
exports.slowInSlowOut = function(t) {
|
||||
return (1 - ((Math.cos(t * Math.PI) + 1) / 2));
|
||||
};
|
||||
|
||||
exports.formatDateString = function (date,template) {
|
||||
var t = template.replace(/0hh12/g,$tw.utils.pad($tw.utils.getHours12(date)));
|
||||
t = t.replace(/hh12/g,$tw.utils.getHours12(date));
|
||||
|
||||
Reference in New Issue
Block a user