Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@girs/cairo-1.0

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@girs/cairo-1.0 - npm Package Compare versions

Comparing version 1.0.0-3.3.0 to 1.0.0-4.0.0-beta.1

6

cairo-1.0-ambient.d.ts
declare module 'gi://cairo?version=1.0' {
import Cairo10 from '@girs/cairo-1.0';
export default Cairo10;
import cairo from '@girs/cairo-1.0';
export default cairo;
}
declare module 'gi://cairo' {
import Cairo10 from '@girs/cairo-1.0';
import Cairo10 from 'gi://cairo?version=1.0';
export default Cairo10;

@@ -10,0 +10,0 @@ }

@@ -1,2 +0,1 @@

/*

@@ -10,3 +9,3 @@ * Type Definitions for Gjs (https://gjs.guide/)

import './cairo-1.0-ambient.d.ts';
import './cairo-1.0-import.d.ts';
/**

@@ -20,379 +19,370 @@ * cairo-1.0

export namespace cairo {
enum Status {
SUCCESS,
NO_MEMORY,
INVALID_RESTORE,
INVALID_POP_GROUP,
NO_CURRENT_POINT,
INVALID_MATRIX,
INVALID_STATUS,
NULL_POINTER,
INVALID_STRING,
INVALID_PATH_DATA,
READ_ERROR,
WRITE_ERROR,
SURFACE_FINISHED,
SURFACE_TYPE_MISMATCH,
PATTERN_TYPE_MISMATCH,
INVALID_CONTENT,
INVALID_FORMAT,
INVALID_VISUAL,
FILE_NOT_FOUND,
INVALID_DASH,
INVALID_DSC_COMMENT,
INVALID_INDEX,
CLIP_NOT_REPRESENTABLE,
TEMP_FILE_ERROR,
INVALID_STRIDE,
FONT_TYPE_MISMATCH,
USER_FONT_IMMUTABLE,
USER_FONT_ERROR,
NEGATIVE_COUNT,
INVALID_CLUSTERS,
INVALID_SLANT,
INVALID_WEIGHT,
INVALID_SIZE,
USER_FONT_NOT_IMPLEMENTED,
DEVICE_TYPE_MISMATCH,
DEVICE_ERROR,
INVALID_MESH_CONSTRUCTION,
DEVICE_FINISHED,
JBIG2_GLOBAL_MISSING,
}
enum Content {
COLOR,
ALPHA,
COLOR_ALPHA,
}
enum Operator {
CLEAR,
SOURCE,
OVER,
IN,
OUT,
ATOP,
DEST,
DEST_OVER,
DEST_IN,
DEST_OUT,
DEST_ATOP,
XOR,
ADD,
SATURATE,
MULTIPLY,
SCREEN,
OVERLAY,
DARKEN,
LIGHTEN,
COLOR_DODGE,
COLOR_BURN,
HARD_LIGHT,
SOFT_LIGHT,
DIFFERENCE,
EXCLUSION,
HSL_HUE,
HSL_SATURATION,
HSL_COLOR,
HSL_LUMINOSITY,
}
enum Antialias {
DEFAULT,
NONE,
GRAY,
SUBPIXEL,
FAST,
GOOD,
BEST,
}
enum FillRule {
WINDING,
EVEN_ODD,
}
enum LineCap {
BUTT,
ROUND,
SQUARE,
}
enum LineJoin {
MITER,
ROUND,
BEVEL,
}
enum TextClusterFlags {
BACKWARD,
}
enum FontSlant {
NORMAL,
ITALIC,
OBLIQUE,
}
enum FontWeight {
NORMAL,
BOLD,
}
enum SubpixelOrder {
DEFAULT,
RGB,
BGR,
VRGB,
VBGR,
}
enum HintStyle {
DEFAULT,
NONE,
SLIGHT,
MEDIUM,
FULL,
}
enum HintMetrics {
DEFAULT,
OFF,
ON,
}
enum FontType {
TOY,
FT,
WIN32,
QUARTZ,
USER,
}
enum PathDataType {
MOVE_TO,
LINE_TO,
CURVE_TO,
CLOSE_PATH,
}
enum DeviceType {
DRM,
GL,
SCRIPT,
XCB,
XLIB,
XML,
COGL,
WIN32,
INVALID,
}
enum SurfaceType {
IMAGE,
PDF,
PS,
XLIB,
XCB,
GLITZ,
QUARTZ,
WIN32,
BEOS,
DIRECTFB,
SVG,
OS2,
WIN32_PRINTING,
QUARTZ_IMAGE,
SCRIPT,
QT,
RECORDING,
VG,
GL,
DRM,
TEE,
XML,
SKIA,
SUBSURFACE,
COGL,
}
enum Format {
INVALID,
ARGB32,
RGB24,
A8,
A1,
RGB16_565,
RGB30,
}
enum PatternType {
SOLID,
SURFACE,
LINEAR,
RADIAL,
MESH,
RASTER_SOURCE,
}
enum Extend {
NONE,
REPEAT,
REFLECT,
PAD,
}
enum Filter {
FAST,
GOOD,
BEST,
NEAREST,
BILINEAR,
GAUSSIAN,
}
enum RegionOverlap {
IN,
OUT,
PART,
}
function image_surface_create(): void;
class Context {
static $gtype: GObject.GType<Context>;
enum Status {
SUCCESS,
NO_MEMORY,
INVALID_RESTORE,
INVALID_POP_GROUP,
NO_CURRENT_POINT,
INVALID_MATRIX,
INVALID_STATUS,
NULL_POINTER,
INVALID_STRING,
INVALID_PATH_DATA,
READ_ERROR,
WRITE_ERROR,
SURFACE_FINISHED,
SURFACE_TYPE_MISMATCH,
PATTERN_TYPE_MISMATCH,
INVALID_CONTENT,
INVALID_FORMAT,
INVALID_VISUAL,
FILE_NOT_FOUND,
INVALID_DASH,
INVALID_DSC_COMMENT,
INVALID_INDEX,
CLIP_NOT_REPRESENTABLE,
TEMP_FILE_ERROR,
INVALID_STRIDE,
FONT_TYPE_MISMATCH,
USER_FONT_IMMUTABLE,
USER_FONT_ERROR,
NEGATIVE_COUNT,
INVALID_CLUSTERS,
INVALID_SLANT,
INVALID_WEIGHT,
INVALID_SIZE,
USER_FONT_NOT_IMPLEMENTED,
DEVICE_TYPE_MISMATCH,
DEVICE_ERROR,
INVALID_MESH_CONSTRUCTION,
DEVICE_FINISHED,
JBIG2_GLOBAL_MISSING,
}
enum Content {
COLOR,
ALPHA,
COLOR_ALPHA,
}
enum Operator {
CLEAR,
SOURCE,
OVER,
IN,
OUT,
ATOP,
DEST,
DEST_OVER,
DEST_IN,
DEST_OUT,
DEST_ATOP,
XOR,
ADD,
SATURATE,
MULTIPLY,
SCREEN,
OVERLAY,
DARKEN,
LIGHTEN,
COLOR_DODGE,
COLOR_BURN,
HARD_LIGHT,
SOFT_LIGHT,
DIFFERENCE,
EXCLUSION,
HSL_HUE,
HSL_SATURATION,
HSL_COLOR,
HSL_LUMINOSITY,
}
enum Antialias {
DEFAULT,
NONE,
GRAY,
SUBPIXEL,
FAST,
GOOD,
BEST,
}
enum FillRule {
WINDING,
EVEN_ODD,
}
enum LineCap {
BUTT,
ROUND,
SQUARE,
}
enum LineJoin {
MITER,
ROUND,
BEVEL,
}
enum TextClusterFlags {
BACKWARD,
}
enum FontSlant {
NORMAL,
ITALIC,
OBLIQUE,
}
enum FontWeight {
NORMAL,
BOLD,
}
enum SubpixelOrder {
DEFAULT,
RGB,
BGR,
VRGB,
VBGR,
}
enum HintStyle {
DEFAULT,
NONE,
SLIGHT,
MEDIUM,
FULL,
}
enum HintMetrics {
DEFAULT,
OFF,
ON,
}
enum FontType {
TOY,
FT,
WIN32,
QUARTZ,
USER,
}
enum PathDataType {
MOVE_TO,
LINE_TO,
CURVE_TO,
CLOSE_PATH,
}
enum DeviceType {
DRM,
GL,
SCRIPT,
XCB,
XLIB,
XML,
COGL,
WIN32,
INVALID,
}
enum SurfaceType {
IMAGE,
PDF,
PS,
XLIB,
XCB,
GLITZ,
QUARTZ,
WIN32,
BEOS,
DIRECTFB,
SVG,
OS2,
WIN32_PRINTING,
QUARTZ_IMAGE,
SCRIPT,
QT,
RECORDING,
VG,
GL,
DRM,
TEE,
XML,
SKIA,
SUBSURFACE,
COGL,
}
enum Format {
INVALID,
ARGB32,
RGB24,
A8,
A1,
RGB16_565,
RGB30,
}
enum PatternType {
SOLID,
SURFACE,
LINEAR,
RADIAL,
MESH,
RASTER_SOURCE,
}
enum Extend {
NONE,
REPEAT,
REFLECT,
PAD,
}
enum Filter {
FAST,
GOOD,
BEST,
NEAREST,
BILINEAR,
GAUSSIAN,
}
enum RegionOverlap {
IN,
OUT,
PART,
}
function image_surface_create(): void
// TODO
// See
// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/installed-tests/js/testCairoModule.js
// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/installed-tests/js/testCairo.js
// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/cairo.md
// Constructors of cairo.Context
// image_surface_create -> ImageSurface
// Context.constructor(surface: cairo.ImageSurface)
// ...
_init(...args: any[]): void;
}
interface Context {
}
class Device {
static $gtype: GObject.GType<Device>;
class Context {
// Constructors of cairo.Device
// Own properties of cairo-1.0.cairo.Context
_init(...args: any[]): void;
}
static name: string
}
class Surface {
static $gtype: GObject.GType<Surface>;
interface Device {
}
// Constructors of cairo.Surface
class Device {
_init(...args: any[]): void;
}
// Own properties of cairo-1.0.cairo.Device
class Matrix {
static $gtype: GObject.GType<Matrix>;
static name: string
}
// Constructors of cairo.Matrix
interface Surface {
}
_init(...args: any[]): void;
}
class Surface {
class Pattern {
static $gtype: GObject.GType<Pattern>;
// Own properties of cairo-1.0.cairo.Surface
// Constructors of cairo.Pattern
static name: string
}
_init(...args: any[]): void;
}
interface Matrix {
}
class Region {
static $gtype: GObject.GType<Region>;
class Matrix {
// Constructors of cairo.Region
// Own properties of cairo-1.0.cairo.Matrix
_init(...args: any[]): void;
}
static name: string
}
class FontOptions {
static $gtype: GObject.GType<FontOptions>;
interface Pattern {
}
// Constructors of cairo.FontOptions
class Pattern {
_init(...args: any[]): void;
}
// Own properties of cairo-1.0.cairo.Pattern
class FontFace {
static $gtype: GObject.GType<FontFace>;
static name: string
}
// Constructors of cairo.FontFace
interface Region {
}
_init(...args: any[]): void;
}
class Region {
class ScaledFont {
static $gtype: GObject.GType<ScaledFont>;
// Own properties of cairo-1.0.cairo.Region
// Constructors of cairo.ScaledFont
static name: string
}
_init(...args: any[]): void;
}
interface FontOptions {
}
class Path {
static $gtype: GObject.GType<Path>;
class FontOptions {
// Constructors of cairo.Path
// Own properties of cairo-1.0.cairo.FontOptions
_init(...args: any[]): void;
}
static name: string
}
class Rectangle {
static $gtype: GObject.GType<Rectangle>;
interface FontFace {
}
// Own fields of cairo.Rectangle
class FontFace {
x: number;
y: number;
width: number;
height: number;
// Own properties of cairo-1.0.cairo.FontFace
// Constructors of cairo.Rectangle
static name: string
}
constructor(
properties?: Partial<{
x: number;
y: number;
width: number;
height: number;
}>,
);
_init(...args: any[]): void;
}
interface ScaledFont {
}
class RectangleInt {
static $gtype: GObject.GType<RectangleInt>;
class ScaledFont {
// Own fields of cairo.RectangleInt
// Own properties of cairo-1.0.cairo.ScaledFont
x: number;
y: number;
width: number;
height: number;
static name: string
}
// Constructors of cairo.RectangleInt
interface Path {
}
constructor(
properties?: Partial<{
x: number;
y: number;
width: number;
height: number;
}>,
);
_init(...args: any[]): void;
}
class Path {
// TODO
// See
// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/installed-tests/js/testCairoModule.js
// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/installed-tests/js/testCairo.js
// - https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/cairo.md
// Own properties of cairo-1.0.cairo.Path
// image_surface_create -> ImageSurface
// Context.constructor(surface: cairo.ImageSurface)
// ...
static name: string
/**
* Name of the imported GIR library
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
*/
const __name__: string;
/**
* Version of the imported GIR library
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
*/
const __version__: string;
}
interface Rectangle {
// Own fields of cairo-1.0.cairo.Rectangle
x: number
y: number
width: number
height: number
}
class Rectangle {
// Own properties of cairo-1.0.cairo.Rectangle
static name: string
}
interface RectangleInt {
// Own fields of cairo-1.0.cairo.RectangleInt
x: number
y: number
width: number
height: number
}
class RectangleInt {
// Own properties of cairo-1.0.cairo.RectangleInt
static name: string
}
/**
* Name of the imported GIR library
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
*/
const __name__: string
/**
* Version of the imported GIR library
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
*/
const __version__: string
}
export default cairo;
// END
// END
// @ts-expect-error

