docs: @Override protected void resize() {
          width  = clock.getWidth() - clock.getInsets().getLeft() - clock.getInsets().getRight();
          height = clock.getHeight() - clock.getInsets().getTop() - clock.getInsets().getBottom();
  
          if (aspectRatio * width > height) {
              width = 1 / (aspectRatio / height);
          } else if (1 / (aspectRatio / height) > width) {
              height = aspectRatio * width;
          }
  
          centerX = width * 0.5;
          centerY = height * 0.5;
  
          if (width > 0 && height > 0) {
              pane.setMaxSize(width, height);
              pane.relocate((clock.getWidth() - height) * 0.5, (clock.getHeight() - height) * 0.5);
  
              canvas.setWidth(width);
              canvas.setHeight(height);
          }
      }