Flyout.createDom() 方法
创建浮出控件的 DOM。只需调用一次。飞出控件可以作为自己的 SVG 元素存在,也可以作为嵌套在单独 SVG 元素中的 g 元素。
Signature:
createDom(tagName: string | Svg<SVGSVGElement> | Svg<SVGGElement>): SVGElement;
参数
参数 | 类型 | 说明 |
---|---|---|
tagName | 字符串 | Svg<SVGSVGElement> | Svg<SVGGElement> | 要放置浮出控件的代码类型。该参数应为 |
返回:
SVGElement
浮出控件的 SVG 组。