TreeMapItem.updateInactiveOpacity

Syntax

updateInactiveOpacity();

Description

The updateInactiveOpacity method refreshes the inactiveOpacity property that determines opacity for inactive items without changing the visible opacity.

Example

To execute this example, the page must contain the TreeMap component named treeMap (see Example of Creating the TreeMap Component):

// Get chart item with the index 3
var item = treeMap.getSceneItems()[3];
// Replace the current value of inactiveOpacity with 0.5 
item.setColor(item.getColor, 0.5);
// Refresh value of inactive items' opacity
item.updateInactiveOpacity();
// -> inactiveOpacity = 1

After the example execution the inactiveOpacity property that sets opacity for inactive items, is changed by 0.5, after that it is refreshed and set to the default value (1).

See also:

TreeMapItem