ml-time-graph 1.7.2 → 1.8.3

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,4 +1,4 @@
1
- import { D as DrawCommand, L as LineVariant, P as PointStyleType, a4 as DrawGroup, j as AggregatedPoint, d as TimeScale, e as LinearScale, l as DataPoint } from './scale-D6NtEaUB.js';
1
+ import { D as DrawCommand, L as LineVariant, P as PointStyleType, a4 as DrawGroup, j as AggregatedPoint, d as TimeScale, e as LinearScale, l as DataPoint } from './scale-CoTgJ27U.js';
2
2
 
3
3
  /** Output format type for the renderer (SVG string, Canvas, or nothing). */
4
4
  type RenderType = "svg" | "canvas" | "none";
@@ -404,4 +404,20 @@ declare function renderMarkers(points: DataPoint[], ctx: RenderingContext, style
404
404
  declare function drawMarker(// NOSONAR
405
405
  commands: DrawCommand[], id: string | undefined, shape: Exclude<PointStyleType, "none">, x: number, y: number, size: number, stroke: string, fill: string, sw: number): void;
406
406
 
407
- export { type LegendOrientation as L, type Marker as M, Renderer as R, type Theme as T, type LegendItem as a, type LayoutResult as b, type RenderOutput as c, drawMarker as d, Layout as e, type LayoutConfig as f, getDefaultTheme as g, type LegendConfig as h, renderArea as i, renderLegend as j, renderLine as k, renderMarkers as l, measureLegend as m, renderSplitLine as n, renderStep as o, renderZonedArea as p, toStepPoints as q, resetDefaultTheme as r, setDefaultTheme as s, toStepData as t };
407
+ /*!
408
+ * MLTimeGraph — Copyright (c) 2026 Michael Lechner
409
+ * MIT with Attribution: free use incl. commercial requires visible credit to
410
+ * "Michael Lechner". Commercial license (no attribution) on request. See LICENSE.
411
+ */
412
+ /**
413
+ * Turn a free-form name into an ASCII slug usable as an `id`/CSS-class
414
+ * suffix. Lowercased, non-alphanumeric runs collapsed to `-`, accents
415
+ * stripped, trimmed, capped at 50 chars. Empty input → `'unnamed'`.
416
+ *
417
+ * slugify('Temperatur (°C)') → 'temperatur-c'
418
+ * slugify('Signal A') → 'signal-a'
419
+ * slugify(' ') → 'unnamed'
420
+ */
421
+ declare function slugify(s: string | undefined | null): string;
422
+
423
+ export { type LegendOrientation as L, type Marker as M, Renderer as R, type Theme as T, type LegendItem as a, type LayoutResult as b, type RenderOutput as c, drawMarker as d, slugify as e, Layout as f, getDefaultTheme as g, type LayoutConfig as h, type LegendConfig as i, renderArea as j, renderLegend as k, renderLine as l, measureLegend as m, renderMarkers as n, renderSplitLine as o, renderStep as p, renderZonedArea as q, resetDefaultTheme as r, setDefaultTheme as s, toStepData as t, toStepPoints as u };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ml-time-graph",
3
- "version": "1.7.2",
4
- "description": "TypeScript library for time-series chart rendering — DOM-free SVG output (works in the browser and on the server).",
3
+ "version": "1.8.3",
4
+ "description": "TypeScript library for time-series charts with rich contextual annotation — telemetry, sensors, metrics, logs, finance. DOM-free SVG output, identical in the browser and on the server.",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -37,14 +37,6 @@
37
37
  "GRAPH_JSON_STRUCTURE.md",
38
38
  "LICENSE"
39
39
  ],
40
- "scripts": {
41
- "build": "tsup",
42
- "test": "vitest run",
43
- "typecheck": "tsc --noEmit",
44
- "prepublishOnly": "tsup",
45
- "prepack": "node ../../scripts/sync-changelog.mjs",
46
- "postpack": "node ../../scripts/sync-changelog.mjs --clean"
47
- },
48
40
  "keywords": [
49
41
  "chart",
50
42
  "time-series",
@@ -55,10 +47,17 @@
55
47
  "sensor",
56
48
  "monitoring",
57
49
  "incident-analysis",
58
- "mkt"
50
+ "mkt",
51
+ "annotations",
52
+ "telemetry",
53
+ "metrics",
54
+ "logs",
55
+ "observability",
56
+ "dataviz",
57
+ "visualization"
59
58
  ],
60
59
  "devDependencies": {
61
- "ml-time-analyze": "workspace:*"
60
+ "ml-time-analyze": "0.1.1"
62
61
  },
63
62
  "author": "Michael Lechner",
64
63
  "license": "SEE LICENSE IN LICENSE",
@@ -73,5 +72,10 @@
73
72
  },
74
73
  "engines": {
75
74
  "node": ">=18"
75
+ },
76
+ "scripts": {
77
+ "build": "tsup",
78
+ "test": "vitest run",
79
+ "typecheck": "tsc --noEmit"
76
80
  }
77
- }
81
+ }