!isStrong(dir)?process.env.NODE_ENV!=='production'?invariant(false,'`dir` must be a strong direction to be converted to HTML Direction'):invariant(false):void0;
!isStrong(dir)?process.env.NODE_ENV!=='production'?invariant(false,'`dir` must be a strong direction to be converted to HTML Direction'):invariant(false):void0;
!isStrong(otherDir)?process.env.NODE_ENV!=='production'?invariant(false,'`otherDir` must be a strong direction to be converted to HTML Direction'):invariant(false):void0;
returndir===otherDir?null:getHTMLDir(dir);
}
// == Global Direction ==
/**
*Settheglobaldirection.
*/
functionsetGlobalDir(dir){
globalDir=dir;
}
/**
*Initializetheglobaldirection
*/
functioninitGlobalDir(){
setGlobalDir(LTR);
}
/**
*Gettheglobaldirection
*/
functiongetGlobalDir(){
if(!globalDir){
this.initGlobalDir();
}
!globalDir?process.env.NODE_ENV!=='production'?invariant(false,'Global direction not set.'):invariant(false):void0;