Class DimensionPatcher

java.lang.Object
eu.kartoffelquadrat.svgpatcher.Patcher
eu.kartoffelquadrat.svgpatcher.DimensionPatcher

public class DimensionPatcher extends Patcher
Little helper class to boost svg dimensions to 5000x5000, regardless of original size.
Author:
Maximilian Schiedermeier, 2022s
  • Constructor Details

    • DimensionPatcher

      public DimensionPatcher(Document svg)
      Dimension Patcher constructor. Creates a utility object that boosts dimensions of provided SVG.
      Parameters:
      svg - the raw svg document object
  • Method Details

    • execute

      public Document execute()
      Changes the SVG dimensions so any browser considers it big enough to trigger css resize.
      Specified by:
      execute in class Patcher
      Returns:
      the patched svg document object