mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 05:31:15 -07:00
Update cloudinary to 1.20.0
This commit is contained in:
parent
1c56d9c513
commit
2984629b39
27 changed files with 2865 additions and 923 deletions
|
@ -802,7 +802,7 @@ var slice = [].slice,
|
|||
function TextLayer(options) {
|
||||
var keys;
|
||||
TextLayer.__super__.constructor.call(this, options);
|
||||
keys = ["resourceType", "resourceType", "fontFamily", "fontSize", "fontWeight", "fontStyle", "textDecoration", "textAlign", "stroke", "letterSpacing", "lineSpacing", "text"];
|
||||
keys = ["resourceType", "resourceType", "fontFamily", "fontSize", "fontWeight", "fontStyle", "textDecoration", "textAlign", "stroke", "letterSpacing", "lineSpacing", "fontHinting", "fontAntialiasing", "text"];
|
||||
if (options != null) {
|
||||
keys.forEach((function(_this) {
|
||||
return function(key) {
|
||||
|
@ -871,6 +871,16 @@ var slice = [].slice,
|
|||
return this;
|
||||
};
|
||||
|
||||
TextLayer.prototype.fontAntialiasing = function(fontAntialiasing){
|
||||
this.options.fontAntialiasing = fontAntialiasing;
|
||||
return this;
|
||||
};
|
||||
|
||||
TextLayer.prototype.fontHinting = function(fontHinting ){
|
||||
this.options.fontHinting = fontHinting ;
|
||||
return this;
|
||||
};
|
||||
|
||||
TextLayer.prototype.text = function(text) {
|
||||
this.options.text = text;
|
||||
return this;
|
||||
|
@ -932,6 +942,12 @@ var slice = [].slice,
|
|||
if (!(Util.isEmpty(this.options.lineSpacing) && !Util.isNumberLike(this.options.lineSpacing))) {
|
||||
components.push("line_spacing_" + this.options.lineSpacing);
|
||||
}
|
||||
if (this.options.fontAntialiasing !== "none") {
|
||||
components.push("antialias_"+this.options.fontAntialiasing);
|
||||
}
|
||||
if (this.options.fontHinting !== "none") {
|
||||
components.push("hinting_"+this.options.fontHinting);
|
||||
}
|
||||
if (!Util.isEmpty(Util.compact(components))) {
|
||||
if (Util.isEmpty(this.options.fontFamily)) {
|
||||
throw "Must supply fontFamily. " + components;
|
||||
|
@ -2780,6 +2796,20 @@ var slice = [].slice,
|
|||
return this.param(value, "gravity", "g");
|
||||
};
|
||||
|
||||
Transformation.prototype.fps = function(value) {
|
||||
return this.param(value, "fps", "fps", (function(_this) {
|
||||
return function(fps) {
|
||||
if (Util.isString(fps)) {
|
||||
return fps;
|
||||
} else if (Util.isArray(fps)) {
|
||||
return fps.join("-");
|
||||
} else {
|
||||
return fps;
|
||||
}
|
||||
};
|
||||
})(this));
|
||||
};
|
||||
|
||||
Transformation.prototype.height = function(value) {
|
||||
return this.param(value, "height", "h", (function(_this) {
|
||||
return function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue