@manohub/icon 1.3.2 → 1.3.4
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 +107 -243
- package/dist/glyph-modules.d.ts +12 -0
- package/dist/glyphs.d.ts +375 -0
- package/dist/icon-render.d.ts +1 -1
- package/dist/icon.d.ts +1 -1
- package/dist/index.d.ts +6 -8
- package/dist/index.js +608 -17
- package/dist/svg.d.ts +1 -0
- package/dist/svg.js +205 -259
- package/package.json +5 -23
- package/dist/glyphs/base/aggregate.d.ts +0 -2
- package/dist/glyphs/base/aggregate.js +0 -2
- package/dist/glyphs/base/ai.d.ts +0 -2
- package/dist/glyphs/base/ai.js +0 -3
- package/dist/glyphs/base/alert-circle.d.ts +0 -2
- package/dist/glyphs/base/alert-circle.js +0 -2
- package/dist/glyphs/base/alert.d.ts +0 -2
- package/dist/glyphs/base/alert.js +0 -2
- package/dist/glyphs/base/apps.d.ts +0 -2
- package/dist/glyphs/base/apps.js +0 -2
- package/dist/glyphs/base/archive.d.ts +0 -2
- package/dist/glyphs/base/archive.js +0 -2
- package/dist/glyphs/base/back.d.ts +0 -2
- package/dist/glyphs/base/back.js +0 -2
- package/dist/glyphs/base/braces.d.ts +0 -2
- package/dist/glyphs/base/braces.js +0 -2
- package/dist/glyphs/base/branch.d.ts +0 -2
- package/dist/glyphs/base/branch.js +0 -2
- package/dist/glyphs/base/calendar.d.ts +0 -2
- package/dist/glyphs/base/calendar.js +0 -2
- package/dist/glyphs/base/call.d.ts +0 -2
- package/dist/glyphs/base/call.js +0 -2
- package/dist/glyphs/base/check-circle.d.ts +0 -2
- package/dist/glyphs/base/check-circle.js +0 -2
- package/dist/glyphs/base/check.d.ts +0 -2
- package/dist/glyphs/base/check.js +0 -2
- package/dist/glyphs/base/chevron-down.d.ts +0 -2
- package/dist/glyphs/base/chevron-down.js +0 -2
- package/dist/glyphs/base/chevron-left.d.ts +0 -2
- package/dist/glyphs/base/chevron-left.js +0 -2
- package/dist/glyphs/base/chevron-right.d.ts +0 -2
- package/dist/glyphs/base/chevron-right.js +0 -2
- package/dist/glyphs/base/chevron-up.d.ts +0 -2
- package/dist/glyphs/base/chevron-up.js +0 -2
- package/dist/glyphs/base/chevrons-left.d.ts +0 -2
- package/dist/glyphs/base/chevrons-left.js +0 -4
- package/dist/glyphs/base/chevrons-right.d.ts +0 -2
- package/dist/glyphs/base/chevrons-right.js +0 -2
- package/dist/glyphs/base/clock.d.ts +0 -2
- package/dist/glyphs/base/clock.js +0 -2
- package/dist/glyphs/base/close-circle.d.ts +0 -2
- package/dist/glyphs/base/close-circle.js +0 -2
- package/dist/glyphs/base/close.d.ts +0 -2
- package/dist/glyphs/base/close.js +0 -2
- package/dist/glyphs/base/code.d.ts +0 -2
- package/dist/glyphs/base/code.js +0 -2
- package/dist/glyphs/base/copy.d.ts +0 -2
- package/dist/glyphs/base/copy.js +0 -2
- package/dist/glyphs/base/data.d.ts +0 -2
- package/dist/glyphs/base/data.js +0 -2
- package/dist/glyphs/base/delete.d.ts +0 -2
- package/dist/glyphs/base/delete.js +0 -2
- package/dist/glyphs/base/doc.d.ts +0 -2
- package/dist/glyphs/base/doc.js +0 -2
- package/dist/glyphs/base/download.d.ts +0 -2
- package/dist/glyphs/base/download.js +0 -2
- package/dist/glyphs/base/drag-handle.d.ts +0 -2
- package/dist/glyphs/base/drag-handle.js +0 -4
- package/dist/glyphs/base/edit.d.ts +0 -2
- package/dist/glyphs/base/edit.js +0 -2
- package/dist/glyphs/base/event.d.ts +0 -2
- package/dist/glyphs/base/event.js +0 -2
- package/dist/glyphs/base/external-link.d.ts +0 -2
- package/dist/glyphs/base/external-link.js +0 -2
- package/dist/glyphs/base/favorite-filled.d.ts +0 -2
- package/dist/glyphs/base/favorite-filled.js +0 -2
- package/dist/glyphs/base/favorite.d.ts +0 -2
- package/dist/glyphs/base/favorite.js +0 -2
- package/dist/glyphs/base/file-code.d.ts +0 -2
- package/dist/glyphs/base/file-code.js +0 -2
- package/dist/glyphs/base/file-json.d.ts +0 -2
- package/dist/glyphs/base/file-json.js +0 -2
- package/dist/glyphs/base/file-text.d.ts +0 -2
- package/dist/glyphs/base/file-text.js +0 -2
- package/dist/glyphs/base/file.d.ts +0 -2
- package/dist/glyphs/base/file.js +0 -2
- package/dist/glyphs/base/filter.d.ts +0 -2
- package/dist/glyphs/base/filter.js +0 -2
- package/dist/glyphs/base/folder-open.d.ts +0 -2
- package/dist/glyphs/base/folder-open.js +0 -2
- package/dist/glyphs/base/folder.d.ts +0 -2
- package/dist/glyphs/base/folder.js +0 -2
- package/dist/glyphs/base/gear.d.ts +0 -2
- package/dist/glyphs/base/gear.js +0 -2
- package/dist/glyphs/base/globe.d.ts +0 -2
- package/dist/glyphs/base/globe.js +0 -2
- package/dist/glyphs/base/group.d.ts +0 -2
- package/dist/glyphs/base/group.js +0 -2
- package/dist/glyphs/base/hand.d.ts +0 -2
- package/dist/glyphs/base/hand.js +0 -2
- package/dist/glyphs/base/help.d.ts +0 -2
- package/dist/glyphs/base/help.js +0 -2
- package/dist/glyphs/base/history.d.ts +0 -2
- package/dist/glyphs/base/history.js +0 -2
- package/dist/glyphs/base/home.d.ts +0 -2
- package/dist/glyphs/base/home.js +0 -2
- package/dist/glyphs/base/image.d.ts +0 -2
- package/dist/glyphs/base/image.js +0 -3
- package/dist/glyphs/base/index.d.ts +0 -228
- package/dist/glyphs/base/index.js +0 -232
- package/dist/glyphs/base/info-circle.d.ts +0 -2
- package/dist/glyphs/base/info-circle.js +0 -4
- package/dist/glyphs/base/info.d.ts +0 -2
- package/dist/glyphs/base/info.js +0 -8
- package/dist/glyphs/base/join.d.ts +0 -2
- package/dist/glyphs/base/join.js +0 -2
- package/dist/glyphs/base/key.d.ts +0 -2
- package/dist/glyphs/base/key.js +0 -2
- package/dist/glyphs/base/link.d.ts +0 -2
- package/dist/glyphs/base/link.js +0 -2
- package/dist/glyphs/base/list.d.ts +0 -2
- package/dist/glyphs/base/list.js +0 -2
- package/dist/glyphs/base/loading.d.ts +0 -2
- package/dist/glyphs/base/loading.js +0 -2
- package/dist/glyphs/base/lock.d.ts +0 -2
- package/dist/glyphs/base/lock.js +0 -2
- package/dist/glyphs/base/logout.d.ts +0 -2
- package/dist/glyphs/base/logout.js +0 -2
- package/dist/glyphs/base/maximize.d.ts +0 -2
- package/dist/glyphs/base/maximize.js +0 -2
- package/dist/glyphs/base/menu.d.ts +0 -2
- package/dist/glyphs/base/menu.js +0 -3
- package/dist/glyphs/base/minimize.d.ts +0 -2
- package/dist/glyphs/base/minimize.js +0 -2
- package/dist/glyphs/base/minus.d.ts +0 -2
- package/dist/glyphs/base/minus.js +0 -2
- package/dist/glyphs/base/more.d.ts +0 -2
- package/dist/glyphs/base/more.js +0 -2
- package/dist/glyphs/base/note.d.ts +0 -2
- package/dist/glyphs/base/note.js +0 -2
- package/dist/glyphs/base/notification.d.ts +0 -2
- package/dist/glyphs/base/notification.js +0 -2
- package/dist/glyphs/base/or.d.ts +0 -2
- package/dist/glyphs/base/or.js +0 -2
- package/dist/glyphs/base/package.d.ts +0 -2
- package/dist/glyphs/base/package.js +0 -2
- package/dist/glyphs/base/page-title.d.ts +0 -2
- package/dist/glyphs/base/page-title.js +0 -5
- package/dist/glyphs/base/pause-filled.d.ts +0 -2
- package/dist/glyphs/base/pause-filled.js +0 -2
- package/dist/glyphs/base/pause.d.ts +0 -2
- package/dist/glyphs/base/pause.js +0 -2
- package/dist/glyphs/base/play-filled.d.ts +0 -2
- package/dist/glyphs/base/play-filled.js +0 -2
- package/dist/glyphs/base/play.d.ts +0 -2
- package/dist/glyphs/base/play.js +0 -6
- package/dist/glyphs/base/plug.d.ts +0 -2
- package/dist/glyphs/base/plug.js +0 -2
- package/dist/glyphs/base/plus-circle.d.ts +0 -2
- package/dist/glyphs/base/plus-circle.js +0 -2
- package/dist/glyphs/base/plus.d.ts +0 -2
- package/dist/glyphs/base/plus.js +0 -2
- package/dist/glyphs/base/preview.d.ts +0 -2
- package/dist/glyphs/base/preview.js +0 -2
- package/dist/glyphs/base/receive.d.ts +0 -2
- package/dist/glyphs/base/receive.js +0 -2
- package/dist/glyphs/base/refresh.d.ts +0 -2
- package/dist/glyphs/base/refresh.js +0 -2
- package/dist/glyphs/base/rule.d.ts +0 -2
- package/dist/glyphs/base/rule.js +0 -2
- package/dist/glyphs/base/save.d.ts +0 -2
- package/dist/glyphs/base/save.js +0 -2
- package/dist/glyphs/base/search.d.ts +0 -2
- package/dist/glyphs/base/search.js +0 -2
- package/dist/glyphs/base/send.d.ts +0 -2
- package/dist/glyphs/base/send.js +0 -2
- package/dist/glyphs/base/settings.d.ts +0 -2
- package/dist/glyphs/base/settings.js +0 -2
- package/dist/glyphs/base/shield-alert.d.ts +0 -2
- package/dist/glyphs/base/shield-alert.js +0 -2
- package/dist/glyphs/base/shield-check.d.ts +0 -2
- package/dist/glyphs/base/shield-check.js +0 -2
- package/dist/glyphs/base/shield.d.ts +0 -2
- package/dist/glyphs/base/shield.js +0 -2
- package/dist/glyphs/base/split.d.ts +0 -2
- package/dist/glyphs/base/split.js +0 -2
- package/dist/glyphs/base/stop-filled.d.ts +0 -2
- package/dist/glyphs/base/stop-filled.js +0 -2
- package/dist/glyphs/base/stop.d.ts +0 -2
- package/dist/glyphs/base/stop.js +0 -2
- package/dist/glyphs/base/store.d.ts +0 -2
- package/dist/glyphs/base/store.js +0 -2
- package/dist/glyphs/base/sub.d.ts +0 -2
- package/dist/glyphs/base/sub.js +0 -2
- package/dist/glyphs/base/table.d.ts +0 -2
- package/dist/glyphs/base/table.js +0 -2
- package/dist/glyphs/base/tag.d.ts +0 -2
- package/dist/glyphs/base/tag.js +0 -2
- package/dist/glyphs/base/terminal.d.ts +0 -2
- package/dist/glyphs/base/terminal.js +0 -2
- package/dist/glyphs/base/tool.d.ts +0 -2
- package/dist/glyphs/base/tool.js +0 -2
- package/dist/glyphs/base/transform.d.ts +0 -2
- package/dist/glyphs/base/transform.js +0 -2
- package/dist/glyphs/base/union.d.ts +0 -2
- package/dist/glyphs/base/union.js +0 -2
- package/dist/glyphs/base/unlock.d.ts +0 -2
- package/dist/glyphs/base/unlock.js +0 -2
- package/dist/glyphs/base/upload.d.ts +0 -2
- package/dist/glyphs/base/upload.js +0 -2
- package/dist/glyphs/base/user.d.ts +0 -2
- package/dist/glyphs/base/user.js +0 -2
- package/dist/glyphs/base/users.d.ts +0 -2
- package/dist/glyphs/base/users.js +0 -2
- package/dist/glyphs/base/workbench.d.ts +0 -2
- package/dist/glyphs/base/workbench.js +0 -2
- package/dist/glyphs/business/agent.d.ts +0 -2
- package/dist/glyphs/business/agent.js +0 -3
- package/dist/glyphs/business/application.d.ts +0 -2
- package/dist/glyphs/business/application.js +0 -3
- package/dist/glyphs/business/client.d.ts +0 -2
- package/dist/glyphs/business/client.js +0 -3
- package/dist/glyphs/business/compose.d.ts +0 -2
- package/dist/glyphs/business/compose.js +0 -5
- package/dist/glyphs/business/exposure.d.ts +0 -2
- package/dist/glyphs/business/exposure.js +0 -3
- package/dist/glyphs/business/index.d.ts +0 -43
- package/dist/glyphs/business/index.js +0 -43
- package/dist/glyphs/business/log.d.ts +0 -2
- package/dist/glyphs/business/log.js +0 -3
- package/dist/glyphs/business/mcp.d.ts +0 -2
- package/dist/glyphs/business/mcp.js +0 -3
- package/dist/glyphs/business/openapi.d.ts +0 -2
- package/dist/glyphs/business/openapi.js +0 -3
- package/dist/glyphs/business/schema.d.ts +0 -2
- package/dist/glyphs/business/schema.js +0 -5
- package/dist/glyphs/business/server.d.ts +0 -2
- package/dist/glyphs/business/server.js +0 -3
- package/dist/glyphs/business/service.d.ts +0 -2
- package/dist/glyphs/business/service.js +0 -3
- package/dist/glyphs/index.d.ts +0 -150
- package/dist/glyphs/index.js +0 -65
- package/dist/icon-base.js +0 -44
- package/dist/icon-render.js +0 -60
- package/dist/icon.js +0 -52
- package/dist/uniquify-ids.js +0 -72
package/dist/svg.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* 手工剥壳要处理「多层 `transform` 的净矩阵 / `fill-rule` / 查重」等 7 件事(三件几乎必错)。
|
|
6
6
|
* 只在**构建期**用:`icon-from-svg` 读目录产出静态 `.ts` 表(片段进 git,可 review、可 diff),
|
|
7
7
|
* 片段再交给 `<GlyphIcon>` 的 `glyph` / 插槽 —— 不在运行期归一(那会让每个消费方都背一遍解析器)。
|
|
8
|
+
* 本文件**不是公开出口**:`exports` 只有 `"."`,它只作为 `dist/svg.js` 给 `bin/icon-from-svg.mjs` 用。
|
|
8
9
|
*
|
|
9
10
|
* 纯字符串处理:不引 `vue`、不引 `node:*`,浏览器与 Node 都能用(读文件在 `bin/icon-from-svg.mjs`)。
|
|
10
11
|
* 口径:只接收**单色**图形;渐变 / 滤镜 / 遮罩 / 多色一律拒绝(属产品专属图形,放应用侧 assets)。
|
package/dist/svg.js
CHANGED
|
@@ -1,258 +1,210 @@
|
|
|
1
|
-
|
|
2
|
-
* SVG 归一:把「完整 `.svg`」转成内容表要的**片段串**。
|
|
3
|
-
*
|
|
4
|
-
* 表里存的是片段(不含 `<svg>` 壳、不含硬编码颜色),而手上多半是设计工具导出的完整文件;
|
|
5
|
-
* 手工剥壳要处理「多层 `transform` 的净矩阵 / `fill-rule` / 查重」等 7 件事(三件几乎必错)。
|
|
6
|
-
* 只在**构建期**用:`icon-from-svg` 读目录产出静态 `.ts` 表(片段进 git,可 review、可 diff),
|
|
7
|
-
* 片段再交给 `<GlyphIcon>` 的 `glyph` / 插槽 —— 不在运行期归一(那会让每个消费方都背一遍解析器)。
|
|
8
|
-
*
|
|
9
|
-
* 纯字符串处理:不引 `vue`、不引 `node:*`,浏览器与 Node 都能用(读文件在 `bin/icon-from-svg.mjs`)。
|
|
10
|
-
* 口径:只接收**单色**图形;渐变 / 滤镜 / 遮罩 / 多色一律拒绝(属产品专属图形,放应用侧 assets)。
|
|
11
|
-
*/
|
|
12
|
-
/** 可绘制的元素 */
|
|
13
|
-
const DRAWABLE = new Set(['path', 'rect', 'circle', 'ellipse', 'polygon', 'polyline', 'line']);
|
|
14
|
-
/** 片段里要保留的几何属性(其余属性一律丢弃:`id` / `class` / `xml-*` / `data-*` / 导出残留) */
|
|
1
|
+
const DRAWABLE = /* @__PURE__ */ new Set(["path", "rect", "circle", "ellipse", "polygon", "polyline", "line"]);
|
|
15
2
|
const GEOMETRY = [
|
|
16
|
-
|
|
3
|
+
"d",
|
|
4
|
+
"x",
|
|
5
|
+
"y",
|
|
6
|
+
"width",
|
|
7
|
+
"height",
|
|
8
|
+
"rx",
|
|
9
|
+
"ry",
|
|
10
|
+
"cx",
|
|
11
|
+
"cy",
|
|
12
|
+
"r",
|
|
13
|
+
"points",
|
|
14
|
+
"x1",
|
|
15
|
+
"y1",
|
|
16
|
+
"x2",
|
|
17
|
+
"y2"
|
|
17
18
|
];
|
|
18
|
-
/** 一出现就**拒绝**的元素:单色片段表达不了它们 */
|
|
19
19
|
const REJECT_TAGS = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
lineargradient: "线性渐变",
|
|
21
|
+
radialgradient: "径向渐变",
|
|
22
|
+
filter: "滤镜",
|
|
23
|
+
mask: "蒙版",
|
|
24
|
+
clippath: "裁剪路径",
|
|
25
|
+
pattern: "填充图案",
|
|
26
|
+
defs: "定义块(渐变 / 蒙版 / 符号等)",
|
|
27
|
+
use: "引用(use)",
|
|
28
|
+
symbol: "符号",
|
|
29
|
+
marker: "标记",
|
|
30
|
+
image: "位图",
|
|
31
|
+
style: "内联样式表(片段里无法作用域隔离)"
|
|
32
32
|
};
|
|
33
33
|
const TAG = /<(\/?)([A-Za-z][\w:.-]*)((?:"[^"]*"|'[^']*'|[^>"'])*?)(\/?)>/g;
|
|
34
|
-
/* ============================ 小工具 ============================ */
|
|
35
34
|
function parseAttrs(attrStr) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return out;
|
|
35
|
+
const out = {};
|
|
36
|
+
const re = /([\w:.-]+)\s*=\s*"([^"]*)"/g;
|
|
37
|
+
let m;
|
|
38
|
+
while (m = re.exec(attrStr)) out[m[1].toLowerCase()] = m[2];
|
|
39
|
+
return out;
|
|
42
40
|
}
|
|
43
41
|
const IDENTITY = [1, 0, 0, 1, 0, 0];
|
|
44
|
-
/** 先施加 `n`、再施加 `m` */
|
|
45
42
|
function mul(m, n) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
return [
|
|
44
|
+
m[0] * n[0] + m[2] * n[1],
|
|
45
|
+
m[1] * n[0] + m[3] * n[1],
|
|
46
|
+
m[0] * n[2] + m[2] * n[3],
|
|
47
|
+
m[1] * n[2] + m[3] * n[3],
|
|
48
|
+
m[0] * n[4] + m[2] * n[5] + m[4],
|
|
49
|
+
m[1] * n[4] + m[3] * n[5] + m[5]
|
|
50
|
+
];
|
|
54
51
|
}
|
|
55
52
|
function parseTransform(str, warnings) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
warnings.push(`含 ${kind}() —— 该变换无法在不改写路径的前提下归一,已按原样保留`);
|
|
71
|
-
if (n)
|
|
72
|
-
m = mul(m, n);
|
|
73
|
-
}
|
|
74
|
-
return m;
|
|
53
|
+
let m = IDENTITY;
|
|
54
|
+
const re = /(translate|scale|matrix|rotate|skewX|skewY)\s*\(([^)]*)\)/gi;
|
|
55
|
+
let t;
|
|
56
|
+
while (t = re.exec(str)) {
|
|
57
|
+
const kind = t[1].toLowerCase();
|
|
58
|
+
const nums = t[2].split(/[\s,]+/).filter(Boolean).map(Number);
|
|
59
|
+
let n = null;
|
|
60
|
+
if (kind === "translate") n = [1, 0, 0, 1, nums[0] ?? 0, nums[1] ?? 0];
|
|
61
|
+
else if (kind === "scale") n = [nums[0] ?? 1, 0, 0, nums[1] ?? nums[0] ?? 1, 0, 0];
|
|
62
|
+
else if (kind === "matrix") n = nums;
|
|
63
|
+
else warnings.push(`含 ${kind}() —— 该变换无法在不改写路径的前提下归一,已按原样保留`);
|
|
64
|
+
if (n) m = mul(m, n);
|
|
65
|
+
}
|
|
66
|
+
return m;
|
|
75
67
|
}
|
|
76
|
-
/** 数字序列化:去掉浮点噪声,且不留 `1.50` 这种尾巴 */
|
|
77
68
|
function num(n) {
|
|
78
|
-
|
|
69
|
+
return String(Math.round(n * 1e6) / 1e6);
|
|
79
70
|
}
|
|
80
71
|
const isIdentity = (m) => m.every((v, i) => v === IDENTITY[i]);
|
|
81
72
|
const sameMatrix = (a, b) => a.every((v, i) => v === b[i]);
|
|
82
|
-
/** 矩阵 → `transform` 串(无旋转 / 斜切时写成更易读的 `translate() scale()`) */
|
|
83
73
|
function matrixToTransform(m) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
return `matrix(${m.map(num).join(' ')})`;
|
|
74
|
+
const [a, b, c, d, e, f] = m;
|
|
75
|
+
if (b === 0 && c === 0) {
|
|
76
|
+
const parts = [];
|
|
77
|
+
if (e !== 0 || f !== 0) parts.push(`translate(${num(e)}, ${num(f)})`);
|
|
78
|
+
if (a !== 1) parts.push(`scale(${num(a)})`);
|
|
79
|
+
return parts.join(" ");
|
|
80
|
+
}
|
|
81
|
+
return `matrix(${m.map(num).join(" ")})`;
|
|
94
82
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
83
|
+
function svgToFragment(svgText, options = {}) {
|
|
84
|
+
const target = options.size ?? 24;
|
|
85
|
+
const warnings = [];
|
|
86
|
+
const text = svgText.replace(/^\uFEFF/, "");
|
|
87
|
+
const openTag = text.match(/<svg\b[^>]*>/i);
|
|
88
|
+
if (!openTag) throw new Error("不是一个 SVG 文件:找不到 <svg> 开标签");
|
|
89
|
+
const svgAttrs = parseAttrs(openTag[0]);
|
|
90
|
+
const viewBox = svgAttrs.viewbox ?? "";
|
|
91
|
+
const vbNums = viewBox.split(/[\s,]+/).filter(Boolean).map(Number);
|
|
92
|
+
const width = vbNums.length === 4 ? vbNums[2] : Number(svgAttrs.width) || 0;
|
|
93
|
+
const height = vbNums.length === 4 ? vbNums[3] : Number(svgAttrs.height) || 0;
|
|
94
|
+
if (!width || !height) {
|
|
95
|
+
throw new Error("画板尺寸不明:`viewBox` 与 `width` / `height` 都没有可用的数值");
|
|
96
|
+
}
|
|
97
|
+
const side = Math.max(width, height);
|
|
98
|
+
if (width !== height) {
|
|
99
|
+
warnings.push(`画板非正方形(${num(width)}×${num(height)}),按长边 ${num(side)} 换算,短边一侧会有留白`);
|
|
100
|
+
}
|
|
101
|
+
const scale = target / side;
|
|
102
|
+
const inner = text.slice(text.indexOf(">", text.indexOf(openTag[0])) + 1).replace(/<\/svg\s*>[\s\S]*$/i, "");
|
|
103
|
+
const items = [];
|
|
104
|
+
const colors = /* @__PURE__ */ new Set();
|
|
105
|
+
const strokeWidths = /* @__PURE__ */ new Set();
|
|
106
|
+
let dropped = 0;
|
|
107
|
+
let strokeBased = false;
|
|
108
|
+
const root = { matrix: IDENTITY, opacity: 1 };
|
|
109
|
+
const stack = [root];
|
|
110
|
+
let m;
|
|
111
|
+
TAG.lastIndex = 0;
|
|
112
|
+
while (m = TAG.exec(inner)) {
|
|
113
|
+
const [, close, rawName, attrStr, selfClose] = m;
|
|
114
|
+
const name = rawName.toLowerCase();
|
|
115
|
+
if (name === "svg") throw new Error("内容里又出现一个 <svg>(嵌套 SVG 无法归一)");
|
|
116
|
+
const reject = REJECT_TAGS[name];
|
|
117
|
+
if (reject) throw new Error(`含 ${reject} <${rawName}>:单色片段表达不了,属产品专属图形,请放应用侧 assets`);
|
|
118
|
+
if (close) {
|
|
119
|
+
if (stack.length > 1) stack.pop();
|
|
120
|
+
continue;
|
|
120
121
|
}
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
if (
|
|
142
|
-
|
|
143
|
-
stack.pop();
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
const parent = stack[stack.length - 1];
|
|
147
|
-
const attrs = parseAttrs(attrStr);
|
|
148
|
-
const opacity = (attrs.opacity === undefined ? 1 : Number(attrs.opacity)) * parent.opacity;
|
|
149
|
-
const node = {
|
|
150
|
-
matrix: attrs.transform ? mul(parent.matrix, parseTransform(attrs.transform, warnings)) : parent.matrix,
|
|
151
|
-
fill: attrs.fill ?? parent.fill,
|
|
152
|
-
stroke: attrs.stroke ?? parent.stroke,
|
|
153
|
-
fillRule: attrs['fill-rule'] ?? parent.fillRule,
|
|
154
|
-
strokeWidth: attrs['stroke-width'] ?? parent.strokeWidth,
|
|
155
|
-
opacity
|
|
156
|
-
};
|
|
157
|
-
if (DRAWABLE.has(name)) {
|
|
158
|
-
const isPlaceholder = opacity === 0;
|
|
159
|
-
if (isPlaceholder) {
|
|
160
|
-
// 设计稿常见的「透明占位底」(16×16 空 rect);若它带可见子元素则不是占位,直接拦下
|
|
161
|
-
if (!selfClose)
|
|
162
|
-
dropped++;
|
|
163
|
-
else
|
|
164
|
-
dropped++;
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
items.push({ tag: name, attrs, matrix: node.matrix, fill: node.fill, stroke: node.stroke, fillRule: node.fillRule, opacity, strokeWidth: node.strokeWidth });
|
|
168
|
-
if (node.fill && node.fill !== 'none')
|
|
169
|
-
colors.add(node.fill);
|
|
170
|
-
if (node.stroke && node.stroke !== 'none')
|
|
171
|
-
colors.add(node.stroke);
|
|
172
|
-
if (node.strokeWidth)
|
|
173
|
-
strokeWidths.add(node.strokeWidth);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
if (!selfClose)
|
|
177
|
-
stack.push(node);
|
|
178
|
-
}
|
|
179
|
-
if (!items.length)
|
|
180
|
-
throw new Error('没扫到任何图形元素(可能全是透明占位或无内容)');
|
|
181
|
-
const filled = items.filter((it) => (it.fill ?? 'none') !== 'none');
|
|
182
|
-
strokeBased = filled.length === 0 && items.some((it) => (it.stroke ?? 'none') !== 'none');
|
|
183
|
-
// 颜色:只允许「零种(完全继承)」或「一种」;两种以上就是多色图形
|
|
184
|
-
const palette = [...colors].filter((c) => c !== 'currentColor');
|
|
185
|
-
if (palette.length > 1) {
|
|
186
|
-
throw new Error(`含 ${palette.length} 种颜色(${palette.join(' / ')}):多色图形请放应用侧 assets`);
|
|
187
|
-
}
|
|
188
|
-
if (strokeWidths.size > 1) {
|
|
189
|
-
warnings.push(`各元素线重不一致(${[...strokeWidths].join(' / ')}),已按原值保留到片段上`);
|
|
122
|
+
const parent = stack[stack.length - 1];
|
|
123
|
+
const attrs = parseAttrs(attrStr);
|
|
124
|
+
const opacity = (attrs.opacity === void 0 ? 1 : Number(attrs.opacity)) * parent.opacity;
|
|
125
|
+
const node = {
|
|
126
|
+
matrix: attrs.transform ? mul(parent.matrix, parseTransform(attrs.transform, warnings)) : parent.matrix,
|
|
127
|
+
fill: attrs.fill ?? parent.fill,
|
|
128
|
+
stroke: attrs.stroke ?? parent.stroke,
|
|
129
|
+
fillRule: attrs["fill-rule"] ?? parent.fillRule,
|
|
130
|
+
strokeWidth: attrs["stroke-width"] ?? parent.strokeWidth,
|
|
131
|
+
opacity
|
|
132
|
+
};
|
|
133
|
+
if (DRAWABLE.has(name)) {
|
|
134
|
+
const isPlaceholder = opacity === 0;
|
|
135
|
+
if (isPlaceholder) {
|
|
136
|
+
if (!selfClose) dropped++;
|
|
137
|
+
else dropped++;
|
|
138
|
+
} else {
|
|
139
|
+
items.push({ tag: name, attrs, matrix: node.matrix, fill: node.fill, stroke: node.stroke, fillRule: node.fillRule, opacity, strokeWidth: node.strokeWidth });
|
|
140
|
+
if (node.fill && node.fill !== "none") colors.add(node.fill);
|
|
141
|
+
if (node.stroke && node.stroke !== "none") colors.add(node.stroke);
|
|
142
|
+
if (node.strokeWidth) strokeWidths.add(node.strokeWidth);
|
|
143
|
+
}
|
|
190
144
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
145
|
+
if (!selfClose) stack.push(node);
|
|
146
|
+
}
|
|
147
|
+
if (!items.length) throw new Error("没扫到任何图形元素(可能全是透明占位或无内容)");
|
|
148
|
+
const filled = items.filter((it) => (it.fill ?? "none") !== "none");
|
|
149
|
+
strokeBased = filled.length === 0 && items.some((it) => (it.stroke ?? "none") !== "none");
|
|
150
|
+
const palette = [...colors].filter((c) => c !== "currentColor");
|
|
151
|
+
if (palette.length > 1) {
|
|
152
|
+
throw new Error(`含 ${palette.length} 种颜色(${palette.join(" / ")}):多色图形请放应用侧 assets`);
|
|
153
|
+
}
|
|
154
|
+
if (strokeWidths.size > 1) {
|
|
155
|
+
warnings.push(`各元素线重不一致(${[...strokeWidths].join(" / ")}),已按原值保留到片段上`);
|
|
156
|
+
}
|
|
157
|
+
const rules = [...new Set(items.map((it) => it.fillRule ?? "nonzero"))];
|
|
158
|
+
if (rules.length > 1) warnings.push(`各元素 fill-rule 不一致(${rules.join(" / ")}),已逐个保留`);
|
|
159
|
+
const matrixes = items.map((it) => it.matrix);
|
|
160
|
+
const uniform = matrixes.every((mm) => sameMatrix(mm, matrixes[0]));
|
|
161
|
+
const body = items.map((it, i) => {
|
|
162
|
+
const keep = GEOMETRY.filter((k) => it.attrs[k] !== void 0).map((k) => `${k}="${it.attrs[k]}"`);
|
|
163
|
+
if (rules.length > 1) keep.push(`fill-rule="${it.fillRule ?? "nonzero"}"`);
|
|
164
|
+
if (it.opacity !== 1) keep.push(`opacity="${num(it.opacity)}"`);
|
|
165
|
+
const geom = `<${it.tag} ${keep.join(" ")}/>`;
|
|
166
|
+
if (uniform) return geom;
|
|
167
|
+
const own = matrixToTransform(it.matrix);
|
|
168
|
+
return own ? `<g transform="${own}">${geom}</g>` : geom;
|
|
169
|
+
}).join("");
|
|
170
|
+
const viewport = [scale, 0, 0, scale, 0, 0];
|
|
171
|
+
const wrap = uniform ? mul(viewport, matrixes[0]) : viewport;
|
|
172
|
+
const transform = isIdentity(wrap) ? "" : ` transform="${matrixToTransform(wrap)}"`;
|
|
173
|
+
const paint = strokeBased ? ' fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"' : ' fill="currentColor" stroke="none"';
|
|
174
|
+
const ruleAttr = rules.length === 1 && rules[0] !== "nonzero" ? ` fill-rule="${rules[0]}"` : "";
|
|
175
|
+
const fragment = `<g${transform}${paint}${ruleAttr}>${body}</g>`;
|
|
176
|
+
if (strokeBased) {
|
|
177
|
+
const sw = strokeWidths.size === 1 ? [...strokeWidths][0] : void 0;
|
|
178
|
+
warnings.push(
|
|
179
|
+
`这是**描边型**图形${sw ? `(原线重 ${sw},原画板 ${num(side)} 口径)` : ""}:渲染方的 <svg> 上写死 stroke-width="2",${sw && Math.abs(Number(sw) * scale - 2) > 0.05 ? `此稿换算后约 ${num(Number(sw) * scale)},如需保真请在片段里显式写 stroke-width` : "如需改线重请在片段里显式写 stroke-width"}`
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
if (dropped) warnings.push(`丢弃了 ${dropped} 个透明元素(opacity="0",通常是设计稿的占位底)`);
|
|
183
|
+
return {
|
|
184
|
+
fragment,
|
|
185
|
+
warnings,
|
|
186
|
+
info: {
|
|
187
|
+
side,
|
|
188
|
+
viewBox,
|
|
189
|
+
scale,
|
|
190
|
+
elements: items.length,
|
|
191
|
+
fillRule: rules.length === 1 ? rules[0] : "mixed",
|
|
192
|
+
strokeBased,
|
|
193
|
+
strokeWidth: strokeBased && strokeWidths.size === 1 ? Number([...strokeWidths][0]) : void 0
|
|
225
194
|
}
|
|
226
|
-
|
|
227
|
-
warnings.push(`丢弃了 ${dropped} 个透明元素(opacity="0",通常是设计稿的占位底)`);
|
|
228
|
-
return {
|
|
229
|
-
fragment,
|
|
230
|
-
warnings,
|
|
231
|
-
info: {
|
|
232
|
-
side,
|
|
233
|
-
viewBox,
|
|
234
|
-
scale,
|
|
235
|
-
elements: items.length,
|
|
236
|
-
fillRule: rules.length === 1 ? rules[0] : 'mixed',
|
|
237
|
-
strokeBased,
|
|
238
|
-
strokeWidth: strokeBased && strokeWidths.size === 1 ? Number([...strokeWidths][0]) : undefined
|
|
239
|
-
}
|
|
240
|
-
};
|
|
195
|
+
};
|
|
241
196
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}).join('\n');
|
|
254
|
-
return `/**
|
|
255
|
-
* ${options.title ?? '项目自带图标字形表'}。
|
|
197
|
+
function buildTableSource(entries, options = {}) {
|
|
198
|
+
const constName = options.constName ?? "PROJECT_GLYPHS";
|
|
199
|
+
const rows = entries.map((e) => {
|
|
200
|
+
const notes = e.notes?.length ? e.notes.map((n) => ` // ${n}
|
|
201
|
+
`).join("") : "";
|
|
202
|
+
const source = e.source ? ` // 源文件:${e.source}
|
|
203
|
+
` : "";
|
|
204
|
+
return `${notes}${source} '${e.name}': '${e.fragment}',`;
|
|
205
|
+
}).join("\n");
|
|
206
|
+
return `/**
|
|
207
|
+
* ${options.title ?? "项目自带图标字形表"}。
|
|
256
208
|
*
|
|
257
209
|
* **由 \`icon-from-svg\` 从 SVG 生成,请勿手改** —— 设计稿改了重新生成一次即可。
|
|
258
210
|
* 片段口径:24 视口、单色 \`currentColor\`、坐标不重写(视口换算靠包装层 \`transform\`)。
|
|
@@ -271,31 +223,25 @@ ${rows}
|
|
|
271
223
|
} as const
|
|
272
224
|
`;
|
|
273
225
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
if (a.c !== b.c || a.v.length !== b.v.length || !a.v.length)
|
|
291
|
-
continue;
|
|
292
|
-
const deltas = new Set();
|
|
293
|
-
for (let k = 0; k + 1 < a.v.length; k += 2) {
|
|
294
|
-
deltas.add(`(${num(b.v[k] - a.v[k])}, ${num(b.v[k + 1] - a.v[k + 1])})`);
|
|
295
|
-
}
|
|
296
|
-
if (deltas.size === 1)
|
|
297
|
-
out.push({ a: a.name, b: b.name, delta: [...deltas][0] });
|
|
298
|
-
}
|
|
226
|
+
function findDuplicatePairs(entries) {
|
|
227
|
+
const svgPaths = (s) => [...s.matchAll(/ d="([^"]+)"/g)].map((m) => m[1]);
|
|
228
|
+
const cmds = (s) => svgPaths(s).map((p) => (p.match(/[A-Za-z]/g) ?? []).join("")).join("|");
|
|
229
|
+
const nums = (s) => svgPaths(s).flatMap((p) => (p.match(/-?\d*\.?\d+/g) ?? []).map(Number));
|
|
230
|
+
const info = entries.map((e) => ({ name: e.name, c: cmds(e.fragment), v: nums(e.fragment) }));
|
|
231
|
+
const out = [];
|
|
232
|
+
for (let i = 0; i < info.length; i++) {
|
|
233
|
+
for (let j = i + 1; j < info.length; j++) {
|
|
234
|
+
const a = info[i];
|
|
235
|
+
const b = info[j];
|
|
236
|
+
if (a.c !== b.c || a.v.length !== b.v.length || !a.v.length) continue;
|
|
237
|
+
const deltas = /* @__PURE__ */ new Set();
|
|
238
|
+
for (let k = 0; k + 1 < a.v.length; k += 2) {
|
|
239
|
+
deltas.add(`(${num(b.v[k] - a.v[k])}, ${num(b.v[k + 1] - a.v[k + 1])})`);
|
|
240
|
+
}
|
|
241
|
+
if (deltas.size === 1) out.push({ a: a.name, b: b.name, delta: [...deltas][0] });
|
|
299
242
|
}
|
|
300
|
-
|
|
243
|
+
}
|
|
244
|
+
return out;
|
|
301
245
|
}
|
|
246
|
+
|
|
247
|
+
export { buildTableSource, findDuplicatePairs, svgToFragment };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manohub/icon",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "AIHub
|
|
6
|
+
"description": "AIHub 图标包:独立 SVG 字形源 + 纯字符串渲染器 + <Icon> 组件。单入口、零运行时依赖(仅 peer vue)",
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -27,26 +27,6 @@
|
|
|
27
27
|
".": {
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"import": "./dist/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./base": {
|
|
32
|
-
"types": "./dist/icon-base.d.ts",
|
|
33
|
-
"import": "./dist/icon-base.js"
|
|
34
|
-
},
|
|
35
|
-
"./glyphs": {
|
|
36
|
-
"types": "./dist/glyphs/index.d.ts",
|
|
37
|
-
"import": "./dist/glyphs/index.js"
|
|
38
|
-
},
|
|
39
|
-
"./glyphs/base/*": {
|
|
40
|
-
"types": "./dist/glyphs/base/*.d.ts",
|
|
41
|
-
"import": "./dist/glyphs/base/*.js"
|
|
42
|
-
},
|
|
43
|
-
"./glyphs/business/*": {
|
|
44
|
-
"types": "./dist/glyphs/business/*.d.ts",
|
|
45
|
-
"import": "./dist/glyphs/business/*.js"
|
|
46
|
-
},
|
|
47
|
-
"./svg": {
|
|
48
|
-
"types": "./dist/svg.d.ts",
|
|
49
|
-
"import": "./dist/svg.js"
|
|
50
30
|
}
|
|
51
31
|
},
|
|
52
32
|
"main": "./dist/index.js",
|
|
@@ -57,11 +37,13 @@
|
|
|
57
37
|
},
|
|
58
38
|
"devDependencies": {
|
|
59
39
|
"typescript": "^6.0.2",
|
|
40
|
+
"vite": "^7.3.6",
|
|
60
41
|
"vitest": "^3.2.7",
|
|
61
42
|
"vue": "^3.5.40"
|
|
62
43
|
},
|
|
63
44
|
"scripts": {
|
|
64
|
-
"
|
|
45
|
+
"dev": "vite",
|
|
46
|
+
"build": "vite build && tsc -p tsconfig.build.json",
|
|
65
47
|
"type-check": "tsc --noEmit -p tsconfig.json",
|
|
66
48
|
"test:unit": "vitest run",
|
|
67
49
|
"test:watch": "vitest"
|
package/dist/glyphs/base/ai.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const aiGlyph = "<path d=\"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z\"/><path d=\"M20 3v4\"/><path d=\"M22 5h-4\"/><path d=\"M4 17v2\"/><path d=\"M5 18H3\"/>";
|
|
2
|
-
export default aiGlyph;
|
package/dist/glyphs/base/ai.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// ===== 状态 / 业务 =====
|
|
2
|
-
const aiGlyph = '<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/><path d="M4 17v2"/><path d="M5 18H3"/>';
|
|
3
|
-
export default aiGlyph;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const appsGlyph = "<g fill=\"currentColor\" stroke=\"none\"><circle cx=\"5\" cy=\"5\" r=\"1.5\"/><circle cx=\"12\" cy=\"5\" r=\"1.5\"/><circle cx=\"19\" cy=\"5\" r=\"1.5\"/><circle cx=\"5\" cy=\"12\" r=\"1.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.5\"/><circle cx=\"19\" cy=\"12\" r=\"1.5\"/><circle cx=\"5\" cy=\"19\" r=\"1.5\"/><circle cx=\"12\" cy=\"19\" r=\"1.5\"/><circle cx=\"19\" cy=\"19\" r=\"1.5\"/></g>";
|
|
2
|
-
export default appsGlyph;
|
package/dist/glyphs/base/apps.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const appsGlyph = '<g fill="currentColor" stroke="none"><circle cx="5" cy="5" r="1.5"/><circle cx="12" cy="5" r="1.5"/><circle cx="19" cy="5" r="1.5"/><circle cx="5" cy="12" r="1.5"/><circle cx="12" cy="12" r="1.5"/><circle cx="19" cy="12" r="1.5"/><circle cx="5" cy="19" r="1.5"/><circle cx="12" cy="19" r="1.5"/><circle cx="19" cy="19" r="1.5"/></g>';
|
|
2
|
-
export default appsGlyph;
|