aspose.svg.builder
The Aspose.Svg.Builder namespace contains classes and interfaces for building and manipulating SVG (Scalable Vector Graphics) documents using the Aspose.SVG library. This namespace provides a rich set of builder classes that simplify the creation and modification of SVG elements and their attributes. These builders offer a fluent API, making the code more readable and maintainable.
Classes
Class | Description |
---|---|
AnimationSplineBuilder | A builder class for constructing animation timing functions using cubic Bézier curves. This class allows for the definition of one or more cubic Bézier curves, each specified by two control points. The resulting string can be used in CSS animations or transitions to control the pace of the animation. |
ClipPathBuilder | A builder class for constructing CSS clip-path values. This class provides methods to define clip paths using basic shapes, external references, or geometry boxes. It allows for the creation of complex clipping paths in a structured and readable manner. |
ColorBuilder | A builder class for constructing color values in various formats. This class provides methods to set color values and build them into string representations that can be used in styling contexts, such as CSS or SVG attributes. |
FilterValueListBuilder | A builder class for creating a list of filter functions for SVG elements. |
IAnimationAdditionAttributeSetter | Interface for setting additional animation attributes. |
IAnimationElementBuilder | Interface for building animation elements. |
IAnimationEventAttributeSetter | Interface for setting animation event attributes. |
IAnimationTargetAttributeSetter | Interface for setting target attributes for animations. |
IAnimationTargetElementAttributeSetter | Interface for setting target element attributes for animations. |
IAnimationTimingAttributeSetter | Interface for setting timing attributes for animations. |
IAnimationValueAttributeSetter | Interface for setting value attributes for animations. |
IAttributeSetter | Basic interface for setting attributes on SVG elements. This interface is a fundamental part of the SVG element builder system, allowing for the dynamic assignment of attributes to SVG elements. |
IBaseAnimationElementBuilder | Base interface for building animation elements. |
ICommonEventAttributeSetter | Interface for setting common event attributes. |
ICompositeAttributeSetter | Interface for setting a combination of various attribute types. |
ICompositeElementBuilder | Interface for building composite elements, combining various element types. |
IConditionalProcessingAttributeSetter | Interface for setting conditional processing attributes. |
ICoreAttributeSetter | Interface for setting core attributes. |
IDescriptiveElementBuilder | Interface for building descriptive elements like ‘desc’, ’title’, ‘metadata’. |
IDocumentElementEventAttributeSetter | Interface for setting document element event attributes. |
IDocumentEventAttributeSetter | Interface for setting document event attributes. |
IFilterPrimitiveAttributeSetter | Interface for setting attributes specific to filter primitives. |
IFilterPrimitiveContentBuilder | Interface for building content within filter primitives. |
IFilterPrimitiveElementBuilder | Interface for building filter primitive elements. |
IFilterPrimitiveInAttributeSetter | Interface for setting ‘in’ attributes for filter primitives. |
IGlobalEventAttributeSetter | Interface for setting global event attributes. |
IGradientStopElementBuilder | Interface for building gradient stop elements. |
IGraphicalEventAttributeSetter | Interface for setting graphical event attributes. |
IHeightAttributeSetter | Interface for setting height attributes. |
IPaintServerElementBuilder | Interface for building paint server elements. |
IPointsAttributeSetter | Interface for setting points attributes. |
IPresentationAttributeSetter | Interface for setting presentation attributes. |
IPreserveAspectRatioAttributeSetter | Interface for setting ‘preserveAspectRatio’ attributes. |
IRectAttributeSetter | Interface for setting rectangle attributes. |
IRefCoordinatesAttributeSetter | Interface for setting reference coordinates attributes. |
ISVGElementBuilder | Interface for building SVG (Scalable Vector Graphics) elements. This interface defines the essential methods and properties required to construct SVG elements programmatically. It extends the IAttributeSetter interface to include attribute setting capabilities. |
IShapeAttributeSetter | Interface for setting shape attributes. |
IShapeContentElementBuilder | Interface for building content within shape elements. |
IShapeElementBuilder | Interface for building shape elements. |
IStructuralElementBuilder | Interface for building structural elements. |
ITextContentPositioningAttributeSetter | Interface for setting text content positioning attributes. |
ITextContentSetter | Interface for setting text content. |
ITransferFunctionAttributeSetter | Interface for setting transfer function attributes. |
ITransformAttributeSetter | Interface for setting transformation attributes. |
IViewBoxAttributeSetter | Interface for setting ‘viewBox’ attributes. |
IWidthAttributeSetter | Interface for setting width attributes. |
IXAttributeSetter | Interface for setting ‘x’ attributes. |
IXLinkAttributeSetter | Interface for setting XLink attributes. |
IXYAttributeSetter | Interface for setting ‘x’ and ‘y’ attributes. |
IYAttributeSetter | Interface for setting ‘y’ attributes. |
MaskBuilder | A builder class for creating CSS mask properties. This class allows for the construction of complex mask styles using various properties such as mask source, position, size, repeat style, and more. The resulting string can be used in CSS to define the masking behavior of an element. |
PaintBuilder | A builder class for creating paint values for SVG elements. |
PathBuilder | Builder class for creating SVG path data strings. |
RuleBuilder | A builder class for constructing CSS style rules. This class is used to dynamically build a string of CSS styles by setting various attributes and their values. |
SVGAElementBuilder | Builder class for constructing an SVG ‘a’ element, which is used to define hyperlinks. It enables the building of content within ‘a’ element and provides methods to set various attributes specific to the ‘a’ element in SVG. |
SVGAnimateElementBuilder | Builder class for constructing an SVG ‘animate’ element, which is used for creating animations within SVG graphics. It enables the building of content within the ‘animate’ element and provides methods to set various attributes specific to the ‘animate’ element in SVG. |
SVGAnimateMotionElementBuilder | Builder class for constructing an SVG ‘animateMotion’ element, which is used for creating motion animations within SVG graphics. It enables the building of content within the ‘animateMotion’ element and provides methods to set various attributes specific to the ‘animateMotion’ element in SVG. |
SVGAnimateTransformElementBuilder | Builder class for constructing an SVG ‘animateTransform’ element, which is used for creating transformation animations within SVG graphics. It enables the building of content within the ‘animateTransform’ element and provides methods to set various attributes specific to the ‘animateTransform’ element in SVG. |
SVGBuilderExtensions | Provides extension methods for building and configuring SVG (Scalable Vector Graphics) elements. This class contains a collection of static methods that extend various builder interfaces, allowing for fluent and convenient construction of SVG elements and their attributes. |
SVGCircleElementBuilder | Builder class for constructing an SVG ‘circle’ element, which is used to draw circles within SVG graphics. It enables the building of content within the ‘circle’ element and provides methods to set various attributes specific to the ‘circle’ element in SVG. |
SVGClipPathElementBuilder | Builder class for constructing an SVG ‘clipPath’ element, which is used to define a clipping path. It enables the building of content within the ‘clipPath’ element and provides methods to set various attributes specific to the ‘clipPath’ element in SVG. |
SVGDefsElementBuilder | Builder class for constructing an SVG ‘defs’ element, which is used to define reusable elements. It enables the building of content within the ‘defs’ element and provides methods to set various attributes specific to the ‘defs’ element in SVG. |
SVGDescElementBuilder | Builder class for constructing an SVG ‘desc’ element, which is used to provide a description for SVG container elements. It enables the building of content within the ‘desc’ element and provides methods to set various attributes specific to the ‘desc’ element in SVG. |
SVGEllipseElementBuilder | Builder class for constructing an SVG ’ellipse’ element, which is used to draw ellipses within SVG graphics. It enables the building of content within the ’ellipse’ element and provides methods to set various attributes specific to the ’ellipse’ element in SVG. |
SVGFEBlendElementBuilder | Builder class for creating SVG ‘feBlend’ elements, used in SVG filters. |
SVGFEColorMatrixElementBuilder | Builder class for creating SVG ‘feColorMatrix’ elements, used in SVG filters. |
SVGFEComponentTransferElementBuilder | Builder class for creating SVG ‘feComponentTransfer’ elements, used in SVG filters. |
SVGFECompositeElementBuilder | Builder class for creating SVG ‘feComposite’ elements, used in SVG filters. |
SVGFEConvolveMatrixElementBuilder | Builder class for creating SVG ‘feConvolveMatrix’ elements, used in SVG filters for applying convolution matrix effects. |
SVGFEDiffuseLightingElementBuilder | Builder class for creating SVG ‘feDiffuseLighting’ elements, used in SVG filters to apply diffuse lighting effects. |
SVGFEDisplacementMapElementBuilder | Builder class for creating SVG ‘feDisplacementMap’ elements, used in SVG filters to apply displacement mapping effects. |
SVGFEDistantLightElementBuilder | Builder class for creating SVG ‘feDistantLight’ elements, used within SVG filters to define a distant light source. |
SVGFEDropShadowElementBuilder | Builder class for creating SVG ‘feDropShadow’ elements, used within SVG filters to apply a drop shadow effect. |
SVGFEFloodElementBuilder | Builder class for creating SVG ‘feFlood’ elements, used within SVG filters to create a flood of color. |
SVGFEFuncAElementBuilder | Builder class for creating SVG ‘feFuncA’ elements, which define the alpha component transfer function. |
SVGFEFuncBElementBuilder | Builder class for creating SVG ‘feFuncB’ elements, which define the alpha component transfer function. |
SVGFEFuncGElementBuilder | Builder class for creating SVG ‘feFuncG’ elements, which define the alpha component transfer function. |
SVGFEFuncRElementBuilder | Builder class for creating SVG ‘feFuncR’ elements, which define the alpha component transfer function. |
SVGFEGaussianBlurElementBuilder | Builder class for creating SVG ‘feGaussianBlur’ elements, which apply a Gaussian blur filter effect. |
SVGFEImageElementBuilder | Builder class for creating SVG ‘feImage’ elements, which define an image to be used by other filter primitives. |
SVGFEMergeElementBuilder | Builder class for creating SVG ‘feMerge’ elements, which are used to composite together images or parts of images. |
SVGFEMergeNodeElementBuilder | Builder class for creating SVG ‘feMergeNode’ elements, which define the input layers to be used within an ‘feMerge’ filter. |
SVGFEMorphologyElementBuilder | Builder class for creating SVG ‘feMorphology’ elements, which are used to apply morphological operations like dilation or erosion on an input image. |
SVGFEOffsetElementBuilder | Builder class for creating SVG ‘feOffset’ elements, which are used to apply an offset effect to an input image. |
SVGFEPointLightElementBuilder | Builder class for creating SVG ‘fePointLight’ elements, which define a point light source for use with lighting filter primitives. |
SVGFESpecularLightingElementBuilder | Builder class for creating SVG ‘feSpecularLighting’ elements, which apply specular lighting effects to an image. |
SVGFESpotLightElementBuilder | Builder class for creating SVG ‘feSpotLight’ elements, which define a light source that emits light in a specific direction, like a spotlight. |
SVGFETileElementBuilder | Builder class for creating SVG ‘feTile’ elements, which replicate and tile the input image to fill the filter primitive subregion. |
SVGFETurbulenceElementBuilder | Builder class for creating SVG ‘feTurbulence’ elements, which create an image using the Perlin turbulence function. |
SVGFilterElementBuilder | Builder class for creating SVG ‘filter’ elements, which define filter effects that can be applied to SVG graphics. |
SVGForeignObjectElementBuilder | Builder class for constructing an SVG ‘foreignObject’ element, which allows for inclusion of external content in an SVG document. This element can contain various types of content, such as HTML and XHTML, enabling more complex graphical representations within SVG. |
SVGGElementBuilder | Builder class for constructing an SVG ‘g’ (group) element. The ‘g’ element is used to group SVG shapes together. Grouping elements allows for easier manipulation and styling of multiple elements as a single unit within SVG graphics. |
SVGImageElementBuilder | Builder class for constructing an SVG ‘image’ element. This element is used to embed images within SVG graphics. It provides methods to set various attributes specific to the ‘image’ element and to add additional configurations like clip paths, masks, styles, and scripts. |
SVGLineElementBuilder | Builder class for constructing an SVG ’line’ element, which is used to draw straight lines within SVG graphics. This class enables the building of content within the ’line’ element and provides methods to set various attributes specific to the ’line’ element in SVG. |
SVGLinearGradientElementBuilder | Builder class for constructing an SVG ’linearGradient’ element, which is used to define a linear gradient within SVG graphics. It enables the building of content within the ’linearGradient’ element and provides methods to set various attributes specific to the ’linearGradient’ element in SVG. |
SVGMarkerElementBuilder | Builder class for constructing an SVG ‘marker’ element, which is used to define graphical markers, such as arrowheads or bullets, that can be attached to the ‘path’, ’line’, ‘polyline’, and ‘polygon’ elements. This class enables the building of content within the ‘marker’ element and provides methods to set various attributes specific to the ‘marker’ element in SVG. |
SVGMaskElementBuilder | Builder class for constructing an SVG ‘mask’ element, which is used to define an alpha mask for compositing the current object into the background. This class enables the building of content within the ‘mask’ element and provides methods to set various attributes specific to the ‘mask’ element in SVG. |
SVGMetadataElementBuilder | Builder class for constructing an SVG ‘metadata’ element, which is used to add metadata to an SVG document. This class enables the addition of metadata content and provides methods to set various attributes specific to the ‘metadata’ element in SVG. |
SVGPathElementBuilder | Builder class for constructing an SVG ‘path’ element, which is used to define a path in an SVG document. This class provides methods to set various attributes specific to the ‘path’ element and to build its content. |
SVGPatternElementBuilder | Builder class for constructing an SVG ‘pattern’ element, which is used to define a pattern to be used for filling graphics elements within SVG. This class provides methods to set various attributes specific to the ‘pattern’ element and to build its content. |
SVGPolygonElementBuilder | Builder class for constructing an SVG ‘polygon’ element. The ‘polygon’ element is used to create a graphic that contains at least three sides. This class provides methods to set various attributes and animate the polygon element. |
SVGPolylineElementBuilder | Builder class for constructing an SVG ‘polyline’ element. The ‘polyline’ element is used to create a series of straight lines connecting multiple points in SVG graphics. This class provides methods to set various attributes and animate the polyline element. |
SVGRadialGradientElementBuilder | Builder class for constructing an SVG ‘radialGradient’ element, which is used to define a radial gradient within SVG graphics. This class enables the building of content within the ‘radialGradient’ element and provides methods to set various attributes specific to the ‘radialGradient’ element in SVG. |
SVGRectElementBuilder | Builder class for constructing an SVG ‘rect’ element. The ‘rect’ element is used to create rectangles within SVG graphics. This class provides methods to set various attributes specific to the ‘rect’ element, including corner radii and dimensions. |
SVGSVGElementBuilder | Builder class for creating an SVGSVGElement, the root element of an SVG document. |
SVGScriptElementBuilder | Builder class for constructing an SVG ‘script’ element. The ‘script’ element is used to embed or reference executable scripts within SVG documents. This class provides methods to set various attributes specific to the ‘script’ element, such as type, source, and cross-origin settings. |
SVGSetElementBuilder | Builder class for constructing an SVG ‘set’ element. The ‘set’ element is used to define a simple animation where a single attribute value changes over a period of time. This class provides methods to set various attributes specific to the ‘set’ element, such as the target attribute and the value to set. |
SVGStopElementBuilder | Builder class for constructing an SVG ‘stop’ element. The ‘stop’ element is used within a gradient definition (either linear or radial) to define the color stops. This class provides methods to set various attributes specific to the ‘stop’ element, such as the offset and color. |
SVGStyleElementBuilder | A builder class for constructing an SVG ‘style’ element. This class facilitates the creation and configuration of an SVG style element with CSS rules. |
SVGSwitchElementBuilder | Builder class for creating an SVGSwitchElement, which is used to conditionally display SVG content. |
SVGSymbolElementBuilder | Builder class for creating an SVGSymbolElement, which is used to define graphical template objects within SVG. |
SVGTSpanElementBuilder | Builder class for creating an SVGTSpanElement, which is used to position and style text within an SVG document. |
SVGTextElementBuilder | Builder class for creating an SVGTextElement, which is used to define text in an SVG document. |
SVGTextPathElementBuilder | Builder class for creating SVG ’textPath’ elements, which are used to align text to a path. |
SVGTitleElementBuilder | Builder class for creating an SVGTitleElement, which is used to define the title of an SVG document or a part thereof. |
SVGUseElementBuilder | Builder class for creating an SVGUseElement, which is used to reuse an existing SVG element by referencing it. |
SVGViewElementBuilder | Builder class for creating an SVGViewElement, which defines a view within an SVG document. |
TimingValueBuilder | Builds a timing value used for specifying animation or transition timings. |
TransformBuilder | Builder class for creating SVG transform attribute strings. |
Enumerations
Enumeration | Description |
---|---|
AlignmentBaseline | Specifies the alignment baseline for text and other inline content in SVG. |
AngleUnits | Specifies the units for angles used in defining the orientation of markers in SVG. |
AnimationFill | Specifies the behavior of the animation before and after its execution. |
AspectRatioAlign | Specifies alignment types for the ‘preserveAspectRatio’ attribute in SVG. |
AspectRatioScaling | Specifies the scaling behavior for SVG elements when preserving their aspect ratio. |
BaseLineShift | Specifies the vertical position of an element relative to its baseline in SVG. |
BlendMode | Specifies the blending modes available for combining images or elements in SVG. |
CalcMode | Specifies the calculation modes for interpolating values in SVG animations. |
ChannelSelector | Specifies the channel selectors for use in SVG filter operations. |
ClipRule | Defines the rule to determine how to clip paths in SVG graphics. |
ColorInterpolation | Specifies the color interpolation mode for SVG elements and filters. |
ColorMatrixOperation | Specifies the type of operation to be applied in a color matrix filter. |
ColorRendering | Specifies the color rendering mode for an SVG element. |
ComponentTransferType | Specifies the type of component transfer function to be applied in the FeComponentTransfer filter primitive of an SVG. |
CompositeOperator | Specifies the type of compositing operation to be applied in SVG compositing operations. |
CompositingOperator | Specifies the type of compositing operation to be applied in SVG masking operations. |
CoordinateUnits | Specifies the coordinate system units for various SVG elements such as masks, paint servers, and filters. |
Cursor | Defines cursor types for SVG elements, allowing customization of the cursor appearance when hovering over these elements. |
Dash | Defines the pattern of dashes and gaps used to paint the outline of shapes (stroke) in SVG elements. |
DisplayType | Specifies the display behavior of elements in SVG documents. |
DominantBaseline | Specifies the dominant baseline used for aligning text. |
Dur | Specifies the duration of an animation in SVG. |
EdgeMode | Specifies the edge mode for the feConvolveMatrix filter primitive in SVG. |
FillRule | Specifies the rule to determine what parts of a shape are inside or outside in SVG graphics. |
FilterInput | Specifies predefined input images for an SVG filter. |
FontSize | Specifies predefined font sizes for SVG text elements. |
FontStretch | Specifies the different levels of font stretching for SVG text elements. |
FontStyle | Specifies the different styles of fonts for SVG text elements. |
FontWeight | Specifies the different weights of fonts for SVG text elements. |
GeometryBox | Specifies the reference box for mask and clip-path elements in SVG. |
HorizontalEdge | Specifies the horizontal edge reference for positioning in SVG. |
HorizontalPosition | Specifies the horizontal position of an element or a component in SVG. |
ImageRendering | Specifies how an image should be rendered in SVG. |
IndefiniteRepeat | Specifies the indefinite repetition of an SVG animation. |
Kerning | Specifies the kerning behavior for text in SVG. |
LengthAdjust | Specifies how text length adjustments are made in SVG. |
LengthType | Specifies the units of measurement for lengths in SVG. |
MarkerPos | Specifies the position of markers in SVG. |
MarkerUnits | Specifies the coordinate system for the marker size in SVG. |
Media | Specifies the media-related timing conditions for SVG animations. |
MorphologyOperator | Specifies the type of morphological operation to be applied in SVG filters. |
Orient | Specifies the orientation of the marker relative to the shape it is attached to. |
Overflow | Specifies the overflow behavior for SVG elements. |
Paint | Specifies the paint options for the fill and stroke attributes in SVG elements. |
PaintOrder | Specifies the order in which fill, stroke, and markers are applied to SVG elements. |
PointerEvents | Specifies how pointer events are handled by graphical elements in SVG. |
ReferrerPolicy | Specifies the referrer policy to be used when fetching resources. |
RepeatStyle | Specifies the repeat style for background images or patterns in SVG. |
Restart | Specifies the restart behavior for SVG animations. |
Rotate | Specifies the rotation behavior for elements during motion animation in SVG. |
ShapeRendering | Specifies the shape rendering mode for SVG elements. |
Spacing | Specifies the spacing behavior for text elements in SVG. |
SpreadMethod | Specifies how the colors in a gradient are spread beyond its bounds. |
StitchTiles | Specifies the stitching options for the ‘feTurbulence’ filter primitive. |
StopUnitType | Defines the unit types for the offset in gradient ‘stop’ elements. |
StrokeLineCap | Specifies the shape to be used at the end of open subpaths when they are stroked. |
StrokeLineJoin | Specifies the shape to be used at the corners of paths or basic shapes when they are stroked. |
Target | Specifies the browsing context for where to display the linked URL. |
TextAnchor | Specifies how text is horizontally aligned relative to a given point. |
TextDirection | Specifies the directionality of text. |
TextOrientation | Specifies the orientation of text when writing. |
TextOverflow | Specifies how overflowed content inside a text element is handled. |
TextPathMethod | Specifies the method used to render text along a path. |
TextPathSpacing | Specifies the spacing strategy for text along a path. |
TextRendering | Specifies the text rendering strategy in SVG. |
TransformationType | Specifies the type of transformation applied to an SVG element. |
TurbulenceType | Specifies the type of turbulence effect for the feTurbulence SVG filter. |
UnicodeBidi | Specifies the handling of bidirectional text in SVG. |
VerticalEdge | Specifies the vertical edge reference for positioning in SVG. |
VerticalPosition | Specifies the vertical position of an element or a component in SVG. |
Visibility | Specifies the visibility of SVG elements. |
WhiteSpace | Specifies how white space inside an SVG element is handled. |
WritingMode | Specifies the writing mode (direction of text flow) in SVG. |
XLinkShow | Specifies the behavior when an SVG link is triggered. |
XmlSpace | Specifies how white space inside elements is handled in XML documents. |
ZoomAndPan | Controls zooming and panning capabilities in an SVG document. |