You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(label.fontSize){// (Code in this block is unchanged)consttextDimensions=measureText({text: labelText,// Append 'px' if a unit was not specified in font-size.fontSize: getFontSizeWithUnit(label.fontSize),fontFamily: label.fontFamily||'sans-serif',lineHeight: 1.2})label.textWidth=textDimensions.width.valuelabel.textHeight=textDimensions.height.valuelabel.computeContainerDimensions()}else{label.textWidth=1label.textHeight=1label.containerWidth=1label.containerHeight=1}returnlabel
if(fontSize){// (Code in this block is unchanged)// Offset text location by paddingdisplay.drawText(text,{x: x+this.getPadding(),// Offset y by a couple of pixels to account for off-centeredness.y: y+this.getPadding()+2},{// text colorfill: display.styler.compute2('segment_labels','color',this.parent),'font-family': display.styler.compute2('segment_labels','font-family',this.parent),// Append 'px' if a unit was not specified in font-size.'font-size': getFontSizeWithUnit(fontSize)})}}
@binh-dam-ibigroup, can you document some of the things that you tried/noticed about this when debugging?
The text was updated successfully, but these errors were encountered: