modern-canvas 0.12.15 → 0.12.17

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 +2 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -7623,9 +7623,8 @@ class ee extends pe {
7623
7623
  });
7624
7624
  }
7625
7625
  _textureDraw(e) {
7626
- e.fillStyle = this._texture;
7627
7626
  const { left: t = 0, top: s = 0, width: i, height: o } = this.base.boundingBox;
7628
- e.uvTransform = new O().translate(-t, -s).scale(1 / i, 1 / o), e.vertTransform = this._createVertTransform(), e.fill();
7627
+ e.fillStyle = this._texture, e.uvTransform = new O().translate(-t, -s).scale(1 / i, 1 / o), e.vertTransform = this._createVertTransform(), e.rect(t, s, i, o), e.fill();
7629
7628
  }
7630
7629
  draw() {
7631
7630
  const e = this.parent.context;
@@ -7934,7 +7933,7 @@ let rt = class extends xe {
7934
7933
  this._overflowHidden ? this.mask = this.getRect().toJSON() : this.mask = void 0;
7935
7934
  }
7936
7935
  _draw() {
7937
- super._draw(), this._background.isValid() && (this._tree?.log(this.name, "background drawing"), this._shape.draw(!this._background.fillWithShape), this._background.draw()), this._fill.isValid() && (this._tree?.log(this.name, "fill drawing"), this._shape.draw(), this._fill.draw()), this._outline.isValid() && (this._tree?.log(this.name, "outline drawing"), this._shape.draw(), this._outline.draw()), this._foreground.isValid() && (this._tree?.log(this.name, "foreground drawing"), this._shape.draw(!this._foreground.fillWithShape), this._foreground.draw()), this._text.isValid() && (this._tree?.log(this.name, "text drawing"), this._text.useTextureDraw() && this._shape.draw(!0), this._text.draw()), this._drawContent();
7936
+ super._draw(), this._background.isValid() && (this._tree?.log(this.name, "background drawing"), this._shape.draw(!this._background.fillWithShape), this._background.draw()), this._fill.isValid() && (this._tree?.log(this.name, "fill drawing"), this._shape.draw(), this._fill.draw()), this._outline.isValid() && (this._tree?.log(this.name, "outline drawing"), this._shape.draw(), this._outline.draw()), this._foreground.isValid() && (this._tree?.log(this.name, "foreground drawing"), this._shape.draw(!this._foreground.fillWithShape), this._foreground.draw()), this._text.isValid() && (this._tree?.log(this.name, "text drawing"), this._text.draw()), this._drawContent();
7938
7937
  }
7939
7938
  _drawContent() {
7940
7939
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.12.15",
4
+ "version": "0.12.17",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",
@@ -64,9 +64,9 @@
64
64
  "colord": "^2.9.3",
65
65
  "earcut": "^3.0.2",
66
66
  "modern-font": "^0.4.4",
67
- "modern-idoc": "^0.10.4",
67
+ "modern-idoc": "^0.10.5",
68
68
  "modern-path2d": "^1.4.10",
69
- "modern-text": "^1.9.1"
69
+ "modern-text": "^1.9.2"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "lottie-web": "^5",
@@ -85,9 +85,9 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
- "@antfu/eslint-config": "^6.0.0",
88
+ "@antfu/eslint-config": "^6.1.0",
89
89
  "@types/earcut": "^3.0.0",
90
- "@types/node": "^24.9.1",
90
+ "@types/node": "^24.9.2",
91
91
  "bumpp": "^10.3.1",
92
92
  "conventional-changelog-cli": "^5.0.0",
93
93
  "eslint": "^9.38.0",
@@ -98,7 +98,7 @@
98
98
  "typescript": "^5.9.3",
99
99
  "unbuild": "^3.6.1",
100
100
  "vite": "^7.1.12",
101
- "vitest": "^4.0.2",
101
+ "vitest": "^4.0.4",
102
102
  "yoga-layout": "^3.2.1"
103
103
  },
104
104
  "simple-git-hooks": {