Last updated

API / geotoolkit / schematics / utils / ShapesBoundsCalculation / ShapesBoundsCalculation

Class: ShapesBoundsCalculation

utils.ShapesBoundsCalculation.ShapesBoundsCalculation

Class to calculate schematics component bounds as Rect's coordinates

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new ShapesBoundsCalculation()

new ShapesBoundsCalculation()

Overrides

BoundsCalculation.constructor

Methods

getClassName

getClassName(): string

Returns

string

Inherited from

BoundsCalculation.getClassName


getComponentBounds

getComponentBounds(node, isCompressed?): { x: number[] ; y: number[] } | { x: number[] ; y: number[] }[]

Calculates schematics component bounds

Parameters

Name Type Description
nodeComponentNodecomponent
Optional isCompressedboolean

Returns

{ x: number[] ; y: number[] } | { x: number[] ; y: number[] }[]

component bounds

Overrides

BoundsCalculation.getComponentBounds


getClassName

Static getClassName(): string

Returns

string

Inherited from

BoundsCalculation.getClassName