Skip to content

Commit

Permalink
1.6.11
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Sep 19, 2023
1 parent 0e8ef1c commit 7d1332d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@
"make": "electron-forge make",
"publish": "electron-forge publish"
},
"version": "1.6.10"
"version": "1.6.11"
}
4 changes: 3 additions & 1 deletion v3/q5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,9 @@ function Q5(scope, parent) {
$.createTextImage = (str, w, h) => {
let og = $._textCache;
$._textCache = true;
$._useCache = true;
$.text(str, 0, 0, w, h);
$._useCache = false;
let k = genTextImageKey(str, w, h);
$._textCache = og;
return $._tic.get(k);
Expand All @@ -1613,7 +1615,7 @@ function Q5(scope, parent) {
if (!$._doFill && !$._doStroke) return;
let c, ti, k, cX, cY;
let t = ctx.getTransform();
let useCache = $._textCache && (t.b != 0 || t.c != 0);
let useCache = $._useCache || ($._textCache && (t.b != 0 || t.c != 0));
if (!useCache) {
c = ctx;
cX = x;
Expand Down
2 changes: 1 addition & 1 deletion v3/q5.min.js

Large diffs are not rendered by default.

0 comments on commit 7d1332d

Please sign in to comment.