Skip to content
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
  • [new ShapesBoundsCalculation()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.utils.shapesboundscalculation.shapesboundscalculation.md#new shapesboundscalculation())
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