The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Quiq::PlotlyJs::Reference - Erzeuge Plotly.js Reference Manual

BASE CLASS

Quiq::Hash

SYNOPSIS

  use Quiq::PlotlyJs::Reference;
  use Quiq::Html::Producer;
  
  $root = Quiq::PlotlyJs::Reference->new;
  $h = Quiq::Html::Producer->new;
  $html = $root->asHtml($h);

DESCRIPTION

Die Dokumentation zu Plotly.js ist umfangreich. Ein wichtiger Teil davon, die Full Reference mit der Beschreibung aller Attribute ist allerdings umständlich zu handhaben. Diese Klasse erzeugt eine übersichtlichere Fassung der Full Reference.

EXAMPLE

Dokument an der Kommandozeile erzeugen

  $ perl -MQuiq::Html::Producer -MQuiq::PlotlyJs::Reference -E '$h = Quiq::Html::Producer->new; print Quiq::PlotlyJs::Reference->new->asHtml($h)'

produziert auf stdout

  <details>
    <summary>
      0. Layout
    </summary>
    <div style="margin-left: 22px">
      <p>
        <details>
          <summary>
            angularaxis
          </summary>
          <div style="margin-left: 22px">
            <dl>
              <dt>Parent:</dt>
              <dd>layout</dd>
  ... und mehr als 11.000 weitere Zeilen ...

METHODS

Konstruktor

new() - Instantiiere Objekt

Synopsis

  $root = $class->new;

Returns

Wurzelknoten des Dokument-Baums (Object)

Description

Parse das Originaldokument, überführe es in einen Dokumentbaum und liefere eine Referenz auf den Wurzelknoten dieses Baums zurück.

HTML-Repräsentation

asHtml() - Erzeuge HTML-Repräsentation

Synopsis

  $html = $obj->asHtml($h);

Arguments

$h

Quiq::Html::Tag Objekt.

Options

-document => $bool (Default: 0)

Erzeuge ein vollständiges HTML-Dokument.

-indent => $n (Default: 22)

Rücke die Ebenen um $n Pixel ein.

Returns

HTML-Code (String)

Description

Liefere die plotly.js Dokumentation in HTML.

VERSION

1.184

AUTHOR

Frank Seitz, http://fseitz.de/

COPYRIGHT

Copyright (C) 2020 Frank Seitz

LICENSE

This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.