@thi.ng/hdom-components 5.1.117 → 5.1.119

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**: 2024-04-23T07:02:18Z
3
+ - **Last updated**: 2024-05-08T18:24:32Z
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.
package/fps-counter.js CHANGED
@@ -20,11 +20,9 @@ const fpsCounter = (_opts) => {
20
20
  const t = Date.now();
21
21
  const fps = 1e3 / (t - this.last);
22
22
  this.last = t;
23
- if (!this.buffer)
24
- return ["div"];
23
+ if (!this.buffer) return ["div"];
25
24
  const smoothFps = this.ma(fps);
26
- if (!smoothFps)
27
- return ["div"];
25
+ if (!smoothFps) return ["div"];
28
26
  this.buffer.push(smoothFps);
29
27
  this.buffer.length > opts.history && this.buffer.shift();
30
28
  const updateLabel = t - this.lastLabel > opts.labelPeriod;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom-components",
3
- "version": "5.1.117",
3
+ "version": "5.1.119",
4
4
  "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,18 +36,18 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.11.1",
40
- "@thi.ng/canvas": "^0.2.18",
41
- "@thi.ng/checks": "^3.6.3",
42
- "@thi.ng/math": "^5.10.12",
43
- "@thi.ng/transducers": "^9.0.3",
44
- "@thi.ng/transducers-stats": "^2.1.116"
39
+ "@thi.ng/api": "^8.11.2",
40
+ "@thi.ng/canvas": "^0.2.19",
41
+ "@thi.ng/checks": "^3.6.4",
42
+ "@thi.ng/math": "^5.10.13",
43
+ "@thi.ng/transducers": "^9.0.5",
44
+ "@thi.ng/transducers-stats": "^2.1.118"
45
45
  },
46
46
  "devDependencies": {
47
- "@microsoft/api-extractor": "^7.43.0",
48
- "esbuild": "^0.20.2",
49
- "typedoc": "^0.25.12",
50
- "typescript": "^5.4.3"
47
+ "@microsoft/api-extractor": "^7.43.2",
48
+ "esbuild": "^0.21.1",
49
+ "typedoc": "^0.25.13",
50
+ "typescript": "^5.4.5"
51
51
  },
52
52
  "keywords": [
53
53
  "browser",
@@ -110,5 +110,5 @@
110
110
  "status": "beta",
111
111
  "year": 2018
112
112
  },
113
- "gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
113
+ "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
114
114
  }
@@ -1,6 +1,5 @@
1
1
  const mergeAttribs = (base, xs) => {
2
- if (!xs)
3
- return base;
2
+ if (!xs) return base;
4
3
  const res = { ...base, ...xs };
5
4
  base.class && xs.class && (res.class = base.class + " " + xs.class);
6
5
  base.style && xs.style && (res.style = { ...base.style, ...xs.style });