Releases: DivanDesign/EvolutionCMS.snippets.ddColorTools
Releases · DivanDesign/EvolutionCMS.snippets.ddColorTools
Version 3.2.1
Version 3.2
- + 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::getTplis used instead of$modx->getTpl. - * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.
Version 3.1
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.57 is required.
- * Attention! (MODX)EvolutionCMS.snippets.ddGetDocumentField >= 2.11.1 is required.
- + Parameters:
- +
inputColor:- + Can also be set as HSB/HSV.
- + Supports the
%sign in the HSL or HSB/HSV formats.
- +
result_outputFormat→ Valid values →rgb: The new output format. - +
result_tpl→ Placeholders →[+ddIsDark+]: The new placeholder. It equals1if input color is dark or0otherwise (see README → Examples). - +
result_tpl_placeholders: Can also be set as HJSON or as a native PHP object or array.
- +
- + You can just call
\DDTools\Snippet::runSnippetto run the snippet without DB and eval (see README → Examples). - *
\DDTools\Snippet::runSnippetis used instead of$modx->runSnippetto run (MODX)EvolutionCMS.snippets.ddGetDocumentField without DB and eval. - * The HSL ≠ HSB error that occurred in 55685f6 has been fiexed.
- * README:
- + Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
- + Links.
- + Composer.json:
- +
homepage. - +
support. - +
authors.
- +
Version 3.0
- * Attention! (MODX)EvolutionCMS.snippets.ddGetDocumentField >= 2.10.1 is required.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.32 is required.
- * Attention! Backward compatibility is broken:
- *
HSBrenamed asHSLinside the snippet. - * Parameters:
- * The following were renamed:
- *
offset_b→offset_l - *
outputFormat→result_outputFormat
- *
- *
result_outputFormat:- * If equal to
hslthen full color string will be returned (hsl(0, 0%, 0%)). - * Default value: Is equal to
hslinstead ofhex.
- * If equal to
- * The following were renamed:
- *
- + Parameters →
inputColor: Added the ability to set as HSL. - + Parameters →
offset_(all): Supports multiple operations. - + Parameters →
result_outputFormat: Case-insensitive. - + Parameters →
result_tpl. - + Parameters →
result_tpl_placeholders. - * The snippet will return an empty string even if result is absent.
- * Refactoring.
- + Composer.json.
- + README.
- + README_ru.
- + CHANGELOG.
- + CHANGELOG_ru.
Version 2.0
- + Initial commit.