src/component/helper/BrushController.js
function getPanelByCover(controller, cover) {
    var panels = controller._panels;
    if (!panels) {
        return true; // Global panel
    }
    var panelId = cover.__brushOption.panelId;
    // User may give cover without coord sys info,
    // which is then treated as global panel.
    return panelId != null ? panels[panelId] : true;
}
function getPanelByCover(controller, cover) {
    var panels = controller._panels;
    if (!panels) {
        return true; // Global panel
    }
    var panelId = cover.__brushOption.panelId;
    // User may give cover without coord sys info,
    // which is then treated as global panel.
    return panelId != null ? panels[panelId] : true;
}
function getPanelByCover ( controller , cover ) { var panels = controller . _panels ; if ( ! panels ) { return true ; // Global panel } var panelId = cover . __brushOption . panelId ; // User may give cover without coord sys info, // which is then treated as global panel. return panelId != null ? panels [ panelId ] : true ; }
Return a panel or true
Return a panel or true