plan method

CanvasViewportPlanResult plan({
  1. required Size2D artboard,
  2. required double targetW,
  3. required double targetH,
  4. Rect2D? contentBounds,
  5. double bleedPx = 0,
})

Implementation

CanvasViewportPlanResult plan({
  required Size2D artboard,
  required double targetW,
  required double targetH,
  Rect2D? contentBounds,
  double bleedPx = 0,
}) {
  return CanvasViewportPlanner.plan(
    artboard: artboard,
    targetW: targetW,
    targetH: targetH,
    bounds: boundsFor(contentBounds: contentBounds),
    paddingPx: paddingPx,
    bleedPx: bleedPx,
    fit: fit,
    tight: tight,
    minUniformScale: minUniformScale,
    maxUniformScale: maxUniformScale,
    snappingEnabled: snappingEnabled,
    pixelRatioForSnapping: pixelRatioForSnapping,
  );
}