q5 3.8.2 → 3.9.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/defs/q5-c2d-es.d.ts +1 -1
- package/defs/q5-c2d.d.ts +3 -3
- package/defs/q5-es.d.ts +141 -141
- package/deno.json +1 -1
- package/package.json +1 -1
- package/q5.d.ts +3 -3
- package/q5.js +25 -16
- package/q5.min.js +2 -2
package/defs/q5-c2d-es.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare global {
|
|
|
27
27
|
* fondo('silver');
|
|
28
28
|
* círculo(0, 0, 80);
|
|
29
29
|
*/
|
|
30
|
-
function
|
|
30
|
+
function Lienzo(ancho?: number, alto?: number, opciones?: CanvasRenderingContext2DSettings): Promise<HTMLCanvasElement>;
|
|
31
31
|
|
|
32
32
|
/** ⭐
|
|
33
33
|
* Función a declarar. Se ejecutará 60 veces por segundo de forma predeterminada. Tiene comportamiento de bucle, lo que permite hacer animaciones cuadro a cuadro.
|
package/defs/q5-c2d.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare global {
|
|
|
28
28
|
* background('silver');
|
|
29
29
|
* circle(0, 0, 80);
|
|
30
30
|
*/
|
|
31
|
-
function
|
|
31
|
+
function Canvas(w?: number, h?: number, options?: CanvasRenderingContext2DSettings): Promise<HTMLCanvasElement>;
|
|
32
32
|
|
|
33
33
|
/** ⭐
|
|
34
34
|
* The q5 draw function is run 60 times per second by default.
|
|
@@ -3818,7 +3818,7 @@ declare global {
|
|
|
3818
3818
|
/** ⚙
|
|
3819
3819
|
* Creates an [instance](https://github.com/q5js/q5.js/wiki/Instance-Mode) of Q5.
|
|
3820
3820
|
*
|
|
3821
|
-
* Used by the global `
|
|
3821
|
+
* Used by the global `Canvas` function.
|
|
3822
3822
|
* @param {string | Function} [scope]
|
|
3823
3823
|
* @param {HTMLElement} [parent] element that the canvas will be placed inside
|
|
3824
3824
|
* @example
|
|
@@ -3861,7 +3861,7 @@ declare global {
|
|
|
3861
3861
|
/** ⚙
|
|
3862
3862
|
* Sets the default canvas context attributes used for newly created
|
|
3863
3863
|
* canvases and internal graphics. These options are overwritten by any
|
|
3864
|
-
* per-canvas options you pass to `
|
|
3864
|
+
* per-canvas options you pass to `Canvas`.
|
|
3865
3865
|
*/
|
|
3866
3866
|
static canvasOptions: object;
|
|
3867
3867
|
|