modern-canvas 0.27.15 → 0.27.16

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7384,7 +7384,7 @@ var Qi = class extends w {
7384
7384
  let { data: n, ...r } = e, i = new ue();
7385
7385
  i.style = r, i.addData(n), this._path2DSet.paths[t] = i;
7386
7386
  });
7387
- if (!e) {
7387
+ if (e ??= this.viewBox, !e) {
7388
7388
  let t = this._path2DSet.getBoundingBox();
7389
7389
  e = t ? [
7390
7390
  t.x,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.27.15",
4
+ "version": "0.27.16",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",
@@ -62,10 +62,10 @@
62
62
  "dependencies": {
63
63
  "colord": "^2.9.3",
64
64
  "earcut": "^3.2.0",
65
- "modern-font": "^0.6.2",
65
+ "modern-font": "^0.6.3",
66
66
  "modern-idoc": "^0.12.4",
67
67
  "modern-path2d": "^1.8.8",
68
- "modern-text": "^2.1.3"
68
+ "modern-text": "^2.2.3"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "echarts": "^5 || ^6",