q5 4.7.5 → 4.8.0
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.
- package/deno.json +1 -1
- package/package.json +1 -1
- package/q5-deno-server.js +2 -0
- package/q5-server.js +2 -2
- package/q5.d.ts +4 -0
- package/q5.js +2 -2
package/deno.json
CHANGED
package/package.json
CHANGED
package/q5-deno-server.js
CHANGED
|
@@ -28,6 +28,8 @@ Q5._createServerCanvas = function () {
|
|
|
28
28
|
let skiaCanvas = createCanvas(...arguments);
|
|
29
29
|
let domCanvas = document.createElement('canvas');
|
|
30
30
|
|
|
31
|
+
skiaCanvas.save = skiaCanvas.toFileSync;
|
|
32
|
+
|
|
31
33
|
return new Proxy(skiaCanvas, {
|
|
32
34
|
get: function (target, prop) {
|
|
33
35
|
let t = prop in target ? target : domCanvas;
|
package/q5-server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module q5-server
|
|
3
|
-
* @description Run q5 with node.js using
|
|
3
|
+
* @description Run q5 with node.js using skia-canvas and jsdom
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
let depsLoaded = false;
|
|
@@ -36,7 +36,7 @@ if (depsLoaded) {
|
|
|
36
36
|
let skiaCanvas = new SkiaCanvas.Canvas(...arguments);
|
|
37
37
|
let domCanvas = document.createElement('canvas');
|
|
38
38
|
|
|
39
|
-
skiaCanvas.save = skiaCanvas.
|
|
39
|
+
skiaCanvas.save = skiaCanvas.toFileSync;
|
|
40
40
|
|
|
41
41
|
return new Proxy(skiaCanvas, {
|
|
42
42
|
get: function (target, prop) {
|
package/q5.d.ts
CHANGED
package/q5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* q5.js
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.8
|
|
4
4
|
* @author quinton-ashley
|
|
5
5
|
* @contributors evanalulu, Tezumie, keturn, ormaq, bertubi, RedWilly, Dukemz, LingDong-
|
|
6
6
|
* @license LGPL-3.0
|
|
@@ -494,7 +494,7 @@ if (typeof window == 'object') {
|
|
|
494
494
|
window.addEventListener('pagehide', cleanup);
|
|
495
495
|
} else global.window = 0;
|
|
496
496
|
|
|
497
|
-
Q5.version = Q5.VERSION = '4.
|
|
497
|
+
Q5.version = Q5.VERSION = '4.8';
|
|
498
498
|
|
|
499
499
|
if (typeof document == 'object') {
|
|
500
500
|
function init() {
|