API / geotoolkit / scene / AnchoredTransformationAdjustmentStrategy / 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".
↳
AnchoredTransformationAdjustmentStrategy
Css Properties
| Name | Type | Description |
|---|---|---|
alignment | AnchorType | Alignment |
aspectratio | number | Y-scale to x-scale ratio |
enabled | boolean | Enable flag |
keepaspectratio | boolean | Keep aspect ratio flag |
mode | ScalingMode | Scaling mode |
Constructors
• new AnchoredTransformationAdjustmentStrategy(options?)
| Name | Type |
|---|---|
Optional options | Options |
ScaleScrollStrategy.constructor
Methods
▸ adjustTransformation(model, newLocalTr): Transformation
Adjusts input transformation
| Name | Type | Description |
|---|---|---|
model | Group<Node> | model |
newLocalTr | Transformation | transformation to adjust |
adjusted transformation
ScaleScrollStrategy.adjustTransformation
▸ getClassName(): string
string
ScaleScrollStrategy.getClassName
▸ getProperties(): OptionsOut
Gets properties
properties
ScaleScrollStrategy.getProperties
▸ isEnabled(): boolean
Returns enable state
boolean
enable state
▸ setEnabled(enabled): AnchoredTransformationAdjustmentStrategy
Set enable state
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
AnchoredTransformationAdjustmentStrategy
this
ScaleScrollStrategy.setEnabled
▸ setProperties(properties): AnchoredTransformationAdjustmentStrategy
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | Options | properties |
AnchoredTransformationAdjustmentStrategy
this
ScaleScrollStrategy.setProperties
▸ Static getClassName(): string
string