ml-time-graph 1.17.0 → 1.18.0

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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { M as MLTimeGraphOptions, L as LegendItem, R as Renderer, a as LayoutResult, b as Margin, Y as YAxisConfig, A as AxesConfig, X as XAxisConfig, c as LegendOptions, d as LegendPosition, e as LegendOrientation, f as Marker, g as RenderOutput } from './marker_renderer-BsiVseet.js';
2
- export { h as AxisLabelsStyle, i as AxisStyle, G as GridLineStyle, j as GridStyle, T as TextMetrics, k as Theme, l as TickConfig, m as drawMarker, n as estimateMetrics, o as getDefaultTheme, p as liberationMetrics, r as resetDefaultTheme, s as setDefaultTheme, q as slugify } from './marker_renderer-BsiVseet.js';
3
- import { e as AnySeries, i as Annotation, a as DrawCommand, T as TimeScale, L as LinearScale, g as Gap, h as GapsConfig, f as Threshold, H as Highlight, j as AnnotationBandConfig, l as SeriesStyle, c as LineVariant, S as SmoothingType, F as FillSpec, m as TimeSeries, b as LineDashStyle, n as ThresholdFill, k as HatchVariant, o as ThresholdLabelPosition, P as PointStyleType, M as MarkerLineStyle, R as RangeLabelPosition, p as AnnotationPointShape, q as LabelAnchor, r as AnnotationBandItem, s as TextBaseline, t as AggregatedPoint, u as AggregatedSeries, D as DataPoint } from './types-DdltSMkw.js';
4
- export { v as AggregatedShowAs, w as AggregationConfig, x as AggregationMode, y as AnnotationKind, z as AxisOrientation, A as AxisPosition, B as DataPointRef, E as EnumMap, C as FillBound, I as FillRegion, J as FillSide, K as FillStyle, N as FillWhere, O as GapConfig, Q as GapLabel, U as GapRegion, V as GapStyle, W as GapsAtEnd, G as GridLayer, X as LineShape, Y as LineStyle, Z as MarkerStyle, _ as MovingAverageType, $ as SVGLineStyle, a0 as SensorType, a1 as SeriesGaps, a2 as SeriesOverlay, a3 as SeriesOverlayKind, a4 as SeriesType, a5 as ShadowStyle, a6 as SolidDashStyle, a7 as ThresholdLabelConfig, a8 as getLineStyle, a9 as resolveDash } from './types-DdltSMkw.js';
1
+ import { M as MLTimeGraphOptions, L as LegendItem, R as Renderer, a as LayoutResult, b as Margin, Y as YAxisConfig, A as AxesConfig, X as XAxisConfig, c as LegendOptions, d as LegendPosition, e as LegendOrientation, f as Marker, g as RenderOutput } from './marker_renderer-BZMcTbHC.js';
2
+ export { h as AxisLabelsStyle, i as AxisStyle, G as GridLineStyle, j as GridStyle, T as TextMetrics, k as Theme, l as TickConfig, m as drawMarker, n as estimateMetrics, o as getDefaultTheme, p as liberationMetrics, r as resetDefaultTheme, s as setDefaultTheme, q as slugify } from './marker_renderer-BZMcTbHC.js';
3
+ import { e as AnySeries, i as Annotation, a as DrawCommand, T as TimeScale, L as LinearScale, g as Gap, h as GapsConfig, f as Threshold, H as Highlight, j as AnnotationBandConfig, l as SeriesStyle, c as LineVariant, S as SmoothingType, F as FillSpec, m as TimeSeries, b as LineDashStyle, n as ThresholdFill, k as HatchVariant, o as ThresholdLabelPosition, P as PointStyleType, M as MarkerLineStyle, R as RangeLabelPosition, p as AnnotationPointShape, q as LabelAnchor, r as AnnotationBandItem, s as TextBaseline, t as AggregatedPoint, u as AggregatedSeries, D as DataPoint } from './types-CNIUKrmy.js';
4
+ export { v as AggregatedShowAs, w as AggregationConfig, x as AggregationMode, y as AnnotationKind, z as AxisOrientation, A as AxisPosition, B as DataPointRef, E as EnumMap, C as FillBound, I as FillRegion, J as FillSide, K as FillStyle, N as FillWhere, O as GapConfig, Q as GapLabel, U as GapRegion, V as GapStyle, W as GapsAtEnd, G as GridLayer, X as LineShape, Y as LineStyle, Z as MarkerStyle, _ as MovingAverageType, $ as SVGLineStyle, a0 as SensorType, a1 as SeriesGapStyle, a2 as SeriesGaps, a3 as SeriesOverlay, a4 as SeriesOverlayKind, a5 as SeriesType, a6 as ShadowStyle, a7 as SolidDashStyle, a8 as ThresholdLabelConfig, a9 as getLineStyle, aa as resolveDash } from './types-CNIUKrmy.js';
5
5
 
6
6
  /*!
7
7
  * MLTimeGraph — Copyright (c) 2026 Michael Lechner
@@ -93,9 +93,17 @@ interface PointsAtOptions {
93
93
  * "Michael Lechner". Commercial license (no attribution) on request. See LICENSE.
94
94
  */
95
95
 
