Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Commit 9d67a38

Browse files
author
Amir Tocker
committed
Version 2.6.3
1 parent a0a2cd5 commit 9d67a38

8 files changed

+566
-575
lines changed

cloudinary-core-shrinkwrap.js

Lines changed: 267 additions & 318 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core-shrinkwrap.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core-shrinkwrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudinary-core.d.ts

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class Transformation {
132132
* @return {string } Returns the transformation as a string
133133
*/
134134
serialize(): string;
135-
135+
136136
/**
137137
* Combines all propoerties from source transformation into this one
138138
* @param source transformation to copy
@@ -207,7 +207,8 @@ export class Transformation {
207207
streamingProfile(value: string): Transformation;
208208
transformation(value: string | Array<Transformation.Options>): Transformation; // Apply a pre-defined named transformation of the given name. When using Cloudinary's client integration libraries, the 'transformation' parameter accepts an array of transformation parameters to be chained together.
209209
underlay(value: string): Transformation; // public id of an uploaded image
210-
variables(value: [[string]]): Transformation;
210+
variable(name: string, value: any): Transformation;
211+
variables(value: Array<[string, any]>): Transformation;
211212
videoCodec(value: string | Object): Transformation; // Select the video codec and control the video content of the profile used. Can be provided in the form <codec>[:<profile>:[<level>]] to specify specific values to apply for video codec, profile and level, e.g. "h264:baseline:3.1". Also accepts a hash of values such as { codec: 'h264', profile: 'basic', level: '3.1' }
212213
videoSampling(value: number | string): Transformation; // Integer - The total number of frames to sample from the original video. String - The number of seconds between each frame to sample from the original video. e.g. 2.3s takes one frame every 2.3 seconds.
213214
width(value: string | number): Transformation; // Number of pixels, width % or "auto" with rounding step
@@ -222,10 +223,11 @@ export class Transformation {
222223
duration(value :number | string): Transformation; // Float or string
223224
endOffset(value: number | string): Transformation; // Float or string
224225
fallbackContent(value: string): Transformation;
226+
fps(value: string | Array<string|number>): Transformation;
225227
keyframeInterval(value: number): Transformation;
226228
offset(value: string): Transformation; // [float, float] or [string, string] or a range. Shortcut to set video cutting using a combination of start_offset and end_offset values
227229
poster(value: string | Object): Transformation;
228-
sourceType(value: string): Transformation;
230+
sourceTypes(value: string): Transformation;
229231
}
230232

231233
export class Condition {
@@ -313,7 +315,8 @@ export namespace Transformation {
313315
size?: string;
314316
transformation?: string | Array<Transformation.Options>; // Apply a pre-defined named transformation of the given name. When using Cloudinary's client integration libraries, the 'transformation' parameter accepts an array of transformation parameters to be chained together.
315317
underlay?: string; // public id of an uploaded image
316-
variables?: [[string, any]];
318+
variable?: [string, any];
319+
variables?: Array<[string, any]>;
317320
width?: string | number; // Number of pixels, width % or "auto" with rounding step
318321
x?: number | string; // pixels or percent
319322
y?: number | string; // pixels or percent
@@ -330,10 +333,11 @@ export namespace Transformation {
330333
endOffset?: number | string; // Float or string
331334
fallbackContent?: string;
332335
flags?: VideoFlags;
336+
fps?: string | Array<string|number>;
333337
keyframeInterval?: number;
334338
offset?: string, // [float, float] or [string, string] or a range. Shortcut to set video cutting using a combination of start_offset and end_offset values
335339
poster?: string | Object,
336-
sourceType?: string;
340+
sourceTypes?: string;
337341
sourceTransformation?: string;
338342
startOffset?: number | string; // Float or string
339343
streamingProfile?: StreamingProfiles
@@ -409,6 +413,18 @@ export class ImageTag extends HtmlTag {
409413
static "new"(name: string, publicId: string, options?: Transformation.Options): ImageTag;
410414
}
411415

416+
/**
417+
* Creates an HTML (DOM) Picture tag using Cloudinary as the source.
418+
* @constructor PictureTag
419+
* @extends HtmlTag
420+
* @param {string} [publicId]
421+
* @param {Object} [options]
422+
*/
423+
export class PictureTag extends HtmlTag {
424+
static "new"(publicId: string, options?: Transformation.Options, widthList?: Array<[number, number, Transformation]>): PictureTag;
425+
static "new"(name: string, publicId: string, options?: Transformation.Options): PictureTag;
426+
}
427+
412428
/**
413429
* Creates an HTML (DOM) Video tag using Cloudinary as the source.
414430
* @constructor VideoTag
@@ -805,4 +821,4 @@ export namespace Configuration {
805821
enhance_image_tag?: boolean;
806822
[futureKey: string]: any;
807823
}
808-
}
824+
}

0 commit comments

Comments
 (0)