@damoqiongqiu/ice-chart 0.17.3 → 0.19.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 +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/internal.d.mts +6 -0
- package/dist/types/internal.d.ts +6 -0
- package/dist/types/types.d.mts +30 -0
- package/dist/types/types.d.ts +30 -0
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -130,6 +130,12 @@ gray-100~900、`--bs-border-radius`、`--bs-body-font-family`),图表放进
|
|
|
130
130
|
| 主题 | light / dark / 自定义片段 | 默认色板取自 ice-render 的设计 token |
|
|
131
131
|
| 大数据 | LTTB 降采样 + 二分命中 | 5 万点 × 3 系列构建 35ms,每条曲线只绘制约 2 点/像素 |
|
|
132
132
|
| 无障碍 | 数据表镜像 + aria-live 播报 | `attachA11yMirror()` / `getDataTable()` / `getA11yTree()` |
|
|
133
|
+
|
|
134
|
+
> **内置文案可配**:无障碍数据表的表头与默认 tooltip 标签可以用 `option.labels` 覆盖
|
|
135
|
+
> (`{ chart, sector, value, ratio, indicator, coordinate, liquid, slice }`,不传是中文默认值)。
|
|
136
|
+
> 图表包**不做 i18n 运行时** —— 词条与 `Intl` 格式化归应用层,`tooltip.formatter` 可以完全接管提示框;
|
|
137
|
+
> 断行与文字方向(`direction` / `textAlign: 'start' | 'end'`)由引擎负责。
|
|
138
|
+
> 边界契约见 ice-render 的 `docs/architecture/17-i18n-boundary.md`。
|
|
133
139
|
| 序列化 | `toJSON` / `fromJSONString` | 配置 + 缩放窗口 + 图例显隐状态 |
|
|
134
140
|
|
|
135
141
|
## 事件
|
|
@@ -518,6 +524,13 @@ npm run audit:interactions -- ./.audit # 27 页 × 11 步交互,逐步截
|
|
|
518
524
|
npm run audit:hover -- ./.hover-sweep # 18 种图表逐个数据点悬停:反馈动画 + 像素缓存新鲜度
|
|
519
525
|
```
|
|
520
526
|
|
|
527
|
+
示例页冒烟(真实浏览器,**28 页**,秒级;改完示例页/引擎后先跑这条):
|
|
528
|
+
|
|
529
|
+
```bash
|
|
530
|
+
npm run test:e2e # build → examples:prepare → playwright:逐页断言「无 console/pageerror + 画布有输出」
|
|
531
|
+
npm run verify:full # verify + test:e2e(发版前的一把过)
|
|
532
|
+
```
|
|
533
|
+
|
|
521
534
|
审计会检查每一步之后:提示框是否越出画布、是否压住坐标轴数值标签或图例、
|
|
522
535
|
高亮标记是否落在绘图区内、有没有饱和色墨迹跑到坐标轴带上;任何一条不满足就以非 0 退出码结束,可用于 CI。
|
|
523
536
|
(图例带例外:图例色块本来就是饱和色、又画在绘图区外面,居中的图例落在等比坐标的轴带里不算越界。)
|