@pacem/pacem-charts 1.0.0-bessel → 1.0.0-binet

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-charts v1.0.0-bessel (https://js.pacem.it)
2
+ * @pacem/pacem-charts v1.0.0-binet (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -117,11 +117,15 @@
117
117
  }
118
118
  return gcd(b % a, a);
119
119
  }
120
+ /** Custom UI event dispatched by chart elements when the user interacts with a rendered data point (e.g. `itemclick`, `itemmouseover`). */
120
121
  class ChartEvent extends pacemCore.CustomUIEvent {
121
122
  constructor(type, eventInit, originalEvent) {
122
123
  super(type, eventInit, originalEvent);
123
124
  }
124
125
  }
126
+ /**
127
+ * Represents a single data series to be plotted within a `<pacem-chart>`-like element.
128
+ */
125
129
  let PacemChartSeriesElement = class PacemChartSeriesElement extends pacemCore.Components.PacemItemElement {
126
130
  get values() {
127
131
  return this.datasource;
@@ -146,6 +150,10 @@
146
150
  pacemCore.CustomElement({ tagName: pacemCore.P + '-chart-series' })
147
151
  ], PacemChartSeriesElement);
148
152
  const SVG_NS$2 = "http://www.w3.org/2000/svg";
153
+ /**
154
+ * Abstract base class for chart elements hosting a collection of {@link PacemChartSeriesElement} items.
155
+ * Provides axis/grid computation and SVG drawing helpers shared by concrete chart-series elements (e.g. `PacemChartElement`, `PacemColumnChartElement`).
156
+ */
149
157
  class PacemSeriesChartElement extends pacemCore.Components.PacemItemsContainerElement {
150
158
  constructor() {
151
159
  super();
@@ -548,6 +556,9 @@
548
556
  const PADDING_PIXELS$1 = 24;
549
557
  const SERIES_MAGNITUDE = 'pacem:chart-series:area';
550
558
  const SVG_NS$1 = "http://www.w3.org/2000/svg";
559
+ /**
560
+ * Renders a line, spline, area or spline-area chart out of one or more {@link PacemChartSeriesElement} series.
561
+ */
551
562
  let PacemChartElement = class PacemChartElement extends PacemSeriesChartElement {
552
563
  constructor() {
553
564
  super(...arguments);
@@ -952,6 +963,9 @@
952
963
  //namespace Pacem.Components.Charts {
953
964
  const SVG_NS = "http://www.w3.org/2000/svg";
954
965
  const PADDING_PIXELS = 24;
966
+ /**
967
+ * Renders a clustered or stacked column (bar) chart out of one or more {@link PacemChartSeriesElement} series.
968
+ */
955
969
  let PacemColumnChartElement = class PacemColumnChartElement extends PacemSeriesChartElement {
956
970
  constructor() {
957
971
  super(...arguments);
@@ -1304,6 +1318,9 @@
1304
1318
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1305
1319
  };
1306
1320
  //namespace Pacem.Components.Charts {
1321
+ /**
1322
+ * Represents a single slice within a `<pacem-pie-chart>`.
1323
+ */
1307
1324
  let PacemPieSliceElement = class PacemPieSliceElement extends pacemCore.Components.PacemItemElement {
1308
1325
  constructor() {
1309
1326
  super(...arguments);
@@ -1368,6 +1385,9 @@
1368
1385
  ], PacemPieSliceElement);
1369
1386
  const TWO_PI = Math.PI * 2;
1370
1387
  const PI1_2 = Math.PI * .5;
1388
+ /**
1389
+ * Renders a pie or doughnut chart out of one or more {@link PacemPieSliceElement} slices.
1390
+ */
1371
1391
  let PacemPieChartElement = class PacemPieChartElement extends pacemCore.Components.PacemItemsContainerElement {
1372
1392
  constructor() {
1373
1393
  super();