@girs/gjs 4.0.0-rc.5 → 4.0.0-rc.7
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/README.md +1 -1
- package/cairo.d.ts +10 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for Gjs using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-rc.
|
|
7
|
+
GJS TypeScript type definitions for Gjs using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-rc.7.
|
|
8
8
|
|
|
9
9
|
[GJS](https://gitlab.gnome.org/GNOME/gjs) is a JavaScript runtime for the GNOME ecosystem. Using GJS and the type definitions in this NPM package, you can build GTK applications in JavaScript or TypeScript with type checking, better autocompletion and inline documentations.
|
|
10
10
|
|
package/cairo.d.ts
CHANGED
|
@@ -57,9 +57,9 @@ declare namespace giCairo {
|
|
|
57
57
|
/** Recommended vertical distance between baselines for consecutive lines */
|
|
58
58
|
height: number;
|
|
59
59
|
/** Maximum X advance for any glyph */
|
|
60
|
-
|
|
60
|
+
maxXAdvance: number;
|
|
61
61
|
/** Maximum Y advance for any glyph (typically 0 for horizontal text) */
|
|
62
|
-
|
|
62
|
+
maxYAdvance: number;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
@@ -526,6 +526,13 @@ declare namespace giCairo {
|
|
|
526
526
|
*/
|
|
527
527
|
showText(utf8: string): void;
|
|
528
528
|
|
|
529
|
+
/**
|
|
530
|
+
* Adds the text outline to the current path (cairo_text_path).
|
|
531
|
+
* After this call the context will have a current point.
|
|
532
|
+
* @param utf8 A string of text encoded in UTF-8
|
|
533
|
+
*/
|
|
534
|
+
textPath(utf8: string): void;
|
|
535
|
+
|
|
529
536
|
/**
|
|
530
537
|
* Strokes the current path using the current line width, line join,
|
|
531
538
|
* line cap, and dash settings, then clears the path
|
|
@@ -554,7 +561,7 @@ declare namespace giCairo {
|
|
|
554
561
|
* Gets the font extents for the currently selected font
|
|
555
562
|
* @returns Font extents in user-space coordinates
|
|
556
563
|
*/
|
|
557
|
-
|
|
564
|
+
fontExtents(): FontExtents;
|
|
558
565
|
|
|
559
566
|
/**
|
|
560
567
|
* Renders an array of glyphs at the current point (low-level text API)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gjs",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gjs.js",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"test": "tsc --project tsconfig.json"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@girs/gobject-2.0": "2.88.0-4.0.0-rc.
|
|
60
|
-
"@girs/glib-2.0": "2.88.0-4.0.0-rc.
|
|
61
|
-
"@girs/gio-2.0": "2.88.0-4.0.0-rc.
|
|
62
|
-
"@girs/cairo-1.0": "1.0.0-4.0.0-rc.
|
|
59
|
+
"@girs/gobject-2.0": "2.88.0-4.0.0-rc.7",
|
|
60
|
+
"@girs/glib-2.0": "2.88.0-4.0.0-rc.7",
|
|
61
|
+
"@girs/gio-2.0": "2.88.0-4.0.0-rc.7",
|
|
62
|
+
"@girs/cairo-1.0": "1.0.0-4.0.0-rc.7" },
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"typescript": "*"
|
|
65
65
|
},
|