@gjsify/canvas2d 0.4.28 → 0.4.29
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import GObject from 'gi://GObject';
|
|
2
|
-
import Gdk from 'gi://Gdk?version=4.0';
|
|
2
|
+
import type Gdk from 'gi://Gdk?version=4.0';
|
|
3
3
|
import GLib from 'gi://GLib?version=2.0';
|
|
4
4
|
import Gtk from 'gi://Gtk?version=4.0';
|
|
5
5
|
import { HTMLCanvasElement as GjsifyHTMLCanvasElement } from '@gjsify/dom-elements';
|
|
6
|
-
import { CanvasRenderingContext2D } from '@gjsify/canvas2d-core';
|
|
6
|
+
import type { CanvasRenderingContext2D } from '@gjsify/canvas2d-core';
|
|
7
7
|
type Canvas2DReadyCallback = (canvas: globalThis.HTMLCanvasElement, ctx: CanvasRenderingContext2D) => void;
|
|
8
8
|
/**
|
|
9
9
|
* A `Gtk.DrawingArea` subclass that handles Canvas 2D bootstrapping:
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CanvasRenderingContext2D, CanvasGradient, CanvasPattern, Path2D, ImageData, parseColor } from '@gjsify/canvas2d-core';
|
|
1
|
+
export { CanvasRenderingContext2D, CanvasGradient, CanvasPattern, Path2D, ImageData, parseColor, } from '@gjsify/canvas2d-core';
|
|
2
2
|
export { Canvas2DBridge } from './canvas2d-bridge.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/canvas2d",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.29",
|
|
4
4
|
"description": "Canvas 2D rendering context for GJS, backed by Cairo",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"@girs/gtk-4.0": "4.23.0-4.0.1",
|
|
41
41
|
"@girs/pango-1.0": "1.57.1-4.0.1",
|
|
42
42
|
"@girs/pangocairo-1.0": "1.0.0-4.0.1",
|
|
43
|
-
"@gjsify/canvas2d-core": "^0.4.
|
|
44
|
-
"@gjsify/dom-elements": "^0.4.
|
|
45
|
-
"@gjsify/dom-events": "^0.4.
|
|
46
|
-
"@gjsify/event-bridge": "^0.4.
|
|
47
|
-
"@gjsify/utils": "^0.4.
|
|
43
|
+
"@gjsify/canvas2d-core": "^0.4.29",
|
|
44
|
+
"@gjsify/dom-elements": "^0.4.29",
|
|
45
|
+
"@gjsify/dom-events": "^0.4.29",
|
|
46
|
+
"@gjsify/event-bridge": "^0.4.29",
|
|
47
|
+
"@gjsify/utils": "^0.4.29"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@gjsify/cli": "^0.4.
|
|
51
|
-
"@gjsify/unit": "^0.4.
|
|
50
|
+
"@gjsify/cli": "^0.4.29",
|
|
51
|
+
"@gjsify/unit": "^0.4.29",
|
|
52
52
|
"@types/node": "^25.9.1",
|
|
53
53
|
"typescript": "^6.0.3"
|
|
54
54
|
}
|