@damoqiongqiu/ice-chart 0.27.1 → 0.27.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 CHANGED
@@ -120,7 +120,7 @@ gray-100~900、`--bs-border-radius`、`--bs-body-font-family`),图表放进
120
120
  | 坐标系 | 直角坐标 / 极坐标(饼图) / 雷达 / 桑基图 | 按系列类型自动切换场景 |
121
121
  | 坐标轴 | x + **多 y 轴**(左右可配) | 刻度、网格、轴名、标签旋转与自动抽稀、自定义 formatter、**数据域留白 `padding`(默认 5%)** |
122
122
  | 图例 | top / bottom / left / right | **可点击切换系列 / 扇区显隐**并重算数据域 |
123
- | 提示框 | axis / item 触发器 | 画在画布内(小程序同样可用);K 线给 OHLC、桑基给流量 |
123
+ | 提示框 | axis / item 触发器 | 画在画布内(不依赖 HTML 浮层);K 线给 OHLC、桑基给流量 |
124
124
  | 十字准星 | x / y / xy | 带坐标轴数值标签;跟随时长按距离缩放(`crosshair.followDuration`,默认上限 90ms,`0` = 立即跟随) |
125
125
  | 悬停高亮 | 圆环 / 柱形描边 | 可配置 `dimOthers` 压暗其他系列 |
126
126
  | 选中 | single / multiple | 点击或键盘 Enter,抛出 `select:change` |
@@ -22,5 +22,5 @@ export declare class Legend extends ChartComponent {
22
22
  protected containsLocalPoint(localX: number, localY: number): boolean;
23
23
  protected doRender(): void;
24
24
  }
25
- /** 圆角矩形路径(不依赖 roundRect API,兼容小程序基础库)。 */
25
+ /** 圆角矩形路径(手写四段圆弧:与全局 Path2D / SVG 导出共用同一条命令流,不依赖 roundRect API)。 */
26
26
  export declare function roundRect(ctx: any, x: number, y: number, w: number, h: number, r: number): void;
@@ -22,5 +22,5 @@ export declare class Legend extends ChartComponent {
22
22
  protected containsLocalPoint(localX: number, localY: number): boolean;
23
23
  protected doRender(): void;
24
24
  }
25
- /** 圆角矩形路径(不依赖 roundRect API,兼容小程序基础库)。 */
25
+ /** 圆角矩形路径(手写四段圆弧:与全局 Path2D / SVG 导出共用同一条命令流,不依赖 roundRect API)。 */
26
26
  export declare function roundRect(ctx: any, x: number, y: number, w: number, h: number, r: number): void;
@@ -11,7 +11,7 @@ export interface TooltipContent {
11
11
  rows: TooltipRow[];
12
12
  }
13
13
  /**
14
- * 提示框。画在画布内(不使用 HTML 浮层),因此小程序等无 DOM 运行时同样可用,
14
+ * 提示框。画在画布内(不使用 HTML 浮层),因此无 DOM 的宿主(headless / 测试桩)同样可用,
15
15
  * 也能被引擎的离屏缓存 / 脏矩形机制正确擦除。
16
16
  */
17
17
  export declare class Tooltip extends ChartComponent {
@@ -11,7 +11,7 @@ export interface TooltipContent {
11
11
  rows: TooltipRow[];
12
12
  }
13
13
  /**
14
- * 提示框。画在画布内(不使用 HTML 浮层),因此小程序等无 DOM 运行时同样可用,
14
+ * 提示框。画在画布内(不使用 HTML 浮层),因此无 DOM 的宿主(headless / 测试桩)同样可用,
15
15
  * 也能被引擎的离屏缓存 / 脏矩形机制正确擦除。
16
16
  */
17
17
  export declare class Tooltip extends ChartComponent {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * 文本测量与排版。优先用真实 ctx.measureText,拿不到时退化为估算
3
- * —— 小程序 / 单测里也可能没有可用的 2d 上下文。
3
+ * —— 单测里也可能没有可用的 2d 上下文。
4
4
  */
5
5
  export interface TextMetricsLike {
6
6
  width: number;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * 文本测量与排版。优先用真实 ctx.measureText,拿不到时退化为估算
3
- * —— 小程序 / 单测里也可能没有可用的 2d 上下文。
3
+ * —— 单测里也可能没有可用的 2d 上下文。
4
4
  */
5
5
  export interface TextMetricsLike {
6
6
  width: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "大漠穷秋",
3
3
  "name": "@damoqiongqiu/ice-chart",
4
- "version": "0.27.1",
4
+ "version": "0.27.3",
5
5
  "license": "MIT",
6
6
  "description": "基于 ice-render Canvas 引擎的交互式图表库:命中测试与事件派发由引擎承担,图表层只做「数据 ↔ 像素 ↔ 语义事件」。",
7
7
  "keywords": [
@@ -68,7 +68,7 @@
68
68
  "verify:full": "npm run verify && npm run test:e2e"
69
69
  },
70
70
  "peerDependencies": {
71
- "ice-render": "^2.18.0"
71
+ "ice-render": "^4.0.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@babel/core": "7.28.5",
@@ -87,7 +87,7 @@
87
87
  "@typescript-eslint/parser": "^7.18.0",
88
88
  "babel-jest": "29.7.0",
89
89
  "eslint": "^8.57.1",
90
- "ice-render": "^2.18.0",
90
+ "ice-render": "^4.0.0",
91
91
  "jest": "29.7.0",
92
92
  "jest-environment-jsdom": "29.7.0",
93
93
  "playwright": "^1.63.0",