RelativeRectangle

RelativeRectangle

개요

RelativeRectangle은(는) Aspose.3D FOSS에서 TypeScript용 클래스입니다.

RelativeRectangle.constructor는 기본 위치와 크기 값을 가진 사각형을 생성합니다.

이 클래스는 TypeScript 프로그램에서 RelativeRectangle 객체를 위해 5개의 메서드를 선언합니다. 사용 가능한 메서드에는 constructor, fromScale, toAbsolute가 포함됩니다. 공개 멤버는 Aspose.3D FOSS for TypeScript 패키지를 설치한 후 모든 TypeScript 애플리케이션에서 접근할 수 있습니다. 속성: offsetHeight, offsetWidth, offsetX, offsetY, scaleHeight, scaleWidth, 그리고 2개가 더 있습니다.

속성

이름유형액세스설명
scaleXnumber읽기/쓰기스케일 x를 가져옵니다.
scaleYnumber읽기/쓰기scale y를 가져옵니다.
scaleWidthnumber읽기/쓰기스케일 너비를 가져옵니다.
scaleHeightnumber읽기/쓰기스케일 높이를 가져옵니다.
offsetXnumber읽기/쓰기오프셋 x를 가져옵니다.
offsetYnumber읽기/쓰기오프셋 y를 가져옵니다.
offsetWidthnumber읽기/쓰기오프셋 너비를 가져옵니다.
offsetHeightnumber읽기/쓰기오프셋 높이를 가져옵니다.

메서드

시그니처설명
constructor()지정된 left, top, width 및 height 로 사각형을 초기화합니다
constructor(left: number, top: number, width: number, height: number)이 RelativeRectangle 인스턴스에서 constructor(left, top, width, height)를 호출합니다.
constructor()
toAbsolute(left: number, top: number, width: number, height: number) → Rect주어진 bounds 를 사용하여 이 상대 사각형을 절대 Rect 로 변환합니다
fromScale(scaleX: number, scaleY: number, scaleWidth: number, scaleHeight: number) → RelativeRectangle제공된 스케일링 팩터를 사용하여 새 RelativeRectangle를 생성합니다.

참조

 한국어