@tradecanvas/chart 0.1.2 → 0.1.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/LICENSE +21 -0
- package/README.md +8 -2
- package/package.json +24 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 TradeCanvas Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -20,6 +20,10 @@ Most chart libraries make you choose: pretty charts with no trading features, or
|
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
npm install @tradecanvas/chart
|
|
23
|
+
# or
|
|
24
|
+
pnpm add @tradecanvas/chart
|
|
25
|
+
# or
|
|
26
|
+
yarn add @tradecanvas/chart
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
## Quick Start
|
|
@@ -255,8 +259,10 @@ interface OHLCBar {
|
|
|
255
259
|
|---|---|
|
|
256
260
|
| [Live Demo](https://bonguynvan.github.io/tradecanvas/) | Full-featured demo with live Binance data |
|
|
257
261
|
| [examples/basic](./examples/basic/) | Vanilla JS + live Binance streaming |
|
|
258
|
-
| [examples/vanilla-static](./examples/vanilla-static/) | Vanilla JS + static data (
|
|
259
|
-
| [examples/react](./examples/react/) | React
|
|
262
|
+
| [examples/vanilla-static](./examples/vanilla-static/) | Vanilla JS + static data (offline) |
|
|
263
|
+
| [examples/react](./examples/react/) | React 19 integration |
|
|
264
|
+
| [examples/svelte](./examples/svelte/) | Svelte 5 integration |
|
|
265
|
+
| [examples/vue](./examples/vue/) | Vue 3 integration |
|
|
260
266
|
|
|
261
267
|
## Browser Support
|
|
262
268
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradecanvas/chart",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "High-performance canvas trading chart with built-in indicators, drawing tools, and real-time streaming. Zero external dependencies.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,7 +13,19 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": false,
|
|
16
|
-
"keywords": [
|
|
16
|
+
"keywords": [
|
|
17
|
+
"trading",
|
|
18
|
+
"chart",
|
|
19
|
+
"canvas",
|
|
20
|
+
"candlestick",
|
|
21
|
+
"ohlc",
|
|
22
|
+
"indicators",
|
|
23
|
+
"drawing-tools",
|
|
24
|
+
"technical-analysis",
|
|
25
|
+
"financial-chart",
|
|
26
|
+
"real-time",
|
|
27
|
+
"typescript"
|
|
28
|
+
],
|
|
17
29
|
"homepage": "https://github.com/bonguynvan/tradecanvas",
|
|
18
30
|
"main": "./dist/index.cjs",
|
|
19
31
|
"module": "./dist/index.js",
|
|
@@ -25,15 +37,17 @@
|
|
|
25
37
|
"require": "./dist/index.cjs"
|
|
26
38
|
}
|
|
27
39
|
},
|
|
28
|
-
"files": [
|
|
40
|
+
"files": [
|
|
41
|
+
"dist",
|
|
42
|
+
"README.md"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@tradecanvas/commons": "0.1.3",
|
|
46
|
+
"@tradecanvas/core": "0.1.3"
|
|
47
|
+
},
|
|
29
48
|
"scripts": {
|
|
30
49
|
"build": "vite build",
|
|
31
50
|
"dev": "vite build --watch",
|
|
32
|
-
"clean": "rm -rf dist"
|
|
33
|
-
"prepublishOnly": "pnpm build"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@tradecanvas/commons": "workspace:*",
|
|
37
|
-
"@tradecanvas/core": "workspace:*"
|
|
51
|
+
"clean": "rm -rf dist"
|
|
38
52
|
}
|
|
39
|
-
}
|
|
53
|
+
}
|