opacity property

num get opacity

Gets or sets the multiplicative opacity for this GraphObject and (if a Panel) all elements. The value must be between 0.0 (fully transparent) and 1.0 (no additional transparency).

Unlike #visible, Opacity only affects drawing, it does not cause objects to be resized or remeasured. Opacity settings do not change the shape of the object or exclude it from object-picking (does not change whether any objects are found by the "find..." methods).

This value is multiplicative with any existing transparency, for instance from Layer#opacity or a GraphObject's opacity higher in the visual tree, or from a Brush or image transparency. The default value is 1.

Implementation

_i2.num get opacity => _i4.getProperty(
      this,
      'opacity',
    );
set opacity (num value)

Implementation

set opacity(_i2.num value) {
  _i4.setProperty(
    this,
    'opacity',
    value,
  );
}