From 027eb268f0724ec7ba0077926fe49d9702b34fdc Mon Sep 17 00:00:00 2001 From: Ilyas Ronef Date: Sat, 20 Jan 2024 02:12:22 +0400 Subject: [PATCH] Prerelease --- CHANGELOG.md | 8 ++++++++ CHANGELOG_ru.md | 8 ++++++++ README.md | 2 +- README_ru.md | 2 +- composer.json | 2 +- ddColorTools_snippet.php | 4 ++-- src/Snippet.php | 2 +- 7 files changed, 22 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c95af55..5f937c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # (MODX)EvolutionCMS.snippets.ddColorTools changelog +## Version 3.2 (2023-03-10) +* \+ Parameters → `inputColor`: Supports values with alpha-channel. + * \+ `offset_a`: The new parameter. Allows you to modify alpha-channel. + * \+ `result_tpl` → Placeholders → `[+ddA+]`: The new placeholder. +* \* `\ddTools::getTpl` is used instead of `$modx->getTpl`. +* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required. + + ## Version 3.1 (2023-03-10) * \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.57 is required. * \* Attention! (MODX)EvolutionCMS.snippets.ddGetDocumentField >= 2.11.1 is required. diff --git a/CHANGELOG_ru.md b/CHANGELOG_ru.md index d6859e5..7c1bfa7 100644 --- a/CHANGELOG_ru.md +++ b/CHANGELOG_ru.md @@ -1,6 +1,14 @@ # (MODX)EvolutionCMS.snippets.ddColorTools changelog +## Версия 3.2 (2023-03-10) +* \+ Parameters → `inputColor`: Supports values with alpha-channel. + * \+ `offset_a`: The new parameter. Allows you to modify alpha-channel. + * \+ `result_tpl` → Placeholders → `[+ddA+]`: The new placeholder. +* \* `\ddTools::getTpl` is used instead of `$modx->getTpl`. +* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required. + + ## Версия 3.1 (2023-03-10) * \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.57. * \* Внимание! Требуется (MODX)EvolutionCMS.snippets.ddGetDocumentField >= 2.11.1. diff --git a/README.md b/README.md index a8adb13..ff6036d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Converts the color to match the offset in tone, brightness, or saturation. #### 1. Elements → Snippets: Create a new snippet with the following data 1. Snippet name: `ddColorTools`. -2. Description: `3.1 Converts the color to match the offset in tone, brightness, or saturation.`. +2. Description: `3.2 Converts the color to match the offset in tone, brightness, or saturation.`. 3. Category: `Core`. 4. Parse DocBlock: `no`. 5. Snippet code (php): Insert content of the `ddColorTools_snippet.php` file from the archive. diff --git a/README_ru.md b/README_ru.md index 9976dc4..a4c59bd 100644 --- a/README_ru.md +++ b/README_ru.md @@ -19,7 +19,7 @@ #### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами 1. Название сниппета: `ddColorTools`. -2. Описание: `3.1 Преобразует цвет в соответствии со смещением по тону, яркости или насыщенности.`. +2. Описание: `3.2 Преобразует цвет в соответствии со смещением по тону, яркости или насыщенности.`. 3. Категория: `Core`. 4. Анализировать DocBlock: `no`. 5. Код сниппета (php): Вставьте содержимое файла `ddColorTools_snippet.php` из архива. diff --git a/composer.json b/composer.json index b27e87c..e125149 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dd/evolutioncms-snippets-ddcolortools", "type": "modxevo-snippet", - "version": "3.1.0", + "version": "3.2.0", "description": "Converts the color to match the offset in tone, brightness, or saturation.", "keywords": [ "modx", diff --git a/ddColorTools_snippet.php b/ddColorTools_snippet.php index a4dce46..74bb40e 100644 --- a/ddColorTools_snippet.php +++ b/ddColorTools_snippet.php @@ -1,13 +1,13 @@