Class TSVGUnits

Unit

Declaration

type TSVGUnits = class(TCSSUnitConverter)

Description

Converter for units within an SVG document or group

Hierarchy

Overview

Fields

Protected FContainerHeight: TFloatWithCSSUnit;
Protected FContainerWidth: TFloatWithCSSUnit;
Protected FDefaultDpi: PSingle;
Protected FPreserveAspectRatio: TSVGPreserveAspectRatio;
Protected FProportionalViewSize: TSVGSize;
Protected FStretchedViewSize: TSVGSize;
Protected FSvg: TDOMElement;
Protected FViewBox: TSVGViewBox;
Protected FViewPortSize: TSVGSize;

Methods

Public constructor Create(ASvg: TDOMElement; ADefaultDpi: PSingle);
Public function GetStretchRectF(AViewPort: TRectF; const par: TSVGPreserveAspectRatio): TRectF;
Protected function GetCustomOrigin: TPointF;
Protected function GetDpiX: single; override;
Protected function GetDpiY: single; override;
Public procedure SetDefaultDpiAndOrigin;
Protected procedure SetContainerHeight(AValue: TFloatWithCSSUnit);
Protected procedure SetContainerWidth(AValue: TFloatWithCSSUnit);
Protected procedure SetCustomOrigin(AValue: TPointF);
Protected procedure SetViewBox(AValue: TSVGViewBox);

Properties

Public property ContainerHeight: TFloatWithCSSUnit read FContainerHeight write SetContainerHeight;
Public property ContainerWidth: TFloatWithCSSUnit read FContainerWidth write SetContainerWidth;
Public property CustomOrigin: TPointF read GetCustomOrigin write SetCustomOrigin;
Public property OnRecompute: TSVGRecomputeEvent read FOnRecompute write SetOnRecompute;
Public property PreserveAspectRatio: TSVGPreserveAspectRatio read FPreserveAspectRatio;
Public property ProportionalViewSize: TSVGSize read FProportionalViewSize;
Public property StretchedViewSize: TSVGSize read FStretchedViewSize;
Public property ViewBox: TSVGViewBox read FViewBox write SetViewBox;
Public property ViewPortSize: TSVGSize read FViewPortSize;

Description

Fields

Protected FContainerHeight: TFloatWithCSSUnit;

This item has no description.

Protected FContainerWidth: TFloatWithCSSUnit;

This item has no description.

Protected FDefaultDpi: PSingle;

This item has no description.

Protected FPreserveAspectRatio: TSVGPreserveAspectRatio;

This item has no description.

Protected FProportionalViewSize: TSVGSize;

This item has no description.

Protected FStretchedViewSize: TSVGSize;

This item has no description.

Protected FSvg: TDOMElement;

This item has no description.

Protected FViewBox: TSVGViewBox;

fetched or computed

Protected FViewPortSize: TSVGSize;

This item has no description.

Methods

Public constructor Create(ASvg: TDOMElement; ADefaultDpi: PSingle);

This item has no description.

Public function GetStretchRectF(AViewPort: TRectF; const par: TSVGPreserveAspectRatio): TRectF;

This item has no description.

Protected function GetCustomOrigin: TPointF;

This item has no description.

Protected function GetDpiX: single; override;

This item has no description.

Protected function GetDpiY: single; override;

This item has no description.

Public procedure SetDefaultDpiAndOrigin;

This item has no description.

Protected procedure SetContainerHeight(AValue: TFloatWithCSSUnit);

This item has no description.

Protected procedure SetContainerWidth(AValue: TFloatWithCSSUnit);

This item has no description.

Protected procedure SetCustomOrigin(AValue: TPointF);

This item has no description.

Protected procedure SetViewBox(AValue: TSVGViewBox);

This item has no description.

Properties

Public property ContainerHeight: TFloatWithCSSUnit read FContainerHeight write SetContainerHeight;

This item has no description.

Public property ContainerWidth: TFloatWithCSSUnit read FContainerWidth write SetContainerWidth;

This item has no description.

Public property CustomOrigin: TPointF read GetCustomOrigin write SetCustomOrigin;

This item has no description.

Public property OnRecompute: TSVGRecomputeEvent read FOnRecompute write SetOnRecompute;

This item has no description.

Public property PreserveAspectRatio: TSVGPreserveAspectRatio read FPreserveAspectRatio;

This item has no description.

Public property ProportionalViewSize: TSVGSize read FProportionalViewSize;

This item has no description.

Public property StretchedViewSize: TSVGSize read FStretchedViewSize;

This item has no description.

Public property ViewBox: TSVGViewBox read FViewBox write SetViewBox;

This item has no description.

Public property ViewPortSize: TSVGSize read FViewPortSize;

This item has no description.