@x-cmd/draw 0.2.2 → 0.2.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/dist/theme.d.ts +1 -1
- package/dist/theme.js +3 -1
- package/package.json +1 -1
package/dist/theme.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const FONT = "'DrawInter',Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif";
|
|
1
|
+
export declare const FONT = "'DrawInter',Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Hiragino Sans','Yu Gothic','Meiryo','Noto Sans JP','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif";
|
|
2
2
|
export declare const TAB = "font-variant-numeric:tabular-nums";
|
|
3
3
|
export declare function card(w: number, h: number, plain?: boolean): string;
|
package/dist/theme.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// 公共字体与画布。字体栈与设计规范一致(Inter 系统栈;CJK 回退)。
|
|
2
2
|
// DrawInter = 每张 SVG 内嵌的 Inter 图表子集(same 源于 styles/inter.ts),
|
|
3
3
|
// 拉丁/数字/符号用它(跨平台像素一致),子集外字符(中文等)沿栈回退系统字体。
|
|
4
|
-
|
|
4
|
+
// CJK 顺序注意: 汉字统一码下静态栈只能给一族字形(此处简中优先,与既有行为一致);
|
|
5
|
+
// 日文假名/谚文由后续 JP/KR 族接住。按文字运行选栈(检测假名/谚文切日/韩栈)见 issue #2。
|
|
6
|
+
export const FONT = "'DrawInter',Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Hiragino Sans','Yu Gothic','Meiryo','Noto Sans JP','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif";
|
|
5
7
|
export const TAB = 'font-variant-numeric:tabular-nums';
|
|
6
8
|
// 卡片:canvas='card' 时白底 1px 边框 12px 圆角;plain(规范约定)透明由页面承接
|
|
7
9
|
export function card(w, h, plain = false) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-cmd/draw",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "SVG chart rendering as a service, a library, and a CLI — pie/bar/hbar/line/area/radar/gauge/scatter/combo/sankey/qr, same params everywhere",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|