SVG API
SVG cung cấp các phần tử cho hình tròn, hình chữ nhật và các đường cong đơn giản lẫn phức tạp. Các giá trị thuộc tính của phần tử xác định cách vẽ chúng. SVG API là tập hợp con của DOM kết nối các phần tử SVG và giá trị thuộc tính của chúng với các tập lệnh hoặc ngôn ngữ lập trình bằng cách biểu diễn chúng trong bộ nhớ. Do đó, SVG API cung cấp các phương thức cho phép truy cập lập trình vào các phần tử SVG và giá trị thuộc tính của chúng.
SVG API là một tập hợp các giao diện được phân loại vào các nhóm lớn sau:
- Các giao diện phần tử cung cấp quyền truy cập vào các thuộc tính của phần tử SVG và các phương thức để thao tác với chúng.
- Các giao diện kiểu dữ liệu tĩnh cung cấp quyền truy cập vào các giá trị thuộc tính phần tử và các phương thức để thao tác với chúng.
- Đối với các thuộc tính có thể hoạt hình, các giao diện kiểu dữ liệu hoạt hình cung cấp quyền truy cập chỉ đọc vào giá trị hoạt hình hiện tại của thuộc tính.
- Các giao diện SMIL (Synchronized Multimedia Integration Language)
- Các giao diện khác
Giao diện
>Giao diện phần tử SVG
SVGAElementSVGAnimationElementSVGAnimateElementSVGAnimateMotionElementSVGAnimateTransformElementSVGCircleElementSVGClipPathElementSVGComponentTransferFunctionElementSVGDefsElementSVGDescElementSVGDiscardElementSVGElementSVGEllipseElementSVGFEBlendElementSVGFEColorMatrixElementSVGFEComponentTransferElementSVGFECompositeElementSVGFEConvolveMatrixElementSVGFEDiffuseLightingElementSVGFEDisplacementMapElementSVGFEDistantLightElementSVGFEDropShadowElementSVGFEFloodElementSVGFEFuncAElementSVGFEFuncBElementSVGFEFuncGElementSVGFEFuncRElementSVGFEGaussianBlurElementSVGFEImageElementSVGFEMergeElementSVGFEMergeNodeElementSVGFEMorphologyElementSVGFEOffsetElementSVGFEPointLightElementSVGFESpecularLightingElementSVGFESpotLightElementSVGFETileElementSVGFETurbulenceElementSVGFilterElementSVGForeignObjectElementSVGGElementSVGGeometryElementSVGGradientElementSVGGraphicsElementSVGImageElementSVGLinearGradientElementSVGLineElementSVGMarkerElementThử nghiệmSVGMaskElementSVGMetadataElementSVGMPathElementSVGPathElementSVGPatternElementSVGPolylineElementSVGPolygonElementSVGRadialGradientElementSVGRectElementSVGScriptElementSVGSetElementSVGStopElementSVGStyleElementSVGSVGElementSVGSwitchElementSVGSymbolElementSVGTextContentElementSVGTextElementSVGTextPathElementSVGTextPositioningElementSVGTitleElementSVGTSpanElementSVGUseElementSVGViewElement
Giao diện kiểu dữ liệu SVG
Đây là các DOM API cho các kiểu dữ liệu được sử dụng trong định nghĩa các thuộc tính và giá trị thuộc tính SVG.
Kiểu tĩnh
SVGAngleSVGLengthSVGLengthListSVGNumberSVGNumberListSVGPreserveAspectRatioSVGStringListSVGTransformSVGTransformList
Kiểu hoạt hình
Giao diện liên quan đến SMIL
Các giao diện SVG khác
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Scalable Vector Graphics (SVG) 2> |