Skip to content

KBE3D / KBCore / utils / createSvg

函数: createSvg()

createSvg(width: number, height: number, path: string, container?: HTMLElement | null): SVGSVGElement

创建svg元素

参数

width

number

宽度

height

number

高度

path

string

url路径

container?

添加到指定的父节点(可选)

HTMLElement | null

返回

SVGSVGElement

创建的svg元素

KBE3D @3.0.0 Copyright © 2024-present KBE3D