Last updated

API / geotoolkit / scene / AnchoredTransformationAdjustmentStrategy / AnchoredTransformationAdjustmentStrategy

Class: AnchoredTransformationAdjustmentStrategy

scene.AnchoredTransformationAdjustmentStrategy.AnchoredTransformationAdjustmentStrategy

AnchoredTransformationAdjustmentStrategy input transformation adjustment
Anchors to given coordinates and keeps aspect ratio at scaling if set appropriate option

AnchoredTransformationAdjustmentStrategy with its default option { keepaspectratio: false } if data model's visible model limits go beyond entire model limits, output transformation's "translate" components get adjusted to align the model's position according to 'alignment' value. Setting keepAspectRatio on the strategy tells it to keep the same ratio of the adjusted transformation's "scaleY/scaleX".

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
alignmentAnchorTypeAlignment
aspectrationumberY-scale to x-scale ratio
enabledbooleanEnable flag
keepaspectratiobooleanKeep aspect ratio flag
modeScalingModeScaling mode

Contents

Constructors

new AnchoredTransformationAdjustmentStrategy(options)

new AnchoredTransformationAdjustmentStrategy(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

ScaleScrollStrategy.constructor

Methods

adjustTransformation

adjustTransformation(model, newLocalTr): Transformation

Adjusts input transformation

Parameters

Name Type Description
modelGroup<Node>model
newLocalTrTransformationtransformation to adjust

Returns

Transformation

adjusted transformation

Overrides

ScaleScrollStrategy.adjustTransformation


getClassName

getClassName(): string

Returns

string

Inherited from

ScaleScrollStrategy.getClassName


getProperties

getProperties(): OptionsOut

Gets properties

Returns

OptionsOut

properties

Overrides

ScaleScrollStrategy.getProperties


isEnabled

isEnabled(): boolean

Returns enable state

Returns

boolean

enable state

Inherited from

ScaleScrollStrategy.isEnabled


setEnabled

setEnabled(enabled): AnchoredTransformationAdjustmentStrategy

Set enable state

Parameters

Name Type Description
enabledbooleansets the enabled state

Returns

AnchoredTransformationAdjustmentStrategy

this

Inherited from

ScaleScrollStrategy.setEnabled


setProperties

setProperties(properties): AnchoredTransformationAdjustmentStrategy

Sets the projection properties

Parameters

Name Type Description
propertiesOptionsproperties

Returns

AnchoredTransformationAdjustmentStrategy

this

Overrides

ScaleScrollStrategy.setProperties


getClassName

Static getClassName(): string

Returns

string

Inherited from

ScaleScrollStrategy.getClassName