/**
 * A delegate reference for the popper js library
 */ export const ElementReference = ( function ( ) { function ElementReference ( elt ) { this . elt = elt ; } ElementReference . prototype . getBoundingClientRect = function ( ) { return this . elt . getBoundingClientRect ( ) ; } ; Object . defineProperty ( ElementReference . prototype , 'clientWidth' , { get : function ( ) { return this . elt . clientWidth ; } , enumerable : true , configurable : true , } ) ; Object . defineProperty ( ElementReference . prototype , 'clientHeight' , { get : function ( ) { return this . elt . clientHeight ; } , enumerable : true , configurable : true , } ) ; return ElementReference ; } ) ( ) ; /**
 * A reference for a specific position.
 */ export const PositionReference = ( function ( ) { function PositionReference ( _a ) { const x = _a . x , y = _a . y , width = _a . width , height = _a . height ; this . x = x ; this . y = y ; this . width = width ; this . height = height ; } PositionReference . prototype . getBoundingClientRect = function ( ) { const halfwidth = this . width / 2 ; const halfheight = this . height / 2 ; return { left : this . x - halfwidth , right : this . x + halfwidth , top : this . y - halfheight , bottom : this . y + halfheight , width : this . width , height : this . height , } ; } ; Object . defineProperty ( PositionReference . prototype , 'clientWidth' , { get : function ( ) { return this . width ; } , enumerable : true , configurable : true , } ) ; Object . defineProperty ( PositionReference . prototype , 'clientHeight' , { get : function ( ) { return this . height ; } , enumerable : true , configurable : true , } ) ; return PositionReference ; } ) ( ) ;