@iconify/tools 2.0.14 → 2.0.15
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/lib/colors/attribs.cjs +30 -0
- package/lib/colors/attribs.d.ts +13 -10
- package/lib/colors/attribs.mjs +7 -13
- package/lib/colors/parse.cjs +269 -0
- package/lib/colors/parse.d.ts +15 -11
- package/lib/colors/parse.mjs +27 -31
- package/lib/colors/validate.cjs +52 -0
- package/lib/colors/validate.d.ts +11 -4
- package/lib/colors/validate.mjs +19 -6
- package/lib/css/parse.cjs +26 -0
- package/lib/css/parse.d.ts +3 -1
- package/lib/css/parse.mjs +8 -6
- package/lib/css/parser/error.cjs +25 -0
- package/lib/css/parser/error.d.ts +4 -2
- package/lib/css/parser/error.mjs +2 -4
- package/lib/css/parser/export.cjs +48 -0
- package/lib/css/parser/export.d.ts +5 -2
- package/lib/css/parser/export.mjs +4 -6
- package/lib/css/parser/strings.cjs +77 -0
- package/lib/css/parser/strings.d.ts +6 -3
- package/lib/css/parser/strings.mjs +4 -6
- package/lib/css/parser/text.cjs +135 -0
- package/lib/css/parser/text.d.ts +8 -5
- package/lib/css/parser/text.mjs +3 -8
- package/lib/css/parser/tokens.cjs +184 -0
- package/lib/css/parser/tokens.d.ts +6 -3
- package/lib/css/parser/tokens.mjs +7 -13
- package/lib/css/parser/tree.cjs +42 -0
- package/lib/css/parser/tree.d.ts +5 -2
- package/lib/css/parser/tree.mjs +2 -4
- package/lib/css/parser/types.cjs +2 -0
- package/lib/css/parser/types.d.ts +13 -11
- package/lib/css/parser/types.mjs +1 -0
- package/lib/download/api/cache.cjs +86 -0
- package/lib/download/api/cache.d.ts +8 -5
- package/lib/download/api/cache.mjs +14 -19
- package/lib/download/api/download.cjs +28 -0
- package/lib/download/api/download.d.ts +5 -2
- package/lib/download/api/download.mjs +8 -9
- package/lib/download/api/index.cjs +51 -0
- package/lib/download/api/index.d.ts +5 -2
- package/lib/download/api/index.mjs +8 -6
- package/lib/download/api/types.cjs +2 -0
- package/lib/download/api/types.d.ts +4 -2
- package/lib/download/api/types.mjs +1 -0
- package/lib/download/git/branch.cjs +22 -0
- package/lib/download/git/branch.d.ts +5 -2
- package/lib/download/git/branch.mjs +5 -5
- package/lib/download/git/hash.cjs +15 -0
- package/lib/download/git/hash.d.ts +5 -2
- package/lib/download/git/hash.mjs +5 -5
- package/lib/download/git/index.cjs +76 -0
- package/lib/download/git/index.d.ts +10 -8
- package/lib/download/git/index.mjs +41 -26
- package/lib/download/git/reset.cjs +41 -0
- package/lib/download/git/reset.d.ts +3 -1
- package/lib/download/git/reset.mjs +29 -5
- package/lib/download/github/hash.cjs +32 -0
- package/lib/download/github/hash.d.ts +5 -2
- package/lib/download/github/hash.mjs +10 -7
- package/lib/download/github/index.cjs +98 -0
- package/lib/download/github/index.d.ts +11 -9
- package/lib/download/github/index.mjs +23 -17
- package/lib/download/github/types.cjs +2 -0
- package/lib/download/github/types.d.ts +3 -1
- package/lib/download/github/types.mjs +1 -0
- package/lib/download/gitlab/hash.cjs +32 -0
- package/lib/download/gitlab/hash.d.ts +5 -2
- package/lib/download/gitlab/hash.mjs +10 -6
- package/lib/download/gitlab/index.cjs +98 -0
- package/lib/download/gitlab/index.d.ts +11 -9
- package/lib/download/gitlab/index.mjs +24 -18
- package/lib/download/gitlab/types.cjs +7 -0
- package/lib/download/gitlab/types.d.ts +4 -2
- package/lib/download/gitlab/types.mjs +3 -5
- package/lib/download/helpers/untar.cjs +14 -0
- package/lib/download/helpers/untar.d.ts +3 -1
- package/lib/download/helpers/untar.mjs +4 -5
- package/lib/download/helpers/unzip.cjs +19 -0
- package/lib/download/helpers/unzip.d.ts +3 -1
- package/lib/download/helpers/unzip.mjs +6 -7
- package/lib/download/index.cjs +64 -0
- package/lib/download/index.d.ts +18 -13
- package/lib/download/index.mjs +46 -19
- package/lib/download/npm/index.cjs +82 -0
- package/lib/download/npm/index.d.ts +10 -8
- package/lib/download/npm/index.mjs +16 -13
- package/lib/download/npm/types.cjs +2 -0
- package/lib/download/npm/types.d.ts +3 -1
- package/lib/download/npm/types.mjs +1 -0
- package/lib/download/npm/version.cjs +23 -0
- package/lib/download/npm/version.d.ts +7 -4
- package/lib/download/npm/version.mjs +8 -10
- package/lib/download/types/modified.cjs +2 -0
- package/lib/download/types/modified.d.ts +3 -1
- package/lib/download/types/modified.mjs +1 -0
- package/lib/download/types/sources.cjs +2 -0
- package/lib/download/types/sources.d.ts +4 -2
- package/lib/download/types/sources.mjs +1 -0
- package/lib/export/directory.cjs +45 -0
- package/lib/export/directory.d.ts +11 -4
- package/lib/export/directory.mjs +8 -8
- package/lib/export/helpers/custom-files.cjs +28 -0
- package/lib/export/helpers/custom-files.d.ts +4 -2
- package/lib/export/helpers/custom-files.mjs +8 -9
- package/lib/export/helpers/prepare.cjs +36 -0
- package/lib/export/helpers/prepare.d.ts +5 -3
- package/lib/export/helpers/prepare.mjs +7 -9
- package/lib/export/helpers/types-version.cjs +22 -0
- package/lib/export/helpers/types-version.d.ts +3 -1
- package/lib/export/helpers/types-version.mjs +15 -37
- package/lib/export/icon-package.cjs +59 -0
- package/lib/export/icon-package.d.ts +12 -5
- package/lib/export/icon-package.mjs +15 -16
- package/lib/export/json-package.cjs +133 -0
- package/lib/export/json-package.d.ts +12 -5
- package/lib/export/json-package.mjs +20 -21
- package/lib/icon-set/index.cjs +589 -0
- package/lib/icon-set/index.d.ts +9 -6
- package/lib/icon-set/index.mjs +40 -53
- package/lib/icon-set/match.cjs +58 -0
- package/lib/icon-set/match.d.ts +10 -3
- package/lib/icon-set/match.mjs +5 -6
- package/lib/icon-set/merge.cjs +83 -0
- package/lib/icon-set/merge.d.ts +9 -2
- package/lib/icon-set/merge.mjs +15 -10
- package/lib/icon-set/props.cjs +28 -0
- package/lib/icon-set/props.d.ts +8 -4
- package/lib/icon-set/props.mjs +7 -10
- package/lib/icon-set/types.cjs +2 -0
- package/lib/icon-set/types.d.ts +19 -17
- package/lib/icon-set/types.mjs +1 -0
- package/lib/import/directory.cjs +76 -0
- package/lib/import/directory.d.ts +11 -5
- package/lib/import/directory.mjs +36 -11
- package/lib/import/figma/index.cjs +105 -0
- package/lib/import/figma/index.d.ts +15 -5
- package/lib/import/figma/index.mjs +40 -13
- package/lib/import/figma/nodes.cjs +86 -0
- package/lib/import/figma/nodes.d.ts +13 -4
- package/lib/import/figma/nodes.mjs +3 -11
- package/lib/import/figma/query.cjs +218 -0
- package/lib/import/figma/query.d.ts +18 -9
- package/lib/import/figma/query.mjs +9 -12
- package/lib/import/figma/types/api.cjs +2 -0
- package/lib/import/figma/types/api.d.ts +8 -7
- package/lib/import/figma/types/api.mjs +1 -0
- package/lib/import/figma/types/nodes.cjs +2 -0
- package/lib/import/figma/types/nodes.d.ts +16 -9
- package/lib/import/figma/types/nodes.mjs +1 -0
- package/lib/import/figma/types/options.cjs +2 -0
- package/lib/import/figma/types/options.d.ts +17 -10
- package/lib/import/figma/types/options.mjs +1 -0
- package/lib/import/figma/types/result.cjs +2 -0
- package/lib/import/figma/types/result.d.ts +12 -5
- package/lib/import/figma/types/result.mjs +1 -0
- package/lib/index.cjs +137 -0
- package/lib/index.d.ts +65 -44
- package/lib/index.mjs +83 -94
- package/lib/misc/bump-version.cjs +17 -0
- package/lib/misc/bump-version.d.ts +3 -1
- package/lib/misc/bump-version.mjs +2 -4
- package/lib/misc/compare-dirs.cjs +75 -0
- package/lib/misc/compare-dirs.d.ts +4 -2
- package/lib/misc/compare-dirs.mjs +12 -12
- package/lib/misc/exec.cjs +25 -0
- package/lib/misc/exec.d.ts +6 -4
- package/lib/misc/exec.mjs +4 -5
- package/lib/misc/keyword.cjs +19 -0
- package/lib/misc/keyword.d.ts +3 -1
- package/lib/misc/keyword.mjs +2 -4
- package/lib/misc/scan.cjs +51 -0
- package/lib/misc/scan.d.ts +7 -6
- package/lib/misc/scan.mjs +6 -7
- package/lib/misc/write-json.cjs +11 -0
- package/lib/misc/write-json.d.ts +3 -1
- package/lib/misc/write-json.mjs +5 -6
- package/lib/optimise/flags.cjs +252 -0
- package/lib/optimise/flags.d.ts +7 -2
- package/lib/optimise/flags.mjs +18 -19
- package/lib/optimise/global-style.cjs +154 -0
- package/lib/optimise/global-style.d.ts +7 -2
- package/lib/optimise/global-style.mjs +18 -15
- package/lib/optimise/scale.cjs +26 -0
- package/lib/optimise/scale.d.ts +7 -2
- package/lib/optimise/scale.mjs +5 -5
- package/lib/optimise/svgo.cjs +83 -0
- package/lib/optimise/svgo.d.ts +10 -6
- package/lib/optimise/svgo.mjs +6 -9
- package/lib/svg/analyse/error.cjs +18 -0
- package/lib/svg/analyse/error.d.ts +5 -2
- package/lib/svg/analyse/error.mjs +2 -4
- package/lib/svg/analyse/types.cjs +2 -0
- package/lib/svg/analyse/types.d.ts +11 -11
- package/lib/svg/analyse/types.mjs +1 -0
- package/lib/svg/analyse.cjs +291 -0
- package/lib/svg/analyse.d.ts +8 -3
- package/lib/svg/analyse.mjs +15 -30
- package/lib/svg/cleanup/attribs.cjs +41 -0
- package/lib/svg/cleanup/attribs.d.ts +7 -2
- package/lib/svg/cleanup/attribs.mjs +6 -12
- package/lib/svg/cleanup/bad-tags.cjs +51 -0
- package/lib/svg/cleanup/bad-tags.d.ts +7 -2
- package/lib/svg/cleanup/bad-tags.mjs +10 -25
- package/lib/svg/cleanup/inline-style.cjs +64 -0
- package/lib/svg/cleanup/inline-style.d.ts +7 -2
- package/lib/svg/cleanup/inline-style.mjs +14 -19
- package/lib/svg/cleanup/root-svg.cjs +81 -0
- package/lib/svg/cleanup/root-svg.d.ts +7 -2
- package/lib/svg/cleanup/root-svg.mjs +7 -18
- package/lib/svg/cleanup/svgo-style.cjs +38 -0
- package/lib/svg/cleanup/svgo-style.d.ts +7 -2
- package/lib/svg/cleanup/svgo-style.mjs +16 -11
- package/lib/svg/cleanup.cjs +32 -0
- package/lib/svg/cleanup.d.ts +7 -2
- package/lib/svg/cleanup.mjs +21 -9
- package/lib/svg/data/attributes.cjs +355 -0
- package/lib/svg/data/attributes.d.ts +27 -25
- package/lib/svg/data/attributes.mjs +90 -115
- package/lib/svg/data/tags.cjs +137 -0
- package/lib/svg/data/tags.d.ts +25 -23
- package/lib/svg/data/tags.mjs +25 -49
- package/lib/svg/index.cjs +130 -0
- package/lib/svg/index.d.ts +16 -5
- package/lib/svg/index.mjs +48 -14
- package/lib/svg/parse-style.cjs +134 -0
- package/lib/svg/parse-style.d.ts +12 -8
- package/lib/svg/parse-style.mjs +11 -9
- package/lib/svg/parse.cjs +42 -0
- package/lib/svg/parse.d.ts +11 -7
- package/lib/svg/parse.mjs +2 -4
- package/package.json +99 -94
- package/lib/colors/attribs.js +0 -26
- package/lib/colors/parse.js +0 -341
- package/lib/colors/validate.js +0 -48
- package/lib/css/parse.js +0 -23
- package/lib/css/parser/error.js +0 -27
- package/lib/css/parser/export.js +0 -69
- package/lib/css/parser/strings.js +0 -93
- package/lib/css/parser/text.js +0 -171
- package/lib/css/parser/tokens.js +0 -200
- package/lib/css/parser/tree.js +0 -44
- package/lib/css/parser/types.js +0 -2
- package/lib/download/api/cache.js +0 -108
- package/lib/download/api/download.js +0 -27
- package/lib/download/api/index.js +0 -52
- package/lib/download/api/types.js +0 -2
- package/lib/download/git/branch.js +0 -22
- package/lib/download/git/hash.js +0 -14
- package/lib/download/git/index.js +0 -75
- package/lib/download/git/reset.js +0 -16
- package/lib/download/github/hash.js +0 -28
- package/lib/download/github/index.js +0 -116
- package/lib/download/github/types.js +0 -2
- package/lib/download/gitlab/hash.js +0 -27
- package/lib/download/gitlab/index.js +0 -115
- package/lib/download/gitlab/types.js +0 -7
- package/lib/download/helpers/untar.js +0 -14
- package/lib/download/helpers/unzip.js +0 -18
- package/lib/download/index.js +0 -27
- package/lib/download/npm/index.js +0 -91
- package/lib/download/npm/types.js +0 -2
- package/lib/download/npm/version.js +0 -27
- package/lib/download/types/modified.js +0 -2
- package/lib/download/types/sources.js +0 -2
- package/lib/export/directory.js +0 -52
- package/lib/export/helpers/custom-files.js +0 -32
- package/lib/export/helpers/prepare.js +0 -49
- package/lib/export/helpers/types-version.js +0 -12
- package/lib/export/icon-package.js +0 -77
- package/lib/export/json-package.js +0 -156
- package/lib/icon-set/index.js +0 -749
- package/lib/icon-set/match.js +0 -66
- package/lib/icon-set/merge.js +0 -90
- package/lib/icon-set/props.js +0 -34
- package/lib/icon-set/types.js +0 -2
- package/lib/import/directory.js +0 -59
- package/lib/import/figma/index.js +0 -90
- package/lib/import/figma/nodes.js +0 -106
- package/lib/import/figma/query.js +0 -244
- package/lib/import/figma/types/api.js +0 -12
- package/lib/import/figma/types/nodes.js +0 -2
- package/lib/import/figma/types/options.js +0 -2
- package/lib/import/figma/types/result.js +0 -2
- package/lib/index.js +0 -103
- package/lib/misc/bump-version.js +0 -19
- package/lib/misc/compare-dirs.js +0 -84
- package/lib/misc/exec.js +0 -26
- package/lib/misc/keyword.js +0 -31
- package/lib/misc/scan.js +0 -55
- package/lib/misc/write-json.js +0 -11
- package/lib/optimise/flags.js +0 -312
- package/lib/optimise/global-style.js +0 -185
- package/lib/optimise/scale.js +0 -42
- package/lib/optimise/svgo.js +0 -99
- package/lib/svg/analyse/error.js +0 -22
- package/lib/svg/analyse/types.js +0 -2
- package/lib/svg/analyse.js +0 -352
- package/lib/svg/cleanup/attribs.js +0 -51
- package/lib/svg/cleanup/bad-tags.js +0 -65
- package/lib/svg/cleanup/inline-style.js +0 -77
- package/lib/svg/cleanup/root-svg.js +0 -107
- package/lib/svg/cleanup/svgo-style.js +0 -35
- package/lib/svg/cleanup.js +0 -24
- package/lib/svg/data/attributes.js +0 -403
- package/lib/svg/data/tags.js +0 -188
- package/lib/svg/index.js +0 -134
- package/lib/svg/parse-style.js +0 -151
- package/lib/svg/parse.js +0 -49
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { shapeTags, filterChildTags } from './tags.mjs';
|
|
2
|
+
|
|
3
|
+
const badAttributes = /* @__PURE__ */ new Set([
|
|
4
4
|
"cursor",
|
|
5
5
|
"pointer-events",
|
|
6
6
|
"shape-rendering",
|
|
@@ -11,7 +11,7 @@ var badAttributes = new Set([
|
|
|
11
11
|
"role",
|
|
12
12
|
"title"
|
|
13
13
|
]);
|
|
14
|
-
|
|
14
|
+
const junkSVGAttributes = /* @__PURE__ */ new Set([
|
|
15
15
|
"xmlns:xlink",
|
|
16
16
|
"baseProfile",
|
|
17
17
|
"contentScriptType",
|
|
@@ -21,7 +21,7 @@ var junkSVGAttributes = new Set([
|
|
|
21
21
|
"y",
|
|
22
22
|
"zoomAndPan"
|
|
23
23
|
]);
|
|
24
|
-
|
|
24
|
+
const badSoftwareAttributes = /* @__PURE__ */ new Set([
|
|
25
25
|
"color-interpolation-filters",
|
|
26
26
|
"isolation",
|
|
27
27
|
"enable-background",
|
|
@@ -30,7 +30,7 @@ var badSoftwareAttributes = new Set([
|
|
|
30
30
|
"white-space",
|
|
31
31
|
"direction"
|
|
32
32
|
]);
|
|
33
|
-
|
|
33
|
+
const badAttributePrefixes = /* @__PURE__ */ new Set([
|
|
34
34
|
"image",
|
|
35
35
|
"mix",
|
|
36
36
|
"block",
|
|
@@ -45,14 +45,14 @@ var badAttributePrefixes = new Set([
|
|
|
45
45
|
"writing",
|
|
46
46
|
""
|
|
47
47
|
]);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
const commonAttributes = /* @__PURE__ */ new Set(["id"]);
|
|
49
|
+
const stylingAttributes = /* @__PURE__ */ new Set(["class", "style"]);
|
|
50
|
+
const insideClipPathAttributes = /* @__PURE__ */ new Set(["clip-rule"]);
|
|
51
|
+
const fillPresentationalAttributes = /* @__PURE__ */ new Set([
|
|
52
52
|
"fill-opacity",
|
|
53
53
|
"fill-rule"
|
|
54
54
|
]);
|
|
55
|
-
|
|
55
|
+
const strokePresentationalAttributes = /* @__PURE__ */ new Set([
|
|
56
56
|
"stroke-dasharray",
|
|
57
57
|
"stroke-dashoffset",
|
|
58
58
|
"stroke-linecap",
|
|
@@ -61,28 +61,28 @@ var strokePresentationalAttributes = new Set([
|
|
|
61
61
|
"stroke-opacity",
|
|
62
62
|
"stroke-width"
|
|
63
63
|
]);
|
|
64
|
-
|
|
64
|
+
const urlPresentationalAttributes = /* @__PURE__ */ new Set([
|
|
65
65
|
"clip-path",
|
|
66
66
|
"filter",
|
|
67
67
|
"mask"
|
|
68
68
|
]);
|
|
69
|
-
|
|
69
|
+
const visibilityPresentationalAttributes = /* @__PURE__ */ new Set([
|
|
70
70
|
"display",
|
|
71
71
|
"opacity",
|
|
72
72
|
"visibility"
|
|
73
73
|
]);
|
|
74
|
-
|
|
74
|
+
const commonColorPresentationalAttributes = /* @__PURE__ */ new Set([
|
|
75
75
|
"color",
|
|
76
76
|
"fill",
|
|
77
77
|
"stroke"
|
|
78
78
|
]);
|
|
79
|
-
|
|
79
|
+
const otherPresentationalAttributes = /* @__PURE__ */ new Set([
|
|
80
80
|
"color-interpolation",
|
|
81
81
|
"color-rendering",
|
|
82
82
|
"transform",
|
|
83
83
|
"vector-effect"
|
|
84
84
|
]);
|
|
85
|
-
|
|
85
|
+
const presentationalAttributes = /* @__PURE__ */ new Set([
|
|
86
86
|
...fillPresentationalAttributes,
|
|
87
87
|
...strokePresentationalAttributes,
|
|
88
88
|
...urlPresentationalAttributes,
|
|
@@ -90,13 +90,13 @@ var presentationalAttributes = new Set([
|
|
|
90
90
|
...commonColorPresentationalAttributes,
|
|
91
91
|
...otherPresentationalAttributes
|
|
92
92
|
]);
|
|
93
|
-
|
|
93
|
+
const markerAttributes = /* @__PURE__ */ new Set([
|
|
94
94
|
"marker-start",
|
|
95
95
|
"marker-mid",
|
|
96
96
|
"marker-end"
|
|
97
97
|
]);
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
const otherShapeAttributes = /* @__PURE__ */ new Set(["pathLength"]);
|
|
99
|
+
const animationTimingAttributes = /* @__PURE__ */ new Set([
|
|
100
100
|
"begin",
|
|
101
101
|
"dur",
|
|
102
102
|
"end",
|
|
@@ -107,7 +107,7 @@ var animationTimingAttributes = new Set([
|
|
|
107
107
|
"repeatDur",
|
|
108
108
|
"fill"
|
|
109
109
|
]);
|
|
110
|
-
|
|
110
|
+
const animationValueAttributes = /* @__PURE__ */ new Set([
|
|
111
111
|
"calcMode",
|
|
112
112
|
"values",
|
|
113
113
|
"keyTimes",
|
|
@@ -116,25 +116,25 @@ var animationValueAttributes = new Set([
|
|
|
116
116
|
"to",
|
|
117
117
|
"by"
|
|
118
118
|
]);
|
|
119
|
-
|
|
119
|
+
const otherAnimationAttributes = /* @__PURE__ */ new Set([
|
|
120
120
|
"attributeName",
|
|
121
121
|
"additive",
|
|
122
122
|
"accumulate"
|
|
123
123
|
]);
|
|
124
|
-
|
|
124
|
+
const commonGradientAttributes = /* @__PURE__ */ new Set([
|
|
125
125
|
"gradientUnits",
|
|
126
126
|
"gradientTransform",
|
|
127
127
|
"href",
|
|
128
128
|
"spreadMethod"
|
|
129
129
|
]);
|
|
130
|
-
|
|
130
|
+
const commonFeAttributes = /* @__PURE__ */ new Set([
|
|
131
131
|
"x",
|
|
132
132
|
"y",
|
|
133
133
|
"width",
|
|
134
134
|
"height",
|
|
135
135
|
"color-interpolation-filters"
|
|
136
136
|
]);
|
|
137
|
-
|
|
137
|
+
const feFuncAttributes = /* @__PURE__ */ new Set([
|
|
138
138
|
"type",
|
|
139
139
|
"tableValues",
|
|
140
140
|
"slope",
|
|
@@ -144,23 +144,23 @@ var feFuncAttributes = new Set([
|
|
|
144
144
|
"offset",
|
|
145
145
|
...commonFeAttributes
|
|
146
146
|
]);
|
|
147
|
-
|
|
148
|
-
circle: new Set(["cx", "cy", "r"]),
|
|
149
|
-
ellipse: new Set(["cx", "cy", "rx", "ry"]),
|
|
150
|
-
line: new Set(["x1", "x2", "y1", "y2"]),
|
|
151
|
-
path: new Set(["d"]),
|
|
152
|
-
polygon: new Set(["points"]),
|
|
153
|
-
polyline: new Set(["points"]),
|
|
154
|
-
rect: new Set(["x", "y", "width", "height", "rx", "ry"])
|
|
147
|
+
const tagSpecificAnimatedAttributes = {
|
|
148
|
+
circle: /* @__PURE__ */ new Set(["cx", "cy", "r"]),
|
|
149
|
+
ellipse: /* @__PURE__ */ new Set(["cx", "cy", "rx", "ry"]),
|
|
150
|
+
line: /* @__PURE__ */ new Set(["x1", "x2", "y1", "y2"]),
|
|
151
|
+
path: /* @__PURE__ */ new Set(["d"]),
|
|
152
|
+
polygon: /* @__PURE__ */ new Set(["points"]),
|
|
153
|
+
polyline: /* @__PURE__ */ new Set(["points"]),
|
|
154
|
+
rect: /* @__PURE__ */ new Set(["x", "y", "width", "height", "rx", "ry"])
|
|
155
155
|
};
|
|
156
|
-
|
|
157
|
-
svg: new Set(["width", "height", ...presentationalAttributes]),
|
|
158
|
-
clipPath: new Set([...presentationalAttributes]),
|
|
159
|
-
defs: new Set([]),
|
|
160
|
-
g: new Set([...presentationalAttributes]),
|
|
161
|
-
mask: new Set(["x", "y", "width", "height", ...presentationalAttributes]),
|
|
162
|
-
symbol: new Set(["x", "y", "width", "height", ...presentationalAttributes]),
|
|
163
|
-
use: new Set([
|
|
156
|
+
const tagSpecificPresentationalAttributes = {
|
|
157
|
+
svg: /* @__PURE__ */ new Set(["width", "height", ...presentationalAttributes]),
|
|
158
|
+
clipPath: /* @__PURE__ */ new Set([...presentationalAttributes]),
|
|
159
|
+
defs: /* @__PURE__ */ new Set([]),
|
|
160
|
+
g: /* @__PURE__ */ new Set([...presentationalAttributes]),
|
|
161
|
+
mask: /* @__PURE__ */ new Set(["x", "y", "width", "height", ...presentationalAttributes]),
|
|
162
|
+
symbol: /* @__PURE__ */ new Set(["x", "y", "width", "height", ...presentationalAttributes]),
|
|
163
|
+
use: /* @__PURE__ */ new Set([
|
|
164
164
|
"x",
|
|
165
165
|
"y",
|
|
166
166
|
"width",
|
|
@@ -169,15 +169,15 @@ var tagSpecificPresentationalAttributes = {
|
|
|
169
169
|
"refY",
|
|
170
170
|
...presentationalAttributes
|
|
171
171
|
]),
|
|
172
|
-
marker: new Set([...presentationalAttributes]),
|
|
173
|
-
linearGradient: new Set([
|
|
172
|
+
marker: /* @__PURE__ */ new Set([...presentationalAttributes]),
|
|
173
|
+
linearGradient: /* @__PURE__ */ new Set([
|
|
174
174
|
"x1",
|
|
175
175
|
"x2",
|
|
176
176
|
"y1",
|
|
177
177
|
"y2",
|
|
178
178
|
...presentationalAttributes
|
|
179
179
|
]),
|
|
180
|
-
radialGradient: new Set([
|
|
180
|
+
radialGradient: /* @__PURE__ */ new Set([
|
|
181
181
|
"cx",
|
|
182
182
|
"cy",
|
|
183
183
|
"fr",
|
|
@@ -186,37 +186,37 @@ var tagSpecificPresentationalAttributes = {
|
|
|
186
186
|
"r",
|
|
187
187
|
...presentationalAttributes
|
|
188
188
|
]),
|
|
189
|
-
stop: new Set(["offset", "stop-color", "stop-opacity"]),
|
|
190
|
-
feFlood: new Set(["flood-color", "flood-opacity"]),
|
|
191
|
-
feDropShadow: new Set(["flood-color", "flood-opacity"])
|
|
189
|
+
stop: /* @__PURE__ */ new Set(["offset", "stop-color", "stop-opacity"]),
|
|
190
|
+
feFlood: /* @__PURE__ */ new Set(["flood-color", "flood-opacity"]),
|
|
191
|
+
feDropShadow: /* @__PURE__ */ new Set(["flood-color", "flood-opacity"])
|
|
192
192
|
};
|
|
193
193
|
shapeTags.forEach((tag) => {
|
|
194
|
-
tagSpecificPresentationalAttributes[tag] = new Set([
|
|
194
|
+
tagSpecificPresentationalAttributes[tag] = /* @__PURE__ */ new Set([
|
|
195
195
|
...presentationalAttributes,
|
|
196
196
|
...markerAttributes,
|
|
197
197
|
...tagSpecificPresentationalAttributes[tag] || []
|
|
198
198
|
]);
|
|
199
199
|
});
|
|
200
200
|
filterChildTags.forEach((tag) => {
|
|
201
|
-
tagSpecificPresentationalAttributes[tag] = new Set([
|
|
201
|
+
tagSpecificPresentationalAttributes[tag] = /* @__PURE__ */ new Set([
|
|
202
202
|
...commonFeAttributes,
|
|
203
203
|
...tagSpecificPresentationalAttributes[tag] || []
|
|
204
204
|
]);
|
|
205
205
|
});
|
|
206
|
-
|
|
207
|
-
svg: new Set(["xmlns", "viewBox", "preserveAspectRatio"]),
|
|
208
|
-
clipPath: new Set(["clipPathUnits"]),
|
|
209
|
-
mask: new Set(["maskContentUnits", "maskUnits"]),
|
|
210
|
-
symbol: new Set(["viewBox", "preserveAspectRatio"]),
|
|
211
|
-
circle: new Set([...otherShapeAttributes]),
|
|
212
|
-
ellipse: new Set([...otherShapeAttributes]),
|
|
213
|
-
line: new Set([...otherShapeAttributes]),
|
|
214
|
-
path: new Set([...otherShapeAttributes]),
|
|
215
|
-
polygon: new Set([...otherShapeAttributes]),
|
|
216
|
-
polyline: new Set([...otherShapeAttributes]),
|
|
217
|
-
rect: new Set([...otherShapeAttributes]),
|
|
218
|
-
use: new Set(["href"]),
|
|
219
|
-
marker: new Set([
|
|
206
|
+
const tagSpecificNonPresentationalAttributes = {
|
|
207
|
+
svg: /* @__PURE__ */ new Set(["xmlns", "viewBox", "preserveAspectRatio"]),
|
|
208
|
+
clipPath: /* @__PURE__ */ new Set(["clipPathUnits"]),
|
|
209
|
+
mask: /* @__PURE__ */ new Set(["maskContentUnits", "maskUnits"]),
|
|
210
|
+
symbol: /* @__PURE__ */ new Set(["viewBox", "preserveAspectRatio"]),
|
|
211
|
+
circle: /* @__PURE__ */ new Set([...otherShapeAttributes]),
|
|
212
|
+
ellipse: /* @__PURE__ */ new Set([...otherShapeAttributes]),
|
|
213
|
+
line: /* @__PURE__ */ new Set([...otherShapeAttributes]),
|
|
214
|
+
path: /* @__PURE__ */ new Set([...otherShapeAttributes]),
|
|
215
|
+
polygon: /* @__PURE__ */ new Set([...otherShapeAttributes]),
|
|
216
|
+
polyline: /* @__PURE__ */ new Set([...otherShapeAttributes]),
|
|
217
|
+
rect: /* @__PURE__ */ new Set([...otherShapeAttributes]),
|
|
218
|
+
use: /* @__PURE__ */ new Set(["href"]),
|
|
219
|
+
marker: /* @__PURE__ */ new Set([
|
|
220
220
|
"markerHeight",
|
|
221
221
|
"markerUnits",
|
|
222
222
|
"markerWidth",
|
|
@@ -226,12 +226,12 @@ var tagSpecificNonPresentationalAttributes = {
|
|
|
226
226
|
"refY",
|
|
227
227
|
"viewBox"
|
|
228
228
|
]),
|
|
229
|
-
animate: new Set([
|
|
229
|
+
animate: /* @__PURE__ */ new Set([
|
|
230
230
|
...animationTimingAttributes,
|
|
231
231
|
...animationValueAttributes,
|
|
232
232
|
...otherAnimationAttributes
|
|
233
233
|
]),
|
|
234
|
-
animateMotion: new Set([
|
|
234
|
+
animateMotion: /* @__PURE__ */ new Set([
|
|
235
235
|
"keyPoints",
|
|
236
236
|
"path",
|
|
237
237
|
"rotate",
|
|
@@ -239,7 +239,7 @@ var tagSpecificNonPresentationalAttributes = {
|
|
|
239
239
|
...animationValueAttributes,
|
|
240
240
|
...otherAnimationAttributes
|
|
241
241
|
]),
|
|
242
|
-
animateTransform: new Set([
|
|
242
|
+
animateTransform: /* @__PURE__ */ new Set([
|
|
243
243
|
"by",
|
|
244
244
|
"from",
|
|
245
245
|
"to",
|
|
@@ -248,16 +248,16 @@ var tagSpecificNonPresentationalAttributes = {
|
|
|
248
248
|
...animationValueAttributes,
|
|
249
249
|
...otherAnimationAttributes
|
|
250
250
|
]),
|
|
251
|
-
discard: new Set(["begin", "href"]),
|
|
252
|
-
set: new Set([
|
|
251
|
+
discard: /* @__PURE__ */ new Set(["begin", "href"]),
|
|
252
|
+
set: /* @__PURE__ */ new Set([
|
|
253
253
|
"to",
|
|
254
254
|
...animationTimingAttributes,
|
|
255
255
|
...otherAnimationAttributes
|
|
256
256
|
]),
|
|
257
|
-
mpath: new Set(["href"]),
|
|
258
|
-
linearGradient: new Set([...commonGradientAttributes]),
|
|
259
|
-
radialGradient: new Set([...commonGradientAttributes]),
|
|
260
|
-
feSpotLight: new Set([
|
|
257
|
+
mpath: /* @__PURE__ */ new Set(["href"]),
|
|
258
|
+
linearGradient: /* @__PURE__ */ new Set([...commonGradientAttributes]),
|
|
259
|
+
radialGradient: /* @__PURE__ */ new Set([...commonGradientAttributes]),
|
|
260
|
+
feSpotLight: /* @__PURE__ */ new Set([
|
|
261
261
|
"x",
|
|
262
262
|
"y",
|
|
263
263
|
"z",
|
|
@@ -267,11 +267,11 @@ var tagSpecificNonPresentationalAttributes = {
|
|
|
267
267
|
"specularExponent",
|
|
268
268
|
"limitingConeAngle"
|
|
269
269
|
]),
|
|
270
|
-
feBlend: new Set(["in", "in2", "mode"]),
|
|
271
|
-
feColorMatrix: new Set(["in", "type", "values"]),
|
|
272
|
-
feComponentTransfer: new Set(["in"]),
|
|
273
|
-
feComposite: new Set(["in", "in2", "operator", "k1", "k2", "k3", "k4"]),
|
|
274
|
-
feConvolveMatrix: new Set([
|
|
270
|
+
feBlend: /* @__PURE__ */ new Set(["in", "in2", "mode"]),
|
|
271
|
+
feColorMatrix: /* @__PURE__ */ new Set(["in", "type", "values"]),
|
|
272
|
+
feComponentTransfer: /* @__PURE__ */ new Set(["in"]),
|
|
273
|
+
feComposite: /* @__PURE__ */ new Set(["in", "in2", "operator", "k1", "k2", "k3", "k4"]),
|
|
274
|
+
feConvolveMatrix: /* @__PURE__ */ new Set([
|
|
275
275
|
"in",
|
|
276
276
|
"order",
|
|
277
277
|
"kernelMatrix",
|
|
@@ -283,39 +283,39 @@ var tagSpecificNonPresentationalAttributes = {
|
|
|
283
283
|
"kernelUnitLength",
|
|
284
284
|
"preserveAlpha"
|
|
285
285
|
]),
|
|
286
|
-
feDiffuseLighting: new Set([
|
|
286
|
+
feDiffuseLighting: /* @__PURE__ */ new Set([
|
|
287
287
|
"in",
|
|
288
288
|
"surfaceScale",
|
|
289
289
|
"diffuseConstant",
|
|
290
290
|
"kernelUnitLength"
|
|
291
291
|
]),
|
|
292
|
-
feDisplacementMap: new Set([
|
|
292
|
+
feDisplacementMap: /* @__PURE__ */ new Set([
|
|
293
293
|
"in",
|
|
294
294
|
"in2",
|
|
295
295
|
"scale",
|
|
296
296
|
"xChannelSelector",
|
|
297
297
|
"yChannelSelector"
|
|
298
298
|
]),
|
|
299
|
-
feDistantLight: new Set(["azimuth", "elevation"]),
|
|
300
|
-
feDropShadow: new Set(["dx", "dy", "stdDeviation"]),
|
|
301
|
-
feGaussianBlur: new Set(["in", "stdDeviation", "edgeMode"]),
|
|
299
|
+
feDistantLight: /* @__PURE__ */ new Set(["azimuth", "elevation"]),
|
|
300
|
+
feDropShadow: /* @__PURE__ */ new Set(["dx", "dy", "stdDeviation"]),
|
|
301
|
+
feGaussianBlur: /* @__PURE__ */ new Set(["in", "stdDeviation", "edgeMode"]),
|
|
302
302
|
feFuncA: feFuncAttributes,
|
|
303
303
|
feFuncR: feFuncAttributes,
|
|
304
304
|
feFuncG: feFuncAttributes,
|
|
305
305
|
feFuncB: feFuncAttributes,
|
|
306
|
-
feMergeNode: new Set(["in"]),
|
|
307
|
-
feMorphology: new Set(["in", "operator", "radius"]),
|
|
308
|
-
feOffset: new Set(["in", "dx", "dy"]),
|
|
309
|
-
fePointLight: new Set(["x", "y", "z"]),
|
|
310
|
-
feSpecularLighting: new Set([
|
|
306
|
+
feMergeNode: /* @__PURE__ */ new Set(["in"]),
|
|
307
|
+
feMorphology: /* @__PURE__ */ new Set(["in", "operator", "radius"]),
|
|
308
|
+
feOffset: /* @__PURE__ */ new Set(["in", "dx", "dy"]),
|
|
309
|
+
fePointLight: /* @__PURE__ */ new Set(["x", "y", "z"]),
|
|
310
|
+
feSpecularLighting: /* @__PURE__ */ new Set([
|
|
311
311
|
"in",
|
|
312
312
|
"surfaceScale",
|
|
313
313
|
"specularConstant",
|
|
314
314
|
"specularExponent",
|
|
315
315
|
"kernelUnitLength"
|
|
316
316
|
]),
|
|
317
|
-
feTile: new Set(["in"]),
|
|
318
|
-
feTurbulence: new Set([
|
|
317
|
+
feTile: /* @__PURE__ */ new Set(["in"]),
|
|
318
|
+
feTurbulence: /* @__PURE__ */ new Set([
|
|
319
319
|
"baseFrequency",
|
|
320
320
|
"numOctaves",
|
|
321
321
|
"seed",
|
|
@@ -323,30 +323,5 @@ var tagSpecificNonPresentationalAttributes = {
|
|
|
323
323
|
"type"
|
|
324
324
|
])
|
|
325
325
|
};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
animationValueAttributes,
|
|
329
|
-
badAttributePrefixes,
|
|
330
|
-
badAttributes,
|
|
331
|
-
badSoftwareAttributes,
|
|
332
|
-
commonAttributes,
|
|
333
|
-
commonColorPresentationalAttributes,
|
|
334
|
-
commonFeAttributes,
|
|
335
|
-
commonGradientAttributes,
|
|
336
|
-
feFuncAttributes,
|
|
337
|
-
fillPresentationalAttributes,
|
|
338
|
-
insideClipPathAttributes,
|
|
339
|
-
junkSVGAttributes,
|
|
340
|
-
markerAttributes,
|
|
341
|
-
otherAnimationAttributes,
|
|
342
|
-
otherPresentationalAttributes,
|
|
343
|
-
otherShapeAttributes,
|
|
344
|
-
presentationalAttributes,
|
|
345
|
-
strokePresentationalAttributes,
|
|
346
|
-
stylingAttributes,
|
|
347
|
-
tagSpecificAnimatedAttributes,
|
|
348
|
-
tagSpecificNonPresentationalAttributes,
|
|
349
|
-
tagSpecificPresentationalAttributes,
|
|
350
|
-
urlPresentationalAttributes,
|
|
351
|
-
visibilityPresentationalAttributes
|
|
352
|
-
};
|
|
326
|
+
|
|
327
|
+
export { animationTimingAttributes, animationValueAttributes, badAttributePrefixes, badAttributes, badSoftwareAttributes, commonAttributes, commonColorPresentationalAttributes, commonFeAttributes, commonGradientAttributes, feFuncAttributes, fillPresentationalAttributes, insideClipPathAttributes, junkSVGAttributes, markerAttributes, otherAnimationAttributes, otherPresentationalAttributes, otherShapeAttributes, presentationalAttributes, strokePresentationalAttributes, stylingAttributes, tagSpecificAnimatedAttributes, tagSpecificNonPresentationalAttributes, tagSpecificPresentationalAttributes, urlPresentationalAttributes, visibilityPresentationalAttributes };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const badTags = /* @__PURE__ */ new Set([
|
|
6
|
+
"foreignObject",
|
|
7
|
+
"script",
|
|
8
|
+
"image",
|
|
9
|
+
"feImage",
|
|
10
|
+
"animateColor",
|
|
11
|
+
"altGlyph",
|
|
12
|
+
"text",
|
|
13
|
+
"tspan",
|
|
14
|
+
"switch",
|
|
15
|
+
"textPath",
|
|
16
|
+
"font",
|
|
17
|
+
"font-face",
|
|
18
|
+
"glyph",
|
|
19
|
+
"missing-glyph",
|
|
20
|
+
"hkern",
|
|
21
|
+
"vhern",
|
|
22
|
+
"view",
|
|
23
|
+
"a"
|
|
24
|
+
]);
|
|
25
|
+
const unsupportedTags = /* @__PURE__ */ new Set(["metadata", "desc", "title"]);
|
|
26
|
+
const styleTag = /* @__PURE__ */ new Set(["style"]);
|
|
27
|
+
const defsTag = /* @__PURE__ */ new Set(["defs"]);
|
|
28
|
+
const maskTags = /* @__PURE__ */ new Set(["clipPath", "mask"]);
|
|
29
|
+
const symbolTag = /* @__PURE__ */ new Set(["symbol"]);
|
|
30
|
+
const shapeTags = /* @__PURE__ */ new Set([
|
|
31
|
+
"circle",
|
|
32
|
+
"ellipse",
|
|
33
|
+
"line",
|
|
34
|
+
"path",
|
|
35
|
+
"polygon",
|
|
36
|
+
"polyline",
|
|
37
|
+
"rect"
|
|
38
|
+
]);
|
|
39
|
+
const useTag = /* @__PURE__ */ new Set(["use"]);
|
|
40
|
+
const groupTag = /* @__PURE__ */ new Set(["g"]);
|
|
41
|
+
const markerTag = /* @__PURE__ */ new Set(["marker"]);
|
|
42
|
+
const animateTags = /* @__PURE__ */ new Set([
|
|
43
|
+
"animate",
|
|
44
|
+
"animateMotion",
|
|
45
|
+
"animateTransform",
|
|
46
|
+
"discard",
|
|
47
|
+
"set"
|
|
48
|
+
]);
|
|
49
|
+
const animateMotionChildTags = /* @__PURE__ */ new Set(["mpath"]);
|
|
50
|
+
const gradientTags = /* @__PURE__ */ new Set(["linearGradient", "radialGradient"]);
|
|
51
|
+
const gradientChildTags = /* @__PURE__ */ new Set(["stop"]);
|
|
52
|
+
const patternTag = /* @__PURE__ */ new Set(["pattern"]);
|
|
53
|
+
const filterTag = /* @__PURE__ */ new Set(["filter"]);
|
|
54
|
+
const feLightningTags = /* @__PURE__ */ new Set([
|
|
55
|
+
"feDiffuseLighting",
|
|
56
|
+
"feSpecularLighting"
|
|
57
|
+
]);
|
|
58
|
+
const filterChildTags = /* @__PURE__ */ new Set([
|
|
59
|
+
"feBlend",
|
|
60
|
+
"feColorMatrix",
|
|
61
|
+
"feComponentTransfer",
|
|
62
|
+
"feComposite",
|
|
63
|
+
"feConvolveMatrix",
|
|
64
|
+
"feDisplacementMap",
|
|
65
|
+
"feDropShadow",
|
|
66
|
+
"feFlood",
|
|
67
|
+
"feGaussianBlur",
|
|
68
|
+
"feMerge",
|
|
69
|
+
"feMorphology",
|
|
70
|
+
"feOffset",
|
|
71
|
+
"feTile",
|
|
72
|
+
"feTurbulence",
|
|
73
|
+
...feLightningTags
|
|
74
|
+
]);
|
|
75
|
+
const feComponentTransferChildTag = /* @__PURE__ */ new Set([
|
|
76
|
+
"feFuncR",
|
|
77
|
+
"feFuncG",
|
|
78
|
+
"feFuncB",
|
|
79
|
+
"feFuncA"
|
|
80
|
+
]);
|
|
81
|
+
const feLightningChildTags = /* @__PURE__ */ new Set([
|
|
82
|
+
"feSpotLight",
|
|
83
|
+
"fePointLight",
|
|
84
|
+
"feDistantLight"
|
|
85
|
+
]);
|
|
86
|
+
const feMergeChildTags = /* @__PURE__ */ new Set(["feMergeNode"]);
|
|
87
|
+
const reusableElementsWithPalette = /* @__PURE__ */ new Set([
|
|
88
|
+
...gradientTags,
|
|
89
|
+
...patternTag,
|
|
90
|
+
...markerTag,
|
|
91
|
+
...symbolTag,
|
|
92
|
+
...filterTag
|
|
93
|
+
]);
|
|
94
|
+
const allValidTags = /* @__PURE__ */ new Set([
|
|
95
|
+
...styleTag,
|
|
96
|
+
...defsTag,
|
|
97
|
+
...maskTags,
|
|
98
|
+
...symbolTag,
|
|
99
|
+
...shapeTags,
|
|
100
|
+
...useTag,
|
|
101
|
+
...groupTag,
|
|
102
|
+
...markerTag,
|
|
103
|
+
...animateTags,
|
|
104
|
+
...animateMotionChildTags,
|
|
105
|
+
...gradientTags,
|
|
106
|
+
...gradientChildTags,
|
|
107
|
+
...patternTag,
|
|
108
|
+
...filterTag,
|
|
109
|
+
...filterChildTags,
|
|
110
|
+
...feComponentTransferChildTag,
|
|
111
|
+
...feLightningChildTags,
|
|
112
|
+
...feMergeChildTags
|
|
113
|
+
]);
|
|
114
|
+
|
|
115
|
+
exports.allValidTags = allValidTags;
|
|
116
|
+
exports.animateMotionChildTags = animateMotionChildTags;
|
|
117
|
+
exports.animateTags = animateTags;
|
|
118
|
+
exports.badTags = badTags;
|
|
119
|
+
exports.defsTag = defsTag;
|
|
120
|
+
exports.feComponentTransferChildTag = feComponentTransferChildTag;
|
|
121
|
+
exports.feLightningChildTags = feLightningChildTags;
|
|
122
|
+
exports.feLightningTags = feLightningTags;
|
|
123
|
+
exports.feMergeChildTags = feMergeChildTags;
|
|
124
|
+
exports.filterChildTags = filterChildTags;
|
|
125
|
+
exports.filterTag = filterTag;
|
|
126
|
+
exports.gradientChildTags = gradientChildTags;
|
|
127
|
+
exports.gradientTags = gradientTags;
|
|
128
|
+
exports.groupTag = groupTag;
|
|
129
|
+
exports.markerTag = markerTag;
|
|
130
|
+
exports.maskTags = maskTags;
|
|
131
|
+
exports.patternTag = patternTag;
|
|
132
|
+
exports.reusableElementsWithPalette = reusableElementsWithPalette;
|
|
133
|
+
exports.shapeTags = shapeTags;
|
|
134
|
+
exports.styleTag = styleTag;
|
|
135
|
+
exports.symbolTag = symbolTag;
|
|
136
|
+
exports.unsupportedTags = unsupportedTags;
|
|
137
|
+
exports.useTag = useTag;
|
package/lib/svg/data/tags.d.ts
CHANGED
|
@@ -13,71 +13,71 @@
|
|
|
13
13
|
*
|
|
14
14
|
* View tag is not allowed because it requires targeting view by id from external source, making it unusable in embedded icons.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
declare const badTags: Set<string>;
|
|
17
17
|
/**
|
|
18
18
|
* Deprecated or irrelevant tags
|
|
19
19
|
*
|
|
20
20
|
* Tags that are quietly removed
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
declare const unsupportedTags: Set<string>;
|
|
23
23
|
/**
|
|
24
24
|
* Style
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
declare const styleTag: Set<string>;
|
|
27
27
|
/**
|
|
28
28
|
* Definitions: reusable elements inside
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
declare const defsTag: Set<string>;
|
|
31
31
|
/**
|
|
32
32
|
* Masks: colors are ignored, elements must have id
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
declare const maskTags: Set<string>;
|
|
35
35
|
/**
|
|
36
36
|
* Symbol
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
declare const symbolTag: Set<string>;
|
|
39
39
|
/**
|
|
40
40
|
* SVG shapes
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
declare const shapeTags: Set<string>;
|
|
43
43
|
/**
|
|
44
44
|
* Use
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
declare const useTag: Set<string>;
|
|
47
47
|
/**
|
|
48
48
|
* Groups
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
declare const groupTag: Set<string>;
|
|
51
51
|
/**
|
|
52
52
|
* Marker, should be inside <defs>
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
declare const markerTag: Set<string>;
|
|
55
55
|
/**
|
|
56
56
|
* SVG animations
|
|
57
57
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
declare const animateTags: Set<string>;
|
|
59
|
+
declare const animateMotionChildTags: Set<string>;
|
|
60
60
|
/**
|
|
61
61
|
* Gradients, should be inside <defs>
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
declare const gradientTags: Set<string>;
|
|
64
64
|
/**
|
|
65
65
|
* Gradient color, must be inside one of gradientTags
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
declare const gradientChildTags: Set<string>;
|
|
68
68
|
/**
|
|
69
69
|
* Pattern, should be inside <defs>
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
declare const patternTag: Set<string>;
|
|
72
72
|
/**
|
|
73
73
|
* Filters
|
|
74
74
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
declare const filterTag: Set<string>;
|
|
76
|
+
declare const feLightningTags: Set<string>;
|
|
77
|
+
declare const filterChildTags: Set<string>;
|
|
78
|
+
declare const feComponentTransferChildTag: Set<string>;
|
|
79
|
+
declare const feLightningChildTags: Set<string>;
|
|
80
|
+
declare const feMergeChildTags: Set<string>;
|
|
81
81
|
/***** Combination of tags *****/
|
|
82
82
|
/**
|
|
83
83
|
* Reusable elements that use colors
|
|
@@ -86,8 +86,10 @@ export declare const feMergeChildTags: Set<string>;
|
|
|
86
86
|
* Some are used via custom attributes like `marker-start`
|
|
87
87
|
* Filter is used via `filter`
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
declare const reusableElementsWithPalette: Set<string>;
|
|
90
90
|
/**
|
|
91
91
|
* All supported tags
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
declare const allValidTags: Set<string>;
|
|
94
|
+
|
|
95
|
+
export { allValidTags, animateMotionChildTags, animateTags, badTags, defsTag, feComponentTransferChildTag, feLightningChildTags, feLightningTags, feMergeChildTags, filterChildTags, filterTag, gradientChildTags, gradientTags, groupTag, markerTag, maskTags, patternTag, reusableElementsWithPalette, shapeTags, styleTag, symbolTag, unsupportedTags, useTag };
|