'use strict' ; import U from '../../Core/Utilities.js' ; const { objectEach } = U ; namespace TreemapUtilities { interface TreemapRecursiveCallbackFunction < TContext = any , TItem = any > { ( this , item ) : ( boolean | TItem ) ; } export const AXIS_MAX = 100 ; todo export function isBoolean ( x ) { return typeof x === 'boolean' ; } todo export function eachObject ( this , list , func , context ? ) { context = context || this ; objectEach ( list , function ( val , key ) : void { func . call ( context , val , key , list ) ; } ) ; } todo todo export function recursive < TContext = any , TItem = any > ( this , item , func , context = this ) { let next ; next = func . call ( context as any , item ) ; if ( next !== false ) { recursive ( next , func , context ) ; } } } export default TreemapUtilities ;