Back to Website
Show / Hide Table of Contents

Class ImageItem.ImageSource

Package: @aurigma/design-atoms-model

Constructors

(constructor)(storageId, url, sourcePageIndex, actualSize, saveAspectRatio, origin)

Constructs a new instance of the ImageSource class

Declaration
constructor(storageId?: string, url?: string, sourcePageIndex?: number, actualSize?: boolean, saveAspectRatio?: boolean, origin?: ImageSource.Origin);
Parameters
Type Name Description
string storageId
string url
number sourcePageIndex
boolean actualSize
boolean saveAspectRatio
Origin origin

Properties

_propertyChanged

Declaration
protected _propertyChanged: EventWithSenderArg<ImageSource, string>;
Property Value
Type Description
EventWithSenderArg<ImageSource, string>

actualSize

Declaration
get actualSize(): boolean;

set actualSize(value: boolean);
Property Value
Type Description
boolean

dpiX

Declaration
get dpiX(): number;

set dpiX(dpi: number);
Property Value
Type Description
number

dpiY

Declaration
get dpiY(): number;

set dpiY(dpi: number);
Property Value
Type Description
number

height

Declaration
get height(): number;

set height(value: number);
Property Value
Type Description
number

id

Declaration
get id(): string;

set id(value: string);
Property Value
Type Description
string

isVector

Declaration
get isVector(): boolean;

set isVector(value: boolean);
Property Value
Type Description
boolean

origin

Declaration
get origin(): ImageSource.Origin;
Property Value
Type Description
Origin

pageIndex

Declaration
get pageIndex(): number;

set pageIndex(value: number);
Property Value
Type Description
number

saveAspectRatio

Declaration
get saveAspectRatio(): boolean;

set saveAspectRatio(value: boolean);
Property Value
Type Description
boolean

type

Declaration
get type(): ImageSourceType;
Property Value
Type Description
ImageSourceType

url

Declaration
get url(): string;

set url(value: string);
Property Value
Type Description
string

width

Declaration
get width(): number;

set width(value: number);
Property Value
Type Description
number

Methods

addPropertyChanged(listener)

Declaration
addPropertyChanged(listener: (sender: ImageSource, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: ImageSource, eventArgs: string) => void listener
Returns
Type Description
void

clone()

Declaration
clone(): ImageSource;
Returns
Type Description
ImageSource

equals(other)

Declaration
equals(other: ImageSource): boolean;
Parameters
Type Name Description
ImageSource other
Returns
Type Description
boolean

removePropertyChanged(listener)

Declaration
removePropertyChanged(listener: (sender: ImageSource, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: ImageSource, eventArgs: string) => void listener
Returns
Type Description
void

setIdWithOrigin(id, origin)

Declaration
setIdWithOrigin(id: string, origin: ImageSource.Origin): void;
Parameters
Type Name Description
string id
Origin origin
Returns
Type Description
void

toJSON()

Declaration
toJSON(): {
            id: string;
            width: number;
            height: number;
            isVector: boolean;
            pageIndex: number;
            url: string;
            actualSize: boolean;
            saveAspectRatio: boolean;
            origin: ImageSource.Origin;
        };
Returns
Type Description
{ id: string; width: number; height: number; isVector: boolean; pageIndex: number; url: string; actualSize: boolean; saveAspectRatio: boolean; origin: ImageSource.Origin; }
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback