@tabler/core
Version:
Premium and Open Source dashboard template with responsive and high quality UI.
13 lines (10 loc) • 308 B
JavaScript
import SVGShapeElement from './shapeElement'
class SVGTextElement extends SVGShapeElement {
constructor(config, style) {
super('text', config, style)
}
applyAttr(attr, value) {
attr === 'text' ? this.node.textContent = value : super.applyAttr(attr, value)
}
}
export default SVGTextElement