vue-cloudimage-responsive
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -28,3 +28,11 @@ # Changelog | ||
------------- | ||
## 1.2.0 - 2021-07-19 | ||
### Deprecated | ||
- Property **ignoreNodeImgSize** is deprecated. Use **imageSizeAttributes: 'ignore'** instead | ||
### Added | ||
- new property: **imageSizeAttributes** | ||
## 1.1.0 2021-06-16 | ||
@@ -31,0 +39,0 @@ ### Added |
/* | ||
* vue-cloudimage-responsive v1.1.0 | ||
* vue-cloudimage-responsive v1.2.0 | ||
* | ||
@@ -876,2 +876,3 @@ * @license | ||
params: this.cloudImageConfig.params ? cloudimageResponsiveUtils.processParams(this.cloudImageConfig.params) : 'org_if_sml=1', | ||
imageSizeAttributes: this.cloudImageConfig.imageSizeAttributes || 'use', | ||
innerWidth: typeof window !== 'undefined' ? window.innerWidth : null, | ||
@@ -878,0 +879,0 @@ previewQualityFactor: 10, |
/* | ||
* vue-cloudimage-responsive v1.1.0 | ||
* vue-cloudimage-responsive v1.2.0 | ||
* | ||
@@ -872,2 +872,3 @@ * @license | ||
params: this.cloudImageConfig.params ? processParams(this.cloudImageConfig.params) : 'org_if_sml=1', | ||
imageSizeAttributes: this.cloudImageConfig.imageSizeAttributes || 'use', | ||
innerWidth: typeof window !== 'undefined' ? window.innerWidth : null, | ||
@@ -874,0 +875,0 @@ previewQualityFactor: 10, |
{ | ||
"name": "vue-cloudimage-responsive", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"main": "dist/index.cjs.js", | ||
@@ -39,3 +39,3 @@ "module": "dist/index.es.js", | ||
"dependencies": { | ||
"cloudimage-responsive-utils": "^2.2.0", | ||
"cloudimage-responsive-utils": "^2.3.0", | ||
"core-js": "^3.15.2" | ||
@@ -42,0 +42,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
[](https://github.com/scaleflex/vue-cloudimage-responsive/releases) | ||
[](https://github.com/scaleflex/vue-cloudimage-responsive/releases) | ||
[](https://www.cloudimage.io/en/home#b38181a6-b9c8-4015-9742-7b1a1ad382d5) | ||
@@ -326,2 +326,18 @@ [](#contributing) | ||
### ImageSizeAttributes | ||
###### Type: **String** | possible values: 'use', 'ignore', 'take-ratio' | Default: **'use'** | ||
If width and height attributes are set: | ||
**use** - width & height attributes values will be used to calculate image size (according to user's DPR) and **ratio**. | ||
**take-ratio** - width & height attributes values will be used only to calculate **ratio**. | ||
**ignore** - width & height attributes will be ignored. | ||
If width and height attributes are NOT set, image container size will be detected to calculate result image size (according to user's DPR) | ||
*Note*: If only width or height attributes is set, ratio is going to be taken from ci-ratio image attribute | ||
## <a name="image_properties"></a> Image properties | ||
@@ -328,0 +344,0 @@ |
77432
1740
479