SVGPatternElement
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Giao diện SVGPatternElement tương ứng với phần tử <pattern>.
Thuộc tính phiên bản
Giao diện này cũng kế thừa các thuộc tính từ giao diện cha của nó, SVGElement.
SVGPatternElement.hrefRead only-
Một
SVGAnimatedStringtương ứng với thuộc tínhhrefhoặcxlink:hrefDeprecated của phần tử<pattern>đã cho. SVGPatternElement.patternUnitsRead only-
Một
SVGAnimatedEnumerationtương ứng với thuộc tínhpatternUnitscủa phần tử<pattern>đã cho. Nhận một trong các hằng số được định nghĩa trongSVGUnitTypes. SVGPatternElement.patternContentUnitsRead only-
Một
SVGAnimatedEnumerationtương ứng với thuộc tínhpatternContentUnitscủa phần tử<pattern>đã cho. Nhận một trong các hằng số được định nghĩa trongSVGUnitTypes. SVGPatternElement.patternTransformRead only-
Một
SVGAnimatedTransformListtương ứng với thuộc tínhpatternTransformcủa phần tử<pattern>đã cho. SVGPatternElement.viewBoxRead only-
Một
SVGAnimatedRecttương ứng với thuộc tínhviewBoxcủa phần tử<pattern>đã cho. SVGPatternElement.preserveAspectRatioRead only-
Một
SVGAnimatedPreserveAspectRatiotương ứng với thuộc tínhpreserveAspectRatiocủa phần tử<pattern>đã cho. SVGPatternElement.xRead only-
Một
SVGAnimatedEnumerationtương ứng với thuộc tínhxcủa phần tử<pattern>đã cho. SVGPatternElement.yRead only-
Một
SVGAnimatedEnumerationtương ứng với thuộc tínhycủa phần tử<pattern>đã cho. SVGPatternElement.widthRead only-
Một
SVGAnimatedEnumerationtương ứng với thuộc tínhwidthcủa phần tử<pattern>đã cho. SVGPatternElement.heightRead only-
Một
SVGAnimatedEnumerationtương ứng với thuộc tínhheightcủa phần tử<pattern>đã cho.
Phương thức phiên bản
Giao diện này không triển khai phương thức riêng nào, nhưng kế thừa các phương thức từ giao diện cha của nó, SVGElement.
Thông số kỹ thuật
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # InterfaceSVGPatternElement> |