import _ from 'lodash'; export default { type: 'literal', _render() { return this.renderLabel(['"', this.literal.textValue, '"']) .then(label => { var spans = label.selectAll('tspan'); spans[0].addClass('quote'); spans[2].addClass('quote'); label.select('rect').attr({ rx: 3, ry: 3 }); }); }, merge(other) { this.textValue += other.textValue; this.literal.textValue += other.literal.textValue; }, setup() { this.literal = this.properties.literal; } };