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
Text is always rotated from center, whatever its layout. LEFT/RIGHT aligned text should rather have their rotation point on the anchor.
This would ease positioning Y axis label in the 2D case as the default layout is
but which is fixed with a undesirable fix in AxisLabelProcessor.axisLabelPosition_2D with the below code
if(!LabelOrientation.HORIZONTAL.equals(axisLayout.getYAxisLabelOrientation())) {
// consider the rotation & offset due to vertical text inttextLength = view.getPainter().getTextLengthInPixels(axisLayout.getFont(), axisLayout.getYAxisLabel());
// hack the emulgl vertical Y axis case by ignoring pixel scale for textif(!view.getCanvas().isNative())
textLength /= pixelScale.y;
xShiftPx -= textLength/2;
inttextHeight = axisLayout.getFont().getHeight();
// hack the emulgl vertical Y axis case by ignoring pixel scale for textif(!view.getCanvas().isNative())
textHeight /= pixelScale.x;
xShiftPx += textHeight/2;
}
The text was updated successfully, but these errors were encountered:
Text is always rotated from center, whatever its layout. LEFT/RIGHT aligned text should rather have their rotation point on the anchor.
This would ease positioning Y axis label in the 2D case as the default layout is
but which is fixed with a undesirable fix in
AxisLabelProcessor.axisLabelPosition_2D
with the below codeThe text was updated successfully, but these errors were encountered: