76_SolarForecast: one more fix of color filling of svg icon
git-svn-id: https://svn.fhem.de/fhem/trunk@30369 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -160,6 +160,7 @@ BEGIN {
|
|||||||
|
|
||||||
# Versions History intern
|
# Versions History intern
|
||||||
my %vNotesIntern = (
|
my %vNotesIntern = (
|
||||||
|
"1.59.2" => "09.10.2025 one more fix of color filling of svg icon ",
|
||||||
"1.59.1" => "08.10.2025 fixed transfer at day change, optimal SoC consideration in SoC forecast for optPower strategy ".
|
"1.59.1" => "08.10.2025 fixed transfer at day change, optimal SoC consideration in SoC forecast for optPower strategy ".
|
||||||
"__normIconInnerScale: add path color filling, Calculation of time-weighted consumption or PV generation ".
|
"__normIconInnerScale: add path color filling, Calculation of time-weighted consumption or PV generation ".
|
||||||
"in the current hour ",
|
"in the current hour ",
|
||||||
@@ -19645,9 +19646,11 @@ sub __normIconInnerScale {
|
|||||||
$ox += $pad; # fügt $pad ViewBox-Einheiten Rand links bzw. oben hinzu.
|
$ox += $pad; # fügt $pad ViewBox-Einheiten Rand links bzw. oben hinzu.
|
||||||
$oy += $pad;
|
$oy += $pad;
|
||||||
|
|
||||||
if ($fill) {
|
if ($fill) {
|
||||||
$inner =~ s{<path(?![^>]*\bfill)}{<path fill="$fill"}g;
|
$inner =~ s/\bfill="[^"]*"/fill="$fill"/gi;
|
||||||
$inner =~ s{<path(?![^>]*\bstroke)}{<path stroke="$fill"}g;
|
for my $tag (qw(path rect circle ellipse polygon polyline line)) {
|
||||||
|
$inner =~ s{<$tag(?![^>]*\bfill=)}{<$tag fill="$fill"}gi;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$inner = qq{<g transform="translate($ox $oy) scale($scale)">}.$inner.'</g>'; # gib Inner-Content zurück, umgeben von der Transform-Gruppe
|
$inner = qq{<g transform="translate($ox $oy) scale($scale)">}.$inner.'</g>'; # gib Inner-Content zurück, umgeben von der Transform-Gruppe
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ BEGIN {
|
|||||||
|
|
||||||
# Versions History intern
|
# Versions History intern
|
||||||
my %vNotesIntern = (
|
my %vNotesIntern = (
|
||||||
|
"1.59.2" => "09.10.2025 one more fix of color filling of svg icon ",
|
||||||
"1.59.1" => "08.10.2025 fixed transfer at day change, optimal SoC consideration in SoC forecast for optPower strategy ".
|
"1.59.1" => "08.10.2025 fixed transfer at day change, optimal SoC consideration in SoC forecast for optPower strategy ".
|
||||||
"__normIconInnerScale: add path color filling, Calculation of time-weighted consumption or PV generation ".
|
"__normIconInnerScale: add path color filling, Calculation of time-weighted consumption or PV generation ".
|
||||||
"in the current hour ",
|
"in the current hour ",
|
||||||
@@ -19645,9 +19646,11 @@ sub __normIconInnerScale {
|
|||||||
$ox += $pad; # fügt $pad ViewBox-Einheiten Rand links bzw. oben hinzu.
|
$ox += $pad; # fügt $pad ViewBox-Einheiten Rand links bzw. oben hinzu.
|
||||||
$oy += $pad;
|
$oy += $pad;
|
||||||
|
|
||||||
if ($fill) {
|
if ($fill) {
|
||||||
$inner =~ s{<path(?![^>]*\bfill)}{<path fill="$fill"}g;
|
$inner =~ s/\bfill="[^"]*"/fill="$fill"/gi;
|
||||||
$inner =~ s{<path(?![^>]*\bstroke)}{<path stroke="$fill"}g;
|
for my $tag (qw(path rect circle ellipse polygon polyline line)) {
|
||||||
|
$inner =~ s{<$tag(?![^>]*\bfill=)}{<$tag fill="$fill"}gi;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$inner = qq{<g transform="translate($ox $oy) scale($scale)">}.$inner.'</g>'; # gib Inner-Content zurück, umgeben von der Transform-Gruppe
|
$inner = qq{<g transform="translate($ox $oy) scale($scale)">}.$inner.'</g>'; # gib Inner-Content zurück, umgeben von der Transform-Gruppe
|
||||||
|
|||||||
Reference in New Issue
Block a user