Skip to content

Commit

Permalink
fix: bx #87
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Oct 16, 2020
1 parent f79e81f commit bddda5c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15530,7 +15530,7 @@
ctx.globalAlpha = 1;

if (item instanceof Text || item instanceof Component$1 && item.shadowRoot instanceof Text) {
item.__renderByMask(renderMode, null, ctx, null, dx, dy);
item.__renderByMask(renderMode, null, ctx, null, dx + bx, dy + by);
} else {
item.__applyCache(renderMode, item.__refreshLevel, ctx, MODE.CHILD, cacheTotal, 1, [1, 0, 0, 1, 0, 0]);
}
Expand Down
2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/node/Dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ class Dom extends Xom {
ctx.setTransform([1, 0, 0, 1, 0, 0]);
ctx.globalAlpha = 1;
if(item instanceof Text || item instanceof Component && item.shadowRoot instanceof Text) {
item.__renderByMask(renderMode, null, ctx, null, dx, dy);
item.__renderByMask(renderMode, null, ctx, null, dx + bx, dy + by);
}
else {
item.__applyCache(renderMode, item.__refreshLevel, ctx, MODE.CHILD, cacheTotal, 1, [1, 0, 0, 1, 0, 0]);
Expand Down
2 changes: 1 addition & 1 deletion test/cache-children-rotate/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bddda5c

Please sign in to comment.