ml-time-graph 1.7.1 → 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.
- package/CHANGELOG.md +809 -0
- package/QUICKSTART_GRAPH_BUILDER.de.md +1 -1
- package/README.de.md +125 -16
- package/README.md +122 -17
- package/SKILLS.md +157 -4
- package/USAGE.md +326 -3
- package/dist/analyze/index.d.ts +54 -1
- package/dist/analyze/index.js +2 -2
- package/dist/index.d.ts +107 -7
- package/dist/index.js +27 -26
- package/dist/interaction/index.d.ts +1 -1
- package/dist/interaction/index.js +1 -1
- package/dist/internals.d.ts +104 -26
- package/dist/internals.js +15 -15
- package/dist/{scale-D6NtEaUB.d.ts → scale-CoTgJ27U.d.ts} +71 -12
- package/dist/{series_renderer-COVNvq2x.d.ts → slug-0lFk9pY7.d.ts} +18 -2
- package/package.json +19 -12
|
@@ -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-
|
|
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
|
-
|
|
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.
|
|
4
|
-
"description": "TypeScript library for time-series
|
|
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",
|
|
@@ -31,17 +31,12 @@
|
|
|
31
31
|
"README.md",
|
|
32
32
|
"README.de.md",
|
|
33
33
|
"USAGE.md",
|
|
34
|
+
"CHANGELOG.md",
|
|
34
35
|
"QUICKSTART_GRAPH_BUILDER.md",
|
|
35
36
|
"QUICKSTART_GRAPH_BUILDER.de.md",
|
|
36
37
|
"GRAPH_JSON_STRUCTURE.md",
|
|
37
38
|
"LICENSE"
|
|
38
39
|
],
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsup",
|
|
41
|
-
"test": "vitest run",
|
|
42
|
-
"typecheck": "tsc --noEmit",
|
|
43
|
-
"prepublishOnly": "tsup"
|
|
44
|
-
},
|
|
45
40
|
"keywords": [
|
|
46
41
|
"chart",
|
|
47
42
|
"time-series",
|
|
@@ -52,14 +47,21 @@
|
|
|
52
47
|
"sensor",
|
|
53
48
|
"monitoring",
|
|
54
49
|
"incident-analysis",
|
|
55
|
-
"mkt"
|
|
50
|
+
"mkt",
|
|
51
|
+
"annotations",
|
|
52
|
+
"telemetry",
|
|
53
|
+
"metrics",
|
|
54
|
+
"logs",
|
|
55
|
+
"observability",
|
|
56
|
+
"dataviz",
|
|
57
|
+
"visualization"
|
|
56
58
|
],
|
|
57
59
|
"devDependencies": {
|
|
58
|
-
"ml-time-analyze": "
|
|
60
|
+
"ml-time-analyze": "0.1.1"
|
|
59
61
|
},
|
|
60
62
|
"author": "Michael Lechner",
|
|
61
63
|
"license": "SEE LICENSE IN LICENSE",
|
|
62
|
-
"homepage": "https://
|
|
64
|
+
"homepage": "https://gitlab.com/mlc0911/mlctimegraph",
|
|
63
65
|
"repository": {
|
|
64
66
|
"type": "git",
|
|
65
67
|
"url": "git+https://gitlab.com/mlc0911/mlctimegraph.git",
|
|
@@ -70,5 +72,10 @@
|
|
|
70
72
|
},
|
|
71
73
|
"engines": {
|
|
72
74
|
"node": ">=18"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build": "tsup",
|
|
78
|
+
"test": "vitest run",
|
|
79
|
+
"typecheck": "tsc --noEmit"
|
|
73
80
|
}
|
|
74
|
-
}
|
|
81
|
+
}
|