@363045841yyt/klinechart 0.7.0 → 0.7.1

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.
Files changed (30) hide show
  1. package/dist/index.cjs +5 -5
  2. package/dist/index.js +12693 -5720
  3. package/dist/klinechart.css +1 -1
  4. package/dist/src/core/chart.d.ts +201 -4
  5. package/dist/src/core/draw/pixelAlign.d.ts +7 -7
  6. package/dist/src/core/indicators/indicatorDefinitionRegistry.d.ts +30 -0
  7. package/dist/src/core/indicators/indicatorMetadata.d.ts +81 -0
  8. package/dist/src/core/indicators/indicatorRegistry.d.ts +57 -0
  9. package/dist/src/core/indicators/rsiState.d.ts +4 -0
  10. package/dist/src/core/indicators/scheduler.d.ts +27 -2
  11. package/dist/src/core/renderers/Indicator/cci.d.ts +2 -1
  12. package/dist/src/core/renderers/Indicator/ene.d.ts +0 -8
  13. package/dist/src/core/renderers/Indicator/fastk.d.ts +2 -1
  14. package/dist/src/core/renderers/Indicator/kst.d.ts +2 -1
  15. package/dist/src/core/renderers/Indicator/macd.d.ts +2 -1
  16. package/dist/src/core/renderers/Indicator/mom.d.ts +2 -1
  17. package/dist/src/core/renderers/Indicator/rsi.d.ts +3 -2
  18. package/dist/src/core/renderers/Indicator/scale/indicator_scale.d.ts +4 -1
  19. package/dist/src/core/renderers/Indicator/stoch.d.ts +2 -1
  20. package/dist/src/core/renderers/Indicator/wmsr.d.ts +2 -1
  21. package/dist/src/core/renderers/candle.d.ts +2 -1
  22. package/dist/src/core/theme/colors.d.ts +207 -228
  23. package/dist/src/plugin/PluginHost.d.ts +3 -0
  24. package/dist/src/plugin/types.d.ts +6 -0
  25. package/dist/src/utils/kLineDraw/MA.d.ts +5 -10
  26. package/dist/src/utils/kLineDraw/axis.d.ts +7 -7
  27. package/dist/src/utils/kLineDraw/grid.d.ts +2 -2
  28. package/dist/src/utils/kLineDraw/kLine.d.ts +1 -1
  29. package/dist/src/utils/kline/format.d.ts +4 -7
  30. package/package.json +111 -103
