Update cloudinary==1.28.0

This commit is contained in:
JonnyWong16 2021-11-28 14:12:44 -08:00
parent 0325e9327f
commit dcfd8abddd
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
7 changed files with 196 additions and 21 deletions

View file

@ -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", "fontHinting", "fontAntialiasing", "text"];
keys = ["resourceType", "resourceType", "fontFamily", "fontSize", "fontWeight", "fontStyle", "textDecoration", "textAlign", "stroke", "letterSpacing", "lineSpacing", "fontHinting", "fontAntialiasing", "text", "textStyle"];
if (options != null) {
keys.forEach((function(_this) {
return function(key) {
@ -886,6 +886,11 @@ var slice = [].slice,
return this;
};
TextLayer.prototype.textStyle = function(textStyle) {
this.options.textStyle = textStyle;
return this;
};
/**
* generate the string representation of the layer
@ -921,6 +926,10 @@ var slice = [].slice,
};
TextLayer.prototype.textStyleIdentifier = function() {
// Note: if a text-style argument is provided as a whole, it overrides everything else, no mix and match.
if (!Util.isEmpty(this.options.textStyle)) {
return this.options.textStyle;
}
var components;
components = [];
if (this.options.fontWeight !== "normal") {