Skip to content

Commit 2027170

Browse files
committed
update engine
1 parent b7af4f4 commit 2027170

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

public/litecanvas.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var assert = (condition, message = "Assertion failed") => {
2828
if (!condition) throw new Error(message);
2929
};
30-
var version = "0.93.2";
30+
var version = "0.94.0";
3131
function litecanvas(settings = {}) {
3232
const root = window, math = Math, TWO_PI = math.PI * 2, raf = requestAnimationFrame, _browserEventListeners = [], on = (elem, evt, callback) => {
3333
elem.addEventListener(evt, callback, false);
@@ -1283,7 +1283,7 @@
12831283
}
12841284
function drawFrame(now) {
12851285
if (!settings.animate) {
1286-
return instance.emit("draw");
1286+
return instance.emit("draw", _ctx);
12871287
} else if (_rafid) {
12881288
_rafid = raf(drawFrame);
12891289
}
@@ -1300,7 +1300,7 @@
13001300
}
13011301
}
13021302
if (updated) {
1303-
instance.emit("draw");
1303+
instance.emit("draw", _ctx);
13041304
}
13051305
}
13061306
function setupCanvas() {
@@ -1362,7 +1362,6 @@
13621362
}
13631363
instance.textalign("start", "top");
13641364
instance.emit("resized", _scale);
1365-
instance.cls(0);
13661365
if (!settings.animate) {
13671366
raf(drawFrame);
13681367
}

public/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cacheName = "luizbills.litecanvas-editor-v1";
2-
const version = "2025.7.21.0";
2+
const version = "2025.7.21.1";
33

44
const precacheResources = [
55
"/",

0 commit comments

Comments
 (0)