96
+ /**
97
+ * Time-series chart. Configure it with {@link MLTimeGraphOptions} (series,
98
+ * thresholds, legend, axis labels, …), then call {@link MLTimeGraph.renderCommands}
99
+ * to get renderer-agnostic draw commands — a {@link Renderer} (e.g. SVGRenderer)
100
+ * turns those into output. The chart never touches the DOM itself.
101
+ */
96
102
  declare class MLTimeGraph {
97
103
  private readonly _layout;
98
104
  private readonly _idPraefix?;
105
+ /** classPrefix: vor jede Klasse ausser legend.itemClass (klassen_praefix.ts). */
106
+ private readonly _klassenPraefix?;
99
107
  private readonly _renderer?;
100
108
  private readonly _locale?;
101
109
  private readonly _timeZone?;
@@ -127,7 +135,6 @@ declare class MLTimeGraph {
127
135
  private _annotationSeq;
128
136
  private readonly _axes?;
129
137
  private _series;
130
- private readonly_annotationBandHeight;
131
138
  private _timeScale?;
132
139
  private readonly _valueScales;
133
140
  /** @param options Chart configuration; every field is optional and has a sensible default. */
@@ -185,8 +192,8 @@ declare class MLTimeGraph {
185
192
  * muss deren Kurve treffen, nicht eine aehnliche (B-20261007-02).
186
193
  */
187
194
  private _linienGrundlage;
188
- private _renderSeries;
189
- private _interpolateValue;
195
+ /** Was rendereReihe vom Diagramm braucht (series/series_render.ts). */
196
+ private _reihenKontext;
190
197
  legendItems(): LegendItem[];
191
198
  private _legendeneintraege;
192
199
  /**
@@ -231,14 +238,6 @@ declare class MLTimeGraph {
231
238
  * when they have none) -- `hidden` and `pointsAt` cannot tell them apart.
232
239
  */
233
240
  warnings(): string[];
234
- /**
235
- * `where` an einer Flaeche entscheidet an den Messwerten. Ist eine der
236
- * beiden Kurven mit catmull-rom oder akima geglaettet, kann sie ueber die
237
- * Messwerte hinausschwingen -- dann trifft die Flaeche die Linie am Rand des
238
- * Fensters nicht genau. 'monotone' schwingt nicht ueber. Gegenstueck:
239
- * ueberschwinger in go-time-graph/pkg/chart/warnings.go.
240
- */
241
- private _ueberschwinger;
242
241
  /**
243
242
  * The points under the pointer at (x, y), in SVG pixels -- for a tooltip
244
243
  * that gets data instead of HTML. Valid after `renderCommands()`, like
@@ -888,6 +887,12 @@ declare class SVGRenderer extends Renderer {
888
887
  * `clip-plot-<hash>`.
889
888
  */
890
889
  idPrefix?: string;
890
+ /**
891
+ * The chart's `classPrefix`, for the few classes this renderer writes
892
+ * itself (a labelled gap's group). The chart's own classes are already
893
+ * prefixed in its draw commands.
894
+ */
895
+ classPrefix?: string;
891
896
  });
892
897
  /** Set a solid background colour, drawn as a full-size rect behind the chart. */
893
898
  setBackgroundColor(color: string): void;
@@ -1145,6 +1150,6 @@ declare function mergeOptions(...layers: (OptionsLayer | undefined)[]): MLTimeGr
1145
1150
  * Monate spaeter eine Datei aus einem Stapel von Berichten in der Hand haelt,
1146
1151
  * kann sonst nicht feststellen, welcher Stand sie gezeichnet hat.
1147
1152
  */
1148
- declare const VERSION = "1.17.0";
1153
+ declare const VERSION = "1.18.0";
1149
1154
 
1150
1155
  export { AggregatedPoint, AggregatedSeries, Annotation, AnnotationBandBuilder, AnnotationBandConfig, AnnotationBandItem, AnnotationBandItemBuilder, AnnotationBuilder, AnnotationPointShape, AnySeries, type AutoMarginOptions, AxesConfig, type AxisGroupInput, type AxisGroups, DataPoint, DrawCommand, type FieldAccessor, type FillBetweenThresholdsInput, FillSpec, Gap, GapsConfig, GraphBuilder, HatchVariant, Highlight, HighlightBuilder, LabelAnchor, LegendItem, LegendOptions, LegendOrientation, LegendPosition, type LimitStatsPoint, LineDashStyle, LineVariant, MLTimeGraph, MLTimeGraphOptions, Margin, Marker, MarkerBuilder, MarkerLineStyle, type MktPoint, type OptionsLayer, type PointAt, PointStyleType, type PointsAtOptions, RangeLabelPosition, SVGRenderer, SeriesStyle, SmoothingType, type StatsAggregatedPoint, type StdDevPoint, TextBaseline, Threshold, ThresholdBuilder, ThresholdFill, ThresholdLabelPosition, type TimeInput, TimeSeries, TimeSeriesBuilder, type ToDataPointsSpec, type TooltipOptions, type TooltipSample, VERSION, XAxisConfig, YAxisConfig, attachTooltip, autoMargin, axisGroups, fillBetweenThresholds, mergeOptions, mount, parseAggregated, parseDataPoint, parseSeries, toDataPoints, toSeries, zeigerImSvg };