@@ -8,4 +7,1 @@ import cairo from 'gi://cairo?version=1.0';

{
"name": "@girs/cairo-1.0",
"version": "1.0.0-3.3.0",
"version": "1.0.0-4.0.0-beta.1",
"description": "GJS TypeScript type definitions for cairo-1.0, generated from library version 1.0.0",

@@ -11,2 +11,3 @@ "type": "module",

"types": "./cairo-1.0-ambient.d.ts",
"import": "./cairo-1.0-ambient.js",
"default": "./cairo-1.0-ambient.js"

@@ -16,24 +17,18 @@ },

"types": "./cairo-1.0-import.d.ts",
"import": "./cairo-1.0-import.js",
"default": "./cairo-1.0-import.js"
},
".": {
"import": {
"types": "./cairo-1.0.d.ts",
"default": "./cairo-1.0.js"
},
"require": {
"types": "./cairo-1.0.d.cts",
"default": "./cairo-1.0.cjs"
}
"types": "./cairo-1.0.d.ts",
"import": "./cairo-1.0.js",
"default": "./cairo-1.0.js"
}
},
"scripts": {
"test": "yarn test:esm && yarn test:cjs",
"test:esm": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cairo-1.0.d.ts",
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cairo-1.0.d.cts"
"test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cairo-1.0.d.ts"
},
"dependencies": {
"@girs/gjs": "^3.3.0",
"@girs/glib-2.0": "^2.78.0-3.3.0",
"@girs/gobject-2.0": "^2.78.0-3.3.0"
"@girs/gjs": "^4.0.0-beta.1",
"@girs/glib-2.0": "^2.77.0-4.0.0-beta.1",
"@girs/gobject-2.0": "^2.77.0-4.0.0-beta.1"
},

@@ -40,0 +35,0 @@ "devDependencies": {

@@ -8,5 +8,4 @@

GJS TypeScript type definitions for cairo-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.3.0.
GJS TypeScript type definitions for cairo-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.1.
Cairo is a 2D graphics library with support for multiple output devices like the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG.

@@ -13,0 +12,0 @@ ## Install

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc