@tinta-lang/charts 0.1.0-dev.0 → 0.1.19
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 +13 -0
- package/package.json +13 -4
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @tinta-lang/charts
|
|
2
|
+
|
|
3
|
+
Turn prepared tinta chart data into SVG-ready geometry. The engine prepares values; `chartScene` places the visible marks, axes and labels for a requested width.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { chartScene } from "@tinta-lang/charts";
|
|
7
|
+
|
|
8
|
+
const scene = chartScene(preparedChart, 720);
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The input must be a prepared chart from `@tinta-lang/engine`. This package does not create DOM elements or accept an arbitrary chart configuration language.
|
|
12
|
+
|
|
13
|
+
See the [reader and figures API](https://github.com/planta7/tinta/blob/main/docs/12_READER_API.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinta-lang/charts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
|
+
"description": "Create SVG-ready scenes for interactive tinta document charts.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tinta",
|
|
7
|
+
"charts",
|
|
8
|
+
"svg",
|
|
9
|
+
"documents"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/planta7/tinta/blob/main/packages/charts/README.md",
|
|
4
12
|
"private": false,
|
|
5
13
|
"type": "module",
|
|
6
14
|
"license": "MIT",
|
|
@@ -9,7 +17,7 @@
|
|
|
9
17
|
},
|
|
10
18
|
"publishConfig": {
|
|
11
19
|
"access": "public",
|
|
12
|
-
"tag": "
|
|
20
|
+
"tag": "latest"
|
|
13
21
|
},
|
|
14
22
|
"exports": {
|
|
15
23
|
".": {
|
|
@@ -18,14 +26,15 @@
|
|
|
18
26
|
}
|
|
19
27
|
},
|
|
20
28
|
"dependencies": {
|
|
21
|
-
"@tinta-lang/types": "0.1.
|
|
22
|
-
"@tinta-lang/engine": "0.1.
|
|
29
|
+
"@tinta-lang/types": "0.1.19",
|
|
30
|
+
"@tinta-lang/engine": "0.1.19",
|
|
23
31
|
"d3-array": "3.2.4",
|
|
24
32
|
"d3-scale": "4.0.2",
|
|
25
33
|
"d3-shape": "3.2.0"
|
|
26
34
|
},
|
|
27
35
|
"files": [
|
|
28
36
|
"LICENSE",
|
|
37
|
+
"README.md",
|
|
29
38
|
"THIRD_PARTY_NOTICES.txt",
|
|
30
39
|
"dist/index.d.ts",
|
|
31
40
|
"dist/index.js"
|