@363045841yyt/klinechart 0.4.7 → 0.5.0-alpha.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/README.md +7 -1
- package/dist/index.cjs +9 -9
- package/dist/index.js +2588 -1395
- package/dist/klinechart.css +1 -1
- package/dist/src/App.vue.d.ts +3 -1
- package/dist/src/api/data/unified.d.ts +6 -2
- package/dist/src/components/KLineChart.vue.d.ts +6 -1
- package/dist/src/components/LeftToolbar.vue.d.ts +17 -0
- package/dist/src/core/chart.d.ts +5 -0
- package/dist/src/core/drawing/index.d.ts +37 -0
- package/dist/src/core/drawing/interaction.d.ts +40 -0
- package/dist/src/core/drawing/plugin.d.ts +8 -0
- package/dist/src/plugin/types.d.ts +106 -8
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
- **框架无关**:核心逻辑完全独立,不依赖特定框架
|
|
17
17
|
- **插件化架构**:渲染器插件支持动态注册、配置和生命周期管理
|
|
18
18
|
- **量价关系标注**:自动识别并标注量价齐升、量价背离、量增价跌、量缩价跌四种形态
|
|
19
|
+
- **绘图工具**(v0.5 预览):支持基础线条绘制,包括趋势线(线段、射线、延长线)、水平线/垂直线/十字线、信息线、平行通道和线性回归通道。v0.5 版本将完善绘图交互与编辑能力
|
|
19
20
|
|
|
20
21
|

|
|
21
22
|

|
|
22
23
|

|
|
24
|
+

|
|
23
25
|
|
|
24
26
|
### Agent 语义化控制
|
|
25
27
|
|
|
@@ -46,9 +48,13 @@ src/
|
|
|
46
48
|
├── components/ # Vue 组件
|
|
47
49
|
│ ├── KLineChart.vue # K 线图主组件
|
|
48
50
|
│ ├── IndicatorSelector.vue # 指标选择器
|
|
49
|
-
│
|
|
51
|
+
│ ├── IndicatorParams.vue # 指标参数编辑
|
|
52
|
+
│ └── LeftToolbar.vue # 左侧绘图工具栏
|
|
50
53
|
├── core/ # 核心渲染引擎
|
|
51
54
|
│ ├── chart.ts # 图表控制器
|
|
55
|
+
│ ├── drawing/ # 绘图系统
|
|
56
|
+
│ │ ├── index.ts # DrawingStore、定义注册、图元渲染器
|
|
57
|
+
│ │ └── plugin.ts # 绘图渲染器插件
|
|
52
58
|
│ ├── renderers/ # 渲染器插件
|
|
53
59
|
│ │ ├── candle.ts # K 线渲染器
|
|
54
60
|
│ │ ├── ma.ts # MA 均线渲染器
|