Quiq
view release on metacpan or search on metacpan
* exec(): Rückgabewerte $stdout, $stderr auf Leerstring initialisiert
1.200 2022-03-15
================
[Quiq::Html::Verbatim]
* margin: 0 in <pre> gesetzt
[Quiq::PlotlyJs::XY::DiagramGroup]
* Attribut xAxisHoverFormat einstellbar gemacht
* Bedienelemente downloadPng, fillArea, scaleY einstellbar gemacht
[Quiq::Sdoc::Producer]
* Tabellengenerierung erweitert
[Quiq::Epoch]
* new(): Konstruktor erweitert um start-of-month etc.
* month(): hinzugefügt
[Quiq::Properties]
* width(): zum Setter erweitert
lib/Quiq/Gd/Image.pm view on Meta::CPAN
my $self;
if (@_ == 1) { # $file -or- $data
$self = $class->SUPER::new(shift);
#my $file = shift;
#
#if ($file =~ /\.jpg$/i) {
# $self = $class->newFromJpeg($file,1);
#}
#elsif ($file =~ /\.png$/i) {
# $self = $class->newFromPng($file,1);
#}
#else {
# $class->throw(
# 'GD-00005: Unbekannter Dateityp',
# File => $file,
# );
#}
}
else { # $width,$height,$color
my $width = shift;
lib/Quiq/PlotlyJs/XY/DiagramGroup.pm view on Meta::CPAN
Zeige über dem Diagramm die FormatierungsgröÃen an, die bei
unterschiedlicher Höhe oder FontgröÃe angepasst werden müssen.
=item diagrams => \@diagrams
Liste der Diagramm-Objekte. Die Diagramm-Objekte sind vom Typ
B<< Quiq::PlotlyJs::XY::Diagram >> und definieren die Metadaten
für die einzelnen Diagramme der Diagramm-Gruppe.
=item downloadPng => $bool (Default: 1)
Biete einen Button zum Herunterladen der Diagramm-Grafik an.
=item fillArea => $bool (Default: 1)
Biete eine Checkbox zum An- und Abschalten der Fill Area
unter der Kurve an.
=item fontSize => $n
lib/Quiq/PlotlyJs/XY/DiagramGroup.pm view on Meta::CPAN
# -----------------------------------------------------------------------------
sub new {
my $class = shift;
# @_: @attVal
my $self = $class->SUPER::new(
debug => 0,
diagrams => [],
downloadPng => 1,
fillArea => 1,
fontSize => 11,
height => 300,
name => 'dgr',
scaleY => 1,
shape => undef,
strict => 1,
type => 'scatter',
width => undef,
xAxisType => 'date',
lib/Quiq/PlotlyJs/XY/DiagramGroup.pm view on Meta::CPAN
!$self->scaleY? '':
' | '.Quiq::Html::Widget::Button->html($h,
id => "$name-y$i",
content => 'Scale Y Axis',
onClick => sprintf("%s.rescaleY('%s',%s,%s)",
$name,"$name-d$i",$par->yMin,$par->yMax),
title => 'Rescale Y axis according to visible'.
' data or original state',
)
).(
!$self->downloadPng? '':
' | '.Quiq::Html::Widget::Button->html($h,
content => 'Download as PNG',
onClick => qq~
let plot = \$('#$name-d$i');
Plotly.downloadImage(plot[0],{
format: 'png',
width: plot.width(),
height: plot.height(),
filename: '$parameterName',
});
( run in 0.541 second using v1.01-cache-2.11-cpan-0a6323c29d9 )