Skip to content
Last updated

API / geotoolkit / scene / KeepAspectFitBothDimensionsStrategy / KeepAspectFitBothDimensionsStrategy

Class: KeepAspectFitBothDimensionsStrategy

scene.KeepAspectFitBothDimensionsStrategy.KeepAspectFitBothDimensionsStrategy

KeepAspectFitBothDimensionsStrategy input transformation adjustment. <br> This keeps aspect ratio based on the options supplied, anchors to given coordinates and transforms visible model limits fit both dimensions. <br> By default, anchors to the center horizontally and vertically.

Hierarchy

Table of contents

Constructors
  • [new KeepAspectFitBothDimensionsStrategy(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.scene.keepaspectfitbothdimensionsstrategy.keepaspectfitbothdimensionsstrategy.md#new keepaspectfitbothdimensionsstrategy(options))
Methods
Css Properties
Name Type Description
alignmentAnchorTypeAlignment
aspectrationumberY-scale to x-scale ratio
enabledbooleanEnable flag
keepaspectratiobooleanKeep aspect ratio flag
modeScalingModeScaling mode

Contents

Constructors

new KeepAspectFitBothDimensionsStrategy(options)

• new KeepAspectFitBothDimensionsStrategy(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

AnchoredTransformationAdjustmentStrategy.constructor

Methods

adjustTransformation

▸ adjustTransformation(model, newLocalTr): Transformation

Adjusts input transformation

Parameters

Name Type Description
modelGroup<Node&gt;model
newLocalTrTransformationtransformation to adjust

Returns

Transformation

adjusted transformation

Inherited from

AnchoredTransformationAdjustmentStrategy.adjustTransformation


getClassName

▸ getClassName(): string

Returns

string

Inherited from

AnchoredTransformationAdjustmentStrategy.getClassName


getProperties

▸ getProperties(): OptionsOut

Gets properties

Returns

OptionsOut

properties

Inherited from

AnchoredTransformationAdjustmentStrategy.getProperties


isEnabled

▸ isEnabled(): boolean

Returns enable state

Returns

boolean

enable state

Inherited from

AnchoredTransformationAdjustmentStrategy.isEnabled


setEnabled

▸ setEnabled(enabled): KeepAspectFitBothDimensionsStrategy

Set enable state

Parameters

Name Type Description
enabledbooleansets the enabled state

Returns

KeepAspectFitBothDimensionsStrategy

this

Inherited from

AnchoredTransformationAdjustmentStrategy.setEnabled


setProperties

▸ setProperties(properties): KeepAspectFitBothDimensionsStrategy

Sets the projection properties

Parameters

Name Type Description
propertiesOptionsproperties

Returns

KeepAspectFitBothDimensionsStrategy

this

Inherited from

AnchoredTransformationAdjustmentStrategy.setProperties


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AnchoredTransformationAdjustmentStrategy.getClassName