@girs/evinceview-3.0 3.0.0-3.2.4 → 3.0.0-3.2.6
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 +14 -1
- package/evinceview-3.0-ambient.d.ts +0 -1
- package/evinceview-3.0-import.d.ts +0 -1
- package/evinceview-3.0.d.cts +24 -0
- package/evinceview-3.0.d.ts +24 -0
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for EvinceView-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for EvinceView-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
|
|
|
81
81
|
const EvinceView = imports.gi.EvinceView;
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
|
|
85
|
+
### ESM vs. CommonJS
|
|
86
|
+
|
|
87
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
88
|
+
|
|
89
|
+
In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
|
|
90
|
+
|
|
91
|
+
On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
|
|
92
|
+
|
|
93
|
+
This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
|
|
94
|
+
|
|
95
|
+
Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
|
|
96
|
+
|
|
84
97
|
### Bundle
|
|
85
98
|
|
|
86
99
|
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/evinceview-3.0.d.cts
CHANGED
|
@@ -135,6 +135,13 @@ export module DocumentModel {
|
|
|
135
135
|
rtl?: boolean | null
|
|
136
136
|
scale?: number | null
|
|
137
137
|
sizing_mode?: SizingMode | null
|
|
138
|
+
dualOddLeft?: boolean | null
|
|
139
|
+
dualPage?: boolean | null
|
|
140
|
+
invertedColors?: boolean | null
|
|
141
|
+
maxScale?: number | null
|
|
142
|
+
minScale?: number | null
|
|
143
|
+
pageLayout?: PageLayout | null
|
|
144
|
+
sizingMode?: SizingMode | null
|
|
138
145
|
}
|
|
139
146
|
|
|
140
147
|
}
|
|
@@ -146,17 +153,24 @@ export interface DocumentModel {
|
|
|
146
153
|
continuous: boolean
|
|
147
154
|
document: EvinceDocument.Document
|
|
148
155
|
dual_odd_left: boolean
|
|
156
|
+
dualOddLeft: boolean
|
|
149
157
|
dual_page: boolean
|
|
158
|
+
dualPage: boolean
|
|
150
159
|
fullscreen: boolean
|
|
151
160
|
inverted_colors: boolean
|
|
161
|
+
invertedColors: boolean
|
|
152
162
|
max_scale: number
|
|
163
|
+
maxScale: number
|
|
153
164
|
min_scale: number
|
|
165
|
+
minScale: number
|
|
154
166
|
page: number
|
|
155
167
|
page_layout: PageLayout
|
|
168
|
+
pageLayout: PageLayout
|
|
156
169
|
rotation: number
|
|
157
170
|
rtl: boolean
|
|
158
171
|
scale: number
|
|
159
172
|
sizing_mode: SizingMode
|
|
173
|
+
sizingMode: SizingMode
|
|
160
174
|
|
|
161
175
|
// Owm methods of EvinceView-3.0.EvinceView.DocumentModel
|
|
162
176
|
|
|
@@ -1415,11 +1429,17 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
1415
1429
|
// Own properties of EvinceView-3.0.EvinceView.View
|
|
1416
1430
|
|
|
1417
1431
|
readonly can_zoom_in: boolean
|
|
1432
|
+
readonly canZoomIn: boolean
|
|
1418
1433
|
readonly can_zoom_out: boolean
|
|
1434
|
+
readonly canZoomOut: boolean
|
|
1419
1435
|
/**
|
|
1420
1436
|
* Allows to implement a custom notification system.
|
|
1421
1437
|
*/
|
|
1422
1438
|
readonly is_loading: boolean
|
|
1439
|
+
/**
|
|
1440
|
+
* Allows to implement a custom notification system.
|
|
1441
|
+
*/
|
|
1442
|
+
readonly isLoading: boolean
|
|
1423
1443
|
|
|
1424
1444
|
// Owm methods of EvinceView-3.0.EvinceView.View
|
|
1425
1445
|
|
|
@@ -1796,6 +1816,8 @@ export module ViewPresentation {
|
|
|
1796
1816
|
document?: EvinceDocument.Document | null
|
|
1797
1817
|
inverted_colors?: boolean | null
|
|
1798
1818
|
rotation?: number | null
|
|
1819
|
+
currentPage?: number | null
|
|
1820
|
+
invertedColors?: boolean | null
|
|
1799
1821
|
}
|
|
1800
1822
|
|
|
1801
1823
|
}
|
|
@@ -1805,8 +1827,10 @@ export interface ViewPresentation extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
1805
1827
|
// Own properties of EvinceView-3.0.EvinceView.ViewPresentation
|
|
1806
1828
|
|
|
1807
1829
|
current_page: number
|
|
1830
|
+
currentPage: number
|
|
1808
1831
|
readonly document: EvinceDocument.Document
|
|
1809
1832
|
readonly inverted_colors: boolean
|
|
1833
|
+
readonly invertedColors: boolean
|
|
1810
1834
|
rotation: number
|
|
1811
1835
|
|
|
1812
1836
|
// Owm methods of EvinceView-3.0.EvinceView.ViewPresentation
|
package/evinceview-3.0.d.ts
CHANGED
|
@@ -137,6 +137,13 @@ module DocumentModel {
|
|
|
137
137
|
rtl?: boolean | null
|
|
138
138
|
scale?: number | null
|
|
139
139
|
sizing_mode?: SizingMode | null
|
|
140
|
+
dualOddLeft?: boolean | null
|
|
141
|
+
dualPage?: boolean | null
|
|
142
|
+
invertedColors?: boolean | null
|
|
143
|
+
maxScale?: number | null
|
|
144
|
+
minScale?: number | null
|
|
145
|
+
pageLayout?: PageLayout | null
|
|
146
|
+
sizingMode?: SizingMode | null
|
|
140
147
|
}
|
|
141
148
|
|
|
142
149
|
}
|
|
@@ -148,17 +155,24 @@ interface DocumentModel {
|
|
|
148
155
|
continuous: boolean
|
|
149
156
|
document: EvinceDocument.Document
|
|
150
157
|
dual_odd_left: boolean
|
|
158
|
+
dualOddLeft: boolean
|
|
151
159
|
dual_page: boolean
|
|
160
|
+
dualPage: boolean
|
|
152
161
|
fullscreen: boolean
|
|
153
162
|
inverted_colors: boolean
|
|
163
|
+
invertedColors: boolean
|
|
154
164
|
max_scale: number
|
|
165
|
+
maxScale: number
|
|
155
166
|
min_scale: number
|
|
167
|
+
minScale: number
|
|
156
168
|
page: number
|
|
157
169
|
page_layout: PageLayout
|
|
170
|
+
pageLayout: PageLayout
|
|
158
171
|
rotation: number
|
|
159
172
|
rtl: boolean
|
|
160
173
|
scale: number
|
|
161
174
|
sizing_mode: SizingMode
|
|
175
|
+
sizingMode: SizingMode
|
|
162
176
|
|
|
163
177
|
// Owm methods of EvinceView-3.0.EvinceView.DocumentModel
|
|
164
178
|
|
|
@@ -1417,11 +1431,17 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
1417
1431
|
// Own properties of EvinceView-3.0.EvinceView.View
|
|
1418
1432
|
|
|
1419
1433
|
readonly can_zoom_in: boolean
|
|
1434
|
+
readonly canZoomIn: boolean
|
|
1420
1435
|
readonly can_zoom_out: boolean
|
|
1436
|
+
readonly canZoomOut: boolean
|
|
1421
1437
|
/**
|
|
1422
1438
|
* Allows to implement a custom notification system.
|
|
1423
1439
|
*/
|
|
1424
1440
|
readonly is_loading: boolean
|
|
1441
|
+
/**
|
|
1442
|
+
* Allows to implement a custom notification system.
|
|
1443
|
+
*/
|
|
1444
|
+
readonly isLoading: boolean
|
|
1425
1445
|
|
|
1426
1446
|
// Owm methods of EvinceView-3.0.EvinceView.View
|
|
1427
1447
|
|
|
@@ -1798,6 +1818,8 @@ module ViewPresentation {
|
|
|
1798
1818
|
document?: EvinceDocument.Document | null
|
|
1799
1819
|
inverted_colors?: boolean | null
|
|
1800
1820
|
rotation?: number | null
|
|
1821
|
+
currentPage?: number | null
|
|
1822
|
+
invertedColors?: boolean | null
|
|
1801
1823
|
}
|
|
1802
1824
|
|
|
1803
1825
|
}
|
|
@@ -1807,8 +1829,10 @@ interface ViewPresentation extends Atk.ImplementorIface, Gtk.Buildable {
|
|
|
1807
1829
|
// Own properties of EvinceView-3.0.EvinceView.ViewPresentation
|
|
1808
1830
|
|
|
1809
1831
|
current_page: number
|
|
1832
|
+
currentPage: number
|
|
1810
1833
|
readonly document: EvinceDocument.Document
|
|
1811
1834
|
readonly inverted_colors: boolean
|
|
1835
|
+
readonly invertedColors: boolean
|
|
1812
1836
|
rotation: number
|
|
1813
1837
|
|
|
1814
1838
|
// Owm methods of EvinceView-3.0.EvinceView.ViewPresentation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/evinceview-3.0",
|
|
3
|
-
"version": "3.0.0-3.2.
|
|
3
|
+
"version": "3.0.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for EvinceView-3.0, generated from library version 3.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "evinceview-3.0.js",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit evinceview-3.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/atk-1.0": "^2.50.0-3.2.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/evincedocument-3.0": "^45.0.0-3.2.
|
|
31
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
32
|
-
"@girs/gdk-3.0": "^3.24.38-3.2.
|
|
33
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
34
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
35
|
-
"@girs/gjs": "^3.2.
|
|
36
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
37
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
38
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
39
|
-
"@girs/gtk-3.0": "^3.24.38-3.2.
|
|
40
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
41
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
42
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
28
|
+
"@girs/atk-1.0": "^2.50.0-3.2.6",
|
|
29
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.6",
|
|
30
|
+
"@girs/evincedocument-3.0": "^45.0.0-3.2.6",
|
|
31
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.6",
|
|
32
|
+
"@girs/gdk-3.0": "^3.24.38-3.2.6",
|
|
33
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
|
|
34
|
+
"@girs/gio-2.0": "^2.78.0-3.2.6",
|
|
35
|
+
"@girs/gjs": "^3.2.6",
|
|
36
|
+
"@girs/glib-2.0": "^2.78.0-3.2.6",
|
|
37
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.6",
|
|
38
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.6",
|
|
39
|
+
"@girs/gtk-3.0": "^3.24.38-3.2.6",
|
|
40
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
|
|
41
|
+
"@girs/pango-1.0": "^1.51.0-3.2.6",
|
|
42
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "*"
|