src/drawer.js
function() {
        $.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");
        var world = this.viewer.world;
        var maxOpacity = 0;
        for (var i = 0; i < world.getItemCount(); i++) {
            var opacity = world.getItemAt( i ).getOpacity();
            if ( opacity > maxOpacity ) {
                maxOpacity = opacity;
            }
        }
        return maxOpacity;
    }
function() {
        $.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");
        var world = this.viewer.world;
        var maxOpacity = 0;
        for (var i = 0; i < world.getItemCount(); i++) {
            var opacity = world.getItemAt( i ).getOpacity();
            if ( opacity > maxOpacity ) {
                maxOpacity = opacity;
            }
        }
        return maxOpacity;
    }
function ( ) { $ . console . error ( "drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead." ) ; var world = this . viewer . world ; var maxOpacity = 0 ; for ( var i = 0 ; i < world . getItemCount ( ) ; i ++ ) { var opacity = world . getItemAt ( i ) . getOpacity ( ) ; if ( opacity > maxOpacity ) { maxOpacity = opacity ; } } return maxOpacity ; }
Get the opacity of the drawer.
@returns {Number}
Get the opacity of the drawer .