@thi.ng/hiccup-svg 4.2.6 → 4.2.9

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-04-07T14:17:30Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [4.2.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.2.9) (2022-04-07)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
17
+
12
18
  ## [4.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.2.0) (2021-11-17)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -279,4 +279,4 @@ If this project contributes to an academic publication, please cite it as:
279
279
 
280
280
  ## License
281
281
 
282
- © 2016 - 2021 Karsten Schmidt // Apache Software License 2.0
282
+ © 2016 - 2022 Karsten Schmidt // Apache Software License 2.0
package/convert.js CHANGED
@@ -128,8 +128,8 @@ const convertAttrib = (res, id, v) => {
128
128
  switch (id) {
129
129
  case "font": {
130
130
  const i = v.indexOf(" ");
131
- res["font-size"] = v.substr(0, i);
132
- res["font-family"] = v.substr(i + 1);
131
+ res["font-size"] = v.substring(0, i);
132
+ res["font-family"] = v.substring(i + 1);
133
133
  break;
134
134
  }
135
135
  case "align":
package/format.js CHANGED
@@ -19,8 +19,8 @@ const DEFAULT_NUMERIC_IDS = [
19
19
  * Takes an attributes object and a number of attrib IDs whose values should be
20
20
  * formatted using {@link ff}. Mutates and returns `attribs` object.
21
21
  *
22
- * @param attribs
23
- * @param ids
22
+ * @param attribs -
23
+ * @param ids -
24
24
  *
25
25
  * @internal
26
26
  */
@@ -140,7 +140,7 @@ const buildTransform = (attribs) => {
140
140
  */
141
141
  export const fcolor = (col) => isString(col)
142
142
  ? col[0] === "$"
143
- ? `url(#${col.substr(1)})`
143
+ ? `url(#${col.substring(1)})`
144
144
  : col
145
145
  : css(col);
146
146
  /** @internal */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-svg",
3
- "version": "4.2.6",
3
+ "version": "4.2.9",
4
4
  "description": "SVG element functions for @thi.ng/hiccup & @thi.ng/hdom",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,17 +34,17 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/checks": "^3.1.3",
38
- "@thi.ng/color": "^4.1.6",
39
- "@thi.ng/prefixes": "^2.1.3"
37
+ "@thi.ng/checks": "^3.1.5",
38
+ "@thi.ng/color": "^5.0.1",
39
+ "@thi.ng/prefixes": "^2.1.5"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.19.2",
43
- "@thi.ng/testament": "^0.2.3",
42
+ "@microsoft/api-extractor": "^7.19.4",
43
+ "@thi.ng/testament": "^0.2.5",
44
44
  "rimraf": "^3.0.2",
45
45
  "tools": "^0.0.1",
46
- "typedoc": "^0.22.10",
47
- "typescript": "^4.5.3"
46
+ "typedoc": "^0.22.13",
47
+ "typescript": "^4.6.2"
48
48
  },
49
49
  "keywords": [
50
50
  "arc",
@@ -77,63 +77,63 @@
77
77
  ],
78
78
  "exports": {
79
79
  ".": {
80
- "import": "./index.js"
80
+ "default": "./index.js"
81
81
  },
82
82
  "./api": {
83
- "import": "./api.js"
83
+ "default": "./api.js"
84
84
  },
85
85
  "./circle": {
86
- "import": "./circle.js"
86
+ "default": "./circle.js"
87
87
  },
88
88
  "./convert": {
89
- "import": "./convert.js"
89
+ "default": "./convert.js"
90
90
  },
91
91
  "./defs": {
92
- "import": "./defs.js"
92
+ "default": "./defs.js"
93
93
  },
94
94
  "./ellipse": {
95
- "import": "./ellipse.js"
95
+ "default": "./ellipse.js"
96
96
  },
97
97
  "./format": {
98
- "import": "./format.js"
98
+ "default": "./format.js"
99
99
  },
100
100
  "./gradients": {
101
- "import": "./gradients.js"
101
+ "default": "./gradients.js"
102
102
  },
103
103
  "./group": {
104
- "import": "./group.js"
104
+ "default": "./group.js"
105
105
  },
106
106
  "./image": {
107
- "import": "./image.js"
107
+ "default": "./image.js"
108
108
  },
109
109
  "./line": {
110
- "import": "./line.js"
110
+ "default": "./line.js"
111
111
  },
112
112
  "./path": {
113
- "import": "./path.js"
113
+ "default": "./path.js"
114
114
  },
115
115
  "./points": {
116
- "import": "./points.js"
116
+ "default": "./points.js"
117
117
  },
118
118
  "./polygon": {
119
- "import": "./polygon.js"
119
+ "default": "./polygon.js"
120
120
  },
121
121
  "./polyline": {
122
- "import": "./polyline.js"
122
+ "default": "./polyline.js"
123
123
  },
124
124
  "./rect": {
125
- "import": "./rect.js"
125
+ "default": "./rect.js"
126
126
  },
127
127
  "./svg": {
128
- "import": "./svg.js"
128
+ "default": "./svg.js"
129
129
  },
130
130
  "./text": {
131
- "import": "./text.js"
131
+ "default": "./text.js"
132
132
  }
133
133
  },
134
134
  "thi.ng": {
135
135
  "parent": "@thi.ng/hiccup",
136
136
  "year": 2016
137
137
  },
138
- "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
138
+ "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
139
139
  }