scaleMode property

GeometryEditorScaleMode scaleMode

Determines how a geometry can be interactively scaled (resized) to fill its allocated space while using the GeometryEditor.

This property is ignored during geometry editing if InteractionConfiguration.allowScalingSelectedElement is false. It will be used to define how geometries are initially created by a drag interaction when the active tools is a ShapeTool regardless of the value of InteractionConfiguration.allowScalingSelectedElement.

The scale control handles displayed to the user differ according to the value of this property.

Implementation

GeometryEditorScaleMode get scaleMode {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_InteractionConfiguration_getScaleMode(
      _handle,
      errorHandler,
    );
  });
  return GeometryEditorScaleMode._fromCoreValue(
    coreValue,
  );
}
void scaleMode=(GeometryEditorScaleMode value)

Implementation

set scaleMode(GeometryEditorScaleMode value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_InteractionConfiguration_setScaleMode(
      _handle,
      value.coreValue,
      errorHandler,
    );
  });
}