SVGSVGElement: phương thức createSVGRect()

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.

Phương thức createSVGRect() của giao diện SVGSVGElement tạo một đối tượng DOMRect bên ngoài bất kỳ cây tài liệu nào.

Cú pháp

js
createSVGRect()

Tham số

Không có.

Giá trị trả về

Một đối tượng DOMRect, được khởi tạo với x, y, widthheight đều được đặt thành 0.

Thông số kỹ thuật

Specification
Scalable Vector Graphics (SVG) 2
# __svg__SVGSVGElement__createSVGRect

Tương thích trình duyệt

Xem thêm