tsichart-core 2.0.0-beta.1 → 2.0.0-beta.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/README.md +8 -8
- package/package.json +10 -3
- package/src/styles.d.ts +25 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tsichart-core
|
|
2
2
|
|
|
3
3
|
Framework-agnostic time series charting library for building interactive data visualizations.
|
|
4
4
|
|
|
@@ -15,18 +15,18 @@ Framework-agnostic time series charting library for building interactive data vi
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install
|
|
18
|
+
npm install tsichart-core
|
|
19
19
|
# or
|
|
20
|
-
pnpm add
|
|
20
|
+
pnpm add tsichart-core
|
|
21
21
|
# or
|
|
22
|
-
yarn add
|
|
22
|
+
yarn add tsichart-core
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Quick Start
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
|
-
import { LineChart } from '
|
|
29
|
-
import '
|
|
28
|
+
import { LineChart } from 'tsichart-core';
|
|
29
|
+
import 'tsichart-core/styles';
|
|
30
30
|
|
|
31
31
|
// Create a container element
|
|
32
32
|
const container = document.getElementById('chart-container');
|
|
@@ -68,8 +68,8 @@ chart.render(data, options, aggregateExpressionOptions);
|
|
|
68
68
|
## Usage with Frameworks
|
|
69
69
|
|
|
70
70
|
For framework-specific wrappers, see:
|
|
71
|
-
- **React**:
|
|
72
|
-
- **Vue**:
|
|
71
|
+
- **React**: `tsichart-react`
|
|
72
|
+
- **Vue**: `tsichart-vue`
|
|
73
73
|
|
|
74
74
|
## Documentation
|
|
75
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsichart-core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"description": "Framework-agnostic time series charting library - Core package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"timeseries",
|
|
@@ -42,8 +42,14 @@
|
|
|
42
42
|
"import": "./dist/utils/index.mjs",
|
|
43
43
|
"require": "./dist/utils/index.js"
|
|
44
44
|
},
|
|
45
|
-
"./styles":
|
|
46
|
-
|
|
45
|
+
"./styles": {
|
|
46
|
+
"types": "./src/styles.d.ts",
|
|
47
|
+
"default": "./dist/styles/index.css"
|
|
48
|
+
},
|
|
49
|
+
"./styles/*": {
|
|
50
|
+
"types": "./src/styles.d.ts",
|
|
51
|
+
"default": "./dist/styles/*.css"
|
|
52
|
+
}
|
|
47
53
|
},
|
|
48
54
|
"sideEffects": [
|
|
49
55
|
"*.css",
|
|
@@ -51,6 +57,7 @@
|
|
|
51
57
|
],
|
|
52
58
|
"files": [
|
|
53
59
|
"dist",
|
|
60
|
+
"src/styles.d.ts",
|
|
54
61
|
"README.md",
|
|
55
62
|
"LICENSE"
|
|
56
63
|
],
|
package/src/styles.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type declarations for CSS imports
|
|
3
|
+
* This allows TypeScript to resolve CSS module imports without errors
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
declare module 'tsichart-core/styles' {
|
|
7
|
+
const styles: string;
|
|
8
|
+
export default styles;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module 'tsichart-core/styles/*' {
|
|
12
|
+
const styles: string;
|
|
13
|
+
export default styles;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Generic CSS module declarations
|
|
17
|
+
declare module '*.css' {
|
|
18
|
+
const content: string;
|
|
19
|
+
export default content;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare module '*.scss' {
|
|
23
|
+
const content: string;
|
|
24
|
+
export default content;
|
|
25
|
+
}
|