RelativeRectangle

Vue de l’ensemble

‘RelativeRectangle’ est une classe dans Aspose.3D FOSS pour Typescript.

RelativeRectangle.constructor crée un rectangule avec des valeurs de position et de taille par défaut.

Cette classe fournit 3 méthodes pour travailler avec les objets RelativeRectangle dans des programmes de type. Les méthodologies disponibles comprennent: constructor, fromScale , ’toAbsolute. Tous les membres publics sont accessibles à n'importe quelle application de Type après l'installation du pack Aspose.3D FOSS pour TypeScript. Propriétés : offsetHeight;OffsetWidth; OffsetX` et 2 autres.

Description

‘RelativeRectangle’ est une classe dans la bibliothèque Aspose.3D FOSS pour TypeScript qui expose 2 méthodes et 8 propriétés pour l’utilisation programmée.

Les capacités de base comprennent : ’numéro’ ; ’nombre’; ’ numéro’. Ces opérations permettent aux développeurs d’intégrer la fonctionnalité relativerectangle directement dans les applications TypeScript.

La classe propose 3 surcharges constructeurs, permettant une initialisation flexible en fonction du contexte de l’appel.

Propriétés

NameTypeAccessDescription
scaleXnumberRead/WriteGets the scale x.
scaleYnumberRead/WriteGets the scale y.
scaleWidthnumberRead/WriteGets the scale width.
scaleHeightnumberRead/WriteGets the scale height.
offsetXnumberRead/WriteGets the offset x.
offsetYnumberRead/WriteGets the offset y.
offsetWidthnumberRead/WriteGets the offset width.
offsetHeightnumberRead/WriteGets the offset height.

méthodes

SignatureDescription
constructor()Initializes the rectangle with the specified left, top, width, and height
constructor(left: number, top: number, width: number, height: number)
constructor()
toAbsolute(left: number, top: number, width: number, height: number)RectConverts this relative rectangle to an absolute Rect using the given bounds
fromScale(scaleX: number, scaleY: number, scaleWidth: number, scaleHeight: number)RelativeRectangleCreates a new RelativeRectangle from the provided scaling factors

Voir aussi

  • Aspose.3D - référence API d’entreprise
 Français