apex-analyst 0.1.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/LICENSE +97 -0
- package/README.md +184 -0
- package/apex-analyst.es.min.js +1 -0
- package/apex-analyst.min.js +1 -0
- package/demo/index.html +127 -0
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -0
- package/lib/Analyst.d.ts +69 -0
- package/lib/Analyst.d.ts.map +1 -0
- package/lib/AnalystPanel.d.ts +81 -0
- package/lib/AnalystPanel.d.ts.map +1 -0
- package/lib/SeriesModel.d.ts +39 -0
- package/lib/SeriesModel.d.ts.map +1 -0
- package/lib/clip.d.ts +25 -0
- package/lib/clip.d.ts.map +1 -0
- package/lib/emitLike.d.ts +73 -0
- package/lib/emitLike.d.ts.map +1 -0
- package/lib/format.d.ts +27 -0
- package/lib/format.d.ts.map +1 -0
- package/lib/plugin.d.ts +37 -0
- package/lib/plugin.d.ts.map +1 -0
- package/lib/registry.d.ts +40 -0
- package/lib/registry.d.ts.map +1 -0
- package/lib/stats/Descriptive.d.ts +50 -0
- package/lib/stats/Descriptive.d.ts.map +1 -0
- package/lib/stats/Regression.d.ts +42 -0
- package/lib/stats/Regression.d.ts.map +1 -0
- package/lib/testing/fakeWeave.d.ts +59 -0
- package/lib/testing/fakeWeave.d.ts.map +1 -0
- package/lib/testing/jsdomSetup.d.ts +31 -0
- package/lib/testing/jsdomSetup.d.ts.map +1 -0
- package/lib/testing/realChart.d.ts +95 -0
- package/lib/testing/realChart.d.ts.map +1 -0
- package/lib/tools/DataTable.d.ts +5 -0
- package/lib/tools/DataTable.d.ts.map +1 -0
- package/lib/tools/SummaryStats.d.ts +5 -0
- package/lib/tools/SummaryStats.d.ts.map +1 -0
- package/lib/tools/TrendLine.d.ts +5 -0
- package/lib/tools/TrendLine.d.ts.map +1 -0
- package/lib/tools/types.d.ts +45 -0
- package/lib/tools/types.d.ts.map +1 -0
- package/lib/weave.d.ts +169 -0
- package/lib/weave.d.ts.map +1 -0
- package/package.json +30 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realChart.d.ts","sourceRoot":"","sources":["../../../../libs/analyst/src/lib/testing/realChart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH,6EAA6E;AAC7E,UAAU,cAAc;IACtB,CAAC,EAAE;QACD,MAAM,EAAE;YACN,MAAM,EAAE,KAAK,CAAC;gBAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;aAAC,CAAC,CAAC;YACjD,UAAU,CAAC,EAAE;gBAAC,OAAO,CAAC,EAAE,OAAO,CAAC;gBAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;aAAC,CAAC;SAC9D,CAAC;QACF,OAAO,EAAE;YACP,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;YACnB,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;YACpB,aAAa,EAAE,KAAK,CAAC;gBAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;aAAC,CAAC,CAAC;SACzD,CAAC;KACH,CAAC;IACF,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3B,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClD,WAAW,IAAI,IAAI,CAAC;IACpB,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,cAAc,CAAC;IACtB,EAAE,EAAE,WAAW,CAAC;IAChB,kEAAkE;IAClE,KAAK,IAAI,MAAM,EAAE,CAAC;IAClB,yEAAyE;IACzE,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,CAAC;IACzC,wEAAwE;IACxE,CAAC,CAAC,IAAI,EAAE,MAAM,GAA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AAM,SAAS,EAAE,SAsEhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SummaryStats.d.ts","sourceRoot":"","sources":["../../../../libs/analyst/src/lib/tools/SummaryStats.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAYvC,QAAA,MAAM,YAAY,EAAE,SA6EnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrendLine.d.ts","sourceRoot":"","sources":["../../../../libs/analyst/src/lib/tools/TrendLine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,EAAiB,UAAU,EAAC,MAAM,SAAS,CAAC;AA8BxD,QAAA,MAAM,SAAS,EAAE,UA8DhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { WeaveLayer, WeaveScales } from '../weave';
|
|
2
|
+
import { AnalystModel } from '../SeriesModel';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* What a toggle tool draws with.
|
|
6
|
+
*
|
|
7
|
+
* Valid for ONE paint: the host wipes plugin layers on every draw pass, so the
|
|
8
|
+
* surface is handed to `draw()` fresh each time and must not be cached.
|
|
9
|
+
*/
|
|
10
|
+
export interface OverlaySurface {
|
|
11
|
+
/** The plugin's drawing group, already cleared for this paint. */
|
|
12
|
+
layer: WeaveLayer;
|
|
13
|
+
/**
|
|
14
|
+
* Data-to-pixel projection for the current render, rebased to the LAYER'S
|
|
15
|
+
* coordinate space: the domain edges map to 0 and gridWidth/gridHeight, no
|
|
16
|
+
* layout offset. Tools draw with these and land on the data.
|
|
17
|
+
*/
|
|
18
|
+
scales: WeaveScales;
|
|
19
|
+
/** The chart's own colour for series `i`, so drawings inherit the palette. */
|
|
20
|
+
seriesColor(i: number): string | undefined;
|
|
21
|
+
/** The chart's text colour, the fallback when a series has none yet. */
|
|
22
|
+
foreColor: string;
|
|
23
|
+
}
|
|
24
|
+
interface ToolBase {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
appliesTo(model: AnalystModel): boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface PanelTool extends ToolBase {
|
|
30
|
+
kind: 'panel';
|
|
31
|
+
render(model: AnalystModel, into: HTMLElement): void;
|
|
32
|
+
}
|
|
33
|
+
export interface ToggleTool extends ToolBase {
|
|
34
|
+
kind: 'toggle';
|
|
35
|
+
/**
|
|
36
|
+
* Paint this tool's drawing for the current model. Called on every render
|
|
37
|
+
* while the tool is on, because the host wipes plugin layers each pass;
|
|
38
|
+
* geometry must be computed from the model and `surface.scales` here, never
|
|
39
|
+
* remembered in pixels.
|
|
40
|
+
*/
|
|
41
|
+
draw(model: AnalystModel, surface: OverlaySurface): void;
|
|
42
|
+
}
|
|
43
|
+
export type Tool = PanelTool | ToggleTool;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../libs/analyst/src/lib/tools/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,KAAK,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB,8EAA8E;IAC9E,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC3C,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC;CACzC;AAED,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,UAAW,SAAQ,QAAQ;IAC1C,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;CAC1D;AAED,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC"}
|
package/lib/weave.d.ts
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The slice of the ApexCharts Weave plugin API this package relies on.
|
|
3
|
+
*
|
|
4
|
+
* Declared here rather than imported from `apexcharts`, because the host's
|
|
5
|
+
* shipped types describe the chart's own options and not the plugin facade, and
|
|
6
|
+
* because writing the contract down is what makes it obvious when the host
|
|
7
|
+
* changes underneath us. `layer()` and `scales` are v1 of the Weave contract;
|
|
8
|
+
* the v2 additions (`raw`, `info`, `categories`) exist specifically so an
|
|
9
|
+
* analysis layer can live outside the charting library.
|
|
10
|
+
*
|
|
11
|
+
* This package DRAWS on the chart rather than adding series to it. The host
|
|
12
|
+
* reads `markers`, `stroke`, `dataLabels` and the rest as arrays indexed by
|
|
13
|
+
* series position, so a guest that adds a series can only style it by writing
|
|
14
|
+
* config it does not own. The layer has none of that: no legend entry, no
|
|
15
|
+
* config writes, no series index arithmetic, and switching a tool off cannot
|
|
16
|
+
* leave a residue in the caller's options.
|
|
17
|
+
*
|
|
18
|
+
* @module weave
|
|
19
|
+
*/
|
|
20
|
+
/** One series as the host presents it to a plugin. */
|
|
21
|
+
export interface WeaveSeries {
|
|
22
|
+
name?: string;
|
|
23
|
+
/** true when the viewer has toggled the series off in the legend. */
|
|
24
|
+
hidden?: boolean;
|
|
25
|
+
color?: string;
|
|
26
|
+
/** Normalised, position-aligned; `y` is null where the series has a gap. */
|
|
27
|
+
points: Array<{
|
|
28
|
+
x: number;
|
|
29
|
+
y: number | null;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* The caller's OWN data array, untouched by parsing (v2).
|
|
33
|
+
*
|
|
34
|
+
* The only reliable template for writing a derived series back: the three
|
|
35
|
+
* accepted shapes (`[1,2]`, `[{x,y}]`, `[[x,y]]`) are not interchangeable and
|
|
36
|
+
* handing back the wrong one parses to all-null and draws nothing, silently.
|
|
37
|
+
*/
|
|
38
|
+
raw: unknown[];
|
|
39
|
+
}
|
|
40
|
+
/** What kind of chart this is (v2). */
|
|
41
|
+
export interface WeaveChartInfo {
|
|
42
|
+
type: string;
|
|
43
|
+
axisChart: boolean;
|
|
44
|
+
datetimeX: boolean;
|
|
45
|
+
horizontalBars: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A plugin's own `<g>` inside the chart's SVG, wrapped in renderer-agnostic
|
|
49
|
+
* primitives. Coordinates are PIXELS; convert from data through {@link
|
|
50
|
+
* WeaveScales}. The host wipes every plugin layer at the start of each draw
|
|
51
|
+
* pass, so a handle must be re-acquired inside the draw handler rather than
|
|
52
|
+
* cached: a cached handle points at a detached node and its writes vanish
|
|
53
|
+
* silently.
|
|
54
|
+
*
|
|
55
|
+
* Because the group lives inside the chart's SVG (not in an overlay element
|
|
56
|
+
* positioned over it), the chart's own PNG/SVG exports include whatever is
|
|
57
|
+
* drawn here, and nothing has to be re-synced when the page resizes.
|
|
58
|
+
*/
|
|
59
|
+
export interface WeaveLayer {
|
|
60
|
+
/** The group node itself, for the attributes the primitives do not cover. */
|
|
61
|
+
readonly node: SVGGElement;
|
|
62
|
+
path(opts: {
|
|
63
|
+
d: string;
|
|
64
|
+
stroke?: string;
|
|
65
|
+
width?: number;
|
|
66
|
+
fill?: string;
|
|
67
|
+
opacity?: number;
|
|
68
|
+
dash?: number;
|
|
69
|
+
className?: string;
|
|
70
|
+
}): unknown;
|
|
71
|
+
line(opts: {
|
|
72
|
+
x1: number;
|
|
73
|
+
y1: number;
|
|
74
|
+
x2: number;
|
|
75
|
+
y2: number;
|
|
76
|
+
stroke?: string;
|
|
77
|
+
width?: number;
|
|
78
|
+
dash?: number;
|
|
79
|
+
}): unknown;
|
|
80
|
+
rect(opts: {
|
|
81
|
+
x?: number;
|
|
82
|
+
y?: number;
|
|
83
|
+
w?: number;
|
|
84
|
+
h?: number;
|
|
85
|
+
r?: number;
|
|
86
|
+
fill?: string;
|
|
87
|
+
stroke?: string | null;
|
|
88
|
+
opacity?: number;
|
|
89
|
+
}): unknown;
|
|
90
|
+
circle(opts: {
|
|
91
|
+
cx?: number;
|
|
92
|
+
cy?: number;
|
|
93
|
+
r?: number;
|
|
94
|
+
fill?: string;
|
|
95
|
+
stroke?: string | null;
|
|
96
|
+
}): unknown;
|
|
97
|
+
text(opts: {
|
|
98
|
+
x?: number;
|
|
99
|
+
y?: number;
|
|
100
|
+
text?: string;
|
|
101
|
+
color?: string;
|
|
102
|
+
size?: number;
|
|
103
|
+
anchor?: string;
|
|
104
|
+
weight?: number;
|
|
105
|
+
}): unknown;
|
|
106
|
+
clear(): WeaveLayer;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Data-to-pixel projection, built by the host from the SAME ratios the series
|
|
110
|
+
* were painted with, so plugin pixels align with series pixels by construction.
|
|
111
|
+
* Refreshed on every render, which includes each zoom and pan frame: geometry
|
|
112
|
+
* kept in data space and projected at draw time is correct under all of them.
|
|
113
|
+
*
|
|
114
|
+
* Null on non-axis charts (pie / donut / radialBar) and before first paint.
|
|
115
|
+
*/
|
|
116
|
+
export interface WeaveScales {
|
|
117
|
+
/** data x to pixel x */
|
|
118
|
+
x(v: number): number;
|
|
119
|
+
/** data y to pixel y, per y axis */
|
|
120
|
+
y(v: number, axis?: number): number;
|
|
121
|
+
/** the visible x range, which zooming narrows */
|
|
122
|
+
domainX: [number, number];
|
|
123
|
+
domainY(axis?: number): [number, number];
|
|
124
|
+
gridWidth: number;
|
|
125
|
+
gridHeight: number;
|
|
126
|
+
}
|
|
127
|
+
export interface WeaveTheme {
|
|
128
|
+
mode: string;
|
|
129
|
+
foreColor: string;
|
|
130
|
+
seriesColor(i: number): string | undefined;
|
|
131
|
+
}
|
|
132
|
+
/** The frozen facade handed to `setup()`. */
|
|
133
|
+
export interface WeaveAPI {
|
|
134
|
+
name: string;
|
|
135
|
+
version: number;
|
|
136
|
+
options: Readonly<Record<string, unknown>>;
|
|
137
|
+
on(hook: WeaveHook, fn: (payload?: unknown) => void): WeaveAPI;
|
|
138
|
+
off(hook: WeaveHook, fn: (payload?: unknown) => void): WeaveAPI;
|
|
139
|
+
/** Per-chart scratch state: survives updates, dropped on destroy. */
|
|
140
|
+
store: Record<string, unknown>;
|
|
141
|
+
/**
|
|
142
|
+
* This plugin's drawing group. Acquire INSIDE each draw pass; see
|
|
143
|
+
* {@link WeaveLayer} for why a cached handle is a bug.
|
|
144
|
+
*/
|
|
145
|
+
layer(opts?: {
|
|
146
|
+
z?: 'front' | 'behind';
|
|
147
|
+
className?: string;
|
|
148
|
+
}): WeaveLayer;
|
|
149
|
+
/** Current projection, or null on a non-axis chart. */
|
|
150
|
+
readonly scales: WeaveScales | null;
|
|
151
|
+
readonly data: WeaveSeries[];
|
|
152
|
+
readonly info: WeaveChartInfo;
|
|
153
|
+
readonly categories: string[];
|
|
154
|
+
readonly el: HTMLElement | null;
|
|
155
|
+
theme: WeaveTheme;
|
|
156
|
+
emit(name: string, detail?: unknown): void;
|
|
157
|
+
}
|
|
158
|
+
export type WeaveHook = 'afterParse' | 'afterScales' | 'draw' | 'afterUpdate' | 'destroy';
|
|
159
|
+
export interface WeavePluginDefinition {
|
|
160
|
+
name: string;
|
|
161
|
+
apiVersion?: number;
|
|
162
|
+
setup(api: WeaveAPI): void;
|
|
163
|
+
destroy?(api: WeaveAPI): void;
|
|
164
|
+
}
|
|
165
|
+
/** The parts of the ApexCharts constructor this package touches. */
|
|
166
|
+
export interface ApexChartsCtor {
|
|
167
|
+
registerPlugin(def: WeavePluginDefinition): unknown;
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=weave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weave.d.ts","sourceRoot":"","sources":["../../../libs/analyst/src/lib/weave.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,sDAAsD;AACtD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,MAAM,EAAE,KAAK,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAC,CAAC,CAAC;IAC7C;;;;;;OAMG;IACH,GAAG,EAAE,OAAO,EAAE,CAAC;CAChB;AAED,uCAAuC;AACvC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,UAAU;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,IAAI,CAAC,IAAI,EAAE;QACT,CAAC,EAAE,MAAM,CAAC;QACV,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE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,OAAO,GAAG,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,UAAU,CAAC;IACvE,uDAAuD;IACvD,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,aAAa,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;AAE1F,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC/B;AAED,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,GAAG,EAAE,qBAAqB,GAAG,OAAO,CAAC;CACrD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "apex-analyst",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "In-chart analysis toolbar: summary statistics, data inspection and trend fitting, via the Weave plugin API.",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/apexcharts/projects",
|
|
10
|
+
"directory": "libs/analyst"
|
|
11
|
+
},
|
|
12
|
+
"main": "./apex-analyst.min.js",
|
|
13
|
+
"module": "./apex-analyst.es.min.js",
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": {
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"default": "./apex-analyst.es.min.js"
|
|
20
|
+
},
|
|
21
|
+
"require": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"default": "./apex-analyst.min.js"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"apexcharts": ">=7.2.0-rc.1"
|
|
29
|
+
}
|
|
30
|
+
}
|