Skip to content

Commit 84b7221

Browse files
author
amrelbialy
committed
chore: release 1.2.0
1 parent f259de5 commit 84b7221

File tree

5 files changed

+11920
-17
lines changed

5 files changed

+11920
-17
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ Types of changes:
2525
- ...
2626

2727
-------------
28+
## 1.2.0 - 2021-07-19
29+
30+
### Deprecated
31+
32+
- Property **ignoreNodeImgSize** is deprecated. Use **imageSizeAttributes: 'ignore'** instead
33+
34+
### Added
35+
- new property: **imageSizeAttributes**
2836

2937
## 1.1.0 2021-06-16
3038
### Added

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Release](https://img.shields.io/badge/release-v1.0.5-blue.svg)](https://github.com/scaleflex/vue-cloudimage-responsive/releases)
1+
[![Release](https://img.shields.io/badge/release-v1.2.0-blue.svg)](https://github.com/scaleflex/vue-cloudimage-responsive/releases)
22
[![Free plan](https://img.shields.io/badge/price-includes%20free%20plan-green.svg)](https://www.cloudimage.io/en/home#b38181a6-b9c8-4015-9742-7b1a1ad382d5)
33
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](#contributing)
44
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
@@ -323,6 +323,22 @@ Delay for processing an image after rendering component.
323323
**NOTE:** normally the parameter is not needed, but in some cases with integrating third part libraries it can fix wrong
324324
calculation of image container.
325325

326+
### ImageSizeAttributes
327+
328+
###### Type: **String** | possible values: 'use', 'ignore', 'take-ratio' | Default: **'use'**
329+
330+
If width and height attributes are set:
331+
332+
**use** - width & height attributes values will be used to calculate image size (according to user's DPR) and **ratio**.
333+
334+
**take-ratio** - width & height attributes values will be used only to calculate **ratio**.
335+
336+
**ignore** - width & height attributes will be ignored.
337+
338+
If width and height attributes are NOT set, image container size will be detected to calculate result image size (according to user's DPR)
339+
340+
*Note*: If only width or height attributes is set, ratio is going to be taken from ci-ratio image attribute
341+
326342
## <a name="image_properties"></a> Image properties
327343

328344
### src

0 commit comments

Comments
 (0)