cloudinary-jquery-file-upload
Advanced tools
Comparing version 2.11.4 to 2.12.0
@@ -583,2 +583,3 @@ export as namespace cloudinary; | ||
text(value: string): TextLayer; | ||
textStyle(value: string): TextLayer; | ||
/** Getters */ | ||
@@ -604,2 +605,3 @@ toString(): string; | ||
text?: string; | ||
textStyle?: string; | ||
} | ||
@@ -606,0 +608,0 @@ } |
{ | ||
"name": "cloudinary-jquery-file-upload", | ||
"version": "2.11.4", | ||
"version": "2.12.0", | ||
"description": "Cloudinary Client Side JS library. Cloudinary streamlines your web application’s image manipulation needs. Cloudinary's cloud-based servers automate image uploading, resizing, cropping, optimizing, sprite generation and more. Cloudinary's jQuery File Upload plugin allows direct uploading from the browser to the cloud and dynamic cloud-based image transformations and effects.", | ||
@@ -5,0 +5,0 @@ "main": "cloudinary-jquery-file-upload.js", |
@@ -46,4 +46,8 @@ /** | ||
// predefined variables | ||
const predefinedVarsPattern = "(" + Object.keys(Expression.PREDEFINED_VARS).join("|") + ")"; | ||
// The :${v} part is to prevent normalization of vars with a preceding colon (such as :duration), | ||
// It won't be found in PREDEFINED_VARS and so won't be normalized. | ||
// It is done like this because ie11 does not support regex lookbehind | ||
const predefinedVarsPattern = "(" + Object.keys(Expression.PREDEFINED_VARS).map(v=>`:${v}|${v}`).join("|") + ")"; | ||
const userVariablePattern = '(\\$_*[^_ ]+)'; | ||
const variablesReplaceRE = new RegExp(`${userVariablePattern}|${predefinedVarsPattern}`, "g"); | ||
@@ -309,3 +313,2 @@ expression = expression.replace(variablesReplaceRE, (match) => (Expression.PREDEFINED_VARS[match] || match)); | ||
"currentPage": "cp", | ||
"preview:duration": "preview:duration", | ||
"duration": "du", | ||
@@ -312,0 +315,0 @@ "face_count": "fc", |
@@ -19,3 +19,3 @@ import Layer from './layer'; | ||
super(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) { | ||
@@ -102,2 +102,7 @@ keys.forEach((key) => { | ||
textStyle(textStyle) { | ||
this.options.textStyle = textStyle; | ||
return this; | ||
} | ||
/** | ||
@@ -137,2 +142,6 @@ * generate the string representation of the layer | ||
textStyleIdentifier() { | ||
// Note: if a text-style argument is provided as a whole, it overrides everything else, no mix and match. | ||
if (!isEmpty(this.options.textStyle)) { | ||
return this.options.textStyle; | ||
} | ||
var components; | ||
@@ -139,0 +148,0 @@ components = []; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
990102
13665