@girs/coglpango-14 14.0.0-3.3.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/README.md +104 -0
- package/coglpango-14-ambient.d.ts +8 -0
- package/coglpango-14-ambient.js +2 -0
- package/coglpango-14-import.d.ts +12 -0
- package/coglpango-14-import.js +3 -0
- package/coglpango-14.cjs +11 -0
- package/coglpango-14.d.cts +149 -0
- package/coglpango-14.d.ts +154 -0
- package/coglpango-14.js +10 -0
- package/package.json +70 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
|
|
2
|
+
# CoglPango-14
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for CoglPango-14, generated from library version 14.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.3.0.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/coglpango-14
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import CoglPango from '@girs/coglpango-14';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or if you prefer CommonJS, you can also use this:
|
|
26
|
+
```ts
|
|
27
|
+
const CoglPango = require('@girs/coglpango-14');
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Ambient Modules
|
|
31
|
+
|
|
32
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
33
|
+
For this you need to include `@girs/coglpango-14` or `@girs/coglpango-14/ambient` in your `tsconfig` or entry point Typescript file:
|
|
34
|
+
|
|
35
|
+
`index.ts`:
|
|
36
|
+
```ts
|
|
37
|
+
import '@girs/coglpango-14'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`tsconfig.json`:
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"compilerOptions": {
|
|
44
|
+
...
|
|
45
|
+
},
|
|
46
|
+
"include": ["@girs/coglpango-14"],
|
|
47
|
+
...
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Now you can import the ambient module with TypeScript support:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import CoglPango from 'gi://CoglPango?version=14';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Global import
|
|
58
|
+
|
|
59
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
60
|
+
For this you need to include `@girs/coglpango-14` or `@girs/coglpango-14/import` in your `tsconfig` or entry point Typescript file:
|
|
61
|
+
|
|
62
|
+
`index.ts`:
|
|
63
|
+
```ts
|
|
64
|
+
import '@girs/coglpango-14'
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`tsconfig.json`:
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"compilerOptions": {
|
|
71
|
+
...
|
|
72
|
+
},
|
|
73
|
+
"include": ["@girs/coglpango-14"],
|
|
74
|
+
...
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Now you have also type support for this, too:
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
const CoglPango = imports.gi.CoglPango;
|
|
82
|
+
```
|
|
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
|
+
|
|
97
|
+
### Bundle
|
|
98
|
+
|
|
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).
|
|
100
|
+
|
|
101
|
+
## Other packages
|
|
102
|
+
|
|
103
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
104
|
+
|
package/coglpango-14.cjs
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import './coglpango-14-ambient.d.ts';
|
|
10
|
+
import './coglpango-14-import.d.ts';
|
|
11
|
+
/**
|
|
12
|
+
* CoglPango-14
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type PangoCairo from '@girs/pangocairo-1.0';
|
|
16
|
+
import type cairo from '@girs/cairo-1.0';
|
|
17
|
+
import type GObject from '@girs/gobject-2.0';
|
|
18
|
+
import type GLib from '@girs/glib-2.0';
|
|
19
|
+
import type Pango from '@girs/pango-1.0';
|
|
20
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
21
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
22
|
+
import type Gio from '@girs/gio-2.0';
|
|
23
|
+
import type Mtk from '@girs/mtk-14';
|
|
24
|
+
import type Graphene from '@girs/graphene-1.0';
|
|
25
|
+
import type Cogl from '@girs/cogl-14';
|
|
26
|
+
import type xlib from '@girs/xlib-2.0';
|
|
27
|
+
import type GL from '@girs/gl-1.0';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* This updates any internal glyph cache textures as necessary to be
|
|
31
|
+
* able to render the given `layout`.
|
|
32
|
+
*
|
|
33
|
+
* This api should be used to avoid mid-scene modifications of
|
|
34
|
+
* glyph-cache textures which can lead to undefined rendering results.
|
|
35
|
+
* @param layout A #PangoLayout
|
|
36
|
+
*/
|
|
37
|
+
export function ensure_glyph_cache_for_layout(layout: Pango.Layout): void
|
|
38
|
+
/**
|
|
39
|
+
* Clears the glyph cache for `font_map`.
|
|
40
|
+
* @param font_map a #CoglPangoFontMap
|
|
41
|
+
*/
|
|
42
|
+
export function font_map_clear_glyph_cache(font_map: FontMap): void
|
|
43
|
+
/**
|
|
44
|
+
* Create a [class`Pango`.Context] for the given `font_map`.
|
|
45
|
+
* @param font_map a #CoglPangoFontMap
|
|
46
|
+
* @returns the newly created context: free with [method@GObject.Object.unref].
|
|
47
|
+
*/
|
|
48
|
+
export function font_map_create_context(font_map: FontMap): Pango.Context
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the [class`CoglPango`.Renderer] for the passed `font_map`.
|
|
51
|
+
* @param font_map a #CoglPangoFontMap
|
|
52
|
+
* @returns a #PangoRenderer
|
|
53
|
+
*/
|
|
54
|
+
export function font_map_get_renderer(font_map: FontMap): Pango.Renderer
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves whether the [class`CoglPango`.Renderer] used by `font_map` will use
|
|
57
|
+
* mipmapping when rendering the glyphs.
|
|
58
|
+
* @param font_map a #CoglPangoFontMap
|
|
59
|
+
* @returns %TRUE if mipmapping is used, %FALSE otherwise.
|
|
60
|
+
*/
|
|
61
|
+
export function font_map_get_use_mipmapping(font_map: FontMap): boolean
|
|
62
|
+
/**
|
|
63
|
+
* Creates a new font map.
|
|
64
|
+
* @returns the newly created #PangoFontMap
|
|
65
|
+
*/
|
|
66
|
+
export function font_map_new(): Pango.FontMap
|
|
67
|
+
/**
|
|
68
|
+
* Sets the resolution for the `font_map`.
|
|
69
|
+
*
|
|
70
|
+
* This is a scale factor between points specified in a
|
|
71
|
+
* [struct`Pango`.FontDescription] and Cogl units.
|
|
72
|
+
* The default value is %96, meaning that a 10 point font will be 13
|
|
73
|
+
* units high. (10 * 96. / 72. = 13.3).
|
|
74
|
+
* @param font_map a #CoglPangoFontMap
|
|
75
|
+
* @param dpi The resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.)
|
|
76
|
+
*/
|
|
77
|
+
export function font_map_set_resolution(font_map: FontMap, dpi: number): void
|
|
78
|
+
/**
|
|
79
|
+
* Sets whether the renderer for the passed font map should use
|
|
80
|
+
* mipmapping when rendering a [class`Pango`.Layout].
|
|
81
|
+
* @param font_map a #CoglPangoFontMap
|
|
82
|
+
* @param value %TRUE to enable the use of mipmapping
|
|
83
|
+
*/
|
|
84
|
+
export function font_map_set_use_mipmapping(font_map: FontMap, value: boolean): void
|
|
85
|
+
export module Renderer {
|
|
86
|
+
|
|
87
|
+
// Constructor properties interface
|
|
88
|
+
|
|
89
|
+
export interface ConstructorProperties extends Pango.Renderer.ConstructorProperties {
|
|
90
|
+
|
|
91
|
+
// Own constructor properties of CoglPango-14.CoglPango.Renderer
|
|
92
|
+
|
|
93
|
+
context?: Cogl.Context | null
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface Renderer {
|
|
99
|
+
|
|
100
|
+
// Own properties of CoglPango-14.CoglPango.Renderer
|
|
101
|
+
|
|
102
|
+
readonly context: Cogl.Context
|
|
103
|
+
|
|
104
|
+
// Class property signals of CoglPango-14.CoglPango.Renderer
|
|
105
|
+
|
|
106
|
+
connect(sigName: "notify::context", callback: (($obj: Renderer, pspec: GObject.ParamSpec) => void)): number
|
|
107
|
+
connect_after(sigName: "notify::context", callback: (($obj: Renderer, pspec: GObject.ParamSpec) => void)): number
|
|
108
|
+
emit(sigName: "notify::context", ...args: any[]): void
|
|
109
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
110
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
111
|
+
emit(sigName: string, ...args: any[]): void
|
|
112
|
+
disconnect(id: number): void
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class Renderer extends Pango.Renderer {
|
|
116
|
+
|
|
117
|
+
// Own properties of CoglPango-14.CoglPango.Renderer
|
|
118
|
+
|
|
119
|
+
static name: string
|
|
120
|
+
static $gtype: GObject.GType<Renderer>
|
|
121
|
+
|
|
122
|
+
// Constructors of CoglPango-14.CoglPango.Renderer
|
|
123
|
+
|
|
124
|
+
constructor(config?: Renderer.ConstructorProperties)
|
|
125
|
+
_init(config?: Renderer.ConstructorProperties): void
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface RendererClass {
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export abstract class RendererClass {
|
|
132
|
+
|
|
133
|
+
// Own properties of CoglPango-14.CoglPango.RendererClass
|
|
134
|
+
|
|
135
|
+
static name: string
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type FontMap = PangoCairo.FontMap
|
|
139
|
+
/**
|
|
140
|
+
* Name of the imported GIR library
|
|
141
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
142
|
+
*/
|
|
143
|
+
export const __name__: string
|
|
144
|
+
/**
|
|
145
|
+
* Version of the imported GIR library
|
|
146
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
147
|
+
*/
|
|
148
|
+
export const __version__: string
|
|
149
|
+
// END
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import './coglpango-14-ambient.d.ts';
|
|
10
|
+
import './coglpango-14-import.d.ts';
|
|
11
|
+
/**
|
|
12
|
+
* CoglPango-14
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type PangoCairo from '@girs/pangocairo-1.0';
|
|
16
|
+
import type cairo from '@girs/cairo-1.0';
|
|
17
|
+
import type GObject from '@girs/gobject-2.0';
|
|
18
|
+
import type GLib from '@girs/glib-2.0';
|
|
19
|
+
import type Pango from '@girs/pango-1.0';
|
|
20
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
21
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
22
|
+
import type Gio from '@girs/gio-2.0';
|
|
23
|
+
import type Mtk from '@girs/mtk-14';
|
|
24
|
+
import type Graphene from '@girs/graphene-1.0';
|
|
25
|
+
import type Cogl from '@girs/cogl-14';
|
|
26
|
+
import type xlib from '@girs/xlib-2.0';
|
|
27
|
+
import type GL from '@girs/gl-1.0';
|
|
28
|
+
|
|
29
|
+
export namespace CoglPango {
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* This updates any internal glyph cache textures as necessary to be
|
|
33
|
+
* able to render the given `layout`.
|
|
34
|
+
*
|
|
35
|
+
* This api should be used to avoid mid-scene modifications of
|
|
36
|
+
* glyph-cache textures which can lead to undefined rendering results.
|
|
37
|
+
* @param layout A #PangoLayout
|
|
38
|
+
*/
|
|
39
|
+
function ensure_glyph_cache_for_layout(layout: Pango.Layout): void
|
|
40
|
+
/**
|
|
41
|
+
* Clears the glyph cache for `font_map`.
|
|
42
|
+
* @param font_map a #CoglPangoFontMap
|
|
43
|
+
*/
|
|
44
|
+
function font_map_clear_glyph_cache(font_map: FontMap): void
|
|
45
|
+
/**
|
|
46
|
+
* Create a [class`Pango`.Context] for the given `font_map`.
|
|
47
|
+
* @param font_map a #CoglPangoFontMap
|
|
48
|
+
* @returns the newly created context: free with [method@GObject.Object.unref].
|
|
49
|
+
*/
|
|
50
|
+
function font_map_create_context(font_map: FontMap): Pango.Context
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves the [class`CoglPango`.Renderer] for the passed `font_map`.
|
|
53
|
+
* @param font_map a #CoglPangoFontMap
|
|
54
|
+
* @returns a #PangoRenderer
|
|
55
|
+
*/
|
|
56
|
+
function font_map_get_renderer(font_map: FontMap): Pango.Renderer
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves whether the [class`CoglPango`.Renderer] used by `font_map` will use
|
|
59
|
+
* mipmapping when rendering the glyphs.
|
|
60
|
+
* @param font_map a #CoglPangoFontMap
|
|
61
|
+
* @returns %TRUE if mipmapping is used, %FALSE otherwise.
|
|
62
|
+
*/
|
|
63
|
+
function font_map_get_use_mipmapping(font_map: FontMap): boolean
|
|
64
|
+
/**
|
|
65
|
+
* Creates a new font map.
|
|
66
|
+
* @returns the newly created #PangoFontMap
|
|
67
|
+
*/
|
|
68
|
+
function font_map_new(): Pango.FontMap
|
|
69
|
+
/**
|
|
70
|
+
* Sets the resolution for the `font_map`.
|
|
71
|
+
*
|
|
72
|
+
* This is a scale factor between points specified in a
|
|
73
|
+
* [struct`Pango`.FontDescription] and Cogl units.
|
|
74
|
+
* The default value is %96, meaning that a 10 point font will be 13
|
|
75
|
+
* units high. (10 * 96. / 72. = 13.3).
|
|
76
|
+
* @param font_map a #CoglPangoFontMap
|
|
77
|
+
* @param dpi The resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.)
|
|
78
|
+
*/
|
|
79
|
+
function font_map_set_resolution(font_map: FontMap, dpi: number): void
|
|
80
|
+
/**
|
|
81
|
+
* Sets whether the renderer for the passed font map should use
|
|
82
|
+
* mipmapping when rendering a [class`Pango`.Layout].
|
|
83
|
+
* @param font_map a #CoglPangoFontMap
|
|
84
|
+
* @param value %TRUE to enable the use of mipmapping
|
|
85
|
+
*/
|
|
86
|
+
function font_map_set_use_mipmapping(font_map: FontMap, value: boolean): void
|
|
87
|
+
module Renderer {
|
|
88
|
+
|
|
89
|
+
// Constructor properties interface
|
|
90
|
+
|
|
91
|
+
interface ConstructorProperties extends Pango.Renderer.ConstructorProperties {
|
|
92
|
+
|
|
93
|
+
// Own constructor properties of CoglPango-14.CoglPango.Renderer
|
|
94
|
+
|
|
95
|
+
context?: Cogl.Context | null
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface Renderer {
|
|
101
|
+
|
|
102
|
+
// Own properties of CoglPango-14.CoglPango.Renderer
|
|
103
|
+
|
|
104
|
+
readonly context: Cogl.Context
|
|
105
|
+
|
|
106
|
+
// Class property signals of CoglPango-14.CoglPango.Renderer
|
|
107
|
+
|
|
108
|
+
connect(sigName: "notify::context", callback: (($obj: Renderer, pspec: GObject.ParamSpec) => void)): number
|
|
109
|
+
connect_after(sigName: "notify::context", callback: (($obj: Renderer, pspec: GObject.ParamSpec) => void)): number
|
|
110
|
+
emit(sigName: "notify::context", ...args: any[]): void
|
|
111
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
112
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
113
|
+
emit(sigName: string, ...args: any[]): void
|
|
114
|
+
disconnect(id: number): void
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
class Renderer extends Pango.Renderer {
|
|
118
|
+
|
|
119
|
+
// Own properties of CoglPango-14.CoglPango.Renderer
|
|
120
|
+
|
|
121
|
+
static name: string
|
|
122
|
+
static $gtype: GObject.GType<Renderer>
|
|
123
|
+
|
|
124
|
+
// Constructors of CoglPango-14.CoglPango.Renderer
|
|
125
|
+
|
|
126
|
+
constructor(config?: Renderer.ConstructorProperties)
|
|
127
|
+
_init(config?: Renderer.ConstructorProperties): void
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface RendererClass {
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
abstract class RendererClass {
|
|
134
|
+
|
|
135
|
+
// Own properties of CoglPango-14.CoglPango.RendererClass
|
|
136
|
+
|
|
137
|
+
static name: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
type FontMap = PangoCairo.FontMap
|
|
141
|
+
/**
|
|
142
|
+
* Name of the imported GIR library
|
|
143
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
144
|
+
*/
|
|
145
|
+
const __name__: string
|
|
146
|
+
/**
|
|
147
|
+
* Version of the imported GIR library
|
|
148
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
149
|
+
*/
|
|
150
|
+
const __version__: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export default CoglPango;
|
|
154
|
+
// END
|
package/coglpango-14.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/coglpango-14",
|
|
3
|
+
"version": "14.0.0-3.3.0",
|
|
4
|
+
"description": "GJS TypeScript type definitions for CoglPango-14, generated from library version 14.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "coglpango-14.js",
|
|
7
|
+
"main": "coglpango-14.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./coglpango-14-ambient.d.ts",
|
|
11
|
+
"default": "./coglpango-14-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./coglpango-14-import.d.ts",
|
|
15
|
+
"default": "./coglpango-14-import.js"
|
|
16
|
+
},
|
|
17
|
+
".": {
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./coglpango-14.d.ts",
|
|
20
|
+
"default": "./coglpango-14.js"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./coglpango-14.d.cts",
|
|
24
|
+
"default": "./coglpango-14.cjs"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
30
|
+
"test:esm": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit coglpango-14.d.ts",
|
|
31
|
+
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit coglpango-14.d.cts"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@girs/cairo-1.0": "^1.0.0-3.3.0",
|
|
35
|
+
"@girs/cogl-14": "^14.0.0-3.3.0",
|
|
36
|
+
"@girs/freetype2-2.0": "^2.0.0-3.3.0",
|
|
37
|
+
"@girs/gio-2.0": "^2.78.0-3.3.0",
|
|
38
|
+
"@girs/gjs": "^3.3.0",
|
|
39
|
+
"@girs/gl-1.0": "^1.0.0-3.3.0",
|
|
40
|
+
"@girs/glib-2.0": "^2.78.0-3.3.0",
|
|
41
|
+
"@girs/gobject-2.0": "^2.78.0-3.3.0",
|
|
42
|
+
"@girs/graphene-1.0": "^1.0.0-3.3.0",
|
|
43
|
+
"@girs/harfbuzz-0.0": "^8.2.1-3.3.0",
|
|
44
|
+
"@girs/mtk-14": "^14.0.0-3.3.0",
|
|
45
|
+
"@girs/pango-1.0": "^1.51.0-3.3.0",
|
|
46
|
+
"@girs/pangocairo-1.0": "^1.0.0-3.3.0",
|
|
47
|
+
"@girs/xlib-2.0": "^2.0.0-3.3.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"typescript": "*"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"Gir",
|
|
54
|
+
"TypeScript",
|
|
55
|
+
"types",
|
|
56
|
+
"GObject-Introspection",
|
|
57
|
+
"GJS",
|
|
58
|
+
"CoglPango-14"
|
|
59
|
+
],
|
|
60
|
+
"author": "ts-for-gir",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
65
|
+
},
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
68
|
+
},
|
|
69
|
+
"homepage": "https://github.com/gjsify/types/tree/main/coglpango-14#readme"
|
|
70
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF"
|
|
19
|
+
},
|
|
20
|
+
"include": ["./coglpango-14.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|