Skip to content
Last updated

API / geotoolkit / scene / KeepAspectRatioRestrictedAnchoredStrategy / KeepAspectRatioRestrictedAnchoredStrategy

Class: KeepAspectRatioRestrictedAnchoredStrategy

scene.KeepAspectRatioRestrictedAnchoredStrategy.KeepAspectRatioRestrictedAnchoredStrategy

KeepAspectRatioRestrictedAnchoredStrategy input transformation adjustment. <br> This keeps aspect ratio based on the options supplied and also aligns the model bounds.

Hierarchy

Table of contents

Constructors
  • [new KeepAspectRatioRestrictedAnchoredStrategy(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.scene.keepaspectratiorestrictedanchoredstrategy.keepaspectratiorestrictedanchoredstrategy.md#new keepaspectratiorestrictedanchoredstrategy(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 KeepAspectRatioRestrictedAnchoredStrategy(options)

• new KeepAspectRatioRestrictedAnchoredStrategy(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): KeepAspectRatioRestrictedAnchoredStrategy

Set enable state

Parameters

Name Type Description
enabledbooleansets the enabled state

Returns

KeepAspectRatioRestrictedAnchoredStrategy

this

Inherited from

AnchoredTransformationAdjustmentStrategy.setEnabled


setProperties

▸ setProperties(properties): KeepAspectRatioRestrictedAnchoredStrategy

Sets the projection properties

Parameters

Name Type Description
propertiesOptionsproperties

Returns

KeepAspectRatioRestrictedAnchoredStrategy

this

Inherited from

AnchoredTransformationAdjustmentStrategy.setProperties


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AnchoredTransformationAdjustmentStrategy.getClassName