NativeElixirPdfUtilities.HtmlToPdf.DrawingGeometry (native_elixir_pdf_utilities v1.1.0)
View SourceShared drawing coordinates for validated writer boxes and logical annotations.
Pixel snapping happens in the local viewport before applying drawing-group transforms. These calculations consume validator-prepared geometry.
Summary
Functions
Expresses a validated axis or affine transform as a PDF six-value matrix.
Returns the intersection of a validated box's outer and optional inner clip rectangles.
Projects prepared outer and inner box clips with the same rounded curves used by PDF paint.
Returns the bounds of a validated rectangle or exact convex clip polygon.
Clips validated native content in its containing viewport, retaining local transforms.
Tests a validated point against the actual convex clip, including boundary points.
Returns a canonical geometric clip expression for validated composition.
Clips validated polygon corners against an exact convex containing clip.
Returns the cumulative matrix, exact clip and local paint height of validated composition.
Returns the HTML source print canvas for validated page or viewport geometry.
Builds validated elliptical contours using the source printer's float32 conic subdivision.
Returns the effective local clip, including the existing zero-area group rule.
Returns the actual cubic commands shared by rounded rectangle paint and clip projection.
Transforms each validated box clip boundary before intersecting its outer and inner rectangles.
Translates validated artwork and annotations while keeping drawing-group children and clips local.
Translates validated native boxes, including glyph-group children in the parent coordinate space.
Functions
Expresses a validated axis or affine transform as a PDF six-value matrix.
Returns the intersection of a validated box's outer and optional inner clip rectangles.
Projects prepared outer and inner box clips with the same rounded curves used by PDF paint.
Returns the bounds of a validated rectangle or exact convex clip polygon.
Clips validated native content in its containing viewport, retaining local transforms.
Pagination uses :source for fragment boundaries that transform with the source
fragment. Containing clips remain outside pending descendant transform scopes.
Tests a validated point against the actual convex clip, including boundary points.
Returns a canonical geometric clip expression for validated composition.
Clips validated polygon corners against an exact convex containing clip.
Returns the cumulative matrix, exact clip and local paint height of validated composition.
@spec css_print_canvas(number()) :: %{ point_scale: float(), css_scale: float(), css_pixels_per_point: float(), height: number() }
Returns the HTML source print canvas for validated page or viewport geometry.
@spec elliptical_rect_commands(number(), number(), number(), number(), map(), 4 | 8) :: [ {integer(), [number()]} ]
Builds validated elliptical contours using the source printer's float32 conic subdivision.
Returns the effective local clip, including the existing zero-area group rule.
@spec rounded_rect_commands(number(), number(), number(), number(), number()) :: [ {integer(), [number()]} ]
Returns the actual cubic commands shared by rounded rectangle paint and clip projection.
Transforms each validated box clip boundary before intersecting its outer and inner rectangles.
Translates validated artwork and annotations while keeping drawing-group children and clips local.
Translates validated native boxes, including glyph-group children in the parent coordinate space.