Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/imagick.ts>MagickGeometry

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class MagickGeometry
Re-export
import { MagickGeometry } from "https://deno.land/x/lume@v1.17.2/deps/imagick.ts";

Constructors

new
MagickGeometry(value: string)
new
MagickGeometry(widthAndHeight: number)
new
MagickGeometry(width: number, height: number)
new
MagickGeometry(
x: number,
y: number,
width: number,
height: number,
)
new
MagickGeometry(
widthOrValueOrX: number | string,
heightOrY?: number,
width?: number,
height?: number,
)

Properties

private
_aspectRatio: boolean
private
_fillArea: boolean
private
_greater: boolean
private
_height: number
private
_ignoreAspectRatio: boolean
private
_isPercentage: boolean
private
_less: boolean
private
_limitPixels: boolean
private
_width: number
private
_x: number
private
_y: number
readonly
aspectRatio: boolean
fillArea: boolean
greater: boolean
height: number
ignoreAspectRatio: boolean
isPercentage: boolean
less: boolean
limitPixels: boolean
width: number
x: number
y: number

Methods

private
hasFlag(flags: number, flag: GeometryFlags)
private
initialize(instance: number, flags: number)
private
initializeFromAspectRation(instance: number, value: string)
private
isNumber(character: string): boolean
private
parseNumber(value: string): number
_toRectangle(func: (rectangle: number) => void)
toString(): string