package/package.json CHANGED
@@ -1,104 +1,112 @@
1
- {
2
- "name": "@363045841yyt/klinechart",
3
- "version": "0.7.0",
4
- "description": "A lightweight financial K-line charting library with first-class AI Agent support, crisp ResizeObserver-driven rendering, and plugin-based architecture. Focused on quantitative trading scenarios with TradingView-level interaction experience.",
5
- "author": "363045841 <slslswbsy@qq.com>",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/363045841/KLineChartQuant.git"
10
- },
11
- "bugs": "https://github.com/363045841/KLineChartQuant/issues",
12
- "homepage": "https://363045841.github.io/KLineChartQuant/",
13
- "keywords": [
14
- "kline-chart",
15
- "plugin-architecture",
16
- "webgl",
17
- "high-performance",
18
- "ai",
19
- "crisp-rendering",
20
- "sharp-rendering",
21
- "agent",
22
- "ai-chart",
23
- "modern-ui",
24
- "device-pixel-ratio",
25
- "candlestick-chart",
26
- "financial-chart",
27
- "tradingview",
28
- "canvas",
29
- "rendering-engine",
30
- "resizeobserver",
31
- "device-pixel-content-box",
32
- "drawing-tools",
33
- "chart-drawing",
34
- "trend-line",
35
- "fibonacci",
36
- "pixel-perfect",
37
- "responsive",
38
- "visualization",
39
- "quantitative-trading",
40
- "technical-analysis",
41
- "typescript"
42
- ],
43
- "type": "module",
44
- "engines": {
45
- "node": "^20.19.0 || >=22.12.0"
46
- },
47
- "scripts": {
48
- "dev": "vite",
49
- "dev:lan": "vite --host 0.0.0.0",
50
- "stockbao": "cd .. && cd stockbao && uv run python ./server.py",
51
- "aktools": "cd .. && cd aktoolshttp && uv run python -m aktools",
52
- "build": "run-p type-check \"build-only {@}\" --",
53
- "build-only": "vite build",
54
- "build:demo": "vite build --config vite.demo.config.ts",
55
- "preview": "vite preview",
56
- "preview:demo": "vite preview --config vite.demo.config.ts",
57
- "type-check": "vue-tsc --build",
58
- "test:unit": "vitest",
59
- "format": "prettier --write --experimental-cli src/",
60
- "prepublishOnly": "pnpm run build-only"
61
- },
62
- "main": "./dist/index.cjs",
63
- "module": "./dist/index.js",
64
- "types": "./dist/index.d.ts",
65
- "exports": {
66
- ".": {
67
- "types": "./dist/index.d.ts",
68
- "import": "./dist/index.js",
69
- "require": "./dist/index.cjs"
70
- },
71
- "./style.css": "./dist/klinechart.css"
72
- },
73
- "files": [
74
- "dist"
75
- ],
76
- "peerDependencies": {
77
- "vue": "^3.5.0"
78
- },
79
- "dependencies": {
80
- "ajv": "^8.20.0"
81
- },
82
- "devDependencies": {
83
- "@iconify-json/tabler": "^1.2.34",
84
- "@tsconfig/node24": "^24.0.4",
85
- "@types/jsdom": "^28.0.1",
86
- "@types/node": "^25.6.0",
87
- "@vitejs/plugin-vue": "^6.0.6",
88
- "@vitest/coverage-v8": "^4.1.5",
89
- "@vue/test-utils": "^2.4.10",
90
- "@vue/tsconfig": "^0.9.1",
91
- "jsdom": "^29.1.1",
92
- "npm-run-all2": "^8.0.4",
93
- "prettier": "3.8.3",
94
- "typedoc": "^0.28.19",
95
- "typescript": "~6.0.3",
96
- "unplugin-icons": "^23.0.1",
97
- "unplugin-vue-components": "^32.0.0",
98
- "vite": "^8.0.10",
99
- "vite-plugin-dts": "^4.5.4",
100
- "vite-plugin-vue-devtools": "^8.1.1",
101
- "vitest": "^4.1.5",
102
- "vue-tsc": "^3.2.8"
103
- }
1
+ {
2
+ "name": "@363045841yyt/klinechart",
3
+ "version": "0.7.1",
4
+ "description": "A lightweight financial K-line charting library with first-class AI Agent support, crisp ResizeObserver-driven rendering, and plugin-based architecture. Focused on quantitative trading scenarios with TradingView-level interaction experience.",
5
+ "author": "363045841 <slslswbsy@qq.com>",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/363045841/KLineChartQuant.git"
10
+ },
11
+ "bugs": "https://github.com/363045841/KLineChartQuant/issues",
12
+ "homepage": "https://363045841.github.io/KLineChartQuant/",
13
+ "keywords": [
14
+ "kline-chart",
15
+ "plugin-architecture",
16
+ "webgl",
17
+ "high-performance",
18
+ "ai",
19
+ "crisp-rendering",
20
+ "sharp-rendering",
21
+ "agent",
22
+ "ai-chart",
23
+ "modern-ui",
24
+ "device-pixel-ratio",
25
+ "candlestick-chart",
26
+ "financial-chart",
27
+ "tradingview",
28
+ "canvas",
29
+ "rendering-engine",
30
+ "resizeobserver",
31
+ "device-pixel-content-box",
32
+ "drawing-tools",
33
+ "chart-drawing",
34
+ "trend-line",
35
+ "fibonacci",
36
+ "pixel-perfect",
37
+ "responsive",
38
+ "visualization",
39
+ "quantitative-trading",
40
+ "technical-analysis",
41
+ "typescript"
42
+ ],
43
+ "type": "module",
44
+ "engines": {
45
+ "node": "^20.19.0 || >=22.12.0"
46
+ },
47
+ "scripts": {
48
+ "dev": "vite",
49
+ "dev:lan": "vite --host 0.0.0.0",
50
+ "stockbao": "cd .. && cd stockbao && uv run python ./server.py",
51
+ "aktools": "cd .. && cd aktoolshttp && uv run python -m aktools",
52
+ "build": "run-p type-check \"build-only {@}\" --",
53
+ "build-only": "vite build",
54
+ "build:demo": "vite build --config vite.demo.config.ts",
55
+ "preview": "vite preview",
56
+ "preview:demo": "vite preview --config vite.demo.config.ts",
57
+ "type-check": "vue-tsc --build",
58
+ "test:unit": "vitest",
59
+ "test:packages": "pnpm -r test",
60
+ "size:packages": "pnpm -r --workspace-concurrency=4 size",
61
+ "lint:publish": "pnpm -r --workspace-concurrency=4 lint:publish",
62
+ "lint:types": "pnpm -r --workspace-concurrency=4 lint:types",
63
+ "format": "prettier --write --experimental-cli src/",
64
+ "prepublishOnly": "pnpm run build-only"
65
+ },
66
+ "main": "./dist/index.cjs",
67
+ "module": "./dist/index.js",
68
+ "types": "./dist/index.d.ts",
69
+ "exports": {
70
+ ".": {
71
+ "types": "./dist/index.d.ts",
72
+ "import": "./dist/index.js",
73
+ "require": "./dist/index.cjs"
74
+ },
75
+ "./style.css": "./dist/klinechart.css"
76
+ },
77
+ "files": [
78
+ "dist"
79
+ ],
80
+ "peerDependencies": {
81
+ "vue": "^3.5.0"
82
+ },
83
+ "dependencies": {
84
+ "ajv": "^8.20.0"
85
+ },
86
+ "devDependencies": {
87
+ "@babel/core": "^7.29.0",
88
+ "@babel/plugin-proposal-decorators": "^7.29.0",
89
+ "@babel/plugin-transform-typescript": "^7.29.7",
90
+ "@iconify-json/tabler": "^1.2.34",
91
+ "@tsconfig/node24": "^24.0.4",
92
+ "@types/jsdom": "^28.0.1",
93
+ "@types/node": "^25.9.1",
94
+ "@vitejs/plugin-vue": "^6.0.6",
95
+ "@vitest/coverage-v8": "^4.1.5",
96
+ "@vue/test-utils": "^2.4.10",
97
+ "@vue/tsconfig": "^0.9.1",
98
+ "jsdom": "^29.1.1",
99
+ "npm-run-all2": "^8.0.4",
100
+ "prettier": "3.8.3",
101
+ "typedoc": "^0.28.19",
102
+ "typescript": "~6.0.3",
103
+ "unplugin-icons": "^23.0.1",
104
+ "unplugin-vue-components": "^32.1.0",
105
+ "vite": "^8.0.10",
106
+ "vite-plugin-babel": "^1.3.2",
107
+ "vite-plugin-dts": "^4.5.4",
108
+ "vite-plugin-vue-devtools": "^8.1.1",
109
+ "vitest": "^4.1.5",
110
+ "vue-tsc": "^3.3.2"
111
+ }
104
112
  }